@openvtc/trust-tasks 0.28.2 → 0.28.4

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 (264) hide show
  1. package/CHANGELOG.md +146 -0
  2. package/dist/_extends.d.ts.map +1 -1
  3. package/dist/_extends.js +9 -1
  4. package/dist/_extends.js.map +1 -1
  5. package/dist/_shared/components.d.ts +530 -3
  6. package/dist/_shared/components.d.ts.map +1 -1
  7. package/dist/index.d.ts +66 -0
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +66 -0
  10. package/dist/index.js.map +1 -1
  11. package/dist/peer-check/ask/0.1/payload.d.ts +397 -0
  12. package/dist/peer-check/ask/0.1/payload.d.ts.map +1 -0
  13. package/dist/peer-check/ask/0.1/payload.js +235 -0
  14. package/dist/peer-check/ask/0.1/payload.js.map +1 -0
  15. package/dist/rooms/keys/act/0.1/payload.d.ts +4 -4
  16. package/dist/rooms/keys/act/0.1/payload.js +1 -1
  17. package/dist/rooms/keys/act/0.2/payload.d.ts +4 -4
  18. package/dist/rooms/keys/act/0.2/payload.js +1 -1
  19. package/dist/rooms/keys/act/0.3/payload.d.ts +4 -4
  20. package/dist/rooms/keys/act/0.3/payload.js +1 -1
  21. package/dist/rooms/keys/act/0.4/payload.d.ts +4 -4
  22. package/dist/rooms/keys/act/0.4/payload.js +1 -1
  23. package/dist/rooms/keys/act/0.5/payload.d.ts +4 -4
  24. package/dist/rooms/keys/act/0.5/payload.js +1 -1
  25. package/dist/rooms/keys/act/0.6/payload.d.ts +4 -4
  26. package/dist/rooms/keys/act/0.6/payload.js +1 -1
  27. package/dist/rooms/keys/act/0.7/payload.d.ts +4 -4
  28. package/dist/rooms/keys/act/0.7/payload.js +1 -1
  29. package/dist/rooms/keys/act/0.8/payload.d.ts +14 -2
  30. package/dist/rooms/keys/act/0.8/payload.d.ts.map +1 -1
  31. package/dist/rooms/keys/act/0.8/payload.js +1 -1
  32. package/dist/rooms/keys/act/0.8/payload.js.map +1 -1
  33. package/dist/rooms/keys/act/0.9/payload.d.ts +560 -0
  34. package/dist/rooms/keys/act/0.9/payload.d.ts.map +1 -0
  35. package/dist/rooms/keys/act/0.9/payload.js +319 -0
  36. package/dist/rooms/keys/act/0.9/payload.js.map +1 -0
  37. package/dist/rooms/records/put/0.1/payload.d.ts +4 -4
  38. package/dist/rooms/records/put/0.1/payload.js +1 -1
  39. package/dist/rooms/records/put/0.2/payload.d.ts +4 -4
  40. package/dist/rooms/records/put/0.2/payload.js +1 -1
  41. package/dist/rooms/records/put/0.3/payload.d.ts +14 -2
  42. package/dist/rooms/records/put/0.3/payload.d.ts.map +1 -1
  43. package/dist/rooms/records/put/0.3/payload.js +1 -1
  44. package/dist/rooms/records/put/0.3/payload.js.map +1 -1
  45. package/dist/rooms/records/put/0.4/payload.d.ts +1474 -0
  46. package/dist/rooms/records/put/0.4/payload.d.ts.map +1 -0
  47. package/dist/rooms/records/put/0.4/payload.js +804 -0
  48. package/dist/rooms/records/put/0.4/payload.js.map +1 -0
  49. package/dist/vta/_shared/0.3/did-key-roles.d.ts +1 -1
  50. package/dist/vta/_shared/0.9/did-template.d.ts +16 -0
  51. package/dist/vta/_shared/0.9/did-template.d.ts.map +1 -0
  52. package/dist/vta/_shared/0.9/did-template.js +6 -0
  53. package/dist/vta/_shared/0.9/did-template.js.map +1 -0
  54. package/dist/vta/did-templates/create/2.0/payload.d.ts +3 -3
  55. package/dist/vta/did-templates/create/2.0/payload.js +1 -1
  56. package/dist/vta/did-templates/create/3.0/payload.d.ts +3 -3
  57. package/dist/vta/did-templates/create/3.0/payload.js +1 -1
  58. package/dist/vta/did-templates/create/3.1/payload.d.ts +12 -2
  59. package/dist/vta/did-templates/create/3.1/payload.d.ts.map +1 -1
  60. package/dist/vta/did-templates/create/3.1/payload.js +1 -1
  61. package/dist/vta/did-templates/create/3.1/payload.js.map +1 -1
  62. package/dist/vta/did-templates/create/3.2/payload.d.ts +1310 -0
  63. package/dist/vta/did-templates/create/3.2/payload.d.ts.map +1 -0
  64. package/dist/vta/did-templates/create/3.2/payload.js +832 -0
  65. package/dist/vta/did-templates/create/3.2/payload.js.map +1 -0
  66. package/dist/vta/did-templates/get/2.0/payload.d.ts +3 -3
  67. package/dist/vta/did-templates/get/2.0/payload.js +1 -1
  68. package/dist/vta/did-templates/get/3.0/payload.d.ts +3 -3
  69. package/dist/vta/did-templates/get/3.0/payload.js +1 -1
  70. package/dist/vta/did-templates/get/3.1/payload.d.ts +12 -2
  71. package/dist/vta/did-templates/get/3.1/payload.d.ts.map +1 -1
  72. package/dist/vta/did-templates/get/3.1/payload.js +1 -1
  73. package/dist/vta/did-templates/get/3.1/payload.js.map +1 -1
  74. package/dist/vta/did-templates/get/3.2/payload.d.ts +928 -0
  75. package/dist/vta/did-templates/get/3.2/payload.d.ts.map +1 -0
  76. package/dist/vta/did-templates/get/3.2/payload.js +593 -0
  77. package/dist/vta/did-templates/get/3.2/payload.js.map +1 -0
  78. package/dist/vta/did-templates/list/2.0/payload.d.ts +4 -4
  79. package/dist/vta/did-templates/list/2.0/payload.js +1 -1
  80. package/dist/vta/did-templates/list/3.0/payload.d.ts +4 -4
  81. package/dist/vta/did-templates/list/3.0/payload.js +1 -1
  82. package/dist/vta/did-templates/list/3.1/payload.d.ts +14 -2
  83. package/dist/vta/did-templates/list/3.1/payload.d.ts.map +1 -1
  84. package/dist/vta/did-templates/list/3.1/payload.js +1 -1
  85. package/dist/vta/did-templates/list/3.1/payload.js.map +1 -1
  86. package/dist/vta/did-templates/list/3.2/payload.d.ts +985 -0
  87. package/dist/vta/did-templates/list/3.2/payload.d.ts.map +1 -0
  88. package/dist/vta/did-templates/list/3.2/payload.js +619 -0
  89. package/dist/vta/did-templates/list/3.2/payload.js.map +1 -0
  90. package/dist/vta/did-templates/update/2.0/payload.d.ts +3 -3
  91. package/dist/vta/did-templates/update/2.0/payload.js +1 -1
  92. package/dist/vta/did-templates/update/3.0/payload.d.ts +3 -3
  93. package/dist/vta/did-templates/update/3.0/payload.js +1 -1
  94. package/dist/vta/did-templates/update/3.1/payload.d.ts +12 -2
  95. package/dist/vta/did-templates/update/3.1/payload.d.ts.map +1 -1
  96. package/dist/vta/did-templates/update/3.1/payload.js +1 -1
  97. package/dist/vta/did-templates/update/3.1/payload.js.map +1 -1
  98. package/dist/vta/did-templates/update/3.2/payload.d.ts +1324 -0
  99. package/dist/vta/did-templates/update/3.2/payload.d.ts.map +1 -0
  100. package/dist/vta/did-templates/update/3.2/payload.js +838 -0
  101. package/dist/vta/did-templates/update/3.2/payload.js.map +1 -0
  102. package/dist/vta/dids/_shared/0.1/key-roles.d.ts +16 -0
  103. package/dist/vta/dids/_shared/0.1/key-roles.d.ts.map +1 -0
  104. package/dist/vta/dids/_shared/0.1/key-roles.js +6 -0
  105. package/dist/vta/dids/_shared/0.1/key-roles.js.map +1 -0
  106. package/dist/vta/dids/_shared/0.1/method-profiles/webvh-parameters.d.ts +11 -0
  107. package/dist/vta/dids/_shared/0.1/method-profiles/webvh-parameters.d.ts.map +1 -0
  108. package/dist/vta/dids/_shared/0.1/method-profiles/webvh-parameters.js +6 -0
  109. package/dist/vta/dids/_shared/0.1/method-profiles/webvh-parameters.js.map +1 -0
  110. package/dist/vta/dids/create/1.0/payload.d.ts +2613 -0
  111. package/dist/vta/dids/create/1.0/payload.d.ts.map +1 -0
  112. package/dist/vta/dids/create/1.0/payload.js +1554 -0
  113. package/dist/vta/dids/create/1.0/payload.js.map +1 -0
  114. package/dist/vta/dids/keys/add/1.0/payload.d.ts +2447 -0
  115. package/dist/vta/dids/keys/add/1.0/payload.d.ts.map +1 -0
  116. package/dist/vta/dids/keys/add/1.0/payload.js +1469 -0
  117. package/dist/vta/dids/keys/add/1.0/payload.js.map +1 -0
  118. package/dist/vta/dids/keys/list/1.0/payload.d.ts +1855 -0
  119. package/dist/vta/dids/keys/list/1.0/payload.d.ts.map +1 -0
  120. package/dist/vta/dids/keys/list/1.0/payload.js +1116 -0
  121. package/dist/vta/dids/keys/list/1.0/payload.js.map +1 -0
  122. package/dist/vta/dids/keys/retire/1.0/payload.d.ts +2449 -0
  123. package/dist/vta/dids/keys/retire/1.0/payload.d.ts.map +1 -0
  124. package/dist/vta/dids/keys/retire/1.0/payload.js +1469 -0
  125. package/dist/vta/dids/keys/retire/1.0/payload.js.map +1 -0
  126. package/dist/vta/dids/keys/revoke/1.0/payload.d.ts +2701 -0
  127. package/dist/vta/dids/keys/revoke/1.0/payload.d.ts.map +1 -0
  128. package/dist/vta/dids/keys/revoke/1.0/payload.js +1597 -0
  129. package/dist/vta/dids/keys/revoke/1.0/payload.js.map +1 -0
  130. package/dist/vta/dids/keys/rotate/1.0/payload.d.ts +2628 -0
  131. package/dist/vta/dids/keys/rotate/1.0/payload.d.ts.map +1 -0
  132. package/dist/vta/dids/keys/rotate/1.0/payload.js +1555 -0
  133. package/dist/vta/dids/keys/rotate/1.0/payload.js.map +1 -0
  134. package/dist/vta/dids/recover/1.0/payload.d.ts +2702 -0
  135. package/dist/vta/dids/recover/1.0/payload.d.ts.map +1 -0
  136. package/dist/vta/dids/recover/1.0/payload.js +1597 -0
  137. package/dist/vta/dids/recover/1.0/payload.js.map +1 -0
  138. package/dist/vta/dids/update/1.0/payload.d.ts +1422 -0
  139. package/dist/vta/dids/update/1.0/payload.d.ts.map +1 -0
  140. package/dist/vta/dids/update/1.0/payload.js +861 -0
  141. package/dist/vta/dids/update/1.0/payload.js.map +1 -0
  142. package/dist/vta/webvh/dids/keys/add/1.0/payload.d.ts +14 -2
  143. package/dist/vta/webvh/dids/keys/add/1.0/payload.d.ts.map +1 -1
  144. package/dist/vta/webvh/dids/keys/add/1.0/payload.js +1 -1
  145. package/dist/vta/webvh/dids/keys/add/1.0/payload.js.map +1 -1
  146. package/dist/vta/webvh/dids/keys/list/1.0/payload.d.ts +14 -2
  147. package/dist/vta/webvh/dids/keys/list/1.0/payload.d.ts.map +1 -1
  148. package/dist/vta/webvh/dids/keys/list/1.0/payload.js +1 -1
  149. package/dist/vta/webvh/dids/keys/list/1.0/payload.js.map +1 -1
  150. package/dist/vta/webvh/dids/keys/retire/1.0/payload.d.ts +14 -2
  151. package/dist/vta/webvh/dids/keys/retire/1.0/payload.d.ts.map +1 -1
  152. package/dist/vta/webvh/dids/keys/retire/1.0/payload.js +1 -1
  153. package/dist/vta/webvh/dids/keys/retire/1.0/payload.js.map +1 -1
  154. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.d.ts +14 -2
  155. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.d.ts.map +1 -1
  156. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.js +1 -1
  157. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.js.map +1 -1
  158. package/dist/vta/webvh/dids/rotate-keys/1.0/payload.d.ts +2 -14
  159. package/dist/vta/webvh/dids/rotate-keys/1.0/payload.d.ts.map +1 -1
  160. package/dist/vta/webvh/dids/rotate-keys/1.0/payload.js +1 -1
  161. package/dist/vta/webvh/dids/rotate-keys/1.0/payload.js.map +1 -1
  162. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.d.ts +14 -2
  163. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.d.ts.map +1 -1
  164. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.js +1 -1
  165. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.js.map +1 -1
  166. package/dist/vta/webvh/dids/update/1.0/payload.d.ts +4 -4
  167. package/dist/vta/webvh/dids/update/1.0/payload.js +1 -1
  168. package/dist/vta/webvh/dids/update/1.1/payload.d.ts +511 -0
  169. package/dist/vta/webvh/dids/update/1.1/payload.d.ts.map +1 -0
  170. package/dist/vta/webvh/dids/update/1.1/payload.js +251 -0
  171. package/dist/vta/webvh/dids/update/1.1/payload.js.map +1 -0
  172. package/dist/vta/webvh/dids/update/2.0/payload.d.ts +4 -4
  173. package/dist/vta/webvh/dids/update/2.0/payload.d.ts.map +1 -1
  174. package/dist/vta/webvh/dids/update/2.0/payload.js +1 -1
  175. package/dist/vta/webvh/dids/update/2.0/payload.js.map +1 -1
  176. package/dist/vta/webvh/dids/update/2.1/payload.d.ts +14 -2
  177. package/dist/vta/webvh/dids/update/2.1/payload.d.ts.map +1 -1
  178. package/dist/vta/webvh/dids/update/2.1/payload.js +1 -1
  179. package/dist/vta/webvh/dids/update/2.1/payload.js.map +1 -1
  180. package/dist/vtc/_shared/0.2/invite.d.ts +16 -0
  181. package/dist/vtc/_shared/0.2/invite.d.ts.map +1 -0
  182. package/dist/vtc/_shared/0.2/invite.js +6 -0
  183. package/dist/vtc/_shared/0.2/invite.js.map +1 -0
  184. package/dist/vtc/admin/invites/create/0.1/payload.d.ts +12 -2
  185. package/dist/vtc/admin/invites/create/0.1/payload.d.ts.map +1 -1
  186. package/dist/vtc/admin/invites/create/0.1/payload.js +1 -1
  187. package/dist/vtc/admin/invites/create/0.1/payload.js.map +1 -1
  188. package/dist/vtc/admin/invites/create/0.2/payload.d.ts +404 -0
  189. package/dist/vtc/admin/invites/create/0.2/payload.d.ts.map +1 -0
  190. package/dist/vtc/admin/invites/create/0.2/payload.js +230 -0
  191. package/dist/vtc/admin/invites/create/0.2/payload.js.map +1 -0
  192. package/dist/vtc/admin/invites/list/0.1/payload.d.ts +12 -2
  193. package/dist/vtc/admin/invites/list/0.1/payload.d.ts.map +1 -1
  194. package/dist/vtc/admin/invites/list/0.1/payload.js +1 -1
  195. package/dist/vtc/admin/invites/list/0.1/payload.js.map +1 -1
  196. package/dist/vtc/admin/invites/list/0.2/payload.d.ts +431 -0
  197. package/dist/vtc/admin/invites/list/0.2/payload.d.ts.map +1 -0
  198. package/dist/vtc/admin/invites/list/0.2/payload.js +264 -0
  199. package/dist/vtc/admin/invites/list/0.2/payload.js.map +1 -0
  200. package/dist/vtc/credentials/reissue/0.1/payload.d.ts +3 -3
  201. package/dist/vtc/credentials/reissue/0.1/payload.js +1 -1
  202. package/dist/vtc/credentials/reissue/0.1/payload.js.map +1 -1
  203. package/package.json +1 -1
  204. package/src/_extends.ts +7 -0
  205. package/src/_shared/components.ts +556 -3
  206. package/src/index.ts +66 -0
  207. package/src/peer-check/ask/0.1/payload.ts +301 -0
  208. package/src/rooms/keys/act/0.1/payload.ts +5 -5
  209. package/src/rooms/keys/act/0.2/payload.ts +5 -5
  210. package/src/rooms/keys/act/0.3/payload.ts +5 -5
  211. package/src/rooms/keys/act/0.4/payload.ts +5 -5
  212. package/src/rooms/keys/act/0.5/payload.ts +5 -5
  213. package/src/rooms/keys/act/0.6/payload.ts +5 -5
  214. package/src/rooms/keys/act/0.7/payload.ts +5 -5
  215. package/src/rooms/keys/act/0.8/payload.ts +15 -3
  216. package/src/rooms/keys/act/0.9/payload.ts +396 -0
  217. package/src/rooms/records/put/0.1/payload.ts +5 -5
  218. package/src/rooms/records/put/0.2/payload.ts +5 -5
  219. package/src/rooms/records/put/0.3/payload.ts +15 -3
  220. package/src/rooms/records/put/0.4/payload.ts +905 -0
  221. package/src/vta/_shared/0.3/did-key-roles.ts +1 -1
  222. package/src/vta/_shared/0.9/did-template.ts +17 -0
  223. package/src/vta/did-templates/create/2.0/payload.ts +4 -4
  224. package/src/vta/did-templates/create/3.0/payload.ts +4 -4
  225. package/src/vta/did-templates/create/3.1/payload.ts +13 -3
  226. package/src/vta/did-templates/create/3.2/payload.ts +869 -0
  227. package/src/vta/did-templates/get/2.0/payload.ts +4 -4
  228. package/src/vta/did-templates/get/3.0/payload.ts +4 -4
  229. package/src/vta/did-templates/get/3.1/payload.ts +13 -3
  230. package/src/vta/did-templates/get/3.2/payload.ts +630 -0
  231. package/src/vta/did-templates/list/2.0/payload.ts +5 -5
  232. package/src/vta/did-templates/list/3.0/payload.ts +5 -5
  233. package/src/vta/did-templates/list/3.1/payload.ts +15 -3
  234. package/src/vta/did-templates/list/3.2/payload.ts +665 -0
  235. package/src/vta/did-templates/update/2.0/payload.ts +4 -4
  236. package/src/vta/did-templates/update/3.0/payload.ts +4 -4
  237. package/src/vta/did-templates/update/3.1/payload.ts +13 -3
  238. package/src/vta/did-templates/update/3.2/payload.ts +879 -0
  239. package/src/vta/dids/_shared/0.1/key-roles.ts +17 -0
  240. package/src/vta/dids/_shared/0.1/method-profiles/webvh-parameters.ts +11 -0
  241. package/src/vta/dids/create/1.0/payload.ts +1648 -0
  242. package/src/vta/dids/keys/add/1.0/payload.ts +1553 -0
  243. package/src/vta/dids/keys/list/1.0/payload.ts +1178 -0
  244. package/src/vta/dids/keys/retire/1.0/payload.ts +1553 -0
  245. package/src/vta/dids/keys/revoke/1.0/payload.ts +1697 -0
  246. package/src/vta/dids/keys/rotate/1.0/payload.ts +1658 -0
  247. package/src/vta/dids/recover/1.0/payload.ts +1700 -0
  248. package/src/vta/dids/update/1.0/payload.ts +940 -0
  249. package/src/vta/webvh/dids/keys/add/1.0/payload.ts +15 -3
  250. package/src/vta/webvh/dids/keys/list/1.0/payload.ts +15 -3
  251. package/src/vta/webvh/dids/keys/retire/1.0/payload.ts +15 -3
  252. package/src/vta/webvh/dids/keys/revoke/1.0/payload.ts +15 -3
  253. package/src/vta/webvh/dids/rotate-keys/1.0/payload.ts +3 -15
  254. package/src/vta/webvh/dids/rotate-keys/2.0/payload.ts +15 -3
  255. package/src/vta/webvh/dids/update/1.0/payload.ts +5 -5
  256. package/src/vta/webvh/dids/update/1.1/payload.ts +351 -0
  257. package/src/vta/webvh/dids/update/2.0/payload.ts +5 -5
  258. package/src/vta/webvh/dids/update/2.1/payload.ts +15 -3
  259. package/src/vtc/_shared/0.2/invite.ts +17 -0
  260. package/src/vtc/admin/invites/create/0.1/payload.ts +13 -3
  261. package/src/vtc/admin/invites/create/0.2/payload.ts +289 -0
  262. package/src/vtc/admin/invites/list/0.1/payload.ts +13 -3
  263. package/src/vtc/admin/invites/list/0.2/payload.ts +294 -0
  264. package/src/vtc/credentials/reissue/0.1/payload.ts +2 -2
@@ -9,7 +9,7 @@ import type { Ext } from "../../../../_shared/components.js";
9
9
  /**
10
10
  * A member's own client asks the member's key holder to complete one host-bound room request — or one of the two requests by which a member takes up a community's offer of admission to a room — as the member: the member's own authority narrowed to the one action the request's type needs, the member as issuer, and the member's signature. The outer document members are owned by the framework — SPEC §6.3.
11
11
  *
12
- * @deprecated superseded by rooms/keys/act/0.8
12
+ * @deprecated superseded by rooms/keys/act/0.9
13
13
  */
14
14
  export interface RoomsKeysActPayload {
15
15
  document: UnsignedRoomRequest;
@@ -50,7 +50,7 @@ export interface UnsignedRoomRequest {
50
50
  /**
51
51
  * Success response to rooms/keys/act. Type https://trusttasks.org/spec/rooms/keys/act/0.5#response. The request, completed as the member, for the caller to send to its recipient unaltered.
52
52
  *
53
- * @deprecated superseded by rooms/keys/act/0.8
53
+ * @deprecated superseded by rooms/keys/act/0.9
54
54
  */
55
55
  export interface RoomsKeysActResponsePayload {
56
56
  /**
@@ -88,12 +88,12 @@ export const EXTENDS: string | null = null;
88
88
  * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
89
89
  * Versions").
90
90
  */
91
- export const DEPRECATION: string | null = "superseded by rooms/keys/act/0.8";
91
+ export const DEPRECATION: string | null = "superseded by rooms/keys/act/0.9";
92
92
 
93
93
  /**
94
94
  * Stable alias for this specification's request payload shape.
95
95
  *
96
- * @deprecated superseded by rooms/keys/act/0.8
96
+ * @deprecated superseded by rooms/keys/act/0.9
97
97
  */
98
98
  export type Payload = RoomsKeysActPayload;
99
99
 
@@ -103,7 +103,7 @@ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/rooms/keys/act/0.5
103
103
  /**
104
104
  * Stable alias for this specification's success-response payload shape.
105
105
  *
106
- * @deprecated superseded by rooms/keys/act/0.8
106
+ * @deprecated superseded by rooms/keys/act/0.9
107
107
  */
108
108
  export type Response = RoomsKeysActResponsePayload;
109
109
 
@@ -9,7 +9,7 @@ import type { Ext } from "../../../../_shared/components.js";
9
9
  /**
10
10
  * A member's own client asks the member's key holder to complete one host-bound room request — or one of the two requests by which a member takes up a community's offer of admission to a room — as the member: the member's own authority narrowed to the one action the request's type needs, the member as issuer, and the member's signature. The outer document members are owned by the framework — SPEC §6.3.
11
11
  *
12
- * @deprecated superseded by rooms/keys/act/0.8
12
+ * @deprecated superseded by rooms/keys/act/0.9
13
13
  */
14
14
  export interface RoomsKeysActPayload {
15
15
  document: UnsignedRoomRequest;
@@ -50,7 +50,7 @@ export interface UnsignedRoomRequest {
50
50
  /**
51
51
  * Success response to rooms/keys/act. Type https://trusttasks.org/spec/rooms/keys/act/0.6#response. The request, completed as the member, for the caller to send to its recipient unaltered.
52
52
  *
53
- * @deprecated superseded by rooms/keys/act/0.8
53
+ * @deprecated superseded by rooms/keys/act/0.9
54
54
  */
55
55
  export interface RoomsKeysActResponsePayload {
56
56
  /**
@@ -88,12 +88,12 @@ export const EXTENDS: string | null = null;
88
88
  * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
89
89
  * Versions").
90
90
  */
91
- export const DEPRECATION: string | null = "superseded by rooms/keys/act/0.8";
91
+ export const DEPRECATION: string | null = "superseded by rooms/keys/act/0.9";
92
92
 
93
93
  /**
94
94
  * Stable alias for this specification's request payload shape.
95
95
  *
96
- * @deprecated superseded by rooms/keys/act/0.8
96
+ * @deprecated superseded by rooms/keys/act/0.9
97
97
  */
98
98
  export type Payload = RoomsKeysActPayload;
99
99
 
@@ -103,7 +103,7 @@ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/rooms/keys/act/0.6
103
103
  /**
104
104
  * Stable alias for this specification's success-response payload shape.
105
105
  *
106
- * @deprecated superseded by rooms/keys/act/0.8
106
+ * @deprecated superseded by rooms/keys/act/0.9
107
107
  */
108
108
  export type Response = RoomsKeysActResponsePayload;
109
109
 
@@ -9,7 +9,7 @@ import type { Ext } from "../../../../_shared/components.js";
9
9
  /**
10
10
  * A member's own client asks the member's key holder to complete one host-bound room request — or one of the two requests by which a member takes up a community's offer of admission to a room — as the member: the member's own authority narrowed to the one action the request's type needs, the member as issuer, and the member's signature. The outer document members are owned by the framework — SPEC §6.3.
11
11
  *
12
- * @deprecated superseded by rooms/keys/act/0.8
12
+ * @deprecated superseded by rooms/keys/act/0.9
13
13
  */
14
14
  export interface RoomsKeysActPayload {
15
15
  document: UnsignedRoomRequest;
@@ -50,7 +50,7 @@ export interface UnsignedRoomRequest {
50
50
  /**
51
51
  * Success response to rooms/keys/act. Type https://trusttasks.org/spec/rooms/keys/act/0.7#response. The request, completed as the member, for the caller to send to its recipient unaltered.
52
52
  *
53
- * @deprecated superseded by rooms/keys/act/0.8
53
+ * @deprecated superseded by rooms/keys/act/0.9
54
54
  */
55
55
  export interface RoomsKeysActResponsePayload {
56
56
  /**
@@ -88,12 +88,12 @@ export const EXTENDS: string | null = null;
88
88
  * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
89
89
  * Versions").
90
90
  */
91
- export const DEPRECATION: string | null = "superseded by rooms/keys/act/0.8";
91
+ export const DEPRECATION: string | null = "superseded by rooms/keys/act/0.9";
92
92
 
93
93
  /**
94
94
  * Stable alias for this specification's request payload shape.
95
95
  *
96
- * @deprecated superseded by rooms/keys/act/0.8
96
+ * @deprecated superseded by rooms/keys/act/0.9
97
97
  */
98
98
  export type Payload = RoomsKeysActPayload;
99
99
 
@@ -103,7 +103,7 @@ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/rooms/keys/act/0.7
103
103
  /**
104
104
  * Stable alias for this specification's success-response payload shape.
105
105
  *
106
- * @deprecated superseded by rooms/keys/act/0.8
106
+ * @deprecated superseded by rooms/keys/act/0.9
107
107
  */
108
108
  export type Response = RoomsKeysActResponsePayload;
109
109
 
@@ -8,6 +8,8 @@ import type { Ext } from "../../../../_shared/components.js";
8
8
 
9
9
  /**
10
10
  * A member's own client asks the member's key holder to complete one host-bound room request — or one of the two requests by which a member takes up a community's offer of admission to a room — as the member: the member's own authority narrowed to the one action the request's type needs, the member as issuer, and the member's signature. The outer document members are owned by the framework — SPEC §6.3.
11
+ *
12
+ * @deprecated superseded by rooms/keys/act/0.9
11
13
  */
12
14
  export interface RoomsKeysActPayload {
13
15
  document: UnsignedRoomRequest;
@@ -47,6 +49,8 @@ export interface UnsignedRoomRequest {
47
49
  }
48
50
  /**
49
51
  * Success response to rooms/keys/act. Type https://trusttasks.org/spec/rooms/keys/act/0.8#response. The request, completed as the member, for the caller to send to its recipient unaltered.
52
+ *
53
+ * @deprecated superseded by rooms/keys/act/0.9
50
54
  */
51
55
  export interface RoomsKeysActResponsePayload {
52
56
  /**
@@ -84,15 +88,23 @@ export const EXTENDS: string | null = null;
84
88
  * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
85
89
  * Versions").
86
90
  */
87
- export const DEPRECATION: string | null = null;
91
+ export const DEPRECATION: string | null = "superseded by rooms/keys/act/0.9";
88
92
 
89
- /** Stable alias for this specification's request payload shape. */
93
+ /**
94
+ * Stable alias for this specification's request payload shape.
95
+ *
96
+ * @deprecated superseded by rooms/keys/act/0.9
97
+ */
90
98
  export type Payload = RoomsKeysActPayload;
91
99
 
92
100
  /** Trust Task response type URI (request type URI + "#response"). */
93
101
  export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/rooms/keys/act/0.8#response" as const;
94
102
 
95
- /** Stable alias for this specification's success-response payload shape. */
103
+ /**
104
+ * Stable alias for this specification's success-response payload shape.
105
+ *
106
+ * @deprecated superseded by rooms/keys/act/0.9
107
+ */
96
108
  export type Response = RoomsKeysActResponsePayload;
97
109
 
98
110
  /**
@@ -0,0 +1,396 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/rooms/keys/act/0.9/payload.schema.json
4
+ */
5
+
6
+ import type { Ext } from "../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * A member's own client asks the member's key holder to complete one host-bound room request — or one of the two requests by which a member takes up a community's offer of admission to a room — as the member: the member's own authority narrowed to the one action the request's type needs, the member as issuer, and the member's signature. The outer document members are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface RoomsKeysActPayload {
13
+ document: UnsignedRoomRequest;
14
+ /**
15
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
16
+ */
17
+ ext?: Ext;
18
+ }
19
+ /**
20
+ * The room request to complete, as the client will send it, minus its presentation and its proof.
21
+ */
22
+ export interface UnsignedRoomRequest {
23
+ /**
24
+ * The request's identifier, set by the client. The host keys duplicate-execution protection on it.
25
+ */
26
+ id: string;
27
+ /**
28
+ * The room request's Type URI: a rooms/* request, or one of the community types: vtc/rooms/offers/{list,accept} or vtc/rooms/memberships/list. Only the types in this task's table are completed; any other is `typeNotActable`.
29
+ */
30
+ type: string;
31
+ /**
32
+ * The member to act as, and this task's subject (subjectPath /document/issuer). REQUIRED for a type that names no room (rooms/blobs/chunk/0.1, rooms/blobs/upload/{commit,abort}/0.2), where it is the member whose request opened the transfer; REQUIRED for the community types (vtc/rooms/offers/list/0.1, 0.2, 0.3 and 0.4, vtc/rooms/offers/accept/0.1, vtc/rooms/memberships/list/0.1), where it is the DID the community addressed its offers to; REQUIRED where the caller may act as more than one member of the room; optional where it may act as exactly one. A rule over two members this schema does not express: the recipient refuses an absent issuer it needs with principalAmbiguous. Never the client's own identifier.
33
+ */
34
+ issuer?: string;
35
+ /**
36
+ * The room's host, or for the community types the community that made the offers: the party the completed document is for. Covered by the member's proof.
37
+ */
38
+ recipient: string;
39
+ issuedAt: string;
40
+ expiresAt?: string;
41
+ threadId?: string;
42
+ /**
43
+ * The request's payload, as the named type's schema defines it but without `presentation`: the recipient inserts the member's own, narrowed to the table's action, where the type takes one, and refuses a payload that already carries one. For vtc/rooms/offers/accept/0.1 a `keyPackage`, where present, MUST be one the recipient minted with rooms/keys/key-package at 0.1 or 0.2 (Recipient item 10).
44
+ */
45
+ payload: {};
46
+ ext?: Ext;
47
+ }
48
+ /**
49
+ * Success response to rooms/keys/act. Type https://trusttasks.org/spec/rooms/keys/act/0.9#response. The request, completed as the member, for the caller to send to its recipient unaltered.
50
+ */
51
+ export interface RoomsKeysActResponsePayload {
52
+ /**
53
+ * The member the recipient signed as: the completed document's `issuer`.
54
+ */
55
+ principal: string;
56
+ /**
57
+ * The supplied document with `issuer` set to the member, `payload.presentation` inserted where the type takes one, and the member's Data Integrity `proof` (`proofPurpose: authentication`). Every other member is unchanged.
58
+ */
59
+ document: {};
60
+ /**
61
+ * When the inserted presentation's leaf lapses. Absent when the type takes no presentation.
62
+ */
63
+ expiresAt?: string;
64
+ ext?: Ext;
65
+ }
66
+
67
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
68
+ export type { Ext };
69
+
70
+ /** Trust Task type URI. */
71
+ export const TYPE_URI = "https://trusttasks.org/spec/rooms/keys/act/0.9" as const;
72
+
73
+ /**
74
+ * The earlier version of this specification that this one declares it
75
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
76
+ * `null`. Only the direct declaration — follow the chain with
77
+ * `extendsChain` / `readForSpec`.
78
+ */
79
+ export const EXTENDS: string | null = "0.8";
80
+
81
+ /**
82
+ * Why this version is deprecated, or `null` while it is current. A
83
+ * superseded or retired version is still supported, and is withdrawn from
84
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
85
+ * Versions").
86
+ */
87
+ export const DEPRECATION: string | null = null;
88
+
89
+ /** Stable alias for this specification's request payload shape. */
90
+ export type Payload = RoomsKeysActPayload;
91
+
92
+ /** Trust Task response type URI (request type URI + "#response"). */
93
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/rooms/keys/act/0.9#response" as const;
94
+
95
+ /** Stable alias for this specification's success-response payload shape. */
96
+ export type Response = RoomsKeysActResponsePayload;
97
+
98
+ /**
99
+ * This specification's payload schema, as a value.
100
+ *
101
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
102
+ * rather than only as a `.json` file because TypeScript types are erased
103
+ * at runtime: without a schema a consumer has nothing to validate, and
104
+ * every REQUIRED payload member is optional in practice. Cross-file
105
+ * `$ref`s are already inlined, so it needs no resolver.
106
+ */
107
+ export const PAYLOAD_SCHEMA = {
108
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
109
+ "$id": "https://trusttasks.org/spec/rooms/keys/act/0.9",
110
+ "title": "Rooms Keys Act — payload",
111
+ "description": "A member's own client asks the member's key holder to complete one host-bound room request — or one of the two requests by which a member takes up a community's offer of admission to a room — as the member: the member's own authority narrowed to the one action the request's type needs, the member as issuer, and the member's signature. The outer document members are owned by the framework — SPEC §6.3.",
112
+ "type": "object",
113
+ "additionalProperties": false,
114
+ "required": [
115
+ "document"
116
+ ],
117
+ "properties": {
118
+ "document": {
119
+ "$ref": "#/$defs/UnsignedRoomRequest",
120
+ "description": "The room request to complete, as the client will send it, minus its presentation and its proof."
121
+ },
122
+ "ext": {
123
+ "$ref": "#/$defs/Ext",
124
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
125
+ }
126
+ },
127
+ "$defs": {
128
+ "UnsignedRoomRequest": {
129
+ "$anchor": "unsigned-room-request",
130
+ "title": "Unsigned room request",
131
+ "description": "A Trust Task document of a type in the rooms/keys/act table, built by the member's client: no proof, and no presentation in its payload. The recipient validates the payload against the named type's own schema; this one fixes only the envelope.",
132
+ "type": "object",
133
+ "additionalProperties": false,
134
+ "required": [
135
+ "id",
136
+ "type",
137
+ "recipient",
138
+ "issuedAt",
139
+ "payload"
140
+ ],
141
+ "properties": {
142
+ "id": {
143
+ "type": "string",
144
+ "minLength": 1,
145
+ "maxLength": 512,
146
+ "description": "The request's identifier, set by the client. The host keys duplicate-execution protection on it."
147
+ },
148
+ "type": {
149
+ "type": "string",
150
+ "pattern": "^https://trusttasks\\.org/spec/(rooms|vtc/rooms/(offers|memberships))/",
151
+ "maxLength": 2048,
152
+ "description": "The room request's Type URI: a rooms/* request, or one of the community types: vtc/rooms/offers/{list,accept} or vtc/rooms/memberships/list. Only the types in this task's table are completed; any other is `typeNotActable`."
153
+ },
154
+ "issuer": {
155
+ "type": "string",
156
+ "pattern": "^did:",
157
+ "maxLength": 2048,
158
+ "description": "The member to act as, and this task's subject (subjectPath /document/issuer). REQUIRED for a type that names no room (rooms/blobs/chunk/0.1, rooms/blobs/upload/{commit,abort}/0.2), where it is the member whose request opened the transfer; REQUIRED for the community types (vtc/rooms/offers/list/0.1, 0.2, 0.3 and 0.4, vtc/rooms/offers/accept/0.1, vtc/rooms/memberships/list/0.1), where it is the DID the community addressed its offers to; REQUIRED where the caller may act as more than one member of the room; optional where it may act as exactly one. A rule over two members this schema does not express: the recipient refuses an absent issuer it needs with principalAmbiguous. Never the client's own identifier."
159
+ },
160
+ "recipient": {
161
+ "type": "string",
162
+ "pattern": "^did:",
163
+ "maxLength": 2048,
164
+ "description": "The room's host, or for the community types the community that made the offers: the party the completed document is for. Covered by the member's proof."
165
+ },
166
+ "issuedAt": {
167
+ "type": "string",
168
+ "format": "date-time"
169
+ },
170
+ "expiresAt": {
171
+ "type": "string",
172
+ "format": "date-time"
173
+ },
174
+ "threadId": {
175
+ "type": "string",
176
+ "minLength": 1,
177
+ "maxLength": 512
178
+ },
179
+ "payload": {
180
+ "type": "object",
181
+ "description": "The request's payload, as the named type's schema defines it but without `presentation`: the recipient inserts the member's own, narrowed to the table's action, where the type takes one, and refuses a payload that already carries one. For vtc/rooms/offers/accept/0.1 a `keyPackage`, where present, MUST be one the recipient minted with rooms/keys/key-package at 0.1 or 0.2 (Recipient item 10)."
182
+ },
183
+ "ext": {
184
+ "$ref": "#/$defs/Ext"
185
+ }
186
+ },
187
+ "not": {
188
+ "required": [
189
+ "proof"
190
+ ]
191
+ }
192
+ },
193
+ "Response": {
194
+ "$anchor": "response",
195
+ "title": "Rooms Keys Act — response payload",
196
+ "description": "Success response to rooms/keys/act. Type https://trusttasks.org/spec/rooms/keys/act/0.9#response. The request, completed as the member, for the caller to send to its recipient unaltered.",
197
+ "type": "object",
198
+ "additionalProperties": false,
199
+ "required": [
200
+ "principal",
201
+ "document"
202
+ ],
203
+ "properties": {
204
+ "principal": {
205
+ "type": "string",
206
+ "pattern": "^did:",
207
+ "maxLength": 2048,
208
+ "description": "The member the recipient signed as: the completed document's `issuer`."
209
+ },
210
+ "document": {
211
+ "type": "object",
212
+ "required": [
213
+ "id",
214
+ "type",
215
+ "issuer",
216
+ "recipient",
217
+ "issuedAt",
218
+ "payload",
219
+ "proof"
220
+ ],
221
+ "description": "The supplied document with `issuer` set to the member, `payload.presentation` inserted where the type takes one, and the member's Data Integrity `proof` (`proofPurpose: authentication`). Every other member is unchanged."
222
+ },
223
+ "expiresAt": {
224
+ "type": "string",
225
+ "format": "date-time",
226
+ "description": "When the inserted presentation's leaf lapses. Absent when the type takes no presentation."
227
+ },
228
+ "ext": {
229
+ "$ref": "#/$defs/Ext"
230
+ }
231
+ }
232
+ },
233
+ "Ext": {
234
+ "title": "Ext",
235
+ "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.",
236
+ "type": "object",
237
+ "minProperties": 1,
238
+ "additionalProperties": true,
239
+ "propertyNames": {
240
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
241
+ }
242
+ }
243
+ }
244
+ } as const;
245
+
246
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
247
+ export const RESPONSE_PAYLOAD_SCHEMA = {
248
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
249
+ "$ref": "#/$defs/Response",
250
+ "$defs": {
251
+ "UnsignedRoomRequest": {
252
+ "$anchor": "unsigned-room-request",
253
+ "title": "Unsigned room request",
254
+ "description": "A Trust Task document of a type in the rooms/keys/act table, built by the member's client: no proof, and no presentation in its payload. The recipient validates the payload against the named type's own schema; this one fixes only the envelope.",
255
+ "type": "object",
256
+ "additionalProperties": false,
257
+ "required": [
258
+ "id",
259
+ "type",
260
+ "recipient",
261
+ "issuedAt",
262
+ "payload"
263
+ ],
264
+ "properties": {
265
+ "id": {
266
+ "type": "string",
267
+ "minLength": 1,
268
+ "maxLength": 512,
269
+ "description": "The request's identifier, set by the client. The host keys duplicate-execution protection on it."
270
+ },
271
+ "type": {
272
+ "type": "string",
273
+ "pattern": "^https://trusttasks\\.org/spec/(rooms|vtc/rooms/(offers|memberships))/",
274
+ "maxLength": 2048,
275
+ "description": "The room request's Type URI: a rooms/* request, or one of the community types: vtc/rooms/offers/{list,accept} or vtc/rooms/memberships/list. Only the types in this task's table are completed; any other is `typeNotActable`."
276
+ },
277
+ "issuer": {
278
+ "type": "string",
279
+ "pattern": "^did:",
280
+ "maxLength": 2048,
281
+ "description": "The member to act as, and this task's subject (subjectPath /document/issuer). REQUIRED for a type that names no room (rooms/blobs/chunk/0.1, rooms/blobs/upload/{commit,abort}/0.2), where it is the member whose request opened the transfer; REQUIRED for the community types (vtc/rooms/offers/list/0.1, 0.2, 0.3 and 0.4, vtc/rooms/offers/accept/0.1, vtc/rooms/memberships/list/0.1), where it is the DID the community addressed its offers to; REQUIRED where the caller may act as more than one member of the room; optional where it may act as exactly one. A rule over two members this schema does not express: the recipient refuses an absent issuer it needs with principalAmbiguous. Never the client's own identifier."
282
+ },
283
+ "recipient": {
284
+ "type": "string",
285
+ "pattern": "^did:",
286
+ "maxLength": 2048,
287
+ "description": "The room's host, or for the community types the community that made the offers: the party the completed document is for. Covered by the member's proof."
288
+ },
289
+ "issuedAt": {
290
+ "type": "string",
291
+ "format": "date-time"
292
+ },
293
+ "expiresAt": {
294
+ "type": "string",
295
+ "format": "date-time"
296
+ },
297
+ "threadId": {
298
+ "type": "string",
299
+ "minLength": 1,
300
+ "maxLength": 512
301
+ },
302
+ "payload": {
303
+ "type": "object",
304
+ "description": "The request's payload, as the named type's schema defines it but without `presentation`: the recipient inserts the member's own, narrowed to the table's action, where the type takes one, and refuses a payload that already carries one. For vtc/rooms/offers/accept/0.1 a `keyPackage`, where present, MUST be one the recipient minted with rooms/keys/key-package at 0.1 or 0.2 (Recipient item 10)."
305
+ },
306
+ "ext": {
307
+ "$ref": "#/$defs/Ext"
308
+ }
309
+ },
310
+ "not": {
311
+ "required": [
312
+ "proof"
313
+ ]
314
+ }
315
+ },
316
+ "Response": {
317
+ "$anchor": "response",
318
+ "title": "Rooms Keys Act — response payload",
319
+ "description": "Success response to rooms/keys/act. Type https://trusttasks.org/spec/rooms/keys/act/0.9#response. The request, completed as the member, for the caller to send to its recipient unaltered.",
320
+ "type": "object",
321
+ "additionalProperties": false,
322
+ "required": [
323
+ "principal",
324
+ "document"
325
+ ],
326
+ "properties": {
327
+ "principal": {
328
+ "type": "string",
329
+ "pattern": "^did:",
330
+ "maxLength": 2048,
331
+ "description": "The member the recipient signed as: the completed document's `issuer`."
332
+ },
333
+ "document": {
334
+ "type": "object",
335
+ "required": [
336
+ "id",
337
+ "type",
338
+ "issuer",
339
+ "recipient",
340
+ "issuedAt",
341
+ "payload",
342
+ "proof"
343
+ ],
344
+ "description": "The supplied document with `issuer` set to the member, `payload.presentation` inserted where the type takes one, and the member's Data Integrity `proof` (`proofPurpose: authentication`). Every other member is unchanged."
345
+ },
346
+ "expiresAt": {
347
+ "type": "string",
348
+ "format": "date-time",
349
+ "description": "When the inserted presentation's leaf lapses. Absent when the type takes no presentation."
350
+ },
351
+ "ext": {
352
+ "$ref": "#/$defs/Ext"
353
+ }
354
+ }
355
+ },
356
+ "Ext": {
357
+ "title": "Ext",
358
+ "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.",
359
+ "type": "object",
360
+ "minProperties": 1,
361
+ "additionalProperties": true,
362
+ "propertyNames": {
363
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
364
+ }
365
+ }
366
+ }
367
+ } as const;
368
+
369
+ /**
370
+ * SPEC.md §7.2 policy for the request variant, from this specification's
371
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
372
+ * per-specification and cannot be derived from the document alone, and
373
+ * item 2 needs the schema this carries.
374
+ */
375
+ export const SPEC = {
376
+ typeUri: TYPE_URI,
377
+ isBearer: false,
378
+ isProofRequired: true,
379
+ isRecipientRequired: true,
380
+ isIssuedAtRequired: true,
381
+ payloadSchema: PAYLOAD_SCHEMA,
382
+ } as const;
383
+
384
+ /**
385
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
386
+ * tracks the *issuer* party's requirement because a response swaps the
387
+ * parties (§7.3 item 5).
388
+ */
389
+ export const RESPONSE_SPEC = {
390
+ typeUri: RESPONSE_TYPE_URI,
391
+ isBearer: false,
392
+ isProofRequired: true,
393
+ isRecipientRequired: true,
394
+ isIssuedAtRequired: true,
395
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
396
+ } as const;
@@ -6,7 +6,7 @@
6
6
  import type { AuthorityPresentation, Ext, SealedRecord } from "../../../../_shared/components.js";
7
7
 
8
8
 
9
- /** @deprecated superseded by rooms/records/put/0.3 */
9
+ /** @deprecated superseded by rooms/records/put/0.4 */
10
10
  export interface RoomsRecordsPutPayload {
11
11
  /**
12
12
  * The room's identifier. A host verifies the presentation against credentials issued by this identifier, never against a member list of its own — which is what lets a room move hosts without reissuing a credential.
@@ -48,7 +48,7 @@ export interface RoomsRecordsPutPayload {
48
48
  /**
49
49
  * Success response to rooms/records/put. Type https://trusttasks.org/spec/rooms/records/put/0.1#response.
50
50
  *
51
- * @deprecated superseded by rooms/records/put/0.3
51
+ * @deprecated superseded by rooms/records/put/0.4
52
52
  */
53
53
  export interface RoomsRecordsPutResponsePayload {
54
54
  /**
@@ -86,12 +86,12 @@ export const EXTENDS: string | null = null;
86
86
  * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
87
87
  * Versions").
88
88
  */
89
- export const DEPRECATION: string | null = "superseded by rooms/records/put/0.3";
89
+ export const DEPRECATION: string | null = "superseded by rooms/records/put/0.4";
90
90
 
91
91
  /**
92
92
  * Stable alias for this specification's request payload shape.
93
93
  *
94
- * @deprecated superseded by rooms/records/put/0.3
94
+ * @deprecated superseded by rooms/records/put/0.4
95
95
  */
96
96
  export type Payload = RoomsRecordsPutPayload;
97
97
 
@@ -101,7 +101,7 @@ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/rooms/records/put/
101
101
  /**
102
102
  * Stable alias for this specification's success-response payload shape.
103
103
  *
104
- * @deprecated superseded by rooms/records/put/0.3
104
+ * @deprecated superseded by rooms/records/put/0.4
105
105
  */
106
106
  export type Response = RoomsRecordsPutResponsePayload;
107
107
 
@@ -9,7 +9,7 @@ import type { AuthorityPresentation, BlobRef, DigestMultibase, Ext, SealedRecord
9
9
  /**
10
10
  * A member writes a record to a data room, authorized by an authority chain the room itself issued. 0.2 adds `blobs`: a record can carry a file, whose ciphertext the host stores outside the record and whose description is sealed inside it.
11
11
  *
12
- * @deprecated superseded by rooms/records/put/0.3
12
+ * @deprecated superseded by rooms/records/put/0.4
13
13
  */
14
14
  export interface RoomsRecordsPutPayload {
15
15
  /**
@@ -59,7 +59,7 @@ export interface RoomsRecordsPutPayload {
59
59
  /**
60
60
  * Success response to rooms/records/put. Type https://trusttasks.org/spec/rooms/records/put/0.2#response.
61
61
  *
62
- * @deprecated superseded by rooms/records/put/0.3
62
+ * @deprecated superseded by rooms/records/put/0.4
63
63
  */
64
64
  export interface RoomsRecordsPutResponsePayload {
65
65
  /**
@@ -97,12 +97,12 @@ export const EXTENDS: string | null = null;
97
97
  * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
98
98
  * Versions").
99
99
  */
100
- export const DEPRECATION: string | null = "superseded by rooms/records/put/0.3";
100
+ export const DEPRECATION: string | null = "superseded by rooms/records/put/0.4";
101
101
 
102
102
  /**
103
103
  * Stable alias for this specification's request payload shape.
104
104
  *
105
- * @deprecated superseded by rooms/records/put/0.3
105
+ * @deprecated superseded by rooms/records/put/0.4
106
106
  */
107
107
  export type Payload = RoomsRecordsPutPayload;
108
108
 
@@ -112,7 +112,7 @@ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/rooms/records/put/
112
112
  /**
113
113
  * Stable alias for this specification's success-response payload shape.
114
114
  *
115
- * @deprecated superseded by rooms/records/put/0.3
115
+ * @deprecated superseded by rooms/records/put/0.4
116
116
  */
117
117
  export type Response = RoomsRecordsPutResponsePayload;
118
118