@openvtc/trust-tasks 0.26.14 → 0.26.16

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 (212) hide show
  1. package/CHANGELOG.md +183 -0
  2. package/dist/_shared/components.d.ts +392 -1
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/index.d.ts +20 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +20 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/rooms/_shared/0.1/personal-label.d.ts +16 -0
  9. package/dist/rooms/_shared/0.1/personal-label.d.ts.map +1 -0
  10. package/dist/rooms/_shared/0.1/personal-label.js +6 -0
  11. package/dist/rooms/_shared/0.1/personal-label.js.map +1 -0
  12. package/dist/rooms/_shared/0.1/room.d.ts +1 -1
  13. package/dist/rooms/_shared/0.1/room.d.ts.map +1 -1
  14. package/dist/rooms/blobs/get/0.1/payload.d.ts +4 -4
  15. package/dist/rooms/blobs/get/0.1/payload.js +2 -2
  16. package/dist/rooms/blobs/get/0.1/payload.js.map +1 -1
  17. package/dist/rooms/blobs/get/0.2/payload.d.ts +4 -4
  18. package/dist/rooms/blobs/get/0.2/payload.js +2 -2
  19. package/dist/rooms/blobs/get/0.2/payload.js.map +1 -1
  20. package/dist/rooms/blobs/upload/begin/0.1/payload.d.ts +4 -4
  21. package/dist/rooms/blobs/upload/begin/0.1/payload.js +2 -2
  22. package/dist/rooms/blobs/upload/begin/0.1/payload.js.map +1 -1
  23. package/dist/rooms/blobs/upload/begin/0.2/payload.d.ts +4 -4
  24. package/dist/rooms/blobs/upload/begin/0.2/payload.js +2 -2
  25. package/dist/rooms/blobs/upload/begin/0.2/payload.js.map +1 -1
  26. package/dist/rooms/epoch/chain/0.1/payload.d.ts +4 -4
  27. package/dist/rooms/epoch/chain/0.1/payload.js +2 -2
  28. package/dist/rooms/epoch/chain/0.1/payload.js.map +1 -1
  29. package/dist/rooms/epoch/commits/0.1/payload.d.ts +4 -4
  30. package/dist/rooms/epoch/commits/0.1/payload.js +2 -2
  31. package/dist/rooms/epoch/commits/0.1/payload.js.map +1 -1
  32. package/dist/rooms/epoch/mint/0.1/payload.d.ts +4 -4
  33. package/dist/rooms/epoch/mint/0.1/payload.js +2 -2
  34. package/dist/rooms/epoch/mint/0.1/payload.js.map +1 -1
  35. package/dist/rooms/epoch/prune/0.1/payload.d.ts +4 -4
  36. package/dist/rooms/epoch/prune/0.1/payload.js +2 -2
  37. package/dist/rooms/epoch/prune/0.1/payload.js.map +1 -1
  38. package/dist/rooms/info/0.1/payload.d.ts +4 -4
  39. package/dist/rooms/info/0.1/payload.js +2 -2
  40. package/dist/rooms/info/0.1/payload.js.map +1 -1
  41. package/dist/rooms/keys/act/0.4/payload.d.ts +546 -0
  42. package/dist/rooms/keys/act/0.4/payload.d.ts.map +1 -0
  43. package/dist/rooms/keys/act/0.4/payload.js +305 -0
  44. package/dist/rooms/keys/act/0.4/payload.js.map +1 -0
  45. package/dist/rooms/keys/label/0.1/payload.d.ts +757 -0
  46. package/dist/rooms/keys/label/0.1/payload.d.ts.map +1 -0
  47. package/dist/rooms/keys/label/0.1/payload.js +388 -0
  48. package/dist/rooms/keys/label/0.1/payload.js.map +1 -0
  49. package/dist/rooms/keys/list/0.2/payload.d.ts +667 -0
  50. package/dist/rooms/keys/list/0.2/payload.d.ts.map +1 -0
  51. package/dist/rooms/keys/list/0.2/payload.js +350 -0
  52. package/dist/rooms/keys/list/0.2/payload.js.map +1 -0
  53. package/dist/rooms/keys/present/0.2/payload.d.ts +4 -4
  54. package/dist/rooms/keys/present/0.2/payload.js +2 -2
  55. package/dist/rooms/keys/present/0.2/payload.js.map +1 -1
  56. package/dist/rooms/keys/profile/read/0.1/payload.d.ts +1652 -0
  57. package/dist/rooms/keys/profile/read/0.1/payload.d.ts.map +1 -0
  58. package/dist/rooms/keys/profile/read/0.1/payload.js +649 -0
  59. package/dist/rooms/keys/profile/read/0.1/payload.js.map +1 -0
  60. package/dist/rooms/keys/profile/write/0.1/payload.d.ts +583 -0
  61. package/dist/rooms/keys/profile/write/0.1/payload.d.ts.map +1 -0
  62. package/dist/rooms/keys/profile/write/0.1/payload.js +319 -0
  63. package/dist/rooms/keys/profile/write/0.1/payload.js.map +1 -0
  64. package/dist/rooms/owner/claim/0.1/payload.d.ts +4 -4
  65. package/dist/rooms/owner/claim/0.1/payload.js +2 -2
  66. package/dist/rooms/owner/claim/0.1/payload.js.map +1 -1
  67. package/dist/rooms/owner/group/remove/0.2/payload.d.ts +600 -0
  68. package/dist/rooms/owner/group/remove/0.2/payload.d.ts.map +1 -0
  69. package/dist/rooms/owner/group/remove/0.2/payload.js +310 -0
  70. package/dist/rooms/owner/group/remove/0.2/payload.js.map +1 -0
  71. package/dist/rooms/owner/revoke/0.1/payload.d.ts +1481 -0
  72. package/dist/rooms/owner/revoke/0.1/payload.d.ts.map +1 -0
  73. package/dist/rooms/owner/revoke/0.1/payload.js +811 -0
  74. package/dist/rooms/owner/revoke/0.1/payload.js.map +1 -0
  75. package/dist/rooms/owner/transfer/0.1/payload.d.ts +4 -4
  76. package/dist/rooms/owner/transfer/0.1/payload.js +2 -2
  77. package/dist/rooms/owner/transfer/0.1/payload.js.map +1 -1
  78. package/dist/rooms/records/curate/0.1/payload.d.ts +4 -4
  79. package/dist/rooms/records/curate/0.1/payload.js +2 -2
  80. package/dist/rooms/records/curate/0.1/payload.js.map +1 -1
  81. package/dist/rooms/records/get/0.1/payload.d.ts +4 -4
  82. package/dist/rooms/records/get/0.1/payload.js +2 -2
  83. package/dist/rooms/records/get/0.1/payload.js.map +1 -1
  84. package/dist/rooms/records/get/0.2/payload.d.ts +4 -4
  85. package/dist/rooms/records/get/0.2/payload.js +2 -2
  86. package/dist/rooms/records/get/0.2/payload.js.map +1 -1
  87. package/dist/rooms/records/list/0.1/payload.d.ts +4 -4
  88. package/dist/rooms/records/list/0.1/payload.js +2 -2
  89. package/dist/rooms/records/list/0.1/payload.js.map +1 -1
  90. package/dist/rooms/records/list/0.2/payload.d.ts +4 -4
  91. package/dist/rooms/records/list/0.2/payload.js +2 -2
  92. package/dist/rooms/records/list/0.2/payload.js.map +1 -1
  93. package/dist/rooms/records/put/0.1/payload.d.ts +4 -4
  94. package/dist/rooms/records/put/0.1/payload.js +2 -2
  95. package/dist/rooms/records/put/0.1/payload.js.map +1 -1
  96. package/dist/rooms/records/put/0.2/payload.d.ts +4 -4
  97. package/dist/rooms/records/put/0.2/payload.js +2 -2
  98. package/dist/rooms/records/put/0.2/payload.js.map +1 -1
  99. package/dist/rooms/revocations/get/0.1/payload.d.ts +905 -0
  100. package/dist/rooms/revocations/get/0.1/payload.d.ts.map +1 -0
  101. package/dist/rooms/revocations/get/0.1/payload.js +512 -0
  102. package/dist/rooms/revocations/get/0.1/payload.js.map +1 -0
  103. package/dist/rooms/revocations/put/0.1/payload.d.ts +1021 -0
  104. package/dist/rooms/revocations/put/0.1/payload.d.ts.map +1 -0
  105. package/dist/rooms/revocations/put/0.1/payload.js +583 -0
  106. package/dist/rooms/revocations/put/0.1/payload.js.map +1 -0
  107. package/dist/rooms/usage/0.1/payload.d.ts +4 -4
  108. package/dist/rooms/usage/0.1/payload.js +2 -2
  109. package/dist/rooms/usage/0.1/payload.js.map +1 -1
  110. package/dist/vtc/_shared/0.1/community-room.d.ts +1 -1
  111. package/dist/vtc/_shared/0.1/community-room.d.ts.map +1 -1
  112. package/dist/vtc/community/theme/show/0.1/payload.d.ts +238 -0
  113. package/dist/vtc/community/theme/show/0.1/payload.d.ts.map +1 -0
  114. package/dist/vtc/community/theme/show/0.1/payload.js +135 -0
  115. package/dist/vtc/community/theme/show/0.1/payload.js.map +1 -0
  116. package/dist/vtc/community/theme/update/0.1/payload.d.ts +286 -0
  117. package/dist/vtc/community/theme/update/0.1/payload.d.ts.map +1 -0
  118. package/dist/vtc/community/theme/update/0.1/payload.js +157 -0
  119. package/dist/vtc/community/theme/update/0.1/payload.js.map +1 -0
  120. package/dist/vtc/rooms/community/create/0.1/payload.d.ts +4 -4
  121. package/dist/vtc/rooms/community/create/0.1/payload.js +2 -2
  122. package/dist/vtc/rooms/community/create/0.1/payload.js.map +1 -1
  123. package/dist/vtc/rooms/community/create/0.2/payload.d.ts +989 -0
  124. package/dist/vtc/rooms/community/create/0.2/payload.d.ts.map +1 -0
  125. package/dist/vtc/rooms/community/create/0.2/payload.js +559 -0
  126. package/dist/vtc/rooms/community/create/0.2/payload.js.map +1 -0
  127. package/dist/vtc/rooms/community/create/0.3/payload.d.ts +1013 -0
  128. package/dist/vtc/rooms/community/create/0.3/payload.d.ts.map +1 -0
  129. package/dist/vtc/rooms/community/create/0.3/payload.js +577 -0
  130. package/dist/vtc/rooms/community/create/0.3/payload.js.map +1 -0
  131. package/dist/vtc/rooms/community/get/0.1/payload.d.ts +4 -4
  132. package/dist/vtc/rooms/community/get/0.1/payload.js +2 -2
  133. package/dist/vtc/rooms/community/get/0.1/payload.js.map +1 -1
  134. package/dist/vtc/rooms/community/get/0.2/payload.d.ts +887 -0
  135. package/dist/vtc/rooms/community/get/0.2/payload.d.ts.map +1 -0
  136. package/dist/vtc/rooms/community/get/0.2/payload.js +517 -0
  137. package/dist/vtc/rooms/community/get/0.2/payload.js.map +1 -0
  138. package/dist/vtc/rooms/community/list/0.1/payload.d.ts +4 -4
  139. package/dist/vtc/rooms/community/list/0.1/payload.js +2 -2
  140. package/dist/vtc/rooms/community/list/0.1/payload.js.map +1 -1
  141. package/dist/vtc/rooms/community/list/0.2/payload.d.ts +960 -0
  142. package/dist/vtc/rooms/community/list/0.2/payload.d.ts.map +1 -0
  143. package/dist/vtc/rooms/community/list/0.2/payload.js +544 -0
  144. package/dist/vtc/rooms/community/list/0.2/payload.js.map +1 -0
  145. package/dist/vtc/rooms/community/members/remove/0.2/payload.d.ts +681 -0
  146. package/dist/vtc/rooms/community/members/remove/0.2/payload.d.ts.map +1 -0
  147. package/dist/vtc/rooms/community/members/remove/0.2/payload.js +393 -0
  148. package/dist/vtc/rooms/community/members/remove/0.2/payload.js.map +1 -0
  149. package/dist/vtc/rooms/community/update/0.1/payload.d.ts +1013 -0
  150. package/dist/vtc/rooms/community/update/0.1/payload.d.ts.map +1 -0
  151. package/dist/vtc/rooms/community/update/0.1/payload.js +573 -0
  152. package/dist/vtc/rooms/community/update/0.1/payload.js.map +1 -0
  153. package/dist/vtc/rooms/community/update/0.2/payload.d.ts +1037 -0
  154. package/dist/vtc/rooms/community/update/0.2/payload.d.ts.map +1 -0
  155. package/dist/vtc/rooms/community/update/0.2/payload.js +593 -0
  156. package/dist/vtc/rooms/community/update/0.2/payload.js.map +1 -0
  157. package/dist/vtc/rooms/offers/list/0.1/payload.d.ts +4 -4
  158. package/dist/vtc/rooms/offers/list/0.1/payload.js +2 -2
  159. package/dist/vtc/rooms/offers/list/0.1/payload.js.map +1 -1
  160. package/dist/vtc/rooms/offers/list/0.2/payload.d.ts +736 -0
  161. package/dist/vtc/rooms/offers/list/0.2/payload.d.ts.map +1 -0
  162. package/dist/vtc/rooms/offers/list/0.2/payload.js +430 -0
  163. package/dist/vtc/rooms/offers/list/0.2/payload.js.map +1 -0
  164. package/package.json +1 -1
  165. package/src/_shared/components.ts +426 -1
  166. package/src/index.ts +20 -0
  167. package/src/rooms/_shared/0.1/personal-label.ts +17 -0
  168. package/src/rooms/_shared/0.1/room.ts +1 -1
  169. package/src/rooms/blobs/get/0.1/payload.ts +2 -2
  170. package/src/rooms/blobs/get/0.2/payload.ts +2 -2
  171. package/src/rooms/blobs/upload/begin/0.1/payload.ts +2 -2
  172. package/src/rooms/blobs/upload/begin/0.2/payload.ts +2 -2
  173. package/src/rooms/epoch/chain/0.1/payload.ts +2 -2
  174. package/src/rooms/epoch/commits/0.1/payload.ts +2 -2
  175. package/src/rooms/epoch/mint/0.1/payload.ts +2 -2
  176. package/src/rooms/epoch/prune/0.1/payload.ts +2 -2
  177. package/src/rooms/info/0.1/payload.ts +2 -2
  178. package/src/rooms/keys/act/0.4/payload.ts +380 -0
  179. package/src/rooms/keys/label/0.1/payload.ts +474 -0
  180. package/src/rooms/keys/list/0.2/payload.ts +412 -0
  181. package/src/rooms/keys/present/0.2/payload.ts +2 -2
  182. package/src/rooms/keys/profile/read/0.1/payload.ts +1617 -0
  183. package/src/rooms/keys/profile/write/0.1/payload.ts +388 -0
  184. package/src/rooms/owner/claim/0.1/payload.ts +2 -2
  185. package/src/rooms/owner/group/remove/0.2/payload.ts +415 -0
  186. package/src/rooms/owner/revoke/0.1/payload.ts +954 -0
  187. package/src/rooms/owner/transfer/0.1/payload.ts +2 -2
  188. package/src/rooms/records/curate/0.1/payload.ts +2 -2
  189. package/src/rooms/records/get/0.1/payload.ts +2 -2
  190. package/src/rooms/records/get/0.2/payload.ts +2 -2
  191. package/src/rooms/records/list/0.1/payload.ts +2 -2
  192. package/src/rooms/records/list/0.2/payload.ts +2 -2
  193. package/src/rooms/records/put/0.1/payload.ts +2 -2
  194. package/src/rooms/records/put/0.2/payload.ts +2 -2
  195. package/src/rooms/revocations/get/0.1/payload.ts +562 -0
  196. package/src/rooms/revocations/put/0.1/payload.ts +637 -0
  197. package/src/rooms/usage/0.1/payload.ts +2 -2
  198. package/src/vtc/_shared/0.1/community-room.ts +1 -1
  199. package/src/vtc/community/theme/show/0.1/payload.ts +170 -0
  200. package/src/vtc/community/theme/update/0.1/payload.ts +204 -0
  201. package/src/vtc/rooms/community/create/0.1/payload.ts +2 -2
  202. package/src/vtc/rooms/community/create/0.2/payload.ts +613 -0
  203. package/src/vtc/rooms/community/create/0.3/payload.ts +635 -0
  204. package/src/vtc/rooms/community/get/0.1/payload.ts +2 -2
  205. package/src/vtc/rooms/community/get/0.2/payload.ts +549 -0
  206. package/src/vtc/rooms/community/list/0.1/payload.ts +2 -2
  207. package/src/vtc/rooms/community/list/0.2/payload.ts +591 -0
  208. package/src/vtc/rooms/community/members/remove/0.2/payload.ts +439 -0
  209. package/src/vtc/rooms/community/update/0.1/payload.ts +629 -0
  210. package/src/vtc/rooms/community/update/0.2/payload.ts +653 -0
  211. package/src/vtc/rooms/offers/list/0.1/payload.ts +2 -2
  212. package/src/vtc/rooms/offers/list/0.2/payload.ts +473 -0
@@ -0,0 +1,681 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/rooms/community/members/remove/0.2/payload.schema.json
4
+ */
5
+ import type { DigestMultibase, Ext, MemberAction, MemberActions, MemberState, Reason, RevocationHead, RoomMember } from "../../../../../../_shared/components.js";
6
+ export interface VTCRoomsCommunityMembersRemovePayload {
7
+ /**
8
+ * The room's identifier: its DID.
9
+ */
10
+ roomId: string;
11
+ member: string;
12
+ reason: Reason;
13
+ ext?: Ext;
14
+ }
15
+ /**
16
+ * Success response to vtc/rooms/community/members/remove. Type https://trusttasks.org/spec/vtc/rooms/community/members/remove/0.2#response. The member as recorded, in state `removed`; on `open` and `attributed` rooms the revocation list in force at the room's host, from which the member's credentials are refused; and on a sealed tier the epoch the room advanced to.
17
+ */
18
+ export interface VTCRoomsCommunityMembersRemoveResponsePayload {
19
+ member: RoomMember;
20
+ /**
21
+ * On an `open` or `attributed` room: the room's revocation list carrying the withdrawal, as the room's host accepted it. From then on the host refuses every credential the room issued the member before `revokedAt`. Absent on a `private` room, where a member cannot be withdrawn one at a time and their credentials are honoured until `member.validUntil`.
22
+ */
23
+ revocation?: RevocationHead;
24
+ /**
25
+ * Present with `revocation`: the withdrawal's time.
26
+ */
27
+ revokedAt?: string;
28
+ /**
29
+ * On a sealed tier, the room epoch after the removal.
30
+ */
31
+ epoch?: number;
32
+ ext?: Ext;
33
+ }
34
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
35
+ export type { DigestMultibase, Ext, MemberAction, MemberActions, MemberState, Reason, RevocationHead, RoomMember };
36
+ /** Trust Task type URI. */
37
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/rooms/community/members/remove/0.2";
38
+ /** Stable alias for this specification's request payload shape. */
39
+ export type Payload = VTCRoomsCommunityMembersRemovePayload;
40
+ /** Trust Task response type URI (request type URI + "#response"). */
41
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/rooms/community/members/remove/0.2#response";
42
+ /** Stable alias for this specification's success-response payload shape. */
43
+ export type Response = VTCRoomsCommunityMembersRemoveResponsePayload;
44
+ /**
45
+ * This specification's payload schema, as a value.
46
+ *
47
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
48
+ * rather than only as a `.json` file because TypeScript types are erased
49
+ * at runtime: without a schema a consumer has nothing to validate, and
50
+ * every REQUIRED payload member is optional in practice. Cross-file
51
+ * `$ref`s are already inlined, so it needs no resolver.
52
+ */
53
+ export declare const PAYLOAD_SCHEMA: {
54
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
55
+ readonly $id: "https://trusttasks.org/spec/vtc/rooms/community/members/remove/0.2";
56
+ readonly title: "VTC Rooms Community Members Remove — payload";
57
+ readonly type: "object";
58
+ readonly additionalProperties: false;
59
+ readonly required: readonly ["roomId", "member", "reason"];
60
+ readonly properties: {
61
+ readonly roomId: {
62
+ readonly type: "string";
63
+ readonly minLength: 1;
64
+ readonly maxLength: 512;
65
+ readonly description: "The room's identifier: its DID.";
66
+ };
67
+ readonly member: {
68
+ readonly type: "string";
69
+ readonly pattern: "^did:";
70
+ readonly maxLength: 2048;
71
+ };
72
+ readonly reason: {
73
+ readonly $ref: "#/$defs/Reason";
74
+ };
75
+ readonly ext: {
76
+ readonly $ref: "#/$defs/Ext";
77
+ };
78
+ };
79
+ readonly $defs: {
80
+ readonly Response: {
81
+ readonly $anchor: "response";
82
+ readonly title: "VTC Rooms Community Members Remove — response payload";
83
+ readonly description: "Success response to vtc/rooms/community/members/remove. Type https://trusttasks.org/spec/vtc/rooms/community/members/remove/0.2#response. The member as recorded, in state `removed`; on `open` and `attributed` rooms the revocation list in force at the room's host, from which the member's credentials are refused; and on a sealed tier the epoch the room advanced to.";
84
+ readonly type: "object";
85
+ readonly additionalProperties: false;
86
+ readonly required: readonly ["member"];
87
+ readonly properties: {
88
+ readonly member: {
89
+ readonly $ref: "#/$defs/RoomMember";
90
+ };
91
+ readonly revocation: {
92
+ readonly $ref: "#/$defs/RevocationHead";
93
+ readonly description: "On an `open` or `attributed` room: the room's revocation list carrying the withdrawal, as the room's host accepted it. From then on the host refuses every credential the room issued the member before `revokedAt`. Absent on a `private` room, where a member cannot be withdrawn one at a time and their credentials are honoured until `member.validUntil`.";
94
+ };
95
+ readonly revokedAt: {
96
+ readonly type: "string";
97
+ readonly format: "date-time";
98
+ readonly description: "Present with `revocation`: the withdrawal's time.";
99
+ };
100
+ readonly epoch: {
101
+ readonly type: "integer";
102
+ readonly minimum: 2;
103
+ readonly description: "On a sealed tier, the room epoch after the removal.";
104
+ };
105
+ readonly ext: {
106
+ readonly $ref: "#/$defs/Ext";
107
+ };
108
+ };
109
+ };
110
+ readonly Ext: {
111
+ readonly title: "Ext";
112
+ 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.";
113
+ readonly type: "object";
114
+ readonly minProperties: 1;
115
+ readonly additionalProperties: true;
116
+ readonly propertyNames: {
117
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
118
+ };
119
+ };
120
+ readonly RevocationHead: {
121
+ readonly title: "RevocationHead";
122
+ readonly type: "object";
123
+ readonly additionalProperties: false;
124
+ readonly required: readonly ["sequence", "digest"];
125
+ readonly description: "Which `RevocationList` a party holds, without its entries: comparable between the room's key holder and a host, and between two hosts, without disclosing whom the room withdrew.";
126
+ readonly properties: {
127
+ readonly sequence: {
128
+ readonly type: "integer";
129
+ readonly minimum: 1;
130
+ readonly description: "The list's `sequence`.";
131
+ };
132
+ readonly digest: {
133
+ readonly $ref: "#/$defs/DigestMultibase";
134
+ readonly description: "SHA-256 multihash of the list's RFC 8785 (JCS) canonicalization, `proof` included. Two parties holding one sequence with different digests have been given two lists the room signed at one sequence.";
135
+ };
136
+ };
137
+ };
138
+ readonly DigestMultibase: {
139
+ readonly title: "DigestMultibase";
140
+ readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
141
+ readonly type: "string";
142
+ readonly minLength: 16;
143
+ readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
144
+ readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
145
+ };
146
+ readonly RoomMember: {
147
+ readonly title: "RoomMember";
148
+ readonly type: "object";
149
+ readonly additionalProperties: false;
150
+ readonly required: readonly ["member", "actions", "validUntil", "state", "offeredAt"];
151
+ readonly description: "One party the community admitted to a room it owns, or offered admission to.";
152
+ readonly properties: {
153
+ readonly member: {
154
+ readonly type: "string";
155
+ readonly pattern: "^did:";
156
+ readonly maxLength: 2048;
157
+ };
158
+ readonly actions: {
159
+ readonly $ref: "#/$defs/MemberActions";
160
+ };
161
+ readonly validUntil: {
162
+ readonly type: "string";
163
+ readonly format: "date-time";
164
+ readonly description: "When the member's authority credential expires.";
165
+ };
166
+ readonly state: {
167
+ readonly $ref: "#/$defs/MemberState";
168
+ };
169
+ readonly offeredAt: {
170
+ readonly type: "string";
171
+ readonly format: "date-time";
172
+ };
173
+ readonly admittedAt: {
174
+ readonly type: "string";
175
+ readonly format: "date-time";
176
+ };
177
+ readonly removedAt: {
178
+ readonly type: "string";
179
+ readonly format: "date-time";
180
+ };
181
+ };
182
+ };
183
+ readonly MemberState: {
184
+ readonly title: "MemberState";
185
+ readonly type: "string";
186
+ readonly enum: readonly ["offered", "admitted", "removed"];
187
+ readonly description: "Where an admission stands. `offered`: credentials issued and waiting for the member to collect and accept them. `admitted`: accepted — on a sealed tier, the member is in the room's group. `removed`: an administrator removed them; on a sealed tier the room has advanced past them.";
188
+ };
189
+ readonly MemberActions: {
190
+ readonly title: "MemberActions";
191
+ readonly type: "array";
192
+ readonly minItems: 1;
193
+ readonly maxItems: 3;
194
+ readonly uniqueItems: true;
195
+ readonly items: {
196
+ readonly $ref: "#/$defs/MemberAction";
197
+ };
198
+ readonly description: "The actions granted, at least one. An empty list confers nothing rather than everything, and a schema that allowed it would make the more dangerous reading available to a careless consumer.";
199
+ };
200
+ readonly MemberAction: {
201
+ readonly title: "MemberAction";
202
+ readonly type: "string";
203
+ readonly enum: readonly ["read", "write", "curate"];
204
+ readonly description: "What a member of a community-owned room may do there. `admin` is not among them: minting epochs, admitting and removing members are the community's, as the room's owner, and are exercised through the vtc/rooms/community/* tasks rather than by any member's credential. `curate` is not implied by `write`.";
205
+ };
206
+ readonly Reason: {
207
+ readonly title: "Reason";
208
+ readonly type: "string";
209
+ readonly minLength: 1;
210
+ readonly maxLength: 500;
211
+ readonly description: "Why the administrator is making this change. Recorded with it in the audit trail. Attributed to its author on every surface and untrusted: it MUST NOT carry personal data or a credential, and a reader MUST NOT treat it as instructions.";
212
+ };
213
+ };
214
+ };
215
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
216
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
217
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
218
+ readonly $ref: "#/$defs/Response";
219
+ readonly $defs: {
220
+ readonly Response: {
221
+ readonly $anchor: "response";
222
+ readonly title: "VTC Rooms Community Members Remove — response payload";
223
+ readonly description: "Success response to vtc/rooms/community/members/remove. Type https://trusttasks.org/spec/vtc/rooms/community/members/remove/0.2#response. The member as recorded, in state `removed`; on `open` and `attributed` rooms the revocation list in force at the room's host, from which the member's credentials are refused; and on a sealed tier the epoch the room advanced to.";
224
+ readonly type: "object";
225
+ readonly additionalProperties: false;
226
+ readonly required: readonly ["member"];
227
+ readonly properties: {
228
+ readonly member: {
229
+ readonly $ref: "#/$defs/RoomMember";
230
+ };
231
+ readonly revocation: {
232
+ readonly $ref: "#/$defs/RevocationHead";
233
+ readonly description: "On an `open` or `attributed` room: the room's revocation list carrying the withdrawal, as the room's host accepted it. From then on the host refuses every credential the room issued the member before `revokedAt`. Absent on a `private` room, where a member cannot be withdrawn one at a time and their credentials are honoured until `member.validUntil`.";
234
+ };
235
+ readonly revokedAt: {
236
+ readonly type: "string";
237
+ readonly format: "date-time";
238
+ readonly description: "Present with `revocation`: the withdrawal's time.";
239
+ };
240
+ readonly epoch: {
241
+ readonly type: "integer";
242
+ readonly minimum: 2;
243
+ readonly description: "On a sealed tier, the room epoch after the removal.";
244
+ };
245
+ readonly ext: {
246
+ readonly $ref: "#/$defs/Ext";
247
+ };
248
+ };
249
+ };
250
+ readonly Ext: {
251
+ readonly title: "Ext";
252
+ 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.";
253
+ readonly type: "object";
254
+ readonly minProperties: 1;
255
+ readonly additionalProperties: true;
256
+ readonly propertyNames: {
257
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
258
+ };
259
+ };
260
+ readonly RevocationHead: {
261
+ readonly title: "RevocationHead";
262
+ readonly type: "object";
263
+ readonly additionalProperties: false;
264
+ readonly required: readonly ["sequence", "digest"];
265
+ readonly description: "Which `RevocationList` a party holds, without its entries: comparable between the room's key holder and a host, and between two hosts, without disclosing whom the room withdrew.";
266
+ readonly properties: {
267
+ readonly sequence: {
268
+ readonly type: "integer";
269
+ readonly minimum: 1;
270
+ readonly description: "The list's `sequence`.";
271
+ };
272
+ readonly digest: {
273
+ readonly $ref: "#/$defs/DigestMultibase";
274
+ readonly description: "SHA-256 multihash of the list's RFC 8785 (JCS) canonicalization, `proof` included. Two parties holding one sequence with different digests have been given two lists the room signed at one sequence.";
275
+ };
276
+ };
277
+ };
278
+ readonly DigestMultibase: {
279
+ readonly title: "DigestMultibase";
280
+ readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
281
+ readonly type: "string";
282
+ readonly minLength: 16;
283
+ readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
284
+ readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
285
+ };
286
+ readonly RoomMember: {
287
+ readonly title: "RoomMember";
288
+ readonly type: "object";
289
+ readonly additionalProperties: false;
290
+ readonly required: readonly ["member", "actions", "validUntil", "state", "offeredAt"];
291
+ readonly description: "One party the community admitted to a room it owns, or offered admission to.";
292
+ readonly properties: {
293
+ readonly member: {
294
+ readonly type: "string";
295
+ readonly pattern: "^did:";
296
+ readonly maxLength: 2048;
297
+ };
298
+ readonly actions: {
299
+ readonly $ref: "#/$defs/MemberActions";
300
+ };
301
+ readonly validUntil: {
302
+ readonly type: "string";
303
+ readonly format: "date-time";
304
+ readonly description: "When the member's authority credential expires.";
305
+ };
306
+ readonly state: {
307
+ readonly $ref: "#/$defs/MemberState";
308
+ };
309
+ readonly offeredAt: {
310
+ readonly type: "string";
311
+ readonly format: "date-time";
312
+ };
313
+ readonly admittedAt: {
314
+ readonly type: "string";
315
+ readonly format: "date-time";
316
+ };
317
+ readonly removedAt: {
318
+ readonly type: "string";
319
+ readonly format: "date-time";
320
+ };
321
+ };
322
+ };
323
+ readonly MemberState: {
324
+ readonly title: "MemberState";
325
+ readonly type: "string";
326
+ readonly enum: readonly ["offered", "admitted", "removed"];
327
+ readonly description: "Where an admission stands. `offered`: credentials issued and waiting for the member to collect and accept them. `admitted`: accepted — on a sealed tier, the member is in the room's group. `removed`: an administrator removed them; on a sealed tier the room has advanced past them.";
328
+ };
329
+ readonly MemberActions: {
330
+ readonly title: "MemberActions";
331
+ readonly type: "array";
332
+ readonly minItems: 1;
333
+ readonly maxItems: 3;
334
+ readonly uniqueItems: true;
335
+ readonly items: {
336
+ readonly $ref: "#/$defs/MemberAction";
337
+ };
338
+ readonly description: "The actions granted, at least one. An empty list confers nothing rather than everything, and a schema that allowed it would make the more dangerous reading available to a careless consumer.";
339
+ };
340
+ readonly MemberAction: {
341
+ readonly title: "MemberAction";
342
+ readonly type: "string";
343
+ readonly enum: readonly ["read", "write", "curate"];
344
+ readonly description: "What a member of a community-owned room may do there. `admin` is not among them: minting epochs, admitting and removing members are the community's, as the room's owner, and are exercised through the vtc/rooms/community/* tasks rather than by any member's credential. `curate` is not implied by `write`.";
345
+ };
346
+ readonly Reason: {
347
+ readonly title: "Reason";
348
+ readonly type: "string";
349
+ readonly minLength: 1;
350
+ readonly maxLength: 500;
351
+ readonly description: "Why the administrator is making this change. Recorded with it in the audit trail. Attributed to its author on every surface and untrusted: it MUST NOT carry personal data or a credential, and a reader MUST NOT treat it as instructions.";
352
+ };
353
+ };
354
+ };
355
+ /**
356
+ * SPEC.md §7.2 policy for the request variant, from this specification's
357
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
358
+ * per-specification and cannot be derived from the document alone, and
359
+ * item 2 needs the schema this carries.
360
+ */
361
+ export declare const SPEC: {
362
+ readonly typeUri: "https://trusttasks.org/spec/vtc/rooms/community/members/remove/0.2";
363
+ readonly isBearer: false;
364
+ readonly isProofRequired: true;
365
+ readonly isRecipientRequired: true;
366
+ readonly isIssuedAtRequired: true;
367
+ readonly payloadSchema: {
368
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
369
+ readonly $id: "https://trusttasks.org/spec/vtc/rooms/community/members/remove/0.2";
370
+ readonly title: "VTC Rooms Community Members Remove — payload";
371
+ readonly type: "object";
372
+ readonly additionalProperties: false;
373
+ readonly required: readonly ["roomId", "member", "reason"];
374
+ readonly properties: {
375
+ readonly roomId: {
376
+ readonly type: "string";
377
+ readonly minLength: 1;
378
+ readonly maxLength: 512;
379
+ readonly description: "The room's identifier: its DID.";
380
+ };
381
+ readonly member: {
382
+ readonly type: "string";
383
+ readonly pattern: "^did:";
384
+ readonly maxLength: 2048;
385
+ };
386
+ readonly reason: {
387
+ readonly $ref: "#/$defs/Reason";
388
+ };
389
+ readonly ext: {
390
+ readonly $ref: "#/$defs/Ext";
391
+ };
392
+ };
393
+ readonly $defs: {
394
+ readonly Response: {
395
+ readonly $anchor: "response";
396
+ readonly title: "VTC Rooms Community Members Remove — response payload";
397
+ readonly description: "Success response to vtc/rooms/community/members/remove. Type https://trusttasks.org/spec/vtc/rooms/community/members/remove/0.2#response. The member as recorded, in state `removed`; on `open` and `attributed` rooms the revocation list in force at the room's host, from which the member's credentials are refused; and on a sealed tier the epoch the room advanced to.";
398
+ readonly type: "object";
399
+ readonly additionalProperties: false;
400
+ readonly required: readonly ["member"];
401
+ readonly properties: {
402
+ readonly member: {
403
+ readonly $ref: "#/$defs/RoomMember";
404
+ };
405
+ readonly revocation: {
406
+ readonly $ref: "#/$defs/RevocationHead";
407
+ readonly description: "On an `open` or `attributed` room: the room's revocation list carrying the withdrawal, as the room's host accepted it. From then on the host refuses every credential the room issued the member before `revokedAt`. Absent on a `private` room, where a member cannot be withdrawn one at a time and their credentials are honoured until `member.validUntil`.";
408
+ };
409
+ readonly revokedAt: {
410
+ readonly type: "string";
411
+ readonly format: "date-time";
412
+ readonly description: "Present with `revocation`: the withdrawal's time.";
413
+ };
414
+ readonly epoch: {
415
+ readonly type: "integer";
416
+ readonly minimum: 2;
417
+ readonly description: "On a sealed tier, the room epoch after the removal.";
418
+ };
419
+ readonly ext: {
420
+ readonly $ref: "#/$defs/Ext";
421
+ };
422
+ };
423
+ };
424
+ readonly Ext: {
425
+ readonly title: "Ext";
426
+ 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.";
427
+ readonly type: "object";
428
+ readonly minProperties: 1;
429
+ readonly additionalProperties: true;
430
+ readonly propertyNames: {
431
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
432
+ };
433
+ };
434
+ readonly RevocationHead: {
435
+ readonly title: "RevocationHead";
436
+ readonly type: "object";
437
+ readonly additionalProperties: false;
438
+ readonly required: readonly ["sequence", "digest"];
439
+ readonly description: "Which `RevocationList` a party holds, without its entries: comparable between the room's key holder and a host, and between two hosts, without disclosing whom the room withdrew.";
440
+ readonly properties: {
441
+ readonly sequence: {
442
+ readonly type: "integer";
443
+ readonly minimum: 1;
444
+ readonly description: "The list's `sequence`.";
445
+ };
446
+ readonly digest: {
447
+ readonly $ref: "#/$defs/DigestMultibase";
448
+ readonly description: "SHA-256 multihash of the list's RFC 8785 (JCS) canonicalization, `proof` included. Two parties holding one sequence with different digests have been given two lists the room signed at one sequence.";
449
+ };
450
+ };
451
+ };
452
+ readonly DigestMultibase: {
453
+ readonly title: "DigestMultibase";
454
+ readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
455
+ readonly type: "string";
456
+ readonly minLength: 16;
457
+ readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
458
+ readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
459
+ };
460
+ readonly RoomMember: {
461
+ readonly title: "RoomMember";
462
+ readonly type: "object";
463
+ readonly additionalProperties: false;
464
+ readonly required: readonly ["member", "actions", "validUntil", "state", "offeredAt"];
465
+ readonly description: "One party the community admitted to a room it owns, or offered admission to.";
466
+ readonly properties: {
467
+ readonly member: {
468
+ readonly type: "string";
469
+ readonly pattern: "^did:";
470
+ readonly maxLength: 2048;
471
+ };
472
+ readonly actions: {
473
+ readonly $ref: "#/$defs/MemberActions";
474
+ };
475
+ readonly validUntil: {
476
+ readonly type: "string";
477
+ readonly format: "date-time";
478
+ readonly description: "When the member's authority credential expires.";
479
+ };
480
+ readonly state: {
481
+ readonly $ref: "#/$defs/MemberState";
482
+ };
483
+ readonly offeredAt: {
484
+ readonly type: "string";
485
+ readonly format: "date-time";
486
+ };
487
+ readonly admittedAt: {
488
+ readonly type: "string";
489
+ readonly format: "date-time";
490
+ };
491
+ readonly removedAt: {
492
+ readonly type: "string";
493
+ readonly format: "date-time";
494
+ };
495
+ };
496
+ };
497
+ readonly MemberState: {
498
+ readonly title: "MemberState";
499
+ readonly type: "string";
500
+ readonly enum: readonly ["offered", "admitted", "removed"];
501
+ readonly description: "Where an admission stands. `offered`: credentials issued and waiting for the member to collect and accept them. `admitted`: accepted — on a sealed tier, the member is in the room's group. `removed`: an administrator removed them; on a sealed tier the room has advanced past them.";
502
+ };
503
+ readonly MemberActions: {
504
+ readonly title: "MemberActions";
505
+ readonly type: "array";
506
+ readonly minItems: 1;
507
+ readonly maxItems: 3;
508
+ readonly uniqueItems: true;
509
+ readonly items: {
510
+ readonly $ref: "#/$defs/MemberAction";
511
+ };
512
+ readonly description: "The actions granted, at least one. An empty list confers nothing rather than everything, and a schema that allowed it would make the more dangerous reading available to a careless consumer.";
513
+ };
514
+ readonly MemberAction: {
515
+ readonly title: "MemberAction";
516
+ readonly type: "string";
517
+ readonly enum: readonly ["read", "write", "curate"];
518
+ readonly description: "What a member of a community-owned room may do there. `admin` is not among them: minting epochs, admitting and removing members are the community's, as the room's owner, and are exercised through the vtc/rooms/community/* tasks rather than by any member's credential. `curate` is not implied by `write`.";
519
+ };
520
+ readonly Reason: {
521
+ readonly title: "Reason";
522
+ readonly type: "string";
523
+ readonly minLength: 1;
524
+ readonly maxLength: 500;
525
+ readonly description: "Why the administrator is making this change. Recorded with it in the audit trail. Attributed to its author on every surface and untrusted: it MUST NOT carry personal data or a credential, and a reader MUST NOT treat it as instructions.";
526
+ };
527
+ };
528
+ };
529
+ };
530
+ /**
531
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
532
+ * tracks the *issuer* party's requirement because a response swaps the
533
+ * parties (§7.3 item 5).
534
+ */
535
+ export declare const RESPONSE_SPEC: {
536
+ readonly typeUri: "https://trusttasks.org/spec/vtc/rooms/community/members/remove/0.2#response";
537
+ readonly isBearer: false;
538
+ readonly isProofRequired: true;
539
+ readonly isRecipientRequired: true;
540
+ readonly isIssuedAtRequired: true;
541
+ readonly payloadSchema: {
542
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
543
+ readonly $ref: "#/$defs/Response";
544
+ readonly $defs: {
545
+ readonly Response: {
546
+ readonly $anchor: "response";
547
+ readonly title: "VTC Rooms Community Members Remove — response payload";
548
+ readonly description: "Success response to vtc/rooms/community/members/remove. Type https://trusttasks.org/spec/vtc/rooms/community/members/remove/0.2#response. The member as recorded, in state `removed`; on `open` and `attributed` rooms the revocation list in force at the room's host, from which the member's credentials are refused; and on a sealed tier the epoch the room advanced to.";
549
+ readonly type: "object";
550
+ readonly additionalProperties: false;
551
+ readonly required: readonly ["member"];
552
+ readonly properties: {
553
+ readonly member: {
554
+ readonly $ref: "#/$defs/RoomMember";
555
+ };
556
+ readonly revocation: {
557
+ readonly $ref: "#/$defs/RevocationHead";
558
+ readonly description: "On an `open` or `attributed` room: the room's revocation list carrying the withdrawal, as the room's host accepted it. From then on the host refuses every credential the room issued the member before `revokedAt`. Absent on a `private` room, where a member cannot be withdrawn one at a time and their credentials are honoured until `member.validUntil`.";
559
+ };
560
+ readonly revokedAt: {
561
+ readonly type: "string";
562
+ readonly format: "date-time";
563
+ readonly description: "Present with `revocation`: the withdrawal's time.";
564
+ };
565
+ readonly epoch: {
566
+ readonly type: "integer";
567
+ readonly minimum: 2;
568
+ readonly description: "On a sealed tier, the room epoch after the removal.";
569
+ };
570
+ readonly ext: {
571
+ readonly $ref: "#/$defs/Ext";
572
+ };
573
+ };
574
+ };
575
+ readonly Ext: {
576
+ readonly title: "Ext";
577
+ 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.";
578
+ readonly type: "object";
579
+ readonly minProperties: 1;
580
+ readonly additionalProperties: true;
581
+ readonly propertyNames: {
582
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
583
+ };
584
+ };
585
+ readonly RevocationHead: {
586
+ readonly title: "RevocationHead";
587
+ readonly type: "object";
588
+ readonly additionalProperties: false;
589
+ readonly required: readonly ["sequence", "digest"];
590
+ readonly description: "Which `RevocationList` a party holds, without its entries: comparable between the room's key holder and a host, and between two hosts, without disclosing whom the room withdrew.";
591
+ readonly properties: {
592
+ readonly sequence: {
593
+ readonly type: "integer";
594
+ readonly minimum: 1;
595
+ readonly description: "The list's `sequence`.";
596
+ };
597
+ readonly digest: {
598
+ readonly $ref: "#/$defs/DigestMultibase";
599
+ readonly description: "SHA-256 multihash of the list's RFC 8785 (JCS) canonicalization, `proof` included. Two parties holding one sequence with different digests have been given two lists the room signed at one sequence.";
600
+ };
601
+ };
602
+ };
603
+ readonly DigestMultibase: {
604
+ readonly title: "DigestMultibase";
605
+ readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
606
+ readonly type: "string";
607
+ readonly minLength: 16;
608
+ readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
609
+ readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
610
+ };
611
+ readonly RoomMember: {
612
+ readonly title: "RoomMember";
613
+ readonly type: "object";
614
+ readonly additionalProperties: false;
615
+ readonly required: readonly ["member", "actions", "validUntil", "state", "offeredAt"];
616
+ readonly description: "One party the community admitted to a room it owns, or offered admission to.";
617
+ readonly properties: {
618
+ readonly member: {
619
+ readonly type: "string";
620
+ readonly pattern: "^did:";
621
+ readonly maxLength: 2048;
622
+ };
623
+ readonly actions: {
624
+ readonly $ref: "#/$defs/MemberActions";
625
+ };
626
+ readonly validUntil: {
627
+ readonly type: "string";
628
+ readonly format: "date-time";
629
+ readonly description: "When the member's authority credential expires.";
630
+ };
631
+ readonly state: {
632
+ readonly $ref: "#/$defs/MemberState";
633
+ };
634
+ readonly offeredAt: {
635
+ readonly type: "string";
636
+ readonly format: "date-time";
637
+ };
638
+ readonly admittedAt: {
639
+ readonly type: "string";
640
+ readonly format: "date-time";
641
+ };
642
+ readonly removedAt: {
643
+ readonly type: "string";
644
+ readonly format: "date-time";
645
+ };
646
+ };
647
+ };
648
+ readonly MemberState: {
649
+ readonly title: "MemberState";
650
+ readonly type: "string";
651
+ readonly enum: readonly ["offered", "admitted", "removed"];
652
+ readonly description: "Where an admission stands. `offered`: credentials issued and waiting for the member to collect and accept them. `admitted`: accepted — on a sealed tier, the member is in the room's group. `removed`: an administrator removed them; on a sealed tier the room has advanced past them.";
653
+ };
654
+ readonly MemberActions: {
655
+ readonly title: "MemberActions";
656
+ readonly type: "array";
657
+ readonly minItems: 1;
658
+ readonly maxItems: 3;
659
+ readonly uniqueItems: true;
660
+ readonly items: {
661
+ readonly $ref: "#/$defs/MemberAction";
662
+ };
663
+ readonly description: "The actions granted, at least one. An empty list confers nothing rather than everything, and a schema that allowed it would make the more dangerous reading available to a careless consumer.";
664
+ };
665
+ readonly MemberAction: {
666
+ readonly title: "MemberAction";
667
+ readonly type: "string";
668
+ readonly enum: readonly ["read", "write", "curate"];
669
+ readonly description: "What a member of a community-owned room may do there. `admin` is not among them: minting epochs, admitting and removing members are the community's, as the room's owner, and are exercised through the vtc/rooms/community/* tasks rather than by any member's credential. `curate` is not implied by `write`.";
670
+ };
671
+ readonly Reason: {
672
+ readonly title: "Reason";
673
+ readonly type: "string";
674
+ readonly minLength: 1;
675
+ readonly maxLength: 500;
676
+ readonly description: "Why the administrator is making this change. Recorded with it in the audit trail. Attributed to its author on every surface and untrusted: it MUST NOT carry personal data or a credential, and a reader MUST NOT treat it as instructions.";
677
+ };
678
+ };
679
+ };
680
+ };
681
+ //# sourceMappingURL=payload.d.ts.map