@openvtc/trust-tasks 0.26.14 → 0.26.15

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 (197) hide show
  1. package/CHANGELOG.md +114 -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 +17 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +17 -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/label/0.1/payload.d.ts +757 -0
  42. package/dist/rooms/keys/label/0.1/payload.d.ts.map +1 -0
  43. package/dist/rooms/keys/label/0.1/payload.js +388 -0
  44. package/dist/rooms/keys/label/0.1/payload.js.map +1 -0
  45. package/dist/rooms/keys/list/0.2/payload.d.ts +667 -0
  46. package/dist/rooms/keys/list/0.2/payload.d.ts.map +1 -0
  47. package/dist/rooms/keys/list/0.2/payload.js +350 -0
  48. package/dist/rooms/keys/list/0.2/payload.js.map +1 -0
  49. package/dist/rooms/keys/present/0.2/payload.d.ts +4 -4
  50. package/dist/rooms/keys/present/0.2/payload.js +2 -2
  51. package/dist/rooms/keys/present/0.2/payload.js.map +1 -1
  52. package/dist/rooms/keys/profile/read/0.1/payload.d.ts +1652 -0
  53. package/dist/rooms/keys/profile/read/0.1/payload.d.ts.map +1 -0
  54. package/dist/rooms/keys/profile/read/0.1/payload.js +649 -0
  55. package/dist/rooms/keys/profile/read/0.1/payload.js.map +1 -0
  56. package/dist/rooms/keys/profile/write/0.1/payload.d.ts +583 -0
  57. package/dist/rooms/keys/profile/write/0.1/payload.d.ts.map +1 -0
  58. package/dist/rooms/keys/profile/write/0.1/payload.js +319 -0
  59. package/dist/rooms/keys/profile/write/0.1/payload.js.map +1 -0
  60. package/dist/rooms/owner/claim/0.1/payload.d.ts +4 -4
  61. package/dist/rooms/owner/claim/0.1/payload.js +2 -2
  62. package/dist/rooms/owner/claim/0.1/payload.js.map +1 -1
  63. package/dist/rooms/owner/group/remove/0.2/payload.d.ts +600 -0
  64. package/dist/rooms/owner/group/remove/0.2/payload.d.ts.map +1 -0
  65. package/dist/rooms/owner/group/remove/0.2/payload.js +310 -0
  66. package/dist/rooms/owner/group/remove/0.2/payload.js.map +1 -0
  67. package/dist/rooms/owner/revoke/0.1/payload.d.ts +1481 -0
  68. package/dist/rooms/owner/revoke/0.1/payload.d.ts.map +1 -0
  69. package/dist/rooms/owner/revoke/0.1/payload.js +811 -0
  70. package/dist/rooms/owner/revoke/0.1/payload.js.map +1 -0
  71. package/dist/rooms/owner/transfer/0.1/payload.d.ts +4 -4
  72. package/dist/rooms/owner/transfer/0.1/payload.js +2 -2
  73. package/dist/rooms/owner/transfer/0.1/payload.js.map +1 -1
  74. package/dist/rooms/records/curate/0.1/payload.d.ts +4 -4
  75. package/dist/rooms/records/curate/0.1/payload.js +2 -2
  76. package/dist/rooms/records/curate/0.1/payload.js.map +1 -1
  77. package/dist/rooms/records/get/0.1/payload.d.ts +4 -4
  78. package/dist/rooms/records/get/0.1/payload.js +2 -2
  79. package/dist/rooms/records/get/0.1/payload.js.map +1 -1
  80. package/dist/rooms/records/get/0.2/payload.d.ts +4 -4
  81. package/dist/rooms/records/get/0.2/payload.js +2 -2
  82. package/dist/rooms/records/get/0.2/payload.js.map +1 -1
  83. package/dist/rooms/records/list/0.1/payload.d.ts +4 -4
  84. package/dist/rooms/records/list/0.1/payload.js +2 -2
  85. package/dist/rooms/records/list/0.1/payload.js.map +1 -1
  86. package/dist/rooms/records/list/0.2/payload.d.ts +4 -4
  87. package/dist/rooms/records/list/0.2/payload.js +2 -2
  88. package/dist/rooms/records/list/0.2/payload.js.map +1 -1
  89. package/dist/rooms/records/put/0.1/payload.d.ts +4 -4
  90. package/dist/rooms/records/put/0.1/payload.js +2 -2
  91. package/dist/rooms/records/put/0.1/payload.js.map +1 -1
  92. package/dist/rooms/records/put/0.2/payload.d.ts +4 -4
  93. package/dist/rooms/records/put/0.2/payload.js +2 -2
  94. package/dist/rooms/records/put/0.2/payload.js.map +1 -1
  95. package/dist/rooms/revocations/get/0.1/payload.d.ts +905 -0
  96. package/dist/rooms/revocations/get/0.1/payload.d.ts.map +1 -0
  97. package/dist/rooms/revocations/get/0.1/payload.js +512 -0
  98. package/dist/rooms/revocations/get/0.1/payload.js.map +1 -0
  99. package/dist/rooms/revocations/put/0.1/payload.d.ts +1021 -0
  100. package/dist/rooms/revocations/put/0.1/payload.d.ts.map +1 -0
  101. package/dist/rooms/revocations/put/0.1/payload.js +583 -0
  102. package/dist/rooms/revocations/put/0.1/payload.js.map +1 -0
  103. package/dist/rooms/usage/0.1/payload.d.ts +4 -4
  104. package/dist/rooms/usage/0.1/payload.js +2 -2
  105. package/dist/rooms/usage/0.1/payload.js.map +1 -1
  106. package/dist/vtc/_shared/0.1/community-room.d.ts +1 -1
  107. package/dist/vtc/_shared/0.1/community-room.d.ts.map +1 -1
  108. package/dist/vtc/rooms/community/create/0.1/payload.d.ts +4 -4
  109. package/dist/vtc/rooms/community/create/0.1/payload.js +2 -2
  110. package/dist/vtc/rooms/community/create/0.1/payload.js.map +1 -1
  111. package/dist/vtc/rooms/community/create/0.2/payload.d.ts +989 -0
  112. package/dist/vtc/rooms/community/create/0.2/payload.d.ts.map +1 -0
  113. package/dist/vtc/rooms/community/create/0.2/payload.js +559 -0
  114. package/dist/vtc/rooms/community/create/0.2/payload.js.map +1 -0
  115. package/dist/vtc/rooms/community/create/0.3/payload.d.ts +1013 -0
  116. package/dist/vtc/rooms/community/create/0.3/payload.d.ts.map +1 -0
  117. package/dist/vtc/rooms/community/create/0.3/payload.js +577 -0
  118. package/dist/vtc/rooms/community/create/0.3/payload.js.map +1 -0
  119. package/dist/vtc/rooms/community/get/0.1/payload.d.ts +4 -4
  120. package/dist/vtc/rooms/community/get/0.1/payload.js +2 -2
  121. package/dist/vtc/rooms/community/get/0.1/payload.js.map +1 -1
  122. package/dist/vtc/rooms/community/get/0.2/payload.d.ts +887 -0
  123. package/dist/vtc/rooms/community/get/0.2/payload.d.ts.map +1 -0
  124. package/dist/vtc/rooms/community/get/0.2/payload.js +517 -0
  125. package/dist/vtc/rooms/community/get/0.2/payload.js.map +1 -0
  126. package/dist/vtc/rooms/community/list/0.1/payload.d.ts +4 -4
  127. package/dist/vtc/rooms/community/list/0.1/payload.js +2 -2
  128. package/dist/vtc/rooms/community/list/0.1/payload.js.map +1 -1
  129. package/dist/vtc/rooms/community/list/0.2/payload.d.ts +960 -0
  130. package/dist/vtc/rooms/community/list/0.2/payload.d.ts.map +1 -0
  131. package/dist/vtc/rooms/community/list/0.2/payload.js +544 -0
  132. package/dist/vtc/rooms/community/list/0.2/payload.js.map +1 -0
  133. package/dist/vtc/rooms/community/members/remove/0.2/payload.d.ts +681 -0
  134. package/dist/vtc/rooms/community/members/remove/0.2/payload.d.ts.map +1 -0
  135. package/dist/vtc/rooms/community/members/remove/0.2/payload.js +393 -0
  136. package/dist/vtc/rooms/community/members/remove/0.2/payload.js.map +1 -0
  137. package/dist/vtc/rooms/community/update/0.1/payload.d.ts +1013 -0
  138. package/dist/vtc/rooms/community/update/0.1/payload.d.ts.map +1 -0
  139. package/dist/vtc/rooms/community/update/0.1/payload.js +573 -0
  140. package/dist/vtc/rooms/community/update/0.1/payload.js.map +1 -0
  141. package/dist/vtc/rooms/community/update/0.2/payload.d.ts +1037 -0
  142. package/dist/vtc/rooms/community/update/0.2/payload.d.ts.map +1 -0
  143. package/dist/vtc/rooms/community/update/0.2/payload.js +593 -0
  144. package/dist/vtc/rooms/community/update/0.2/payload.js.map +1 -0
  145. package/dist/vtc/rooms/offers/list/0.1/payload.d.ts +4 -4
  146. package/dist/vtc/rooms/offers/list/0.1/payload.js +2 -2
  147. package/dist/vtc/rooms/offers/list/0.1/payload.js.map +1 -1
  148. package/dist/vtc/rooms/offers/list/0.2/payload.d.ts +736 -0
  149. package/dist/vtc/rooms/offers/list/0.2/payload.d.ts.map +1 -0
  150. package/dist/vtc/rooms/offers/list/0.2/payload.js +430 -0
  151. package/dist/vtc/rooms/offers/list/0.2/payload.js.map +1 -0
  152. package/package.json +1 -1
  153. package/src/_shared/components.ts +426 -1
  154. package/src/index.ts +17 -0
  155. package/src/rooms/_shared/0.1/personal-label.ts +17 -0
  156. package/src/rooms/_shared/0.1/room.ts +1 -1
  157. package/src/rooms/blobs/get/0.1/payload.ts +2 -2
  158. package/src/rooms/blobs/get/0.2/payload.ts +2 -2
  159. package/src/rooms/blobs/upload/begin/0.1/payload.ts +2 -2
  160. package/src/rooms/blobs/upload/begin/0.2/payload.ts +2 -2
  161. package/src/rooms/epoch/chain/0.1/payload.ts +2 -2
  162. package/src/rooms/epoch/commits/0.1/payload.ts +2 -2
  163. package/src/rooms/epoch/mint/0.1/payload.ts +2 -2
  164. package/src/rooms/epoch/prune/0.1/payload.ts +2 -2
  165. package/src/rooms/info/0.1/payload.ts +2 -2
  166. package/src/rooms/keys/label/0.1/payload.ts +474 -0
  167. package/src/rooms/keys/list/0.2/payload.ts +412 -0
  168. package/src/rooms/keys/present/0.2/payload.ts +2 -2
  169. package/src/rooms/keys/profile/read/0.1/payload.ts +1617 -0
  170. package/src/rooms/keys/profile/write/0.1/payload.ts +388 -0
  171. package/src/rooms/owner/claim/0.1/payload.ts +2 -2
  172. package/src/rooms/owner/group/remove/0.2/payload.ts +415 -0
  173. package/src/rooms/owner/revoke/0.1/payload.ts +954 -0
  174. package/src/rooms/owner/transfer/0.1/payload.ts +2 -2
  175. package/src/rooms/records/curate/0.1/payload.ts +2 -2
  176. package/src/rooms/records/get/0.1/payload.ts +2 -2
  177. package/src/rooms/records/get/0.2/payload.ts +2 -2
  178. package/src/rooms/records/list/0.1/payload.ts +2 -2
  179. package/src/rooms/records/list/0.2/payload.ts +2 -2
  180. package/src/rooms/records/put/0.1/payload.ts +2 -2
  181. package/src/rooms/records/put/0.2/payload.ts +2 -2
  182. package/src/rooms/revocations/get/0.1/payload.ts +562 -0
  183. package/src/rooms/revocations/put/0.1/payload.ts +637 -0
  184. package/src/rooms/usage/0.1/payload.ts +2 -2
  185. package/src/vtc/_shared/0.1/community-room.ts +1 -1
  186. package/src/vtc/rooms/community/create/0.1/payload.ts +2 -2
  187. package/src/vtc/rooms/community/create/0.2/payload.ts +613 -0
  188. package/src/vtc/rooms/community/create/0.3/payload.ts +635 -0
  189. package/src/vtc/rooms/community/get/0.1/payload.ts +2 -2
  190. package/src/vtc/rooms/community/get/0.2/payload.ts +549 -0
  191. package/src/vtc/rooms/community/list/0.1/payload.ts +2 -2
  192. package/src/vtc/rooms/community/list/0.2/payload.ts +591 -0
  193. package/src/vtc/rooms/community/members/remove/0.2/payload.ts +439 -0
  194. package/src/vtc/rooms/community/update/0.1/payload.ts +629 -0
  195. package/src/vtc/rooms/community/update/0.2/payload.ts +653 -0
  196. package/src/vtc/rooms/offers/list/0.1/payload.ts +2 -2
  197. package/src/vtc/rooms/offers/list/0.2/payload.ts +473 -0
@@ -0,0 +1,757 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/rooms/keys/label/0.1/payload.schema.json
4
+ */
5
+ import type { Ext, PersonalLabel, PersonalLabelDescription, PersonalLabelName, PersonalLabelNotes, PersonalLabelTag, PersonalLabelTags } from "../../../../_shared/components.js";
6
+ /**
7
+ * Set, change or remove the member's own personal label for one room they hold: its name, description, notes and tags, kept by their key holder for their eyes only. Each detail given replaces the stored one; a detail absent is unchanged; `removeX` removes one. At least one change is required (`minProperties` counts `roomId` and `member`; `ext` is not a change, which Recipient item 3 holds), and a detail cannot be both given and removed. Nothing here reaches the room, its host, its owner or a community. The outer document members are owned by the framework — SPEC §6.3.
8
+ */
9
+ export interface RoomsKeysLabelPayload {
10
+ /**
11
+ * The room's identifier: its DID, as rooms/keys/list returns it.
12
+ */
13
+ roomId: string;
14
+ /**
15
+ * The member whose label this is: the DID the room admitted, as rooms/keys/list 0.2 returns it beside the room. REQUIRED, never inferred, because a person holding one room as two personas keeps a label for each, and a label written under the wrong one is shown in the wrong context.
16
+ */
17
+ member: string;
18
+ /**
19
+ * The member's new name for the room, replacing any they had. Absent: unchanged.
20
+ */
21
+ label?: PersonalLabelName;
22
+ /**
23
+ * The member's new description, replacing any they had. Absent: unchanged.
24
+ */
25
+ description?: PersonalLabelDescription;
26
+ /**
27
+ * The member's new notes, replacing any they had. Absent: unchanged.
28
+ */
29
+ notes?: PersonalLabelNotes;
30
+ /**
31
+ * The member's tags, replacing the whole set. Absent: unchanged. Remove every tag with `removeTags`.
32
+ */
33
+ tags?: PersonalLabelTags;
34
+ /**
35
+ * Remove the member's name for the room. Only `true` is meaningful, so only `true` is accepted. A separate member rather than `label: null`, because a nullable optional member makes "unchanged" and "remove" the same value in libraries that map both to one absent option.
36
+ */
37
+ removeLabel?: true;
38
+ /**
39
+ * Remove the member's description. Only `true` is accepted.
40
+ */
41
+ removeDescription?: true;
42
+ /**
43
+ * Remove the member's notes. Only `true` is accepted.
44
+ */
45
+ removeNotes?: true;
46
+ /**
47
+ * Remove every tag. Only `true` is accepted.
48
+ */
49
+ removeTags?: true;
50
+ ext?: Ext;
51
+ }
52
+ /**
53
+ * Success response to rooms/keys/label. Type https://trusttasks.org/spec/rooms/keys/label/0.1#response. The label as it now stands, and whether this request changed it.
54
+ */
55
+ export interface RoomsKeysLabelResponsePayload {
56
+ /**
57
+ * Repeated from the request.
58
+ */
59
+ roomId: string;
60
+ /**
61
+ * Repeated from the request.
62
+ */
63
+ member: string;
64
+ /**
65
+ * The label as it now stands. Absent when no detail remains: removing the last one removes the label.
66
+ */
67
+ personal?: PersonalLabel;
68
+ /**
69
+ * `false` when every value given already matched, and every detail named for removal was already absent: nothing was written and `updatedAt` did not move. A retried request answers `false`, which is what makes the task safe to repeat.
70
+ */
71
+ changed: boolean;
72
+ ext?: Ext;
73
+ }
74
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
75
+ export type { Ext, PersonalLabel, PersonalLabelDescription, PersonalLabelName, PersonalLabelNotes, PersonalLabelTag, PersonalLabelTags };
76
+ /** Trust Task type URI. */
77
+ export declare const TYPE_URI: "https://trusttasks.org/spec/rooms/keys/label/0.1";
78
+ /** Stable alias for this specification's request payload shape. */
79
+ export type Payload = RoomsKeysLabelPayload;
80
+ /** Trust Task response type URI (request type URI + "#response"). */
81
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/rooms/keys/label/0.1#response";
82
+ /** Stable alias for this specification's success-response payload shape. */
83
+ export type Response = RoomsKeysLabelResponsePayload;
84
+ /**
85
+ * This specification's payload schema, as a value.
86
+ *
87
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
88
+ * rather than only as a `.json` file because TypeScript types are erased
89
+ * at runtime: without a schema a consumer has nothing to validate, and
90
+ * every REQUIRED payload member is optional in practice. Cross-file
91
+ * `$ref`s are already inlined, so it needs no resolver.
92
+ */
93
+ export declare const PAYLOAD_SCHEMA: {
94
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
95
+ readonly $id: "https://trusttasks.org/spec/rooms/keys/label/0.1";
96
+ readonly title: "Rooms Keys Label — payload";
97
+ readonly description: "Set, change or remove the member's own personal label for one room they hold: its name, description, notes and tags, kept by their key holder for their eyes only. Each detail given replaces the stored one; a detail absent is unchanged; `removeX` removes one. At least one change is required (`minProperties` counts `roomId` and `member`; `ext` is not a change, which Recipient item 3 holds), and a detail cannot be both given and removed. Nothing here reaches the room, its host, its owner or a community. The outer document members are owned by the framework — SPEC §6.3.";
98
+ readonly type: "object";
99
+ readonly additionalProperties: false;
100
+ readonly required: readonly ["roomId", "member"];
101
+ readonly minProperties: 3;
102
+ readonly dependentSchemas: {
103
+ readonly removeLabel: {
104
+ readonly not: {
105
+ readonly required: readonly ["label"];
106
+ };
107
+ };
108
+ readonly removeDescription: {
109
+ readonly not: {
110
+ readonly required: readonly ["description"];
111
+ };
112
+ };
113
+ readonly removeNotes: {
114
+ readonly not: {
115
+ readonly required: readonly ["notes"];
116
+ };
117
+ };
118
+ readonly removeTags: {
119
+ readonly not: {
120
+ readonly required: readonly ["tags"];
121
+ };
122
+ };
123
+ };
124
+ readonly properties: {
125
+ readonly roomId: {
126
+ readonly type: "string";
127
+ readonly minLength: 1;
128
+ readonly maxLength: 512;
129
+ readonly description: "The room's identifier: its DID, as rooms/keys/list returns it.";
130
+ };
131
+ readonly member: {
132
+ readonly type: "string";
133
+ readonly pattern: "^did:";
134
+ readonly maxLength: 2048;
135
+ readonly description: "The member whose label this is: the DID the room admitted, as rooms/keys/list 0.2 returns it beside the room. REQUIRED, never inferred, because a person holding one room as two personas keeps a label for each, and a label written under the wrong one is shown in the wrong context.";
136
+ };
137
+ readonly label: {
138
+ readonly $ref: "#/$defs/PersonalLabelName";
139
+ readonly description: "The member's new name for the room, replacing any they had. Absent: unchanged.";
140
+ };
141
+ readonly description: {
142
+ readonly $ref: "#/$defs/PersonalLabelDescription";
143
+ readonly description: "The member's new description, replacing any they had. Absent: unchanged.";
144
+ };
145
+ readonly notes: {
146
+ readonly $ref: "#/$defs/PersonalLabelNotes";
147
+ readonly description: "The member's new notes, replacing any they had. Absent: unchanged.";
148
+ };
149
+ readonly tags: {
150
+ readonly $ref: "#/$defs/PersonalLabelTags";
151
+ readonly description: "The member's tags, replacing the whole set. Absent: unchanged. Remove every tag with `removeTags`.";
152
+ };
153
+ readonly removeLabel: {
154
+ readonly type: "boolean";
155
+ readonly const: true;
156
+ readonly description: "Remove the member's name for the room. Only `true` is meaningful, so only `true` is accepted. A separate member rather than `label: null`, because a nullable optional member makes \"unchanged\" and \"remove\" the same value in libraries that map both to one absent option.";
157
+ };
158
+ readonly removeDescription: {
159
+ readonly type: "boolean";
160
+ readonly const: true;
161
+ readonly description: "Remove the member's description. Only `true` is accepted.";
162
+ };
163
+ readonly removeNotes: {
164
+ readonly type: "boolean";
165
+ readonly const: true;
166
+ readonly description: "Remove the member's notes. Only `true` is accepted.";
167
+ };
168
+ readonly removeTags: {
169
+ readonly type: "boolean";
170
+ readonly const: true;
171
+ readonly description: "Remove every tag. Only `true` is accepted.";
172
+ };
173
+ readonly ext: {
174
+ readonly $ref: "#/$defs/Ext";
175
+ };
176
+ };
177
+ readonly $defs: {
178
+ readonly Response: {
179
+ readonly $anchor: "response";
180
+ readonly title: "Rooms Keys Label — response payload";
181
+ readonly description: "Success response to rooms/keys/label. Type https://trusttasks.org/spec/rooms/keys/label/0.1#response. The label as it now stands, and whether this request changed it.";
182
+ readonly type: "object";
183
+ readonly additionalProperties: false;
184
+ readonly required: readonly ["roomId", "member", "changed"];
185
+ readonly properties: {
186
+ readonly roomId: {
187
+ readonly type: "string";
188
+ readonly minLength: 1;
189
+ readonly maxLength: 512;
190
+ readonly description: "Repeated from the request.";
191
+ };
192
+ readonly member: {
193
+ readonly type: "string";
194
+ readonly pattern: "^did:";
195
+ readonly maxLength: 2048;
196
+ readonly description: "Repeated from the request.";
197
+ };
198
+ readonly personal: {
199
+ readonly $ref: "#/$defs/PersonalLabel";
200
+ readonly description: "The label as it now stands. Absent when no detail remains: removing the last one removes the label.";
201
+ };
202
+ readonly changed: {
203
+ readonly type: "boolean";
204
+ readonly description: "`false` when every value given already matched, and every detail named for removal was already absent: nothing was written and `updatedAt` did not move. A retried request answers `false`, which is what makes the task safe to repeat.";
205
+ };
206
+ readonly ext: {
207
+ readonly $ref: "#/$defs/Ext";
208
+ };
209
+ };
210
+ };
211
+ readonly Ext: {
212
+ readonly title: "Ext";
213
+ 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.";
214
+ readonly type: "object";
215
+ readonly minProperties: 1;
216
+ readonly additionalProperties: true;
217
+ readonly propertyNames: {
218
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
219
+ };
220
+ };
221
+ readonly PersonalLabel: {
222
+ readonly title: "PersonalLabel";
223
+ readonly type: "object";
224
+ readonly additionalProperties: false;
225
+ readonly required: readonly ["updatedAt"];
226
+ readonly minProperties: 2;
227
+ readonly description: "A member's personal label for one room, as their key holder keeps it: at least one detail (`minProperties` counts `updatedAt`), and when it last changed. A key holder that holds no detail for the room holds no label, and returns none — there is no empty label.";
228
+ readonly properties: {
229
+ readonly label: {
230
+ readonly $ref: "#/$defs/PersonalLabelName";
231
+ };
232
+ readonly description: {
233
+ readonly $ref: "#/$defs/PersonalLabelDescription";
234
+ };
235
+ readonly notes: {
236
+ readonly $ref: "#/$defs/PersonalLabelNotes";
237
+ };
238
+ readonly tags: {
239
+ readonly $ref: "#/$defs/PersonalLabelTags";
240
+ };
241
+ readonly updatedAt: {
242
+ readonly type: "string";
243
+ readonly format: "date-time";
244
+ readonly description: "When the label last changed, as the key holder recorded it. A request that changed nothing does not move it.";
245
+ };
246
+ };
247
+ };
248
+ readonly PersonalLabelTags: {
249
+ readonly title: "PersonalLabelTags";
250
+ readonly type: "array";
251
+ readonly minItems: 1;
252
+ readonly maxItems: 16;
253
+ readonly uniqueItems: true;
254
+ readonly items: {
255
+ readonly $ref: "#/$defs/PersonalLabelTag";
256
+ };
257
+ readonly description: "The member's tags for the room, one to sixteen, as a set: order carries no meaning. A room with no tags has no `tags` member, never an empty list, so there is one way to say \"none\".";
258
+ };
259
+ readonly PersonalLabelTag: {
260
+ readonly title: "PersonalLabelTag";
261
+ readonly type: "string";
262
+ readonly minLength: 1;
263
+ readonly maxLength: 32;
264
+ readonly pattern: "^[^\\u0000-\\u001F\\u007F]+$";
265
+ readonly description: "A word or short phrase the member files the room under, in any script, so their own surfaces can group and filter their rooms. Compared exactly, as a string: a key holder does not case-fold or normalise it.";
266
+ };
267
+ readonly PersonalLabelNotes: {
268
+ readonly title: "PersonalLabelNotes";
269
+ readonly type: "string";
270
+ readonly minLength: 1;
271
+ readonly maxLength: 4000;
272
+ readonly pattern: "^[^\\u0000-\\u0008\\u000B\\u000C\\u000E-\\u001F\\u007F]+$";
273
+ readonly description: "Longer free-form notes the member keeps about the room: who introduced them, what to look for in it, what they agreed there. Line breaks and tabs are allowed; other control characters are not.";
274
+ };
275
+ readonly PersonalLabelDescription: {
276
+ readonly title: "PersonalLabelDescription";
277
+ readonly type: "string";
278
+ readonly minLength: 1;
279
+ readonly maxLength: 1000;
280
+ readonly pattern: "^[^\\u0000-\\u0008\\u000B\\u000C\\u000E-\\u001F\\u007F]+$";
281
+ readonly description: "What the room is to the member, in a sentence or a short paragraph. Line breaks and tabs are allowed; other control characters are not.";
282
+ };
283
+ readonly PersonalLabelName: {
284
+ readonly title: "PersonalLabelName";
285
+ readonly type: "string";
286
+ readonly minLength: 1;
287
+ readonly maxLength: 128;
288
+ readonly pattern: "^[^\\u0000-\\u001F\\u007F]+$";
289
+ readonly description: "The member's own name for the room, on one line: no control characters, line breaks included. Shown before every name a third party gave the room, because it is the only one nobody else wrote.";
290
+ };
291
+ };
292
+ };
293
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
294
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
295
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
296
+ readonly $ref: "#/$defs/Response";
297
+ readonly $defs: {
298
+ readonly Response: {
299
+ readonly $anchor: "response";
300
+ readonly title: "Rooms Keys Label — response payload";
301
+ readonly description: "Success response to rooms/keys/label. Type https://trusttasks.org/spec/rooms/keys/label/0.1#response. The label as it now stands, and whether this request changed it.";
302
+ readonly type: "object";
303
+ readonly additionalProperties: false;
304
+ readonly required: readonly ["roomId", "member", "changed"];
305
+ readonly properties: {
306
+ readonly roomId: {
307
+ readonly type: "string";
308
+ readonly minLength: 1;
309
+ readonly maxLength: 512;
310
+ readonly description: "Repeated from the request.";
311
+ };
312
+ readonly member: {
313
+ readonly type: "string";
314
+ readonly pattern: "^did:";
315
+ readonly maxLength: 2048;
316
+ readonly description: "Repeated from the request.";
317
+ };
318
+ readonly personal: {
319
+ readonly $ref: "#/$defs/PersonalLabel";
320
+ readonly description: "The label as it now stands. Absent when no detail remains: removing the last one removes the label.";
321
+ };
322
+ readonly changed: {
323
+ readonly type: "boolean";
324
+ readonly description: "`false` when every value given already matched, and every detail named for removal was already absent: nothing was written and `updatedAt` did not move. A retried request answers `false`, which is what makes the task safe to repeat.";
325
+ };
326
+ readonly ext: {
327
+ readonly $ref: "#/$defs/Ext";
328
+ };
329
+ };
330
+ };
331
+ readonly Ext: {
332
+ readonly title: "Ext";
333
+ 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.";
334
+ readonly type: "object";
335
+ readonly minProperties: 1;
336
+ readonly additionalProperties: true;
337
+ readonly propertyNames: {
338
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
339
+ };
340
+ };
341
+ readonly PersonalLabel: {
342
+ readonly title: "PersonalLabel";
343
+ readonly type: "object";
344
+ readonly additionalProperties: false;
345
+ readonly required: readonly ["updatedAt"];
346
+ readonly minProperties: 2;
347
+ readonly description: "A member's personal label for one room, as their key holder keeps it: at least one detail (`minProperties` counts `updatedAt`), and when it last changed. A key holder that holds no detail for the room holds no label, and returns none — there is no empty label.";
348
+ readonly properties: {
349
+ readonly label: {
350
+ readonly $ref: "#/$defs/PersonalLabelName";
351
+ };
352
+ readonly description: {
353
+ readonly $ref: "#/$defs/PersonalLabelDescription";
354
+ };
355
+ readonly notes: {
356
+ readonly $ref: "#/$defs/PersonalLabelNotes";
357
+ };
358
+ readonly tags: {
359
+ readonly $ref: "#/$defs/PersonalLabelTags";
360
+ };
361
+ readonly updatedAt: {
362
+ readonly type: "string";
363
+ readonly format: "date-time";
364
+ readonly description: "When the label last changed, as the key holder recorded it. A request that changed nothing does not move it.";
365
+ };
366
+ };
367
+ };
368
+ readonly PersonalLabelTags: {
369
+ readonly title: "PersonalLabelTags";
370
+ readonly type: "array";
371
+ readonly minItems: 1;
372
+ readonly maxItems: 16;
373
+ readonly uniqueItems: true;
374
+ readonly items: {
375
+ readonly $ref: "#/$defs/PersonalLabelTag";
376
+ };
377
+ readonly description: "The member's tags for the room, one to sixteen, as a set: order carries no meaning. A room with no tags has no `tags` member, never an empty list, so there is one way to say \"none\".";
378
+ };
379
+ readonly PersonalLabelTag: {
380
+ readonly title: "PersonalLabelTag";
381
+ readonly type: "string";
382
+ readonly minLength: 1;
383
+ readonly maxLength: 32;
384
+ readonly pattern: "^[^\\u0000-\\u001F\\u007F]+$";
385
+ readonly description: "A word or short phrase the member files the room under, in any script, so their own surfaces can group and filter their rooms. Compared exactly, as a string: a key holder does not case-fold or normalise it.";
386
+ };
387
+ readonly PersonalLabelNotes: {
388
+ readonly title: "PersonalLabelNotes";
389
+ readonly type: "string";
390
+ readonly minLength: 1;
391
+ readonly maxLength: 4000;
392
+ readonly pattern: "^[^\\u0000-\\u0008\\u000B\\u000C\\u000E-\\u001F\\u007F]+$";
393
+ readonly description: "Longer free-form notes the member keeps about the room: who introduced them, what to look for in it, what they agreed there. Line breaks and tabs are allowed; other control characters are not.";
394
+ };
395
+ readonly PersonalLabelDescription: {
396
+ readonly title: "PersonalLabelDescription";
397
+ readonly type: "string";
398
+ readonly minLength: 1;
399
+ readonly maxLength: 1000;
400
+ readonly pattern: "^[^\\u0000-\\u0008\\u000B\\u000C\\u000E-\\u001F\\u007F]+$";
401
+ readonly description: "What the room is to the member, in a sentence or a short paragraph. Line breaks and tabs are allowed; other control characters are not.";
402
+ };
403
+ readonly PersonalLabelName: {
404
+ readonly title: "PersonalLabelName";
405
+ readonly type: "string";
406
+ readonly minLength: 1;
407
+ readonly maxLength: 128;
408
+ readonly pattern: "^[^\\u0000-\\u001F\\u007F]+$";
409
+ readonly description: "The member's own name for the room, on one line: no control characters, line breaks included. Shown before every name a third party gave the room, because it is the only one nobody else wrote.";
410
+ };
411
+ };
412
+ };
413
+ /**
414
+ * SPEC.md §7.2 policy for the request variant, from this specification's
415
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
416
+ * per-specification and cannot be derived from the document alone, and
417
+ * item 2 needs the schema this carries.
418
+ */
419
+ export declare const SPEC: {
420
+ readonly typeUri: "https://trusttasks.org/spec/rooms/keys/label/0.1";
421
+ readonly isBearer: false;
422
+ readonly isProofRequired: true;
423
+ readonly isRecipientRequired: true;
424
+ readonly isIssuedAtRequired: true;
425
+ readonly payloadSchema: {
426
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
427
+ readonly $id: "https://trusttasks.org/spec/rooms/keys/label/0.1";
428
+ readonly title: "Rooms Keys Label — payload";
429
+ readonly description: "Set, change or remove the member's own personal label for one room they hold: its name, description, notes and tags, kept by their key holder for their eyes only. Each detail given replaces the stored one; a detail absent is unchanged; `removeX` removes one. At least one change is required (`minProperties` counts `roomId` and `member`; `ext` is not a change, which Recipient item 3 holds), and a detail cannot be both given and removed. Nothing here reaches the room, its host, its owner or a community. The outer document members are owned by the framework — SPEC §6.3.";
430
+ readonly type: "object";
431
+ readonly additionalProperties: false;
432
+ readonly required: readonly ["roomId", "member"];
433
+ readonly minProperties: 3;
434
+ readonly dependentSchemas: {
435
+ readonly removeLabel: {
436
+ readonly not: {
437
+ readonly required: readonly ["label"];
438
+ };
439
+ };
440
+ readonly removeDescription: {
441
+ readonly not: {
442
+ readonly required: readonly ["description"];
443
+ };
444
+ };
445
+ readonly removeNotes: {
446
+ readonly not: {
447
+ readonly required: readonly ["notes"];
448
+ };
449
+ };
450
+ readonly removeTags: {
451
+ readonly not: {
452
+ readonly required: readonly ["tags"];
453
+ };
454
+ };
455
+ };
456
+ readonly properties: {
457
+ readonly roomId: {
458
+ readonly type: "string";
459
+ readonly minLength: 1;
460
+ readonly maxLength: 512;
461
+ readonly description: "The room's identifier: its DID, as rooms/keys/list returns it.";
462
+ };
463
+ readonly member: {
464
+ readonly type: "string";
465
+ readonly pattern: "^did:";
466
+ readonly maxLength: 2048;
467
+ readonly description: "The member whose label this is: the DID the room admitted, as rooms/keys/list 0.2 returns it beside the room. REQUIRED, never inferred, because a person holding one room as two personas keeps a label for each, and a label written under the wrong one is shown in the wrong context.";
468
+ };
469
+ readonly label: {
470
+ readonly $ref: "#/$defs/PersonalLabelName";
471
+ readonly description: "The member's new name for the room, replacing any they had. Absent: unchanged.";
472
+ };
473
+ readonly description: {
474
+ readonly $ref: "#/$defs/PersonalLabelDescription";
475
+ readonly description: "The member's new description, replacing any they had. Absent: unchanged.";
476
+ };
477
+ readonly notes: {
478
+ readonly $ref: "#/$defs/PersonalLabelNotes";
479
+ readonly description: "The member's new notes, replacing any they had. Absent: unchanged.";
480
+ };
481
+ readonly tags: {
482
+ readonly $ref: "#/$defs/PersonalLabelTags";
483
+ readonly description: "The member's tags, replacing the whole set. Absent: unchanged. Remove every tag with `removeTags`.";
484
+ };
485
+ readonly removeLabel: {
486
+ readonly type: "boolean";
487
+ readonly const: true;
488
+ readonly description: "Remove the member's name for the room. Only `true` is meaningful, so only `true` is accepted. A separate member rather than `label: null`, because a nullable optional member makes \"unchanged\" and \"remove\" the same value in libraries that map both to one absent option.";
489
+ };
490
+ readonly removeDescription: {
491
+ readonly type: "boolean";
492
+ readonly const: true;
493
+ readonly description: "Remove the member's description. Only `true` is accepted.";
494
+ };
495
+ readonly removeNotes: {
496
+ readonly type: "boolean";
497
+ readonly const: true;
498
+ readonly description: "Remove the member's notes. Only `true` is accepted.";
499
+ };
500
+ readonly removeTags: {
501
+ readonly type: "boolean";
502
+ readonly const: true;
503
+ readonly description: "Remove every tag. Only `true` is accepted.";
504
+ };
505
+ readonly ext: {
506
+ readonly $ref: "#/$defs/Ext";
507
+ };
508
+ };
509
+ readonly $defs: {
510
+ readonly Response: {
511
+ readonly $anchor: "response";
512
+ readonly title: "Rooms Keys Label — response payload";
513
+ readonly description: "Success response to rooms/keys/label. Type https://trusttasks.org/spec/rooms/keys/label/0.1#response. The label as it now stands, and whether this request changed it.";
514
+ readonly type: "object";
515
+ readonly additionalProperties: false;
516
+ readonly required: readonly ["roomId", "member", "changed"];
517
+ readonly properties: {
518
+ readonly roomId: {
519
+ readonly type: "string";
520
+ readonly minLength: 1;
521
+ readonly maxLength: 512;
522
+ readonly description: "Repeated from the request.";
523
+ };
524
+ readonly member: {
525
+ readonly type: "string";
526
+ readonly pattern: "^did:";
527
+ readonly maxLength: 2048;
528
+ readonly description: "Repeated from the request.";
529
+ };
530
+ readonly personal: {
531
+ readonly $ref: "#/$defs/PersonalLabel";
532
+ readonly description: "The label as it now stands. Absent when no detail remains: removing the last one removes the label.";
533
+ };
534
+ readonly changed: {
535
+ readonly type: "boolean";
536
+ readonly description: "`false` when every value given already matched, and every detail named for removal was already absent: nothing was written and `updatedAt` did not move. A retried request answers `false`, which is what makes the task safe to repeat.";
537
+ };
538
+ readonly ext: {
539
+ readonly $ref: "#/$defs/Ext";
540
+ };
541
+ };
542
+ };
543
+ readonly Ext: {
544
+ readonly title: "Ext";
545
+ 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.";
546
+ readonly type: "object";
547
+ readonly minProperties: 1;
548
+ readonly additionalProperties: true;
549
+ readonly propertyNames: {
550
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
551
+ };
552
+ };
553
+ readonly PersonalLabel: {
554
+ readonly title: "PersonalLabel";
555
+ readonly type: "object";
556
+ readonly additionalProperties: false;
557
+ readonly required: readonly ["updatedAt"];
558
+ readonly minProperties: 2;
559
+ readonly description: "A member's personal label for one room, as their key holder keeps it: at least one detail (`minProperties` counts `updatedAt`), and when it last changed. A key holder that holds no detail for the room holds no label, and returns none — there is no empty label.";
560
+ readonly properties: {
561
+ readonly label: {
562
+ readonly $ref: "#/$defs/PersonalLabelName";
563
+ };
564
+ readonly description: {
565
+ readonly $ref: "#/$defs/PersonalLabelDescription";
566
+ };
567
+ readonly notes: {
568
+ readonly $ref: "#/$defs/PersonalLabelNotes";
569
+ };
570
+ readonly tags: {
571
+ readonly $ref: "#/$defs/PersonalLabelTags";
572
+ };
573
+ readonly updatedAt: {
574
+ readonly type: "string";
575
+ readonly format: "date-time";
576
+ readonly description: "When the label last changed, as the key holder recorded it. A request that changed nothing does not move it.";
577
+ };
578
+ };
579
+ };
580
+ readonly PersonalLabelTags: {
581
+ readonly title: "PersonalLabelTags";
582
+ readonly type: "array";
583
+ readonly minItems: 1;
584
+ readonly maxItems: 16;
585
+ readonly uniqueItems: true;
586
+ readonly items: {
587
+ readonly $ref: "#/$defs/PersonalLabelTag";
588
+ };
589
+ readonly description: "The member's tags for the room, one to sixteen, as a set: order carries no meaning. A room with no tags has no `tags` member, never an empty list, so there is one way to say \"none\".";
590
+ };
591
+ readonly PersonalLabelTag: {
592
+ readonly title: "PersonalLabelTag";
593
+ readonly type: "string";
594
+ readonly minLength: 1;
595
+ readonly maxLength: 32;
596
+ readonly pattern: "^[^\\u0000-\\u001F\\u007F]+$";
597
+ readonly description: "A word or short phrase the member files the room under, in any script, so their own surfaces can group and filter their rooms. Compared exactly, as a string: a key holder does not case-fold or normalise it.";
598
+ };
599
+ readonly PersonalLabelNotes: {
600
+ readonly title: "PersonalLabelNotes";
601
+ readonly type: "string";
602
+ readonly minLength: 1;
603
+ readonly maxLength: 4000;
604
+ readonly pattern: "^[^\\u0000-\\u0008\\u000B\\u000C\\u000E-\\u001F\\u007F]+$";
605
+ readonly description: "Longer free-form notes the member keeps about the room: who introduced them, what to look for in it, what they agreed there. Line breaks and tabs are allowed; other control characters are not.";
606
+ };
607
+ readonly PersonalLabelDescription: {
608
+ readonly title: "PersonalLabelDescription";
609
+ readonly type: "string";
610
+ readonly minLength: 1;
611
+ readonly maxLength: 1000;
612
+ readonly pattern: "^[^\\u0000-\\u0008\\u000B\\u000C\\u000E-\\u001F\\u007F]+$";
613
+ readonly description: "What the room is to the member, in a sentence or a short paragraph. Line breaks and tabs are allowed; other control characters are not.";
614
+ };
615
+ readonly PersonalLabelName: {
616
+ readonly title: "PersonalLabelName";
617
+ readonly type: "string";
618
+ readonly minLength: 1;
619
+ readonly maxLength: 128;
620
+ readonly pattern: "^[^\\u0000-\\u001F\\u007F]+$";
621
+ readonly description: "The member's own name for the room, on one line: no control characters, line breaks included. Shown before every name a third party gave the room, because it is the only one nobody else wrote.";
622
+ };
623
+ };
624
+ };
625
+ };
626
+ /**
627
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
628
+ * tracks the *issuer* party's requirement because a response swaps the
629
+ * parties (§7.3 item 5).
630
+ */
631
+ export declare const RESPONSE_SPEC: {
632
+ readonly typeUri: "https://trusttasks.org/spec/rooms/keys/label/0.1#response";
633
+ readonly isBearer: false;
634
+ readonly isProofRequired: true;
635
+ readonly isRecipientRequired: true;
636
+ readonly isIssuedAtRequired: true;
637
+ readonly payloadSchema: {
638
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
639
+ readonly $ref: "#/$defs/Response";
640
+ readonly $defs: {
641
+ readonly Response: {
642
+ readonly $anchor: "response";
643
+ readonly title: "Rooms Keys Label — response payload";
644
+ readonly description: "Success response to rooms/keys/label. Type https://trusttasks.org/spec/rooms/keys/label/0.1#response. The label as it now stands, and whether this request changed it.";
645
+ readonly type: "object";
646
+ readonly additionalProperties: false;
647
+ readonly required: readonly ["roomId", "member", "changed"];
648
+ readonly properties: {
649
+ readonly roomId: {
650
+ readonly type: "string";
651
+ readonly minLength: 1;
652
+ readonly maxLength: 512;
653
+ readonly description: "Repeated from the request.";
654
+ };
655
+ readonly member: {
656
+ readonly type: "string";
657
+ readonly pattern: "^did:";
658
+ readonly maxLength: 2048;
659
+ readonly description: "Repeated from the request.";
660
+ };
661
+ readonly personal: {
662
+ readonly $ref: "#/$defs/PersonalLabel";
663
+ readonly description: "The label as it now stands. Absent when no detail remains: removing the last one removes the label.";
664
+ };
665
+ readonly changed: {
666
+ readonly type: "boolean";
667
+ readonly description: "`false` when every value given already matched, and every detail named for removal was already absent: nothing was written and `updatedAt` did not move. A retried request answers `false`, which is what makes the task safe to repeat.";
668
+ };
669
+ readonly ext: {
670
+ readonly $ref: "#/$defs/Ext";
671
+ };
672
+ };
673
+ };
674
+ readonly Ext: {
675
+ readonly title: "Ext";
676
+ 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.";
677
+ readonly type: "object";
678
+ readonly minProperties: 1;
679
+ readonly additionalProperties: true;
680
+ readonly propertyNames: {
681
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
682
+ };
683
+ };
684
+ readonly PersonalLabel: {
685
+ readonly title: "PersonalLabel";
686
+ readonly type: "object";
687
+ readonly additionalProperties: false;
688
+ readonly required: readonly ["updatedAt"];
689
+ readonly minProperties: 2;
690
+ readonly description: "A member's personal label for one room, as their key holder keeps it: at least one detail (`minProperties` counts `updatedAt`), and when it last changed. A key holder that holds no detail for the room holds no label, and returns none — there is no empty label.";
691
+ readonly properties: {
692
+ readonly label: {
693
+ readonly $ref: "#/$defs/PersonalLabelName";
694
+ };
695
+ readonly description: {
696
+ readonly $ref: "#/$defs/PersonalLabelDescription";
697
+ };
698
+ readonly notes: {
699
+ readonly $ref: "#/$defs/PersonalLabelNotes";
700
+ };
701
+ readonly tags: {
702
+ readonly $ref: "#/$defs/PersonalLabelTags";
703
+ };
704
+ readonly updatedAt: {
705
+ readonly type: "string";
706
+ readonly format: "date-time";
707
+ readonly description: "When the label last changed, as the key holder recorded it. A request that changed nothing does not move it.";
708
+ };
709
+ };
710
+ };
711
+ readonly PersonalLabelTags: {
712
+ readonly title: "PersonalLabelTags";
713
+ readonly type: "array";
714
+ readonly minItems: 1;
715
+ readonly maxItems: 16;
716
+ readonly uniqueItems: true;
717
+ readonly items: {
718
+ readonly $ref: "#/$defs/PersonalLabelTag";
719
+ };
720
+ readonly description: "The member's tags for the room, one to sixteen, as a set: order carries no meaning. A room with no tags has no `tags` member, never an empty list, so there is one way to say \"none\".";
721
+ };
722
+ readonly PersonalLabelTag: {
723
+ readonly title: "PersonalLabelTag";
724
+ readonly type: "string";
725
+ readonly minLength: 1;
726
+ readonly maxLength: 32;
727
+ readonly pattern: "^[^\\u0000-\\u001F\\u007F]+$";
728
+ readonly description: "A word or short phrase the member files the room under, in any script, so their own surfaces can group and filter their rooms. Compared exactly, as a string: a key holder does not case-fold or normalise it.";
729
+ };
730
+ readonly PersonalLabelNotes: {
731
+ readonly title: "PersonalLabelNotes";
732
+ readonly type: "string";
733
+ readonly minLength: 1;
734
+ readonly maxLength: 4000;
735
+ readonly pattern: "^[^\\u0000-\\u0008\\u000B\\u000C\\u000E-\\u001F\\u007F]+$";
736
+ readonly description: "Longer free-form notes the member keeps about the room: who introduced them, what to look for in it, what they agreed there. Line breaks and tabs are allowed; other control characters are not.";
737
+ };
738
+ readonly PersonalLabelDescription: {
739
+ readonly title: "PersonalLabelDescription";
740
+ readonly type: "string";
741
+ readonly minLength: 1;
742
+ readonly maxLength: 1000;
743
+ readonly pattern: "^[^\\u0000-\\u0008\\u000B\\u000C\\u000E-\\u001F\\u007F]+$";
744
+ readonly description: "What the room is to the member, in a sentence or a short paragraph. Line breaks and tabs are allowed; other control characters are not.";
745
+ };
746
+ readonly PersonalLabelName: {
747
+ readonly title: "PersonalLabelName";
748
+ readonly type: "string";
749
+ readonly minLength: 1;
750
+ readonly maxLength: 128;
751
+ readonly pattern: "^[^\\u0000-\\u001F\\u007F]+$";
752
+ readonly description: "The member's own name for the room, on one line: no control characters, line breaks included. Shown before every name a third party gave the room, because it is the only one nobody else wrote.";
753
+ };
754
+ };
755
+ };
756
+ };
757
+ //# sourceMappingURL=payload.d.ts.map