@openvtc/trust-tasks 0.26.17 → 0.26.18

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 (323) hide show
  1. package/CHANGELOG.md +166 -0
  2. package/dist/_shared/components.d.ts +755 -3
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/auth/oob/_shared/0.1/oob.d.ts +1 -1
  5. package/dist/auth/oob/_shared/0.1/oob.d.ts.map +1 -1
  6. package/dist/auth/oob/grant/0.2/payload.d.ts +262 -0
  7. package/dist/auth/oob/grant/0.2/payload.d.ts.map +1 -0
  8. package/dist/auth/oob/grant/0.2/payload.js +140 -0
  9. package/dist/auth/oob/grant/0.2/payload.js.map +1 -0
  10. package/dist/auth/oob/prove/0.2/payload.d.ts +836 -0
  11. package/dist/auth/oob/prove/0.2/payload.d.ts.map +1 -0
  12. package/dist/auth/oob/prove/0.2/payload.js +468 -0
  13. package/dist/auth/oob/prove/0.2/payload.js.map +1 -0
  14. package/dist/auth/oob/respond/0.2/payload.d.ts +235 -0
  15. package/dist/auth/oob/respond/0.2/payload.d.ts.map +1 -0
  16. package/dist/auth/oob/respond/0.2/payload.js +140 -0
  17. package/dist/auth/oob/respond/0.2/payload.js.map +1 -0
  18. package/dist/device/list/0.1/payload.d.ts +4 -4
  19. package/dist/device/list/0.1/payload.d.ts.map +1 -1
  20. package/dist/device/list/0.1/payload.js +2 -0
  21. package/dist/device/list/0.1/payload.js.map +1 -1
  22. package/dist/device/list/0.2/payload.d.ts +4 -4
  23. package/dist/device/list/0.2/payload.d.ts.map +1 -1
  24. package/dist/device/list/0.2/payload.js +2 -0
  25. package/dist/device/list/0.2/payload.js.map +1 -1
  26. package/dist/device/register/0.1/payload.d.ts +4 -4
  27. package/dist/device/register/0.1/payload.d.ts.map +1 -1
  28. package/dist/device/register/0.1/payload.js +2 -0
  29. package/dist/device/register/0.1/payload.js.map +1 -1
  30. package/dist/device/register/0.2/payload.d.ts +4 -4
  31. package/dist/device/register/0.2/payload.d.ts.map +1 -1
  32. package/dist/device/register/0.2/payload.js +2 -0
  33. package/dist/device/register/0.2/payload.js.map +1 -1
  34. package/dist/index.d.ts +52 -0
  35. package/dist/index.d.ts.map +1 -1
  36. package/dist/index.js +52 -0
  37. package/dist/index.js.map +1 -1
  38. package/dist/keys/sign-document/0.1/payload.d.ts +627 -0
  39. package/dist/keys/sign-document/0.1/payload.d.ts.map +1 -0
  40. package/dist/keys/sign-document/0.1/payload.js +341 -0
  41. package/dist/keys/sign-document/0.1/payload.js.map +1 -0
  42. package/dist/persona/_shared/0.1/contact-annotations.d.ts +22 -0
  43. package/dist/persona/_shared/0.1/contact-annotations.d.ts.map +1 -0
  44. package/dist/persona/_shared/0.1/contact-annotations.js +6 -0
  45. package/dist/persona/_shared/0.1/contact-annotations.js.map +1 -0
  46. package/dist/persona/contact/get/1.1/payload.d.ts +1403 -0
  47. package/dist/persona/contact/get/1.1/payload.d.ts.map +1 -0
  48. package/dist/persona/contact/get/1.1/payload.js +804 -0
  49. package/dist/persona/contact/get/1.1/payload.js.map +1 -0
  50. package/dist/persona/contact/list/1.1/payload.d.ts +803 -0
  51. package/dist/persona/contact/list/1.1/payload.d.ts.map +1 -0
  52. package/dist/persona/contact/list/1.1/payload.js +417 -0
  53. package/dist/persona/contact/list/1.1/payload.js.map +1 -0
  54. package/dist/persona/contact/lists/delete/1.0/payload.d.ts +289 -0
  55. package/dist/persona/contact/lists/delete/1.0/payload.d.ts.map +1 -0
  56. package/dist/persona/contact/lists/delete/1.0/payload.js +166 -0
  57. package/dist/persona/contact/lists/delete/1.0/payload.js.map +1 -0
  58. package/dist/persona/contact/lists/list/1.0/payload.d.ts +527 -0
  59. package/dist/persona/contact/lists/list/1.0/payload.d.ts.map +1 -0
  60. package/dist/persona/contact/lists/list/1.0/payload.js +294 -0
  61. package/dist/persona/contact/lists/list/1.0/payload.js.map +1 -0
  62. package/dist/persona/contact/lists/put/1.0/payload.d.ts +629 -0
  63. package/dist/persona/contact/lists/put/1.0/payload.d.ts.map +1 -0
  64. package/dist/persona/contact/lists/put/1.0/payload.js +366 -0
  65. package/dist/persona/contact/lists/put/1.0/payload.js.map +1 -0
  66. package/dist/persona/contact/lists/show/1.0/payload.d.ts +476 -0
  67. package/dist/persona/contact/lists/show/1.0/payload.d.ts.map +1 -0
  68. package/dist/persona/contact/lists/show/1.0/payload.js +272 -0
  69. package/dist/persona/contact/lists/show/1.0/payload.js.map +1 -0
  70. package/dist/persona/contact/put/1.1/payload.d.ts +1444 -0
  71. package/dist/persona/contact/put/1.1/payload.d.ts.map +1 -0
  72. package/dist/persona/contact/put/1.1/payload.js +850 -0
  73. package/dist/persona/contact/put/1.1/payload.js.map +1 -0
  74. package/dist/rooms/keys/seal/0.1/payload.d.ts +24 -4
  75. package/dist/rooms/keys/seal/0.1/payload.d.ts.map +1 -1
  76. package/dist/rooms/keys/seal/0.1/payload.js +12 -2
  77. package/dist/rooms/keys/seal/0.1/payload.js.map +1 -1
  78. package/dist/rooms/keys/seal/0.2/payload.d.ts +24 -4
  79. package/dist/rooms/keys/seal/0.2/payload.d.ts.map +1 -1
  80. package/dist/rooms/keys/seal/0.2/payload.js +12 -2
  81. package/dist/rooms/keys/seal/0.2/payload.js.map +1 -1
  82. package/dist/rooms/owner/group/remove/0.3/payload.d.ts +600 -0
  83. package/dist/rooms/owner/group/remove/0.3/payload.d.ts.map +1 -0
  84. package/dist/rooms/owner/group/remove/0.3/payload.js +310 -0
  85. package/dist/rooms/owner/group/remove/0.3/payload.js.map +1 -0
  86. package/dist/rooms/owner/register/0.2/payload.d.ts +591 -0
  87. package/dist/rooms/owner/register/0.2/payload.d.ts.map +1 -0
  88. package/dist/rooms/owner/register/0.2/payload.js +335 -0
  89. package/dist/rooms/owner/register/0.2/payload.js.map +1 -0
  90. package/dist/rooms/records/get/0.1/payload.d.ts +24 -4
  91. package/dist/rooms/records/get/0.1/payload.d.ts.map +1 -1
  92. package/dist/rooms/records/get/0.1/payload.js +12 -2
  93. package/dist/rooms/records/get/0.1/payload.js.map +1 -1
  94. package/dist/rooms/records/get/0.2/payload.d.ts +24 -4
  95. package/dist/rooms/records/get/0.2/payload.d.ts.map +1 -1
  96. package/dist/rooms/records/get/0.2/payload.js +12 -2
  97. package/dist/rooms/records/get/0.2/payload.js.map +1 -1
  98. package/dist/rooms/records/put/0.1/payload.d.ts +24 -4
  99. package/dist/rooms/records/put/0.1/payload.d.ts.map +1 -1
  100. package/dist/rooms/records/put/0.1/payload.js +12 -2
  101. package/dist/rooms/records/put/0.1/payload.js.map +1 -1
  102. package/dist/rooms/records/put/0.2/payload.d.ts +24 -4
  103. package/dist/rooms/records/put/0.2/payload.d.ts.map +1 -1
  104. package/dist/rooms/records/put/0.2/payload.js +12 -2
  105. package/dist/rooms/records/put/0.2/payload.js.map +1 -1
  106. package/dist/vtc/admin/events/_shared/0.3/topic.d.ts +30 -0
  107. package/dist/vtc/admin/events/_shared/0.3/topic.d.ts.map +1 -0
  108. package/dist/vtc/admin/events/_shared/0.3/topic.js +6 -0
  109. package/dist/vtc/admin/events/_shared/0.3/topic.js.map +1 -0
  110. package/dist/vtc/admin/events/event/0.3/payload.d.ts +172 -0
  111. package/dist/vtc/admin/events/event/0.3/payload.d.ts.map +1 -0
  112. package/dist/vtc/admin/events/event/0.3/payload.js +102 -0
  113. package/dist/vtc/admin/events/event/0.3/payload.js.map +1 -0
  114. package/dist/vtc/admin/events/subscribe/0.3/payload.d.ts +409 -0
  115. package/dist/vtc/admin/events/subscribe/0.3/payload.d.ts.map +1 -0
  116. package/dist/vtc/admin/events/subscribe/0.3/payload.js +236 -0
  117. package/dist/vtc/admin/events/subscribe/0.3/payload.js.map +1 -0
  118. package/dist/vtc/directory/_shared/0.1/admin-note.d.ts +16 -0
  119. package/dist/vtc/directory/_shared/0.1/admin-note.d.ts.map +1 -0
  120. package/dist/vtc/directory/_shared/0.1/admin-note.js +6 -0
  121. package/dist/vtc/directory/_shared/0.1/admin-note.js.map +1 -0
  122. package/dist/vtc/directory/_shared/0.1/directory-card.d.ts +22 -0
  123. package/dist/vtc/directory/_shared/0.1/directory-card.d.ts.map +1 -0
  124. package/dist/vtc/directory/_shared/0.1/directory-card.js +6 -0
  125. package/dist/vtc/directory/_shared/0.1/directory-card.js.map +1 -0
  126. package/dist/vtc/directory/_shared/0.1/field-definition.d.ts +16 -0
  127. package/dist/vtc/directory/_shared/0.1/field-definition.d.ts.map +1 -0
  128. package/dist/vtc/directory/_shared/0.1/field-definition.js +6 -0
  129. package/dist/vtc/directory/_shared/0.1/field-definition.js.map +1 -0
  130. package/dist/vtc/directory/card/assert/0.1/payload.d.ts +780 -0
  131. package/dist/vtc/directory/card/assert/0.1/payload.d.ts.map +1 -0
  132. package/dist/vtc/directory/card/assert/0.1/payload.js +454 -0
  133. package/dist/vtc/directory/card/assert/0.1/payload.js.map +1 -0
  134. package/dist/vtc/directory/card/present/0.1/payload.d.ts +603 -0
  135. package/dist/vtc/directory/card/present/0.1/payload.d.ts.map +1 -0
  136. package/dist/vtc/directory/card/present/0.1/payload.js +297 -0
  137. package/dist/vtc/directory/card/present/0.1/payload.js.map +1 -0
  138. package/dist/vtc/directory/card/show/0.1/payload.d.ts +1144 -0
  139. package/dist/vtc/directory/card/show/0.1/payload.d.ts.map +1 -0
  140. package/dist/vtc/directory/card/show/0.1/payload.js +695 -0
  141. package/dist/vtc/directory/card/show/0.1/payload.js.map +1 -0
  142. package/dist/vtc/directory/card/update/0.1/payload.d.ts +1291 -0
  143. package/dist/vtc/directory/card/update/0.1/payload.d.ts.map +1 -0
  144. package/dist/vtc/directory/card/update/0.1/payload.js +765 -0
  145. package/dist/vtc/directory/card/update/0.1/payload.js.map +1 -0
  146. package/dist/vtc/directory/entries/list/0.1/payload.d.ts +5525 -0
  147. package/dist/vtc/directory/entries/list/0.1/payload.d.ts.map +1 -0
  148. package/dist/vtc/directory/entries/list/0.1/payload.js +656 -0
  149. package/dist/vtc/directory/entries/list/0.1/payload.js.map +1 -0
  150. package/dist/vtc/directory/entries/show/0.1/payload.d.ts +861 -0
  151. package/dist/vtc/directory/entries/show/0.1/payload.d.ts.map +1 -0
  152. package/dist/vtc/directory/entries/show/0.1/payload.js +502 -0
  153. package/dist/vtc/directory/entries/show/0.1/payload.js.map +1 -0
  154. package/dist/vtc/directory/export/0.1/payload.d.ts +346 -0
  155. package/dist/vtc/directory/export/0.1/payload.d.ts.map +1 -0
  156. package/dist/vtc/directory/export/0.1/payload.js +192 -0
  157. package/dist/vtc/directory/export/0.1/payload.js.map +1 -0
  158. package/dist/vtc/directory/fields/define/0.1/payload.d.ts +1355 -0
  159. package/dist/vtc/directory/fields/define/0.1/payload.d.ts.map +1 -0
  160. package/dist/vtc/directory/fields/define/0.1/payload.js +811 -0
  161. package/dist/vtc/directory/fields/define/0.1/payload.js.map +1 -0
  162. package/dist/vtc/directory/fields/list/0.1/payload.d.ts +1236 -0
  163. package/dist/vtc/directory/fields/list/0.1/payload.d.ts.map +1 -0
  164. package/dist/vtc/directory/fields/list/0.1/payload.js +739 -0
  165. package/dist/vtc/directory/fields/list/0.1/payload.js.map +1 -0
  166. package/dist/vtc/directory/fields/retire/0.1/payload.d.ts +1146 -0
  167. package/dist/vtc/directory/fields/retire/0.1/payload.d.ts.map +1 -0
  168. package/dist/vtc/directory/fields/retire/0.1/payload.js +684 -0
  169. package/dist/vtc/directory/fields/retire/0.1/payload.js.map +1 -0
  170. package/dist/vtc/directory/fields/update/0.1/payload.d.ts +1223 -0
  171. package/dist/vtc/directory/fields/update/0.1/payload.d.ts.map +1 -0
  172. package/dist/vtc/directory/fields/update/0.1/payload.js +715 -0
  173. package/dist/vtc/directory/fields/update/0.1/payload.js.map +1 -0
  174. package/dist/vtc/directory/introduce/0.1/payload.d.ts +417 -0
  175. package/dist/vtc/directory/introduce/0.1/payload.d.ts.map +1 -0
  176. package/dist/vtc/directory/introduce/0.1/payload.js +183 -0
  177. package/dist/vtc/directory/introduce/0.1/payload.js.map +1 -0
  178. package/dist/vtc/directory/introduction/0.1/payload.d.ts +423 -0
  179. package/dist/vtc/directory/introduction/0.1/payload.d.ts.map +1 -0
  180. package/dist/vtc/directory/introduction/0.1/payload.js +241 -0
  181. package/dist/vtc/directory/introduction/0.1/payload.js.map +1 -0
  182. package/dist/vtc/directory/notes/append/0.1/payload.d.ts +494 -0
  183. package/dist/vtc/directory/notes/append/0.1/payload.d.ts.map +1 -0
  184. package/dist/vtc/directory/notes/append/0.1/payload.js +281 -0
  185. package/dist/vtc/directory/notes/append/0.1/payload.js.map +1 -0
  186. package/dist/vtc/directory/notes/export/0.1/payload.d.ts +530 -0
  187. package/dist/vtc/directory/notes/export/0.1/payload.d.ts.map +1 -0
  188. package/dist/vtc/directory/notes/export/0.1/payload.js +294 -0
  189. package/dist/vtc/directory/notes/export/0.1/payload.js.map +1 -0
  190. package/dist/vtc/directory/notes/list/0.1/payload.d.ts +528 -0
  191. package/dist/vtc/directory/notes/list/0.1/payload.d.ts.map +1 -0
  192. package/dist/vtc/directory/notes/list/0.1/payload.js +294 -0
  193. package/dist/vtc/directory/notes/list/0.1/payload.js.map +1 -0
  194. package/dist/vtc/groups/_shared/0.1/group.d.ts +22 -0
  195. package/dist/vtc/groups/_shared/0.1/group.d.ts.map +1 -0
  196. package/dist/vtc/groups/_shared/0.1/group.js +6 -0
  197. package/dist/vtc/groups/_shared/0.1/group.js.map +1 -0
  198. package/dist/vtc/groups/bindings/add/0.1/payload.d.ts +914 -0
  199. package/dist/vtc/groups/bindings/add/0.1/payload.d.ts.map +1 -0
  200. package/dist/vtc/groups/bindings/add/0.1/payload.js +536 -0
  201. package/dist/vtc/groups/bindings/add/0.1/payload.js.map +1 -0
  202. package/dist/vtc/groups/bindings/list/0.1/payload.d.ts +910 -0
  203. package/dist/vtc/groups/bindings/list/0.1/payload.d.ts.map +1 -0
  204. package/dist/vtc/groups/bindings/list/0.1/payload.js +533 -0
  205. package/dist/vtc/groups/bindings/list/0.1/payload.js.map +1 -0
  206. package/dist/vtc/groups/bindings/remove/0.1/payload.d.ts +310 -0
  207. package/dist/vtc/groups/bindings/remove/0.1/payload.d.ts.map +1 -0
  208. package/dist/vtc/groups/bindings/remove/0.1/payload.js +182 -0
  209. package/dist/vtc/groups/bindings/remove/0.1/payload.js.map +1 -0
  210. package/dist/vtc/groups/create/0.1/payload.d.ts +1075 -0
  211. package/dist/vtc/groups/create/0.1/payload.d.ts.map +1 -0
  212. package/dist/vtc/groups/create/0.1/payload.js +631 -0
  213. package/dist/vtc/groups/create/0.1/payload.js.map +1 -0
  214. package/dist/vtc/groups/delete/0.1/payload.d.ts +317 -0
  215. package/dist/vtc/groups/delete/0.1/payload.d.ts.map +1 -0
  216. package/dist/vtc/groups/delete/0.1/payload.js +182 -0
  217. package/dist/vtc/groups/delete/0.1/payload.js.map +1 -0
  218. package/dist/vtc/groups/join/0.1/payload.d.ts +1262 -0
  219. package/dist/vtc/groups/join/0.1/payload.d.ts.map +1 -0
  220. package/dist/vtc/groups/join/0.1/payload.js +758 -0
  221. package/dist/vtc/groups/join/0.1/payload.js.map +1 -0
  222. package/dist/vtc/groups/leave/0.1/payload.d.ts +291 -0
  223. package/dist/vtc/groups/leave/0.1/payload.d.ts.map +1 -0
  224. package/dist/vtc/groups/leave/0.1/payload.js +179 -0
  225. package/dist/vtc/groups/leave/0.1/payload.js.map +1 -0
  226. package/dist/vtc/groups/list/0.1/payload.d.ts +1127 -0
  227. package/dist/vtc/groups/list/0.1/payload.d.ts.map +1 -0
  228. package/dist/vtc/groups/list/0.1/payload.js +674 -0
  229. package/dist/vtc/groups/list/0.1/payload.js.map +1 -0
  230. package/dist/vtc/groups/members/add/0.1/payload.d.ts +1014 -0
  231. package/dist/vtc/groups/members/add/0.1/payload.d.ts.map +1 -0
  232. package/dist/vtc/groups/members/add/0.1/payload.js +607 -0
  233. package/dist/vtc/groups/members/add/0.1/payload.js.map +1 -0
  234. package/dist/vtc/groups/members/list/0.1/payload.d.ts +1018 -0
  235. package/dist/vtc/groups/members/list/0.1/payload.d.ts.map +1 -0
  236. package/dist/vtc/groups/members/list/0.1/payload.js +606 -0
  237. package/dist/vtc/groups/members/list/0.1/payload.js.map +1 -0
  238. package/dist/vtc/groups/members/remove/0.1/payload.d.ts +351 -0
  239. package/dist/vtc/groups/members/remove/0.1/payload.d.ts.map +1 -0
  240. package/dist/vtc/groups/members/remove/0.1/payload.js +205 -0
  241. package/dist/vtc/groups/members/remove/0.1/payload.js.map +1 -0
  242. package/dist/vtc/groups/requests/decide/0.1/payload.d.ts +1236 -0
  243. package/dist/vtc/groups/requests/decide/0.1/payload.d.ts.map +1 -0
  244. package/dist/vtc/groups/requests/decide/0.1/payload.js +741 -0
  245. package/dist/vtc/groups/requests/decide/0.1/payload.js.map +1 -0
  246. package/dist/vtc/groups/requests/list/0.1/payload.d.ts +1063 -0
  247. package/dist/vtc/groups/requests/list/0.1/payload.d.ts.map +1 -0
  248. package/dist/vtc/groups/requests/list/0.1/payload.js +622 -0
  249. package/dist/vtc/groups/requests/list/0.1/payload.js.map +1 -0
  250. package/dist/vtc/groups/show/0.1/payload.d.ts +1012 -0
  251. package/dist/vtc/groups/show/0.1/payload.d.ts.map +1 -0
  252. package/dist/vtc/groups/show/0.1/payload.js +619 -0
  253. package/dist/vtc/groups/show/0.1/payload.js.map +1 -0
  254. package/dist/vtc/groups/update/0.1/payload.d.ts +1078 -0
  255. package/dist/vtc/groups/update/0.1/payload.d.ts.map +1 -0
  256. package/dist/vtc/groups/update/0.1/payload.js +633 -0
  257. package/dist/vtc/groups/update/0.1/payload.js.map +1 -0
  258. package/package.json +1 -1
  259. package/src/_shared/components.ts +800 -1
  260. package/src/auth/oob/_shared/0.1/oob.ts +1 -1
  261. package/src/auth/oob/grant/0.2/payload.ts +186 -0
  262. package/src/auth/oob/prove/0.2/payload.ts +523 -0
  263. package/src/auth/oob/respond/0.2/payload.ts +178 -0
  264. package/src/device/list/0.1/payload.ts +2 -0
  265. package/src/device/list/0.2/payload.ts +2 -0
  266. package/src/device/register/0.1/payload.ts +2 -0
  267. package/src/device/register/0.2/payload.ts +2 -0
  268. package/src/index.ts +52 -0
  269. package/src/keys/sign-document/0.1/payload.ts +437 -0
  270. package/src/persona/_shared/0.1/contact-annotations.ts +23 -0
  271. package/src/persona/contact/get/1.1/payload.ts +876 -0
  272. package/src/persona/contact/list/1.1/payload.ts +497 -0
  273. package/src/persona/contact/lists/delete/1.0/payload.ts +204 -0
  274. package/src/persona/contact/lists/list/1.0/payload.ts +332 -0
  275. package/src/persona/contact/lists/put/1.0/payload.ts +429 -0
  276. package/src/persona/contact/lists/show/1.0/payload.ts +305 -0
  277. package/src/persona/contact/put/1.1/payload.ts +958 -0
  278. package/src/rooms/keys/seal/0.1/payload.ts +12 -2
  279. package/src/rooms/keys/seal/0.2/payload.ts +12 -2
  280. package/src/rooms/owner/group/remove/0.3/payload.ts +415 -0
  281. package/src/rooms/owner/register/0.2/payload.ts +415 -0
  282. package/src/rooms/records/get/0.1/payload.ts +12 -2
  283. package/src/rooms/records/get/0.2/payload.ts +12 -2
  284. package/src/rooms/records/put/0.1/payload.ts +12 -2
  285. package/src/rooms/records/put/0.2/payload.ts +12 -2
  286. package/src/vtc/admin/events/_shared/0.3/topic.ts +31 -0
  287. package/src/vtc/admin/events/event/0.3/payload.ts +136 -0
  288. package/src/vtc/admin/events/subscribe/0.3/payload.ts +314 -0
  289. package/src/vtc/directory/_shared/0.1/admin-note.ts +17 -0
  290. package/src/vtc/directory/_shared/0.1/directory-card.ts +23 -0
  291. package/src/vtc/directory/_shared/0.1/field-definition.ts +17 -0
  292. package/src/vtc/directory/card/assert/0.1/payload.ts +503 -0
  293. package/src/vtc/directory/card/present/0.1/payload.ts +437 -0
  294. package/src/vtc/directory/card/show/0.1/payload.ts +732 -0
  295. package/src/vtc/directory/card/update/0.1/payload.ts +827 -0
  296. package/src/vtc/directory/entries/list/0.1/payload.ts +5676 -0
  297. package/src/vtc/directory/entries/show/0.1/payload.ts +541 -0
  298. package/src/vtc/directory/export/0.1/payload.ts +241 -0
  299. package/src/vtc/directory/fields/define/0.1/payload.ts +847 -0
  300. package/src/vtc/directory/fields/list/0.1/payload.ts +780 -0
  301. package/src/vtc/directory/fields/retire/0.1/payload.ts +723 -0
  302. package/src/vtc/directory/fields/update/0.1/payload.ts +767 -0
  303. package/src/vtc/directory/introduce/0.1/payload.ts +324 -0
  304. package/src/vtc/directory/introduction/0.1/payload.ts +278 -0
  305. package/src/vtc/directory/notes/append/0.1/payload.ts +319 -0
  306. package/src/vtc/directory/notes/export/0.1/payload.ts +337 -0
  307. package/src/vtc/directory/notes/list/0.1/payload.ts +337 -0
  308. package/src/vtc/groups/_shared/0.1/group.ts +23 -0
  309. package/src/vtc/groups/bindings/add/0.1/payload.ts +573 -0
  310. package/src/vtc/groups/bindings/list/0.1/payload.ts +568 -0
  311. package/src/vtc/groups/bindings/remove/0.1/payload.ts +223 -0
  312. package/src/vtc/groups/create/0.1/payload.ts +683 -0
  313. package/src/vtc/groups/delete/0.1/payload.ts +224 -0
  314. package/src/vtc/groups/join/0.1/payload.ts +807 -0
  315. package/src/vtc/groups/leave/0.1/payload.ts +219 -0
  316. package/src/vtc/groups/list/0.1/payload.ts +728 -0
  317. package/src/vtc/groups/members/add/0.1/payload.ts +648 -0
  318. package/src/vtc/groups/members/list/0.1/payload.ts +647 -0
  319. package/src/vtc/groups/members/remove/0.1/payload.ts +251 -0
  320. package/src/vtc/groups/requests/decide/0.1/payload.ts +786 -0
  321. package/src/vtc/groups/requests/list/0.1/payload.ts +670 -0
  322. package/src/vtc/groups/show/0.1/payload.ts +652 -0
  323. package/src/vtc/groups/update/0.1/payload.ts +682 -0
@@ -0,0 +1,627 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/keys/sign-document/0.1/payload.schema.json
4
+ */
5
+ import type { Ext } from "../../../_shared/components.js";
6
+ /**
7
+ * A request for a W3C Data Integrity proof (`eddsa-jcs-2022`) over a JSON document, made with a key the custodian already holds, named by `keyId`. The document names its own signer — an `issuer` or a `controller` — and the custodian signs only as that DID, only with a key that DID's document lists under the requested proof purpose. The custodian canonicalises the document (RFC 8785), builds the proof configuration and the signing input itself; the producer never supplies bytes to sign. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
8
+ */
9
+ export interface KeysSignDocumentPayload {
10
+ /**
11
+ * Identifier of the key to sign with, as `keys/show` describes it. The key MUST be `active`, `ed25519`, and a verification method of the DID the document names as its issuer or controller.
12
+ */
13
+ keyId: string;
14
+ /**
15
+ * The JSON document to secure — a verifiable credential, a Trust Task document, or another document that names its own signer. It MUST NOT carry `proof`, and MUST carry `issuer` (a DID, or an object whose `id` is a DID) or `controller` (a DID, or an array holding exactly one DID), every one present naming the DID the key belongs to. The custodian checks these rules itself (`proofPresent`, `documentInvalid`, `issuerMismatch`) rather than the schema, because the document is carried whole and every member is signed as given: a typed document would drop the members it does not name. The custodian serialises the whole object with RFC 8785.
16
+ */
17
+ document: {};
18
+ /**
19
+ * The verification relationship the proof is made under, carried verbatim into the proof (W3C Data Integrity). The key MUST be listed under this relationship in the signer DID's document. Absent means `assertionMethod`, which is what a credential's issuer signs under; `authentication` is for a document the DID presents as itself, such as a Trust Task document. Externally owned, carried verbatim.
20
+ */
21
+ proofPurpose?: "assertionMethod" | "authentication";
22
+ /**
23
+ * The proof's `created` value (an XML Schema dateTimeStamp, as Data Integrity requires). Absent means the custodian's own clock at signing. When present, the custodian refuses a value outside its acceptance window around its own clock with `keys:invalidArgument`: the key's signature dates the proof, so the producer cannot back- or forward-date it.
24
+ */
25
+ created?: string;
26
+ /**
27
+ * A challenge the proof's verifier issued, copied into the proof's `challenge` member verbatim (W3C Data Integrity). Absent means the proof carries none. The custodian does not interpret it.
28
+ */
29
+ challenge?: string;
30
+ /**
31
+ * The security domain the proof is restricted to, copied into the proof's `domain` member verbatim (W3C Data Integrity). Absent means the proof carries none. The custodian does not interpret it.
32
+ */
33
+ domain?: string;
34
+ /**
35
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
36
+ */
37
+ ext?: Ext;
38
+ }
39
+ /**
40
+ * The success response to a keys/sign-document request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/keys/sign-document/0.1#response. Failures use trust-task-error, not this shape.
41
+ */
42
+ export interface KeysSignDocumentResponsePayload {
43
+ /**
44
+ * The key that produced the proof. Echoed so a response separated from its request is still attributable.
45
+ */
46
+ keyId: string;
47
+ /**
48
+ * The DID the document was signed as — the one its `issuer` or `controller` names, and the DID a verifier resolves the proof's verification method against.
49
+ */
50
+ signerDid: string;
51
+ /**
52
+ * The request's document, unchanged, with `proof` added. Every other member is exactly as the producer sent it.
53
+ */
54
+ document: {};
55
+ proof: DataIntegrityProof;
56
+ ext?: Ext;
57
+ }
58
+ /**
59
+ * The proof the custodian attached to `document`, returned on its own so a producer need not dig it out.
60
+ */
61
+ export interface DataIntegrityProof {
62
+ /**
63
+ * The document's own `@context`, copied into the proof configuration as `eddsa-jcs-2022` requires when the document has one; absent otherwise.
64
+ */
65
+ "@context"?: string | [unknown, ...unknown[]];
66
+ type: "DataIntegrityProof";
67
+ /**
68
+ * The only cryptosuite this version defines.
69
+ */
70
+ cryptosuite: "eddsa-jcs-2022";
71
+ created: string;
72
+ /**
73
+ * The DID URL of the key's verification method in the signer DID's document, chosen by the custodian.
74
+ */
75
+ verificationMethod: string;
76
+ proofPurpose: "assertionMethod" | "authentication";
77
+ challenge?: string;
78
+ domain?: string;
79
+ /**
80
+ * The Ed25519 signature, base58btc multibase-encoded.
81
+ */
82
+ proofValue: string;
83
+ }
84
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
85
+ export type { Ext };
86
+ /** Trust Task type URI. */
87
+ export declare const TYPE_URI: "https://trusttasks.org/spec/keys/sign-document/0.1";
88
+ /** Stable alias for this specification's request payload shape. */
89
+ export type Payload = KeysSignDocumentPayload;
90
+ /** Trust Task response type URI (request type URI + "#response"). */
91
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/keys/sign-document/0.1#response";
92
+ /** Stable alias for this specification's success-response payload shape. */
93
+ export type Response = KeysSignDocumentResponsePayload;
94
+ /**
95
+ * This specification's payload schema, as a value.
96
+ *
97
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
98
+ * rather than only as a `.json` file because TypeScript types are erased
99
+ * at runtime: without a schema a consumer has nothing to validate, and
100
+ * every REQUIRED payload member is optional in practice. Cross-file
101
+ * `$ref`s are already inlined, so it needs no resolver.
102
+ */
103
+ export declare const PAYLOAD_SCHEMA: {
104
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
105
+ readonly $id: "https://trusttasks.org/spec/keys/sign-document/0.1";
106
+ readonly title: "Keys — Sign Document — payload";
107
+ readonly description: "A request for a W3C Data Integrity proof (`eddsa-jcs-2022`) over a JSON document, made with a key the custodian already holds, named by `keyId`. The document names its own signer — an `issuer` or a `controller` — and the custodian signs only as that DID, only with a key that DID's document lists under the requested proof purpose. The custodian canonicalises the document (RFC 8785), builds the proof configuration and the signing input itself; the producer never supplies bytes to sign. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
108
+ readonly type: "object";
109
+ readonly additionalProperties: false;
110
+ readonly required: readonly ["keyId", "document"];
111
+ readonly properties: {
112
+ readonly keyId: {
113
+ readonly type: "string";
114
+ readonly minLength: 1;
115
+ readonly description: "Identifier of the key to sign with, as `keys/show` describes it. The key MUST be `active`, `ed25519`, and a verification method of the DID the document names as its issuer or controller.";
116
+ };
117
+ readonly document: {
118
+ readonly type: "object";
119
+ readonly description: "The JSON document to secure — a verifiable credential, a Trust Task document, or another document that names its own signer. It MUST NOT carry `proof`, and MUST carry `issuer` (a DID, or an object whose `id` is a DID) or `controller` (a DID, or an array holding exactly one DID), every one present naming the DID the key belongs to. The custodian checks these rules itself (`proofPresent`, `documentInvalid`, `issuerMismatch`) rather than the schema, because the document is carried whole and every member is signed as given: a typed document would drop the members it does not name. The custodian serialises the whole object with RFC 8785.";
120
+ };
121
+ readonly proofPurpose: {
122
+ readonly type: "string";
123
+ readonly enum: readonly ["assertionMethod", "authentication"];
124
+ readonly description: "The verification relationship the proof is made under, carried verbatim into the proof (W3C Data Integrity). The key MUST be listed under this relationship in the signer DID's document. Absent means `assertionMethod`, which is what a credential's issuer signs under; `authentication` is for a document the DID presents as itself, such as a Trust Task document. Externally owned, carried verbatim.";
125
+ };
126
+ readonly created: {
127
+ readonly type: "string";
128
+ readonly format: "date-time";
129
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:\\d{2})$";
130
+ readonly description: "The proof's `created` value (an XML Schema dateTimeStamp, as Data Integrity requires). Absent means the custodian's own clock at signing. When present, the custodian refuses a value outside its acceptance window around its own clock with `keys:invalidArgument`: the key's signature dates the proof, so the producer cannot back- or forward-date it.";
131
+ };
132
+ readonly challenge: {
133
+ readonly type: "string";
134
+ readonly minLength: 1;
135
+ readonly maxLength: 1024;
136
+ readonly description: "A challenge the proof's verifier issued, copied into the proof's `challenge` member verbatim (W3C Data Integrity). Absent means the proof carries none. The custodian does not interpret it.";
137
+ };
138
+ readonly domain: {
139
+ readonly type: "string";
140
+ readonly minLength: 1;
141
+ readonly maxLength: 1024;
142
+ readonly description: "The security domain the proof is restricted to, copied into the proof's `domain` member verbatim (W3C Data Integrity). Absent means the proof carries none. The custodian does not interpret it.";
143
+ };
144
+ readonly ext: {
145
+ readonly $ref: "#/$defs/Ext";
146
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
147
+ };
148
+ };
149
+ readonly $defs: {
150
+ readonly Did: {
151
+ readonly type: "string";
152
+ readonly minLength: 7;
153
+ readonly maxLength: 2048;
154
+ readonly pattern: "^did:[a-z0-9]+:[A-Za-z0-9._:%-]*[A-Za-z0-9._%-]$";
155
+ readonly description: "A DID (W3C DID Core §3.1) — never a DID URL: no path, query or fragment.";
156
+ };
157
+ readonly Proof: {
158
+ readonly title: "Data Integrity proof";
159
+ readonly description: "The proof the custodian made: a W3C `DataIntegrityProof` under the `eddsa-jcs-2022` cryptosuite. Member names and values are Data Integrity's, carried verbatim.";
160
+ readonly type: "object";
161
+ readonly additionalProperties: false;
162
+ readonly required: readonly ["type", "cryptosuite", "created", "verificationMethod", "proofPurpose", "proofValue"];
163
+ readonly properties: {
164
+ readonly "@context": {
165
+ readonly description: "The document's own `@context`, copied into the proof configuration as `eddsa-jcs-2022` requires when the document has one; absent otherwise.";
166
+ readonly oneOf: readonly [{
167
+ readonly type: "string";
168
+ }, {
169
+ readonly type: "array";
170
+ readonly minItems: 1;
171
+ }];
172
+ };
173
+ readonly type: {
174
+ readonly type: "string";
175
+ readonly const: "DataIntegrityProof";
176
+ };
177
+ readonly cryptosuite: {
178
+ readonly type: "string";
179
+ readonly enum: readonly ["eddsa-jcs-2022"];
180
+ readonly description: "The only cryptosuite this version defines.";
181
+ };
182
+ readonly created: {
183
+ readonly type: "string";
184
+ readonly format: "date-time";
185
+ };
186
+ readonly verificationMethod: {
187
+ readonly type: "string";
188
+ readonly pattern: "^did:[a-z0-9]+:[^#\\s]+#[^\\s]+$";
189
+ readonly description: "The DID URL of the key's verification method in the signer DID's document, chosen by the custodian.";
190
+ };
191
+ readonly proofPurpose: {
192
+ readonly type: "string";
193
+ readonly enum: readonly ["assertionMethod", "authentication"];
194
+ };
195
+ readonly challenge: {
196
+ readonly type: "string";
197
+ };
198
+ readonly domain: {
199
+ readonly type: "string";
200
+ };
201
+ readonly proofValue: {
202
+ readonly type: "string";
203
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
204
+ readonly description: "The Ed25519 signature, base58btc multibase-encoded.";
205
+ };
206
+ };
207
+ };
208
+ readonly Response: {
209
+ readonly $anchor: "response";
210
+ readonly title: "Keys — Sign Document — response payload";
211
+ readonly description: "The success response to a keys/sign-document request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/keys/sign-document/0.1#response. Failures use trust-task-error, not this shape.";
212
+ readonly type: "object";
213
+ readonly additionalProperties: false;
214
+ readonly required: readonly ["keyId", "signerDid", "document", "proof"];
215
+ readonly properties: {
216
+ readonly keyId: {
217
+ readonly type: "string";
218
+ readonly description: "The key that produced the proof. Echoed so a response separated from its request is still attributable.";
219
+ };
220
+ readonly signerDid: {
221
+ readonly $ref: "#/$defs/Did";
222
+ readonly description: "The DID the document was signed as — the one its `issuer` or `controller` names, and the DID a verifier resolves the proof's verification method against.";
223
+ };
224
+ readonly document: {
225
+ readonly type: "object";
226
+ readonly description: "The request's document, unchanged, with `proof` added. Every other member is exactly as the producer sent it.";
227
+ };
228
+ readonly proof: {
229
+ readonly $ref: "#/$defs/Proof";
230
+ readonly description: "The proof the custodian attached to `document`, returned on its own so a producer need not dig it out.";
231
+ };
232
+ readonly ext: {
233
+ readonly $ref: "#/$defs/Ext";
234
+ };
235
+ };
236
+ };
237
+ readonly Ext: {
238
+ readonly title: "Ext";
239
+ 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.";
240
+ readonly type: "object";
241
+ readonly minProperties: 1;
242
+ readonly additionalProperties: true;
243
+ readonly propertyNames: {
244
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
245
+ };
246
+ };
247
+ };
248
+ };
249
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
250
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
251
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
252
+ readonly $ref: "#/$defs/Response";
253
+ readonly $defs: {
254
+ readonly Did: {
255
+ readonly type: "string";
256
+ readonly minLength: 7;
257
+ readonly maxLength: 2048;
258
+ readonly pattern: "^did:[a-z0-9]+:[A-Za-z0-9._:%-]*[A-Za-z0-9._%-]$";
259
+ readonly description: "A DID (W3C DID Core §3.1) — never a DID URL: no path, query or fragment.";
260
+ };
261
+ readonly Proof: {
262
+ readonly title: "Data Integrity proof";
263
+ readonly description: "The proof the custodian made: a W3C `DataIntegrityProof` under the `eddsa-jcs-2022` cryptosuite. Member names and values are Data Integrity's, carried verbatim.";
264
+ readonly type: "object";
265
+ readonly additionalProperties: false;
266
+ readonly required: readonly ["type", "cryptosuite", "created", "verificationMethod", "proofPurpose", "proofValue"];
267
+ readonly properties: {
268
+ readonly "@context": {
269
+ readonly description: "The document's own `@context`, copied into the proof configuration as `eddsa-jcs-2022` requires when the document has one; absent otherwise.";
270
+ readonly oneOf: readonly [{
271
+ readonly type: "string";
272
+ }, {
273
+ readonly type: "array";
274
+ readonly minItems: 1;
275
+ }];
276
+ };
277
+ readonly type: {
278
+ readonly type: "string";
279
+ readonly const: "DataIntegrityProof";
280
+ };
281
+ readonly cryptosuite: {
282
+ readonly type: "string";
283
+ readonly enum: readonly ["eddsa-jcs-2022"];
284
+ readonly description: "The only cryptosuite this version defines.";
285
+ };
286
+ readonly created: {
287
+ readonly type: "string";
288
+ readonly format: "date-time";
289
+ };
290
+ readonly verificationMethod: {
291
+ readonly type: "string";
292
+ readonly pattern: "^did:[a-z0-9]+:[^#\\s]+#[^\\s]+$";
293
+ readonly description: "The DID URL of the key's verification method in the signer DID's document, chosen by the custodian.";
294
+ };
295
+ readonly proofPurpose: {
296
+ readonly type: "string";
297
+ readonly enum: readonly ["assertionMethod", "authentication"];
298
+ };
299
+ readonly challenge: {
300
+ readonly type: "string";
301
+ };
302
+ readonly domain: {
303
+ readonly type: "string";
304
+ };
305
+ readonly proofValue: {
306
+ readonly type: "string";
307
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
308
+ readonly description: "The Ed25519 signature, base58btc multibase-encoded.";
309
+ };
310
+ };
311
+ };
312
+ readonly Response: {
313
+ readonly $anchor: "response";
314
+ readonly title: "Keys — Sign Document — response payload";
315
+ readonly description: "The success response to a keys/sign-document request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/keys/sign-document/0.1#response. Failures use trust-task-error, not this shape.";
316
+ readonly type: "object";
317
+ readonly additionalProperties: false;
318
+ readonly required: readonly ["keyId", "signerDid", "document", "proof"];
319
+ readonly properties: {
320
+ readonly keyId: {
321
+ readonly type: "string";
322
+ readonly description: "The key that produced the proof. Echoed so a response separated from its request is still attributable.";
323
+ };
324
+ readonly signerDid: {
325
+ readonly $ref: "#/$defs/Did";
326
+ readonly description: "The DID the document was signed as — the one its `issuer` or `controller` names, and the DID a verifier resolves the proof's verification method against.";
327
+ };
328
+ readonly document: {
329
+ readonly type: "object";
330
+ readonly description: "The request's document, unchanged, with `proof` added. Every other member is exactly as the producer sent it.";
331
+ };
332
+ readonly proof: {
333
+ readonly $ref: "#/$defs/Proof";
334
+ readonly description: "The proof the custodian attached to `document`, returned on its own so a producer need not dig it out.";
335
+ };
336
+ readonly ext: {
337
+ readonly $ref: "#/$defs/Ext";
338
+ };
339
+ };
340
+ };
341
+ readonly Ext: {
342
+ readonly title: "Ext";
343
+ 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.";
344
+ readonly type: "object";
345
+ readonly minProperties: 1;
346
+ readonly additionalProperties: true;
347
+ readonly propertyNames: {
348
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
349
+ };
350
+ };
351
+ };
352
+ };
353
+ /**
354
+ * SPEC.md §7.2 policy for the request variant, from this specification's
355
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
356
+ * per-specification and cannot be derived from the document alone, and
357
+ * item 2 needs the schema this carries.
358
+ */
359
+ export declare const SPEC: {
360
+ readonly typeUri: "https://trusttasks.org/spec/keys/sign-document/0.1";
361
+ readonly isBearer: false;
362
+ readonly isProofRequired: true;
363
+ readonly isRecipientRequired: true;
364
+ readonly isIssuedAtRequired: true;
365
+ readonly payloadSchema: {
366
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
367
+ readonly $id: "https://trusttasks.org/spec/keys/sign-document/0.1";
368
+ readonly title: "Keys — Sign Document — payload";
369
+ readonly description: "A request for a W3C Data Integrity proof (`eddsa-jcs-2022`) over a JSON document, made with a key the custodian already holds, named by `keyId`. The document names its own signer — an `issuer` or a `controller` — and the custodian signs only as that DID, only with a key that DID's document lists under the requested proof purpose. The custodian canonicalises the document (RFC 8785), builds the proof configuration and the signing input itself; the producer never supplies bytes to sign. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
370
+ readonly type: "object";
371
+ readonly additionalProperties: false;
372
+ readonly required: readonly ["keyId", "document"];
373
+ readonly properties: {
374
+ readonly keyId: {
375
+ readonly type: "string";
376
+ readonly minLength: 1;
377
+ readonly description: "Identifier of the key to sign with, as `keys/show` describes it. The key MUST be `active`, `ed25519`, and a verification method of the DID the document names as its issuer or controller.";
378
+ };
379
+ readonly document: {
380
+ readonly type: "object";
381
+ readonly description: "The JSON document to secure — a verifiable credential, a Trust Task document, or another document that names its own signer. It MUST NOT carry `proof`, and MUST carry `issuer` (a DID, or an object whose `id` is a DID) or `controller` (a DID, or an array holding exactly one DID), every one present naming the DID the key belongs to. The custodian checks these rules itself (`proofPresent`, `documentInvalid`, `issuerMismatch`) rather than the schema, because the document is carried whole and every member is signed as given: a typed document would drop the members it does not name. The custodian serialises the whole object with RFC 8785.";
382
+ };
383
+ readonly proofPurpose: {
384
+ readonly type: "string";
385
+ readonly enum: readonly ["assertionMethod", "authentication"];
386
+ readonly description: "The verification relationship the proof is made under, carried verbatim into the proof (W3C Data Integrity). The key MUST be listed under this relationship in the signer DID's document. Absent means `assertionMethod`, which is what a credential's issuer signs under; `authentication` is for a document the DID presents as itself, such as a Trust Task document. Externally owned, carried verbatim.";
387
+ };
388
+ readonly created: {
389
+ readonly type: "string";
390
+ readonly format: "date-time";
391
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:\\d{2})$";
392
+ readonly description: "The proof's `created` value (an XML Schema dateTimeStamp, as Data Integrity requires). Absent means the custodian's own clock at signing. When present, the custodian refuses a value outside its acceptance window around its own clock with `keys:invalidArgument`: the key's signature dates the proof, so the producer cannot back- or forward-date it.";
393
+ };
394
+ readonly challenge: {
395
+ readonly type: "string";
396
+ readonly minLength: 1;
397
+ readonly maxLength: 1024;
398
+ readonly description: "A challenge the proof's verifier issued, copied into the proof's `challenge` member verbatim (W3C Data Integrity). Absent means the proof carries none. The custodian does not interpret it.";
399
+ };
400
+ readonly domain: {
401
+ readonly type: "string";
402
+ readonly minLength: 1;
403
+ readonly maxLength: 1024;
404
+ readonly description: "The security domain the proof is restricted to, copied into the proof's `domain` member verbatim (W3C Data Integrity). Absent means the proof carries none. The custodian does not interpret it.";
405
+ };
406
+ readonly ext: {
407
+ readonly $ref: "#/$defs/Ext";
408
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
409
+ };
410
+ };
411
+ readonly $defs: {
412
+ readonly Did: {
413
+ readonly type: "string";
414
+ readonly minLength: 7;
415
+ readonly maxLength: 2048;
416
+ readonly pattern: "^did:[a-z0-9]+:[A-Za-z0-9._:%-]*[A-Za-z0-9._%-]$";
417
+ readonly description: "A DID (W3C DID Core §3.1) — never a DID URL: no path, query or fragment.";
418
+ };
419
+ readonly Proof: {
420
+ readonly title: "Data Integrity proof";
421
+ readonly description: "The proof the custodian made: a W3C `DataIntegrityProof` under the `eddsa-jcs-2022` cryptosuite. Member names and values are Data Integrity's, carried verbatim.";
422
+ readonly type: "object";
423
+ readonly additionalProperties: false;
424
+ readonly required: readonly ["type", "cryptosuite", "created", "verificationMethod", "proofPurpose", "proofValue"];
425
+ readonly properties: {
426
+ readonly "@context": {
427
+ readonly description: "The document's own `@context`, copied into the proof configuration as `eddsa-jcs-2022` requires when the document has one; absent otherwise.";
428
+ readonly oneOf: readonly [{
429
+ readonly type: "string";
430
+ }, {
431
+ readonly type: "array";
432
+ readonly minItems: 1;
433
+ }];
434
+ };
435
+ readonly type: {
436
+ readonly type: "string";
437
+ readonly const: "DataIntegrityProof";
438
+ };
439
+ readonly cryptosuite: {
440
+ readonly type: "string";
441
+ readonly enum: readonly ["eddsa-jcs-2022"];
442
+ readonly description: "The only cryptosuite this version defines.";
443
+ };
444
+ readonly created: {
445
+ readonly type: "string";
446
+ readonly format: "date-time";
447
+ };
448
+ readonly verificationMethod: {
449
+ readonly type: "string";
450
+ readonly pattern: "^did:[a-z0-9]+:[^#\\s]+#[^\\s]+$";
451
+ readonly description: "The DID URL of the key's verification method in the signer DID's document, chosen by the custodian.";
452
+ };
453
+ readonly proofPurpose: {
454
+ readonly type: "string";
455
+ readonly enum: readonly ["assertionMethod", "authentication"];
456
+ };
457
+ readonly challenge: {
458
+ readonly type: "string";
459
+ };
460
+ readonly domain: {
461
+ readonly type: "string";
462
+ };
463
+ readonly proofValue: {
464
+ readonly type: "string";
465
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
466
+ readonly description: "The Ed25519 signature, base58btc multibase-encoded.";
467
+ };
468
+ };
469
+ };
470
+ readonly Response: {
471
+ readonly $anchor: "response";
472
+ readonly title: "Keys — Sign Document — response payload";
473
+ readonly description: "The success response to a keys/sign-document request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/keys/sign-document/0.1#response. Failures use trust-task-error, not this shape.";
474
+ readonly type: "object";
475
+ readonly additionalProperties: false;
476
+ readonly required: readonly ["keyId", "signerDid", "document", "proof"];
477
+ readonly properties: {
478
+ readonly keyId: {
479
+ readonly type: "string";
480
+ readonly description: "The key that produced the proof. Echoed so a response separated from its request is still attributable.";
481
+ };
482
+ readonly signerDid: {
483
+ readonly $ref: "#/$defs/Did";
484
+ readonly description: "The DID the document was signed as — the one its `issuer` or `controller` names, and the DID a verifier resolves the proof's verification method against.";
485
+ };
486
+ readonly document: {
487
+ readonly type: "object";
488
+ readonly description: "The request's document, unchanged, with `proof` added. Every other member is exactly as the producer sent it.";
489
+ };
490
+ readonly proof: {
491
+ readonly $ref: "#/$defs/Proof";
492
+ readonly description: "The proof the custodian attached to `document`, returned on its own so a producer need not dig it out.";
493
+ };
494
+ readonly ext: {
495
+ readonly $ref: "#/$defs/Ext";
496
+ };
497
+ };
498
+ };
499
+ readonly Ext: {
500
+ readonly title: "Ext";
501
+ 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.";
502
+ readonly type: "object";
503
+ readonly minProperties: 1;
504
+ readonly additionalProperties: true;
505
+ readonly propertyNames: {
506
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
507
+ };
508
+ };
509
+ };
510
+ };
511
+ };
512
+ /**
513
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
514
+ * tracks the *issuer* party's requirement because a response swaps the
515
+ * parties (§7.3 item 5).
516
+ */
517
+ export declare const RESPONSE_SPEC: {
518
+ readonly typeUri: "https://trusttasks.org/spec/keys/sign-document/0.1#response";
519
+ readonly isBearer: false;
520
+ readonly isProofRequired: false;
521
+ readonly isRecipientRequired: true;
522
+ readonly isIssuedAtRequired: true;
523
+ readonly payloadSchema: {
524
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
525
+ readonly $ref: "#/$defs/Response";
526
+ readonly $defs: {
527
+ readonly Did: {
528
+ readonly type: "string";
529
+ readonly minLength: 7;
530
+ readonly maxLength: 2048;
531
+ readonly pattern: "^did:[a-z0-9]+:[A-Za-z0-9._:%-]*[A-Za-z0-9._%-]$";
532
+ readonly description: "A DID (W3C DID Core §3.1) — never a DID URL: no path, query or fragment.";
533
+ };
534
+ readonly Proof: {
535
+ readonly title: "Data Integrity proof";
536
+ readonly description: "The proof the custodian made: a W3C `DataIntegrityProof` under the `eddsa-jcs-2022` cryptosuite. Member names and values are Data Integrity's, carried verbatim.";
537
+ readonly type: "object";
538
+ readonly additionalProperties: false;
539
+ readonly required: readonly ["type", "cryptosuite", "created", "verificationMethod", "proofPurpose", "proofValue"];
540
+ readonly properties: {
541
+ readonly "@context": {
542
+ readonly description: "The document's own `@context`, copied into the proof configuration as `eddsa-jcs-2022` requires when the document has one; absent otherwise.";
543
+ readonly oneOf: readonly [{
544
+ readonly type: "string";
545
+ }, {
546
+ readonly type: "array";
547
+ readonly minItems: 1;
548
+ }];
549
+ };
550
+ readonly type: {
551
+ readonly type: "string";
552
+ readonly const: "DataIntegrityProof";
553
+ };
554
+ readonly cryptosuite: {
555
+ readonly type: "string";
556
+ readonly enum: readonly ["eddsa-jcs-2022"];
557
+ readonly description: "The only cryptosuite this version defines.";
558
+ };
559
+ readonly created: {
560
+ readonly type: "string";
561
+ readonly format: "date-time";
562
+ };
563
+ readonly verificationMethod: {
564
+ readonly type: "string";
565
+ readonly pattern: "^did:[a-z0-9]+:[^#\\s]+#[^\\s]+$";
566
+ readonly description: "The DID URL of the key's verification method in the signer DID's document, chosen by the custodian.";
567
+ };
568
+ readonly proofPurpose: {
569
+ readonly type: "string";
570
+ readonly enum: readonly ["assertionMethod", "authentication"];
571
+ };
572
+ readonly challenge: {
573
+ readonly type: "string";
574
+ };
575
+ readonly domain: {
576
+ readonly type: "string";
577
+ };
578
+ readonly proofValue: {
579
+ readonly type: "string";
580
+ readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
581
+ readonly description: "The Ed25519 signature, base58btc multibase-encoded.";
582
+ };
583
+ };
584
+ };
585
+ readonly Response: {
586
+ readonly $anchor: "response";
587
+ readonly title: "Keys — Sign Document — response payload";
588
+ readonly description: "The success response to a keys/sign-document request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/keys/sign-document/0.1#response. Failures use trust-task-error, not this shape.";
589
+ readonly type: "object";
590
+ readonly additionalProperties: false;
591
+ readonly required: readonly ["keyId", "signerDid", "document", "proof"];
592
+ readonly properties: {
593
+ readonly keyId: {
594
+ readonly type: "string";
595
+ readonly description: "The key that produced the proof. Echoed so a response separated from its request is still attributable.";
596
+ };
597
+ readonly signerDid: {
598
+ readonly $ref: "#/$defs/Did";
599
+ readonly description: "The DID the document was signed as — the one its `issuer` or `controller` names, and the DID a verifier resolves the proof's verification method against.";
600
+ };
601
+ readonly document: {
602
+ readonly type: "object";
603
+ readonly description: "The request's document, unchanged, with `proof` added. Every other member is exactly as the producer sent it.";
604
+ };
605
+ readonly proof: {
606
+ readonly $ref: "#/$defs/Proof";
607
+ readonly description: "The proof the custodian attached to `document`, returned on its own so a producer need not dig it out.";
608
+ };
609
+ readonly ext: {
610
+ readonly $ref: "#/$defs/Ext";
611
+ };
612
+ };
613
+ };
614
+ readonly Ext: {
615
+ readonly title: "Ext";
616
+ 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.";
617
+ readonly type: "object";
618
+ readonly minProperties: 1;
619
+ readonly additionalProperties: true;
620
+ readonly propertyNames: {
621
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
622
+ };
623
+ };
624
+ };
625
+ };
626
+ };
627
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/keys/sign-document/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AAG1D;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,EAAE,EAAE,CAAC;IACb;;OAEG;IACH,YAAY,CAAC,EAAE,iBAAiB,GAAG,gBAAgB,CAAC;IACpD;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,EAAE,EAAE,CAAC;IACb,KAAK,EAAE,kBAAkB,CAAC;IAC1B,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC,OAAO,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9C,IAAI,EAAE,oBAAoB,CAAC;IAC3B;;OAEG;IACH,WAAW,EAAE,gBAAgB,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B,YAAY,EAAE,iBAAiB,GAAG,gBAAgB,CAAC;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,CAAC;AAEpB,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,oDAA6D,CAAC;AAEtF,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,uBAAuB,CAAC;AAE9C,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,6DAAsE,CAAC;AAExG,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,+BAA+B,CAAC;AAEvD;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2KjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0H1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}