@openvtc/trust-tasks 0.28.17 → 0.28.19

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 (187) hide show
  1. package/CHANGELOG.md +68 -0
  2. package/dist/_shared/components.d.ts +254 -1
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/index.d.ts +87 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +87 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/vta/collection/_shared/0.1/collection.d.ts +2 -2
  9. package/dist/vta/collection/_shared/0.1/collection.d.ts.map +1 -1
  10. package/dist/vta/collection/list/0.1/payload.d.ts +4 -4
  11. package/dist/vta/collection/list/0.1/payload.js +2 -2
  12. package/dist/vta/collection/list/0.1/payload.js.map +1 -1
  13. package/dist/vta/collection/settings/set/0.1/payload.d.ts +469 -0
  14. package/dist/vta/collection/settings/set/0.1/payload.d.ts.map +1 -0
  15. package/dist/vta/collection/settings/set/0.1/payload.js +275 -0
  16. package/dist/vta/collection/settings/set/0.1/payload.js.map +1 -0
  17. package/dist/vta/collection/settings/show/0.1/payload.d.ts +437 -0
  18. package/dist/vta/collection/settings/show/0.1/payload.d.ts.map +1 -0
  19. package/dist/vta/collection/settings/show/0.1/payload.js +260 -0
  20. package/dist/vta/collection/settings/show/0.1/payload.js.map +1 -0
  21. package/dist/vtc/badges/_shared/0.1/badge.d.ts +22 -0
  22. package/dist/vtc/badges/_shared/0.1/badge.d.ts.map +1 -0
  23. package/dist/vtc/badges/_shared/0.1/badge.js +6 -0
  24. package/dist/vtc/badges/_shared/0.1/badge.js.map +1 -0
  25. package/dist/vtc/badges/awards/list/0.1/payload.d.ts +1228 -0
  26. package/dist/vtc/badges/awards/list/0.1/payload.d.ts.map +1 -0
  27. package/dist/vtc/badges/awards/list/0.1/payload.js +699 -0
  28. package/dist/vtc/badges/awards/list/0.1/payload.js.map +1 -0
  29. package/dist/vtc/badges/awards/offer/0.1/payload.d.ts +793 -0
  30. package/dist/vtc/badges/awards/offer/0.1/payload.d.ts.map +1 -0
  31. package/dist/vtc/badges/awards/offer/0.1/payload.js +461 -0
  32. package/dist/vtc/badges/awards/offer/0.1/payload.js.map +1 -0
  33. package/dist/vtc/badges/awards/revoke/0.1/payload.d.ts +605 -0
  34. package/dist/vtc/badges/awards/revoke/0.1/payload.d.ts.map +1 -0
  35. package/dist/vtc/badges/awards/revoke/0.1/payload.js +351 -0
  36. package/dist/vtc/badges/awards/revoke/0.1/payload.js.map +1 -0
  37. package/dist/vtc/badges/awards/withdraw/0.1/payload.d.ts +605 -0
  38. package/dist/vtc/badges/awards/withdraw/0.1/payload.d.ts.map +1 -0
  39. package/dist/vtc/badges/awards/withdraw/0.1/payload.js +351 -0
  40. package/dist/vtc/badges/awards/withdraw/0.1/payload.js.map +1 -0
  41. package/dist/vtc/badges/create/0.1/payload.d.ts +1829 -0
  42. package/dist/vtc/badges/create/0.1/payload.d.ts.map +1 -0
  43. package/dist/vtc/badges/create/0.1/payload.js +1051 -0
  44. package/dist/vtc/badges/create/0.1/payload.js.map +1 -0
  45. package/dist/vtc/badges/holders/list/0.1/payload.d.ts +984 -0
  46. package/dist/vtc/badges/holders/list/0.1/payload.d.ts.map +1 -0
  47. package/dist/vtc/badges/holders/list/0.1/payload.js +555 -0
  48. package/dist/vtc/badges/holders/list/0.1/payload.js.map +1 -0
  49. package/dist/vtc/badges/images/get/0.1/payload.d.ts +454 -0
  50. package/dist/vtc/badges/images/get/0.1/payload.d.ts.map +1 -0
  51. package/dist/vtc/badges/images/get/0.1/payload.js +266 -0
  52. package/dist/vtc/badges/images/get/0.1/payload.js.map +1 -0
  53. package/dist/vtc/badges/images/upload/0.1/payload.d.ts +455 -0
  54. package/dist/vtc/badges/images/upload/0.1/payload.d.ts.map +1 -0
  55. package/dist/vtc/badges/images/upload/0.1/payload.js +276 -0
  56. package/dist/vtc/badges/images/upload/0.1/payload.js.map +1 -0
  57. package/dist/vtc/badges/kudos/give/0.1/payload.d.ts +613 -0
  58. package/dist/vtc/badges/kudos/give/0.1/payload.d.ts.map +1 -0
  59. package/dist/vtc/badges/kudos/give/0.1/payload.js +353 -0
  60. package/dist/vtc/badges/kudos/give/0.1/payload.js.map +1 -0
  61. package/dist/vtc/badges/kudos/list/0.1/payload.d.ts +1766 -0
  62. package/dist/vtc/badges/kudos/list/0.1/payload.d.ts.map +1 -0
  63. package/dist/vtc/badges/kudos/list/0.1/payload.js +995 -0
  64. package/dist/vtc/badges/kudos/list/0.1/payload.js.map +1 -0
  65. package/dist/vtc/badges/list/0.1/payload.d.ts +1096 -0
  66. package/dist/vtc/badges/list/0.1/payload.d.ts.map +1 -0
  67. package/dist/vtc/badges/list/0.1/payload.js +617 -0
  68. package/dist/vtc/badges/list/0.1/payload.js.map +1 -0
  69. package/dist/vtc/badges/mine/accept/0.1/payload.d.ts +1376 -0
  70. package/dist/vtc/badges/mine/accept/0.1/payload.d.ts.map +1 -0
  71. package/dist/vtc/badges/mine/accept/0.1/payload.js +799 -0
  72. package/dist/vtc/badges/mine/accept/0.1/payload.js.map +1 -0
  73. package/dist/vtc/badges/mine/arrange/0.1/payload.d.ts +1217 -0
  74. package/dist/vtc/badges/mine/arrange/0.1/payload.d.ts.map +1 -0
  75. package/dist/vtc/badges/mine/arrange/0.1/payload.js +698 -0
  76. package/dist/vtc/badges/mine/arrange/0.1/payload.js.map +1 -0
  77. package/dist/vtc/badges/mine/decline/0.1/payload.d.ts +589 -0
  78. package/dist/vtc/badges/mine/decline/0.1/payload.d.ts.map +1 -0
  79. package/dist/vtc/badges/mine/decline/0.1/payload.js +344 -0
  80. package/dist/vtc/badges/mine/decline/0.1/payload.js.map +1 -0
  81. package/dist/vtc/badges/mine/hide/0.1/payload.d.ts +1093 -0
  82. package/dist/vtc/badges/mine/hide/0.1/payload.d.ts.map +1 -0
  83. package/dist/vtc/badges/mine/hide/0.1/payload.js +630 -0
  84. package/dist/vtc/badges/mine/hide/0.1/payload.js.map +1 -0
  85. package/dist/vtc/badges/mine/list/0.1/payload.d.ts +1897 -0
  86. package/dist/vtc/badges/mine/list/0.1/payload.d.ts.map +1 -0
  87. package/dist/vtc/badges/mine/list/0.1/payload.js +1087 -0
  88. package/dist/vtc/badges/mine/list/0.1/payload.js.map +1 -0
  89. package/dist/vtc/badges/mine/show/0.1/payload.d.ts +1093 -0
  90. package/dist/vtc/badges/mine/show/0.1/payload.d.ts.map +1 -0
  91. package/dist/vtc/badges/mine/show/0.1/payload.js +630 -0
  92. package/dist/vtc/badges/mine/show/0.1/payload.js.map +1 -0
  93. package/dist/vtc/badges/promote/0.1/payload.d.ts +1757 -0
  94. package/dist/vtc/badges/promote/0.1/payload.d.ts.map +1 -0
  95. package/dist/vtc/badges/promote/0.1/payload.js +1018 -0
  96. package/dist/vtc/badges/promote/0.1/payload.js.map +1 -0
  97. package/dist/vtc/badges/retire/0.1/payload.d.ts +904 -0
  98. package/dist/vtc/badges/retire/0.1/payload.d.ts.map +1 -0
  99. package/dist/vtc/badges/retire/0.1/payload.js +524 -0
  100. package/dist/vtc/badges/retire/0.1/payload.js.map +1 -0
  101. package/dist/vtc/badges/settings/show/0.1/payload.d.ts +731 -0
  102. package/dist/vtc/badges/settings/show/0.1/payload.d.ts.map +1 -0
  103. package/dist/vtc/badges/settings/show/0.1/payload.js +421 -0
  104. package/dist/vtc/badges/settings/show/0.1/payload.js.map +1 -0
  105. package/dist/vtc/badges/settings/update/0.1/payload.d.ts +775 -0
  106. package/dist/vtc/badges/settings/update/0.1/payload.d.ts.map +1 -0
  107. package/dist/vtc/badges/settings/update/0.1/payload.js +444 -0
  108. package/dist/vtc/badges/settings/update/0.1/payload.js.map +1 -0
  109. package/dist/vtc/badges/show/0.1/payload.d.ts +1056 -0
  110. package/dist/vtc/badges/show/0.1/payload.d.ts.map +1 -0
  111. package/dist/vtc/badges/show/0.1/payload.js +613 -0
  112. package/dist/vtc/badges/show/0.1/payload.js.map +1 -0
  113. package/dist/vtc/badges/update/0.1/payload.d.ts +1033 -0
  114. package/dist/vtc/badges/update/0.1/payload.d.ts.map +1 -0
  115. package/dist/vtc/badges/update/0.1/payload.js +588 -0
  116. package/dist/vtc/badges/update/0.1/payload.js.map +1 -0
  117. package/dist/vtc/badges/wall/show/0.1/payload.d.ts +1099 -0
  118. package/dist/vtc/badges/wall/show/0.1/payload.d.ts.map +1 -0
  119. package/dist/vtc/badges/wall/show/0.1/payload.js +634 -0
  120. package/dist/vtc/badges/wall/show/0.1/payload.js.map +1 -0
  121. package/dist/vtc/groups/create/0.1/payload.d.ts +42 -2
  122. package/dist/vtc/groups/create/0.1/payload.d.ts.map +1 -1
  123. package/dist/vtc/groups/create/0.1/payload.js +20 -0
  124. package/dist/vtc/groups/create/0.1/payload.js.map +1 -1
  125. package/dist/vtc/groups/list/0.1/payload.d.ts +42 -2
  126. package/dist/vtc/groups/list/0.1/payload.d.ts.map +1 -1
  127. package/dist/vtc/groups/list/0.1/payload.js +20 -0
  128. package/dist/vtc/groups/list/0.1/payload.js.map +1 -1
  129. package/dist/vtc/groups/list/0.2/payload.d.ts +42 -2
  130. package/dist/vtc/groups/list/0.2/payload.d.ts.map +1 -1
  131. package/dist/vtc/groups/list/0.2/payload.js +20 -0
  132. package/dist/vtc/groups/list/0.2/payload.js.map +1 -1
  133. package/dist/vtc/groups/show/0.1/payload.d.ts +42 -2
  134. package/dist/vtc/groups/show/0.1/payload.d.ts.map +1 -1
  135. package/dist/vtc/groups/show/0.1/payload.js +20 -0
  136. package/dist/vtc/groups/show/0.1/payload.js.map +1 -1
  137. package/dist/vtc/groups/update/0.1/payload.d.ts +42 -2
  138. package/dist/vtc/groups/update/0.1/payload.d.ts.map +1 -1
  139. package/dist/vtc/groups/update/0.1/payload.js +20 -0
  140. package/dist/vtc/groups/update/0.1/payload.js.map +1 -1
  141. package/dist/vtn/registry/check/0.1/payload.d.ts +528 -0
  142. package/dist/vtn/registry/check/0.1/payload.d.ts.map +1 -0
  143. package/dist/vtn/registry/check/0.1/payload.js +282 -0
  144. package/dist/vtn/registry/check/0.1/payload.js.map +1 -0
  145. package/dist/vtn/registry/status/0.1/payload.d.ts +736 -0
  146. package/dist/vtn/registry/status/0.1/payload.d.ts.map +1 -0
  147. package/dist/vtn/registry/status/0.1/payload.js +421 -0
  148. package/dist/vtn/registry/status/0.1/payload.js.map +1 -0
  149. package/package.json +1 -1
  150. package/src/_shared/components.ts +254 -1
  151. package/src/index.ts +87 -0
  152. package/src/vta/collection/_shared/0.1/collection.ts +2 -2
  153. package/src/vta/collection/list/0.1/payload.ts +2 -2
  154. package/src/vta/collection/settings/set/0.1/payload.ts +319 -0
  155. package/src/vta/collection/settings/show/0.1/payload.ts +296 -0
  156. package/src/vtc/badges/_shared/0.1/badge.ts +23 -0
  157. package/src/vtc/badges/awards/list/0.1/payload.ts +768 -0
  158. package/src/vtc/badges/awards/offer/0.1/payload.ts +530 -0
  159. package/src/vtc/badges/awards/revoke/0.1/payload.ts +395 -0
  160. package/src/vtc/badges/awards/withdraw/0.1/payload.ts +395 -0
  161. package/src/vtc/badges/create/0.1/payload.ts +1137 -0
  162. package/src/vtc/badges/holders/list/0.1/payload.ts +628 -0
  163. package/src/vtc/badges/images/get/0.1/payload.ts +311 -0
  164. package/src/vtc/badges/images/upload/0.1/payload.ts +324 -0
  165. package/src/vtc/badges/kudos/give/0.1/payload.ts +401 -0
  166. package/src/vtc/badges/kudos/list/0.1/payload.ts +1080 -0
  167. package/src/vtc/badges/list/0.1/payload.ts +695 -0
  168. package/src/vtc/badges/mine/accept/0.1/payload.ts +840 -0
  169. package/src/vtc/badges/mine/arrange/0.1/payload.ts +768 -0
  170. package/src/vtc/badges/mine/decline/0.1/payload.ts +384 -0
  171. package/src/vtc/badges/mine/hide/0.1/payload.ts +670 -0
  172. package/src/vtc/badges/mine/list/0.1/payload.ts +1153 -0
  173. package/src/vtc/badges/mine/show/0.1/payload.ts +670 -0
  174. package/src/vtc/badges/promote/0.1/payload.ts +1088 -0
  175. package/src/vtc/badges/retire/0.1/payload.ts +565 -0
  176. package/src/vtc/badges/settings/show/0.1/payload.ts +457 -0
  177. package/src/vtc/badges/settings/update/0.1/payload.ts +490 -0
  178. package/src/vtc/badges/show/0.1/payload.ts +675 -0
  179. package/src/vtc/badges/update/0.1/payload.ts +656 -0
  180. package/src/vtc/badges/wall/show/0.1/payload.ts +684 -0
  181. package/src/vtc/groups/create/0.1/payload.ts +22 -2
  182. package/src/vtc/groups/list/0.1/payload.ts +22 -2
  183. package/src/vtc/groups/list/0.2/payload.ts +22 -2
  184. package/src/vtc/groups/show/0.1/payload.ts +22 -2
  185. package/src/vtc/groups/update/0.1/payload.ts +22 -2
  186. package/src/vtn/registry/check/0.1/payload.ts +365 -0
  187. package/src/vtn/registry/status/0.1/payload.ts +502 -0
@@ -0,0 +1,319 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/collection/settings/set/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { CollectionSetting, ContextId_VtaCollectionV0_1 as ContextId, Did_NotificationsV0_1 as Did, Ext } from "../../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * A client with administrative authority over a trust context enables or disables collection by default there: whether its VTA collects for the context's identifiers that no client has claimed (VTI-NTF-094, VTI-NTF-095). The VTA stores the setting, applies it before it answers — disabling it stops collection and closes the VTA's connections for those identifiers — and records the change in its audit trail (VTI-NTF-096). The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface VTACollectionSettingsSetPayload {
13
+ /**
14
+ * The trust context whose setting to change. The change applies to that context's identifiers alone, not to its ancestors' or descendants' (VTI-NTF-094).
15
+ */
16
+ contextId: ContextId;
17
+ /**
18
+ * true to enable collection by default for the context, false to disable it.
19
+ */
20
+ collectByDefault: boolean;
21
+ ext?: Ext;
22
+ }
23
+ /**
24
+ * The context's setting once the change has taken effect.
25
+ */
26
+ export interface VTACollectionSettingsSetResponsePayload {
27
+ setting: CollectionSetting;
28
+ /**
29
+ * Whether this request changed the setting. False when the context already held the value asked for, in which case nothing changed but the record of the request (VTI-NTF-095).
30
+ */
31
+ changed: boolean;
32
+ }
33
+
34
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
35
+ export type { CollectionSetting, ContextId, Did, Ext };
36
+
37
+ /** Trust Task type URI. */
38
+ export const TYPE_URI = "https://trusttasks.org/spec/vta/collection/settings/set/0.1" as const;
39
+
40
+ /**
41
+ * The earlier version of this specification that this one declares it
42
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
43
+ * `null`. Only the direct declaration — follow the chain with
44
+ * `extendsChain` / `readForSpec`.
45
+ */
46
+ export const EXTENDS: string | null = null;
47
+
48
+ /**
49
+ * Why this version is deprecated, or `null` while it is current. A
50
+ * superseded or retired version is still supported, and is withdrawn from
51
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
52
+ * Versions").
53
+ */
54
+ export const DEPRECATION: string | null = null;
55
+
56
+ /** Stable alias for this specification's request payload shape. */
57
+ export type Payload = VTACollectionSettingsSetPayload;
58
+
59
+ /** Trust Task response type URI (request type URI + "#response"). */
60
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/collection/settings/set/0.1#response" as const;
61
+
62
+ /** Stable alias for this specification's success-response payload shape. */
63
+ export type Response = VTACollectionSettingsSetResponsePayload;
64
+
65
+ /**
66
+ * This specification's payload schema, as a value.
67
+ *
68
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
69
+ * rather than only as a `.json` file because TypeScript types are erased
70
+ * at runtime: without a schema a consumer has nothing to validate, and
71
+ * every REQUIRED payload member is optional in practice. Cross-file
72
+ * `$ref`s are already inlined, so it needs no resolver.
73
+ */
74
+ export const PAYLOAD_SCHEMA = {
75
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
76
+ "$id": "https://trusttasks.org/spec/vta/collection/settings/set/0.1",
77
+ "title": "VTA Collection — Settings — Set — payload",
78
+ "description": "A client with administrative authority over a trust context enables or disables collection by default there: whether its VTA collects for the context's identifiers that no client has claimed (VTI-NTF-094, VTI-NTF-095). The VTA stores the setting, applies it before it answers — disabling it stops collection and closes the VTA's connections for those identifiers — and records the change in its audit trail (VTI-NTF-096). The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
79
+ "type": "object",
80
+ "additionalProperties": false,
81
+ "required": [
82
+ "contextId",
83
+ "collectByDefault"
84
+ ],
85
+ "properties": {
86
+ "contextId": {
87
+ "$ref": "#/$defs/ContextId",
88
+ "description": "The trust context whose setting to change. The change applies to that context's identifiers alone, not to its ancestors' or descendants' (VTI-NTF-094)."
89
+ },
90
+ "collectByDefault": {
91
+ "type": "boolean",
92
+ "description": "true to enable collection by default for the context, false to disable it."
93
+ },
94
+ "ext": {
95
+ "$ref": "#/$defs/Ext"
96
+ }
97
+ },
98
+ "$defs": {
99
+ "Response": {
100
+ "$anchor": "response",
101
+ "title": "VTA Collection — Settings — Set — response payload",
102
+ "type": "object",
103
+ "additionalProperties": false,
104
+ "required": [
105
+ "setting",
106
+ "changed"
107
+ ],
108
+ "description": "The context's setting once the change has taken effect.",
109
+ "properties": {
110
+ "setting": {
111
+ "$ref": "#/$defs/CollectionSetting"
112
+ },
113
+ "changed": {
114
+ "type": "boolean",
115
+ "description": "Whether this request changed the setting. False when the context already held the value asked for, in which case nothing changed but the record of the request (VTI-NTF-095)."
116
+ }
117
+ }
118
+ },
119
+ "CollectionSetting": {
120
+ "title": "CollectionSetting",
121
+ "description": "Whether the VTA collects by default for the identifiers of one trust context that no client has claimed (VTI-NTF-094 – VTI-NTF-098), and who last changed that. The VTA collects for them exactly when `collectByDefault` is true and `suspendedByOperator` is false. `changedBy` and `changedAt` are present together, and both absent while the setting has never been changed.",
122
+ "type": "object",
123
+ "additionalProperties": false,
124
+ "required": [
125
+ "contextId",
126
+ "collectByDefault",
127
+ "suspendedByOperator"
128
+ ],
129
+ "properties": {
130
+ "contextId": {
131
+ "$ref": "#/$defs/ContextId",
132
+ "description": "The trust context the setting belongs to. It applies to that context's identifiers alone, not to its ancestors' or descendants' (VTI-NTF-094)."
133
+ },
134
+ "collectByDefault": {
135
+ "type": "boolean",
136
+ "description": "The context's own setting: true unless a party with administrative authority over the context has disabled it (VTI-NTF-094, VTI-NTF-095). The VTA keeps it across restarts."
137
+ },
138
+ "suspendedByOperator": {
139
+ "type": "boolean",
140
+ "description": "Whether the VTA's operator has suspended collection by default for every context (VTI-NTF-098). While true, the VTA collects for no unclaimed identifier here whatever `collectByDefault` says, and does not change it; once lifted, `collectByDefault` applies again. Always false at a VTA that offers its operator no suspension."
141
+ },
142
+ "changedBy": {
143
+ "$ref": "#/$defs/Did",
144
+ "description": "The subject of the access control entry that last changed `collectByDefault` (VTI-NTF-096)."
145
+ },
146
+ "changedAt": {
147
+ "type": "string",
148
+ "format": "date-time",
149
+ "description": "When `collectByDefault` was last changed."
150
+ }
151
+ },
152
+ "dependentSchemas": {
153
+ "changedBy": {
154
+ "required": [
155
+ "changedAt"
156
+ ]
157
+ },
158
+ "changedAt": {
159
+ "required": [
160
+ "changedBy"
161
+ ]
162
+ }
163
+ }
164
+ },
165
+ "Did": {
166
+ "title": "Did",
167
+ "description": "A DID.",
168
+ "type": "string",
169
+ "minLength": 8,
170
+ "maxLength": 2048,
171
+ "pattern": "^did:[a-z0-9]+:\\S+$"
172
+ },
173
+ "ContextId": {
174
+ "title": "ContextId",
175
+ "description": "The trust context the identifier belongs to.",
176
+ "type": "string",
177
+ "minLength": 1,
178
+ "maxLength": 256
179
+ },
180
+ "Ext": {
181
+ "title": "Ext",
182
+ "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.",
183
+ "type": "object",
184
+ "minProperties": 1,
185
+ "additionalProperties": true,
186
+ "propertyNames": {
187
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
188
+ }
189
+ }
190
+ }
191
+ } as const;
192
+
193
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
194
+ export const RESPONSE_PAYLOAD_SCHEMA = {
195
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
196
+ "$ref": "#/$defs/Response",
197
+ "$defs": {
198
+ "Response": {
199
+ "$anchor": "response",
200
+ "title": "VTA Collection — Settings — Set — response payload",
201
+ "type": "object",
202
+ "additionalProperties": false,
203
+ "required": [
204
+ "setting",
205
+ "changed"
206
+ ],
207
+ "description": "The context's setting once the change has taken effect.",
208
+ "properties": {
209
+ "setting": {
210
+ "$ref": "#/$defs/CollectionSetting"
211
+ },
212
+ "changed": {
213
+ "type": "boolean",
214
+ "description": "Whether this request changed the setting. False when the context already held the value asked for, in which case nothing changed but the record of the request (VTI-NTF-095)."
215
+ }
216
+ }
217
+ },
218
+ "CollectionSetting": {
219
+ "title": "CollectionSetting",
220
+ "description": "Whether the VTA collects by default for the identifiers of one trust context that no client has claimed (VTI-NTF-094 – VTI-NTF-098), and who last changed that. The VTA collects for them exactly when `collectByDefault` is true and `suspendedByOperator` is false. `changedBy` and `changedAt` are present together, and both absent while the setting has never been changed.",
221
+ "type": "object",
222
+ "additionalProperties": false,
223
+ "required": [
224
+ "contextId",
225
+ "collectByDefault",
226
+ "suspendedByOperator"
227
+ ],
228
+ "properties": {
229
+ "contextId": {
230
+ "$ref": "#/$defs/ContextId",
231
+ "description": "The trust context the setting belongs to. It applies to that context's identifiers alone, not to its ancestors' or descendants' (VTI-NTF-094)."
232
+ },
233
+ "collectByDefault": {
234
+ "type": "boolean",
235
+ "description": "The context's own setting: true unless a party with administrative authority over the context has disabled it (VTI-NTF-094, VTI-NTF-095). The VTA keeps it across restarts."
236
+ },
237
+ "suspendedByOperator": {
238
+ "type": "boolean",
239
+ "description": "Whether the VTA's operator has suspended collection by default for every context (VTI-NTF-098). While true, the VTA collects for no unclaimed identifier here whatever `collectByDefault` says, and does not change it; once lifted, `collectByDefault` applies again. Always false at a VTA that offers its operator no suspension."
240
+ },
241
+ "changedBy": {
242
+ "$ref": "#/$defs/Did",
243
+ "description": "The subject of the access control entry that last changed `collectByDefault` (VTI-NTF-096)."
244
+ },
245
+ "changedAt": {
246
+ "type": "string",
247
+ "format": "date-time",
248
+ "description": "When `collectByDefault` was last changed."
249
+ }
250
+ },
251
+ "dependentSchemas": {
252
+ "changedBy": {
253
+ "required": [
254
+ "changedAt"
255
+ ]
256
+ },
257
+ "changedAt": {
258
+ "required": [
259
+ "changedBy"
260
+ ]
261
+ }
262
+ }
263
+ },
264
+ "Did": {
265
+ "title": "Did",
266
+ "description": "A DID.",
267
+ "type": "string",
268
+ "minLength": 8,
269
+ "maxLength": 2048,
270
+ "pattern": "^did:[a-z0-9]+:\\S+$"
271
+ },
272
+ "ContextId": {
273
+ "title": "ContextId",
274
+ "description": "The trust context the identifier belongs to.",
275
+ "type": "string",
276
+ "minLength": 1,
277
+ "maxLength": 256
278
+ },
279
+ "Ext": {
280
+ "title": "Ext",
281
+ "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.",
282
+ "type": "object",
283
+ "minProperties": 1,
284
+ "additionalProperties": true,
285
+ "propertyNames": {
286
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
287
+ }
288
+ }
289
+ }
290
+ } as const;
291
+
292
+ /**
293
+ * SPEC.md §7.2 policy for the request variant, from this specification's
294
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
295
+ * per-specification and cannot be derived from the document alone, and
296
+ * item 2 needs the schema this carries.
297
+ */
298
+ export const SPEC = {
299
+ typeUri: TYPE_URI,
300
+ isBearer: false,
301
+ isProofRequired: false,
302
+ isRecipientRequired: true,
303
+ isIssuedAtRequired: true,
304
+ payloadSchema: PAYLOAD_SCHEMA,
305
+ } as const;
306
+
307
+ /**
308
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
309
+ * tracks the *issuer* party's requirement because a response swaps the
310
+ * parties (§7.3 item 5).
311
+ */
312
+ export const RESPONSE_SPEC = {
313
+ typeUri: RESPONSE_TYPE_URI,
314
+ isBearer: false,
315
+ isProofRequired: false,
316
+ isRecipientRequired: true,
317
+ isIssuedAtRequired: true,
318
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
319
+ } as const;
@@ -0,0 +1,296 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/collection/settings/show/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { CollectionSetting, ContextId_VtaCollectionV0_1 as ContextId, Did_NotificationsV0_1 as Did, Ext } from "../../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * A client with standing in a trust context reads whether its VTA collects by default for that context's identifiers no client has claimed, who last changed that and when, and whether the VTA's operator has suspended collection by default for every context (VTI-NTF-096). The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface VTACollectionSettingsShowPayload {
13
+ /**
14
+ * The trust context whose setting to read.
15
+ */
16
+ contextId: ContextId;
17
+ ext?: Ext;
18
+ }
19
+ /**
20
+ * The context's setting as the VTA holds and applies it.
21
+ */
22
+ export interface VTACollectionSettingsShowResponsePayload {
23
+ setting: CollectionSetting;
24
+ }
25
+
26
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
27
+ export type { CollectionSetting, ContextId, Did, Ext };
28
+
29
+ /** Trust Task type URI. */
30
+ export const TYPE_URI = "https://trusttasks.org/spec/vta/collection/settings/show/0.1" as const;
31
+
32
+ /**
33
+ * The earlier version of this specification that this one declares it
34
+ * extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
35
+ * `null`. Only the direct declaration — follow the chain with
36
+ * `extendsChain` / `readForSpec`.
37
+ */
38
+ export const EXTENDS: string | null = null;
39
+
40
+ /**
41
+ * Why this version is deprecated, or `null` while it is current. A
42
+ * superseded or retired version is still supported, and is withdrawn from
43
+ * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
44
+ * Versions").
45
+ */
46
+ export const DEPRECATION: string | null = null;
47
+
48
+ /** Stable alias for this specification's request payload shape. */
49
+ export type Payload = VTACollectionSettingsShowPayload;
50
+
51
+ /** Trust Task response type URI (request type URI + "#response"). */
52
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/collection/settings/show/0.1#response" as const;
53
+
54
+ /** Stable alias for this specification's success-response payload shape. */
55
+ export type Response = VTACollectionSettingsShowResponsePayload;
56
+
57
+ /**
58
+ * This specification's payload schema, as a value.
59
+ *
60
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
61
+ * rather than only as a `.json` file because TypeScript types are erased
62
+ * at runtime: without a schema a consumer has nothing to validate, and
63
+ * every REQUIRED payload member is optional in practice. Cross-file
64
+ * `$ref`s are already inlined, so it needs no resolver.
65
+ */
66
+ export const PAYLOAD_SCHEMA = {
67
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
68
+ "$id": "https://trusttasks.org/spec/vta/collection/settings/show/0.1",
69
+ "title": "VTA Collection — Settings — Show — payload",
70
+ "description": "A client with standing in a trust context reads whether its VTA collects by default for that context's identifiers no client has claimed, who last changed that and when, and whether the VTA's operator has suspended collection by default for every context (VTI-NTF-096). The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
71
+ "type": "object",
72
+ "additionalProperties": false,
73
+ "required": [
74
+ "contextId"
75
+ ],
76
+ "properties": {
77
+ "contextId": {
78
+ "$ref": "#/$defs/ContextId",
79
+ "description": "The trust context whose setting to read."
80
+ },
81
+ "ext": {
82
+ "$ref": "#/$defs/Ext"
83
+ }
84
+ },
85
+ "$defs": {
86
+ "Response": {
87
+ "$anchor": "response",
88
+ "title": "VTA Collection — Settings — Show — response payload",
89
+ "type": "object",
90
+ "additionalProperties": false,
91
+ "required": [
92
+ "setting"
93
+ ],
94
+ "description": "The context's setting as the VTA holds and applies it.",
95
+ "properties": {
96
+ "setting": {
97
+ "$ref": "#/$defs/CollectionSetting"
98
+ }
99
+ }
100
+ },
101
+ "CollectionSetting": {
102
+ "title": "CollectionSetting",
103
+ "description": "Whether the VTA collects by default for the identifiers of one trust context that no client has claimed (VTI-NTF-094 – VTI-NTF-098), and who last changed that. The VTA collects for them exactly when `collectByDefault` is true and `suspendedByOperator` is false. `changedBy` and `changedAt` are present together, and both absent while the setting has never been changed.",
104
+ "type": "object",
105
+ "additionalProperties": false,
106
+ "required": [
107
+ "contextId",
108
+ "collectByDefault",
109
+ "suspendedByOperator"
110
+ ],
111
+ "properties": {
112
+ "contextId": {
113
+ "$ref": "#/$defs/ContextId",
114
+ "description": "The trust context the setting belongs to. It applies to that context's identifiers alone, not to its ancestors' or descendants' (VTI-NTF-094)."
115
+ },
116
+ "collectByDefault": {
117
+ "type": "boolean",
118
+ "description": "The context's own setting: true unless a party with administrative authority over the context has disabled it (VTI-NTF-094, VTI-NTF-095). The VTA keeps it across restarts."
119
+ },
120
+ "suspendedByOperator": {
121
+ "type": "boolean",
122
+ "description": "Whether the VTA's operator has suspended collection by default for every context (VTI-NTF-098). While true, the VTA collects for no unclaimed identifier here whatever `collectByDefault` says, and does not change it; once lifted, `collectByDefault` applies again. Always false at a VTA that offers its operator no suspension."
123
+ },
124
+ "changedBy": {
125
+ "$ref": "#/$defs/Did",
126
+ "description": "The subject of the access control entry that last changed `collectByDefault` (VTI-NTF-096)."
127
+ },
128
+ "changedAt": {
129
+ "type": "string",
130
+ "format": "date-time",
131
+ "description": "When `collectByDefault` was last changed."
132
+ }
133
+ },
134
+ "dependentSchemas": {
135
+ "changedBy": {
136
+ "required": [
137
+ "changedAt"
138
+ ]
139
+ },
140
+ "changedAt": {
141
+ "required": [
142
+ "changedBy"
143
+ ]
144
+ }
145
+ }
146
+ },
147
+ "Did": {
148
+ "title": "Did",
149
+ "description": "A DID.",
150
+ "type": "string",
151
+ "minLength": 8,
152
+ "maxLength": 2048,
153
+ "pattern": "^did:[a-z0-9]+:\\S+$"
154
+ },
155
+ "ContextId": {
156
+ "title": "ContextId",
157
+ "description": "The trust context the identifier belongs to.",
158
+ "type": "string",
159
+ "minLength": 1,
160
+ "maxLength": 256
161
+ },
162
+ "Ext": {
163
+ "title": "Ext",
164
+ "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.",
165
+ "type": "object",
166
+ "minProperties": 1,
167
+ "additionalProperties": true,
168
+ "propertyNames": {
169
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
170
+ }
171
+ }
172
+ }
173
+ } as const;
174
+
175
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
176
+ export const RESPONSE_PAYLOAD_SCHEMA = {
177
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
178
+ "$ref": "#/$defs/Response",
179
+ "$defs": {
180
+ "Response": {
181
+ "$anchor": "response",
182
+ "title": "VTA Collection — Settings — Show — response payload",
183
+ "type": "object",
184
+ "additionalProperties": false,
185
+ "required": [
186
+ "setting"
187
+ ],
188
+ "description": "The context's setting as the VTA holds and applies it.",
189
+ "properties": {
190
+ "setting": {
191
+ "$ref": "#/$defs/CollectionSetting"
192
+ }
193
+ }
194
+ },
195
+ "CollectionSetting": {
196
+ "title": "CollectionSetting",
197
+ "description": "Whether the VTA collects by default for the identifiers of one trust context that no client has claimed (VTI-NTF-094 – VTI-NTF-098), and who last changed that. The VTA collects for them exactly when `collectByDefault` is true and `suspendedByOperator` is false. `changedBy` and `changedAt` are present together, and both absent while the setting has never been changed.",
198
+ "type": "object",
199
+ "additionalProperties": false,
200
+ "required": [
201
+ "contextId",
202
+ "collectByDefault",
203
+ "suspendedByOperator"
204
+ ],
205
+ "properties": {
206
+ "contextId": {
207
+ "$ref": "#/$defs/ContextId",
208
+ "description": "The trust context the setting belongs to. It applies to that context's identifiers alone, not to its ancestors' or descendants' (VTI-NTF-094)."
209
+ },
210
+ "collectByDefault": {
211
+ "type": "boolean",
212
+ "description": "The context's own setting: true unless a party with administrative authority over the context has disabled it (VTI-NTF-094, VTI-NTF-095). The VTA keeps it across restarts."
213
+ },
214
+ "suspendedByOperator": {
215
+ "type": "boolean",
216
+ "description": "Whether the VTA's operator has suspended collection by default for every context (VTI-NTF-098). While true, the VTA collects for no unclaimed identifier here whatever `collectByDefault` says, and does not change it; once lifted, `collectByDefault` applies again. Always false at a VTA that offers its operator no suspension."
217
+ },
218
+ "changedBy": {
219
+ "$ref": "#/$defs/Did",
220
+ "description": "The subject of the access control entry that last changed `collectByDefault` (VTI-NTF-096)."
221
+ },
222
+ "changedAt": {
223
+ "type": "string",
224
+ "format": "date-time",
225
+ "description": "When `collectByDefault` was last changed."
226
+ }
227
+ },
228
+ "dependentSchemas": {
229
+ "changedBy": {
230
+ "required": [
231
+ "changedAt"
232
+ ]
233
+ },
234
+ "changedAt": {
235
+ "required": [
236
+ "changedBy"
237
+ ]
238
+ }
239
+ }
240
+ },
241
+ "Did": {
242
+ "title": "Did",
243
+ "description": "A DID.",
244
+ "type": "string",
245
+ "minLength": 8,
246
+ "maxLength": 2048,
247
+ "pattern": "^did:[a-z0-9]+:\\S+$"
248
+ },
249
+ "ContextId": {
250
+ "title": "ContextId",
251
+ "description": "The trust context the identifier belongs to.",
252
+ "type": "string",
253
+ "minLength": 1,
254
+ "maxLength": 256
255
+ },
256
+ "Ext": {
257
+ "title": "Ext",
258
+ "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.",
259
+ "type": "object",
260
+ "minProperties": 1,
261
+ "additionalProperties": true,
262
+ "propertyNames": {
263
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
264
+ }
265
+ }
266
+ }
267
+ } as const;
268
+
269
+ /**
270
+ * SPEC.md §7.2 policy for the request variant, from this specification's
271
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
272
+ * per-specification and cannot be derived from the document alone, and
273
+ * item 2 needs the schema this carries.
274
+ */
275
+ export const SPEC = {
276
+ typeUri: TYPE_URI,
277
+ isBearer: false,
278
+ isProofRequired: false,
279
+ isRecipientRequired: true,
280
+ isIssuedAtRequired: false,
281
+ payloadSchema: PAYLOAD_SCHEMA,
282
+ } as const;
283
+
284
+ /**
285
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
286
+ * tracks the *issuer* party's requirement because a response swaps the
287
+ * parties (§7.3 item 5).
288
+ */
289
+ export const RESPONSE_SPEC = {
290
+ typeUri: RESPONSE_TYPE_URI,
291
+ isBearer: false,
292
+ isProofRequired: false,
293
+ isRecipientRequired: true,
294
+ isIssuedAtRequired: false,
295
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
296
+ } as const;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/badges/_shared/0.1/badge.schema.json
4
+ */
5
+
6
+ /**
7
+ * A Verifiable Trust Community's badges (VTI Community Badges chapter, VTI-BDG-*): pictures with a name that a member earns, holds and shows on their directory card. Not itself a Trust Task specification (the `_shared` folder is skipped by the registry build and the codegen).
8
+ *
9
+ * A COMMUNITY BADGE IS A BADGE GROUP. A badge of kind `community` is backed by exactly one community group (vtc/groups/*), referenced by `groupId` here and by `badgeId` on the group: its owners are the group's managers, its holders the group's members, and the group's own DID issues its holders the badge credential (VTI-BDG-010, VTI-BDG-011, VTI-BDG-060). A badge group never carries authority (VTI-BDG-012). A badge of kind `kudos` has no group and no credential (VTI-BDG-041).
10
+ *
11
+ * AN AWARD IS AN OFFER UNTIL ACCEPTED. Giving a badge records an award in state `offered`; nothing is admitted, issued or shown until the recipient accepts (VTI-BDG-020, VTI-BDG-021). Each giving of a repeatable or kudos badge is an award of its own (VTI-BDG-022, VTI-BDG-041).
12
+ *
13
+ * BADGES CONFER NOTHING. The community never reads a badge, an award or a badge credential in an authorization decision (VTI-BDG-002).
14
+ */
15
+ export interface BadgeSharedDefinitionsForTheVtcBadgesSpecFamily {
16
+ [k: string]: unknown | undefined;
17
+ }
18
+
19
+ /**
20
+ * The definitions this shared schema publishes, hoisted to one declaration each.
21
+ * See "../../../../_shared/components.js".
22
+ */
23
+ export type { Award, AwardId, AwardNote, AwardState, Badge, BadgeCriteria, BadgeDescription, BadgeId, BadgeKind, BadgeLimits, BadgeName, BadgeSettings, BadgeState, KudosMakers, MyBadge, WallEntry, WallVisibility } from "../../../../_shared/components.js";