@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,192 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/community/join-discovery/update/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { Ext, JoinDiscovery } from "../../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * The whole new value, which replaces the stored one. The outer document members are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface VTCCommunityJoinDiscoveryUpdatePayload {
13
+ joinDiscovery: JoinDiscovery;
14
+ ext?: Ext;
15
+ }
16
+ export interface VTCCommunityJoinDiscoveryUpdateResponsePayload {
17
+ joinDiscovery: JoinDiscovery;
18
+ ext?: Ext;
19
+ }
20
+
21
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
22
+ export type { Ext, JoinDiscovery };
23
+
24
+ /** Trust Task type URI. */
25
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/community/join-discovery/update/0.1" as const;
26
+
27
+ /** Stable alias for this specification's request payload shape. */
28
+ export type Payload = VTCCommunityJoinDiscoveryUpdatePayload;
29
+
30
+ /** Trust Task response type URI (request type URI + "#response"). */
31
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/community/join-discovery/update/0.1#response" as const;
32
+
33
+ /** Stable alias for this specification's success-response payload shape. */
34
+ export type Response = VTCCommunityJoinDiscoveryUpdateResponsePayload;
35
+
36
+ /**
37
+ * This specification's payload schema, as a value.
38
+ *
39
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
40
+ * rather than only as a `.json` file because TypeScript types are erased
41
+ * at runtime: without a schema a consumer has nothing to validate, and
42
+ * every REQUIRED payload member is optional in practice. Cross-file
43
+ * `$ref`s are already inlined, so it needs no resolver.
44
+ */
45
+ export const PAYLOAD_SCHEMA = {
46
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
47
+ "$id": "https://trusttasks.org/spec/vtc/community/join-discovery/update/0.1",
48
+ "title": "VTC Community — Join Discovery — Update — payload",
49
+ "description": "The whole new value, which replaces the stored one. The outer document members are owned by the framework — SPEC §6.3.",
50
+ "type": "object",
51
+ "additionalProperties": false,
52
+ "required": [
53
+ "joinDiscovery"
54
+ ],
55
+ "properties": {
56
+ "joinDiscovery": {
57
+ "$ref": "#/$defs/JoinDiscovery"
58
+ },
59
+ "ext": {
60
+ "$ref": "#/$defs/Ext"
61
+ }
62
+ },
63
+ "$defs": {
64
+ "Response": {
65
+ "$anchor": "response",
66
+ "title": "VTC Community — Join Discovery — Update — response payload",
67
+ "type": "object",
68
+ "additionalProperties": false,
69
+ "required": [
70
+ "joinDiscovery"
71
+ ],
72
+ "properties": {
73
+ "joinDiscovery": {
74
+ "$ref": "#/$defs/JoinDiscovery"
75
+ },
76
+ "ext": {
77
+ "$ref": "#/$defs/Ext"
78
+ }
79
+ }
80
+ },
81
+ "Ext": {
82
+ "title": "Ext",
83
+ "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.",
84
+ "type": "object",
85
+ "minProperties": 1,
86
+ "additionalProperties": true,
87
+ "propertyNames": {
88
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
89
+ }
90
+ },
91
+ "JoinDiscovery": {
92
+ "title": "JoinDiscovery",
93
+ "type": "object",
94
+ "additionalProperties": false,
95
+ "required": [
96
+ "public"
97
+ ],
98
+ "description": "Whether this community answers vtc/join-requests/manifest to a caller it cannot identify.",
99
+ "properties": {
100
+ "public": {
101
+ "type": "boolean",
102
+ "description": "True: the manifest is answered to any caller, identified or not — the setting of every community that never chose, because the manifest is a public read by design (an applicant has to know what is asked of them before they disclose anything). False: the manifest is answered only to a caller the community can identify — one with a verified proof or a transport-authenticated sender. Not secrecy: an identified caller is answered either way. False makes the answer attributable, which is what a closed or invite-only community wants rather than a crawler enumerating its criteria."
103
+ },
104
+ "ext": {
105
+ "$ref": "#/$defs/Ext"
106
+ }
107
+ }
108
+ }
109
+ }
110
+ } as const;
111
+
112
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
113
+ export const RESPONSE_PAYLOAD_SCHEMA = {
114
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
115
+ "$ref": "#/$defs/Response",
116
+ "$defs": {
117
+ "Response": {
118
+ "$anchor": "response",
119
+ "title": "VTC Community — Join Discovery — Update — response payload",
120
+ "type": "object",
121
+ "additionalProperties": false,
122
+ "required": [
123
+ "joinDiscovery"
124
+ ],
125
+ "properties": {
126
+ "joinDiscovery": {
127
+ "$ref": "#/$defs/JoinDiscovery"
128
+ },
129
+ "ext": {
130
+ "$ref": "#/$defs/Ext"
131
+ }
132
+ }
133
+ },
134
+ "Ext": {
135
+ "title": "Ext",
136
+ "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.",
137
+ "type": "object",
138
+ "minProperties": 1,
139
+ "additionalProperties": true,
140
+ "propertyNames": {
141
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
142
+ }
143
+ },
144
+ "JoinDiscovery": {
145
+ "title": "JoinDiscovery",
146
+ "type": "object",
147
+ "additionalProperties": false,
148
+ "required": [
149
+ "public"
150
+ ],
151
+ "description": "Whether this community answers vtc/join-requests/manifest to a caller it cannot identify.",
152
+ "properties": {
153
+ "public": {
154
+ "type": "boolean",
155
+ "description": "True: the manifest is answered to any caller, identified or not — the setting of every community that never chose, because the manifest is a public read by design (an applicant has to know what is asked of them before they disclose anything). False: the manifest is answered only to a caller the community can identify — one with a verified proof or a transport-authenticated sender. Not secrecy: an identified caller is answered either way. False makes the answer attributable, which is what a closed or invite-only community wants rather than a crawler enumerating its criteria."
156
+ },
157
+ "ext": {
158
+ "$ref": "#/$defs/Ext"
159
+ }
160
+ }
161
+ }
162
+ }
163
+ } as const;
164
+
165
+ /**
166
+ * SPEC.md §7.2 policy for the request variant, from this specification's
167
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
168
+ * per-specification and cannot be derived from the document alone, and
169
+ * item 2 needs the schema this carries.
170
+ */
171
+ export const SPEC = {
172
+ typeUri: TYPE_URI,
173
+ isBearer: false,
174
+ isProofRequired: true,
175
+ isRecipientRequired: true,
176
+ isIssuedAtRequired: true,
177
+ payloadSchema: PAYLOAD_SCHEMA,
178
+ } as const;
179
+
180
+ /**
181
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
182
+ * tracks the *issuer* party's requirement because a response swaps the
183
+ * parties (§7.3 item 5).
184
+ */
185
+ export const RESPONSE_SPEC = {
186
+ typeUri: RESPONSE_TYPE_URI,
187
+ isBearer: false,
188
+ isProofRequired: true,
189
+ isRecipientRequired: true,
190
+ isIssuedAtRequired: true,
191
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
192
+ } as const;
@@ -0,0 +1,221 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/community/requested-attributes/show/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { Ext, RequestedAttribute, RequestedAttributes } from "../../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * An empty request: the community has one such setting. The outer document members are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface VTCCommunityRequestedAttributesShowPayload {
13
+ ext?: Ext;
14
+ }
15
+ export interface VTCCommunityRequestedAttributesShowResponsePayload {
16
+ requestedAttributes: RequestedAttributes;
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 { Ext, RequestedAttribute, RequestedAttributes };
22
+
23
+ /** Trust Task type URI. */
24
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/community/requested-attributes/show/0.1" as const;
25
+
26
+ /** Stable alias for this specification's request payload shape. */
27
+ export type Payload = VTCCommunityRequestedAttributesShowPayload;
28
+
29
+ /** Trust Task response type URI (request type URI + "#response"). */
30
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/community/requested-attributes/show/0.1#response" as const;
31
+
32
+ /** Stable alias for this specification's success-response payload shape. */
33
+ export type Response = VTCCommunityRequestedAttributesShowResponsePayload;
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/community/requested-attributes/show/0.1",
47
+ "title": "VTC Community — Requested Attributes — Show — payload",
48
+ "description": "An empty request: the community has one such setting. 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 Community — Requested Attributes — Show — response payload",
60
+ "type": "object",
61
+ "additionalProperties": false,
62
+ "required": [
63
+ "requestedAttributes"
64
+ ],
65
+ "properties": {
66
+ "requestedAttributes": {
67
+ "$ref": "#/$defs/RequestedAttributes"
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
+ "RequestedAttributes": {
85
+ "title": "RequestedAttributes",
86
+ "type": "array",
87
+ "maxItems": 32,
88
+ "items": {
89
+ "$ref": "#/$defs/RequestedAttribute"
90
+ },
91
+ "description": "What the community asks an applicant to tell it about themselves, as claim types — never values. At most 32 entries, and no claim type twice: two answers to one question is a question nobody can answer. Self-asserted by the applicant when answered; a community MUST NOT describe an answer as verified. Empty means the community asks nothing."
92
+ },
93
+ "RequestedAttribute": {
94
+ "type": "object",
95
+ "additionalProperties": false,
96
+ "required": [
97
+ "type"
98
+ ],
99
+ "properties": {
100
+ "type": {
101
+ "type": "string",
102
+ "minLength": 1,
103
+ "maxLength": 128,
104
+ "pattern": "^(x:)?[a-z][A-Za-z0-9]*(\\.[a-z][A-Za-z0-9]*)*$",
105
+ "description": "A claim-type token from the persona claim-type registry (persona/_shared/0.1/CLAIM-TYPES.md) — `name.display`, `address.country` — or an `x:` extension token."
106
+ },
107
+ "required": {
108
+ "type": "boolean",
109
+ "default": true,
110
+ "description": "False for an attribute the applicant may decline. A submission missing a required one is refused with vtc/join-requests/submit:attributesMissing."
111
+ },
112
+ "purpose": {
113
+ "type": "string",
114
+ "maxLength": 256,
115
+ "description": "Why the community asks, in words shown to the applicant before they disclose."
116
+ }
117
+ },
118
+ "title": "RequestedAttribute"
119
+ }
120
+ }
121
+ } as const;
122
+
123
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
124
+ export const RESPONSE_PAYLOAD_SCHEMA = {
125
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
126
+ "$ref": "#/$defs/Response",
127
+ "$defs": {
128
+ "Response": {
129
+ "$anchor": "response",
130
+ "title": "VTC Community — Requested Attributes — Show — response payload",
131
+ "type": "object",
132
+ "additionalProperties": false,
133
+ "required": [
134
+ "requestedAttributes"
135
+ ],
136
+ "properties": {
137
+ "requestedAttributes": {
138
+ "$ref": "#/$defs/RequestedAttributes"
139
+ },
140
+ "ext": {
141
+ "$ref": "#/$defs/Ext"
142
+ }
143
+ }
144
+ },
145
+ "Ext": {
146
+ "title": "Ext",
147
+ "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.",
148
+ "type": "object",
149
+ "minProperties": 1,
150
+ "additionalProperties": true,
151
+ "propertyNames": {
152
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
153
+ }
154
+ },
155
+ "RequestedAttributes": {
156
+ "title": "RequestedAttributes",
157
+ "type": "array",
158
+ "maxItems": 32,
159
+ "items": {
160
+ "$ref": "#/$defs/RequestedAttribute"
161
+ },
162
+ "description": "What the community asks an applicant to tell it about themselves, as claim types — never values. At most 32 entries, and no claim type twice: two answers to one question is a question nobody can answer. Self-asserted by the applicant when answered; a community MUST NOT describe an answer as verified. Empty means the community asks nothing."
163
+ },
164
+ "RequestedAttribute": {
165
+ "type": "object",
166
+ "additionalProperties": false,
167
+ "required": [
168
+ "type"
169
+ ],
170
+ "properties": {
171
+ "type": {
172
+ "type": "string",
173
+ "minLength": 1,
174
+ "maxLength": 128,
175
+ "pattern": "^(x:)?[a-z][A-Za-z0-9]*(\\.[a-z][A-Za-z0-9]*)*$",
176
+ "description": "A claim-type token from the persona claim-type registry (persona/_shared/0.1/CLAIM-TYPES.md) — `name.display`, `address.country` — or an `x:` extension token."
177
+ },
178
+ "required": {
179
+ "type": "boolean",
180
+ "default": true,
181
+ "description": "False for an attribute the applicant may decline. A submission missing a required one is refused with vtc/join-requests/submit:attributesMissing."
182
+ },
183
+ "purpose": {
184
+ "type": "string",
185
+ "maxLength": 256,
186
+ "description": "Why the community asks, in words shown to the applicant before they disclose."
187
+ }
188
+ },
189
+ "title": "RequestedAttribute"
190
+ }
191
+ }
192
+ } as const;
193
+
194
+ /**
195
+ * SPEC.md §7.2 policy for the request variant, from this specification's
196
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
197
+ * per-specification and cannot be derived from the document alone, and
198
+ * item 2 needs the schema this carries.
199
+ */
200
+ export const SPEC = {
201
+ typeUri: TYPE_URI,
202
+ isBearer: false,
203
+ isProofRequired: false,
204
+ isRecipientRequired: true,
205
+ isIssuedAtRequired: false,
206
+ payloadSchema: PAYLOAD_SCHEMA,
207
+ } as const;
208
+
209
+ /**
210
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
211
+ * tracks the *issuer* party's requirement because a response swaps the
212
+ * parties (§7.3 item 5).
213
+ */
214
+ export const RESPONSE_SPEC = {
215
+ typeUri: RESPONSE_TYPE_URI,
216
+ isBearer: false,
217
+ isProofRequired: false,
218
+ isRecipientRequired: true,
219
+ isIssuedAtRequired: false,
220
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
221
+ } as const;
@@ -0,0 +1,228 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/community/requested-attributes/update/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { Ext, RequestedAttribute, RequestedAttributes } from "../../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * The whole new value, which replaces the stored one. The outer document members are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface VTCCommunityRequestedAttributesUpdatePayload {
13
+ requestedAttributes: RequestedAttributes;
14
+ ext?: Ext;
15
+ }
16
+ export interface VTCCommunityRequestedAttributesUpdateResponsePayload {
17
+ requestedAttributes: RequestedAttributes;
18
+ ext?: Ext;
19
+ }
20
+
21
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
22
+ export type { Ext, RequestedAttribute, RequestedAttributes };
23
+
24
+ /** Trust Task type URI. */
25
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/community/requested-attributes/update/0.1" as const;
26
+
27
+ /** Stable alias for this specification's request payload shape. */
28
+ export type Payload = VTCCommunityRequestedAttributesUpdatePayload;
29
+
30
+ /** Trust Task response type URI (request type URI + "#response"). */
31
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/community/requested-attributes/update/0.1#response" as const;
32
+
33
+ /** Stable alias for this specification's success-response payload shape. */
34
+ export type Response = VTCCommunityRequestedAttributesUpdateResponsePayload;
35
+
36
+ /**
37
+ * This specification's payload schema, as a value.
38
+ *
39
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
40
+ * rather than only as a `.json` file because TypeScript types are erased
41
+ * at runtime: without a schema a consumer has nothing to validate, and
42
+ * every REQUIRED payload member is optional in practice. Cross-file
43
+ * `$ref`s are already inlined, so it needs no resolver.
44
+ */
45
+ export const PAYLOAD_SCHEMA = {
46
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
47
+ "$id": "https://trusttasks.org/spec/vtc/community/requested-attributes/update/0.1",
48
+ "title": "VTC Community — Requested Attributes — Update — payload",
49
+ "description": "The whole new value, which replaces the stored one. The outer document members are owned by the framework — SPEC §6.3.",
50
+ "type": "object",
51
+ "additionalProperties": false,
52
+ "required": [
53
+ "requestedAttributes"
54
+ ],
55
+ "properties": {
56
+ "requestedAttributes": {
57
+ "$ref": "#/$defs/RequestedAttributes"
58
+ },
59
+ "ext": {
60
+ "$ref": "#/$defs/Ext"
61
+ }
62
+ },
63
+ "$defs": {
64
+ "Response": {
65
+ "$anchor": "response",
66
+ "title": "VTC Community — Requested Attributes — Update — response payload",
67
+ "type": "object",
68
+ "additionalProperties": false,
69
+ "required": [
70
+ "requestedAttributes"
71
+ ],
72
+ "properties": {
73
+ "requestedAttributes": {
74
+ "$ref": "#/$defs/RequestedAttributes"
75
+ },
76
+ "ext": {
77
+ "$ref": "#/$defs/Ext"
78
+ }
79
+ }
80
+ },
81
+ "Ext": {
82
+ "title": "Ext",
83
+ "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.",
84
+ "type": "object",
85
+ "minProperties": 1,
86
+ "additionalProperties": true,
87
+ "propertyNames": {
88
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
89
+ }
90
+ },
91
+ "RequestedAttributes": {
92
+ "title": "RequestedAttributes",
93
+ "type": "array",
94
+ "maxItems": 32,
95
+ "items": {
96
+ "$ref": "#/$defs/RequestedAttribute"
97
+ },
98
+ "description": "What the community asks an applicant to tell it about themselves, as claim types — never values. At most 32 entries, and no claim type twice: two answers to one question is a question nobody can answer. Self-asserted by the applicant when answered; a community MUST NOT describe an answer as verified. Empty means the community asks nothing."
99
+ },
100
+ "RequestedAttribute": {
101
+ "type": "object",
102
+ "additionalProperties": false,
103
+ "required": [
104
+ "type"
105
+ ],
106
+ "properties": {
107
+ "type": {
108
+ "type": "string",
109
+ "minLength": 1,
110
+ "maxLength": 128,
111
+ "pattern": "^(x:)?[a-z][A-Za-z0-9]*(\\.[a-z][A-Za-z0-9]*)*$",
112
+ "description": "A claim-type token from the persona claim-type registry (persona/_shared/0.1/CLAIM-TYPES.md) — `name.display`, `address.country` — or an `x:` extension token."
113
+ },
114
+ "required": {
115
+ "type": "boolean",
116
+ "default": true,
117
+ "description": "False for an attribute the applicant may decline. A submission missing a required one is refused with vtc/join-requests/submit:attributesMissing."
118
+ },
119
+ "purpose": {
120
+ "type": "string",
121
+ "maxLength": 256,
122
+ "description": "Why the community asks, in words shown to the applicant before they disclose."
123
+ }
124
+ },
125
+ "title": "RequestedAttribute"
126
+ }
127
+ }
128
+ } as const;
129
+
130
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
131
+ export const RESPONSE_PAYLOAD_SCHEMA = {
132
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
133
+ "$ref": "#/$defs/Response",
134
+ "$defs": {
135
+ "Response": {
136
+ "$anchor": "response",
137
+ "title": "VTC Community — Requested Attributes — Update — response payload",
138
+ "type": "object",
139
+ "additionalProperties": false,
140
+ "required": [
141
+ "requestedAttributes"
142
+ ],
143
+ "properties": {
144
+ "requestedAttributes": {
145
+ "$ref": "#/$defs/RequestedAttributes"
146
+ },
147
+ "ext": {
148
+ "$ref": "#/$defs/Ext"
149
+ }
150
+ }
151
+ },
152
+ "Ext": {
153
+ "title": "Ext",
154
+ "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.",
155
+ "type": "object",
156
+ "minProperties": 1,
157
+ "additionalProperties": true,
158
+ "propertyNames": {
159
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
160
+ }
161
+ },
162
+ "RequestedAttributes": {
163
+ "title": "RequestedAttributes",
164
+ "type": "array",
165
+ "maxItems": 32,
166
+ "items": {
167
+ "$ref": "#/$defs/RequestedAttribute"
168
+ },
169
+ "description": "What the community asks an applicant to tell it about themselves, as claim types — never values. At most 32 entries, and no claim type twice: two answers to one question is a question nobody can answer. Self-asserted by the applicant when answered; a community MUST NOT describe an answer as verified. Empty means the community asks nothing."
170
+ },
171
+ "RequestedAttribute": {
172
+ "type": "object",
173
+ "additionalProperties": false,
174
+ "required": [
175
+ "type"
176
+ ],
177
+ "properties": {
178
+ "type": {
179
+ "type": "string",
180
+ "minLength": 1,
181
+ "maxLength": 128,
182
+ "pattern": "^(x:)?[a-z][A-Za-z0-9]*(\\.[a-z][A-Za-z0-9]*)*$",
183
+ "description": "A claim-type token from the persona claim-type registry (persona/_shared/0.1/CLAIM-TYPES.md) — `name.display`, `address.country` — or an `x:` extension token."
184
+ },
185
+ "required": {
186
+ "type": "boolean",
187
+ "default": true,
188
+ "description": "False for an attribute the applicant may decline. A submission missing a required one is refused with vtc/join-requests/submit:attributesMissing."
189
+ },
190
+ "purpose": {
191
+ "type": "string",
192
+ "maxLength": 256,
193
+ "description": "Why the community asks, in words shown to the applicant before they disclose."
194
+ }
195
+ },
196
+ "title": "RequestedAttribute"
197
+ }
198
+ }
199
+ } as const;
200
+
201
+ /**
202
+ * SPEC.md §7.2 policy for the request variant, from this specification's
203
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
204
+ * per-specification and cannot be derived from the document alone, and
205
+ * item 2 needs the schema this carries.
206
+ */
207
+ export const SPEC = {
208
+ typeUri: TYPE_URI,
209
+ isBearer: false,
210
+ isProofRequired: true,
211
+ isRecipientRequired: true,
212
+ isIssuedAtRequired: true,
213
+ payloadSchema: PAYLOAD_SCHEMA,
214
+ } as const;
215
+
216
+ /**
217
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
218
+ * tracks the *issuer* party's requirement because a response swaps the
219
+ * parties (§7.3 item 5).
220
+ */
221
+ export const RESPONSE_SPEC = {
222
+ typeUri: RESPONSE_TYPE_URI,
223
+ isBearer: false,
224
+ isProofRequired: true,
225
+ isRecipientRequired: true,
226
+ isIssuedAtRequired: true,
227
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
228
+ } as const;