@openvtc/trust-tasks 0.28.18 → 0.28.20

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 (170) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/dist/_shared/components.d.ts +243 -0
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/index.d.ts +81 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +81 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/vtc/badges/_shared/0.1/badge.d.ts +22 -0
  9. package/dist/vtc/badges/_shared/0.1/badge.d.ts.map +1 -0
  10. package/dist/vtc/badges/_shared/0.1/badge.js +6 -0
  11. package/dist/vtc/badges/_shared/0.1/badge.js.map +1 -0
  12. package/dist/vtc/badges/awards/list/0.1/payload.d.ts +1340 -0
  13. package/dist/vtc/badges/awards/list/0.1/payload.d.ts.map +1 -0
  14. package/dist/vtc/badges/awards/list/0.1/payload.js +761 -0
  15. package/dist/vtc/badges/awards/list/0.1/payload.js.map +1 -0
  16. package/dist/vtc/badges/awards/offer/0.1/payload.d.ts +905 -0
  17. package/dist/vtc/badges/awards/offer/0.1/payload.d.ts.map +1 -0
  18. package/dist/vtc/badges/awards/offer/0.1/payload.js +523 -0
  19. package/dist/vtc/badges/awards/offer/0.1/payload.js.map +1 -0
  20. package/dist/vtc/badges/awards/revoke/0.1/payload.d.ts +717 -0
  21. package/dist/vtc/badges/awards/revoke/0.1/payload.d.ts.map +1 -0
  22. package/dist/vtc/badges/awards/revoke/0.1/payload.js +413 -0
  23. package/dist/vtc/badges/awards/revoke/0.1/payload.js.map +1 -0
  24. package/dist/vtc/badges/awards/share/0.1/payload.d.ts +701 -0
  25. package/dist/vtc/badges/awards/share/0.1/payload.d.ts.map +1 -0
  26. package/dist/vtc/badges/awards/share/0.1/payload.js +406 -0
  27. package/dist/vtc/badges/awards/share/0.1/payload.js.map +1 -0
  28. package/dist/vtc/badges/awards/unshare/0.1/payload.d.ts +701 -0
  29. package/dist/vtc/badges/awards/unshare/0.1/payload.d.ts.map +1 -0
  30. package/dist/vtc/badges/awards/unshare/0.1/payload.js +406 -0
  31. package/dist/vtc/badges/awards/unshare/0.1/payload.js.map +1 -0
  32. package/dist/vtc/badges/awards/withdraw/0.1/payload.d.ts +717 -0
  33. package/dist/vtc/badges/awards/withdraw/0.1/payload.d.ts.map +1 -0
  34. package/dist/vtc/badges/awards/withdraw/0.1/payload.js +413 -0
  35. package/dist/vtc/badges/awards/withdraw/0.1/payload.js.map +1 -0
  36. package/dist/vtc/badges/create/0.1/payload.d.ts +1829 -0
  37. package/dist/vtc/badges/create/0.1/payload.d.ts.map +1 -0
  38. package/dist/vtc/badges/create/0.1/payload.js +1051 -0
  39. package/dist/vtc/badges/create/0.1/payload.js.map +1 -0
  40. package/dist/vtc/badges/holders/list/0.1/payload.d.ts +984 -0
  41. package/dist/vtc/badges/holders/list/0.1/payload.d.ts.map +1 -0
  42. package/dist/vtc/badges/holders/list/0.1/payload.js +555 -0
  43. package/dist/vtc/badges/holders/list/0.1/payload.js.map +1 -0
  44. package/dist/vtc/badges/images/get/0.1/payload.d.ts +454 -0
  45. package/dist/vtc/badges/images/get/0.1/payload.d.ts.map +1 -0
  46. package/dist/vtc/badges/images/get/0.1/payload.js +266 -0
  47. package/dist/vtc/badges/images/get/0.1/payload.js.map +1 -0
  48. package/dist/vtc/badges/images/upload/0.1/payload.d.ts +455 -0
  49. package/dist/vtc/badges/images/upload/0.1/payload.d.ts.map +1 -0
  50. package/dist/vtc/badges/images/upload/0.1/payload.js +276 -0
  51. package/dist/vtc/badges/images/upload/0.1/payload.js.map +1 -0
  52. package/dist/vtc/badges/kudos/give/0.1/payload.d.ts +725 -0
  53. package/dist/vtc/badges/kudos/give/0.1/payload.d.ts.map +1 -0
  54. package/dist/vtc/badges/kudos/give/0.1/payload.js +415 -0
  55. package/dist/vtc/badges/kudos/give/0.1/payload.js.map +1 -0
  56. package/dist/vtc/badges/kudos/list/0.1/payload.d.ts +1878 -0
  57. package/dist/vtc/badges/kudos/list/0.1/payload.d.ts.map +1 -0
  58. package/dist/vtc/badges/kudos/list/0.1/payload.js +1057 -0
  59. package/dist/vtc/badges/kudos/list/0.1/payload.js.map +1 -0
  60. package/dist/vtc/badges/list/0.1/payload.d.ts +1096 -0
  61. package/dist/vtc/badges/list/0.1/payload.d.ts.map +1 -0
  62. package/dist/vtc/badges/list/0.1/payload.js +617 -0
  63. package/dist/vtc/badges/list/0.1/payload.js.map +1 -0
  64. package/dist/vtc/badges/mine/accept/0.1/payload.d.ts +1488 -0
  65. package/dist/vtc/badges/mine/accept/0.1/payload.d.ts.map +1 -0
  66. package/dist/vtc/badges/mine/accept/0.1/payload.js +861 -0
  67. package/dist/vtc/badges/mine/accept/0.1/payload.js.map +1 -0
  68. package/dist/vtc/badges/mine/arrange/0.1/payload.d.ts +1217 -0
  69. package/dist/vtc/badges/mine/arrange/0.1/payload.d.ts.map +1 -0
  70. package/dist/vtc/badges/mine/arrange/0.1/payload.js +698 -0
  71. package/dist/vtc/badges/mine/arrange/0.1/payload.js.map +1 -0
  72. package/dist/vtc/badges/mine/decline/0.1/payload.d.ts +701 -0
  73. package/dist/vtc/badges/mine/decline/0.1/payload.d.ts.map +1 -0
  74. package/dist/vtc/badges/mine/decline/0.1/payload.js +406 -0
  75. package/dist/vtc/badges/mine/decline/0.1/payload.js.map +1 -0
  76. package/dist/vtc/badges/mine/hide/0.1/payload.d.ts +1093 -0
  77. package/dist/vtc/badges/mine/hide/0.1/payload.d.ts.map +1 -0
  78. package/dist/vtc/badges/mine/hide/0.1/payload.js +630 -0
  79. package/dist/vtc/badges/mine/hide/0.1/payload.js.map +1 -0
  80. package/dist/vtc/badges/mine/list/0.1/payload.d.ts +2009 -0
  81. package/dist/vtc/badges/mine/list/0.1/payload.d.ts.map +1 -0
  82. package/dist/vtc/badges/mine/list/0.1/payload.js +1149 -0
  83. package/dist/vtc/badges/mine/list/0.1/payload.js.map +1 -0
  84. package/dist/vtc/badges/mine/show/0.1/payload.d.ts +1093 -0
  85. package/dist/vtc/badges/mine/show/0.1/payload.d.ts.map +1 -0
  86. package/dist/vtc/badges/mine/show/0.1/payload.js +630 -0
  87. package/dist/vtc/badges/mine/show/0.1/payload.js.map +1 -0
  88. package/dist/vtc/badges/promote/0.1/payload.d.ts +1757 -0
  89. package/dist/vtc/badges/promote/0.1/payload.d.ts.map +1 -0
  90. package/dist/vtc/badges/promote/0.1/payload.js +1018 -0
  91. package/dist/vtc/badges/promote/0.1/payload.js.map +1 -0
  92. package/dist/vtc/badges/retire/0.1/payload.d.ts +904 -0
  93. package/dist/vtc/badges/retire/0.1/payload.d.ts.map +1 -0
  94. package/dist/vtc/badges/retire/0.1/payload.js +524 -0
  95. package/dist/vtc/badges/retire/0.1/payload.js.map +1 -0
  96. package/dist/vtc/badges/settings/show/0.1/payload.d.ts +731 -0
  97. package/dist/vtc/badges/settings/show/0.1/payload.d.ts.map +1 -0
  98. package/dist/vtc/badges/settings/show/0.1/payload.js +421 -0
  99. package/dist/vtc/badges/settings/show/0.1/payload.js.map +1 -0
  100. package/dist/vtc/badges/settings/update/0.1/payload.d.ts +775 -0
  101. package/dist/vtc/badges/settings/update/0.1/payload.d.ts.map +1 -0
  102. package/dist/vtc/badges/settings/update/0.1/payload.js +444 -0
  103. package/dist/vtc/badges/settings/update/0.1/payload.js.map +1 -0
  104. package/dist/vtc/badges/show/0.1/payload.d.ts +1056 -0
  105. package/dist/vtc/badges/show/0.1/payload.d.ts.map +1 -0
  106. package/dist/vtc/badges/show/0.1/payload.js +613 -0
  107. package/dist/vtc/badges/show/0.1/payload.js.map +1 -0
  108. package/dist/vtc/badges/update/0.1/payload.d.ts +1033 -0
  109. package/dist/vtc/badges/update/0.1/payload.d.ts.map +1 -0
  110. package/dist/vtc/badges/update/0.1/payload.js +588 -0
  111. package/dist/vtc/badges/update/0.1/payload.js.map +1 -0
  112. package/dist/vtc/badges/wall/show/0.1/payload.d.ts +1099 -0
  113. package/dist/vtc/badges/wall/show/0.1/payload.d.ts.map +1 -0
  114. package/dist/vtc/badges/wall/show/0.1/payload.js +634 -0
  115. package/dist/vtc/badges/wall/show/0.1/payload.js.map +1 -0
  116. package/dist/vtc/groups/create/0.1/payload.d.ts +42 -2
  117. package/dist/vtc/groups/create/0.1/payload.d.ts.map +1 -1
  118. package/dist/vtc/groups/create/0.1/payload.js +20 -0
  119. package/dist/vtc/groups/create/0.1/payload.js.map +1 -1
  120. package/dist/vtc/groups/list/0.1/payload.d.ts +42 -2
  121. package/dist/vtc/groups/list/0.1/payload.d.ts.map +1 -1
  122. package/dist/vtc/groups/list/0.1/payload.js +20 -0
  123. package/dist/vtc/groups/list/0.1/payload.js.map +1 -1
  124. package/dist/vtc/groups/list/0.2/payload.d.ts +42 -2
  125. package/dist/vtc/groups/list/0.2/payload.d.ts.map +1 -1
  126. package/dist/vtc/groups/list/0.2/payload.js +20 -0
  127. package/dist/vtc/groups/list/0.2/payload.js.map +1 -1
  128. package/dist/vtc/groups/show/0.1/payload.d.ts +42 -2
  129. package/dist/vtc/groups/show/0.1/payload.d.ts.map +1 -1
  130. package/dist/vtc/groups/show/0.1/payload.js +20 -0
  131. package/dist/vtc/groups/show/0.1/payload.js.map +1 -1
  132. package/dist/vtc/groups/update/0.1/payload.d.ts +42 -2
  133. package/dist/vtc/groups/update/0.1/payload.d.ts.map +1 -1
  134. package/dist/vtc/groups/update/0.1/payload.js +20 -0
  135. package/dist/vtc/groups/update/0.1/payload.js.map +1 -1
  136. package/package.json +1 -1
  137. package/src/_shared/components.ts +243 -0
  138. package/src/index.ts +81 -0
  139. package/src/vtc/badges/_shared/0.1/badge.ts +23 -0
  140. package/src/vtc/badges/awards/list/0.1/payload.ts +830 -0
  141. package/src/vtc/badges/awards/offer/0.1/payload.ts +592 -0
  142. package/src/vtc/badges/awards/revoke/0.1/payload.ts +457 -0
  143. package/src/vtc/badges/awards/share/0.1/payload.ts +446 -0
  144. package/src/vtc/badges/awards/unshare/0.1/payload.ts +446 -0
  145. package/src/vtc/badges/awards/withdraw/0.1/payload.ts +457 -0
  146. package/src/vtc/badges/create/0.1/payload.ts +1137 -0
  147. package/src/vtc/badges/holders/list/0.1/payload.ts +628 -0
  148. package/src/vtc/badges/images/get/0.1/payload.ts +311 -0
  149. package/src/vtc/badges/images/upload/0.1/payload.ts +324 -0
  150. package/src/vtc/badges/kudos/give/0.1/payload.ts +463 -0
  151. package/src/vtc/badges/kudos/list/0.1/payload.ts +1142 -0
  152. package/src/vtc/badges/list/0.1/payload.ts +695 -0
  153. package/src/vtc/badges/mine/accept/0.1/payload.ts +902 -0
  154. package/src/vtc/badges/mine/arrange/0.1/payload.ts +768 -0
  155. package/src/vtc/badges/mine/decline/0.1/payload.ts +446 -0
  156. package/src/vtc/badges/mine/hide/0.1/payload.ts +670 -0
  157. package/src/vtc/badges/mine/list/0.1/payload.ts +1215 -0
  158. package/src/vtc/badges/mine/show/0.1/payload.ts +670 -0
  159. package/src/vtc/badges/promote/0.1/payload.ts +1088 -0
  160. package/src/vtc/badges/retire/0.1/payload.ts +565 -0
  161. package/src/vtc/badges/settings/show/0.1/payload.ts +457 -0
  162. package/src/vtc/badges/settings/update/0.1/payload.ts +490 -0
  163. package/src/vtc/badges/show/0.1/payload.ts +675 -0
  164. package/src/vtc/badges/update/0.1/payload.ts +656 -0
  165. package/src/vtc/badges/wall/show/0.1/payload.ts +684 -0
  166. package/src/vtc/groups/create/0.1/payload.ts +22 -2
  167. package/src/vtc/groups/list/0.1/payload.ts +22 -2
  168. package/src/vtc/groups/list/0.2/payload.ts +22 -2
  169. package/src/vtc/groups/show/0.1/payload.ts +22 -2
  170. package/src/vtc/groups/update/0.1/payload.ts +22 -2
@@ -0,0 +1,984 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/badges/holders/list/0.1/payload.schema.json
4
+ */
5
+ import type { BadgeId, CardBlobRef, EntryFields, EntryId, Ext, FieldValue, VerifiedValue } from "../../../../../_shared/components.js";
6
+ /**
7
+ * Who holds a badge, a page at a time, each holder projected as the directory projects them to the caller, with hidden holders left out and the count stated over those shown. The outer document members are owned by the framework — SPEC §6.3.
8
+ */
9
+ export interface VTCBadgesHoldersListPayload {
10
+ badgeId: BadgeId;
11
+ /**
12
+ * An opaque continuation token from a previous response's `nextCursor`, bound to the caller and the badge; a responder MUST NOT accept a cursor it did not issue.
13
+ */
14
+ cursor?: string;
15
+ /**
16
+ * The most items to return, at most 200; the responder chooses a default (50) and MAY return fewer.
17
+ */
18
+ limit?: number;
19
+ ext?: Ext;
20
+ }
21
+ /**
22
+ * The success response to a vtc/badges/holders/list/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/badges/holders/list/0.1#response.
23
+ */
24
+ export interface VTCBadgesHoldersListResponsePayload {
25
+ /**
26
+ * Holders who show the badge — the number the whole list would have, over every page. Hidden holders are not counted (VTI-BDG-030, VTI-BDG-033).
27
+ */
28
+ total: number;
29
+ /**
30
+ * Newest `latestAt` first.
31
+ *
32
+ * @maxItems 200
33
+ */
34
+ items: {
35
+ entryId: EntryId;
36
+ /**
37
+ * The holder's directory fields the caller may see, projected exactly as vtc/directory/entries/show would project them. Absent when the caller may see none.
38
+ */
39
+ fields?: EntryFields;
40
+ /**
41
+ * Accepted awards of this badge the holder holds (VTI-BDG-022).
42
+ */
43
+ count: number;
44
+ /**
45
+ * When the holder first accepted this badge.
46
+ */
47
+ since: string;
48
+ /**
49
+ * When the holder last accepted an award of this badge.
50
+ */
51
+ latestAt: string;
52
+ }[];
53
+ /**
54
+ * Continuation token for the next page; pass it back as `cursor`. Absent on the last page — never `null`.
55
+ */
56
+ nextCursor?: string;
57
+ ext?: Ext;
58
+ }
59
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
60
+ export type { BadgeId, CardBlobRef, EntryFields, EntryId, Ext, FieldValue, VerifiedValue };
61
+ /** Trust Task type URI. */
62
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/badges/holders/list/0.1";
63
+ /**
64
+ * The earlier version of this specification that this one declares it
65
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
66
+ * `null`. Only the direct declaration — follow the chain with
67
+ * `extendsChain` / `readForSpec`.
68
+ */
69
+ export declare const EXTENDS: string | null;
70
+ /**
71
+ * Why this version is deprecated, or `null` while it is current. A
72
+ * superseded or retired version is still supported, and is withdrawn from
73
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
74
+ * Versions").
75
+ */
76
+ export declare const DEPRECATION: string | null;
77
+ /** Stable alias for this specification's request payload shape. */
78
+ export type Payload = VTCBadgesHoldersListPayload;
79
+ /** Trust Task response type URI (request type URI + "#response"). */
80
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/badges/holders/list/0.1#response";
81
+ /** Stable alias for this specification's success-response payload shape. */
82
+ export type Response = VTCBadgesHoldersListResponsePayload;
83
+ /**
84
+ * This specification's payload schema, as a value.
85
+ *
86
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
87
+ * rather than only as a `.json` file because TypeScript types are erased
88
+ * at runtime: without a schema a consumer has nothing to validate, and
89
+ * every REQUIRED payload member is optional in practice. Cross-file
90
+ * `$ref`s are already inlined, so it needs no resolver.
91
+ */
92
+ export declare const PAYLOAD_SCHEMA: {
93
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
94
+ readonly $id: "https://trusttasks.org/spec/vtc/badges/holders/list/0.1";
95
+ readonly title: "VTC Badges — Holders — List — payload";
96
+ readonly description: "Who holds a badge, a page at a time, each holder projected as the directory projects them to the caller, with hidden holders left out and the count stated over those shown. The outer document members are owned by the framework — SPEC §6.3.";
97
+ readonly type: "object";
98
+ readonly additionalProperties: false;
99
+ readonly required: readonly ["badgeId"];
100
+ readonly properties: {
101
+ readonly badgeId: {
102
+ readonly $ref: "#/$defs/BadgeId";
103
+ };
104
+ readonly cursor: {
105
+ readonly type: "string";
106
+ readonly minLength: 1;
107
+ readonly maxLength: 1024;
108
+ readonly description: "An opaque continuation token from a previous response's `nextCursor`, bound to the caller and the badge; a responder MUST NOT accept a cursor it did not issue.";
109
+ };
110
+ readonly limit: {
111
+ readonly type: "integer";
112
+ readonly minimum: 1;
113
+ readonly maximum: 200;
114
+ readonly description: "The most items to return, at most 200; the responder chooses a default (50) and MAY return fewer.";
115
+ };
116
+ readonly ext: {
117
+ readonly $ref: "#/$defs/Ext";
118
+ };
119
+ };
120
+ readonly $defs: {
121
+ readonly Response: {
122
+ readonly $anchor: "response";
123
+ readonly title: "VTC Badges — Holders — List — response payload";
124
+ readonly description: "The success response to a vtc/badges/holders/list/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/badges/holders/list/0.1#response.";
125
+ readonly type: "object";
126
+ readonly additionalProperties: false;
127
+ readonly required: readonly ["total", "items"];
128
+ readonly properties: {
129
+ readonly total: {
130
+ readonly type: "integer";
131
+ readonly minimum: 0;
132
+ readonly description: "Holders who show the badge — the number the whole list would have, over every page. Hidden holders are not counted (VTI-BDG-030, VTI-BDG-033).";
133
+ };
134
+ readonly items: {
135
+ readonly type: "array";
136
+ readonly maxItems: 200;
137
+ readonly description: "Newest `latestAt` first.";
138
+ readonly items: {
139
+ readonly type: "object";
140
+ readonly additionalProperties: false;
141
+ readonly required: readonly ["entryId", "count", "since", "latestAt"];
142
+ readonly properties: {
143
+ readonly entryId: {
144
+ readonly $ref: "#/$defs/EntryId";
145
+ };
146
+ readonly fields: {
147
+ readonly $ref: "#/$defs/EntryFields";
148
+ readonly description: "The holder's directory fields the caller may see, projected exactly as vtc/directory/entries/show would project them. Absent when the caller may see none.";
149
+ };
150
+ readonly count: {
151
+ readonly type: "integer";
152
+ readonly minimum: 1;
153
+ readonly description: "Accepted awards of this badge the holder holds (VTI-BDG-022).";
154
+ };
155
+ readonly since: {
156
+ readonly type: "string";
157
+ readonly format: "date-time";
158
+ readonly description: "When the holder first accepted this badge.";
159
+ };
160
+ readonly latestAt: {
161
+ readonly type: "string";
162
+ readonly format: "date-time";
163
+ readonly description: "When the holder last accepted an award of this badge.";
164
+ };
165
+ };
166
+ };
167
+ };
168
+ readonly nextCursor: {
169
+ readonly type: "string";
170
+ readonly maxLength: 1024;
171
+ readonly description: "Continuation token for the next page; pass it back as `cursor`. Absent on the last page — never `null`.";
172
+ };
173
+ readonly ext: {
174
+ readonly $ref: "#/$defs/Ext";
175
+ };
176
+ };
177
+ };
178
+ readonly Ext: {
179
+ readonly title: "Ext";
180
+ 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.";
181
+ readonly type: "object";
182
+ readonly minProperties: 1;
183
+ readonly additionalProperties: true;
184
+ readonly propertyNames: {
185
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
186
+ };
187
+ };
188
+ readonly EntryFields: {
189
+ readonly title: "EntryFields";
190
+ readonly description: "The fields of one entry that a particular viewer may see, keyed by field: the intersection of the member's visibility, the community's ceiling and policy, plus any derived fields that intersection admits. A withheld field is ABSENT, never null.";
191
+ readonly type: "object";
192
+ readonly maxProperties: 64;
193
+ readonly propertyNames: {
194
+ readonly $ref: "#/$defs/FieldKey";
195
+ };
196
+ readonly additionalProperties: {
197
+ readonly $ref: "#/$defs/FieldValue";
198
+ };
199
+ };
200
+ readonly FieldValue: {
201
+ readonly title: "FieldValue";
202
+ readonly description: "The value of one field. Which shape a field takes is fixed by its definition's `type`: text-like types (`text`, `longText`, `url`, `email`, `phone`, `enum`, `date` as YYYY-MM-DD, `country` as ISO 3166-1 alpha-2, `did`) are strings; `multiEnum` and the base field `links` are arrays of strings; `image` and the base field `avatar` are a `CardBlobRef`; `claim` is a `VerifiedValue`; the derived base field `personhood` is a boolean.";
203
+ readonly anyOf: readonly [{
204
+ readonly type: "string";
205
+ readonly maxLength: 2000;
206
+ }, {
207
+ readonly type: "boolean";
208
+ }, {
209
+ readonly type: "array";
210
+ readonly maxItems: 32;
211
+ readonly items: {
212
+ readonly type: "string";
213
+ readonly maxLength: 500;
214
+ };
215
+ }, {
216
+ readonly $ref: "#/$defs/CardBlobRef";
217
+ }, {
218
+ readonly $ref: "#/$defs/VerifiedValue";
219
+ }];
220
+ };
221
+ readonly VerifiedValue: {
222
+ readonly title: "VerifiedValue";
223
+ readonly description: "The value of a `credential`-sourced field: a claim the member disclosed from a credential they presented, with the issuer that attests it. A verified value always names its issuer, and a self-asserted value is never shaped as one. The community keeps only the disclosed claim and these facts about it — never the presentation.";
224
+ readonly type: "object";
225
+ readonly additionalProperties: false;
226
+ readonly required: readonly ["value", "issuer", "verifiedAt"];
227
+ readonly properties: {
228
+ readonly value: {
229
+ readonly anyOf: readonly [{
230
+ readonly type: "string";
231
+ readonly maxLength: 2000;
232
+ }, {
233
+ readonly type: "boolean";
234
+ }, {
235
+ readonly type: "number";
236
+ }];
237
+ readonly description: "The disclosed claim value.";
238
+ };
239
+ readonly issuer: {
240
+ readonly type: "string";
241
+ readonly pattern: "^did:";
242
+ readonly maxLength: 2048;
243
+ readonly description: "DID of the credential's issuer, shown as the field's verification badge.";
244
+ };
245
+ readonly credentialType: {
246
+ readonly type: "string";
247
+ readonly minLength: 1;
248
+ readonly maxLength: 128;
249
+ readonly description: "The most specific `type` of the credential the claim came from.";
250
+ };
251
+ readonly verifiedAt: {
252
+ readonly type: "string";
253
+ readonly format: "date-time";
254
+ readonly description: "When the community verified the presentation.";
255
+ };
256
+ readonly validUntil: {
257
+ readonly type: "string";
258
+ readonly format: "date-time";
259
+ readonly description: "When the credential expires, where it does. The community withdraws the value once it passes.";
260
+ };
261
+ };
262
+ };
263
+ readonly CardBlobRef: {
264
+ readonly title: "CardBlobRef";
265
+ readonly description: "A content-addressed image held in the community's blob store — an avatar or an `image` field. At most 256 KiB, images only, re-encoded by the community on upload (vtc/directory/images/upload: metadata stripped, dimensions capped) so its digest does not link the member across communities. A viewer reads the bytes with vtc/directory/images/get, which answers only where the same projection shows the value. `url` and `urlExpiresAt` MAY appear in a projection: a short-lived URL the community checks against the same projection, so a member-only image is never a public URL. A community that does not offer one leaves both out.";
266
+ readonly type: "object";
267
+ readonly additionalProperties: false;
268
+ readonly required: readonly ["sha256", "mediaType"];
269
+ readonly properties: {
270
+ readonly sha256: {
271
+ readonly type: "string";
272
+ readonly pattern: "^[0-9a-f]{64}$";
273
+ readonly description: "Lowercase hex SHA-256 of the stored, re-encoded bytes.";
274
+ };
275
+ readonly mediaType: {
276
+ readonly type: "string";
277
+ readonly enum: readonly ["image/png", "image/jpeg", "image/webp", "image/avif"];
278
+ readonly description: "Media type of the stored bytes.";
279
+ };
280
+ readonly size: {
281
+ readonly type: "integer";
282
+ readonly minimum: 1;
283
+ readonly maximum: 262144;
284
+ readonly description: "Size in bytes of the stored bytes.";
285
+ };
286
+ readonly url: {
287
+ readonly type: "string";
288
+ readonly format: "uri";
289
+ readonly maxLength: 2048;
290
+ readonly description: "Projection only: a URL the viewer can fetch the image from until `urlExpiresAt`.";
291
+ };
292
+ readonly urlExpiresAt: {
293
+ readonly type: "string";
294
+ readonly format: "date-time";
295
+ readonly description: "Projection only: when `url` stops working.";
296
+ };
297
+ };
298
+ };
299
+ readonly FieldKey: {
300
+ readonly title: "FieldKey";
301
+ readonly description: "Identifier of a directory field. A key with no `.` is a BASE field, the same in every community: `displayName`, `nickname`, `avatar`, `pronouns`, `bio`, `links` (written by the member) and `role`, `joinedAt`, `did`, `personhood` (derived from the community's own records, never stored on a card). A community-defined field MUST use a reverse-DNS key (`org.example.employer`), so a base key never collides with one, and a key is never reused with a different meaning once defined.";
302
+ readonly type: "string";
303
+ readonly minLength: 1;
304
+ readonly maxLength: 128;
305
+ readonly pattern: "^([a-z][a-z0-9-]*\\.)*[a-z][a-zA-Z0-9]{0,63}$";
306
+ };
307
+ readonly EntryId: {
308
+ readonly title: "EntryId";
309
+ readonly description: "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.";
310
+ readonly type: "string";
311
+ readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
312
+ };
313
+ readonly BadgeId: {
314
+ readonly title: "BadgeId";
315
+ readonly description: "Opaque identifier of a badge: `bdg_` followed by 16 to 64 base64url characters. Random, community-scoped, never reused (VTI-BDG-001).";
316
+ readonly type: "string";
317
+ readonly pattern: "^bdg_[A-Za-z0-9_-]{16,64}$";
318
+ };
319
+ };
320
+ };
321
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
322
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
323
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
324
+ readonly $ref: "#/$defs/Response";
325
+ readonly $defs: {
326
+ readonly Response: {
327
+ readonly $anchor: "response";
328
+ readonly title: "VTC Badges — Holders — List — response payload";
329
+ readonly description: "The success response to a vtc/badges/holders/list/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/badges/holders/list/0.1#response.";
330
+ readonly type: "object";
331
+ readonly additionalProperties: false;
332
+ readonly required: readonly ["total", "items"];
333
+ readonly properties: {
334
+ readonly total: {
335
+ readonly type: "integer";
336
+ readonly minimum: 0;
337
+ readonly description: "Holders who show the badge — the number the whole list would have, over every page. Hidden holders are not counted (VTI-BDG-030, VTI-BDG-033).";
338
+ };
339
+ readonly items: {
340
+ readonly type: "array";
341
+ readonly maxItems: 200;
342
+ readonly description: "Newest `latestAt` first.";
343
+ readonly items: {
344
+ readonly type: "object";
345
+ readonly additionalProperties: false;
346
+ readonly required: readonly ["entryId", "count", "since", "latestAt"];
347
+ readonly properties: {
348
+ readonly entryId: {
349
+ readonly $ref: "#/$defs/EntryId";
350
+ };
351
+ readonly fields: {
352
+ readonly $ref: "#/$defs/EntryFields";
353
+ readonly description: "The holder's directory fields the caller may see, projected exactly as vtc/directory/entries/show would project them. Absent when the caller may see none.";
354
+ };
355
+ readonly count: {
356
+ readonly type: "integer";
357
+ readonly minimum: 1;
358
+ readonly description: "Accepted awards of this badge the holder holds (VTI-BDG-022).";
359
+ };
360
+ readonly since: {
361
+ readonly type: "string";
362
+ readonly format: "date-time";
363
+ readonly description: "When the holder first accepted this badge.";
364
+ };
365
+ readonly latestAt: {
366
+ readonly type: "string";
367
+ readonly format: "date-time";
368
+ readonly description: "When the holder last accepted an award of this badge.";
369
+ };
370
+ };
371
+ };
372
+ };
373
+ readonly nextCursor: {
374
+ readonly type: "string";
375
+ readonly maxLength: 1024;
376
+ readonly description: "Continuation token for the next page; pass it back as `cursor`. Absent on the last page — never `null`.";
377
+ };
378
+ readonly ext: {
379
+ readonly $ref: "#/$defs/Ext";
380
+ };
381
+ };
382
+ };
383
+ readonly Ext: {
384
+ readonly title: "Ext";
385
+ 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.";
386
+ readonly type: "object";
387
+ readonly minProperties: 1;
388
+ readonly additionalProperties: true;
389
+ readonly propertyNames: {
390
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
391
+ };
392
+ };
393
+ readonly EntryFields: {
394
+ readonly title: "EntryFields";
395
+ readonly description: "The fields of one entry that a particular viewer may see, keyed by field: the intersection of the member's visibility, the community's ceiling and policy, plus any derived fields that intersection admits. A withheld field is ABSENT, never null.";
396
+ readonly type: "object";
397
+ readonly maxProperties: 64;
398
+ readonly propertyNames: {
399
+ readonly $ref: "#/$defs/FieldKey";
400
+ };
401
+ readonly additionalProperties: {
402
+ readonly $ref: "#/$defs/FieldValue";
403
+ };
404
+ };
405
+ readonly FieldValue: {
406
+ readonly title: "FieldValue";
407
+ readonly description: "The value of one field. Which shape a field takes is fixed by its definition's `type`: text-like types (`text`, `longText`, `url`, `email`, `phone`, `enum`, `date` as YYYY-MM-DD, `country` as ISO 3166-1 alpha-2, `did`) are strings; `multiEnum` and the base field `links` are arrays of strings; `image` and the base field `avatar` are a `CardBlobRef`; `claim` is a `VerifiedValue`; the derived base field `personhood` is a boolean.";
408
+ readonly anyOf: readonly [{
409
+ readonly type: "string";
410
+ readonly maxLength: 2000;
411
+ }, {
412
+ readonly type: "boolean";
413
+ }, {
414
+ readonly type: "array";
415
+ readonly maxItems: 32;
416
+ readonly items: {
417
+ readonly type: "string";
418
+ readonly maxLength: 500;
419
+ };
420
+ }, {
421
+ readonly $ref: "#/$defs/CardBlobRef";
422
+ }, {
423
+ readonly $ref: "#/$defs/VerifiedValue";
424
+ }];
425
+ };
426
+ readonly VerifiedValue: {
427
+ readonly title: "VerifiedValue";
428
+ readonly description: "The value of a `credential`-sourced field: a claim the member disclosed from a credential they presented, with the issuer that attests it. A verified value always names its issuer, and a self-asserted value is never shaped as one. The community keeps only the disclosed claim and these facts about it — never the presentation.";
429
+ readonly type: "object";
430
+ readonly additionalProperties: false;
431
+ readonly required: readonly ["value", "issuer", "verifiedAt"];
432
+ readonly properties: {
433
+ readonly value: {
434
+ readonly anyOf: readonly [{
435
+ readonly type: "string";
436
+ readonly maxLength: 2000;
437
+ }, {
438
+ readonly type: "boolean";
439
+ }, {
440
+ readonly type: "number";
441
+ }];
442
+ readonly description: "The disclosed claim value.";
443
+ };
444
+ readonly issuer: {
445
+ readonly type: "string";
446
+ readonly pattern: "^did:";
447
+ readonly maxLength: 2048;
448
+ readonly description: "DID of the credential's issuer, shown as the field's verification badge.";
449
+ };
450
+ readonly credentialType: {
451
+ readonly type: "string";
452
+ readonly minLength: 1;
453
+ readonly maxLength: 128;
454
+ readonly description: "The most specific `type` of the credential the claim came from.";
455
+ };
456
+ readonly verifiedAt: {
457
+ readonly type: "string";
458
+ readonly format: "date-time";
459
+ readonly description: "When the community verified the presentation.";
460
+ };
461
+ readonly validUntil: {
462
+ readonly type: "string";
463
+ readonly format: "date-time";
464
+ readonly description: "When the credential expires, where it does. The community withdraws the value once it passes.";
465
+ };
466
+ };
467
+ };
468
+ readonly CardBlobRef: {
469
+ readonly title: "CardBlobRef";
470
+ readonly description: "A content-addressed image held in the community's blob store — an avatar or an `image` field. At most 256 KiB, images only, re-encoded by the community on upload (vtc/directory/images/upload: metadata stripped, dimensions capped) so its digest does not link the member across communities. A viewer reads the bytes with vtc/directory/images/get, which answers only where the same projection shows the value. `url` and `urlExpiresAt` MAY appear in a projection: a short-lived URL the community checks against the same projection, so a member-only image is never a public URL. A community that does not offer one leaves both out.";
471
+ readonly type: "object";
472
+ readonly additionalProperties: false;
473
+ readonly required: readonly ["sha256", "mediaType"];
474
+ readonly properties: {
475
+ readonly sha256: {
476
+ readonly type: "string";
477
+ readonly pattern: "^[0-9a-f]{64}$";
478
+ readonly description: "Lowercase hex SHA-256 of the stored, re-encoded bytes.";
479
+ };
480
+ readonly mediaType: {
481
+ readonly type: "string";
482
+ readonly enum: readonly ["image/png", "image/jpeg", "image/webp", "image/avif"];
483
+ readonly description: "Media type of the stored bytes.";
484
+ };
485
+ readonly size: {
486
+ readonly type: "integer";
487
+ readonly minimum: 1;
488
+ readonly maximum: 262144;
489
+ readonly description: "Size in bytes of the stored bytes.";
490
+ };
491
+ readonly url: {
492
+ readonly type: "string";
493
+ readonly format: "uri";
494
+ readonly maxLength: 2048;
495
+ readonly description: "Projection only: a URL the viewer can fetch the image from until `urlExpiresAt`.";
496
+ };
497
+ readonly urlExpiresAt: {
498
+ readonly type: "string";
499
+ readonly format: "date-time";
500
+ readonly description: "Projection only: when `url` stops working.";
501
+ };
502
+ };
503
+ };
504
+ readonly FieldKey: {
505
+ readonly title: "FieldKey";
506
+ readonly description: "Identifier of a directory field. A key with no `.` is a BASE field, the same in every community: `displayName`, `nickname`, `avatar`, `pronouns`, `bio`, `links` (written by the member) and `role`, `joinedAt`, `did`, `personhood` (derived from the community's own records, never stored on a card). A community-defined field MUST use a reverse-DNS key (`org.example.employer`), so a base key never collides with one, and a key is never reused with a different meaning once defined.";
507
+ readonly type: "string";
508
+ readonly minLength: 1;
509
+ readonly maxLength: 128;
510
+ readonly pattern: "^([a-z][a-z0-9-]*\\.)*[a-z][a-zA-Z0-9]{0,63}$";
511
+ };
512
+ readonly EntryId: {
513
+ readonly title: "EntryId";
514
+ readonly description: "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.";
515
+ readonly type: "string";
516
+ readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
517
+ };
518
+ readonly BadgeId: {
519
+ readonly title: "BadgeId";
520
+ readonly description: "Opaque identifier of a badge: `bdg_` followed by 16 to 64 base64url characters. Random, community-scoped, never reused (VTI-BDG-001).";
521
+ readonly type: "string";
522
+ readonly pattern: "^bdg_[A-Za-z0-9_-]{16,64}$";
523
+ };
524
+ };
525
+ };
526
+ /**
527
+ * SPEC.md §7.2 policy for the request variant, from this specification's
528
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
529
+ * per-specification and cannot be derived from the document alone, and
530
+ * item 2 needs the schema this carries.
531
+ */
532
+ export declare const SPEC: {
533
+ readonly typeUri: "https://trusttasks.org/spec/vtc/badges/holders/list/0.1";
534
+ readonly isBearer: false;
535
+ readonly isProofRequired: true;
536
+ readonly isRecipientRequired: true;
537
+ readonly isIssuedAtRequired: false;
538
+ readonly payloadSchema: {
539
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
540
+ readonly $id: "https://trusttasks.org/spec/vtc/badges/holders/list/0.1";
541
+ readonly title: "VTC Badges — Holders — List — payload";
542
+ readonly description: "Who holds a badge, a page at a time, each holder projected as the directory projects them to the caller, with hidden holders left out and the count stated over those shown. The outer document members are owned by the framework — SPEC §6.3.";
543
+ readonly type: "object";
544
+ readonly additionalProperties: false;
545
+ readonly required: readonly ["badgeId"];
546
+ readonly properties: {
547
+ readonly badgeId: {
548
+ readonly $ref: "#/$defs/BadgeId";
549
+ };
550
+ readonly cursor: {
551
+ readonly type: "string";
552
+ readonly minLength: 1;
553
+ readonly maxLength: 1024;
554
+ readonly description: "An opaque continuation token from a previous response's `nextCursor`, bound to the caller and the badge; a responder MUST NOT accept a cursor it did not issue.";
555
+ };
556
+ readonly limit: {
557
+ readonly type: "integer";
558
+ readonly minimum: 1;
559
+ readonly maximum: 200;
560
+ readonly description: "The most items to return, at most 200; the responder chooses a default (50) and MAY return fewer.";
561
+ };
562
+ readonly ext: {
563
+ readonly $ref: "#/$defs/Ext";
564
+ };
565
+ };
566
+ readonly $defs: {
567
+ readonly Response: {
568
+ readonly $anchor: "response";
569
+ readonly title: "VTC Badges — Holders — List — response payload";
570
+ readonly description: "The success response to a vtc/badges/holders/list/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/badges/holders/list/0.1#response.";
571
+ readonly type: "object";
572
+ readonly additionalProperties: false;
573
+ readonly required: readonly ["total", "items"];
574
+ readonly properties: {
575
+ readonly total: {
576
+ readonly type: "integer";
577
+ readonly minimum: 0;
578
+ readonly description: "Holders who show the badge — the number the whole list would have, over every page. Hidden holders are not counted (VTI-BDG-030, VTI-BDG-033).";
579
+ };
580
+ readonly items: {
581
+ readonly type: "array";
582
+ readonly maxItems: 200;
583
+ readonly description: "Newest `latestAt` first.";
584
+ readonly items: {
585
+ readonly type: "object";
586
+ readonly additionalProperties: false;
587
+ readonly required: readonly ["entryId", "count", "since", "latestAt"];
588
+ readonly properties: {
589
+ readonly entryId: {
590
+ readonly $ref: "#/$defs/EntryId";
591
+ };
592
+ readonly fields: {
593
+ readonly $ref: "#/$defs/EntryFields";
594
+ readonly description: "The holder's directory fields the caller may see, projected exactly as vtc/directory/entries/show would project them. Absent when the caller may see none.";
595
+ };
596
+ readonly count: {
597
+ readonly type: "integer";
598
+ readonly minimum: 1;
599
+ readonly description: "Accepted awards of this badge the holder holds (VTI-BDG-022).";
600
+ };
601
+ readonly since: {
602
+ readonly type: "string";
603
+ readonly format: "date-time";
604
+ readonly description: "When the holder first accepted this badge.";
605
+ };
606
+ readonly latestAt: {
607
+ readonly type: "string";
608
+ readonly format: "date-time";
609
+ readonly description: "When the holder last accepted an award of this badge.";
610
+ };
611
+ };
612
+ };
613
+ };
614
+ readonly nextCursor: {
615
+ readonly type: "string";
616
+ readonly maxLength: 1024;
617
+ readonly description: "Continuation token for the next page; pass it back as `cursor`. Absent on the last page — never `null`.";
618
+ };
619
+ readonly ext: {
620
+ readonly $ref: "#/$defs/Ext";
621
+ };
622
+ };
623
+ };
624
+ readonly Ext: {
625
+ readonly title: "Ext";
626
+ 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.";
627
+ readonly type: "object";
628
+ readonly minProperties: 1;
629
+ readonly additionalProperties: true;
630
+ readonly propertyNames: {
631
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
632
+ };
633
+ };
634
+ readonly EntryFields: {
635
+ readonly title: "EntryFields";
636
+ readonly description: "The fields of one entry that a particular viewer may see, keyed by field: the intersection of the member's visibility, the community's ceiling and policy, plus any derived fields that intersection admits. A withheld field is ABSENT, never null.";
637
+ readonly type: "object";
638
+ readonly maxProperties: 64;
639
+ readonly propertyNames: {
640
+ readonly $ref: "#/$defs/FieldKey";
641
+ };
642
+ readonly additionalProperties: {
643
+ readonly $ref: "#/$defs/FieldValue";
644
+ };
645
+ };
646
+ readonly FieldValue: {
647
+ readonly title: "FieldValue";
648
+ readonly description: "The value of one field. Which shape a field takes is fixed by its definition's `type`: text-like types (`text`, `longText`, `url`, `email`, `phone`, `enum`, `date` as YYYY-MM-DD, `country` as ISO 3166-1 alpha-2, `did`) are strings; `multiEnum` and the base field `links` are arrays of strings; `image` and the base field `avatar` are a `CardBlobRef`; `claim` is a `VerifiedValue`; the derived base field `personhood` is a boolean.";
649
+ readonly anyOf: readonly [{
650
+ readonly type: "string";
651
+ readonly maxLength: 2000;
652
+ }, {
653
+ readonly type: "boolean";
654
+ }, {
655
+ readonly type: "array";
656
+ readonly maxItems: 32;
657
+ readonly items: {
658
+ readonly type: "string";
659
+ readonly maxLength: 500;
660
+ };
661
+ }, {
662
+ readonly $ref: "#/$defs/CardBlobRef";
663
+ }, {
664
+ readonly $ref: "#/$defs/VerifiedValue";
665
+ }];
666
+ };
667
+ readonly VerifiedValue: {
668
+ readonly title: "VerifiedValue";
669
+ readonly description: "The value of a `credential`-sourced field: a claim the member disclosed from a credential they presented, with the issuer that attests it. A verified value always names its issuer, and a self-asserted value is never shaped as one. The community keeps only the disclosed claim and these facts about it — never the presentation.";
670
+ readonly type: "object";
671
+ readonly additionalProperties: false;
672
+ readonly required: readonly ["value", "issuer", "verifiedAt"];
673
+ readonly properties: {
674
+ readonly value: {
675
+ readonly anyOf: readonly [{
676
+ readonly type: "string";
677
+ readonly maxLength: 2000;
678
+ }, {
679
+ readonly type: "boolean";
680
+ }, {
681
+ readonly type: "number";
682
+ }];
683
+ readonly description: "The disclosed claim value.";
684
+ };
685
+ readonly issuer: {
686
+ readonly type: "string";
687
+ readonly pattern: "^did:";
688
+ readonly maxLength: 2048;
689
+ readonly description: "DID of the credential's issuer, shown as the field's verification badge.";
690
+ };
691
+ readonly credentialType: {
692
+ readonly type: "string";
693
+ readonly minLength: 1;
694
+ readonly maxLength: 128;
695
+ readonly description: "The most specific `type` of the credential the claim came from.";
696
+ };
697
+ readonly verifiedAt: {
698
+ readonly type: "string";
699
+ readonly format: "date-time";
700
+ readonly description: "When the community verified the presentation.";
701
+ };
702
+ readonly validUntil: {
703
+ readonly type: "string";
704
+ readonly format: "date-time";
705
+ readonly description: "When the credential expires, where it does. The community withdraws the value once it passes.";
706
+ };
707
+ };
708
+ };
709
+ readonly CardBlobRef: {
710
+ readonly title: "CardBlobRef";
711
+ readonly description: "A content-addressed image held in the community's blob store — an avatar or an `image` field. At most 256 KiB, images only, re-encoded by the community on upload (vtc/directory/images/upload: metadata stripped, dimensions capped) so its digest does not link the member across communities. A viewer reads the bytes with vtc/directory/images/get, which answers only where the same projection shows the value. `url` and `urlExpiresAt` MAY appear in a projection: a short-lived URL the community checks against the same projection, so a member-only image is never a public URL. A community that does not offer one leaves both out.";
712
+ readonly type: "object";
713
+ readonly additionalProperties: false;
714
+ readonly required: readonly ["sha256", "mediaType"];
715
+ readonly properties: {
716
+ readonly sha256: {
717
+ readonly type: "string";
718
+ readonly pattern: "^[0-9a-f]{64}$";
719
+ readonly description: "Lowercase hex SHA-256 of the stored, re-encoded bytes.";
720
+ };
721
+ readonly mediaType: {
722
+ readonly type: "string";
723
+ readonly enum: readonly ["image/png", "image/jpeg", "image/webp", "image/avif"];
724
+ readonly description: "Media type of the stored bytes.";
725
+ };
726
+ readonly size: {
727
+ readonly type: "integer";
728
+ readonly minimum: 1;
729
+ readonly maximum: 262144;
730
+ readonly description: "Size in bytes of the stored bytes.";
731
+ };
732
+ readonly url: {
733
+ readonly type: "string";
734
+ readonly format: "uri";
735
+ readonly maxLength: 2048;
736
+ readonly description: "Projection only: a URL the viewer can fetch the image from until `urlExpiresAt`.";
737
+ };
738
+ readonly urlExpiresAt: {
739
+ readonly type: "string";
740
+ readonly format: "date-time";
741
+ readonly description: "Projection only: when `url` stops working.";
742
+ };
743
+ };
744
+ };
745
+ readonly FieldKey: {
746
+ readonly title: "FieldKey";
747
+ readonly description: "Identifier of a directory field. A key with no `.` is a BASE field, the same in every community: `displayName`, `nickname`, `avatar`, `pronouns`, `bio`, `links` (written by the member) and `role`, `joinedAt`, `did`, `personhood` (derived from the community's own records, never stored on a card). A community-defined field MUST use a reverse-DNS key (`org.example.employer`), so a base key never collides with one, and a key is never reused with a different meaning once defined.";
748
+ readonly type: "string";
749
+ readonly minLength: 1;
750
+ readonly maxLength: 128;
751
+ readonly pattern: "^([a-z][a-z0-9-]*\\.)*[a-z][a-zA-Z0-9]{0,63}$";
752
+ };
753
+ readonly EntryId: {
754
+ readonly title: "EntryId";
755
+ readonly description: "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.";
756
+ readonly type: "string";
757
+ readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
758
+ };
759
+ readonly BadgeId: {
760
+ readonly title: "BadgeId";
761
+ readonly description: "Opaque identifier of a badge: `bdg_` followed by 16 to 64 base64url characters. Random, community-scoped, never reused (VTI-BDG-001).";
762
+ readonly type: "string";
763
+ readonly pattern: "^bdg_[A-Za-z0-9_-]{16,64}$";
764
+ };
765
+ };
766
+ };
767
+ };
768
+ /**
769
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
770
+ * tracks the *issuer* party's requirement because a response swaps the
771
+ * parties (§7.3 item 5).
772
+ */
773
+ export declare const RESPONSE_SPEC: {
774
+ readonly typeUri: "https://trusttasks.org/spec/vtc/badges/holders/list/0.1#response";
775
+ readonly isBearer: false;
776
+ readonly isProofRequired: true;
777
+ readonly isRecipientRequired: true;
778
+ readonly isIssuedAtRequired: false;
779
+ readonly payloadSchema: {
780
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
781
+ readonly $ref: "#/$defs/Response";
782
+ readonly $defs: {
783
+ readonly Response: {
784
+ readonly $anchor: "response";
785
+ readonly title: "VTC Badges — Holders — List — response payload";
786
+ readonly description: "The success response to a vtc/badges/holders/list/0.1 request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vtc/badges/holders/list/0.1#response.";
787
+ readonly type: "object";
788
+ readonly additionalProperties: false;
789
+ readonly required: readonly ["total", "items"];
790
+ readonly properties: {
791
+ readonly total: {
792
+ readonly type: "integer";
793
+ readonly minimum: 0;
794
+ readonly description: "Holders who show the badge — the number the whole list would have, over every page. Hidden holders are not counted (VTI-BDG-030, VTI-BDG-033).";
795
+ };
796
+ readonly items: {
797
+ readonly type: "array";
798
+ readonly maxItems: 200;
799
+ readonly description: "Newest `latestAt` first.";
800
+ readonly items: {
801
+ readonly type: "object";
802
+ readonly additionalProperties: false;
803
+ readonly required: readonly ["entryId", "count", "since", "latestAt"];
804
+ readonly properties: {
805
+ readonly entryId: {
806
+ readonly $ref: "#/$defs/EntryId";
807
+ };
808
+ readonly fields: {
809
+ readonly $ref: "#/$defs/EntryFields";
810
+ readonly description: "The holder's directory fields the caller may see, projected exactly as vtc/directory/entries/show would project them. Absent when the caller may see none.";
811
+ };
812
+ readonly count: {
813
+ readonly type: "integer";
814
+ readonly minimum: 1;
815
+ readonly description: "Accepted awards of this badge the holder holds (VTI-BDG-022).";
816
+ };
817
+ readonly since: {
818
+ readonly type: "string";
819
+ readonly format: "date-time";
820
+ readonly description: "When the holder first accepted this badge.";
821
+ };
822
+ readonly latestAt: {
823
+ readonly type: "string";
824
+ readonly format: "date-time";
825
+ readonly description: "When the holder last accepted an award of this badge.";
826
+ };
827
+ };
828
+ };
829
+ };
830
+ readonly nextCursor: {
831
+ readonly type: "string";
832
+ readonly maxLength: 1024;
833
+ readonly description: "Continuation token for the next page; pass it back as `cursor`. Absent on the last page — never `null`.";
834
+ };
835
+ readonly ext: {
836
+ readonly $ref: "#/$defs/Ext";
837
+ };
838
+ };
839
+ };
840
+ readonly Ext: {
841
+ readonly title: "Ext";
842
+ 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.";
843
+ readonly type: "object";
844
+ readonly minProperties: 1;
845
+ readonly additionalProperties: true;
846
+ readonly propertyNames: {
847
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
848
+ };
849
+ };
850
+ readonly EntryFields: {
851
+ readonly title: "EntryFields";
852
+ readonly description: "The fields of one entry that a particular viewer may see, keyed by field: the intersection of the member's visibility, the community's ceiling and policy, plus any derived fields that intersection admits. A withheld field is ABSENT, never null.";
853
+ readonly type: "object";
854
+ readonly maxProperties: 64;
855
+ readonly propertyNames: {
856
+ readonly $ref: "#/$defs/FieldKey";
857
+ };
858
+ readonly additionalProperties: {
859
+ readonly $ref: "#/$defs/FieldValue";
860
+ };
861
+ };
862
+ readonly FieldValue: {
863
+ readonly title: "FieldValue";
864
+ readonly description: "The value of one field. Which shape a field takes is fixed by its definition's `type`: text-like types (`text`, `longText`, `url`, `email`, `phone`, `enum`, `date` as YYYY-MM-DD, `country` as ISO 3166-1 alpha-2, `did`) are strings; `multiEnum` and the base field `links` are arrays of strings; `image` and the base field `avatar` are a `CardBlobRef`; `claim` is a `VerifiedValue`; the derived base field `personhood` is a boolean.";
865
+ readonly anyOf: readonly [{
866
+ readonly type: "string";
867
+ readonly maxLength: 2000;
868
+ }, {
869
+ readonly type: "boolean";
870
+ }, {
871
+ readonly type: "array";
872
+ readonly maxItems: 32;
873
+ readonly items: {
874
+ readonly type: "string";
875
+ readonly maxLength: 500;
876
+ };
877
+ }, {
878
+ readonly $ref: "#/$defs/CardBlobRef";
879
+ }, {
880
+ readonly $ref: "#/$defs/VerifiedValue";
881
+ }];
882
+ };
883
+ readonly VerifiedValue: {
884
+ readonly title: "VerifiedValue";
885
+ readonly description: "The value of a `credential`-sourced field: a claim the member disclosed from a credential they presented, with the issuer that attests it. A verified value always names its issuer, and a self-asserted value is never shaped as one. The community keeps only the disclosed claim and these facts about it — never the presentation.";
886
+ readonly type: "object";
887
+ readonly additionalProperties: false;
888
+ readonly required: readonly ["value", "issuer", "verifiedAt"];
889
+ readonly properties: {
890
+ readonly value: {
891
+ readonly anyOf: readonly [{
892
+ readonly type: "string";
893
+ readonly maxLength: 2000;
894
+ }, {
895
+ readonly type: "boolean";
896
+ }, {
897
+ readonly type: "number";
898
+ }];
899
+ readonly description: "The disclosed claim value.";
900
+ };
901
+ readonly issuer: {
902
+ readonly type: "string";
903
+ readonly pattern: "^did:";
904
+ readonly maxLength: 2048;
905
+ readonly description: "DID of the credential's issuer, shown as the field's verification badge.";
906
+ };
907
+ readonly credentialType: {
908
+ readonly type: "string";
909
+ readonly minLength: 1;
910
+ readonly maxLength: 128;
911
+ readonly description: "The most specific `type` of the credential the claim came from.";
912
+ };
913
+ readonly verifiedAt: {
914
+ readonly type: "string";
915
+ readonly format: "date-time";
916
+ readonly description: "When the community verified the presentation.";
917
+ };
918
+ readonly validUntil: {
919
+ readonly type: "string";
920
+ readonly format: "date-time";
921
+ readonly description: "When the credential expires, where it does. The community withdraws the value once it passes.";
922
+ };
923
+ };
924
+ };
925
+ readonly CardBlobRef: {
926
+ readonly title: "CardBlobRef";
927
+ readonly description: "A content-addressed image held in the community's blob store — an avatar or an `image` field. At most 256 KiB, images only, re-encoded by the community on upload (vtc/directory/images/upload: metadata stripped, dimensions capped) so its digest does not link the member across communities. A viewer reads the bytes with vtc/directory/images/get, which answers only where the same projection shows the value. `url` and `urlExpiresAt` MAY appear in a projection: a short-lived URL the community checks against the same projection, so a member-only image is never a public URL. A community that does not offer one leaves both out.";
928
+ readonly type: "object";
929
+ readonly additionalProperties: false;
930
+ readonly required: readonly ["sha256", "mediaType"];
931
+ readonly properties: {
932
+ readonly sha256: {
933
+ readonly type: "string";
934
+ readonly pattern: "^[0-9a-f]{64}$";
935
+ readonly description: "Lowercase hex SHA-256 of the stored, re-encoded bytes.";
936
+ };
937
+ readonly mediaType: {
938
+ readonly type: "string";
939
+ readonly enum: readonly ["image/png", "image/jpeg", "image/webp", "image/avif"];
940
+ readonly description: "Media type of the stored bytes.";
941
+ };
942
+ readonly size: {
943
+ readonly type: "integer";
944
+ readonly minimum: 1;
945
+ readonly maximum: 262144;
946
+ readonly description: "Size in bytes of the stored bytes.";
947
+ };
948
+ readonly url: {
949
+ readonly type: "string";
950
+ readonly format: "uri";
951
+ readonly maxLength: 2048;
952
+ readonly description: "Projection only: a URL the viewer can fetch the image from until `urlExpiresAt`.";
953
+ };
954
+ readonly urlExpiresAt: {
955
+ readonly type: "string";
956
+ readonly format: "date-time";
957
+ readonly description: "Projection only: when `url` stops working.";
958
+ };
959
+ };
960
+ };
961
+ readonly FieldKey: {
962
+ readonly title: "FieldKey";
963
+ readonly description: "Identifier of a directory field. A key with no `.` is a BASE field, the same in every community: `displayName`, `nickname`, `avatar`, `pronouns`, `bio`, `links` (written by the member) and `role`, `joinedAt`, `did`, `personhood` (derived from the community's own records, never stored on a card). A community-defined field MUST use a reverse-DNS key (`org.example.employer`), so a base key never collides with one, and a key is never reused with a different meaning once defined.";
964
+ readonly type: "string";
965
+ readonly minLength: 1;
966
+ readonly maxLength: 128;
967
+ readonly pattern: "^([a-z][a-z0-9-]*\\.)*[a-z][a-zA-Z0-9]{0,63}$";
968
+ };
969
+ readonly EntryId: {
970
+ readonly title: "EntryId";
971
+ readonly description: "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.";
972
+ readonly type: "string";
973
+ readonly pattern: "^dir_[A-Za-z0-9_-]{16,64}$";
974
+ };
975
+ readonly BadgeId: {
976
+ readonly title: "BadgeId";
977
+ readonly description: "Opaque identifier of a badge: `bdg_` followed by 16 to 64 base64url characters. Random, community-scoped, never reused (VTI-BDG-001).";
978
+ readonly type: "string";
979
+ readonly pattern: "^bdg_[A-Za-z0-9_-]{16,64}$";
980
+ };
981
+ };
982
+ };
983
+ };
984
+ //# sourceMappingURL=payload.d.ts.map