@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,674 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtn/rooms/pass/0.1/payload.schema.json
4
+ */
5
+ import type { ChainLink, Credential, Did_VtnV0_1 as Did, Ext, Membership, RoleName_VtnV0_1 as RoleName, RoomDef, RoomPass, SignedTask } from "../../../../_shared/components.js";
6
+ /**
7
+ * A person's request for a room pass, with the evidence that they are eligible. The outer document members are owned by the framework — SPEC §6.3.
8
+ */
9
+ export interface VTNRoomsPassPayload {
10
+ /**
11
+ * The id of the room.
12
+ */
13
+ room: string;
14
+ /**
15
+ * The person's membership credential from their group, naming the requester's identity.
16
+ */
17
+ membership: Membership;
18
+ /**
19
+ * The registrations from the person's group up to a group registered with this network, nearest first. Empty when the group is registered here directly.
20
+ *
21
+ * @maxItems 8
22
+ */
23
+ chain: [] | [ChainLink] | [ChainLink, ChainLink] | [ChainLink, ChainLink, ChainLink] | [ChainLink, ChainLink, ChainLink, ChainLink] | [ChainLink, ChainLink, ChainLink, ChainLink, ChainLink] | [ChainLink, ChainLink, ChainLink, ChainLink, ChainLink, ChainLink] | [ChainLink, ChainLink, ChainLink, ChainLink, ChainLink, ChainLink, ChainLink] | [ChainLink, ChainLink, ChainLink, ChainLink, ChainLink, ChainLink, ChainLink, ChainLink];
24
+ ext?: Ext;
25
+ }
26
+ /**
27
+ * The room pass.
28
+ */
29
+ export interface VTNRoomsPassResponsePayload {
30
+ pass: RoomPass;
31
+ ext?: Ext;
32
+ }
33
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
34
+ export type { ChainLink, Credential, Did, Ext, Membership, RoleName, RoomDef, RoomPass, SignedTask };
35
+ /** Trust Task type URI. */
36
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vtn/rooms/pass/0.1";
37
+ /**
38
+ * The earlier version of this specification that this one declares it
39
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
40
+ * `null`. Only the direct declaration — follow the chain with
41
+ * `extendsChain` / `readForSpec`.
42
+ */
43
+ export declare const EXTENDS: string | null;
44
+ /**
45
+ * Why this version is deprecated, or `null` while it is current. A
46
+ * superseded or retired version is still supported, and is withdrawn from
47
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
48
+ * Versions").
49
+ */
50
+ export declare const DEPRECATION: string | null;
51
+ /** Stable alias for this specification's request payload shape. */
52
+ export type Payload = VTNRoomsPassPayload;
53
+ /** Trust Task response type URI (request type URI + "#response"). */
54
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtn/rooms/pass/0.1#response";
55
+ /** Stable alias for this specification's success-response payload shape. */
56
+ export type Response = VTNRoomsPassResponsePayload;
57
+ /**
58
+ * This specification's payload schema, as a value.
59
+ *
60
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
61
+ * rather than only as a `.json` file because TypeScript types are erased
62
+ * at runtime: without a schema a consumer has nothing to validate, and
63
+ * every REQUIRED payload member is optional in practice. Cross-file
64
+ * `$ref`s are already inlined, so it needs no resolver.
65
+ */
66
+ export declare const PAYLOAD_SCHEMA: {
67
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
68
+ readonly $id: "https://trusttasks.org/spec/vtn/rooms/pass/0.1";
69
+ readonly title: "VTN Rooms — Pass — payload";
70
+ readonly description: "A person's request for a room pass, with the evidence that they are eligible. The outer document members are owned by the framework — SPEC §6.3.";
71
+ readonly type: "object";
72
+ readonly additionalProperties: false;
73
+ readonly required: readonly ["room", "membership", "chain"];
74
+ readonly properties: {
75
+ readonly room: {
76
+ readonly type: "string";
77
+ readonly pattern: "^[a-z0-9][a-z0-9-]{0,62}$";
78
+ readonly description: "The id of the room.";
79
+ };
80
+ readonly membership: {
81
+ readonly $ref: "#/$defs/Membership";
82
+ readonly description: "The person's membership credential from their group, naming the requester's identity.";
83
+ };
84
+ readonly chain: {
85
+ readonly type: "array";
86
+ readonly items: {
87
+ readonly $ref: "#/$defs/ChainLink";
88
+ };
89
+ readonly maxItems: 8;
90
+ readonly description: "The registrations from the person's group up to a group registered with this network, nearest first. Empty when the group is registered here directly.";
91
+ };
92
+ readonly ext: {
93
+ readonly $ref: "#/$defs/Ext";
94
+ };
95
+ };
96
+ readonly $defs: {
97
+ readonly Response: {
98
+ readonly $anchor: "response";
99
+ readonly title: "VTN Rooms — Pass — response payload";
100
+ readonly description: "The room pass.";
101
+ readonly type: "object";
102
+ readonly additionalProperties: false;
103
+ readonly required: readonly ["pass"];
104
+ readonly properties: {
105
+ readonly pass: {
106
+ readonly $ref: "#/$defs/RoomPass";
107
+ };
108
+ readonly ext: {
109
+ readonly $ref: "#/$defs/Ext";
110
+ };
111
+ };
112
+ };
113
+ readonly Ext: {
114
+ readonly title: "Ext";
115
+ 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.";
116
+ readonly type: "object";
117
+ readonly minProperties: 1;
118
+ readonly additionalProperties: true;
119
+ readonly propertyNames: {
120
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
121
+ };
122
+ };
123
+ readonly RoomPass: {
124
+ readonly description: "A room pass.";
125
+ readonly type: "object";
126
+ readonly additionalProperties: false;
127
+ readonly required: readonly ["room", "pass", "via"];
128
+ readonly properties: {
129
+ readonly room: {
130
+ readonly $ref: "#/$defs/RoomDef";
131
+ };
132
+ readonly pass: {
133
+ readonly $ref: "#/$defs/Credential";
134
+ readonly description: "The pass: a credential the network signs for the person, valid for `passMinutes`.";
135
+ };
136
+ readonly via: {
137
+ readonly type: "array";
138
+ readonly items: {
139
+ readonly $ref: "#/$defs/Did";
140
+ };
141
+ readonly description: "The networks the person's eligibility ran through, from the one nearest their community up to this network.";
142
+ };
143
+ };
144
+ };
145
+ readonly RoomDef: {
146
+ readonly description: "A room.";
147
+ readonly type: "object";
148
+ readonly additionalProperties: false;
149
+ readonly required: readonly ["id", "name", "role", "passMinutes"];
150
+ readonly properties: {
151
+ readonly id: {
152
+ readonly type: "string";
153
+ readonly pattern: "^[a-z0-9][a-z0-9-]{0,62}$";
154
+ readonly description: "The room's id.";
155
+ };
156
+ readonly name: {
157
+ readonly type: "string";
158
+ readonly maxLength: 200;
159
+ readonly description: "Its name.";
160
+ };
161
+ readonly role: {
162
+ readonly $ref: "#/$defs/RoleName";
163
+ readonly description: "The role whose groups' members may enter.";
164
+ };
165
+ readonly description: {
166
+ readonly type: "string";
167
+ readonly maxLength: 1000;
168
+ readonly description: "What it is for.";
169
+ };
170
+ readonly url: {
171
+ readonly type: "string";
172
+ readonly format: "uri";
173
+ readonly maxLength: 2048;
174
+ readonly description: "Where the room is.";
175
+ };
176
+ readonly passMinutes: {
177
+ readonly type: "integer";
178
+ readonly minimum: 1;
179
+ readonly maximum: 1440;
180
+ readonly description: "How long a pass lasts, in minutes: at most 1440 (24 hours). A pass is short-lived because it is not revoked; eligibility is re-proved for the next one.";
181
+ };
182
+ };
183
+ };
184
+ readonly RoleName: {
185
+ readonly type: "string";
186
+ readonly pattern: "^[a-z0-9_-]{1,64}$";
187
+ readonly description: "A role's name: 1–64 lowercase letters, digits, `-` or `_`.";
188
+ };
189
+ readonly Did: {
190
+ readonly type: "string";
191
+ readonly pattern: "^did:[a-z0-9]+:.+$";
192
+ readonly maxLength: 2048;
193
+ readonly description: "A DID.";
194
+ };
195
+ readonly Credential: {
196
+ readonly type: "object";
197
+ readonly description: "A DTG credential (W3C VC 2.0, JSON) exactly as signed. Verified by the party relying on it, never by its shape here: it is an open object so a binding cannot narrow away a member the proof covers.";
198
+ };
199
+ readonly ChainLink: {
200
+ readonly description: "One registration on the path from a person's community up to the network a room belongs to: the member's signed request and the accepting network's groupRegistered credential.";
201
+ readonly type: "object";
202
+ readonly additionalProperties: false;
203
+ readonly required: readonly ["registration", "acceptance"];
204
+ readonly properties: {
205
+ readonly registration: {
206
+ readonly $ref: "#/$defs/SignedTask";
207
+ readonly description: "A member's signed vtn/groups/register request.";
208
+ };
209
+ readonly acceptance: {
210
+ readonly $ref: "#/$defs/Credential";
211
+ readonly description: "The network's groupRegistered credential: a statement (`https://openvtc.org/vtn/vsc/groupRegistered/1`) issued by the accepting network, subject the group, `object.digestMultibase` the digest of `registration`, with a `credentialStatus` on the network's revocation list.";
212
+ };
213
+ };
214
+ };
215
+ readonly SignedTask: {
216
+ readonly type: "object";
217
+ readonly description: "A complete Trust Task document, with its proof, exactly as signed and received. Verified as a document in its own right; open so its proof still covers every member, and so its digest can be recomputed.";
218
+ };
219
+ readonly Membership: {
220
+ readonly type: "object";
221
+ readonly description: "A person's membership credential (VMC) from a community that is a member of this network, holder-bound to the requester's identity. Open for the same reason as `Credential`.";
222
+ };
223
+ };
224
+ };
225
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
226
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
227
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
228
+ readonly $ref: "#/$defs/Response";
229
+ readonly $defs: {
230
+ readonly Response: {
231
+ readonly $anchor: "response";
232
+ readonly title: "VTN Rooms — Pass — response payload";
233
+ readonly description: "The room pass.";
234
+ readonly type: "object";
235
+ readonly additionalProperties: false;
236
+ readonly required: readonly ["pass"];
237
+ readonly properties: {
238
+ readonly pass: {
239
+ readonly $ref: "#/$defs/RoomPass";
240
+ };
241
+ readonly ext: {
242
+ readonly $ref: "#/$defs/Ext";
243
+ };
244
+ };
245
+ };
246
+ readonly Ext: {
247
+ readonly title: "Ext";
248
+ 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.";
249
+ readonly type: "object";
250
+ readonly minProperties: 1;
251
+ readonly additionalProperties: true;
252
+ readonly propertyNames: {
253
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
254
+ };
255
+ };
256
+ readonly RoomPass: {
257
+ readonly description: "A room pass.";
258
+ readonly type: "object";
259
+ readonly additionalProperties: false;
260
+ readonly required: readonly ["room", "pass", "via"];
261
+ readonly properties: {
262
+ readonly room: {
263
+ readonly $ref: "#/$defs/RoomDef";
264
+ };
265
+ readonly pass: {
266
+ readonly $ref: "#/$defs/Credential";
267
+ readonly description: "The pass: a credential the network signs for the person, valid for `passMinutes`.";
268
+ };
269
+ readonly via: {
270
+ readonly type: "array";
271
+ readonly items: {
272
+ readonly $ref: "#/$defs/Did";
273
+ };
274
+ readonly description: "The networks the person's eligibility ran through, from the one nearest their community up to this network.";
275
+ };
276
+ };
277
+ };
278
+ readonly RoomDef: {
279
+ readonly description: "A room.";
280
+ readonly type: "object";
281
+ readonly additionalProperties: false;
282
+ readonly required: readonly ["id", "name", "role", "passMinutes"];
283
+ readonly properties: {
284
+ readonly id: {
285
+ readonly type: "string";
286
+ readonly pattern: "^[a-z0-9][a-z0-9-]{0,62}$";
287
+ readonly description: "The room's id.";
288
+ };
289
+ readonly name: {
290
+ readonly type: "string";
291
+ readonly maxLength: 200;
292
+ readonly description: "Its name.";
293
+ };
294
+ readonly role: {
295
+ readonly $ref: "#/$defs/RoleName";
296
+ readonly description: "The role whose groups' members may enter.";
297
+ };
298
+ readonly description: {
299
+ readonly type: "string";
300
+ readonly maxLength: 1000;
301
+ readonly description: "What it is for.";
302
+ };
303
+ readonly url: {
304
+ readonly type: "string";
305
+ readonly format: "uri";
306
+ readonly maxLength: 2048;
307
+ readonly description: "Where the room is.";
308
+ };
309
+ readonly passMinutes: {
310
+ readonly type: "integer";
311
+ readonly minimum: 1;
312
+ readonly maximum: 1440;
313
+ readonly description: "How long a pass lasts, in minutes: at most 1440 (24 hours). A pass is short-lived because it is not revoked; eligibility is re-proved for the next one.";
314
+ };
315
+ };
316
+ };
317
+ readonly RoleName: {
318
+ readonly type: "string";
319
+ readonly pattern: "^[a-z0-9_-]{1,64}$";
320
+ readonly description: "A role's name: 1–64 lowercase letters, digits, `-` or `_`.";
321
+ };
322
+ readonly Did: {
323
+ readonly type: "string";
324
+ readonly pattern: "^did:[a-z0-9]+:.+$";
325
+ readonly maxLength: 2048;
326
+ readonly description: "A DID.";
327
+ };
328
+ readonly Credential: {
329
+ readonly type: "object";
330
+ readonly description: "A DTG credential (W3C VC 2.0, JSON) exactly as signed. Verified by the party relying on it, never by its shape here: it is an open object so a binding cannot narrow away a member the proof covers.";
331
+ };
332
+ readonly ChainLink: {
333
+ readonly description: "One registration on the path from a person's community up to the network a room belongs to: the member's signed request and the accepting network's groupRegistered credential.";
334
+ readonly type: "object";
335
+ readonly additionalProperties: false;
336
+ readonly required: readonly ["registration", "acceptance"];
337
+ readonly properties: {
338
+ readonly registration: {
339
+ readonly $ref: "#/$defs/SignedTask";
340
+ readonly description: "A member's signed vtn/groups/register request.";
341
+ };
342
+ readonly acceptance: {
343
+ readonly $ref: "#/$defs/Credential";
344
+ readonly description: "The network's groupRegistered credential: a statement (`https://openvtc.org/vtn/vsc/groupRegistered/1`) issued by the accepting network, subject the group, `object.digestMultibase` the digest of `registration`, with a `credentialStatus` on the network's revocation list.";
345
+ };
346
+ };
347
+ };
348
+ readonly SignedTask: {
349
+ readonly type: "object";
350
+ readonly description: "A complete Trust Task document, with its proof, exactly as signed and received. Verified as a document in its own right; open so its proof still covers every member, and so its digest can be recomputed.";
351
+ };
352
+ readonly Membership: {
353
+ readonly type: "object";
354
+ readonly description: "A person's membership credential (VMC) from a community that is a member of this network, holder-bound to the requester's identity. Open for the same reason as `Credential`.";
355
+ };
356
+ };
357
+ };
358
+ /**
359
+ * SPEC.md §7.2 policy for the request variant, from this specification's
360
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
361
+ * per-specification and cannot be derived from the document alone, and
362
+ * item 2 needs the schema this carries.
363
+ */
364
+ export declare const SPEC: {
365
+ readonly typeUri: "https://trusttasks.org/spec/vtn/rooms/pass/0.1";
366
+ readonly isBearer: false;
367
+ readonly isProofRequired: true;
368
+ readonly isRecipientRequired: true;
369
+ readonly isIssuedAtRequired: true;
370
+ readonly payloadSchema: {
371
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
372
+ readonly $id: "https://trusttasks.org/spec/vtn/rooms/pass/0.1";
373
+ readonly title: "VTN Rooms — Pass — payload";
374
+ readonly description: "A person's request for a room pass, with the evidence that they are eligible. The outer document members are owned by the framework — SPEC §6.3.";
375
+ readonly type: "object";
376
+ readonly additionalProperties: false;
377
+ readonly required: readonly ["room", "membership", "chain"];
378
+ readonly properties: {
379
+ readonly room: {
380
+ readonly type: "string";
381
+ readonly pattern: "^[a-z0-9][a-z0-9-]{0,62}$";
382
+ readonly description: "The id of the room.";
383
+ };
384
+ readonly membership: {
385
+ readonly $ref: "#/$defs/Membership";
386
+ readonly description: "The person's membership credential from their group, naming the requester's identity.";
387
+ };
388
+ readonly chain: {
389
+ readonly type: "array";
390
+ readonly items: {
391
+ readonly $ref: "#/$defs/ChainLink";
392
+ };
393
+ readonly maxItems: 8;
394
+ readonly description: "The registrations from the person's group up to a group registered with this network, nearest first. Empty when the group is registered here directly.";
395
+ };
396
+ readonly ext: {
397
+ readonly $ref: "#/$defs/Ext";
398
+ };
399
+ };
400
+ readonly $defs: {
401
+ readonly Response: {
402
+ readonly $anchor: "response";
403
+ readonly title: "VTN Rooms — Pass — response payload";
404
+ readonly description: "The room pass.";
405
+ readonly type: "object";
406
+ readonly additionalProperties: false;
407
+ readonly required: readonly ["pass"];
408
+ readonly properties: {
409
+ readonly pass: {
410
+ readonly $ref: "#/$defs/RoomPass";
411
+ };
412
+ readonly ext: {
413
+ readonly $ref: "#/$defs/Ext";
414
+ };
415
+ };
416
+ };
417
+ readonly Ext: {
418
+ readonly title: "Ext";
419
+ 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.";
420
+ readonly type: "object";
421
+ readonly minProperties: 1;
422
+ readonly additionalProperties: true;
423
+ readonly propertyNames: {
424
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
425
+ };
426
+ };
427
+ readonly RoomPass: {
428
+ readonly description: "A room pass.";
429
+ readonly type: "object";
430
+ readonly additionalProperties: false;
431
+ readonly required: readonly ["room", "pass", "via"];
432
+ readonly properties: {
433
+ readonly room: {
434
+ readonly $ref: "#/$defs/RoomDef";
435
+ };
436
+ readonly pass: {
437
+ readonly $ref: "#/$defs/Credential";
438
+ readonly description: "The pass: a credential the network signs for the person, valid for `passMinutes`.";
439
+ };
440
+ readonly via: {
441
+ readonly type: "array";
442
+ readonly items: {
443
+ readonly $ref: "#/$defs/Did";
444
+ };
445
+ readonly description: "The networks the person's eligibility ran through, from the one nearest their community up to this network.";
446
+ };
447
+ };
448
+ };
449
+ readonly RoomDef: {
450
+ readonly description: "A room.";
451
+ readonly type: "object";
452
+ readonly additionalProperties: false;
453
+ readonly required: readonly ["id", "name", "role", "passMinutes"];
454
+ readonly properties: {
455
+ readonly id: {
456
+ readonly type: "string";
457
+ readonly pattern: "^[a-z0-9][a-z0-9-]{0,62}$";
458
+ readonly description: "The room's id.";
459
+ };
460
+ readonly name: {
461
+ readonly type: "string";
462
+ readonly maxLength: 200;
463
+ readonly description: "Its name.";
464
+ };
465
+ readonly role: {
466
+ readonly $ref: "#/$defs/RoleName";
467
+ readonly description: "The role whose groups' members may enter.";
468
+ };
469
+ readonly description: {
470
+ readonly type: "string";
471
+ readonly maxLength: 1000;
472
+ readonly description: "What it is for.";
473
+ };
474
+ readonly url: {
475
+ readonly type: "string";
476
+ readonly format: "uri";
477
+ readonly maxLength: 2048;
478
+ readonly description: "Where the room is.";
479
+ };
480
+ readonly passMinutes: {
481
+ readonly type: "integer";
482
+ readonly minimum: 1;
483
+ readonly maximum: 1440;
484
+ readonly description: "How long a pass lasts, in minutes: at most 1440 (24 hours). A pass is short-lived because it is not revoked; eligibility is re-proved for the next one.";
485
+ };
486
+ };
487
+ };
488
+ readonly RoleName: {
489
+ readonly type: "string";
490
+ readonly pattern: "^[a-z0-9_-]{1,64}$";
491
+ readonly description: "A role's name: 1–64 lowercase letters, digits, `-` or `_`.";
492
+ };
493
+ readonly Did: {
494
+ readonly type: "string";
495
+ readonly pattern: "^did:[a-z0-9]+:.+$";
496
+ readonly maxLength: 2048;
497
+ readonly description: "A DID.";
498
+ };
499
+ readonly Credential: {
500
+ readonly type: "object";
501
+ readonly description: "A DTG credential (W3C VC 2.0, JSON) exactly as signed. Verified by the party relying on it, never by its shape here: it is an open object so a binding cannot narrow away a member the proof covers.";
502
+ };
503
+ readonly ChainLink: {
504
+ readonly description: "One registration on the path from a person's community up to the network a room belongs to: the member's signed request and the accepting network's groupRegistered credential.";
505
+ readonly type: "object";
506
+ readonly additionalProperties: false;
507
+ readonly required: readonly ["registration", "acceptance"];
508
+ readonly properties: {
509
+ readonly registration: {
510
+ readonly $ref: "#/$defs/SignedTask";
511
+ readonly description: "A member's signed vtn/groups/register request.";
512
+ };
513
+ readonly acceptance: {
514
+ readonly $ref: "#/$defs/Credential";
515
+ readonly description: "The network's groupRegistered credential: a statement (`https://openvtc.org/vtn/vsc/groupRegistered/1`) issued by the accepting network, subject the group, `object.digestMultibase` the digest of `registration`, with a `credentialStatus` on the network's revocation list.";
516
+ };
517
+ };
518
+ };
519
+ readonly SignedTask: {
520
+ readonly type: "object";
521
+ readonly description: "A complete Trust Task document, with its proof, exactly as signed and received. Verified as a document in its own right; open so its proof still covers every member, and so its digest can be recomputed.";
522
+ };
523
+ readonly Membership: {
524
+ readonly type: "object";
525
+ readonly description: "A person's membership credential (VMC) from a community that is a member of this network, holder-bound to the requester's identity. Open for the same reason as `Credential`.";
526
+ };
527
+ };
528
+ };
529
+ };
530
+ /**
531
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
532
+ * tracks the *issuer* party's requirement because a response swaps the
533
+ * parties (§7.3 item 5).
534
+ */
535
+ export declare const RESPONSE_SPEC: {
536
+ readonly typeUri: "https://trusttasks.org/spec/vtn/rooms/pass/0.1#response";
537
+ readonly isBearer: false;
538
+ readonly isProofRequired: true;
539
+ readonly isRecipientRequired: true;
540
+ readonly isIssuedAtRequired: true;
541
+ readonly payloadSchema: {
542
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
543
+ readonly $ref: "#/$defs/Response";
544
+ readonly $defs: {
545
+ readonly Response: {
546
+ readonly $anchor: "response";
547
+ readonly title: "VTN Rooms — Pass — response payload";
548
+ readonly description: "The room pass.";
549
+ readonly type: "object";
550
+ readonly additionalProperties: false;
551
+ readonly required: readonly ["pass"];
552
+ readonly properties: {
553
+ readonly pass: {
554
+ readonly $ref: "#/$defs/RoomPass";
555
+ };
556
+ readonly ext: {
557
+ readonly $ref: "#/$defs/Ext";
558
+ };
559
+ };
560
+ };
561
+ readonly Ext: {
562
+ readonly title: "Ext";
563
+ 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.";
564
+ readonly type: "object";
565
+ readonly minProperties: 1;
566
+ readonly additionalProperties: true;
567
+ readonly propertyNames: {
568
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
569
+ };
570
+ };
571
+ readonly RoomPass: {
572
+ readonly description: "A room pass.";
573
+ readonly type: "object";
574
+ readonly additionalProperties: false;
575
+ readonly required: readonly ["room", "pass", "via"];
576
+ readonly properties: {
577
+ readonly room: {
578
+ readonly $ref: "#/$defs/RoomDef";
579
+ };
580
+ readonly pass: {
581
+ readonly $ref: "#/$defs/Credential";
582
+ readonly description: "The pass: a credential the network signs for the person, valid for `passMinutes`.";
583
+ };
584
+ readonly via: {
585
+ readonly type: "array";
586
+ readonly items: {
587
+ readonly $ref: "#/$defs/Did";
588
+ };
589
+ readonly description: "The networks the person's eligibility ran through, from the one nearest their community up to this network.";
590
+ };
591
+ };
592
+ };
593
+ readonly RoomDef: {
594
+ readonly description: "A room.";
595
+ readonly type: "object";
596
+ readonly additionalProperties: false;
597
+ readonly required: readonly ["id", "name", "role", "passMinutes"];
598
+ readonly properties: {
599
+ readonly id: {
600
+ readonly type: "string";
601
+ readonly pattern: "^[a-z0-9][a-z0-9-]{0,62}$";
602
+ readonly description: "The room's id.";
603
+ };
604
+ readonly name: {
605
+ readonly type: "string";
606
+ readonly maxLength: 200;
607
+ readonly description: "Its name.";
608
+ };
609
+ readonly role: {
610
+ readonly $ref: "#/$defs/RoleName";
611
+ readonly description: "The role whose groups' members may enter.";
612
+ };
613
+ readonly description: {
614
+ readonly type: "string";
615
+ readonly maxLength: 1000;
616
+ readonly description: "What it is for.";
617
+ };
618
+ readonly url: {
619
+ readonly type: "string";
620
+ readonly format: "uri";
621
+ readonly maxLength: 2048;
622
+ readonly description: "Where the room is.";
623
+ };
624
+ readonly passMinutes: {
625
+ readonly type: "integer";
626
+ readonly minimum: 1;
627
+ readonly maximum: 1440;
628
+ readonly description: "How long a pass lasts, in minutes: at most 1440 (24 hours). A pass is short-lived because it is not revoked; eligibility is re-proved for the next one.";
629
+ };
630
+ };
631
+ };
632
+ readonly RoleName: {
633
+ readonly type: "string";
634
+ readonly pattern: "^[a-z0-9_-]{1,64}$";
635
+ readonly description: "A role's name: 1–64 lowercase letters, digits, `-` or `_`.";
636
+ };
637
+ readonly Did: {
638
+ readonly type: "string";
639
+ readonly pattern: "^did:[a-z0-9]+:.+$";
640
+ readonly maxLength: 2048;
641
+ readonly description: "A DID.";
642
+ };
643
+ readonly Credential: {
644
+ readonly type: "object";
645
+ readonly description: "A DTG credential (W3C VC 2.0, JSON) exactly as signed. Verified by the party relying on it, never by its shape here: it is an open object so a binding cannot narrow away a member the proof covers.";
646
+ };
647
+ readonly ChainLink: {
648
+ readonly description: "One registration on the path from a person's community up to the network a room belongs to: the member's signed request and the accepting network's groupRegistered credential.";
649
+ readonly type: "object";
650
+ readonly additionalProperties: false;
651
+ readonly required: readonly ["registration", "acceptance"];
652
+ readonly properties: {
653
+ readonly registration: {
654
+ readonly $ref: "#/$defs/SignedTask";
655
+ readonly description: "A member's signed vtn/groups/register request.";
656
+ };
657
+ readonly acceptance: {
658
+ readonly $ref: "#/$defs/Credential";
659
+ readonly description: "The network's groupRegistered credential: a statement (`https://openvtc.org/vtn/vsc/groupRegistered/1`) issued by the accepting network, subject the group, `object.digestMultibase` the digest of `registration`, with a `credentialStatus` on the network's revocation list.";
660
+ };
661
+ };
662
+ };
663
+ readonly SignedTask: {
664
+ readonly type: "object";
665
+ readonly description: "A complete Trust Task document, with its proof, exactly as signed and received. Verified as a document in its own right; open so its proof still covers every member, and so its digest can be recomputed.";
666
+ };
667
+ readonly Membership: {
668
+ readonly type: "object";
669
+ readonly description: "A person's membership credential (VMC) from a community that is a member of this network, holder-bound to the requester's identity. Open for the same reason as `Credential`.";
670
+ };
671
+ };
672
+ };
673
+ };
674
+ //# sourceMappingURL=payload.d.ts.map