@openvtc/trust-tasks 0.27.1 → 0.27.3

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 (228) hide show
  1. package/CHANGELOG.md +218 -0
  2. package/dist/_runtime/consume.d.ts +2 -1
  3. package/dist/_runtime/consume.d.ts.map +1 -1
  4. package/dist/_runtime/consume.js +26 -1
  5. package/dist/_runtime/consume.js.map +1 -1
  6. package/dist/_runtime/document.d.ts +9 -0
  7. package/dist/_runtime/document.d.ts.map +1 -1
  8. package/dist/_runtime/document.js +15 -1
  9. package/dist/_runtime/document.js.map +1 -1
  10. package/dist/_runtime/freshness.d.ts +4 -2
  11. package/dist/_runtime/freshness.d.ts.map +1 -1
  12. package/dist/_runtime/freshness.js +9 -6
  13. package/dist/_runtime/freshness.js.map +1 -1
  14. package/dist/_shared/components.d.ts +346 -23
  15. package/dist/_shared/components.d.ts.map +1 -1
  16. package/dist/device/list/0.1/payload.d.ts +4 -4
  17. package/dist/device/list/0.1/payload.d.ts.map +1 -1
  18. package/dist/device/list/0.1/payload.js +4 -2
  19. package/dist/device/list/0.1/payload.js.map +1 -1
  20. package/dist/device/list/0.2/payload.d.ts +4 -4
  21. package/dist/device/list/0.2/payload.d.ts.map +1 -1
  22. package/dist/device/list/0.2/payload.js +4 -2
  23. package/dist/device/list/0.2/payload.js.map +1 -1
  24. package/dist/device/register/0.1/payload.d.ts +4 -4
  25. package/dist/device/register/0.1/payload.d.ts.map +1 -1
  26. package/dist/device/register/0.1/payload.js +4 -2
  27. package/dist/device/register/0.1/payload.js.map +1 -1
  28. package/dist/device/register/0.2/payload.d.ts +4 -4
  29. package/dist/device/register/0.2/payload.d.ts.map +1 -1
  30. package/dist/device/register/0.2/payload.js +4 -2
  31. package/dist/device/register/0.2/payload.js.map +1 -1
  32. package/dist/index.d.ts +25 -0
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +25 -0
  35. package/dist/index.js.map +1 -1
  36. package/dist/rooms/_shared/0.1/room.d.ts +1 -1
  37. package/dist/rooms/_shared/0.1/room.d.ts.map +1 -1
  38. package/dist/rooms/create/0.2/payload.d.ts +534 -0
  39. package/dist/rooms/create/0.2/payload.d.ts.map +1 -0
  40. package/dist/rooms/create/0.2/payload.js +293 -0
  41. package/dist/rooms/create/0.2/payload.js.map +1 -0
  42. package/dist/rooms/epoch/chain/0.2/payload.d.ts +534 -0
  43. package/dist/rooms/epoch/chain/0.2/payload.d.ts.map +1 -0
  44. package/dist/rooms/epoch/chain/0.2/payload.js +292 -0
  45. package/dist/rooms/epoch/chain/0.2/payload.js.map +1 -0
  46. package/dist/rooms/epoch/prune/0.2/payload.d.ts +467 -0
  47. package/dist/rooms/epoch/prune/0.2/payload.d.ts.map +1 -0
  48. package/dist/rooms/epoch/prune/0.2/payload.js +251 -0
  49. package/dist/rooms/epoch/prune/0.2/payload.js.map +1 -0
  50. package/dist/rooms/info/0.2/payload.d.ts +1129 -0
  51. package/dist/rooms/info/0.2/payload.d.ts.map +1 -0
  52. package/dist/rooms/info/0.2/payload.js +618 -0
  53. package/dist/rooms/info/0.2/payload.js.map +1 -0
  54. package/dist/rooms/keys/backfill/0.2/payload.d.ts +380 -0
  55. package/dist/rooms/keys/backfill/0.2/payload.d.ts.map +1 -0
  56. package/dist/rooms/keys/backfill/0.2/payload.js +197 -0
  57. package/dist/rooms/keys/backfill/0.2/payload.js.map +1 -0
  58. package/dist/rooms/keys/browse/0.1/payload.d.ts +4 -4
  59. package/dist/rooms/keys/browse/0.1/payload.js +2 -2
  60. package/dist/rooms/keys/browse/0.1/payload.js.map +1 -1
  61. package/dist/rooms/keys/browse/0.2/payload.d.ts +941 -0
  62. package/dist/rooms/keys/browse/0.2/payload.d.ts.map +1 -0
  63. package/dist/rooms/keys/browse/0.2/payload.js +558 -0
  64. package/dist/rooms/keys/browse/0.2/payload.js.map +1 -0
  65. package/dist/rooms/keys/chain/0.2/payload.d.ts +450 -0
  66. package/dist/rooms/keys/chain/0.2/payload.d.ts.map +1 -0
  67. package/dist/rooms/keys/chain/0.2/payload.js +248 -0
  68. package/dist/rooms/keys/chain/0.2/payload.js.map +1 -0
  69. package/dist/rooms/keys/profile/read/0.1/payload.d.ts +4 -4
  70. package/dist/rooms/keys/profile/read/0.1/payload.js +2 -2
  71. package/dist/rooms/keys/profile/read/0.1/payload.js.map +1 -1
  72. package/dist/rooms/keys/read/0.1/payload.d.ts +4 -4
  73. package/dist/rooms/keys/read/0.1/payload.js +2 -2
  74. package/dist/rooms/keys/read/0.1/payload.js.map +1 -1
  75. package/dist/rooms/owner/anchor/0.1/payload.d.ts +4 -4
  76. package/dist/rooms/owner/anchor/0.1/payload.js +2 -2
  77. package/dist/rooms/owner/anchor/0.1/payload.js.map +1 -1
  78. package/dist/rooms/records/get/0.1/payload.d.ts +4 -4
  79. package/dist/rooms/records/get/0.1/payload.js +2 -2
  80. package/dist/rooms/records/get/0.1/payload.js.map +1 -1
  81. package/dist/rooms/records/get/0.2/payload.d.ts +4 -4
  82. package/dist/rooms/records/get/0.2/payload.js +2 -2
  83. package/dist/rooms/records/get/0.2/payload.js.map +1 -1
  84. package/dist/rooms/records/list/0.1/payload.d.ts +4 -4
  85. package/dist/rooms/records/list/0.1/payload.js +2 -2
  86. package/dist/rooms/records/list/0.1/payload.js.map +1 -1
  87. package/dist/rooms/records/list/0.2/payload.d.ts +4 -4
  88. package/dist/rooms/records/list/0.2/payload.js +2 -2
  89. package/dist/rooms/records/list/0.2/payload.js.map +1 -1
  90. package/dist/rooms/records/list/0.3/payload.d.ts +970 -0
  91. package/dist/rooms/records/list/0.3/payload.d.ts.map +1 -0
  92. package/dist/rooms/records/list/0.3/payload.js +526 -0
  93. package/dist/rooms/records/list/0.3/payload.js.map +1 -0
  94. package/dist/rooms/records/prune/0.1/payload.d.ts +706 -0
  95. package/dist/rooms/records/prune/0.1/payload.d.ts.map +1 -0
  96. package/dist/rooms/records/prune/0.1/payload.js +374 -0
  97. package/dist/rooms/records/prune/0.1/payload.js.map +1 -0
  98. package/dist/rooms/records/put/0.3/payload.d.ts +1212 -0
  99. package/dist/rooms/records/put/0.3/payload.d.ts.map +1 -0
  100. package/dist/rooms/records/put/0.3/payload.js +646 -0
  101. package/dist/rooms/records/put/0.3/payload.js.map +1 -0
  102. package/dist/rooms/records/retention/set/0.1/payload.d.ts +521 -0
  103. package/dist/rooms/records/retention/set/0.1/payload.d.ts.map +1 -0
  104. package/dist/rooms/records/retention/set/0.1/payload.js +276 -0
  105. package/dist/rooms/records/retention/set/0.1/payload.js.map +1 -0
  106. package/dist/vault/credentials/present/0.1/payload.d.ts +407 -0
  107. package/dist/vault/credentials/present/0.1/payload.d.ts.map +1 -0
  108. package/dist/vault/credentials/present/0.1/payload.js +217 -0
  109. package/dist/vault/credentials/present/0.1/payload.js.map +1 -0
  110. package/dist/vault/credentials/query/0.1/payload.d.ts +12 -0
  111. package/dist/vault/credentials/query/0.1/payload.d.ts.map +1 -1
  112. package/dist/vault/credentials/query/0.1/payload.js +4 -0
  113. package/dist/vault/credentials/query/0.1/payload.js.map +1 -1
  114. package/dist/vta/webvh/dids/create/1.2/payload.d.ts +961 -0
  115. package/dist/vta/webvh/dids/create/1.2/payload.d.ts.map +1 -0
  116. package/dist/vta/webvh/dids/create/1.2/payload.js +480 -0
  117. package/dist/vta/webvh/dids/create/1.2/payload.js.map +1 -0
  118. package/dist/vtc/_shared/0.1/room-migration.d.ts +16 -0
  119. package/dist/vtc/_shared/0.1/room-migration.d.ts.map +1 -0
  120. package/dist/vtc/_shared/0.1/room-migration.js +6 -0
  121. package/dist/vtc/_shared/0.1/room-migration.js.map +1 -0
  122. package/dist/vtc/_shared/0.1/room-storage.d.ts +1 -1
  123. package/dist/vtc/_shared/0.1/room-storage.d.ts.map +1 -1
  124. package/dist/vtc/_shared/0.2/room-storage.d.ts +16 -0
  125. package/dist/vtc/_shared/0.2/room-storage.d.ts.map +1 -0
  126. package/dist/vtc/_shared/0.2/room-storage.js +6 -0
  127. package/dist/vtc/_shared/0.2/room-storage.js.map +1 -0
  128. package/dist/vtc/admin/events/_shared/0.4/topic.d.ts +31 -0
  129. package/dist/vtc/admin/events/_shared/0.4/topic.d.ts.map +1 -0
  130. package/dist/vtc/admin/events/_shared/0.4/topic.js +6 -0
  131. package/dist/vtc/admin/events/_shared/0.4/topic.js.map +1 -0
  132. package/dist/vtc/admin/events/event/0.4/payload.d.ts +172 -0
  133. package/dist/vtc/admin/events/event/0.4/payload.d.ts.map +1 -0
  134. package/dist/vtc/admin/events/event/0.4/payload.js +103 -0
  135. package/dist/vtc/admin/events/event/0.4/payload.js.map +1 -0
  136. package/dist/vtc/admin/events/subscribe/0.4/payload.d.ts +409 -0
  137. package/dist/vtc/admin/events/subscribe/0.4/payload.d.ts.map +1 -0
  138. package/dist/vtc/admin/events/subscribe/0.4/payload.js +238 -0
  139. package/dist/vtc/admin/events/subscribe/0.4/payload.js.map +1 -0
  140. package/dist/vtc/rooms/get/0.2/payload.d.ts +1966 -0
  141. package/dist/vtc/rooms/get/0.2/payload.d.ts.map +1 -0
  142. package/dist/vtc/rooms/get/0.2/payload.js +976 -0
  143. package/dist/vtc/rooms/get/0.2/payload.js.map +1 -0
  144. package/dist/vtc/rooms/storage/migrate/0.2/payload.d.ts +595 -0
  145. package/dist/vtc/rooms/storage/migrate/0.2/payload.d.ts.map +1 -0
  146. package/dist/vtc/rooms/storage/migrate/0.2/payload.js +336 -0
  147. package/dist/vtc/rooms/storage/migrate/0.2/payload.js.map +1 -0
  148. package/dist/vtc/storage/configs/create/0.1/payload.d.ts +1 -1
  149. package/dist/vtc/storage/configs/create/0.1/payload.d.ts.map +1 -1
  150. package/dist/vtc/storage/configs/create/0.2/payload.d.ts +1360 -0
  151. package/dist/vtc/storage/configs/create/0.2/payload.d.ts.map +1 -0
  152. package/dist/vtc/storage/configs/create/0.2/payload.js +783 -0
  153. package/dist/vtc/storage/configs/create/0.2/payload.js.map +1 -0
  154. package/dist/vtc/storage/configs/get/0.1/payload.d.ts +1 -1
  155. package/dist/vtc/storage/configs/get/0.1/payload.d.ts.map +1 -1
  156. package/dist/vtc/storage/configs/get/0.2/payload.d.ts +1854 -0
  157. package/dist/vtc/storage/configs/get/0.2/payload.d.ts.map +1 -0
  158. package/dist/vtc/storage/configs/get/0.2/payload.js +1075 -0
  159. package/dist/vtc/storage/configs/get/0.2/payload.js.map +1 -0
  160. package/dist/vtc/storage/configs/list/0.1/payload.d.ts +1 -1
  161. package/dist/vtc/storage/configs/list/0.1/payload.d.ts.map +1 -1
  162. package/dist/vtc/storage/configs/list/0.2/payload.d.ts +1955 -0
  163. package/dist/vtc/storage/configs/list/0.2/payload.d.ts.map +1 -0
  164. package/dist/vtc/storage/configs/list/0.2/payload.js +1125 -0
  165. package/dist/vtc/storage/configs/list/0.2/payload.js.map +1 -0
  166. package/dist/vtc/storage/configs/update/0.1/payload.d.ts +1 -1
  167. package/dist/vtc/storage/configs/update/0.1/payload.d.ts.map +1 -1
  168. package/dist/vtc/storage/configs/update/0.2/payload.d.ts +1362 -0
  169. package/dist/vtc/storage/configs/update/0.2/payload.d.ts.map +1 -0
  170. package/dist/vtc/storage/configs/update/0.2/payload.js +782 -0
  171. package/dist/vtc/storage/configs/update/0.2/payload.js.map +1 -0
  172. package/dist/vtc/storage/credentials/set/0.1/payload.d.ts +1 -1
  173. package/dist/vtc/storage/credentials/set/0.1/payload.d.ts.map +1 -1
  174. package/dist/vtc/storage/credentials/set/0.2/payload.d.ts +979 -0
  175. package/dist/vtc/storage/credentials/set/0.2/payload.d.ts.map +1 -0
  176. package/dist/vtc/storage/credentials/set/0.2/payload.js +573 -0
  177. package/dist/vtc/storage/credentials/set/0.2/payload.js.map +1 -0
  178. package/package.json +1 -1
  179. package/src/_runtime/consume.ts +26 -2
  180. package/src/_runtime/document.ts +17 -1
  181. package/src/_runtime/freshness.ts +9 -7
  182. package/src/_shared/components.ts +372 -23
  183. package/src/device/list/0.1/payload.ts +4 -2
  184. package/src/device/list/0.2/payload.ts +4 -2
  185. package/src/device/register/0.1/payload.ts +4 -2
  186. package/src/device/register/0.2/payload.ts +4 -2
  187. package/src/index.ts +25 -0
  188. package/src/rooms/_shared/0.1/room.ts +1 -1
  189. package/src/rooms/create/0.2/payload.ts +364 -0
  190. package/src/rooms/epoch/chain/0.2/payload.ts +347 -0
  191. package/src/rooms/epoch/prune/0.2/payload.ts +315 -0
  192. package/src/rooms/info/0.2/payload.ts +700 -0
  193. package/src/rooms/keys/backfill/0.2/payload.ts +260 -0
  194. package/src/rooms/keys/browse/0.1/payload.ts +2 -2
  195. package/src/rooms/keys/browse/0.2/payload.ts +628 -0
  196. package/src/rooms/keys/chain/0.2/payload.ts +308 -0
  197. package/src/rooms/keys/profile/read/0.1/payload.ts +2 -2
  198. package/src/rooms/keys/read/0.1/payload.ts +2 -2
  199. package/src/rooms/owner/anchor/0.1/payload.ts +2 -2
  200. package/src/rooms/records/get/0.1/payload.ts +2 -2
  201. package/src/rooms/records/get/0.2/payload.ts +2 -2
  202. package/src/rooms/records/list/0.1/payload.ts +2 -2
  203. package/src/rooms/records/list/0.2/payload.ts +2 -2
  204. package/src/rooms/records/list/0.3/payload.ts +601 -0
  205. package/src/rooms/records/prune/0.1/payload.ts +451 -0
  206. package/src/rooms/records/put/0.3/payload.ts +741 -0
  207. package/src/rooms/records/retention/set/0.1/payload.ts +338 -0
  208. package/src/vault/credentials/present/0.1/payload.ts +283 -0
  209. package/src/vault/credentials/query/0.1/payload.ts +8 -0
  210. package/src/vta/webvh/dids/create/1.2/payload.ts +660 -0
  211. package/src/vtc/_shared/0.1/room-migration.ts +17 -0
  212. package/src/vtc/_shared/0.1/room-storage.ts +1 -1
  213. package/src/vtc/_shared/0.2/room-storage.ts +17 -0
  214. package/src/vtc/admin/events/_shared/0.4/topic.ts +32 -0
  215. package/src/vtc/admin/events/event/0.4/payload.ts +137 -0
  216. package/src/vtc/admin/events/subscribe/0.4/payload.ts +318 -0
  217. package/src/vtc/rooms/get/0.2/payload.ts +1372 -0
  218. package/src/vtc/rooms/storage/migrate/0.2/payload.ts +408 -0
  219. package/src/vtc/storage/configs/create/0.1/payload.ts +1 -1
  220. package/src/vtc/storage/configs/create/0.2/payload.ts +830 -0
  221. package/src/vtc/storage/configs/get/0.1/payload.ts +1 -1
  222. package/src/vtc/storage/configs/get/0.2/payload.ts +1110 -0
  223. package/src/vtc/storage/configs/list/0.1/payload.ts +1 -1
  224. package/src/vtc/storage/configs/list/0.2/payload.ts +1177 -0
  225. package/src/vtc/storage/configs/update/0.1/payload.ts +1 -1
  226. package/src/vtc/storage/configs/update/0.2/payload.ts +829 -0
  227. package/src/vtc/storage/credentials/set/0.1/payload.ts +1 -1
  228. package/src/vtc/storage/credentials/set/0.2/payload.ts +619 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/rooms/records/put/0.3/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAsFH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,mDAA4D,CAAC;AAKrF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,4DAAqE,CAAC;AAKvG;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,mDAAmD;IAC1D,OAAO,EAAE,6BAA6B;IACtC,aAAa,EAAE,+bAA+b;IAC9c,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,QAAQ;QACR,KAAK;QACL,cAAc;KACf;IACD,YAAY,EAAE;QACZ,QAAQ,EAAE;YACR,MAAM,EAAE,QAAQ;YAChB,aAAa,EAAE,sNAAsN;SACtO;QACD,KAAK,EAAE;YACL,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,GAAG;YAChB,aAAa,EAAE,gHAAgH;SAChI;QACD,cAAc,EAAE;YACd,MAAM,EAAE,+BAA+B;YACvC,aAAa,EAAE,sDAAs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AC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
@@ -0,0 +1,521 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/rooms/records/retention/set/0.1/payload.schema.json
4
+ */
5
+ import type { AuthorityPresentation, Ext, RecordRetention } from "../../../../../_shared/components.js";
6
+ /**
7
+ * A holder of `admin` changes how long a room keeps its records by age — its record retention — which decides what `rooms/records/prune` may remove from then on.
8
+ */
9
+ export interface RoomsRecordsRetentionSetPayload {
10
+ /**
11
+ * The room whose record retention to change. A host verifies the presentation against credentials issued by this identifier, never against a member list of its own.
12
+ */
13
+ roomId: string;
14
+ /**
15
+ * Must confer `admin` at this room's scope — the same grant a prune takes, because shortening the retention is how a prune is made to reach further.
16
+ */
17
+ presentation: AuthorityPresentation;
18
+ /**
19
+ * The room's record retention from now on, replacing the one in force whole: a member left out is no longer stated. `{}` clears it, after which no record is eligible by age.
20
+ */
21
+ recordRetention: RecordRetention;
22
+ /**
23
+ * Optional precondition: the record retention the caller believes is in force — `{}` for none. On a mismatch the host refuses with `retentionConflict`, carrying the one in force, so that two administrators changing it at once do not each overwrite the other's decision unseen.
24
+ */
25
+ expectedRetention?: RecordRetention;
26
+ /**
27
+ * Why, for the room's audit trail. REQUIRED: a shortened retention is what lets a later prune remove records that were not eligible a moment before, so the change carries its own account of intent. Plain text; it MUST NOT name a member or quote a record.
28
+ */
29
+ reason: string;
30
+ /**
31
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
32
+ */
33
+ ext?: Ext;
34
+ }
35
+ /**
36
+ * Success response to rooms/records/retention/set. Type https://trusttasks.org/spec/rooms/records/retention/set/0.1#response.
37
+ */
38
+ export interface RoomsRecordsRetentionSetResponsePayload {
39
+ roomId: string;
40
+ /**
41
+ * The record retention now in force, as the host recorded it — what `rooms/info` will serve every member.
42
+ */
43
+ recordRetention: RecordRetention;
44
+ /**
45
+ * The record retention it replaced, `{}` when there was none. Returned so that a surface can say what changed, and in which direction.
46
+ */
47
+ previous?: RecordRetention;
48
+ ext?: Ext;
49
+ }
50
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
51
+ export type { AuthorityPresentation, Ext, RecordRetention };
52
+ /** Trust Task type URI. */
53
+ export declare const TYPE_URI: "https://trusttasks.org/spec/rooms/records/retention/set/0.1";
54
+ /** Stable alias for this specification's request payload shape. */
55
+ export type Payload = RoomsRecordsRetentionSetPayload;
56
+ /** Trust Task response type URI (request type URI + "#response"). */
57
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/rooms/records/retention/set/0.1#response";
58
+ /** Stable alias for this specification's success-response payload shape. */
59
+ export type Response = RoomsRecordsRetentionSetResponsePayload;
60
+ /**
61
+ * This specification's payload schema, as a value.
62
+ *
63
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
64
+ * rather than only as a `.json` file because TypeScript types are erased
65
+ * at runtime: without a schema a consumer has nothing to validate, and
66
+ * every REQUIRED payload member is optional in practice. Cross-file
67
+ * `$ref`s are already inlined, so it needs no resolver.
68
+ */
69
+ export declare const PAYLOAD_SCHEMA: {
70
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
71
+ readonly $id: "https://trusttasks.org/spec/rooms/records/retention/set/0.1";
72
+ readonly title: "Rooms Records Retention Set — payload";
73
+ readonly description: "A holder of `admin` changes how long a room keeps its records by age — its record retention — which decides what `rooms/records/prune` may remove from then on.";
74
+ readonly type: "object";
75
+ readonly additionalProperties: false;
76
+ readonly required: readonly ["roomId", "presentation", "recordRetention", "reason"];
77
+ readonly properties: {
78
+ readonly roomId: {
79
+ readonly type: "string";
80
+ readonly description: "The room whose record retention to change. A host verifies the presentation against credentials issued by this identifier, never against a member list of its own.";
81
+ };
82
+ readonly presentation: {
83
+ readonly $ref: "#/$defs/AuthorityPresentation";
84
+ readonly description: "Must confer `admin` at this room's scope — the same grant a prune takes, because shortening the retention is how a prune is made to reach further.";
85
+ };
86
+ readonly recordRetention: {
87
+ readonly $ref: "#/$defs/RecordRetention";
88
+ readonly description: "The room's record retention from now on, replacing the one in force whole: a member left out is no longer stated. `{}` clears it, after which no record is eligible by age.";
89
+ };
90
+ readonly expectedRetention: {
91
+ readonly $ref: "#/$defs/RecordRetention";
92
+ readonly description: "Optional precondition: the record retention the caller believes is in force — `{}` for none. On a mismatch the host refuses with `retentionConflict`, carrying the one in force, so that two administrators changing it at once do not each overwrite the other's decision unseen.";
93
+ };
94
+ readonly reason: {
95
+ readonly type: "string";
96
+ readonly minLength: 1;
97
+ readonly maxLength: 512;
98
+ readonly description: "Why, for the room's audit trail. REQUIRED: a shortened retention is what lets a later prune remove records that were not eligible a moment before, so the change carries its own account of intent. Plain text; it MUST NOT name a member or quote a record.";
99
+ };
100
+ readonly ext: {
101
+ readonly $ref: "#/$defs/Ext";
102
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
103
+ };
104
+ };
105
+ readonly $defs: {
106
+ readonly Response: {
107
+ readonly $anchor: "response";
108
+ readonly title: "Rooms Records Retention Set — response payload";
109
+ readonly description: "Success response to rooms/records/retention/set. Type https://trusttasks.org/spec/rooms/records/retention/set/0.1#response.";
110
+ readonly type: "object";
111
+ readonly additionalProperties: false;
112
+ readonly required: readonly ["roomId", "recordRetention"];
113
+ readonly properties: {
114
+ readonly roomId: {
115
+ readonly type: "string";
116
+ };
117
+ readonly recordRetention: {
118
+ readonly $ref: "#/$defs/RecordRetention";
119
+ readonly description: "The record retention now in force, as the host recorded it — what `rooms/info` will serve every member.";
120
+ };
121
+ readonly previous: {
122
+ readonly $ref: "#/$defs/RecordRetention";
123
+ readonly description: "The record retention it replaced, `{}` when there was none. Returned so that a surface can say what changed, and in which direction.";
124
+ };
125
+ readonly ext: {
126
+ readonly $ref: "#/$defs/Ext";
127
+ };
128
+ };
129
+ };
130
+ readonly Ext: {
131
+ readonly title: "Ext";
132
+ 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.";
133
+ readonly type: "object";
134
+ readonly minProperties: 1;
135
+ readonly additionalProperties: true;
136
+ readonly propertyNames: {
137
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
138
+ };
139
+ };
140
+ readonly RecordRetention: {
141
+ readonly title: "RecordRetention";
142
+ readonly type: "object";
143
+ readonly additionalProperties: false;
144
+ readonly description: "How long a room keeps its records, by age: the room's **record retention**. Records older than it states become **eligible** to be removed by `rooms/records/prune`; nothing is removed until a holder of `admin` asks for a prune, and nothing a prune removes can be brought back.\n\n**Not `retentionPolicy`, and not `retentionDays`.** Both names are taken in this family and mean other things. `retentionPolicy` (`RetentionPolicy`) is whether a room's *key chain* lets a member read epochs from before they joined, fixed at creation because key material either exists for an epoch or it does not. `retentionDays` (`rooms/create`) is how long a host keeps a whole room after it lapses unrenewed. This is a third question — how long the room keeps its *records* while it is live — and unlike the first it is a decision a room revisits, so it is changeable (`rooms/records/retention/set`). A name sharing either's would invite a reader to apply one's rules to the other.\n\n**Age is the host's to measure, so age is `updatedAt`.** On the sealed tiers a host can read nothing of a record but its key, version, status, pinning and when it last changed, so a policy the host applies can only be stated in those terms. That is also why it cannot use a record's own `validUntil`, which is sealed: expiry is a reader's rule, retention a host's. A curation is a change, so it restarts a record's age — a retraction starts a tombstone's.\n\n**Absent, or `{}`, means no record is ever eligible by age**, and that is the reading a host MUST apply whenever it cannot read a policy: removing data under a rule nobody stated is the failure this member exists to prevent. Every member can read the policy in force (`rooms/info`), so a record is never removed under a rule its readers could not have known.";
145
+ readonly properties: {
146
+ readonly tombstoneDays: {
147
+ readonly type: "integer";
148
+ readonly minimum: 1;
149
+ readonly maximum: 36500;
150
+ readonly description: "Days a retracted record's tombstone is kept after its retraction. A tombstone whose `updatedAt` is more than this long ago is eligible. Tombstones exist so that a member syncing incrementally learns of a retraction (`rooms/records/curate`); this is how long a member may stay away and still learn of one that way rather than by rebuilding their copy of the room. Absent means tombstones are never eligible.";
151
+ };
152
+ readonly recordDays: {
153
+ readonly type: "integer";
154
+ readonly minimum: 1;
155
+ readonly maximum: 36500;
156
+ readonly description: "Days a record is kept after it last changed, whatever its standing. A record — `active`, `deprecated` or `retracted` — whose `updatedAt` is more than this long ago is eligible, **unless it is pinned**: pinning says what matters in the room, and a room that wants a pinned record gone unpins it first. Absent means records are never eligible by age.";
157
+ };
158
+ readonly ext: {
159
+ readonly $ref: "#/$defs/Ext";
160
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1. A host MUST NOT treat a member here as making more records eligible: a removal rule a member's reader cannot understand is one they were never told about.";
161
+ };
162
+ };
163
+ };
164
+ readonly AuthorityPresentation: {
165
+ readonly title: "AuthorityPresentation";
166
+ readonly type: "object";
167
+ readonly additionalProperties: false;
168
+ readonly required: readonly ["membership", "authority"];
169
+ readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.\n\n**Every credential is its issuer's attestation, and only its issuer's.** For the membership credential and for every link of `authority`, a host MUST verify the credential's `proof` with a key that the credential's own `issuer` lists for `assertionMethod` in its DID document, and MUST refuse a credential whose proof names a verification method that is not its issuer's. A proof that verifies under some other party's key is that party's statement, not the issuer's, and confers nothing. The same binding holds for every other document a room signs, such as a `RevocationList`.\n\n**A chain that verifies may still be revoked.** A host that has accepted a `RevocationList` for the room (`rooms/revocations/put`) MUST, from the moment it accepted it, refuse every presentation in which the membership credential or any link of `authority` is revoked by that list, under every task and every version of every task it serves for the room. A chain from which any link is revoked is refused whole: a credential delegated from a revoked one confers nothing, however it was attenuated. The refusal is the same `permissionDenied` as any other failed presentation.";
170
+ readonly properties: {
171
+ readonly membership: {
172
+ readonly type: "string";
173
+ readonly description: "The presenter's membership credential for this room, or — on a `private` room — a zero-knowledge presentation of it. Serialized per the governing profile.";
174
+ };
175
+ readonly authority: {
176
+ readonly type: "array";
177
+ readonly minItems: 1;
178
+ readonly maxItems: 8;
179
+ readonly items: {
180
+ readonly type: "string";
181
+ };
182
+ readonly description: "The authority chain, LEAF FIRST: the first element is the credential being relied on and the last MUST be one issued by the room itself. Every link the presenter relies on is present, because the host will not fetch one. Capped at 8: verification is linear in chain length and runs on every operation, so an unbounded chain is a denial-of-service surface against the host. The known uses need 2 to 3 — a person attenuating to an agent, and that agent to a sub-agent.";
183
+ };
184
+ readonly subjectBinding: {
185
+ readonly type: "string";
186
+ readonly description: "REQUIRED on a `private` room, where the subject identifier is withheld: a proof that the membership credential and the authority chain's leaf describe the SAME subject. Without it two parties pool credentials — one contributes membership, the other authority — and the combination verifies as a single party holding both. A host MUST refuse a private-room presentation that omits this.";
187
+ };
188
+ };
189
+ };
190
+ };
191
+ };
192
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
193
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
194
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
195
+ readonly $ref: "#/$defs/Response";
196
+ readonly $defs: {
197
+ readonly Response: {
198
+ readonly $anchor: "response";
199
+ readonly title: "Rooms Records Retention Set — response payload";
200
+ readonly description: "Success response to rooms/records/retention/set. Type https://trusttasks.org/spec/rooms/records/retention/set/0.1#response.";
201
+ readonly type: "object";
202
+ readonly additionalProperties: false;
203
+ readonly required: readonly ["roomId", "recordRetention"];
204
+ readonly properties: {
205
+ readonly roomId: {
206
+ readonly type: "string";
207
+ };
208
+ readonly recordRetention: {
209
+ readonly $ref: "#/$defs/RecordRetention";
210
+ readonly description: "The record retention now in force, as the host recorded it — what `rooms/info` will serve every member.";
211
+ };
212
+ readonly previous: {
213
+ readonly $ref: "#/$defs/RecordRetention";
214
+ readonly description: "The record retention it replaced, `{}` when there was none. Returned so that a surface can say what changed, and in which direction.";
215
+ };
216
+ readonly ext: {
217
+ readonly $ref: "#/$defs/Ext";
218
+ };
219
+ };
220
+ };
221
+ readonly Ext: {
222
+ readonly title: "Ext";
223
+ 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.";
224
+ readonly type: "object";
225
+ readonly minProperties: 1;
226
+ readonly additionalProperties: true;
227
+ readonly propertyNames: {
228
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
229
+ };
230
+ };
231
+ readonly RecordRetention: {
232
+ readonly title: "RecordRetention";
233
+ readonly type: "object";
234
+ readonly additionalProperties: false;
235
+ readonly description: "How long a room keeps its records, by age: the room's **record retention**. Records older than it states become **eligible** to be removed by `rooms/records/prune`; nothing is removed until a holder of `admin` asks for a prune, and nothing a prune removes can be brought back.\n\n**Not `retentionPolicy`, and not `retentionDays`.** Both names are taken in this family and mean other things. `retentionPolicy` (`RetentionPolicy`) is whether a room's *key chain* lets a member read epochs from before they joined, fixed at creation because key material either exists for an epoch or it does not. `retentionDays` (`rooms/create`) is how long a host keeps a whole room after it lapses unrenewed. This is a third question — how long the room keeps its *records* while it is live — and unlike the first it is a decision a room revisits, so it is changeable (`rooms/records/retention/set`). A name sharing either's would invite a reader to apply one's rules to the other.\n\n**Age is the host's to measure, so age is `updatedAt`.** On the sealed tiers a host can read nothing of a record but its key, version, status, pinning and when it last changed, so a policy the host applies can only be stated in those terms. That is also why it cannot use a record's own `validUntil`, which is sealed: expiry is a reader's rule, retention a host's. A curation is a change, so it restarts a record's age — a retraction starts a tombstone's.\n\n**Absent, or `{}`, means no record is ever eligible by age**, and that is the reading a host MUST apply whenever it cannot read a policy: removing data under a rule nobody stated is the failure this member exists to prevent. Every member can read the policy in force (`rooms/info`), so a record is never removed under a rule its readers could not have known.";
236
+ readonly properties: {
237
+ readonly tombstoneDays: {
238
+ readonly type: "integer";
239
+ readonly minimum: 1;
240
+ readonly maximum: 36500;
241
+ readonly description: "Days a retracted record's tombstone is kept after its retraction. A tombstone whose `updatedAt` is more than this long ago is eligible. Tombstones exist so that a member syncing incrementally learns of a retraction (`rooms/records/curate`); this is how long a member may stay away and still learn of one that way rather than by rebuilding their copy of the room. Absent means tombstones are never eligible.";
242
+ };
243
+ readonly recordDays: {
244
+ readonly type: "integer";
245
+ readonly minimum: 1;
246
+ readonly maximum: 36500;
247
+ readonly description: "Days a record is kept after it last changed, whatever its standing. A record — `active`, `deprecated` or `retracted` — whose `updatedAt` is more than this long ago is eligible, **unless it is pinned**: pinning says what matters in the room, and a room that wants a pinned record gone unpins it first. Absent means records are never eligible by age.";
248
+ };
249
+ readonly ext: {
250
+ readonly $ref: "#/$defs/Ext";
251
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1. A host MUST NOT treat a member here as making more records eligible: a removal rule a member's reader cannot understand is one they were never told about.";
252
+ };
253
+ };
254
+ };
255
+ readonly AuthorityPresentation: {
256
+ readonly title: "AuthorityPresentation";
257
+ readonly type: "object";
258
+ readonly additionalProperties: false;
259
+ readonly required: readonly ["membership", "authority"];
260
+ readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.\n\n**Every credential is its issuer's attestation, and only its issuer's.** For the membership credential and for every link of `authority`, a host MUST verify the credential's `proof` with a key that the credential's own `issuer` lists for `assertionMethod` in its DID document, and MUST refuse a credential whose proof names a verification method that is not its issuer's. A proof that verifies under some other party's key is that party's statement, not the issuer's, and confers nothing. The same binding holds for every other document a room signs, such as a `RevocationList`.\n\n**A chain that verifies may still be revoked.** A host that has accepted a `RevocationList` for the room (`rooms/revocations/put`) MUST, from the moment it accepted it, refuse every presentation in which the membership credential or any link of `authority` is revoked by that list, under every task and every version of every task it serves for the room. A chain from which any link is revoked is refused whole: a credential delegated from a revoked one confers nothing, however it was attenuated. The refusal is the same `permissionDenied` as any other failed presentation.";
261
+ readonly properties: {
262
+ readonly membership: {
263
+ readonly type: "string";
264
+ readonly description: "The presenter's membership credential for this room, or — on a `private` room — a zero-knowledge presentation of it. Serialized per the governing profile.";
265
+ };
266
+ readonly authority: {
267
+ readonly type: "array";
268
+ readonly minItems: 1;
269
+ readonly maxItems: 8;
270
+ readonly items: {
271
+ readonly type: "string";
272
+ };
273
+ readonly description: "The authority chain, LEAF FIRST: the first element is the credential being relied on and the last MUST be one issued by the room itself. Every link the presenter relies on is present, because the host will not fetch one. Capped at 8: verification is linear in chain length and runs on every operation, so an unbounded chain is a denial-of-service surface against the host. The known uses need 2 to 3 — a person attenuating to an agent, and that agent to a sub-agent.";
274
+ };
275
+ readonly subjectBinding: {
276
+ readonly type: "string";
277
+ readonly description: "REQUIRED on a `private` room, where the subject identifier is withheld: a proof that the membership credential and the authority chain's leaf describe the SAME subject. Without it two parties pool credentials — one contributes membership, the other authority — and the combination verifies as a single party holding both. A host MUST refuse a private-room presentation that omits this.";
278
+ };
279
+ };
280
+ };
281
+ };
282
+ };
283
+ /**
284
+ * SPEC.md §7.2 policy for the request variant, from this specification's
285
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
286
+ * per-specification and cannot be derived from the document alone, and
287
+ * item 2 needs the schema this carries.
288
+ */
289
+ export declare const SPEC: {
290
+ readonly typeUri: "https://trusttasks.org/spec/rooms/records/retention/set/0.1";
291
+ readonly isBearer: false;
292
+ readonly isProofRequired: true;
293
+ readonly isRecipientRequired: true;
294
+ readonly isIssuedAtRequired: true;
295
+ readonly payloadSchema: {
296
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
297
+ readonly $id: "https://trusttasks.org/spec/rooms/records/retention/set/0.1";
298
+ readonly title: "Rooms Records Retention Set — payload";
299
+ readonly description: "A holder of `admin` changes how long a room keeps its records by age — its record retention — which decides what `rooms/records/prune` may remove from then on.";
300
+ readonly type: "object";
301
+ readonly additionalProperties: false;
302
+ readonly required: readonly ["roomId", "presentation", "recordRetention", "reason"];
303
+ readonly properties: {
304
+ readonly roomId: {
305
+ readonly type: "string";
306
+ readonly description: "The room whose record retention to change. A host verifies the presentation against credentials issued by this identifier, never against a member list of its own.";
307
+ };
308
+ readonly presentation: {
309
+ readonly $ref: "#/$defs/AuthorityPresentation";
310
+ readonly description: "Must confer `admin` at this room's scope — the same grant a prune takes, because shortening the retention is how a prune is made to reach further.";
311
+ };
312
+ readonly recordRetention: {
313
+ readonly $ref: "#/$defs/RecordRetention";
314
+ readonly description: "The room's record retention from now on, replacing the one in force whole: a member left out is no longer stated. `{}` clears it, after which no record is eligible by age.";
315
+ };
316
+ readonly expectedRetention: {
317
+ readonly $ref: "#/$defs/RecordRetention";
318
+ readonly description: "Optional precondition: the record retention the caller believes is in force — `{}` for none. On a mismatch the host refuses with `retentionConflict`, carrying the one in force, so that two administrators changing it at once do not each overwrite the other's decision unseen.";
319
+ };
320
+ readonly reason: {
321
+ readonly type: "string";
322
+ readonly minLength: 1;
323
+ readonly maxLength: 512;
324
+ readonly description: "Why, for the room's audit trail. REQUIRED: a shortened retention is what lets a later prune remove records that were not eligible a moment before, so the change carries its own account of intent. Plain text; it MUST NOT name a member or quote a record.";
325
+ };
326
+ readonly ext: {
327
+ readonly $ref: "#/$defs/Ext";
328
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
329
+ };
330
+ };
331
+ readonly $defs: {
332
+ readonly Response: {
333
+ readonly $anchor: "response";
334
+ readonly title: "Rooms Records Retention Set — response payload";
335
+ readonly description: "Success response to rooms/records/retention/set. Type https://trusttasks.org/spec/rooms/records/retention/set/0.1#response.";
336
+ readonly type: "object";
337
+ readonly additionalProperties: false;
338
+ readonly required: readonly ["roomId", "recordRetention"];
339
+ readonly properties: {
340
+ readonly roomId: {
341
+ readonly type: "string";
342
+ };
343
+ readonly recordRetention: {
344
+ readonly $ref: "#/$defs/RecordRetention";
345
+ readonly description: "The record retention now in force, as the host recorded it — what `rooms/info` will serve every member.";
346
+ };
347
+ readonly previous: {
348
+ readonly $ref: "#/$defs/RecordRetention";
349
+ readonly description: "The record retention it replaced, `{}` when there was none. Returned so that a surface can say what changed, and in which direction.";
350
+ };
351
+ readonly ext: {
352
+ readonly $ref: "#/$defs/Ext";
353
+ };
354
+ };
355
+ };
356
+ readonly Ext: {
357
+ readonly title: "Ext";
358
+ 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.";
359
+ readonly type: "object";
360
+ readonly minProperties: 1;
361
+ readonly additionalProperties: true;
362
+ readonly propertyNames: {
363
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
364
+ };
365
+ };
366
+ readonly RecordRetention: {
367
+ readonly title: "RecordRetention";
368
+ readonly type: "object";
369
+ readonly additionalProperties: false;
370
+ readonly description: "How long a room keeps its records, by age: the room's **record retention**. Records older than it states become **eligible** to be removed by `rooms/records/prune`; nothing is removed until a holder of `admin` asks for a prune, and nothing a prune removes can be brought back.\n\n**Not `retentionPolicy`, and not `retentionDays`.** Both names are taken in this family and mean other things. `retentionPolicy` (`RetentionPolicy`) is whether a room's *key chain* lets a member read epochs from before they joined, fixed at creation because key material either exists for an epoch or it does not. `retentionDays` (`rooms/create`) is how long a host keeps a whole room after it lapses unrenewed. This is a third question — how long the room keeps its *records* while it is live — and unlike the first it is a decision a room revisits, so it is changeable (`rooms/records/retention/set`). A name sharing either's would invite a reader to apply one's rules to the other.\n\n**Age is the host's to measure, so age is `updatedAt`.** On the sealed tiers a host can read nothing of a record but its key, version, status, pinning and when it last changed, so a policy the host applies can only be stated in those terms. That is also why it cannot use a record's own `validUntil`, which is sealed: expiry is a reader's rule, retention a host's. A curation is a change, so it restarts a record's age — a retraction starts a tombstone's.\n\n**Absent, or `{}`, means no record is ever eligible by age**, and that is the reading a host MUST apply whenever it cannot read a policy: removing data under a rule nobody stated is the failure this member exists to prevent. Every member can read the policy in force (`rooms/info`), so a record is never removed under a rule its readers could not have known.";
371
+ readonly properties: {
372
+ readonly tombstoneDays: {
373
+ readonly type: "integer";
374
+ readonly minimum: 1;
375
+ readonly maximum: 36500;
376
+ readonly description: "Days a retracted record's tombstone is kept after its retraction. A tombstone whose `updatedAt` is more than this long ago is eligible. Tombstones exist so that a member syncing incrementally learns of a retraction (`rooms/records/curate`); this is how long a member may stay away and still learn of one that way rather than by rebuilding their copy of the room. Absent means tombstones are never eligible.";
377
+ };
378
+ readonly recordDays: {
379
+ readonly type: "integer";
380
+ readonly minimum: 1;
381
+ readonly maximum: 36500;
382
+ readonly description: "Days a record is kept after it last changed, whatever its standing. A record — `active`, `deprecated` or `retracted` — whose `updatedAt` is more than this long ago is eligible, **unless it is pinned**: pinning says what matters in the room, and a room that wants a pinned record gone unpins it first. Absent means records are never eligible by age.";
383
+ };
384
+ readonly ext: {
385
+ readonly $ref: "#/$defs/Ext";
386
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1. A host MUST NOT treat a member here as making more records eligible: a removal rule a member's reader cannot understand is one they were never told about.";
387
+ };
388
+ };
389
+ };
390
+ readonly AuthorityPresentation: {
391
+ readonly title: "AuthorityPresentation";
392
+ readonly type: "object";
393
+ readonly additionalProperties: false;
394
+ readonly required: readonly ["membership", "authority"];
395
+ readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.\n\n**Every credential is its issuer's attestation, and only its issuer's.** For the membership credential and for every link of `authority`, a host MUST verify the credential's `proof` with a key that the credential's own `issuer` lists for `assertionMethod` in its DID document, and MUST refuse a credential whose proof names a verification method that is not its issuer's. A proof that verifies under some other party's key is that party's statement, not the issuer's, and confers nothing. The same binding holds for every other document a room signs, such as a `RevocationList`.\n\n**A chain that verifies may still be revoked.** A host that has accepted a `RevocationList` for the room (`rooms/revocations/put`) MUST, from the moment it accepted it, refuse every presentation in which the membership credential or any link of `authority` is revoked by that list, under every task and every version of every task it serves for the room. A chain from which any link is revoked is refused whole: a credential delegated from a revoked one confers nothing, however it was attenuated. The refusal is the same `permissionDenied` as any other failed presentation.";
396
+ readonly properties: {
397
+ readonly membership: {
398
+ readonly type: "string";
399
+ readonly description: "The presenter's membership credential for this room, or — on a `private` room — a zero-knowledge presentation of it. Serialized per the governing profile.";
400
+ };
401
+ readonly authority: {
402
+ readonly type: "array";
403
+ readonly minItems: 1;
404
+ readonly maxItems: 8;
405
+ readonly items: {
406
+ readonly type: "string";
407
+ };
408
+ readonly description: "The authority chain, LEAF FIRST: the first element is the credential being relied on and the last MUST be one issued by the room itself. Every link the presenter relies on is present, because the host will not fetch one. Capped at 8: verification is linear in chain length and runs on every operation, so an unbounded chain is a denial-of-service surface against the host. The known uses need 2 to 3 — a person attenuating to an agent, and that agent to a sub-agent.";
409
+ };
410
+ readonly subjectBinding: {
411
+ readonly type: "string";
412
+ readonly description: "REQUIRED on a `private` room, where the subject identifier is withheld: a proof that the membership credential and the authority chain's leaf describe the SAME subject. Without it two parties pool credentials — one contributes membership, the other authority — and the combination verifies as a single party holding both. A host MUST refuse a private-room presentation that omits this.";
413
+ };
414
+ };
415
+ };
416
+ };
417
+ };
418
+ };
419
+ /**
420
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
421
+ * tracks the *issuer* party's requirement because a response swaps the
422
+ * parties (§7.3 item 5).
423
+ */
424
+ export declare const RESPONSE_SPEC: {
425
+ readonly typeUri: "https://trusttasks.org/spec/rooms/records/retention/set/0.1#response";
426
+ readonly isBearer: false;
427
+ readonly isProofRequired: true;
428
+ readonly isRecipientRequired: true;
429
+ readonly isIssuedAtRequired: true;
430
+ readonly payloadSchema: {
431
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
432
+ readonly $ref: "#/$defs/Response";
433
+ readonly $defs: {
434
+ readonly Response: {
435
+ readonly $anchor: "response";
436
+ readonly title: "Rooms Records Retention Set — response payload";
437
+ readonly description: "Success response to rooms/records/retention/set. Type https://trusttasks.org/spec/rooms/records/retention/set/0.1#response.";
438
+ readonly type: "object";
439
+ readonly additionalProperties: false;
440
+ readonly required: readonly ["roomId", "recordRetention"];
441
+ readonly properties: {
442
+ readonly roomId: {
443
+ readonly type: "string";
444
+ };
445
+ readonly recordRetention: {
446
+ readonly $ref: "#/$defs/RecordRetention";
447
+ readonly description: "The record retention now in force, as the host recorded it — what `rooms/info` will serve every member.";
448
+ };
449
+ readonly previous: {
450
+ readonly $ref: "#/$defs/RecordRetention";
451
+ readonly description: "The record retention it replaced, `{}` when there was none. Returned so that a surface can say what changed, and in which direction.";
452
+ };
453
+ readonly ext: {
454
+ readonly $ref: "#/$defs/Ext";
455
+ };
456
+ };
457
+ };
458
+ readonly Ext: {
459
+ readonly title: "Ext";
460
+ 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.";
461
+ readonly type: "object";
462
+ readonly minProperties: 1;
463
+ readonly additionalProperties: true;
464
+ readonly propertyNames: {
465
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
466
+ };
467
+ };
468
+ readonly RecordRetention: {
469
+ readonly title: "RecordRetention";
470
+ readonly type: "object";
471
+ readonly additionalProperties: false;
472
+ readonly description: "How long a room keeps its records, by age: the room's **record retention**. Records older than it states become **eligible** to be removed by `rooms/records/prune`; nothing is removed until a holder of `admin` asks for a prune, and nothing a prune removes can be brought back.\n\n**Not `retentionPolicy`, and not `retentionDays`.** Both names are taken in this family and mean other things. `retentionPolicy` (`RetentionPolicy`) is whether a room's *key chain* lets a member read epochs from before they joined, fixed at creation because key material either exists for an epoch or it does not. `retentionDays` (`rooms/create`) is how long a host keeps a whole room after it lapses unrenewed. This is a third question — how long the room keeps its *records* while it is live — and unlike the first it is a decision a room revisits, so it is changeable (`rooms/records/retention/set`). A name sharing either's would invite a reader to apply one's rules to the other.\n\n**Age is the host's to measure, so age is `updatedAt`.** On the sealed tiers a host can read nothing of a record but its key, version, status, pinning and when it last changed, so a policy the host applies can only be stated in those terms. That is also why it cannot use a record's own `validUntil`, which is sealed: expiry is a reader's rule, retention a host's. A curation is a change, so it restarts a record's age — a retraction starts a tombstone's.\n\n**Absent, or `{}`, means no record is ever eligible by age**, and that is the reading a host MUST apply whenever it cannot read a policy: removing data under a rule nobody stated is the failure this member exists to prevent. Every member can read the policy in force (`rooms/info`), so a record is never removed under a rule its readers could not have known.";
473
+ readonly properties: {
474
+ readonly tombstoneDays: {
475
+ readonly type: "integer";
476
+ readonly minimum: 1;
477
+ readonly maximum: 36500;
478
+ readonly description: "Days a retracted record's tombstone is kept after its retraction. A tombstone whose `updatedAt` is more than this long ago is eligible. Tombstones exist so that a member syncing incrementally learns of a retraction (`rooms/records/curate`); this is how long a member may stay away and still learn of one that way rather than by rebuilding their copy of the room. Absent means tombstones are never eligible.";
479
+ };
480
+ readonly recordDays: {
481
+ readonly type: "integer";
482
+ readonly minimum: 1;
483
+ readonly maximum: 36500;
484
+ readonly description: "Days a record is kept after it last changed, whatever its standing. A record — `active`, `deprecated` or `retracted` — whose `updatedAt` is more than this long ago is eligible, **unless it is pinned**: pinning says what matters in the room, and a room that wants a pinned record gone unpins it first. Absent means records are never eligible by age.";
485
+ };
486
+ readonly ext: {
487
+ readonly $ref: "#/$defs/Ext";
488
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1. A host MUST NOT treat a member here as making more records eligible: a removal rule a member's reader cannot understand is one they were never told about.";
489
+ };
490
+ };
491
+ };
492
+ readonly AuthorityPresentation: {
493
+ readonly title: "AuthorityPresentation";
494
+ readonly type: "object";
495
+ readonly additionalProperties: false;
496
+ readonly required: readonly ["membership", "authority"];
497
+ readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.\n\n**Every credential is its issuer's attestation, and only its issuer's.** For the membership credential and for every link of `authority`, a host MUST verify the credential's `proof` with a key that the credential's own `issuer` lists for `assertionMethod` in its DID document, and MUST refuse a credential whose proof names a verification method that is not its issuer's. A proof that verifies under some other party's key is that party's statement, not the issuer's, and confers nothing. The same binding holds for every other document a room signs, such as a `RevocationList`.\n\n**A chain that verifies may still be revoked.** A host that has accepted a `RevocationList` for the room (`rooms/revocations/put`) MUST, from the moment it accepted it, refuse every presentation in which the membership credential or any link of `authority` is revoked by that list, under every task and every version of every task it serves for the room. A chain from which any link is revoked is refused whole: a credential delegated from a revoked one confers nothing, however it was attenuated. The refusal is the same `permissionDenied` as any other failed presentation.";
498
+ readonly properties: {
499
+ readonly membership: {
500
+ readonly type: "string";
501
+ readonly description: "The presenter's membership credential for this room, or — on a `private` room — a zero-knowledge presentation of it. Serialized per the governing profile.";
502
+ };
503
+ readonly authority: {
504
+ readonly type: "array";
505
+ readonly minItems: 1;
506
+ readonly maxItems: 8;
507
+ readonly items: {
508
+ readonly type: "string";
509
+ };
510
+ readonly description: "The authority chain, LEAF FIRST: the first element is the credential being relied on and the last MUST be one issued by the room itself. Every link the presenter relies on is present, because the host will not fetch one. Capped at 8: verification is linear in chain length and runs on every operation, so an unbounded chain is a denial-of-service surface against the host. The known uses need 2 to 3 — a person attenuating to an agent, and that agent to a sub-agent.";
511
+ };
512
+ readonly subjectBinding: {
513
+ readonly type: "string";
514
+ readonly description: "REQUIRED on a `private` room, where the subject identifier is withheld: a proof that the membership credential and the authority chain's leaf describe the SAME subject. Without it two parties pool credentials — one contributes membership, the other authority — and the combination verifies as a single party holding both. A host MUST refuse a private-room presentation that omits this.";
515
+ };
516
+ };
517
+ };
518
+ };
519
+ };
520
+ };
521
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/rooms/records/retention/set/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAGxG;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,YAAY,EAAE,qBAAqB,CAAC;IACpC;;OAEG;IACH,eAAe,EAAE,eAAe,CAAC;IACjC;;OAEG;IACH,iBAAiB,CAAC,EAAE,eAAe,CAAC;IACpC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,uCAAuC;IACtD,MA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