@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,423 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtn/membership/acknowledge/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { Credential, Description, Did_VtnV0_1 as Did, EntryKind, EntryProfile, EntryState, Ext, IndexEntry, Tags, Url } from "../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * A listed party's acknowledgement of a network's membership offer. The outer document members are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface VTNMembershipAcknowledgePayload {
13
+ /**
14
+ * The party's membership credential, issued by the requester to the network, carrying the `digestMultibase` of the offer it acknowledges.
15
+ */
16
+ acknowledgement: Credential;
17
+ ext?: Ext;
18
+ }
19
+ /**
20
+ * The party's entry as now published, with the network's signed grant and the party's acknowledgement.
21
+ */
22
+ export interface VTNMembershipAcknowledgeResponsePayload {
23
+ entry: IndexEntry;
24
+ ext?: Ext;
25
+ }
26
+
27
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
28
+ export type { Credential, Description, Did, EntryKind, EntryProfile, EntryState, Ext, IndexEntry, Tags, Url };
29
+
30
+ /** Trust Task type URI. */
31
+ export const TYPE_URI = "https://trusttasks.org/spec/vtn/membership/acknowledge/0.1" as const;
32
+
33
+ /**
34
+ * The earlier version of this specification that this one declares it
35
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
36
+ * `null`. Only the direct declaration — follow the chain with
37
+ * `extendsChain` / `readForSpec`.
38
+ */
39
+ export const EXTENDS: string | null = null;
40
+
41
+ /**
42
+ * Why this version is deprecated, or `null` while it is current. A
43
+ * superseded or retired version is still supported, and is withdrawn from
44
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
45
+ * Versions").
46
+ */
47
+ export const DEPRECATION: string | null = null;
48
+
49
+ /** Stable alias for this specification's request payload shape. */
50
+ export type Payload = VTNMembershipAcknowledgePayload;
51
+
52
+ /** Trust Task response type URI (request type URI + "#response"). */
53
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtn/membership/acknowledge/0.1#response" as const;
54
+
55
+ /** Stable alias for this specification's success-response payload shape. */
56
+ export type Response = VTNMembershipAcknowledgeResponsePayload;
57
+
58
+ /**
59
+ * This specification's payload schema, as a value.
60
+ *
61
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
62
+ * rather than only as a `.json` file because TypeScript types are erased
63
+ * at runtime: without a schema a consumer has nothing to validate, and
64
+ * every REQUIRED payload member is optional in practice. Cross-file
65
+ * `$ref`s are already inlined, so it needs no resolver.
66
+ */
67
+ export const PAYLOAD_SCHEMA = {
68
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
69
+ "$id": "https://trusttasks.org/spec/vtn/membership/acknowledge/0.1",
70
+ "title": "VTN Membership — Acknowledge — payload",
71
+ "description": "A listed party's acknowledgement of a network's membership offer. The outer document members are owned by the framework — SPEC §6.3.",
72
+ "type": "object",
73
+ "additionalProperties": false,
74
+ "required": [
75
+ "acknowledgement"
76
+ ],
77
+ "properties": {
78
+ "acknowledgement": {
79
+ "$ref": "#/$defs/Credential",
80
+ "description": "The party's membership credential, issued by the requester to the network, carrying the `digestMultibase` of the offer it acknowledges."
81
+ },
82
+ "ext": {
83
+ "$ref": "#/$defs/Ext"
84
+ }
85
+ },
86
+ "$defs": {
87
+ "Response": {
88
+ "$anchor": "response",
89
+ "title": "VTN Membership — Acknowledge — response payload",
90
+ "description": "The party's entry as now published, with the network's signed grant and the party's acknowledgement.",
91
+ "type": "object",
92
+ "additionalProperties": false,
93
+ "required": [
94
+ "entry"
95
+ ],
96
+ "properties": {
97
+ "entry": {
98
+ "$ref": "#/$defs/IndexEntry"
99
+ },
100
+ "ext": {
101
+ "$ref": "#/$defs/Ext"
102
+ }
103
+ }
104
+ },
105
+ "Ext": {
106
+ "title": "Ext",
107
+ "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.",
108
+ "type": "object",
109
+ "minProperties": 1,
110
+ "additionalProperties": true,
111
+ "propertyNames": {
112
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
113
+ }
114
+ },
115
+ "IndexEntry": {
116
+ "description": "An entry as the network publishes it, with the credentials a verifier needs.",
117
+ "type": "object",
118
+ "additionalProperties": false,
119
+ "required": [
120
+ "did",
121
+ "kind",
122
+ "state",
123
+ "acknowledged",
124
+ "profile",
125
+ "listing"
126
+ ],
127
+ "properties": {
128
+ "did": {
129
+ "$ref": "#/$defs/Did",
130
+ "description": "The listed party's DID."
131
+ },
132
+ "kind": {
133
+ "$ref": "#/$defs/EntryKind"
134
+ },
135
+ "state": {
136
+ "$ref": "#/$defs/EntryState"
137
+ },
138
+ "acknowledged": {
139
+ "type": "boolean",
140
+ "description": "Whether the party acknowledged: true only for a member. Every published entry states it (VTI-VTN-013)."
141
+ },
142
+ "label": {
143
+ "type": "string",
144
+ "maxLength": 200,
145
+ "description": "The name the directory shows."
146
+ },
147
+ "profile": {
148
+ "$ref": "#/$defs/EntryProfile"
149
+ },
150
+ "listing": {
151
+ "$ref": "#/$defs/Credential",
152
+ "description": "The listing credential."
153
+ },
154
+ "grant": {
155
+ "$ref": "#/$defs/Credential",
156
+ "description": "The membership grant, once acknowledged."
157
+ },
158
+ "acknowledgement": {
159
+ "$ref": "#/$defs/Credential",
160
+ "description": "The party's acknowledgement."
161
+ },
162
+ "repudiation": {
163
+ "$ref": "#/$defs/Credential",
164
+ "description": "The party's repudiation."
165
+ }
166
+ }
167
+ },
168
+ "Credential": {
169
+ "type": "object",
170
+ "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."
171
+ },
172
+ "EntryProfile": {
173
+ "description": "What the directory shows about an entry, set by the network's administrators.",
174
+ "type": "object",
175
+ "additionalProperties": false,
176
+ "required": [],
177
+ "properties": {
178
+ "description": {
179
+ "$ref": "#/$defs/Description"
180
+ },
181
+ "url": {
182
+ "$ref": "#/$defs/Url"
183
+ },
184
+ "tags": {
185
+ "$ref": "#/$defs/Tags"
186
+ }
187
+ }
188
+ },
189
+ "Tags": {
190
+ "type": "array",
191
+ "items": {
192
+ "type": "string",
193
+ "minLength": 1,
194
+ "maxLength": 64
195
+ },
196
+ "description": "Free-text tags the directory searches.",
197
+ "maxItems": 32
198
+ },
199
+ "Url": {
200
+ "type": "string",
201
+ "format": "uri",
202
+ "maxLength": 2048,
203
+ "description": "The party's public address."
204
+ },
205
+ "Description": {
206
+ "type": "string",
207
+ "maxLength": 2000,
208
+ "description": "What the listed party is, for the directory."
209
+ },
210
+ "EntryState": {
211
+ "type": "string",
212
+ "enum": [
213
+ "listed",
214
+ "acknowledged",
215
+ "repudiated",
216
+ "suspended",
217
+ "removed",
218
+ "departed"
219
+ ],
220
+ "description": "`listed`: the network lists the party and the party has not answered; this is never membership (VTI-VTN-013). `acknowledged`: the party acknowledged the network's grant; it is a member. `repudiated`: the party rejected the listing. `suspended`: the network suspended the membership; reversible. `removed`: the network ended the entry. `departed`: the party left, by repudiating the grant."
221
+ },
222
+ "EntryKind": {
223
+ "type": "string",
224
+ "enum": [
225
+ "community",
226
+ "network"
227
+ ],
228
+ "description": "What the entry lists (VTI-VTN-031): a community, whose entries are its members, or a network, whose entries are further listings. A listing credential carries the same fact as `nodeType` `VTC` or `VTN`."
229
+ },
230
+ "Did": {
231
+ "type": "string",
232
+ "pattern": "^did:[a-z0-9]+:.+$",
233
+ "maxLength": 2048,
234
+ "description": "A DID."
235
+ }
236
+ }
237
+ } as const;
238
+
239
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
240
+ export const RESPONSE_PAYLOAD_SCHEMA = {
241
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
242
+ "$ref": "#/$defs/Response",
243
+ "$defs": {
244
+ "Response": {
245
+ "$anchor": "response",
246
+ "title": "VTN Membership — Acknowledge — response payload",
247
+ "description": "The party's entry as now published, with the network's signed grant and the party's acknowledgement.",
248
+ "type": "object",
249
+ "additionalProperties": false,
250
+ "required": [
251
+ "entry"
252
+ ],
253
+ "properties": {
254
+ "entry": {
255
+ "$ref": "#/$defs/IndexEntry"
256
+ },
257
+ "ext": {
258
+ "$ref": "#/$defs/Ext"
259
+ }
260
+ }
261
+ },
262
+ "Ext": {
263
+ "title": "Ext",
264
+ "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.",
265
+ "type": "object",
266
+ "minProperties": 1,
267
+ "additionalProperties": true,
268
+ "propertyNames": {
269
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
270
+ }
271
+ },
272
+ "IndexEntry": {
273
+ "description": "An entry as the network publishes it, with the credentials a verifier needs.",
274
+ "type": "object",
275
+ "additionalProperties": false,
276
+ "required": [
277
+ "did",
278
+ "kind",
279
+ "state",
280
+ "acknowledged",
281
+ "profile",
282
+ "listing"
283
+ ],
284
+ "properties": {
285
+ "did": {
286
+ "$ref": "#/$defs/Did",
287
+ "description": "The listed party's DID."
288
+ },
289
+ "kind": {
290
+ "$ref": "#/$defs/EntryKind"
291
+ },
292
+ "state": {
293
+ "$ref": "#/$defs/EntryState"
294
+ },
295
+ "acknowledged": {
296
+ "type": "boolean",
297
+ "description": "Whether the party acknowledged: true only for a member. Every published entry states it (VTI-VTN-013)."
298
+ },
299
+ "label": {
300
+ "type": "string",
301
+ "maxLength": 200,
302
+ "description": "The name the directory shows."
303
+ },
304
+ "profile": {
305
+ "$ref": "#/$defs/EntryProfile"
306
+ },
307
+ "listing": {
308
+ "$ref": "#/$defs/Credential",
309
+ "description": "The listing credential."
310
+ },
311
+ "grant": {
312
+ "$ref": "#/$defs/Credential",
313
+ "description": "The membership grant, once acknowledged."
314
+ },
315
+ "acknowledgement": {
316
+ "$ref": "#/$defs/Credential",
317
+ "description": "The party's acknowledgement."
318
+ },
319
+ "repudiation": {
320
+ "$ref": "#/$defs/Credential",
321
+ "description": "The party's repudiation."
322
+ }
323
+ }
324
+ },
325
+ "Credential": {
326
+ "type": "object",
327
+ "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."
328
+ },
329
+ "EntryProfile": {
330
+ "description": "What the directory shows about an entry, set by the network's administrators.",
331
+ "type": "object",
332
+ "additionalProperties": false,
333
+ "required": [],
334
+ "properties": {
335
+ "description": {
336
+ "$ref": "#/$defs/Description"
337
+ },
338
+ "url": {
339
+ "$ref": "#/$defs/Url"
340
+ },
341
+ "tags": {
342
+ "$ref": "#/$defs/Tags"
343
+ }
344
+ }
345
+ },
346
+ "Tags": {
347
+ "type": "array",
348
+ "items": {
349
+ "type": "string",
350
+ "minLength": 1,
351
+ "maxLength": 64
352
+ },
353
+ "description": "Free-text tags the directory searches.",
354
+ "maxItems": 32
355
+ },
356
+ "Url": {
357
+ "type": "string",
358
+ "format": "uri",
359
+ "maxLength": 2048,
360
+ "description": "The party's public address."
361
+ },
362
+ "Description": {
363
+ "type": "string",
364
+ "maxLength": 2000,
365
+ "description": "What the listed party is, for the directory."
366
+ },
367
+ "EntryState": {
368
+ "type": "string",
369
+ "enum": [
370
+ "listed",
371
+ "acknowledged",
372
+ "repudiated",
373
+ "suspended",
374
+ "removed",
375
+ "departed"
376
+ ],
377
+ "description": "`listed`: the network lists the party and the party has not answered; this is never membership (VTI-VTN-013). `acknowledged`: the party acknowledged the network's grant; it is a member. `repudiated`: the party rejected the listing. `suspended`: the network suspended the membership; reversible. `removed`: the network ended the entry. `departed`: the party left, by repudiating the grant."
378
+ },
379
+ "EntryKind": {
380
+ "type": "string",
381
+ "enum": [
382
+ "community",
383
+ "network"
384
+ ],
385
+ "description": "What the entry lists (VTI-VTN-031): a community, whose entries are its members, or a network, whose entries are further listings. A listing credential carries the same fact as `nodeType` `VTC` or `VTN`."
386
+ },
387
+ "Did": {
388
+ "type": "string",
389
+ "pattern": "^did:[a-z0-9]+:.+$",
390
+ "maxLength": 2048,
391
+ "description": "A DID."
392
+ }
393
+ }
394
+ } as const;
395
+
396
+ /**
397
+ * SPEC.md §7.2 policy for the request variant, from this specification's
398
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
399
+ * per-specification and cannot be derived from the document alone, and
400
+ * item 2 needs the schema this carries.
401
+ */
402
+ export const SPEC = {
403
+ typeUri: TYPE_URI,
404
+ isBearer: false,
405
+ isProofRequired: true,
406
+ isRecipientRequired: true,
407
+ isIssuedAtRequired: true,
408
+ payloadSchema: PAYLOAD_SCHEMA,
409
+ } as const;
410
+
411
+ /**
412
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
413
+ * tracks the *issuer* party's requirement because a response swaps the
414
+ * parties (§7.3 item 5).
415
+ */
416
+ export const RESPONSE_SPEC = {
417
+ typeUri: RESPONSE_TYPE_URI,
418
+ isBearer: false,
419
+ isProofRequired: true,
420
+ isRecipientRequired: true,
421
+ isIssuedAtRequired: true,
422
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
423
+ } as const;
@@ -0,0 +1,183 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtn/membership/offer/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { Credential, Ext } from "../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * A listed party's request for its membership offer. Empty: the party asks about itself. The outer document members are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface VTNMembershipOfferPayload {
13
+ ext?: Ext;
14
+ }
15
+ /**
16
+ * The network's membership grant for the party, unsigned.
17
+ */
18
+ export interface VTNMembershipOfferResponsePayload {
19
+ /**
20
+ * The membership grant the network will sign on acknowledgement, without its proof.
21
+ */
22
+ offer: Credential;
23
+ ext?: Ext;
24
+ }
25
+
26
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
27
+ export type { Credential, Ext };
28
+
29
+ /** Trust Task type URI. */
30
+ export const TYPE_URI = "https://trusttasks.org/spec/vtn/membership/offer/0.1" as const;
31
+
32
+ /**
33
+ * The earlier version of this specification that this one declares it
34
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
35
+ * `null`. Only the direct declaration — follow the chain with
36
+ * `extendsChain` / `readForSpec`.
37
+ */
38
+ export const EXTENDS: string | null = null;
39
+
40
+ /**
41
+ * Why this version is deprecated, or `null` while it is current. A
42
+ * superseded or retired version is still supported, and is withdrawn from
43
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
44
+ * Versions").
45
+ */
46
+ export const DEPRECATION: string | null = null;
47
+
48
+ /** Stable alias for this specification's request payload shape. */
49
+ export type Payload = VTNMembershipOfferPayload;
50
+
51
+ /** Trust Task response type URI (request type URI + "#response"). */
52
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtn/membership/offer/0.1#response" as const;
53
+
54
+ /** Stable alias for this specification's success-response payload shape. */
55
+ export type Response = VTNMembershipOfferResponsePayload;
56
+
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 const PAYLOAD_SCHEMA = {
67
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
68
+ "$id": "https://trusttasks.org/spec/vtn/membership/offer/0.1",
69
+ "title": "VTN Membership — Offer — payload",
70
+ "description": "A listed party's request for its membership offer. Empty: the party asks about itself. The outer document members are owned by the framework — SPEC §6.3.",
71
+ "type": "object",
72
+ "additionalProperties": false,
73
+ "properties": {
74
+ "ext": {
75
+ "$ref": "#/$defs/Ext"
76
+ }
77
+ },
78
+ "$defs": {
79
+ "Response": {
80
+ "$anchor": "response",
81
+ "title": "VTN Membership — Offer — response payload",
82
+ "description": "The network's membership grant for the party, unsigned.",
83
+ "type": "object",
84
+ "additionalProperties": false,
85
+ "required": [
86
+ "offer"
87
+ ],
88
+ "properties": {
89
+ "offer": {
90
+ "$ref": "#/$defs/Credential",
91
+ "description": "The membership grant the network will sign on acknowledgement, without its proof."
92
+ },
93
+ "ext": {
94
+ "$ref": "#/$defs/Ext"
95
+ }
96
+ }
97
+ },
98
+ "Ext": {
99
+ "title": "Ext",
100
+ "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.",
101
+ "type": "object",
102
+ "minProperties": 1,
103
+ "additionalProperties": true,
104
+ "propertyNames": {
105
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
106
+ }
107
+ },
108
+ "Credential": {
109
+ "type": "object",
110
+ "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."
111
+ }
112
+ }
113
+ } as const;
114
+
115
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
116
+ export const RESPONSE_PAYLOAD_SCHEMA = {
117
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
118
+ "$ref": "#/$defs/Response",
119
+ "$defs": {
120
+ "Response": {
121
+ "$anchor": "response",
122
+ "title": "VTN Membership — Offer — response payload",
123
+ "description": "The network's membership grant for the party, unsigned.",
124
+ "type": "object",
125
+ "additionalProperties": false,
126
+ "required": [
127
+ "offer"
128
+ ],
129
+ "properties": {
130
+ "offer": {
131
+ "$ref": "#/$defs/Credential",
132
+ "description": "The membership grant the network will sign on acknowledgement, without its proof."
133
+ },
134
+ "ext": {
135
+ "$ref": "#/$defs/Ext"
136
+ }
137
+ }
138
+ },
139
+ "Ext": {
140
+ "title": "Ext",
141
+ "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.",
142
+ "type": "object",
143
+ "minProperties": 1,
144
+ "additionalProperties": true,
145
+ "propertyNames": {
146
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
147
+ }
148
+ },
149
+ "Credential": {
150
+ "type": "object",
151
+ "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."
152
+ }
153
+ }
154
+ } as const;
155
+
156
+ /**
157
+ * SPEC.md §7.2 policy for the request variant, from this specification's
158
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
159
+ * per-specification and cannot be derived from the document alone, and
160
+ * item 2 needs the schema this carries.
161
+ */
162
+ export const SPEC = {
163
+ typeUri: TYPE_URI,
164
+ isBearer: false,
165
+ isProofRequired: true,
166
+ isRecipientRequired: true,
167
+ isIssuedAtRequired: false,
168
+ payloadSchema: PAYLOAD_SCHEMA,
169
+ } as const;
170
+
171
+ /**
172
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
173
+ * tracks the *issuer* party's requirement because a response swaps the
174
+ * parties (§7.3 item 5).
175
+ */
176
+ export const RESPONSE_SPEC = {
177
+ typeUri: RESPONSE_TYPE_URI,
178
+ isBearer: false,
179
+ isProofRequired: true,
180
+ isRecipientRequired: true,
181
+ isIssuedAtRequired: false,
182
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
183
+ } as const;