@openvtc/trust-tasks 0.28.10 → 0.28.11

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 (250) hide show
  1. package/CHANGELOG.md +88 -0
  2. package/dist/_shared/components.d.ts +903 -0
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/index.d.ts +144 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +144 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/vta/notifications/deposit/0.1/payload.d.ts +349 -0
  9. package/dist/vta/notifications/deposit/0.1/payload.d.ts.map +1 -0
  10. package/dist/vta/notifications/deposit/0.1/payload.js +198 -0
  11. package/dist/vta/notifications/deposit/0.1/payload.js.map +1 -0
  12. package/dist/vta/pcs/vetter/recover/0.1/payload.d.ts +667 -0
  13. package/dist/vta/pcs/vetter/recover/0.1/payload.d.ts.map +1 -0
  14. package/dist/vta/pcs/vetter/recover/0.1/payload.js +387 -0
  15. package/dist/vta/pcs/vetter/recover/0.1/payload.js.map +1 -0
  16. package/dist/vtc/notifications/_shared/0.1/received-notification.d.ts +16 -0
  17. package/dist/vtc/notifications/_shared/0.1/received-notification.d.ts.map +1 -0
  18. package/dist/vtc/notifications/_shared/0.1/received-notification.js +6 -0
  19. package/dist/vtc/notifications/_shared/0.1/received-notification.js.map +1 -0
  20. package/dist/vtc/notifications/list/0.1/payload.d.ts +1311 -0
  21. package/dist/vtc/notifications/list/0.1/payload.d.ts.map +1 -0
  22. package/dist/vtc/notifications/list/0.1/payload.js +753 -0
  23. package/dist/vtc/notifications/list/0.1/payload.js.map +1 -0
  24. package/dist/vtc/notifications/relay/0.1/payload.d.ts +568 -0
  25. package/dist/vtc/notifications/relay/0.1/payload.d.ts.map +1 -0
  26. package/dist/vtc/notifications/relay/0.1/payload.js +339 -0
  27. package/dist/vtc/notifications/relay/0.1/payload.js.map +1 -0
  28. package/dist/vtc/notifications/show/0.1/payload.d.ts +1229 -0
  29. package/dist/vtc/notifications/show/0.1/payload.d.ts.map +1 -0
  30. package/dist/vtc/notifications/show/0.1/payload.js +727 -0
  31. package/dist/vtc/notifications/show/0.1/payload.js.map +1 -0
  32. package/dist/vtc/vetting/vetters/pcs-binding/reset/0.1/payload.d.ts +340 -0
  33. package/dist/vtc/vetting/vetters/pcs-binding/reset/0.1/payload.d.ts.map +1 -0
  34. package/dist/vtc/vetting/vetters/pcs-binding/reset/0.1/payload.js +194 -0
  35. package/dist/vtc/vetting/vetters/pcs-binding/reset/0.1/payload.js.map +1 -0
  36. package/dist/vtc/vetting/vetters/pcs-binding/show/0.1/payload.d.ts +425 -0
  37. package/dist/vtc/vetting/vetters/pcs-binding/show/0.1/payload.d.ts.map +1 -0
  38. package/dist/vtc/vetting/vetters/pcs-binding/show/0.1/payload.js +233 -0
  39. package/dist/vtc/vetting/vetters/pcs-binding/show/0.1/payload.js.map +1 -0
  40. package/dist/vtn/_shared/0.1/directory.d.ts +16 -0
  41. package/dist/vtn/_shared/0.1/directory.d.ts.map +1 -0
  42. package/dist/vtn/_shared/0.1/directory.js +6 -0
  43. package/dist/vtn/_shared/0.1/directory.js.map +1 -0
  44. package/dist/vtn/_shared/0.1/entry.d.ts +16 -0
  45. package/dist/vtn/_shared/0.1/entry.d.ts.map +1 -0
  46. package/dist/vtn/_shared/0.1/entry.js +6 -0
  47. package/dist/vtn/_shared/0.1/entry.js.map +1 -0
  48. package/dist/vtn/_shared/0.1/graph.d.ts +16 -0
  49. package/dist/vtn/_shared/0.1/graph.d.ts.map +1 -0
  50. package/dist/vtn/_shared/0.1/graph.js +6 -0
  51. package/dist/vtn/_shared/0.1/graph.js.map +1 -0
  52. package/dist/vtn/_shared/0.1/groups.d.ts +16 -0
  53. package/dist/vtn/_shared/0.1/groups.d.ts.map +1 -0
  54. package/dist/vtn/_shared/0.1/groups.js +6 -0
  55. package/dist/vtn/_shared/0.1/groups.js.map +1 -0
  56. package/dist/vtn/_shared/0.1/membership.d.ts +16 -0
  57. package/dist/vtn/_shared/0.1/membership.d.ts.map +1 -0
  58. package/dist/vtn/_shared/0.1/membership.js +6 -0
  59. package/dist/vtn/_shared/0.1/membership.js.map +1 -0
  60. package/dist/vtn/_shared/0.1/relay.d.ts +16 -0
  61. package/dist/vtn/_shared/0.1/relay.d.ts.map +1 -0
  62. package/dist/vtn/_shared/0.1/relay.js +6 -0
  63. package/dist/vtn/_shared/0.1/relay.js.map +1 -0
  64. package/dist/vtn/_shared/0.1/rooms.d.ts +16 -0
  65. package/dist/vtn/_shared/0.1/rooms.d.ts.map +1 -0
  66. package/dist/vtn/_shared/0.1/rooms.js +6 -0
  67. package/dist/vtn/_shared/0.1/rooms.js.map +1 -0
  68. package/dist/vtn/audit/list/0.1/payload.d.ts +457 -0
  69. package/dist/vtn/audit/list/0.1/payload.d.ts.map +1 -0
  70. package/dist/vtn/audit/list/0.1/payload.js +292 -0
  71. package/dist/vtn/audit/list/0.1/payload.js.map +1 -0
  72. package/dist/vtn/broadcasts/list/0.1/payload.d.ts +687 -0
  73. package/dist/vtn/broadcasts/list/0.1/payload.d.ts.map +1 -0
  74. package/dist/vtn/broadcasts/list/0.1/payload.js +407 -0
  75. package/dist/vtn/broadcasts/list/0.1/payload.js.map +1 -0
  76. package/dist/vtn/broadcasts/send/0.1/payload.d.ts +728 -0
  77. package/dist/vtn/broadcasts/send/0.1/payload.d.ts.map +1 -0
  78. package/dist/vtn/broadcasts/send/0.1/payload.js +425 -0
  79. package/dist/vtn/broadcasts/send/0.1/payload.js.map +1 -0
  80. package/dist/vtn/broadcasts/show/0.1/payload.d.ts +670 -0
  81. package/dist/vtn/broadcasts/show/0.1/payload.d.ts.map +1 -0
  82. package/dist/vtn/broadcasts/show/0.1/payload.js +402 -0
  83. package/dist/vtn/broadcasts/show/0.1/payload.js.map +1 -0
  84. package/dist/vtn/directory/federated/0.1/payload.d.ts +939 -0
  85. package/dist/vtn/directory/federated/0.1/payload.d.ts.map +1 -0
  86. package/dist/vtn/directory/federated/0.1/payload.js +536 -0
  87. package/dist/vtn/directory/federated/0.1/payload.js.map +1 -0
  88. package/dist/vtn/directory/search/0.1/payload.d.ts +643 -0
  89. package/dist/vtn/directory/search/0.1/payload.d.ts.map +1 -0
  90. package/dist/vtn/directory/search/0.1/payload.js +368 -0
  91. package/dist/vtn/directory/search/0.1/payload.js.map +1 -0
  92. package/dist/vtn/directory/summary/0.1/payload.d.ts +366 -0
  93. package/dist/vtn/directory/summary/0.1/payload.d.ts.map +1 -0
  94. package/dist/vtn/directory/summary/0.1/payload.js +216 -0
  95. package/dist/vtn/directory/summary/0.1/payload.js.map +1 -0
  96. package/dist/vtn/entries/show/0.1/payload.d.ts +682 -0
  97. package/dist/vtn/entries/show/0.1/payload.d.ts.map +1 -0
  98. package/dist/vtn/entries/show/0.1/payload.js +398 -0
  99. package/dist/vtn/entries/show/0.1/payload.js.map +1 -0
  100. package/dist/vtn/graph/member/0.1/payload.d.ts +754 -0
  101. package/dist/vtn/graph/member/0.1/payload.d.ts.map +1 -0
  102. package/dist/vtn/graph/member/0.1/payload.js +470 -0
  103. package/dist/vtn/graph/member/0.1/payload.js.map +1 -0
  104. package/dist/vtn/graph/show/0.1/payload.d.ts +754 -0
  105. package/dist/vtn/graph/show/0.1/payload.d.ts.map +1 -0
  106. package/dist/vtn/graph/show/0.1/payload.js +468 -0
  107. package/dist/vtn/graph/show/0.1/payload.js.map +1 -0
  108. package/dist/vtn/groups/list/0.1/payload.d.ts +489 -0
  109. package/dist/vtn/groups/list/0.1/payload.d.ts.map +1 -0
  110. package/dist/vtn/groups/list/0.1/payload.js +282 -0
  111. package/dist/vtn/groups/list/0.1/payload.js.map +1 -0
  112. package/dist/vtn/groups/register/0.1/payload.d.ts +504 -0
  113. package/dist/vtn/groups/register/0.1/payload.d.ts.map +1 -0
  114. package/dist/vtn/groups/register/0.1/payload.js +291 -0
  115. package/dist/vtn/groups/register/0.1/payload.js.map +1 -0
  116. package/dist/vtn/listings/create/0.1/payload.d.ts +954 -0
  117. package/dist/vtn/listings/create/0.1/payload.d.ts.map +1 -0
  118. package/dist/vtn/listings/create/0.1/payload.js +549 -0
  119. package/dist/vtn/listings/create/0.1/payload.js.map +1 -0
  120. package/dist/vtn/listings/list/0.1/payload.d.ts +933 -0
  121. package/dist/vtn/listings/list/0.1/payload.d.ts.map +1 -0
  122. package/dist/vtn/listings/list/0.1/payload.js +538 -0
  123. package/dist/vtn/listings/list/0.1/payload.js.map +1 -0
  124. package/dist/vtn/listings/reinstate/0.1/payload.d.ts +926 -0
  125. package/dist/vtn/listings/reinstate/0.1/payload.d.ts.map +1 -0
  126. package/dist/vtn/listings/reinstate/0.1/payload.js +536 -0
  127. package/dist/vtn/listings/reinstate/0.1/payload.js.map +1 -0
  128. package/dist/vtn/listings/remove/0.1/payload.d.ts +926 -0
  129. package/dist/vtn/listings/remove/0.1/payload.d.ts.map +1 -0
  130. package/dist/vtn/listings/remove/0.1/payload.js +536 -0
  131. package/dist/vtn/listings/remove/0.1/payload.js.map +1 -0
  132. package/dist/vtn/listings/show/0.1/payload.d.ts +914 -0
  133. package/dist/vtn/listings/show/0.1/payload.d.ts.map +1 -0
  134. package/dist/vtn/listings/show/0.1/payload.js +532 -0
  135. package/dist/vtn/listings/show/0.1/payload.js.map +1 -0
  136. package/dist/vtn/listings/suspend/0.1/payload.d.ts +926 -0
  137. package/dist/vtn/listings/suspend/0.1/payload.d.ts.map +1 -0
  138. package/dist/vtn/listings/suspend/0.1/payload.js +536 -0
  139. package/dist/vtn/listings/suspend/0.1/payload.js.map +1 -0
  140. package/dist/vtn/listings/update/0.1/payload.d.ts +966 -0
  141. package/dist/vtn/listings/update/0.1/payload.d.ts.map +1 -0
  142. package/dist/vtn/listings/update/0.1/payload.js +550 -0
  143. package/dist/vtn/listings/update/0.1/payload.js.map +1 -0
  144. package/dist/vtn/membership/acknowledge/0.1/payload.d.ts +654 -0
  145. package/dist/vtn/membership/acknowledge/0.1/payload.d.ts.map +1 -0
  146. package/dist/vtn/membership/acknowledge/0.1/payload.js +386 -0
  147. package/dist/vtn/membership/acknowledge/0.1/payload.js.map +1 -0
  148. package/dist/vtn/membership/offer/0.1/payload.d.ts +247 -0
  149. package/dist/vtn/membership/offer/0.1/payload.d.ts.map +1 -0
  150. package/dist/vtn/membership/offer/0.1/payload.js +147 -0
  151. package/dist/vtn/membership/offer/0.1/payload.js.map +1 -0
  152. package/dist/vtn/membership/repudiate/0.1/payload.d.ts +654 -0
  153. package/dist/vtn/membership/repudiate/0.1/payload.d.ts.map +1 -0
  154. package/dist/vtn/membership/repudiate/0.1/payload.js +386 -0
  155. package/dist/vtn/membership/repudiate/0.1/payload.js.map +1 -0
  156. package/dist/vtn/memberships/groups/add/0.1/payload.d.ts +677 -0
  157. package/dist/vtn/memberships/groups/add/0.1/payload.d.ts.map +1 -0
  158. package/dist/vtn/memberships/groups/add/0.1/payload.js +394 -0
  159. package/dist/vtn/memberships/groups/add/0.1/payload.js.map +1 -0
  160. package/dist/vtn/memberships/join/0.1/payload.d.ts +755 -0
  161. package/dist/vtn/memberships/join/0.1/payload.d.ts.map +1 -0
  162. package/dist/vtn/memberships/join/0.1/payload.js +438 -0
  163. package/dist/vtn/memberships/join/0.1/payload.js.map +1 -0
  164. package/dist/vtn/memberships/leave/0.1/payload.d.ts +653 -0
  165. package/dist/vtn/memberships/leave/0.1/payload.d.ts.map +1 -0
  166. package/dist/vtn/memberships/leave/0.1/payload.js +384 -0
  167. package/dist/vtn/memberships/leave/0.1/payload.js.map +1 -0
  168. package/dist/vtn/memberships/list/0.1/payload.d.ts +651 -0
  169. package/dist/vtn/memberships/list/0.1/payload.d.ts.map +1 -0
  170. package/dist/vtn/memberships/list/0.1/payload.js +383 -0
  171. package/dist/vtn/memberships/list/0.1/payload.js.map +1 -0
  172. package/dist/vtn/memberships/repudiate/0.1/payload.d.ts +669 -0
  173. package/dist/vtn/memberships/repudiate/0.1/payload.d.ts.map +1 -0
  174. package/dist/vtn/memberships/repudiate/0.1/payload.js +391 -0
  175. package/dist/vtn/memberships/repudiate/0.1/payload.js.map +1 -0
  176. package/dist/vtn/outbox/list/0.1/payload.d.ts +567 -0
  177. package/dist/vtn/outbox/list/0.1/payload.d.ts.map +1 -0
  178. package/dist/vtn/outbox/list/0.1/payload.js +333 -0
  179. package/dist/vtn/outbox/list/0.1/payload.js.map +1 -0
  180. package/dist/vtn/outbox/retry/0.1/payload.d.ts +235 -0
  181. package/dist/vtn/outbox/retry/0.1/payload.d.ts.map +1 -0
  182. package/dist/vtn/outbox/retry/0.1/payload.js +141 -0
  183. package/dist/vtn/outbox/retry/0.1/payload.js.map +1 -0
  184. package/dist/vtn/relay/deliver/0.1/payload.d.ts +592 -0
  185. package/dist/vtn/relay/deliver/0.1/payload.d.ts.map +1 -0
  186. package/dist/vtn/relay/deliver/0.1/payload.js +352 -0
  187. package/dist/vtn/relay/deliver/0.1/payload.js.map +1 -0
  188. package/dist/vtn/roles/list/0.1/payload.d.ts +371 -0
  189. package/dist/vtn/roles/list/0.1/payload.d.ts.map +1 -0
  190. package/dist/vtn/roles/list/0.1/payload.js +213 -0
  191. package/dist/vtn/roles/list/0.1/payload.js.map +1 -0
  192. package/dist/vtn/rooms/list/0.1/payload.d.ts +447 -0
  193. package/dist/vtn/rooms/list/0.1/payload.d.ts.map +1 -0
  194. package/dist/vtn/rooms/list/0.1/payload.js +255 -0
  195. package/dist/vtn/rooms/list/0.1/payload.js.map +1 -0
  196. package/dist/vtn/rooms/pass/0.1/payload.d.ts +674 -0
  197. package/dist/vtn/rooms/pass/0.1/payload.d.ts.map +1 -0
  198. package/dist/vtn/rooms/pass/0.1/payload.js +383 -0
  199. package/dist/vtn/rooms/pass/0.1/payload.js.map +1 -0
  200. package/package.json +1 -1
  201. package/src/_shared/components.ts +922 -0
  202. package/src/index.ts +144 -0
  203. package/src/vta/notifications/deposit/0.1/payload.ts +243 -0
  204. package/src/vta/pcs/vetter/recover/0.1/payload.ts +437 -0
  205. package/src/vtc/notifications/_shared/0.1/received-notification.ts +17 -0
  206. package/src/vtc/notifications/list/0.1/payload.ts +809 -0
  207. package/src/vtc/notifications/relay/0.1/payload.ts +382 -0
  208. package/src/vtc/notifications/show/0.1/payload.ts +761 -0
  209. package/src/vtc/vetting/vetters/pcs-binding/reset/0.1/payload.ts +247 -0
  210. package/src/vtc/vetting/vetters/pcs-binding/show/0.1/payload.ts +295 -0
  211. package/src/vtn/_shared/0.1/directory.ts +17 -0
  212. package/src/vtn/_shared/0.1/entry.ts +17 -0
  213. package/src/vtn/_shared/0.1/graph.ts +17 -0
  214. package/src/vtn/_shared/0.1/groups.ts +17 -0
  215. package/src/vtn/_shared/0.1/membership.ts +17 -0
  216. package/src/vtn/_shared/0.1/relay.ts +17 -0
  217. package/src/vtn/_shared/0.1/rooms.ts +17 -0
  218. package/src/vtn/audit/list/0.1/payload.ts +336 -0
  219. package/src/vtn/broadcasts/list/0.1/payload.ts +447 -0
  220. package/src/vtn/broadcasts/send/0.1/payload.ts +478 -0
  221. package/src/vtn/broadcasts/show/0.1/payload.ts +439 -0
  222. package/src/vtn/directory/federated/0.1/payload.ts +594 -0
  223. package/src/vtn/directory/search/0.1/payload.ts +418 -0
  224. package/src/vtn/directory/summary/0.1/payload.ts +253 -0
  225. package/src/vtn/entries/show/0.1/payload.ts +439 -0
  226. package/src/vtn/graph/member/0.1/payload.ts +511 -0
  227. package/src/vtn/graph/show/0.1/payload.ts +509 -0
  228. package/src/vtn/groups/list/0.1/payload.ts +322 -0
  229. package/src/vtn/groups/register/0.1/payload.ts +336 -0
  230. package/src/vtn/listings/create/0.1/payload.ts +594 -0
  231. package/src/vtn/listings/list/0.1/payload.ts +578 -0
  232. package/src/vtn/listings/reinstate/0.1/payload.ts +577 -0
  233. package/src/vtn/listings/remove/0.1/payload.ts +577 -0
  234. package/src/vtn/listings/show/0.1/payload.ts +569 -0
  235. package/src/vtn/listings/suspend/0.1/payload.ts +577 -0
  236. package/src/vtn/listings/update/0.1/payload.ts +603 -0
  237. package/src/vtn/membership/acknowledge/0.1/payload.ts +423 -0
  238. package/src/vtn/membership/offer/0.1/payload.ts +183 -0
  239. package/src/vtn/membership/repudiate/0.1/payload.ts +423 -0
  240. package/src/vtn/memberships/groups/add/0.1/payload.ts +442 -0
  241. package/src/vtn/memberships/join/0.1/payload.ts +488 -0
  242. package/src/vtn/memberships/leave/0.1/payload.ts +424 -0
  243. package/src/vtn/memberships/list/0.1/payload.ts +419 -0
  244. package/src/vtn/memberships/repudiate/0.1/payload.ts +435 -0
  245. package/src/vtn/outbox/list/0.1/payload.ts +369 -0
  246. package/src/vtn/outbox/retry/0.1/payload.ts +177 -0
  247. package/src/vtn/relay/deliver/0.1/payload.ts +397 -0
  248. package/src/vtn/roles/list/0.1/payload.ts +253 -0
  249. package/src/vtn/rooms/list/0.1/payload.ts +295 -0
  250. package/src/vtn/rooms/pass/0.1/payload.ts +439 -0
@@ -0,0 +1,425 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/vetting/vetters/pcs-binding/show/0.1/payload.schema.json
4
+ */
5
+ import type { Ext } from "../../../../../../_shared/components.js";
6
+ /**
7
+ * A member asks its community which hidden-vetting (PCS) identifier the community has bound to them, and whether an administrator has reset that binding. The member learns only their own record.
8
+ */
9
+ export interface VTCVettingPCSBindingShowPayload {
10
+ ext?: Ext;
11
+ }
12
+ /**
13
+ * The requester's own binding. `id` is present exactly when `bound` is true.
14
+ */
15
+ export interface VTCVettingPCSBindingShowResponsePayload {
16
+ /**
17
+ * Whether the community holds an identifier for this member. False for a member who has never enrolled.
18
+ */
19
+ bound: boolean;
20
+ /**
21
+ * The PCS identifier recorded at this member's first enrolment, multibase base58btc. Present if and only if `bound` is true; a consumer treats `bound: true` without `id` as not bound. While a reset is pending it is still the recorded one: enrolling with it again cancels the reset.
22
+ */
23
+ id?: string;
24
+ /**
25
+ * The vetter class labels this member has enrolled under with the recorded identifier, oldest first. Empty when not bound.
26
+ */
27
+ enrolledLabels: string[];
28
+ reset?: Reset;
29
+ ext?: Ext;
30
+ }
31
+ /**
32
+ * An administrator's reset of this member's binding, not yet completed by an enrolment under a new identifier.
33
+ */
34
+ export interface Reset {
35
+ /**
36
+ * When the administrator reset the binding.
37
+ */
38
+ resetAt: string;
39
+ /**
40
+ * The labels the recorded identifier enrolled under that the community still accepts, at the time of this answer. A new identifier is refused until this is empty.
41
+ */
42
+ waitingOn: string[];
43
+ /**
44
+ * True when `waitingOn` is empty: the next enrolment may present a new identifier, and the community binds it.
45
+ */
46
+ open: boolean;
47
+ }
48
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
49
+ export type { Ext };
50
+ /** Trust Task type URI. */
51
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/vetting/vetters/pcs-binding/show/0.1";
52
+ /**
53
+ * The earlier version of this specification that this one declares it
54
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
55
+ * `null`. Only the direct declaration — follow the chain with
56
+ * `extendsChain` / `readForSpec`.
57
+ */
58
+ export declare const EXTENDS: string | null;
59
+ /**
60
+ * Why this version is deprecated, or `null` while it is current. A
61
+ * superseded or retired version is still supported, and is withdrawn from
62
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
63
+ * Versions").
64
+ */
65
+ export declare const DEPRECATION: string | null;
66
+ /** Stable alias for this specification's request payload shape. */
67
+ export type Payload = VTCVettingPCSBindingShowPayload;
68
+ /** Trust Task response type URI (request type URI + "#response"). */
69
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/vetting/vetters/pcs-binding/show/0.1#response";
70
+ /** Stable alias for this specification's success-response payload shape. */
71
+ export type Response = VTCVettingPCSBindingShowResponsePayload;
72
+ /**
73
+ * This specification's payload schema, as a value.
74
+ *
75
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
76
+ * rather than only as a `.json` file because TypeScript types are erased
77
+ * at runtime: without a schema a consumer has nothing to validate, and
78
+ * every REQUIRED payload member is optional in practice. Cross-file
79
+ * `$ref`s are already inlined, so it needs no resolver.
80
+ */
81
+ export declare const PAYLOAD_SCHEMA: {
82
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
83
+ readonly $id: "https://trusttasks.org/spec/vtc/vetting/vetters/pcs-binding/show/0.1";
84
+ readonly title: "VTC — Vetting PCS Binding — Show — payload";
85
+ readonly description: "A member asks its community which hidden-vetting (PCS) identifier the community has bound to them, and whether an administrator has reset that binding. The member learns only their own record.";
86
+ readonly type: "object";
87
+ readonly additionalProperties: false;
88
+ readonly properties: {
89
+ readonly ext: {
90
+ readonly $ref: "#/$defs/Ext";
91
+ };
92
+ };
93
+ readonly $defs: {
94
+ readonly Response: {
95
+ readonly $anchor: "response";
96
+ readonly title: "VTC — Vetting PCS Binding — Show — response payload";
97
+ readonly type: "object";
98
+ readonly additionalProperties: false;
99
+ readonly required: readonly ["bound", "enrolledLabels"];
100
+ readonly description: "The requester's own binding. `id` is present exactly when `bound` is true.";
101
+ readonly properties: {
102
+ readonly bound: {
103
+ readonly type: "boolean";
104
+ readonly description: "Whether the community holds an identifier for this member. False for a member who has never enrolled.";
105
+ };
106
+ readonly id: {
107
+ readonly type: "string";
108
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
109
+ readonly description: "The PCS identifier recorded at this member's first enrolment, multibase base58btc. Present if and only if `bound` is true; a consumer treats `bound: true` without `id` as not bound. While a reset is pending it is still the recorded one: enrolling with it again cancels the reset.";
110
+ };
111
+ readonly enrolledLabels: {
112
+ readonly type: "array";
113
+ readonly items: {
114
+ readonly type: "string";
115
+ readonly pattern: "^vetter/[0-9]{4}-[0-9]{2}$";
116
+ };
117
+ readonly description: "The vetter class labels this member has enrolled under with the recorded identifier, oldest first. Empty when not bound.";
118
+ };
119
+ readonly reset: {
120
+ readonly $ref: "#/$defs/Reset";
121
+ };
122
+ readonly ext: {
123
+ readonly $ref: "#/$defs/Ext";
124
+ };
125
+ };
126
+ };
127
+ readonly Reset: {
128
+ readonly title: "Reset";
129
+ readonly description: "An administrator's reset of this member's binding, not yet completed by an enrolment under a new identifier.";
130
+ readonly type: "object";
131
+ readonly additionalProperties: false;
132
+ readonly required: readonly ["resetAt", "waitingOn", "open"];
133
+ readonly properties: {
134
+ readonly resetAt: {
135
+ readonly type: "string";
136
+ readonly format: "date-time";
137
+ readonly description: "When the administrator reset the binding.";
138
+ };
139
+ readonly waitingOn: {
140
+ readonly type: "array";
141
+ readonly items: {
142
+ readonly type: "string";
143
+ readonly pattern: "^vetter/[0-9]{4}-[0-9]{2}$";
144
+ };
145
+ readonly description: "The labels the recorded identifier enrolled under that the community still accepts, at the time of this answer. A new identifier is refused until this is empty.";
146
+ };
147
+ readonly open: {
148
+ readonly type: "boolean";
149
+ readonly description: "True when `waitingOn` is empty: the next enrolment may present a new identifier, and the community binds it.";
150
+ };
151
+ };
152
+ };
153
+ readonly Ext: {
154
+ readonly title: "Ext";
155
+ readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
156
+ readonly type: "object";
157
+ readonly minProperties: 1;
158
+ readonly additionalProperties: true;
159
+ readonly propertyNames: {
160
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
161
+ };
162
+ };
163
+ };
164
+ };
165
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
166
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
167
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
168
+ readonly $ref: "#/$defs/Response";
169
+ readonly $defs: {
170
+ readonly Response: {
171
+ readonly $anchor: "response";
172
+ readonly title: "VTC — Vetting PCS Binding — Show — response payload";
173
+ readonly type: "object";
174
+ readonly additionalProperties: false;
175
+ readonly required: readonly ["bound", "enrolledLabels"];
176
+ readonly description: "The requester's own binding. `id` is present exactly when `bound` is true.";
177
+ readonly properties: {
178
+ readonly bound: {
179
+ readonly type: "boolean";
180
+ readonly description: "Whether the community holds an identifier for this member. False for a member who has never enrolled.";
181
+ };
182
+ readonly id: {
183
+ readonly type: "string";
184
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
185
+ readonly description: "The PCS identifier recorded at this member's first enrolment, multibase base58btc. Present if and only if `bound` is true; a consumer treats `bound: true` without `id` as not bound. While a reset is pending it is still the recorded one: enrolling with it again cancels the reset.";
186
+ };
187
+ readonly enrolledLabels: {
188
+ readonly type: "array";
189
+ readonly items: {
190
+ readonly type: "string";
191
+ readonly pattern: "^vetter/[0-9]{4}-[0-9]{2}$";
192
+ };
193
+ readonly description: "The vetter class labels this member has enrolled under with the recorded identifier, oldest first. Empty when not bound.";
194
+ };
195
+ readonly reset: {
196
+ readonly $ref: "#/$defs/Reset";
197
+ };
198
+ readonly ext: {
199
+ readonly $ref: "#/$defs/Ext";
200
+ };
201
+ };
202
+ };
203
+ readonly Reset: {
204
+ readonly title: "Reset";
205
+ readonly description: "An administrator's reset of this member's binding, not yet completed by an enrolment under a new identifier.";
206
+ readonly type: "object";
207
+ readonly additionalProperties: false;
208
+ readonly required: readonly ["resetAt", "waitingOn", "open"];
209
+ readonly properties: {
210
+ readonly resetAt: {
211
+ readonly type: "string";
212
+ readonly format: "date-time";
213
+ readonly description: "When the administrator reset the binding.";
214
+ };
215
+ readonly waitingOn: {
216
+ readonly type: "array";
217
+ readonly items: {
218
+ readonly type: "string";
219
+ readonly pattern: "^vetter/[0-9]{4}-[0-9]{2}$";
220
+ };
221
+ readonly description: "The labels the recorded identifier enrolled under that the community still accepts, at the time of this answer. A new identifier is refused until this is empty.";
222
+ };
223
+ readonly open: {
224
+ readonly type: "boolean";
225
+ readonly description: "True when `waitingOn` is empty: the next enrolment may present a new identifier, and the community binds it.";
226
+ };
227
+ };
228
+ };
229
+ readonly Ext: {
230
+ readonly title: "Ext";
231
+ readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
232
+ readonly type: "object";
233
+ readonly minProperties: 1;
234
+ readonly additionalProperties: true;
235
+ readonly propertyNames: {
236
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
237
+ };
238
+ };
239
+ };
240
+ };
241
+ /**
242
+ * SPEC.md §7.2 policy for the request variant, from this specification's
243
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
244
+ * per-specification and cannot be derived from the document alone, and
245
+ * item 2 needs the schema this carries.
246
+ */
247
+ export declare const SPEC: {
248
+ readonly typeUri: "https://trusttasks.org/spec/vtc/vetting/vetters/pcs-binding/show/0.1";
249
+ readonly isBearer: false;
250
+ readonly isProofRequired: true;
251
+ readonly isRecipientRequired: true;
252
+ readonly isIssuedAtRequired: false;
253
+ readonly payloadSchema: {
254
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
255
+ readonly $id: "https://trusttasks.org/spec/vtc/vetting/vetters/pcs-binding/show/0.1";
256
+ readonly title: "VTC — Vetting PCS Binding — Show — payload";
257
+ readonly description: "A member asks its community which hidden-vetting (PCS) identifier the community has bound to them, and whether an administrator has reset that binding. The member learns only their own record.";
258
+ readonly type: "object";
259
+ readonly additionalProperties: false;
260
+ readonly properties: {
261
+ readonly ext: {
262
+ readonly $ref: "#/$defs/Ext";
263
+ };
264
+ };
265
+ readonly $defs: {
266
+ readonly Response: {
267
+ readonly $anchor: "response";
268
+ readonly title: "VTC — Vetting PCS Binding — Show — response payload";
269
+ readonly type: "object";
270
+ readonly additionalProperties: false;
271
+ readonly required: readonly ["bound", "enrolledLabels"];
272
+ readonly description: "The requester's own binding. `id` is present exactly when `bound` is true.";
273
+ readonly properties: {
274
+ readonly bound: {
275
+ readonly type: "boolean";
276
+ readonly description: "Whether the community holds an identifier for this member. False for a member who has never enrolled.";
277
+ };
278
+ readonly id: {
279
+ readonly type: "string";
280
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
281
+ readonly description: "The PCS identifier recorded at this member's first enrolment, multibase base58btc. Present if and only if `bound` is true; a consumer treats `bound: true` without `id` as not bound. While a reset is pending it is still the recorded one: enrolling with it again cancels the reset.";
282
+ };
283
+ readonly enrolledLabels: {
284
+ readonly type: "array";
285
+ readonly items: {
286
+ readonly type: "string";
287
+ readonly pattern: "^vetter/[0-9]{4}-[0-9]{2}$";
288
+ };
289
+ readonly description: "The vetter class labels this member has enrolled under with the recorded identifier, oldest first. Empty when not bound.";
290
+ };
291
+ readonly reset: {
292
+ readonly $ref: "#/$defs/Reset";
293
+ };
294
+ readonly ext: {
295
+ readonly $ref: "#/$defs/Ext";
296
+ };
297
+ };
298
+ };
299
+ readonly Reset: {
300
+ readonly title: "Reset";
301
+ readonly description: "An administrator's reset of this member's binding, not yet completed by an enrolment under a new identifier.";
302
+ readonly type: "object";
303
+ readonly additionalProperties: false;
304
+ readonly required: readonly ["resetAt", "waitingOn", "open"];
305
+ readonly properties: {
306
+ readonly resetAt: {
307
+ readonly type: "string";
308
+ readonly format: "date-time";
309
+ readonly description: "When the administrator reset the binding.";
310
+ };
311
+ readonly waitingOn: {
312
+ readonly type: "array";
313
+ readonly items: {
314
+ readonly type: "string";
315
+ readonly pattern: "^vetter/[0-9]{4}-[0-9]{2}$";
316
+ };
317
+ readonly description: "The labels the recorded identifier enrolled under that the community still accepts, at the time of this answer. A new identifier is refused until this is empty.";
318
+ };
319
+ readonly open: {
320
+ readonly type: "boolean";
321
+ readonly description: "True when `waitingOn` is empty: the next enrolment may present a new identifier, and the community binds it.";
322
+ };
323
+ };
324
+ };
325
+ readonly Ext: {
326
+ readonly title: "Ext";
327
+ readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
328
+ readonly type: "object";
329
+ readonly minProperties: 1;
330
+ readonly additionalProperties: true;
331
+ readonly propertyNames: {
332
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
333
+ };
334
+ };
335
+ };
336
+ };
337
+ };
338
+ /**
339
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
340
+ * tracks the *issuer* party's requirement because a response swaps the
341
+ * parties (§7.3 item 5).
342
+ */
343
+ export declare const RESPONSE_SPEC: {
344
+ readonly typeUri: "https://trusttasks.org/spec/vtc/vetting/vetters/pcs-binding/show/0.1#response";
345
+ readonly isBearer: false;
346
+ readonly isProofRequired: true;
347
+ readonly isRecipientRequired: true;
348
+ readonly isIssuedAtRequired: false;
349
+ readonly payloadSchema: {
350
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
351
+ readonly $ref: "#/$defs/Response";
352
+ readonly $defs: {
353
+ readonly Response: {
354
+ readonly $anchor: "response";
355
+ readonly title: "VTC — Vetting PCS Binding — Show — response payload";
356
+ readonly type: "object";
357
+ readonly additionalProperties: false;
358
+ readonly required: readonly ["bound", "enrolledLabels"];
359
+ readonly description: "The requester's own binding. `id` is present exactly when `bound` is true.";
360
+ readonly properties: {
361
+ readonly bound: {
362
+ readonly type: "boolean";
363
+ readonly description: "Whether the community holds an identifier for this member. False for a member who has never enrolled.";
364
+ };
365
+ readonly id: {
366
+ readonly type: "string";
367
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
368
+ readonly description: "The PCS identifier recorded at this member's first enrolment, multibase base58btc. Present if and only if `bound` is true; a consumer treats `bound: true` without `id` as not bound. While a reset is pending it is still the recorded one: enrolling with it again cancels the reset.";
369
+ };
370
+ readonly enrolledLabels: {
371
+ readonly type: "array";
372
+ readonly items: {
373
+ readonly type: "string";
374
+ readonly pattern: "^vetter/[0-9]{4}-[0-9]{2}$";
375
+ };
376
+ readonly description: "The vetter class labels this member has enrolled under with the recorded identifier, oldest first. Empty when not bound.";
377
+ };
378
+ readonly reset: {
379
+ readonly $ref: "#/$defs/Reset";
380
+ };
381
+ readonly ext: {
382
+ readonly $ref: "#/$defs/Ext";
383
+ };
384
+ };
385
+ };
386
+ readonly Reset: {
387
+ readonly title: "Reset";
388
+ readonly description: "An administrator's reset of this member's binding, not yet completed by an enrolment under a new identifier.";
389
+ readonly type: "object";
390
+ readonly additionalProperties: false;
391
+ readonly required: readonly ["resetAt", "waitingOn", "open"];
392
+ readonly properties: {
393
+ readonly resetAt: {
394
+ readonly type: "string";
395
+ readonly format: "date-time";
396
+ readonly description: "When the administrator reset the binding.";
397
+ };
398
+ readonly waitingOn: {
399
+ readonly type: "array";
400
+ readonly items: {
401
+ readonly type: "string";
402
+ readonly pattern: "^vetter/[0-9]{4}-[0-9]{2}$";
403
+ };
404
+ readonly description: "The labels the recorded identifier enrolled under that the community still accepts, at the time of this answer. A new identifier is refused until this is empty.";
405
+ };
406
+ readonly open: {
407
+ readonly type: "boolean";
408
+ readonly description: "True when `waitingOn` is empty: the next enrolment may present a new identifier, and the community binds it.";
409
+ };
410
+ };
411
+ };
412
+ readonly Ext: {
413
+ readonly title: "Ext";
414
+ readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
415
+ readonly type: "object";
416
+ readonly minProperties: 1;
417
+ readonly additionalProperties: true;
418
+ readonly propertyNames: {
419
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
420
+ };
421
+ };
422
+ };
423
+ };
424
+ };
425
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../../src/vtc/vetting/vetters/pcs-binding/show/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,yCAAyC,CAAC;AAGnE;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,uCAAuC;IACtD;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;CACf;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,CAAC;AAEpB,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,sEAA+E,CAAC;AAExG;;;;;GAKG;AACH,eAAO,MAAM,OAAO,EAAE,MAAM,GAAG,IAAW,CAAC;AAE3C;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,MAAM,GAAG,IAAW,CAAC;AAE/C,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,+BAA+B,CAAC;AAEtD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,+EAAwF,CAAC;AAE1H,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,uCAAuC,CAAC;AAE/D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0FjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiF1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
@@ -0,0 +1,233 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/vetting/vetters/pcs-binding/show/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/vetting/vetters/pcs-binding/show/0.1";
7
+ /**
8
+ * The earlier version of this specification that this one declares it
9
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
10
+ * `null`. Only the direct declaration — follow the chain with
11
+ * `extendsChain` / `readForSpec`.
12
+ */
13
+ export const EXTENDS = null;
14
+ /**
15
+ * Why this version is deprecated, or `null` while it is current. A
16
+ * superseded or retired version is still supported, and is withdrawn from
17
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
18
+ * Versions").
19
+ */
20
+ export const DEPRECATION = null;
21
+ /** Trust Task response type URI (request type URI + "#response"). */
22
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/vetting/vetters/pcs-binding/show/0.1#response";
23
+ /**
24
+ * This specification's payload schema, as a value.
25
+ *
26
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
27
+ * rather than only as a `.json` file because TypeScript types are erased
28
+ * at runtime: without a schema a consumer has nothing to validate, and
29
+ * every REQUIRED payload member is optional in practice. Cross-file
30
+ * `$ref`s are already inlined, so it needs no resolver.
31
+ */
32
+ export const PAYLOAD_SCHEMA = {
33
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
34
+ "$id": "https://trusttasks.org/spec/vtc/vetting/vetters/pcs-binding/show/0.1",
35
+ "title": "VTC — Vetting PCS Binding — Show — payload",
36
+ "description": "A member asks its community which hidden-vetting (PCS) identifier the community has bound to them, and whether an administrator has reset that binding. The member learns only their own record.",
37
+ "type": "object",
38
+ "additionalProperties": false,
39
+ "properties": {
40
+ "ext": {
41
+ "$ref": "#/$defs/Ext"
42
+ }
43
+ },
44
+ "$defs": {
45
+ "Response": {
46
+ "$anchor": "response",
47
+ "title": "VTC — Vetting PCS Binding — Show — response payload",
48
+ "type": "object",
49
+ "additionalProperties": false,
50
+ "required": [
51
+ "bound",
52
+ "enrolledLabels"
53
+ ],
54
+ "description": "The requester's own binding. `id` is present exactly when `bound` is true.",
55
+ "properties": {
56
+ "bound": {
57
+ "type": "boolean",
58
+ "description": "Whether the community holds an identifier for this member. False for a member who has never enrolled."
59
+ },
60
+ "id": {
61
+ "type": "string",
62
+ "pattern": "^z[1-9A-HJ-NP-Za-km-z]+$",
63
+ "description": "The PCS identifier recorded at this member's first enrolment, multibase base58btc. Present if and only if `bound` is true; a consumer treats `bound: true` without `id` as not bound. While a reset is pending it is still the recorded one: enrolling with it again cancels the reset."
64
+ },
65
+ "enrolledLabels": {
66
+ "type": "array",
67
+ "items": {
68
+ "type": "string",
69
+ "pattern": "^vetter/[0-9]{4}-[0-9]{2}$"
70
+ },
71
+ "description": "The vetter class labels this member has enrolled under with the recorded identifier, oldest first. Empty when not bound."
72
+ },
73
+ "reset": {
74
+ "$ref": "#/$defs/Reset"
75
+ },
76
+ "ext": {
77
+ "$ref": "#/$defs/Ext"
78
+ }
79
+ }
80
+ },
81
+ "Reset": {
82
+ "title": "Reset",
83
+ "description": "An administrator's reset of this member's binding, not yet completed by an enrolment under a new identifier.",
84
+ "type": "object",
85
+ "additionalProperties": false,
86
+ "required": [
87
+ "resetAt",
88
+ "waitingOn",
89
+ "open"
90
+ ],
91
+ "properties": {
92
+ "resetAt": {
93
+ "type": "string",
94
+ "format": "date-time",
95
+ "description": "When the administrator reset the binding."
96
+ },
97
+ "waitingOn": {
98
+ "type": "array",
99
+ "items": {
100
+ "type": "string",
101
+ "pattern": "^vetter/[0-9]{4}-[0-9]{2}$"
102
+ },
103
+ "description": "The labels the recorded identifier enrolled under that the community still accepts, at the time of this answer. A new identifier is refused until this is empty."
104
+ },
105
+ "open": {
106
+ "type": "boolean",
107
+ "description": "True when `waitingOn` is empty: the next enrolment may present a new identifier, and the community binds it."
108
+ }
109
+ }
110
+ },
111
+ "Ext": {
112
+ "title": "Ext",
113
+ "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.",
114
+ "type": "object",
115
+ "minProperties": 1,
116
+ "additionalProperties": true,
117
+ "propertyNames": {
118
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
119
+ }
120
+ }
121
+ }
122
+ };
123
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
124
+ export const RESPONSE_PAYLOAD_SCHEMA = {
125
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
126
+ "$ref": "#/$defs/Response",
127
+ "$defs": {
128
+ "Response": {
129
+ "$anchor": "response",
130
+ "title": "VTC — Vetting PCS Binding — Show — response payload",
131
+ "type": "object",
132
+ "additionalProperties": false,
133
+ "required": [
134
+ "bound",
135
+ "enrolledLabels"
136
+ ],
137
+ "description": "The requester's own binding. `id` is present exactly when `bound` is true.",
138
+ "properties": {
139
+ "bound": {
140
+ "type": "boolean",
141
+ "description": "Whether the community holds an identifier for this member. False for a member who has never enrolled."
142
+ },
143
+ "id": {
144
+ "type": "string",
145
+ "pattern": "^z[1-9A-HJ-NP-Za-km-z]+$",
146
+ "description": "The PCS identifier recorded at this member's first enrolment, multibase base58btc. Present if and only if `bound` is true; a consumer treats `bound: true` without `id` as not bound. While a reset is pending it is still the recorded one: enrolling with it again cancels the reset."
147
+ },
148
+ "enrolledLabels": {
149
+ "type": "array",
150
+ "items": {
151
+ "type": "string",
152
+ "pattern": "^vetter/[0-9]{4}-[0-9]{2}$"
153
+ },
154
+ "description": "The vetter class labels this member has enrolled under with the recorded identifier, oldest first. Empty when not bound."
155
+ },
156
+ "reset": {
157
+ "$ref": "#/$defs/Reset"
158
+ },
159
+ "ext": {
160
+ "$ref": "#/$defs/Ext"
161
+ }
162
+ }
163
+ },
164
+ "Reset": {
165
+ "title": "Reset",
166
+ "description": "An administrator's reset of this member's binding, not yet completed by an enrolment under a new identifier.",
167
+ "type": "object",
168
+ "additionalProperties": false,
169
+ "required": [
170
+ "resetAt",
171
+ "waitingOn",
172
+ "open"
173
+ ],
174
+ "properties": {
175
+ "resetAt": {
176
+ "type": "string",
177
+ "format": "date-time",
178
+ "description": "When the administrator reset the binding."
179
+ },
180
+ "waitingOn": {
181
+ "type": "array",
182
+ "items": {
183
+ "type": "string",
184
+ "pattern": "^vetter/[0-9]{4}-[0-9]{2}$"
185
+ },
186
+ "description": "The labels the recorded identifier enrolled under that the community still accepts, at the time of this answer. A new identifier is refused until this is empty."
187
+ },
188
+ "open": {
189
+ "type": "boolean",
190
+ "description": "True when `waitingOn` is empty: the next enrolment may present a new identifier, and the community binds it."
191
+ }
192
+ }
193
+ },
194
+ "Ext": {
195
+ "title": "Ext",
196
+ "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.",
197
+ "type": "object",
198
+ "minProperties": 1,
199
+ "additionalProperties": true,
200
+ "propertyNames": {
201
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
202
+ }
203
+ }
204
+ }
205
+ };
206
+ /**
207
+ * SPEC.md §7.2 policy for the request variant, from this specification's
208
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
209
+ * per-specification and cannot be derived from the document alone, and
210
+ * item 2 needs the schema this carries.
211
+ */
212
+ export const SPEC = {
213
+ typeUri: TYPE_URI,
214
+ isBearer: false,
215
+ isProofRequired: true,
216
+ isRecipientRequired: true,
217
+ isIssuedAtRequired: false,
218
+ payloadSchema: PAYLOAD_SCHEMA,
219
+ };
220
+ /**
221
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
222
+ * tracks the *issuer* party's requirement because a response swaps the
223
+ * parties (§7.3 item 5).
224
+ */
225
+ export const RESPONSE_SPEC = {
226
+ typeUri: RESPONSE_TYPE_URI,
227
+ isBearer: false,
228
+ isProofRequired: true,
229
+ isRecipientRequired: true,
230
+ isIssuedAtRequired: false,
231
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
232
+ };
233
+ //# sourceMappingURL=payload.js.map