@openvtc/trust-tasks 0.28.10 → 0.28.12

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 (270) hide show
  1. package/CHANGELOG.md +136 -0
  2. package/dist/_shared/components.d.ts +941 -0
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/index.d.ts +156 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +156 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/vta/collection/_shared/0.1/collection.d.ts +16 -0
  9. package/dist/vta/collection/_shared/0.1/collection.d.ts.map +1 -0
  10. package/dist/vta/collection/_shared/0.1/collection.js +6 -0
  11. package/dist/vta/collection/_shared/0.1/collection.js.map +1 -0
  12. package/dist/vta/collection/claim/0.1/payload.d.ts +352 -0
  13. package/dist/vta/collection/claim/0.1/payload.d.ts.map +1 -0
  14. package/dist/vta/collection/claim/0.1/payload.js +198 -0
  15. package/dist/vta/collection/claim/0.1/payload.js.map +1 -0
  16. package/dist/vta/collection/list/0.1/payload.d.ts +740 -0
  17. package/dist/vta/collection/list/0.1/payload.d.ts.map +1 -0
  18. package/dist/vta/collection/list/0.1/payload.js +447 -0
  19. package/dist/vta/collection/list/0.1/payload.js.map +1 -0
  20. package/dist/vta/collection/release/0.1/payload.d.ts +316 -0
  21. package/dist/vta/collection/release/0.1/payload.d.ts.map +1 -0
  22. package/dist/vta/collection/release/0.1/payload.js +182 -0
  23. package/dist/vta/collection/release/0.1/payload.js.map +1 -0
  24. package/dist/vta/notifications/deposit/0.1/payload.d.ts +349 -0
  25. package/dist/vta/notifications/deposit/0.1/payload.d.ts.map +1 -0
  26. package/dist/vta/notifications/deposit/0.1/payload.js +198 -0
  27. package/dist/vta/notifications/deposit/0.1/payload.js.map +1 -0
  28. package/dist/vta/pcs/vetter/recover/0.1/payload.d.ts +667 -0
  29. package/dist/vta/pcs/vetter/recover/0.1/payload.d.ts.map +1 -0
  30. package/dist/vta/pcs/vetter/recover/0.1/payload.js +387 -0
  31. package/dist/vta/pcs/vetter/recover/0.1/payload.js.map +1 -0
  32. package/dist/vtc/notifications/_shared/0.1/received-notification.d.ts +16 -0
  33. package/dist/vtc/notifications/_shared/0.1/received-notification.d.ts.map +1 -0
  34. package/dist/vtc/notifications/_shared/0.1/received-notification.js +6 -0
  35. package/dist/vtc/notifications/_shared/0.1/received-notification.js.map +1 -0
  36. package/dist/vtc/notifications/list/0.1/payload.d.ts +1311 -0
  37. package/dist/vtc/notifications/list/0.1/payload.d.ts.map +1 -0
  38. package/dist/vtc/notifications/list/0.1/payload.js +753 -0
  39. package/dist/vtc/notifications/list/0.1/payload.js.map +1 -0
  40. package/dist/vtc/notifications/relay/0.1/payload.d.ts +568 -0
  41. package/dist/vtc/notifications/relay/0.1/payload.d.ts.map +1 -0
  42. package/dist/vtc/notifications/relay/0.1/payload.js +339 -0
  43. package/dist/vtc/notifications/relay/0.1/payload.js.map +1 -0
  44. package/dist/vtc/notifications/show/0.1/payload.d.ts +1229 -0
  45. package/dist/vtc/notifications/show/0.1/payload.d.ts.map +1 -0
  46. package/dist/vtc/notifications/show/0.1/payload.js +727 -0
  47. package/dist/vtc/notifications/show/0.1/payload.js.map +1 -0
  48. package/dist/vtc/vetting/vetters/pcs-binding/reset/0.1/payload.d.ts +340 -0
  49. package/dist/vtc/vetting/vetters/pcs-binding/reset/0.1/payload.d.ts.map +1 -0
  50. package/dist/vtc/vetting/vetters/pcs-binding/reset/0.1/payload.js +194 -0
  51. package/dist/vtc/vetting/vetters/pcs-binding/reset/0.1/payload.js.map +1 -0
  52. package/dist/vtc/vetting/vetters/pcs-binding/show/0.1/payload.d.ts +425 -0
  53. package/dist/vtc/vetting/vetters/pcs-binding/show/0.1/payload.d.ts.map +1 -0
  54. package/dist/vtc/vetting/vetters/pcs-binding/show/0.1/payload.js +233 -0
  55. package/dist/vtc/vetting/vetters/pcs-binding/show/0.1/payload.js.map +1 -0
  56. package/dist/vtn/_shared/0.1/directory.d.ts +16 -0
  57. package/dist/vtn/_shared/0.1/directory.d.ts.map +1 -0
  58. package/dist/vtn/_shared/0.1/directory.js +6 -0
  59. package/dist/vtn/_shared/0.1/directory.js.map +1 -0
  60. package/dist/vtn/_shared/0.1/entry.d.ts +16 -0
  61. package/dist/vtn/_shared/0.1/entry.d.ts.map +1 -0
  62. package/dist/vtn/_shared/0.1/entry.js +6 -0
  63. package/dist/vtn/_shared/0.1/entry.js.map +1 -0
  64. package/dist/vtn/_shared/0.1/graph.d.ts +16 -0
  65. package/dist/vtn/_shared/0.1/graph.d.ts.map +1 -0
  66. package/dist/vtn/_shared/0.1/graph.js +6 -0
  67. package/dist/vtn/_shared/0.1/graph.js.map +1 -0
  68. package/dist/vtn/_shared/0.1/groups.d.ts +16 -0
  69. package/dist/vtn/_shared/0.1/groups.d.ts.map +1 -0
  70. package/dist/vtn/_shared/0.1/groups.js +6 -0
  71. package/dist/vtn/_shared/0.1/groups.js.map +1 -0
  72. package/dist/vtn/_shared/0.1/membership.d.ts +16 -0
  73. package/dist/vtn/_shared/0.1/membership.d.ts.map +1 -0
  74. package/dist/vtn/_shared/0.1/membership.js +6 -0
  75. package/dist/vtn/_shared/0.1/membership.js.map +1 -0
  76. package/dist/vtn/_shared/0.1/relay.d.ts +16 -0
  77. package/dist/vtn/_shared/0.1/relay.d.ts.map +1 -0
  78. package/dist/vtn/_shared/0.1/relay.js +6 -0
  79. package/dist/vtn/_shared/0.1/relay.js.map +1 -0
  80. package/dist/vtn/_shared/0.1/rooms.d.ts +16 -0
  81. package/dist/vtn/_shared/0.1/rooms.d.ts.map +1 -0
  82. package/dist/vtn/_shared/0.1/rooms.js +6 -0
  83. package/dist/vtn/_shared/0.1/rooms.js.map +1 -0
  84. package/dist/vtn/audit/list/0.1/payload.d.ts +457 -0
  85. package/dist/vtn/audit/list/0.1/payload.d.ts.map +1 -0
  86. package/dist/vtn/audit/list/0.1/payload.js +292 -0
  87. package/dist/vtn/audit/list/0.1/payload.js.map +1 -0
  88. package/dist/vtn/broadcasts/list/0.1/payload.d.ts +687 -0
  89. package/dist/vtn/broadcasts/list/0.1/payload.d.ts.map +1 -0
  90. package/dist/vtn/broadcasts/list/0.1/payload.js +407 -0
  91. package/dist/vtn/broadcasts/list/0.1/payload.js.map +1 -0
  92. package/dist/vtn/broadcasts/send/0.1/payload.d.ts +728 -0
  93. package/dist/vtn/broadcasts/send/0.1/payload.d.ts.map +1 -0
  94. package/dist/vtn/broadcasts/send/0.1/payload.js +425 -0
  95. package/dist/vtn/broadcasts/send/0.1/payload.js.map +1 -0
  96. package/dist/vtn/broadcasts/show/0.1/payload.d.ts +670 -0
  97. package/dist/vtn/broadcasts/show/0.1/payload.d.ts.map +1 -0
  98. package/dist/vtn/broadcasts/show/0.1/payload.js +402 -0
  99. package/dist/vtn/broadcasts/show/0.1/payload.js.map +1 -0
  100. package/dist/vtn/directory/federated/0.1/payload.d.ts +939 -0
  101. package/dist/vtn/directory/federated/0.1/payload.d.ts.map +1 -0
  102. package/dist/vtn/directory/federated/0.1/payload.js +536 -0
  103. package/dist/vtn/directory/federated/0.1/payload.js.map +1 -0
  104. package/dist/vtn/directory/search/0.1/payload.d.ts +643 -0
  105. package/dist/vtn/directory/search/0.1/payload.d.ts.map +1 -0
  106. package/dist/vtn/directory/search/0.1/payload.js +368 -0
  107. package/dist/vtn/directory/search/0.1/payload.js.map +1 -0
  108. package/dist/vtn/directory/summary/0.1/payload.d.ts +366 -0
  109. package/dist/vtn/directory/summary/0.1/payload.d.ts.map +1 -0
  110. package/dist/vtn/directory/summary/0.1/payload.js +216 -0
  111. package/dist/vtn/directory/summary/0.1/payload.js.map +1 -0
  112. package/dist/vtn/entries/show/0.1/payload.d.ts +682 -0
  113. package/dist/vtn/entries/show/0.1/payload.d.ts.map +1 -0
  114. package/dist/vtn/entries/show/0.1/payload.js +398 -0
  115. package/dist/vtn/entries/show/0.1/payload.js.map +1 -0
  116. package/dist/vtn/graph/member/0.1/payload.d.ts +754 -0
  117. package/dist/vtn/graph/member/0.1/payload.d.ts.map +1 -0
  118. package/dist/vtn/graph/member/0.1/payload.js +470 -0
  119. package/dist/vtn/graph/member/0.1/payload.js.map +1 -0
  120. package/dist/vtn/graph/show/0.1/payload.d.ts +754 -0
  121. package/dist/vtn/graph/show/0.1/payload.d.ts.map +1 -0
  122. package/dist/vtn/graph/show/0.1/payload.js +468 -0
  123. package/dist/vtn/graph/show/0.1/payload.js.map +1 -0
  124. package/dist/vtn/groups/list/0.1/payload.d.ts +489 -0
  125. package/dist/vtn/groups/list/0.1/payload.d.ts.map +1 -0
  126. package/dist/vtn/groups/list/0.1/payload.js +282 -0
  127. package/dist/vtn/groups/list/0.1/payload.js.map +1 -0
  128. package/dist/vtn/groups/register/0.1/payload.d.ts +504 -0
  129. package/dist/vtn/groups/register/0.1/payload.d.ts.map +1 -0
  130. package/dist/vtn/groups/register/0.1/payload.js +291 -0
  131. package/dist/vtn/groups/register/0.1/payload.js.map +1 -0
  132. package/dist/vtn/listings/create/0.1/payload.d.ts +954 -0
  133. package/dist/vtn/listings/create/0.1/payload.d.ts.map +1 -0
  134. package/dist/vtn/listings/create/0.1/payload.js +549 -0
  135. package/dist/vtn/listings/create/0.1/payload.js.map +1 -0
  136. package/dist/vtn/listings/list/0.1/payload.d.ts +933 -0
  137. package/dist/vtn/listings/list/0.1/payload.d.ts.map +1 -0
  138. package/dist/vtn/listings/list/0.1/payload.js +538 -0
  139. package/dist/vtn/listings/list/0.1/payload.js.map +1 -0
  140. package/dist/vtn/listings/reinstate/0.1/payload.d.ts +926 -0
  141. package/dist/vtn/listings/reinstate/0.1/payload.d.ts.map +1 -0
  142. package/dist/vtn/listings/reinstate/0.1/payload.js +536 -0
  143. package/dist/vtn/listings/reinstate/0.1/payload.js.map +1 -0
  144. package/dist/vtn/listings/remove/0.1/payload.d.ts +926 -0
  145. package/dist/vtn/listings/remove/0.1/payload.d.ts.map +1 -0
  146. package/dist/vtn/listings/remove/0.1/payload.js +536 -0
  147. package/dist/vtn/listings/remove/0.1/payload.js.map +1 -0
  148. package/dist/vtn/listings/show/0.1/payload.d.ts +914 -0
  149. package/dist/vtn/listings/show/0.1/payload.d.ts.map +1 -0
  150. package/dist/vtn/listings/show/0.1/payload.js +532 -0
  151. package/dist/vtn/listings/show/0.1/payload.js.map +1 -0
  152. package/dist/vtn/listings/suspend/0.1/payload.d.ts +926 -0
  153. package/dist/vtn/listings/suspend/0.1/payload.d.ts.map +1 -0
  154. package/dist/vtn/listings/suspend/0.1/payload.js +536 -0
  155. package/dist/vtn/listings/suspend/0.1/payload.js.map +1 -0
  156. package/dist/vtn/listings/update/0.1/payload.d.ts +966 -0
  157. package/dist/vtn/listings/update/0.1/payload.d.ts.map +1 -0
  158. package/dist/vtn/listings/update/0.1/payload.js +550 -0
  159. package/dist/vtn/listings/update/0.1/payload.js.map +1 -0
  160. package/dist/vtn/membership/acknowledge/0.1/payload.d.ts +654 -0
  161. package/dist/vtn/membership/acknowledge/0.1/payload.d.ts.map +1 -0
  162. package/dist/vtn/membership/acknowledge/0.1/payload.js +386 -0
  163. package/dist/vtn/membership/acknowledge/0.1/payload.js.map +1 -0
  164. package/dist/vtn/membership/offer/0.1/payload.d.ts +247 -0
  165. package/dist/vtn/membership/offer/0.1/payload.d.ts.map +1 -0
  166. package/dist/vtn/membership/offer/0.1/payload.js +147 -0
  167. package/dist/vtn/membership/offer/0.1/payload.js.map +1 -0
  168. package/dist/vtn/membership/repudiate/0.1/payload.d.ts +654 -0
  169. package/dist/vtn/membership/repudiate/0.1/payload.d.ts.map +1 -0
  170. package/dist/vtn/membership/repudiate/0.1/payload.js +386 -0
  171. package/dist/vtn/membership/repudiate/0.1/payload.js.map +1 -0
  172. package/dist/vtn/memberships/groups/add/0.1/payload.d.ts +677 -0
  173. package/dist/vtn/memberships/groups/add/0.1/payload.d.ts.map +1 -0
  174. package/dist/vtn/memberships/groups/add/0.1/payload.js +394 -0
  175. package/dist/vtn/memberships/groups/add/0.1/payload.js.map +1 -0
  176. package/dist/vtn/memberships/join/0.1/payload.d.ts +755 -0
  177. package/dist/vtn/memberships/join/0.1/payload.d.ts.map +1 -0
  178. package/dist/vtn/memberships/join/0.1/payload.js +438 -0
  179. package/dist/vtn/memberships/join/0.1/payload.js.map +1 -0
  180. package/dist/vtn/memberships/leave/0.1/payload.d.ts +653 -0
  181. package/dist/vtn/memberships/leave/0.1/payload.d.ts.map +1 -0
  182. package/dist/vtn/memberships/leave/0.1/payload.js +384 -0
  183. package/dist/vtn/memberships/leave/0.1/payload.js.map +1 -0
  184. package/dist/vtn/memberships/list/0.1/payload.d.ts +651 -0
  185. package/dist/vtn/memberships/list/0.1/payload.d.ts.map +1 -0
  186. package/dist/vtn/memberships/list/0.1/payload.js +383 -0
  187. package/dist/vtn/memberships/list/0.1/payload.js.map +1 -0
  188. package/dist/vtn/memberships/repudiate/0.1/payload.d.ts +669 -0
  189. package/dist/vtn/memberships/repudiate/0.1/payload.d.ts.map +1 -0
  190. package/dist/vtn/memberships/repudiate/0.1/payload.js +391 -0
  191. package/dist/vtn/memberships/repudiate/0.1/payload.js.map +1 -0
  192. package/dist/vtn/outbox/list/0.1/payload.d.ts +567 -0
  193. package/dist/vtn/outbox/list/0.1/payload.d.ts.map +1 -0
  194. package/dist/vtn/outbox/list/0.1/payload.js +333 -0
  195. package/dist/vtn/outbox/list/0.1/payload.js.map +1 -0
  196. package/dist/vtn/outbox/retry/0.1/payload.d.ts +235 -0
  197. package/dist/vtn/outbox/retry/0.1/payload.d.ts.map +1 -0
  198. package/dist/vtn/outbox/retry/0.1/payload.js +141 -0
  199. package/dist/vtn/outbox/retry/0.1/payload.js.map +1 -0
  200. package/dist/vtn/relay/deliver/0.1/payload.d.ts +592 -0
  201. package/dist/vtn/relay/deliver/0.1/payload.d.ts.map +1 -0
  202. package/dist/vtn/relay/deliver/0.1/payload.js +352 -0
  203. package/dist/vtn/relay/deliver/0.1/payload.js.map +1 -0
  204. package/dist/vtn/roles/list/0.1/payload.d.ts +371 -0
  205. package/dist/vtn/roles/list/0.1/payload.d.ts.map +1 -0
  206. package/dist/vtn/roles/list/0.1/payload.js +213 -0
  207. package/dist/vtn/roles/list/0.1/payload.js.map +1 -0
  208. package/dist/vtn/rooms/list/0.1/payload.d.ts +447 -0
  209. package/dist/vtn/rooms/list/0.1/payload.d.ts.map +1 -0
  210. package/dist/vtn/rooms/list/0.1/payload.js +255 -0
  211. package/dist/vtn/rooms/list/0.1/payload.js.map +1 -0
  212. package/dist/vtn/rooms/pass/0.1/payload.d.ts +674 -0
  213. package/dist/vtn/rooms/pass/0.1/payload.d.ts.map +1 -0
  214. package/dist/vtn/rooms/pass/0.1/payload.js +383 -0
  215. package/dist/vtn/rooms/pass/0.1/payload.js.map +1 -0
  216. package/package.json +1 -1
  217. package/src/_shared/components.ts +960 -0
  218. package/src/index.ts +156 -0
  219. package/src/vta/collection/_shared/0.1/collection.ts +17 -0
  220. package/src/vta/collection/claim/0.1/payload.ts +247 -0
  221. package/src/vta/collection/list/0.1/payload.ts +500 -0
  222. package/src/vta/collection/release/0.1/payload.ts +223 -0
  223. package/src/vta/notifications/deposit/0.1/payload.ts +243 -0
  224. package/src/vta/pcs/vetter/recover/0.1/payload.ts +437 -0
  225. package/src/vtc/notifications/_shared/0.1/received-notification.ts +17 -0
  226. package/src/vtc/notifications/list/0.1/payload.ts +809 -0
  227. package/src/vtc/notifications/relay/0.1/payload.ts +382 -0
  228. package/src/vtc/notifications/show/0.1/payload.ts +761 -0
  229. package/src/vtc/vetting/vetters/pcs-binding/reset/0.1/payload.ts +247 -0
  230. package/src/vtc/vetting/vetters/pcs-binding/show/0.1/payload.ts +295 -0
  231. package/src/vtn/_shared/0.1/directory.ts +17 -0
  232. package/src/vtn/_shared/0.1/entry.ts +17 -0
  233. package/src/vtn/_shared/0.1/graph.ts +17 -0
  234. package/src/vtn/_shared/0.1/groups.ts +17 -0
  235. package/src/vtn/_shared/0.1/membership.ts +17 -0
  236. package/src/vtn/_shared/0.1/relay.ts +17 -0
  237. package/src/vtn/_shared/0.1/rooms.ts +17 -0
  238. package/src/vtn/audit/list/0.1/payload.ts +336 -0
  239. package/src/vtn/broadcasts/list/0.1/payload.ts +447 -0
  240. package/src/vtn/broadcasts/send/0.1/payload.ts +478 -0
  241. package/src/vtn/broadcasts/show/0.1/payload.ts +439 -0
  242. package/src/vtn/directory/federated/0.1/payload.ts +594 -0
  243. package/src/vtn/directory/search/0.1/payload.ts +418 -0
  244. package/src/vtn/directory/summary/0.1/payload.ts +253 -0
  245. package/src/vtn/entries/show/0.1/payload.ts +439 -0
  246. package/src/vtn/graph/member/0.1/payload.ts +511 -0
  247. package/src/vtn/graph/show/0.1/payload.ts +509 -0
  248. package/src/vtn/groups/list/0.1/payload.ts +322 -0
  249. package/src/vtn/groups/register/0.1/payload.ts +336 -0
  250. package/src/vtn/listings/create/0.1/payload.ts +594 -0
  251. package/src/vtn/listings/list/0.1/payload.ts +578 -0
  252. package/src/vtn/listings/reinstate/0.1/payload.ts +577 -0
  253. package/src/vtn/listings/remove/0.1/payload.ts +577 -0
  254. package/src/vtn/listings/show/0.1/payload.ts +569 -0
  255. package/src/vtn/listings/suspend/0.1/payload.ts +577 -0
  256. package/src/vtn/listings/update/0.1/payload.ts +603 -0
  257. package/src/vtn/membership/acknowledge/0.1/payload.ts +423 -0
  258. package/src/vtn/membership/offer/0.1/payload.ts +183 -0
  259. package/src/vtn/membership/repudiate/0.1/payload.ts +423 -0
  260. package/src/vtn/memberships/groups/add/0.1/payload.ts +442 -0
  261. package/src/vtn/memberships/join/0.1/payload.ts +488 -0
  262. package/src/vtn/memberships/leave/0.1/payload.ts +424 -0
  263. package/src/vtn/memberships/list/0.1/payload.ts +419 -0
  264. package/src/vtn/memberships/repudiate/0.1/payload.ts +435 -0
  265. package/src/vtn/outbox/list/0.1/payload.ts +369 -0
  266. package/src/vtn/outbox/retry/0.1/payload.ts +177 -0
  267. package/src/vtn/relay/deliver/0.1/payload.ts +397 -0
  268. package/src/vtn/roles/list/0.1/payload.ts +253 -0
  269. package/src/vtn/rooms/list/0.1/payload.ts +295 -0
  270. package/src/vtn/rooms/pass/0.1/payload.ts +439 -0
@@ -0,0 +1,966 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtn/listings/update/0.1/payload.schema.json
4
+ */
5
+ import type { Credential, Description, Did_VtnV0_1 as Did, Entry, EntryKind, EntryProfile, EntryState, Ext, Issued, Label, Reason_VtnV0_1 as Reason, StateChange, Tags, Url } from "../../../../_shared/components.js";
6
+ /**
7
+ * An administrator's edit to an entry's directory profile. No credential is reissued. The outer document members are owned by the framework — SPEC §6.3.
8
+ */
9
+ export interface VTNListingsUpdatePayload {
10
+ /**
11
+ * The DID of the entry to edit.
12
+ */
13
+ did: Did;
14
+ /**
15
+ * The new label. Absent: kept. An empty string clears it.
16
+ */
17
+ label?: Label;
18
+ /**
19
+ * The new description. Absent: kept. An empty string clears it.
20
+ */
21
+ description?: Description;
22
+ /**
23
+ * The new address, an http(s) URL. Absent: kept. An empty string clears it.
24
+ */
25
+ url?: string;
26
+ /**
27
+ * The new tags, replacing the old ones. Absent: kept. An empty array clears them.
28
+ */
29
+ tags?: Tags;
30
+ ext?: Ext;
31
+ }
32
+ /**
33
+ * The entry with its new label and profile. Its state and credentials are unchanged.
34
+ */
35
+ export interface VTNListingsUpdateResponsePayload {
36
+ entry: Entry;
37
+ ext?: Ext;
38
+ }
39
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
40
+ export type { Credential, Description, Did, Entry, EntryKind, EntryProfile, EntryState, Ext, Issued, Label, Reason, StateChange, Tags, Url };
41
+ /** Trust Task type URI. */
42
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vtn/listings/update/0.1";
43
+ /**
44
+ * The earlier version of this specification that this one declares it
45
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
46
+ * `null`. Only the direct declaration — follow the chain with
47
+ * `extendsChain` / `readForSpec`.
48
+ */
49
+ export declare const EXTENDS: string | null;
50
+ /**
51
+ * Why this version is deprecated, or `null` while it is current. A
52
+ * superseded or retired version is still supported, and is withdrawn from
53
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
54
+ * Versions").
55
+ */
56
+ export declare const DEPRECATION: string | null;
57
+ /** Stable alias for this specification's request payload shape. */
58
+ export type Payload = VTNListingsUpdatePayload;
59
+ /** Trust Task response type URI (request type URI + "#response"). */
60
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtn/listings/update/0.1#response";
61
+ /** Stable alias for this specification's success-response payload shape. */
62
+ export type Response = VTNListingsUpdateResponsePayload;
63
+ /**
64
+ * This specification's payload schema, as a value.
65
+ *
66
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
67
+ * rather than only as a `.json` file because TypeScript types are erased
68
+ * at runtime: without a schema a consumer has nothing to validate, and
69
+ * every REQUIRED payload member is optional in practice. Cross-file
70
+ * `$ref`s are already inlined, so it needs no resolver.
71
+ */
72
+ export declare const PAYLOAD_SCHEMA: {
73
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
74
+ readonly $id: "https://trusttasks.org/spec/vtn/listings/update/0.1";
75
+ readonly title: "VTN Listings — Update — payload";
76
+ readonly description: "An administrator's edit to an entry's directory profile. No credential is reissued. The outer document members are owned by the framework — SPEC §6.3.";
77
+ readonly type: "object";
78
+ readonly additionalProperties: false;
79
+ readonly required: readonly ["did"];
80
+ readonly properties: {
81
+ readonly did: {
82
+ readonly $ref: "#/$defs/Did";
83
+ readonly description: "The DID of the entry to edit.";
84
+ };
85
+ readonly label: {
86
+ readonly $ref: "#/$defs/Label";
87
+ readonly description: "The new label. Absent: kept. An empty string clears it.";
88
+ };
89
+ readonly description: {
90
+ readonly $ref: "#/$defs/Description";
91
+ readonly description: "The new description. Absent: kept. An empty string clears it.";
92
+ };
93
+ readonly url: {
94
+ readonly type: "string";
95
+ readonly maxLength: 2048;
96
+ readonly pattern: "^(https?://\\S+)?$";
97
+ readonly description: "The new address, an http(s) URL. Absent: kept. An empty string clears it.";
98
+ };
99
+ readonly tags: {
100
+ readonly $ref: "#/$defs/Tags";
101
+ readonly description: "The new tags, replacing the old ones. Absent: kept. An empty array clears them.";
102
+ };
103
+ readonly ext: {
104
+ readonly $ref: "#/$defs/Ext";
105
+ };
106
+ };
107
+ readonly $defs: {
108
+ readonly Response: {
109
+ readonly $anchor: "response";
110
+ readonly title: "VTN Listings — Update — response payload";
111
+ readonly description: "The entry with its new label and profile. Its state and credentials are unchanged.";
112
+ readonly type: "object";
113
+ readonly additionalProperties: false;
114
+ readonly required: readonly ["entry"];
115
+ readonly properties: {
116
+ readonly entry: {
117
+ readonly $ref: "#/$defs/Entry";
118
+ };
119
+ readonly ext: {
120
+ readonly $ref: "#/$defs/Ext";
121
+ };
122
+ };
123
+ };
124
+ readonly Ext: {
125
+ readonly title: "Ext";
126
+ 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.";
127
+ readonly type: "object";
128
+ readonly minProperties: 1;
129
+ readonly additionalProperties: true;
130
+ readonly propertyNames: {
131
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
132
+ };
133
+ };
134
+ readonly Entry: {
135
+ readonly description: "An entry as its network's administrators see it.";
136
+ readonly type: "object";
137
+ readonly additionalProperties: false;
138
+ readonly required: readonly ["did", "kind", "profile", "state", "createdAt", "updatedAt", "listing", "history"];
139
+ readonly properties: {
140
+ readonly did: {
141
+ readonly $ref: "#/$defs/Did";
142
+ readonly description: "The listed party's DID.";
143
+ };
144
+ readonly kind: {
145
+ readonly $ref: "#/$defs/EntryKind";
146
+ };
147
+ readonly label: {
148
+ readonly $ref: "#/$defs/Label";
149
+ };
150
+ readonly profile: {
151
+ readonly $ref: "#/$defs/EntryProfile";
152
+ };
153
+ readonly state: {
154
+ readonly $ref: "#/$defs/EntryState";
155
+ };
156
+ readonly createdAt: {
157
+ readonly type: "string";
158
+ readonly format: "date-time";
159
+ readonly description: "When the party was first listed.";
160
+ };
161
+ readonly updatedAt: {
162
+ readonly type: "string";
163
+ readonly format: "date-time";
164
+ readonly description: "When the entry last changed.";
165
+ };
166
+ readonly listing: {
167
+ readonly $ref: "#/$defs/Issued";
168
+ readonly description: "The listing credential (`lists/1`).";
169
+ };
170
+ readonly offer: {
171
+ readonly $ref: "#/$defs/Issued";
172
+ readonly description: "The unsigned membership grant offered to the party, before it acknowledged.";
173
+ };
174
+ readonly grant: {
175
+ readonly $ref: "#/$defs/Issued";
176
+ readonly description: "The signed membership grant (VMC), once the party acknowledged.";
177
+ };
178
+ readonly ack: {
179
+ readonly $ref: "#/$defs/Credential";
180
+ readonly description: "The party's acknowledgement (VMC carrying the grant's digest).";
181
+ };
182
+ readonly repudiation: {
183
+ readonly $ref: "#/$defs/Credential";
184
+ readonly description: "The party's repudiation (`repudiates/1`) of the listing or the grant.";
185
+ };
186
+ readonly history: {
187
+ readonly type: "array";
188
+ readonly items: {
189
+ readonly $ref: "#/$defs/StateChange";
190
+ };
191
+ readonly description: "Every transition, oldest first.";
192
+ };
193
+ };
194
+ };
195
+ readonly StateChange: {
196
+ readonly description: "One transition in an entry's lifecycle.";
197
+ readonly type: "object";
198
+ readonly additionalProperties: false;
199
+ readonly required: readonly ["changedAt", "to"];
200
+ readonly properties: {
201
+ readonly changedAt: {
202
+ readonly type: "string";
203
+ readonly format: "date-time";
204
+ readonly description: "When the state changed.";
205
+ };
206
+ readonly from: {
207
+ readonly $ref: "#/$defs/EntryState";
208
+ readonly description: "The state before; absent for the first listing.";
209
+ };
210
+ readonly to: {
211
+ readonly $ref: "#/$defs/EntryState";
212
+ };
213
+ readonly reason: {
214
+ readonly $ref: "#/$defs/Reason";
215
+ };
216
+ };
217
+ };
218
+ readonly Reason: {
219
+ readonly type: "string";
220
+ readonly maxLength: 1000;
221
+ readonly description: "The reason given, if any.";
222
+ };
223
+ readonly EntryState: {
224
+ readonly type: "string";
225
+ readonly enum: readonly ["listed", "acknowledged", "repudiated", "suspended", "removed", "departed"];
226
+ readonly 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.";
227
+ };
228
+ readonly Credential: {
229
+ readonly type: "object";
230
+ 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.";
231
+ };
232
+ readonly Issued: {
233
+ readonly description: "A credential the network issued, with where its status is kept.";
234
+ readonly type: "object";
235
+ readonly additionalProperties: false;
236
+ readonly required: readonly ["credential", "statusIndex"];
237
+ readonly properties: {
238
+ readonly credential: {
239
+ readonly $ref: "#/$defs/Credential";
240
+ readonly description: "The credential as issued.";
241
+ };
242
+ readonly statusIndex: {
243
+ readonly type: "integer";
244
+ readonly minimum: 0;
245
+ readonly description: "The credential's index in the network's status lists.";
246
+ };
247
+ };
248
+ };
249
+ readonly EntryProfile: {
250
+ readonly description: "What the directory shows about an entry, set by the network's administrators.";
251
+ readonly type: "object";
252
+ readonly additionalProperties: false;
253
+ readonly required: readonly [];
254
+ readonly properties: {
255
+ readonly description: {
256
+ readonly $ref: "#/$defs/Description";
257
+ };
258
+ readonly url: {
259
+ readonly $ref: "#/$defs/Url";
260
+ };
261
+ readonly tags: {
262
+ readonly $ref: "#/$defs/Tags";
263
+ };
264
+ };
265
+ };
266
+ readonly Tags: {
267
+ readonly type: "array";
268
+ readonly items: {
269
+ readonly type: "string";
270
+ readonly minLength: 1;
271
+ readonly maxLength: 64;
272
+ };
273
+ readonly description: "Free-text tags the directory searches.";
274
+ readonly maxItems: 32;
275
+ };
276
+ readonly Url: {
277
+ readonly type: "string";
278
+ readonly format: "uri";
279
+ readonly maxLength: 2048;
280
+ readonly description: "The party's public address.";
281
+ };
282
+ readonly Description: {
283
+ readonly type: "string";
284
+ readonly maxLength: 2000;
285
+ readonly description: "What the listed party is, for the directory.";
286
+ };
287
+ readonly Label: {
288
+ readonly type: "string";
289
+ readonly maxLength: 200;
290
+ readonly description: "The name the directory shows.";
291
+ };
292
+ readonly EntryKind: {
293
+ readonly type: "string";
294
+ readonly enum: readonly ["community", "network"];
295
+ readonly 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`.";
296
+ };
297
+ readonly Did: {
298
+ readonly type: "string";
299
+ readonly pattern: "^did:[a-z0-9]+:.+$";
300
+ readonly maxLength: 2048;
301
+ readonly description: "A DID.";
302
+ };
303
+ };
304
+ };
305
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
306
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
307
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
308
+ readonly $ref: "#/$defs/Response";
309
+ readonly $defs: {
310
+ readonly Response: {
311
+ readonly $anchor: "response";
312
+ readonly title: "VTN Listings — Update — response payload";
313
+ readonly description: "The entry with its new label and profile. Its state and credentials are unchanged.";
314
+ readonly type: "object";
315
+ readonly additionalProperties: false;
316
+ readonly required: readonly ["entry"];
317
+ readonly properties: {
318
+ readonly entry: {
319
+ readonly $ref: "#/$defs/Entry";
320
+ };
321
+ readonly ext: {
322
+ readonly $ref: "#/$defs/Ext";
323
+ };
324
+ };
325
+ };
326
+ readonly Ext: {
327
+ readonly title: "Ext";
328
+ 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.";
329
+ readonly type: "object";
330
+ readonly minProperties: 1;
331
+ readonly additionalProperties: true;
332
+ readonly propertyNames: {
333
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
334
+ };
335
+ };
336
+ readonly Entry: {
337
+ readonly description: "An entry as its network's administrators see it.";
338
+ readonly type: "object";
339
+ readonly additionalProperties: false;
340
+ readonly required: readonly ["did", "kind", "profile", "state", "createdAt", "updatedAt", "listing", "history"];
341
+ readonly properties: {
342
+ readonly did: {
343
+ readonly $ref: "#/$defs/Did";
344
+ readonly description: "The listed party's DID.";
345
+ };
346
+ readonly kind: {
347
+ readonly $ref: "#/$defs/EntryKind";
348
+ };
349
+ readonly label: {
350
+ readonly $ref: "#/$defs/Label";
351
+ };
352
+ readonly profile: {
353
+ readonly $ref: "#/$defs/EntryProfile";
354
+ };
355
+ readonly state: {
356
+ readonly $ref: "#/$defs/EntryState";
357
+ };
358
+ readonly createdAt: {
359
+ readonly type: "string";
360
+ readonly format: "date-time";
361
+ readonly description: "When the party was first listed.";
362
+ };
363
+ readonly updatedAt: {
364
+ readonly type: "string";
365
+ readonly format: "date-time";
366
+ readonly description: "When the entry last changed.";
367
+ };
368
+ readonly listing: {
369
+ readonly $ref: "#/$defs/Issued";
370
+ readonly description: "The listing credential (`lists/1`).";
371
+ };
372
+ readonly offer: {
373
+ readonly $ref: "#/$defs/Issued";
374
+ readonly description: "The unsigned membership grant offered to the party, before it acknowledged.";
375
+ };
376
+ readonly grant: {
377
+ readonly $ref: "#/$defs/Issued";
378
+ readonly description: "The signed membership grant (VMC), once the party acknowledged.";
379
+ };
380
+ readonly ack: {
381
+ readonly $ref: "#/$defs/Credential";
382
+ readonly description: "The party's acknowledgement (VMC carrying the grant's digest).";
383
+ };
384
+ readonly repudiation: {
385
+ readonly $ref: "#/$defs/Credential";
386
+ readonly description: "The party's repudiation (`repudiates/1`) of the listing or the grant.";
387
+ };
388
+ readonly history: {
389
+ readonly type: "array";
390
+ readonly items: {
391
+ readonly $ref: "#/$defs/StateChange";
392
+ };
393
+ readonly description: "Every transition, oldest first.";
394
+ };
395
+ };
396
+ };
397
+ readonly StateChange: {
398
+ readonly description: "One transition in an entry's lifecycle.";
399
+ readonly type: "object";
400
+ readonly additionalProperties: false;
401
+ readonly required: readonly ["changedAt", "to"];
402
+ readonly properties: {
403
+ readonly changedAt: {
404
+ readonly type: "string";
405
+ readonly format: "date-time";
406
+ readonly description: "When the state changed.";
407
+ };
408
+ readonly from: {
409
+ readonly $ref: "#/$defs/EntryState";
410
+ readonly description: "The state before; absent for the first listing.";
411
+ };
412
+ readonly to: {
413
+ readonly $ref: "#/$defs/EntryState";
414
+ };
415
+ readonly reason: {
416
+ readonly $ref: "#/$defs/Reason";
417
+ };
418
+ };
419
+ };
420
+ readonly Reason: {
421
+ readonly type: "string";
422
+ readonly maxLength: 1000;
423
+ readonly description: "The reason given, if any.";
424
+ };
425
+ readonly EntryState: {
426
+ readonly type: "string";
427
+ readonly enum: readonly ["listed", "acknowledged", "repudiated", "suspended", "removed", "departed"];
428
+ readonly 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.";
429
+ };
430
+ readonly Credential: {
431
+ readonly type: "object";
432
+ 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.";
433
+ };
434
+ readonly Issued: {
435
+ readonly description: "A credential the network issued, with where its status is kept.";
436
+ readonly type: "object";
437
+ readonly additionalProperties: false;
438
+ readonly required: readonly ["credential", "statusIndex"];
439
+ readonly properties: {
440
+ readonly credential: {
441
+ readonly $ref: "#/$defs/Credential";
442
+ readonly description: "The credential as issued.";
443
+ };
444
+ readonly statusIndex: {
445
+ readonly type: "integer";
446
+ readonly minimum: 0;
447
+ readonly description: "The credential's index in the network's status lists.";
448
+ };
449
+ };
450
+ };
451
+ readonly EntryProfile: {
452
+ readonly description: "What the directory shows about an entry, set by the network's administrators.";
453
+ readonly type: "object";
454
+ readonly additionalProperties: false;
455
+ readonly required: readonly [];
456
+ readonly properties: {
457
+ readonly description: {
458
+ readonly $ref: "#/$defs/Description";
459
+ };
460
+ readonly url: {
461
+ readonly $ref: "#/$defs/Url";
462
+ };
463
+ readonly tags: {
464
+ readonly $ref: "#/$defs/Tags";
465
+ };
466
+ };
467
+ };
468
+ readonly Tags: {
469
+ readonly type: "array";
470
+ readonly items: {
471
+ readonly type: "string";
472
+ readonly minLength: 1;
473
+ readonly maxLength: 64;
474
+ };
475
+ readonly description: "Free-text tags the directory searches.";
476
+ readonly maxItems: 32;
477
+ };
478
+ readonly Url: {
479
+ readonly type: "string";
480
+ readonly format: "uri";
481
+ readonly maxLength: 2048;
482
+ readonly description: "The party's public address.";
483
+ };
484
+ readonly Description: {
485
+ readonly type: "string";
486
+ readonly maxLength: 2000;
487
+ readonly description: "What the listed party is, for the directory.";
488
+ };
489
+ readonly Label: {
490
+ readonly type: "string";
491
+ readonly maxLength: 200;
492
+ readonly description: "The name the directory shows.";
493
+ };
494
+ readonly EntryKind: {
495
+ readonly type: "string";
496
+ readonly enum: readonly ["community", "network"];
497
+ readonly 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`.";
498
+ };
499
+ readonly Did: {
500
+ readonly type: "string";
501
+ readonly pattern: "^did:[a-z0-9]+:.+$";
502
+ readonly maxLength: 2048;
503
+ readonly description: "A DID.";
504
+ };
505
+ };
506
+ };
507
+ /**
508
+ * SPEC.md §7.2 policy for the request variant, from this specification's
509
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
510
+ * per-specification and cannot be derived from the document alone, and
511
+ * item 2 needs the schema this carries.
512
+ */
513
+ export declare const SPEC: {
514
+ readonly typeUri: "https://trusttasks.org/spec/vtn/listings/update/0.1";
515
+ readonly isBearer: false;
516
+ readonly isProofRequired: true;
517
+ readonly isRecipientRequired: true;
518
+ readonly isIssuedAtRequired: true;
519
+ readonly payloadSchema: {
520
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
521
+ readonly $id: "https://trusttasks.org/spec/vtn/listings/update/0.1";
522
+ readonly title: "VTN Listings — Update — payload";
523
+ readonly description: "An administrator's edit to an entry's directory profile. No credential is reissued. The outer document members are owned by the framework — SPEC §6.3.";
524
+ readonly type: "object";
525
+ readonly additionalProperties: false;
526
+ readonly required: readonly ["did"];
527
+ readonly properties: {
528
+ readonly did: {
529
+ readonly $ref: "#/$defs/Did";
530
+ readonly description: "The DID of the entry to edit.";
531
+ };
532
+ readonly label: {
533
+ readonly $ref: "#/$defs/Label";
534
+ readonly description: "The new label. Absent: kept. An empty string clears it.";
535
+ };
536
+ readonly description: {
537
+ readonly $ref: "#/$defs/Description";
538
+ readonly description: "The new description. Absent: kept. An empty string clears it.";
539
+ };
540
+ readonly url: {
541
+ readonly type: "string";
542
+ readonly maxLength: 2048;
543
+ readonly pattern: "^(https?://\\S+)?$";
544
+ readonly description: "The new address, an http(s) URL. Absent: kept. An empty string clears it.";
545
+ };
546
+ readonly tags: {
547
+ readonly $ref: "#/$defs/Tags";
548
+ readonly description: "The new tags, replacing the old ones. Absent: kept. An empty array clears them.";
549
+ };
550
+ readonly ext: {
551
+ readonly $ref: "#/$defs/Ext";
552
+ };
553
+ };
554
+ readonly $defs: {
555
+ readonly Response: {
556
+ readonly $anchor: "response";
557
+ readonly title: "VTN Listings — Update — response payload";
558
+ readonly description: "The entry with its new label and profile. Its state and credentials are unchanged.";
559
+ readonly type: "object";
560
+ readonly additionalProperties: false;
561
+ readonly required: readonly ["entry"];
562
+ readonly properties: {
563
+ readonly entry: {
564
+ readonly $ref: "#/$defs/Entry";
565
+ };
566
+ readonly ext: {
567
+ readonly $ref: "#/$defs/Ext";
568
+ };
569
+ };
570
+ };
571
+ readonly Ext: {
572
+ readonly title: "Ext";
573
+ 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.";
574
+ readonly type: "object";
575
+ readonly minProperties: 1;
576
+ readonly additionalProperties: true;
577
+ readonly propertyNames: {
578
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
579
+ };
580
+ };
581
+ readonly Entry: {
582
+ readonly description: "An entry as its network's administrators see it.";
583
+ readonly type: "object";
584
+ readonly additionalProperties: false;
585
+ readonly required: readonly ["did", "kind", "profile", "state", "createdAt", "updatedAt", "listing", "history"];
586
+ readonly properties: {
587
+ readonly did: {
588
+ readonly $ref: "#/$defs/Did";
589
+ readonly description: "The listed party's DID.";
590
+ };
591
+ readonly kind: {
592
+ readonly $ref: "#/$defs/EntryKind";
593
+ };
594
+ readonly label: {
595
+ readonly $ref: "#/$defs/Label";
596
+ };
597
+ readonly profile: {
598
+ readonly $ref: "#/$defs/EntryProfile";
599
+ };
600
+ readonly state: {
601
+ readonly $ref: "#/$defs/EntryState";
602
+ };
603
+ readonly createdAt: {
604
+ readonly type: "string";
605
+ readonly format: "date-time";
606
+ readonly description: "When the party was first listed.";
607
+ };
608
+ readonly updatedAt: {
609
+ readonly type: "string";
610
+ readonly format: "date-time";
611
+ readonly description: "When the entry last changed.";
612
+ };
613
+ readonly listing: {
614
+ readonly $ref: "#/$defs/Issued";
615
+ readonly description: "The listing credential (`lists/1`).";
616
+ };
617
+ readonly offer: {
618
+ readonly $ref: "#/$defs/Issued";
619
+ readonly description: "The unsigned membership grant offered to the party, before it acknowledged.";
620
+ };
621
+ readonly grant: {
622
+ readonly $ref: "#/$defs/Issued";
623
+ readonly description: "The signed membership grant (VMC), once the party acknowledged.";
624
+ };
625
+ readonly ack: {
626
+ readonly $ref: "#/$defs/Credential";
627
+ readonly description: "The party's acknowledgement (VMC carrying the grant's digest).";
628
+ };
629
+ readonly repudiation: {
630
+ readonly $ref: "#/$defs/Credential";
631
+ readonly description: "The party's repudiation (`repudiates/1`) of the listing or the grant.";
632
+ };
633
+ readonly history: {
634
+ readonly type: "array";
635
+ readonly items: {
636
+ readonly $ref: "#/$defs/StateChange";
637
+ };
638
+ readonly description: "Every transition, oldest first.";
639
+ };
640
+ };
641
+ };
642
+ readonly StateChange: {
643
+ readonly description: "One transition in an entry's lifecycle.";
644
+ readonly type: "object";
645
+ readonly additionalProperties: false;
646
+ readonly required: readonly ["changedAt", "to"];
647
+ readonly properties: {
648
+ readonly changedAt: {
649
+ readonly type: "string";
650
+ readonly format: "date-time";
651
+ readonly description: "When the state changed.";
652
+ };
653
+ readonly from: {
654
+ readonly $ref: "#/$defs/EntryState";
655
+ readonly description: "The state before; absent for the first listing.";
656
+ };
657
+ readonly to: {
658
+ readonly $ref: "#/$defs/EntryState";
659
+ };
660
+ readonly reason: {
661
+ readonly $ref: "#/$defs/Reason";
662
+ };
663
+ };
664
+ };
665
+ readonly Reason: {
666
+ readonly type: "string";
667
+ readonly maxLength: 1000;
668
+ readonly description: "The reason given, if any.";
669
+ };
670
+ readonly EntryState: {
671
+ readonly type: "string";
672
+ readonly enum: readonly ["listed", "acknowledged", "repudiated", "suspended", "removed", "departed"];
673
+ readonly 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.";
674
+ };
675
+ readonly Credential: {
676
+ readonly type: "object";
677
+ 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.";
678
+ };
679
+ readonly Issued: {
680
+ readonly description: "A credential the network issued, with where its status is kept.";
681
+ readonly type: "object";
682
+ readonly additionalProperties: false;
683
+ readonly required: readonly ["credential", "statusIndex"];
684
+ readonly properties: {
685
+ readonly credential: {
686
+ readonly $ref: "#/$defs/Credential";
687
+ readonly description: "The credential as issued.";
688
+ };
689
+ readonly statusIndex: {
690
+ readonly type: "integer";
691
+ readonly minimum: 0;
692
+ readonly description: "The credential's index in the network's status lists.";
693
+ };
694
+ };
695
+ };
696
+ readonly EntryProfile: {
697
+ readonly description: "What the directory shows about an entry, set by the network's administrators.";
698
+ readonly type: "object";
699
+ readonly additionalProperties: false;
700
+ readonly required: readonly [];
701
+ readonly properties: {
702
+ readonly description: {
703
+ readonly $ref: "#/$defs/Description";
704
+ };
705
+ readonly url: {
706
+ readonly $ref: "#/$defs/Url";
707
+ };
708
+ readonly tags: {
709
+ readonly $ref: "#/$defs/Tags";
710
+ };
711
+ };
712
+ };
713
+ readonly Tags: {
714
+ readonly type: "array";
715
+ readonly items: {
716
+ readonly type: "string";
717
+ readonly minLength: 1;
718
+ readonly maxLength: 64;
719
+ };
720
+ readonly description: "Free-text tags the directory searches.";
721
+ readonly maxItems: 32;
722
+ };
723
+ readonly Url: {
724
+ readonly type: "string";
725
+ readonly format: "uri";
726
+ readonly maxLength: 2048;
727
+ readonly description: "The party's public address.";
728
+ };
729
+ readonly Description: {
730
+ readonly type: "string";
731
+ readonly maxLength: 2000;
732
+ readonly description: "What the listed party is, for the directory.";
733
+ };
734
+ readonly Label: {
735
+ readonly type: "string";
736
+ readonly maxLength: 200;
737
+ readonly description: "The name the directory shows.";
738
+ };
739
+ readonly EntryKind: {
740
+ readonly type: "string";
741
+ readonly enum: readonly ["community", "network"];
742
+ readonly 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`.";
743
+ };
744
+ readonly Did: {
745
+ readonly type: "string";
746
+ readonly pattern: "^did:[a-z0-9]+:.+$";
747
+ readonly maxLength: 2048;
748
+ readonly description: "A DID.";
749
+ };
750
+ };
751
+ };
752
+ };
753
+ /**
754
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
755
+ * tracks the *issuer* party's requirement because a response swaps the
756
+ * parties (§7.3 item 5).
757
+ */
758
+ export declare const RESPONSE_SPEC: {
759
+ readonly typeUri: "https://trusttasks.org/spec/vtn/listings/update/0.1#response";
760
+ readonly isBearer: false;
761
+ readonly isProofRequired: true;
762
+ readonly isRecipientRequired: true;
763
+ readonly isIssuedAtRequired: true;
764
+ readonly payloadSchema: {
765
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
766
+ readonly $ref: "#/$defs/Response";
767
+ readonly $defs: {
768
+ readonly Response: {
769
+ readonly $anchor: "response";
770
+ readonly title: "VTN Listings — Update — response payload";
771
+ readonly description: "The entry with its new label and profile. Its state and credentials are unchanged.";
772
+ readonly type: "object";
773
+ readonly additionalProperties: false;
774
+ readonly required: readonly ["entry"];
775
+ readonly properties: {
776
+ readonly entry: {
777
+ readonly $ref: "#/$defs/Entry";
778
+ };
779
+ readonly ext: {
780
+ readonly $ref: "#/$defs/Ext";
781
+ };
782
+ };
783
+ };
784
+ readonly Ext: {
785
+ readonly title: "Ext";
786
+ 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.";
787
+ readonly type: "object";
788
+ readonly minProperties: 1;
789
+ readonly additionalProperties: true;
790
+ readonly propertyNames: {
791
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
792
+ };
793
+ };
794
+ readonly Entry: {
795
+ readonly description: "An entry as its network's administrators see it.";
796
+ readonly type: "object";
797
+ readonly additionalProperties: false;
798
+ readonly required: readonly ["did", "kind", "profile", "state", "createdAt", "updatedAt", "listing", "history"];
799
+ readonly properties: {
800
+ readonly did: {
801
+ readonly $ref: "#/$defs/Did";
802
+ readonly description: "The listed party's DID.";
803
+ };
804
+ readonly kind: {
805
+ readonly $ref: "#/$defs/EntryKind";
806
+ };
807
+ readonly label: {
808
+ readonly $ref: "#/$defs/Label";
809
+ };
810
+ readonly profile: {
811
+ readonly $ref: "#/$defs/EntryProfile";
812
+ };
813
+ readonly state: {
814
+ readonly $ref: "#/$defs/EntryState";
815
+ };
816
+ readonly createdAt: {
817
+ readonly type: "string";
818
+ readonly format: "date-time";
819
+ readonly description: "When the party was first listed.";
820
+ };
821
+ readonly updatedAt: {
822
+ readonly type: "string";
823
+ readonly format: "date-time";
824
+ readonly description: "When the entry last changed.";
825
+ };
826
+ readonly listing: {
827
+ readonly $ref: "#/$defs/Issued";
828
+ readonly description: "The listing credential (`lists/1`).";
829
+ };
830
+ readonly offer: {
831
+ readonly $ref: "#/$defs/Issued";
832
+ readonly description: "The unsigned membership grant offered to the party, before it acknowledged.";
833
+ };
834
+ readonly grant: {
835
+ readonly $ref: "#/$defs/Issued";
836
+ readonly description: "The signed membership grant (VMC), once the party acknowledged.";
837
+ };
838
+ readonly ack: {
839
+ readonly $ref: "#/$defs/Credential";
840
+ readonly description: "The party's acknowledgement (VMC carrying the grant's digest).";
841
+ };
842
+ readonly repudiation: {
843
+ readonly $ref: "#/$defs/Credential";
844
+ readonly description: "The party's repudiation (`repudiates/1`) of the listing or the grant.";
845
+ };
846
+ readonly history: {
847
+ readonly type: "array";
848
+ readonly items: {
849
+ readonly $ref: "#/$defs/StateChange";
850
+ };
851
+ readonly description: "Every transition, oldest first.";
852
+ };
853
+ };
854
+ };
855
+ readonly StateChange: {
856
+ readonly description: "One transition in an entry's lifecycle.";
857
+ readonly type: "object";
858
+ readonly additionalProperties: false;
859
+ readonly required: readonly ["changedAt", "to"];
860
+ readonly properties: {
861
+ readonly changedAt: {
862
+ readonly type: "string";
863
+ readonly format: "date-time";
864
+ readonly description: "When the state changed.";
865
+ };
866
+ readonly from: {
867
+ readonly $ref: "#/$defs/EntryState";
868
+ readonly description: "The state before; absent for the first listing.";
869
+ };
870
+ readonly to: {
871
+ readonly $ref: "#/$defs/EntryState";
872
+ };
873
+ readonly reason: {
874
+ readonly $ref: "#/$defs/Reason";
875
+ };
876
+ };
877
+ };
878
+ readonly Reason: {
879
+ readonly type: "string";
880
+ readonly maxLength: 1000;
881
+ readonly description: "The reason given, if any.";
882
+ };
883
+ readonly EntryState: {
884
+ readonly type: "string";
885
+ readonly enum: readonly ["listed", "acknowledged", "repudiated", "suspended", "removed", "departed"];
886
+ readonly 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.";
887
+ };
888
+ readonly Credential: {
889
+ readonly type: "object";
890
+ 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.";
891
+ };
892
+ readonly Issued: {
893
+ readonly description: "A credential the network issued, with where its status is kept.";
894
+ readonly type: "object";
895
+ readonly additionalProperties: false;
896
+ readonly required: readonly ["credential", "statusIndex"];
897
+ readonly properties: {
898
+ readonly credential: {
899
+ readonly $ref: "#/$defs/Credential";
900
+ readonly description: "The credential as issued.";
901
+ };
902
+ readonly statusIndex: {
903
+ readonly type: "integer";
904
+ readonly minimum: 0;
905
+ readonly description: "The credential's index in the network's status lists.";
906
+ };
907
+ };
908
+ };
909
+ readonly EntryProfile: {
910
+ readonly description: "What the directory shows about an entry, set by the network's administrators.";
911
+ readonly type: "object";
912
+ readonly additionalProperties: false;
913
+ readonly required: readonly [];
914
+ readonly properties: {
915
+ readonly description: {
916
+ readonly $ref: "#/$defs/Description";
917
+ };
918
+ readonly url: {
919
+ readonly $ref: "#/$defs/Url";
920
+ };
921
+ readonly tags: {
922
+ readonly $ref: "#/$defs/Tags";
923
+ };
924
+ };
925
+ };
926
+ readonly Tags: {
927
+ readonly type: "array";
928
+ readonly items: {
929
+ readonly type: "string";
930
+ readonly minLength: 1;
931
+ readonly maxLength: 64;
932
+ };
933
+ readonly description: "Free-text tags the directory searches.";
934
+ readonly maxItems: 32;
935
+ };
936
+ readonly Url: {
937
+ readonly type: "string";
938
+ readonly format: "uri";
939
+ readonly maxLength: 2048;
940
+ readonly description: "The party's public address.";
941
+ };
942
+ readonly Description: {
943
+ readonly type: "string";
944
+ readonly maxLength: 2000;
945
+ readonly description: "What the listed party is, for the directory.";
946
+ };
947
+ readonly Label: {
948
+ readonly type: "string";
949
+ readonly maxLength: 200;
950
+ readonly description: "The name the directory shows.";
951
+ };
952
+ readonly EntryKind: {
953
+ readonly type: "string";
954
+ readonly enum: readonly ["community", "network"];
955
+ readonly 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`.";
956
+ };
957
+ readonly Did: {
958
+ readonly type: "string";
959
+ readonly pattern: "^did:[a-z0-9]+:.+$";
960
+ readonly maxLength: 2048;
961
+ readonly description: "A DID.";
962
+ };
963
+ };
964
+ };
965
+ };
966
+ //# sourceMappingURL=payload.d.ts.map