@openvtc/trust-tasks 0.21.11 → 0.21.13

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 (208) hide show
  1. package/CHANGELOG.md +76 -0
  2. package/dist/_framework/0.4/framework.d.ts +1 -1
  3. package/dist/_framework/0.4/framework.d.ts.map +1 -1
  4. package/dist/_shared/components.d.ts +371 -0
  5. package/dist/_shared/components.d.ts.map +1 -1
  6. package/dist/auth/_shared/0.1/signing-key.d.ts +16 -0
  7. package/dist/auth/_shared/0.1/signing-key.d.ts.map +1 -0
  8. package/dist/auth/_shared/0.1/signing-key.js +6 -0
  9. package/dist/auth/_shared/0.1/signing-key.js.map +1 -0
  10. package/dist/auth/signing-key/enroll/0.1/payload.d.ts +545 -0
  11. package/dist/auth/signing-key/enroll/0.1/payload.d.ts.map +1 -0
  12. package/dist/auth/signing-key/enroll/0.1/payload.js +307 -0
  13. package/dist/auth/signing-key/enroll/0.1/payload.js.map +1 -0
  14. package/dist/auth/signing-key/list/0.1/payload.d.ts +509 -0
  15. package/dist/auth/signing-key/list/0.1/payload.d.ts.map +1 -0
  16. package/dist/auth/signing-key/list/0.1/payload.js +289 -0
  17. package/dist/auth/signing-key/list/0.1/payload.js.map +1 -0
  18. package/dist/auth/signing-key/revoke/0.1/payload.d.ts +292 -0
  19. package/dist/auth/signing-key/revoke/0.1/payload.d.ts.map +1 -0
  20. package/dist/auth/signing-key/revoke/0.1/payload.js +167 -0
  21. package/dist/auth/signing-key/revoke/0.1/payload.js.map +1 -0
  22. package/dist/index.d.ts +39 -0
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +39 -0
  25. package/dist/index.js.map +1 -1
  26. package/dist/vta/contexts/update-did/1.1/payload.d.ts +388 -0
  27. package/dist/vta/contexts/update-did/1.1/payload.d.ts.map +1 -0
  28. package/dist/vta/contexts/update-did/1.1/payload.js +227 -0
  29. package/dist/vta/contexts/update-did/1.1/payload.js.map +1 -0
  30. package/dist/vtc/_shared/0.1/community-presentation.d.ts +16 -0
  31. package/dist/vtc/_shared/0.1/community-presentation.d.ts.map +1 -0
  32. package/dist/vtc/_shared/0.1/community-presentation.js +6 -0
  33. package/dist/vtc/_shared/0.1/community-presentation.js.map +1 -0
  34. package/dist/vtc/_shared/0.1/relationship-lifecycle.d.ts +16 -0
  35. package/dist/vtc/_shared/0.1/relationship-lifecycle.d.ts.map +1 -0
  36. package/dist/vtc/_shared/0.1/relationship-lifecycle.js +6 -0
  37. package/dist/vtc/_shared/0.1/relationship-lifecycle.js.map +1 -0
  38. package/dist/vtc/_shared/0.1/schema-registry.d.ts +16 -0
  39. package/dist/vtc/_shared/0.1/schema-registry.d.ts.map +1 -0
  40. package/dist/vtc/_shared/0.1/schema-registry.js +6 -0
  41. package/dist/vtc/_shared/0.1/schema-registry.js.map +1 -0
  42. package/dist/vtc/_shared/0.1/vetting-auto-grant.d.ts +16 -0
  43. package/dist/vtc/_shared/0.1/vetting-auto-grant.d.ts.map +1 -0
  44. package/dist/vtc/_shared/0.1/vetting-auto-grant.js +6 -0
  45. package/dist/vtc/_shared/0.1/vetting-auto-grant.js.map +1 -0
  46. package/dist/vtc/_shared/0.1/website-transfer.d.ts +16 -0
  47. package/dist/vtc/_shared/0.1/website-transfer.d.ts.map +1 -0
  48. package/dist/vtc/_shared/0.1/website-transfer.js +6 -0
  49. package/dist/vtc/_shared/0.1/website-transfer.js.map +1 -0
  50. package/dist/vtc/community/branding/show/0.1/payload.d.ts +319 -0
  51. package/dist/vtc/community/branding/show/0.1/payload.d.ts.map +1 -0
  52. package/dist/vtc/community/branding/show/0.1/payload.js +179 -0
  53. package/dist/vtc/community/branding/show/0.1/payload.js.map +1 -0
  54. package/dist/vtc/community/branding/update/0.1/payload.d.ts +328 -0
  55. package/dist/vtc/community/branding/update/0.1/payload.d.ts.map +1 -0
  56. package/dist/vtc/community/branding/update/0.1/payload.js +185 -0
  57. package/dist/vtc/community/branding/update/0.1/payload.js.map +1 -0
  58. package/dist/vtc/community/join-discovery/show/0.1/payload.d.ts +267 -0
  59. package/dist/vtc/community/join-discovery/show/0.1/payload.d.ts.map +1 -0
  60. package/dist/vtc/community/join-discovery/show/0.1/payload.js +157 -0
  61. package/dist/vtc/community/join-discovery/show/0.1/payload.js.map +1 -0
  62. package/dist/vtc/community/join-discovery/update/0.1/payload.d.ts +276 -0
  63. package/dist/vtc/community/join-discovery/update/0.1/payload.d.ts.map +1 -0
  64. package/dist/vtc/community/join-discovery/update/0.1/payload.js +163 -0
  65. package/dist/vtc/community/join-discovery/update/0.1/payload.js.map +1 -0
  66. package/dist/vtc/community/requested-attributes/show/0.1/payload.d.ts +339 -0
  67. package/dist/vtc/community/requested-attributes/show/0.1/payload.d.ts.map +1 -0
  68. package/dist/vtc/community/requested-attributes/show/0.1/payload.js +193 -0
  69. package/dist/vtc/community/requested-attributes/show/0.1/payload.js.map +1 -0
  70. package/dist/vtc/community/requested-attributes/update/0.1/payload.d.ts +348 -0
  71. package/dist/vtc/community/requested-attributes/update/0.1/payload.d.ts.map +1 -0
  72. package/dist/vtc/community/requested-attributes/update/0.1/payload.js +199 -0
  73. package/dist/vtc/community/requested-attributes/update/0.1/payload.js.map +1 -0
  74. package/dist/vtc/join-requests/query/0.1/payload.d.ts +412 -0
  75. package/dist/vtc/join-requests/query/0.1/payload.d.ts.map +1 -0
  76. package/dist/vtc/join-requests/query/0.1/payload.js +228 -0
  77. package/dist/vtc/join-requests/query/0.1/payload.js.map +1 -0
  78. package/dist/vtc/join-requests/vetting/show/0.1/payload.d.ts +1016 -0
  79. package/dist/vtc/join-requests/vetting/show/0.1/payload.d.ts.map +1 -0
  80. package/dist/vtc/join-requests/vetting/show/0.1/payload.js +509 -0
  81. package/dist/vtc/join-requests/vetting/show/0.1/payload.js.map +1 -0
  82. package/dist/vtc/relationships/restore/0.1/payload.d.ts +462 -0
  83. package/dist/vtc/relationships/restore/0.1/payload.d.ts.map +1 -0
  84. package/dist/vtc/relationships/restore/0.1/payload.js +270 -0
  85. package/dist/vtc/relationships/restore/0.1/payload.js.map +1 -0
  86. package/dist/vtc/relationships/suspend/0.1/payload.d.ts +462 -0
  87. package/dist/vtc/relationships/suspend/0.1/payload.d.ts.map +1 -0
  88. package/dist/vtc/relationships/suspend/0.1/payload.js +270 -0
  89. package/dist/vtc/relationships/suspend/0.1/payload.js.map +1 -0
  90. package/dist/vtc/rooms/list/0.1/payload.d.ts +653 -0
  91. package/dist/vtc/rooms/list/0.1/payload.d.ts.map +1 -0
  92. package/dist/vtc/rooms/list/0.1/payload.js +360 -0
  93. package/dist/vtc/rooms/list/0.1/payload.js.map +1 -0
  94. package/dist/vtc/schemas/accepts/delete/0.1/payload.d.ts +240 -0
  95. package/dist/vtc/schemas/accepts/delete/0.1/payload.d.ts.map +1 -0
  96. package/dist/vtc/schemas/accepts/delete/0.1/payload.js +141 -0
  97. package/dist/vtc/schemas/accepts/delete/0.1/payload.js.map +1 -0
  98. package/dist/vtc/schemas/accepts/list/0.1/payload.d.ts +1214 -0
  99. package/dist/vtc/schemas/accepts/list/0.1/payload.d.ts.map +1 -0
  100. package/dist/vtc/schemas/accepts/list/0.1/payload.js +681 -0
  101. package/dist/vtc/schemas/accepts/list/0.1/payload.js.map +1 -0
  102. package/dist/vtc/schemas/accepts/register/0.1/payload.d.ts +1165 -0
  103. package/dist/vtc/schemas/accepts/register/0.1/payload.d.ts.map +1 -0
  104. package/dist/vtc/schemas/accepts/register/0.1/payload.js +665 -0
  105. package/dist/vtc/schemas/accepts/register/0.1/payload.js.map +1 -0
  106. package/dist/vtc/schemas/accepts/show/0.1/payload.d.ts +1144 -0
  107. package/dist/vtc/schemas/accepts/show/0.1/payload.d.ts.map +1 -0
  108. package/dist/vtc/schemas/accepts/show/0.1/payload.js +655 -0
  109. package/dist/vtc/schemas/accepts/show/0.1/payload.js.map +1 -0
  110. package/dist/vtc/schemas/delete/0.1/payload.d.ts +240 -0
  111. package/dist/vtc/schemas/delete/0.1/payload.d.ts.map +1 -0
  112. package/dist/vtc/schemas/delete/0.1/payload.js +141 -0
  113. package/dist/vtc/schemas/delete/0.1/payload.js.map +1 -0
  114. package/dist/vtc/schemas/list/0.1/payload.d.ts +541 -0
  115. package/dist/vtc/schemas/list/0.1/payload.d.ts.map +1 -0
  116. package/dist/vtc/schemas/list/0.1/payload.js +300 -0
  117. package/dist/vtc/schemas/list/0.1/payload.js.map +1 -0
  118. package/dist/vtc/schemas/register/0.1/payload.d.ts +512 -0
  119. package/dist/vtc/schemas/register/0.1/payload.d.ts.map +1 -0
  120. package/dist/vtc/schemas/register/0.1/payload.js +292 -0
  121. package/dist/vtc/schemas/register/0.1/payload.js.map +1 -0
  122. package/dist/vtc/schemas/show/0.1/payload.d.ts +484 -0
  123. package/dist/vtc/schemas/show/0.1/payload.d.ts.map +1 -0
  124. package/dist/vtc/schemas/show/0.1/payload.js +279 -0
  125. package/dist/vtc/schemas/show/0.1/payload.js.map +1 -0
  126. package/dist/vtc/vetting/auto-grant/show/0.1/payload.d.ts +463 -0
  127. package/dist/vtc/vetting/auto-grant/show/0.1/payload.d.ts.map +1 -0
  128. package/dist/vtc/vetting/auto-grant/show/0.1/payload.js +269 -0
  129. package/dist/vtc/vetting/auto-grant/show/0.1/payload.js.map +1 -0
  130. package/dist/vtc/vetting/auto-grant/update/0.1/payload.d.ts +491 -0
  131. package/dist/vtc/vetting/auto-grant/update/0.1/payload.d.ts.map +1 -0
  132. package/dist/vtc/vetting/auto-grant/update/0.1/payload.js +282 -0
  133. package/dist/vtc/vetting/auto-grant/update/0.1/payload.js.map +1 -0
  134. package/dist/vtc/vetting/revocations/list/0.1/payload.d.ts +608 -0
  135. package/dist/vtc/vetting/revocations/list/0.1/payload.d.ts.map +1 -0
  136. package/dist/vtc/vetting/revocations/list/0.1/payload.js +332 -0
  137. package/dist/vtc/vetting/revocations/list/0.1/payload.js.map +1 -0
  138. package/dist/vtc/vetting/vetters/grants/list/0.1/payload.d.ts +992 -0
  139. package/dist/vtc/vetting/vetters/grants/list/0.1/payload.d.ts.map +1 -0
  140. package/dist/vtc/vetting/vetters/grants/list/0.1/payload.js +461 -0
  141. package/dist/vtc/vetting/vetters/grants/list/0.1/payload.js.map +1 -0
  142. package/dist/vtc/website/deploy/0.1/payload.d.ts +369 -0
  143. package/dist/vtc/website/deploy/0.1/payload.d.ts.map +1 -0
  144. package/dist/vtc/website/deploy/0.1/payload.js +213 -0
  145. package/dist/vtc/website/deploy/0.1/payload.js.map +1 -0
  146. package/dist/vtc/website/files/show/0.1/payload.d.ts +455 -0
  147. package/dist/vtc/website/files/show/0.1/payload.d.ts.map +1 -0
  148. package/dist/vtc/website/files/show/0.1/payload.js +247 -0
  149. package/dist/vtc/website/files/show/0.1/payload.js.map +1 -0
  150. package/dist/vtc/website/upload/abort/0.1/payload.d.ts +256 -0
  151. package/dist/vtc/website/upload/abort/0.1/payload.d.ts.map +1 -0
  152. package/dist/vtc/website/upload/abort/0.1/payload.js +149 -0
  153. package/dist/vtc/website/upload/abort/0.1/payload.js.map +1 -0
  154. package/dist/vtc/website/upload/begin/0.1/payload.d.ts +658 -0
  155. package/dist/vtc/website/upload/begin/0.1/payload.d.ts.map +1 -0
  156. package/dist/vtc/website/upload/begin/0.1/payload.js +375 -0
  157. package/dist/vtc/website/upload/begin/0.1/payload.js.map +1 -0
  158. package/dist/vtc/website/upload/chunk/0.1/payload.d.ts +447 -0
  159. package/dist/vtc/website/upload/chunk/0.1/payload.d.ts.map +1 -0
  160. package/dist/vtc/website/upload/chunk/0.1/payload.js +253 -0
  161. package/dist/vtc/website/upload/chunk/0.1/payload.js.map +1 -0
  162. package/dist/vtc/website/upload/commit/0.1/payload.d.ts +603 -0
  163. package/dist/vtc/website/upload/commit/0.1/payload.d.ts.map +1 -0
  164. package/dist/vtc/website/upload/commit/0.1/payload.js +337 -0
  165. package/dist/vtc/website/upload/commit/0.1/payload.js.map +1 -0
  166. package/package.json +1 -1
  167. package/src/_framework/0.4/framework.ts +1 -1
  168. package/src/_shared/components.ts +371 -0
  169. package/src/auth/_shared/0.1/signing-key.ts +17 -0
  170. package/src/auth/signing-key/enroll/0.1/payload.ts +349 -0
  171. package/src/auth/signing-key/list/0.1/payload.ts +323 -0
  172. package/src/auth/signing-key/revoke/0.1/payload.ts +204 -0
  173. package/src/index.ts +39 -0
  174. package/src/vta/contexts/update-did/1.1/payload.ts +256 -0
  175. package/src/vtc/_shared/0.1/community-presentation.ts +17 -0
  176. package/src/vtc/_shared/0.1/relationship-lifecycle.ts +17 -0
  177. package/src/vtc/_shared/0.1/schema-registry.ts +17 -0
  178. package/src/vtc/_shared/0.1/vetting-auto-grant.ts +17 -0
  179. package/src/vtc/_shared/0.1/website-transfer.ts +17 -0
  180. package/src/vtc/community/branding/show/0.1/payload.ts +207 -0
  181. package/src/vtc/community/branding/update/0.1/payload.ts +214 -0
  182. package/src/vtc/community/join-discovery/show/0.1/payload.ts +185 -0
  183. package/src/vtc/community/join-discovery/update/0.1/payload.ts +192 -0
  184. package/src/vtc/community/requested-attributes/show/0.1/payload.ts +221 -0
  185. package/src/vtc/community/requested-attributes/update/0.1/payload.ts +228 -0
  186. package/src/vtc/join-requests/query/0.1/payload.ts +285 -0
  187. package/src/vtc/join-requests/vetting/show/0.1/payload.ts +740 -0
  188. package/src/vtc/relationships/restore/0.1/payload.ts +307 -0
  189. package/src/vtc/relationships/suspend/0.1/payload.ts +307 -0
  190. package/src/vtc/rooms/list/0.1/payload.ts +449 -0
  191. package/src/vtc/schemas/accepts/delete/0.1/payload.ts +170 -0
  192. package/src/vtc/schemas/accepts/list/0.1/payload.ts +724 -0
  193. package/src/vtc/schemas/accepts/register/0.1/payload.ts +697 -0
  194. package/src/vtc/schemas/accepts/show/0.1/payload.ts +684 -0
  195. package/src/vtc/schemas/delete/0.1/payload.ts +170 -0
  196. package/src/vtc/schemas/list/0.1/payload.ts +344 -0
  197. package/src/vtc/schemas/register/0.1/payload.ts +325 -0
  198. package/src/vtc/schemas/show/0.1/payload.ts +308 -0
  199. package/src/vtc/vetting/auto-grant/show/0.1/payload.ts +297 -0
  200. package/src/vtc/vetting/auto-grant/update/0.1/payload.ts +316 -0
  201. package/src/vtc/vetting/revocations/list/0.1/payload.ts +416 -0
  202. package/src/vtc/vetting/vetters/grants/list/0.1/payload.ts +700 -0
  203. package/src/vtc/website/deploy/0.1/payload.ts +255 -0
  204. package/src/vtc/website/files/show/0.1/payload.ts +303 -0
  205. package/src/vtc/website/upload/abort/0.1/payload.ts +182 -0
  206. package/src/vtc/website/upload/begin/0.1/payload.ts +408 -0
  207. package/src/vtc/website/upload/chunk/0.1/payload.ts +295 -0
  208. package/src/vtc/website/upload/commit/0.1/payload.ts +385 -0
@@ -0,0 +1,297 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/vetting/auto-grant/show/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { AutoGrantStatus, AutoGrantSweep, Ext, GrantValiditySeconds, SweepMinutes } from "../../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * An empty request. The outer document members are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface VTCVettingAutoGrantShowPayload {
13
+ ext?: Ext;
14
+ }
15
+ export interface VTCVettingAutoGrantShowResponsePayload {
16
+ autoGrant: AutoGrantStatus;
17
+ ext?: Ext;
18
+ }
19
+
20
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
21
+ export type { AutoGrantStatus, AutoGrantSweep, Ext, GrantValiditySeconds, SweepMinutes };
22
+
23
+ /** Trust Task type URI. */
24
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/vetting/auto-grant/show/0.1" as const;
25
+
26
+ /** Stable alias for this specification's request payload shape. */
27
+ export type Payload = VTCVettingAutoGrantShowPayload;
28
+
29
+ /** Trust Task response type URI (request type URI + "#response"). */
30
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/vetting/auto-grant/show/0.1#response" as const;
31
+
32
+ /** Stable alias for this specification's success-response payload shape. */
33
+ export type Response = VTCVettingAutoGrantShowResponsePayload;
34
+
35
+ /**
36
+ * This specification's payload schema, as a value.
37
+ *
38
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
39
+ * rather than only as a `.json` file because TypeScript types are erased
40
+ * at runtime: without a schema a consumer has nothing to validate, and
41
+ * every REQUIRED payload member is optional in practice. Cross-file
42
+ * `$ref`s are already inlined, so it needs no resolver.
43
+ */
44
+ export const PAYLOAD_SCHEMA = {
45
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
46
+ "$id": "https://trusttasks.org/spec/vtc/vetting/auto-grant/show/0.1",
47
+ "title": "VTC Vetting — Auto-Grant — Show — payload",
48
+ "description": "An empty request. The outer document members are owned by the framework — SPEC §6.3.",
49
+ "type": "object",
50
+ "additionalProperties": false,
51
+ "properties": {
52
+ "ext": {
53
+ "$ref": "#/$defs/Ext"
54
+ }
55
+ },
56
+ "$defs": {
57
+ "Response": {
58
+ "$anchor": "response",
59
+ "title": "VTC Vetting — Auto-Grant — Show — response payload",
60
+ "type": "object",
61
+ "additionalProperties": false,
62
+ "required": [
63
+ "autoGrant"
64
+ ],
65
+ "properties": {
66
+ "autoGrant": {
67
+ "$ref": "#/$defs/AutoGrantStatus"
68
+ },
69
+ "ext": {
70
+ "$ref": "#/$defs/Ext"
71
+ }
72
+ }
73
+ },
74
+ "Ext": {
75
+ "title": "Ext",
76
+ "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.",
77
+ "type": "object",
78
+ "minProperties": 1,
79
+ "additionalProperties": true,
80
+ "propertyNames": {
81
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
82
+ }
83
+ },
84
+ "AutoGrantStatus": {
85
+ "title": "AutoGrantStatus",
86
+ "type": "object",
87
+ "additionalProperties": false,
88
+ "required": [
89
+ "enabled",
90
+ "sweepMinutes",
91
+ "validitySeconds"
92
+ ],
93
+ "description": "The effective configuration — defaults filled in — and the last sweep.",
94
+ "properties": {
95
+ "enabled": {
96
+ "type": "boolean",
97
+ "description": "Whether the sweep runs."
98
+ },
99
+ "sweepMinutes": {
100
+ "$ref": "#/$defs/SweepMinutes"
101
+ },
102
+ "validitySeconds": {
103
+ "$ref": "#/$defs/GrantValiditySeconds"
104
+ },
105
+ "lastSweep": {
106
+ "$ref": "#/$defs/AutoGrantSweep"
107
+ }
108
+ }
109
+ },
110
+ "AutoGrantSweep": {
111
+ "title": "AutoGrantSweep",
112
+ "type": "object",
113
+ "additionalProperties": false,
114
+ "required": [
115
+ "ranAt",
116
+ "granted",
117
+ "revoked",
118
+ "errors"
119
+ ],
120
+ "description": "What one sweep did.",
121
+ "properties": {
122
+ "ranAt": {
123
+ "type": "string",
124
+ "format": "date-time",
125
+ "description": "When the sweep finished."
126
+ },
127
+ "granted": {
128
+ "type": "integer",
129
+ "minimum": 0,
130
+ "description": "Grants issued."
131
+ },
132
+ "revoked": {
133
+ "type": "integer",
134
+ "minimum": 0,
135
+ "description": "Automatic grants revoked. The sweep revokes only grants it issued."
136
+ },
137
+ "errors": {
138
+ "type": "integer",
139
+ "minimum": 0,
140
+ "description": "Members the sweep could not decide or act on."
141
+ }
142
+ }
143
+ },
144
+ "GrantValiditySeconds": {
145
+ "title": "GrantValiditySeconds",
146
+ "type": "integer",
147
+ "minimum": 86400,
148
+ "maximum": 63072000,
149
+ "description": "Validity of a grant the sweep issues, in seconds: between one day and two years, the bounds vtc/vetting/vetters/grant applies to an administrator's grants."
150
+ },
151
+ "SweepMinutes": {
152
+ "title": "SweepMinutes",
153
+ "type": "integer",
154
+ "minimum": 5,
155
+ "maximum": 1440,
156
+ "description": "Minutes between sweeps: at most every five minutes, at least once a day."
157
+ }
158
+ }
159
+ } as const;
160
+
161
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
162
+ export const RESPONSE_PAYLOAD_SCHEMA = {
163
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
164
+ "$ref": "#/$defs/Response",
165
+ "$defs": {
166
+ "Response": {
167
+ "$anchor": "response",
168
+ "title": "VTC Vetting — Auto-Grant — Show — response payload",
169
+ "type": "object",
170
+ "additionalProperties": false,
171
+ "required": [
172
+ "autoGrant"
173
+ ],
174
+ "properties": {
175
+ "autoGrant": {
176
+ "$ref": "#/$defs/AutoGrantStatus"
177
+ },
178
+ "ext": {
179
+ "$ref": "#/$defs/Ext"
180
+ }
181
+ }
182
+ },
183
+ "Ext": {
184
+ "title": "Ext",
185
+ "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.",
186
+ "type": "object",
187
+ "minProperties": 1,
188
+ "additionalProperties": true,
189
+ "propertyNames": {
190
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
191
+ }
192
+ },
193
+ "AutoGrantStatus": {
194
+ "title": "AutoGrantStatus",
195
+ "type": "object",
196
+ "additionalProperties": false,
197
+ "required": [
198
+ "enabled",
199
+ "sweepMinutes",
200
+ "validitySeconds"
201
+ ],
202
+ "description": "The effective configuration — defaults filled in — and the last sweep.",
203
+ "properties": {
204
+ "enabled": {
205
+ "type": "boolean",
206
+ "description": "Whether the sweep runs."
207
+ },
208
+ "sweepMinutes": {
209
+ "$ref": "#/$defs/SweepMinutes"
210
+ },
211
+ "validitySeconds": {
212
+ "$ref": "#/$defs/GrantValiditySeconds"
213
+ },
214
+ "lastSweep": {
215
+ "$ref": "#/$defs/AutoGrantSweep"
216
+ }
217
+ }
218
+ },
219
+ "AutoGrantSweep": {
220
+ "title": "AutoGrantSweep",
221
+ "type": "object",
222
+ "additionalProperties": false,
223
+ "required": [
224
+ "ranAt",
225
+ "granted",
226
+ "revoked",
227
+ "errors"
228
+ ],
229
+ "description": "What one sweep did.",
230
+ "properties": {
231
+ "ranAt": {
232
+ "type": "string",
233
+ "format": "date-time",
234
+ "description": "When the sweep finished."
235
+ },
236
+ "granted": {
237
+ "type": "integer",
238
+ "minimum": 0,
239
+ "description": "Grants issued."
240
+ },
241
+ "revoked": {
242
+ "type": "integer",
243
+ "minimum": 0,
244
+ "description": "Automatic grants revoked. The sweep revokes only grants it issued."
245
+ },
246
+ "errors": {
247
+ "type": "integer",
248
+ "minimum": 0,
249
+ "description": "Members the sweep could not decide or act on."
250
+ }
251
+ }
252
+ },
253
+ "GrantValiditySeconds": {
254
+ "title": "GrantValiditySeconds",
255
+ "type": "integer",
256
+ "minimum": 86400,
257
+ "maximum": 63072000,
258
+ "description": "Validity of a grant the sweep issues, in seconds: between one day and two years, the bounds vtc/vetting/vetters/grant applies to an administrator's grants."
259
+ },
260
+ "SweepMinutes": {
261
+ "title": "SweepMinutes",
262
+ "type": "integer",
263
+ "minimum": 5,
264
+ "maximum": 1440,
265
+ "description": "Minutes between sweeps: at most every five minutes, at least once a day."
266
+ }
267
+ }
268
+ } as const;
269
+
270
+ /**
271
+ * SPEC.md §7.2 policy for the request variant, from this specification's
272
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
273
+ * per-specification and cannot be derived from the document alone, and
274
+ * item 2 needs the schema this carries.
275
+ */
276
+ export const SPEC = {
277
+ typeUri: TYPE_URI,
278
+ isBearer: false,
279
+ isProofRequired: false,
280
+ isRecipientRequired: true,
281
+ isIssuedAtRequired: false,
282
+ payloadSchema: PAYLOAD_SCHEMA,
283
+ } as const;
284
+
285
+ /**
286
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
287
+ * tracks the *issuer* party's requirement because a response swaps the
288
+ * parties (§7.3 item 5).
289
+ */
290
+ export const RESPONSE_SPEC = {
291
+ typeUri: RESPONSE_TYPE_URI,
292
+ isBearer: false,
293
+ isProofRequired: false,
294
+ isRecipientRequired: true,
295
+ isIssuedAtRequired: false,
296
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
297
+ } as const;
@@ -0,0 +1,316 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/vetting/auto-grant/update/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { AutoGrantStatus, AutoGrantSweep, Ext, GrantValiditySeconds, SweepMinutes } from "../../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * The whole configuration; an absent member takes its default. The outer document members are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface VTCVettingAutoGrantUpdatePayload {
13
+ /**
14
+ * Whether the sweep runs.
15
+ */
16
+ enabled: boolean;
17
+ sweepMinutes?: SweepMinutes;
18
+ validitySeconds?: GrantValiditySeconds;
19
+ ext?: Ext;
20
+ }
21
+ export interface VTCVettingAutoGrantUpdateResponsePayload {
22
+ autoGrant: AutoGrantStatus;
23
+ ext?: Ext;
24
+ }
25
+
26
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
27
+ export type { AutoGrantStatus, AutoGrantSweep, Ext, GrantValiditySeconds, SweepMinutes };
28
+
29
+ /** Trust Task type URI. */
30
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/vetting/auto-grant/update/0.1" as const;
31
+
32
+ /** Stable alias for this specification's request payload shape. */
33
+ export type Payload = VTCVettingAutoGrantUpdatePayload;
34
+
35
+ /** Trust Task response type URI (request type URI + "#response"). */
36
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/vetting/auto-grant/update/0.1#response" as const;
37
+
38
+ /** Stable alias for this specification's success-response payload shape. */
39
+ export type Response = VTCVettingAutoGrantUpdateResponsePayload;
40
+
41
+ /**
42
+ * This specification's payload schema, as a value.
43
+ *
44
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
45
+ * rather than only as a `.json` file because TypeScript types are erased
46
+ * at runtime: without a schema a consumer has nothing to validate, and
47
+ * every REQUIRED payload member is optional in practice. Cross-file
48
+ * `$ref`s are already inlined, so it needs no resolver.
49
+ */
50
+ export const PAYLOAD_SCHEMA = {
51
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
52
+ "$id": "https://trusttasks.org/spec/vtc/vetting/auto-grant/update/0.1",
53
+ "title": "VTC Vetting — Auto-Grant — Update — payload",
54
+ "description": "The whole configuration; an absent member takes its default. The outer document members are owned by the framework — SPEC §6.3.",
55
+ "type": "object",
56
+ "additionalProperties": false,
57
+ "required": [
58
+ "enabled"
59
+ ],
60
+ "properties": {
61
+ "enabled": {
62
+ "type": "boolean",
63
+ "description": "Whether the sweep runs."
64
+ },
65
+ "sweepMinutes": {
66
+ "$ref": "#/$defs/SweepMinutes"
67
+ },
68
+ "validitySeconds": {
69
+ "$ref": "#/$defs/GrantValiditySeconds"
70
+ },
71
+ "ext": {
72
+ "$ref": "#/$defs/Ext"
73
+ }
74
+ },
75
+ "$defs": {
76
+ "Response": {
77
+ "$anchor": "response",
78
+ "title": "VTC Vetting — Auto-Grant — Update — response payload",
79
+ "type": "object",
80
+ "additionalProperties": false,
81
+ "required": [
82
+ "autoGrant"
83
+ ],
84
+ "properties": {
85
+ "autoGrant": {
86
+ "$ref": "#/$defs/AutoGrantStatus"
87
+ },
88
+ "ext": {
89
+ "$ref": "#/$defs/Ext"
90
+ }
91
+ }
92
+ },
93
+ "Ext": {
94
+ "title": "Ext",
95
+ "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.",
96
+ "type": "object",
97
+ "minProperties": 1,
98
+ "additionalProperties": true,
99
+ "propertyNames": {
100
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
101
+ }
102
+ },
103
+ "AutoGrantStatus": {
104
+ "title": "AutoGrantStatus",
105
+ "type": "object",
106
+ "additionalProperties": false,
107
+ "required": [
108
+ "enabled",
109
+ "sweepMinutes",
110
+ "validitySeconds"
111
+ ],
112
+ "description": "The effective configuration — defaults filled in — and the last sweep.",
113
+ "properties": {
114
+ "enabled": {
115
+ "type": "boolean",
116
+ "description": "Whether the sweep runs."
117
+ },
118
+ "sweepMinutes": {
119
+ "$ref": "#/$defs/SweepMinutes"
120
+ },
121
+ "validitySeconds": {
122
+ "$ref": "#/$defs/GrantValiditySeconds"
123
+ },
124
+ "lastSweep": {
125
+ "$ref": "#/$defs/AutoGrantSweep"
126
+ }
127
+ }
128
+ },
129
+ "AutoGrantSweep": {
130
+ "title": "AutoGrantSweep",
131
+ "type": "object",
132
+ "additionalProperties": false,
133
+ "required": [
134
+ "ranAt",
135
+ "granted",
136
+ "revoked",
137
+ "errors"
138
+ ],
139
+ "description": "What one sweep did.",
140
+ "properties": {
141
+ "ranAt": {
142
+ "type": "string",
143
+ "format": "date-time",
144
+ "description": "When the sweep finished."
145
+ },
146
+ "granted": {
147
+ "type": "integer",
148
+ "minimum": 0,
149
+ "description": "Grants issued."
150
+ },
151
+ "revoked": {
152
+ "type": "integer",
153
+ "minimum": 0,
154
+ "description": "Automatic grants revoked. The sweep revokes only grants it issued."
155
+ },
156
+ "errors": {
157
+ "type": "integer",
158
+ "minimum": 0,
159
+ "description": "Members the sweep could not decide or act on."
160
+ }
161
+ }
162
+ },
163
+ "GrantValiditySeconds": {
164
+ "title": "GrantValiditySeconds",
165
+ "type": "integer",
166
+ "minimum": 86400,
167
+ "maximum": 63072000,
168
+ "description": "Validity of a grant the sweep issues, in seconds: between one day and two years, the bounds vtc/vetting/vetters/grant applies to an administrator's grants."
169
+ },
170
+ "SweepMinutes": {
171
+ "title": "SweepMinutes",
172
+ "type": "integer",
173
+ "minimum": 5,
174
+ "maximum": 1440,
175
+ "description": "Minutes between sweeps: at most every five minutes, at least once a day."
176
+ }
177
+ }
178
+ } as const;
179
+
180
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
181
+ export const RESPONSE_PAYLOAD_SCHEMA = {
182
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
183
+ "$ref": "#/$defs/Response",
184
+ "$defs": {
185
+ "Response": {
186
+ "$anchor": "response",
187
+ "title": "VTC Vetting — Auto-Grant — Update — response payload",
188
+ "type": "object",
189
+ "additionalProperties": false,
190
+ "required": [
191
+ "autoGrant"
192
+ ],
193
+ "properties": {
194
+ "autoGrant": {
195
+ "$ref": "#/$defs/AutoGrantStatus"
196
+ },
197
+ "ext": {
198
+ "$ref": "#/$defs/Ext"
199
+ }
200
+ }
201
+ },
202
+ "Ext": {
203
+ "title": "Ext",
204
+ "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.",
205
+ "type": "object",
206
+ "minProperties": 1,
207
+ "additionalProperties": true,
208
+ "propertyNames": {
209
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
210
+ }
211
+ },
212
+ "AutoGrantStatus": {
213
+ "title": "AutoGrantStatus",
214
+ "type": "object",
215
+ "additionalProperties": false,
216
+ "required": [
217
+ "enabled",
218
+ "sweepMinutes",
219
+ "validitySeconds"
220
+ ],
221
+ "description": "The effective configuration — defaults filled in — and the last sweep.",
222
+ "properties": {
223
+ "enabled": {
224
+ "type": "boolean",
225
+ "description": "Whether the sweep runs."
226
+ },
227
+ "sweepMinutes": {
228
+ "$ref": "#/$defs/SweepMinutes"
229
+ },
230
+ "validitySeconds": {
231
+ "$ref": "#/$defs/GrantValiditySeconds"
232
+ },
233
+ "lastSweep": {
234
+ "$ref": "#/$defs/AutoGrantSweep"
235
+ }
236
+ }
237
+ },
238
+ "AutoGrantSweep": {
239
+ "title": "AutoGrantSweep",
240
+ "type": "object",
241
+ "additionalProperties": false,
242
+ "required": [
243
+ "ranAt",
244
+ "granted",
245
+ "revoked",
246
+ "errors"
247
+ ],
248
+ "description": "What one sweep did.",
249
+ "properties": {
250
+ "ranAt": {
251
+ "type": "string",
252
+ "format": "date-time",
253
+ "description": "When the sweep finished."
254
+ },
255
+ "granted": {
256
+ "type": "integer",
257
+ "minimum": 0,
258
+ "description": "Grants issued."
259
+ },
260
+ "revoked": {
261
+ "type": "integer",
262
+ "minimum": 0,
263
+ "description": "Automatic grants revoked. The sweep revokes only grants it issued."
264
+ },
265
+ "errors": {
266
+ "type": "integer",
267
+ "minimum": 0,
268
+ "description": "Members the sweep could not decide or act on."
269
+ }
270
+ }
271
+ },
272
+ "GrantValiditySeconds": {
273
+ "title": "GrantValiditySeconds",
274
+ "type": "integer",
275
+ "minimum": 86400,
276
+ "maximum": 63072000,
277
+ "description": "Validity of a grant the sweep issues, in seconds: between one day and two years, the bounds vtc/vetting/vetters/grant applies to an administrator's grants."
278
+ },
279
+ "SweepMinutes": {
280
+ "title": "SweepMinutes",
281
+ "type": "integer",
282
+ "minimum": 5,
283
+ "maximum": 1440,
284
+ "description": "Minutes between sweeps: at most every five minutes, at least once a day."
285
+ }
286
+ }
287
+ } as const;
288
+
289
+ /**
290
+ * SPEC.md §7.2 policy for the request variant, from this specification's
291
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
292
+ * per-specification and cannot be derived from the document alone, and
293
+ * item 2 needs the schema this carries.
294
+ */
295
+ export const SPEC = {
296
+ typeUri: TYPE_URI,
297
+ isBearer: false,
298
+ isProofRequired: true,
299
+ isRecipientRequired: true,
300
+ isIssuedAtRequired: true,
301
+ payloadSchema: PAYLOAD_SCHEMA,
302
+ } as const;
303
+
304
+ /**
305
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
306
+ * tracks the *issuer* party's requirement because a response swaps the
307
+ * parties (§7.3 item 5).
308
+ */
309
+ export const RESPONSE_SPEC = {
310
+ typeUri: RESPONSE_TYPE_URI,
311
+ isBearer: false,
312
+ isProofRequired: true,
313
+ isRecipientRequired: true,
314
+ isIssuedAtRequired: true,
315
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
316
+ } as const;