@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,325 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/schemas/register/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { CredentialSchema, CredentialTypeUri, DtgType, Ext, SchemaDescription, SchemaEntry, SchemaKind } from "../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * Register a credential type in the community's schema registry, or replace the registration of one already there. The outer document members are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface VTCSchemasRegisterPayload {
13
+ typeUri: CredentialTypeUri;
14
+ kind: SchemaKind;
15
+ dtgType?: DtgType;
16
+ credentialSchema?: CredentialSchema;
17
+ description?: SchemaDescription;
18
+ ext?: Ext;
19
+ }
20
+ export interface VTCSchemasRegisterResponsePayload {
21
+ schema: SchemaEntry;
22
+ ext?: Ext;
23
+ }
24
+
25
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
26
+ export type { CredentialSchema, CredentialTypeUri, DtgType, Ext, SchemaDescription, SchemaEntry, SchemaKind };
27
+
28
+ /** Trust Task type URI. */
29
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/schemas/register/0.1" as const;
30
+
31
+ /** Stable alias for this specification's request payload shape. */
32
+ export type Payload = VTCSchemasRegisterPayload;
33
+
34
+ /** Trust Task response type URI (request type URI + "#response"). */
35
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/schemas/register/0.1#response" as const;
36
+
37
+ /** Stable alias for this specification's success-response payload shape. */
38
+ export type Response = VTCSchemasRegisterResponsePayload;
39
+
40
+ /**
41
+ * This specification's payload schema, as a value.
42
+ *
43
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
44
+ * rather than only as a `.json` file because TypeScript types are erased
45
+ * at runtime: without a schema a consumer has nothing to validate, and
46
+ * every REQUIRED payload member is optional in practice. Cross-file
47
+ * `$ref`s are already inlined, so it needs no resolver.
48
+ */
49
+ export const PAYLOAD_SCHEMA = {
50
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
51
+ "$id": "https://trusttasks.org/spec/vtc/schemas/register/0.1",
52
+ "title": "VTC Schemas — Register — payload",
53
+ "description": "Register a credential type in the community's schema registry, or replace the registration of one already there. The outer document members are owned by the framework — SPEC §6.3.",
54
+ "type": "object",
55
+ "additionalProperties": false,
56
+ "required": [
57
+ "typeUri",
58
+ "kind"
59
+ ],
60
+ "properties": {
61
+ "typeUri": {
62
+ "$ref": "#/$defs/CredentialTypeUri"
63
+ },
64
+ "kind": {
65
+ "$ref": "#/$defs/SchemaKind"
66
+ },
67
+ "dtgType": {
68
+ "$ref": "#/$defs/DtgType"
69
+ },
70
+ "credentialSchema": {
71
+ "$ref": "#/$defs/CredentialSchema"
72
+ },
73
+ "description": {
74
+ "$ref": "#/$defs/SchemaDescription"
75
+ },
76
+ "ext": {
77
+ "$ref": "#/$defs/Ext"
78
+ }
79
+ },
80
+ "$defs": {
81
+ "Response": {
82
+ "$anchor": "response",
83
+ "title": "VTC Schemas — Register — response payload",
84
+ "type": "object",
85
+ "additionalProperties": false,
86
+ "required": [
87
+ "schema"
88
+ ],
89
+ "properties": {
90
+ "schema": {
91
+ "$ref": "#/$defs/SchemaEntry"
92
+ },
93
+ "ext": {
94
+ "$ref": "#/$defs/Ext"
95
+ }
96
+ }
97
+ },
98
+ "Ext": {
99
+ "title": "Ext",
100
+ "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.",
101
+ "type": "object",
102
+ "minProperties": 1,
103
+ "additionalProperties": true,
104
+ "propertyNames": {
105
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
106
+ }
107
+ },
108
+ "SchemaEntry": {
109
+ "title": "SchemaEntry",
110
+ "type": "object",
111
+ "additionalProperties": false,
112
+ "required": [
113
+ "typeUri",
114
+ "kind",
115
+ "createdAt",
116
+ "createdByDid"
117
+ ],
118
+ "description": "One registered credential type, as the community stores it.",
119
+ "properties": {
120
+ "typeUri": {
121
+ "$ref": "#/$defs/CredentialTypeUri"
122
+ },
123
+ "dtgType": {
124
+ "$ref": "#/$defs/DtgType"
125
+ },
126
+ "credentialSchema": {
127
+ "$ref": "#/$defs/CredentialSchema"
128
+ },
129
+ "kind": {
130
+ "$ref": "#/$defs/SchemaKind"
131
+ },
132
+ "description": {
133
+ "$ref": "#/$defs/SchemaDescription"
134
+ },
135
+ "createdAt": {
136
+ "type": "string",
137
+ "format": "date-time",
138
+ "description": "When this entry was last registered. Registering an existing type replaces the entry, so this is the time of the latest registration, not the first."
139
+ },
140
+ "createdByDid": {
141
+ "type": "string",
142
+ "pattern": "^did:",
143
+ "maxLength": 2048,
144
+ "description": "The administrator who last registered the entry."
145
+ }
146
+ }
147
+ },
148
+ "SchemaDescription": {
149
+ "title": "SchemaDescription",
150
+ "type": "string",
151
+ "maxLength": 1024,
152
+ "description": "An administrator's description of the entry, shown in administration surfaces. Free text written by the registering administrator and read by other administrators; untrusted, attributed to `createdByDid` wherever it is rendered, and never read by the community's own logic."
153
+ },
154
+ "SchemaKind": {
155
+ "title": "SchemaKind",
156
+ "type": "string",
157
+ "enum": [
158
+ "issues",
159
+ "accepts"
160
+ ],
161
+ "description": "Which half of the registry an entry is on. `issues`: the community mints credentials of this type, and issuance refuses a type not registered as `issues`. `accepts`: the community recognises credentials of this type as evidence, and an Accepts criterion may reference only a registered type."
162
+ },
163
+ "CredentialSchema": {
164
+ "title": "CredentialSchema",
165
+ "type": "object",
166
+ "additionalProperties": true,
167
+ "description": "A JSON Schema (the W3C `credentialSchema` a credential of this type must conform to), carried as data. Any JSON Schema the community's validator compiles; this specification does not constrain its members. Absent means the type is registered with no schema constraint."
168
+ },
169
+ "DtgType": {
170
+ "title": "DtgType",
171
+ "type": "string",
172
+ "minLength": 1,
173
+ "maxLength": 128,
174
+ "pattern": "^[A-Za-z][A-Za-z0-9]*$",
175
+ "description": "The DTG credential catalog type the entry binds to, e.g. `MembershipCredential`. Absent for a community-defined endorsement type that maps onto the generic `EndorsementCredential`."
176
+ },
177
+ "CredentialTypeUri": {
178
+ "title": "CredentialTypeUri",
179
+ "type": "string",
180
+ "minLength": 1,
181
+ "maxLength": 512,
182
+ "description": "A credential type URI — the W3C `type` value or the SD-JWT-VC `vct` a credential of this type carries. The registry's primary key, compared as an exact string after surrounding whitespace is trimmed. Bounded at 512 bytes because it keys the community's storage."
183
+ }
184
+ }
185
+ } as const;
186
+
187
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
188
+ export const RESPONSE_PAYLOAD_SCHEMA = {
189
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
190
+ "$ref": "#/$defs/Response",
191
+ "$defs": {
192
+ "Response": {
193
+ "$anchor": "response",
194
+ "title": "VTC Schemas — Register — response payload",
195
+ "type": "object",
196
+ "additionalProperties": false,
197
+ "required": [
198
+ "schema"
199
+ ],
200
+ "properties": {
201
+ "schema": {
202
+ "$ref": "#/$defs/SchemaEntry"
203
+ },
204
+ "ext": {
205
+ "$ref": "#/$defs/Ext"
206
+ }
207
+ }
208
+ },
209
+ "Ext": {
210
+ "title": "Ext",
211
+ "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.",
212
+ "type": "object",
213
+ "minProperties": 1,
214
+ "additionalProperties": true,
215
+ "propertyNames": {
216
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
217
+ }
218
+ },
219
+ "SchemaEntry": {
220
+ "title": "SchemaEntry",
221
+ "type": "object",
222
+ "additionalProperties": false,
223
+ "required": [
224
+ "typeUri",
225
+ "kind",
226
+ "createdAt",
227
+ "createdByDid"
228
+ ],
229
+ "description": "One registered credential type, as the community stores it.",
230
+ "properties": {
231
+ "typeUri": {
232
+ "$ref": "#/$defs/CredentialTypeUri"
233
+ },
234
+ "dtgType": {
235
+ "$ref": "#/$defs/DtgType"
236
+ },
237
+ "credentialSchema": {
238
+ "$ref": "#/$defs/CredentialSchema"
239
+ },
240
+ "kind": {
241
+ "$ref": "#/$defs/SchemaKind"
242
+ },
243
+ "description": {
244
+ "$ref": "#/$defs/SchemaDescription"
245
+ },
246
+ "createdAt": {
247
+ "type": "string",
248
+ "format": "date-time",
249
+ "description": "When this entry was last registered. Registering an existing type replaces the entry, so this is the time of the latest registration, not the first."
250
+ },
251
+ "createdByDid": {
252
+ "type": "string",
253
+ "pattern": "^did:",
254
+ "maxLength": 2048,
255
+ "description": "The administrator who last registered the entry."
256
+ }
257
+ }
258
+ },
259
+ "SchemaDescription": {
260
+ "title": "SchemaDescription",
261
+ "type": "string",
262
+ "maxLength": 1024,
263
+ "description": "An administrator's description of the entry, shown in administration surfaces. Free text written by the registering administrator and read by other administrators; untrusted, attributed to `createdByDid` wherever it is rendered, and never read by the community's own logic."
264
+ },
265
+ "SchemaKind": {
266
+ "title": "SchemaKind",
267
+ "type": "string",
268
+ "enum": [
269
+ "issues",
270
+ "accepts"
271
+ ],
272
+ "description": "Which half of the registry an entry is on. `issues`: the community mints credentials of this type, and issuance refuses a type not registered as `issues`. `accepts`: the community recognises credentials of this type as evidence, and an Accepts criterion may reference only a registered type."
273
+ },
274
+ "CredentialSchema": {
275
+ "title": "CredentialSchema",
276
+ "type": "object",
277
+ "additionalProperties": true,
278
+ "description": "A JSON Schema (the W3C `credentialSchema` a credential of this type must conform to), carried as data. Any JSON Schema the community's validator compiles; this specification does not constrain its members. Absent means the type is registered with no schema constraint."
279
+ },
280
+ "DtgType": {
281
+ "title": "DtgType",
282
+ "type": "string",
283
+ "minLength": 1,
284
+ "maxLength": 128,
285
+ "pattern": "^[A-Za-z][A-Za-z0-9]*$",
286
+ "description": "The DTG credential catalog type the entry binds to, e.g. `MembershipCredential`. Absent for a community-defined endorsement type that maps onto the generic `EndorsementCredential`."
287
+ },
288
+ "CredentialTypeUri": {
289
+ "title": "CredentialTypeUri",
290
+ "type": "string",
291
+ "minLength": 1,
292
+ "maxLength": 512,
293
+ "description": "A credential type URI — the W3C `type` value or the SD-JWT-VC `vct` a credential of this type carries. The registry's primary key, compared as an exact string after surrounding whitespace is trimmed. Bounded at 512 bytes because it keys the community's storage."
294
+ }
295
+ }
296
+ } as const;
297
+
298
+ /**
299
+ * SPEC.md §7.2 policy for the request variant, from this specification's
300
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
301
+ * per-specification and cannot be derived from the document alone, and
302
+ * item 2 needs the schema this carries.
303
+ */
304
+ export const SPEC = {
305
+ typeUri: TYPE_URI,
306
+ isBearer: false,
307
+ isProofRequired: true,
308
+ isRecipientRequired: true,
309
+ isIssuedAtRequired: true,
310
+ payloadSchema: PAYLOAD_SCHEMA,
311
+ } as const;
312
+
313
+ /**
314
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
315
+ * tracks the *issuer* party's requirement because a response swaps the
316
+ * parties (§7.3 item 5).
317
+ */
318
+ export const RESPONSE_SPEC = {
319
+ typeUri: RESPONSE_TYPE_URI,
320
+ isBearer: false,
321
+ isProofRequired: true,
322
+ isRecipientRequired: true,
323
+ isIssuedAtRequired: true,
324
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
325
+ } as const;
@@ -0,0 +1,308 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/schemas/show/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { CredentialSchema, CredentialTypeUri, DtgType, Ext, SchemaDescription, SchemaEntry, SchemaKind } from "../../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * Fetch one registry entry, schema body included. The outer document members are owned by the framework — SPEC §6.3.
11
+ */
12
+ export interface VTCSchemasShowPayload {
13
+ typeUri: CredentialTypeUri;
14
+ ext?: Ext;
15
+ }
16
+ export interface VTCSchemasShowResponsePayload {
17
+ schema: SchemaEntry;
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 { CredentialSchema, CredentialTypeUri, DtgType, Ext, SchemaDescription, SchemaEntry, SchemaKind };
23
+
24
+ /** Trust Task type URI. */
25
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/schemas/show/0.1" as const;
26
+
27
+ /** Stable alias for this specification's request payload shape. */
28
+ export type Payload = VTCSchemasShowPayload;
29
+
30
+ /** Trust Task response type URI (request type URI + "#response"). */
31
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/schemas/show/0.1#response" as const;
32
+
33
+ /** Stable alias for this specification's success-response payload shape. */
34
+ export type Response = VTCSchemasShowResponsePayload;
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/schemas/show/0.1",
48
+ "title": "VTC Schemas — Show — payload",
49
+ "description": "Fetch one registry entry, schema body included. The outer document members are owned by the framework — SPEC §6.3.",
50
+ "type": "object",
51
+ "additionalProperties": false,
52
+ "required": [
53
+ "typeUri"
54
+ ],
55
+ "properties": {
56
+ "typeUri": {
57
+ "$ref": "#/$defs/CredentialTypeUri"
58
+ },
59
+ "ext": {
60
+ "$ref": "#/$defs/Ext"
61
+ }
62
+ },
63
+ "$defs": {
64
+ "Response": {
65
+ "$anchor": "response",
66
+ "title": "VTC Schemas — Show — response payload",
67
+ "type": "object",
68
+ "additionalProperties": false,
69
+ "required": [
70
+ "schema"
71
+ ],
72
+ "properties": {
73
+ "schema": {
74
+ "$ref": "#/$defs/SchemaEntry"
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
+ "SchemaEntry": {
92
+ "title": "SchemaEntry",
93
+ "type": "object",
94
+ "additionalProperties": false,
95
+ "required": [
96
+ "typeUri",
97
+ "kind",
98
+ "createdAt",
99
+ "createdByDid"
100
+ ],
101
+ "description": "One registered credential type, as the community stores it.",
102
+ "properties": {
103
+ "typeUri": {
104
+ "$ref": "#/$defs/CredentialTypeUri"
105
+ },
106
+ "dtgType": {
107
+ "$ref": "#/$defs/DtgType"
108
+ },
109
+ "credentialSchema": {
110
+ "$ref": "#/$defs/CredentialSchema"
111
+ },
112
+ "kind": {
113
+ "$ref": "#/$defs/SchemaKind"
114
+ },
115
+ "description": {
116
+ "$ref": "#/$defs/SchemaDescription"
117
+ },
118
+ "createdAt": {
119
+ "type": "string",
120
+ "format": "date-time",
121
+ "description": "When this entry was last registered. Registering an existing type replaces the entry, so this is the time of the latest registration, not the first."
122
+ },
123
+ "createdByDid": {
124
+ "type": "string",
125
+ "pattern": "^did:",
126
+ "maxLength": 2048,
127
+ "description": "The administrator who last registered the entry."
128
+ }
129
+ }
130
+ },
131
+ "SchemaDescription": {
132
+ "title": "SchemaDescription",
133
+ "type": "string",
134
+ "maxLength": 1024,
135
+ "description": "An administrator's description of the entry, shown in administration surfaces. Free text written by the registering administrator and read by other administrators; untrusted, attributed to `createdByDid` wherever it is rendered, and never read by the community's own logic."
136
+ },
137
+ "SchemaKind": {
138
+ "title": "SchemaKind",
139
+ "type": "string",
140
+ "enum": [
141
+ "issues",
142
+ "accepts"
143
+ ],
144
+ "description": "Which half of the registry an entry is on. `issues`: the community mints credentials of this type, and issuance refuses a type not registered as `issues`. `accepts`: the community recognises credentials of this type as evidence, and an Accepts criterion may reference only a registered type."
145
+ },
146
+ "CredentialSchema": {
147
+ "title": "CredentialSchema",
148
+ "type": "object",
149
+ "additionalProperties": true,
150
+ "description": "A JSON Schema (the W3C `credentialSchema` a credential of this type must conform to), carried as data. Any JSON Schema the community's validator compiles; this specification does not constrain its members. Absent means the type is registered with no schema constraint."
151
+ },
152
+ "DtgType": {
153
+ "title": "DtgType",
154
+ "type": "string",
155
+ "minLength": 1,
156
+ "maxLength": 128,
157
+ "pattern": "^[A-Za-z][A-Za-z0-9]*$",
158
+ "description": "The DTG credential catalog type the entry binds to, e.g. `MembershipCredential`. Absent for a community-defined endorsement type that maps onto the generic `EndorsementCredential`."
159
+ },
160
+ "CredentialTypeUri": {
161
+ "title": "CredentialTypeUri",
162
+ "type": "string",
163
+ "minLength": 1,
164
+ "maxLength": 512,
165
+ "description": "A credential type URI — the W3C `type` value or the SD-JWT-VC `vct` a credential of this type carries. The registry's primary key, compared as an exact string after surrounding whitespace is trimmed. Bounded at 512 bytes because it keys the community's storage."
166
+ }
167
+ }
168
+ } as const;
169
+
170
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
171
+ export const RESPONSE_PAYLOAD_SCHEMA = {
172
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
173
+ "$ref": "#/$defs/Response",
174
+ "$defs": {
175
+ "Response": {
176
+ "$anchor": "response",
177
+ "title": "VTC Schemas — Show — response payload",
178
+ "type": "object",
179
+ "additionalProperties": false,
180
+ "required": [
181
+ "schema"
182
+ ],
183
+ "properties": {
184
+ "schema": {
185
+ "$ref": "#/$defs/SchemaEntry"
186
+ },
187
+ "ext": {
188
+ "$ref": "#/$defs/Ext"
189
+ }
190
+ }
191
+ },
192
+ "Ext": {
193
+ "title": "Ext",
194
+ "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.",
195
+ "type": "object",
196
+ "minProperties": 1,
197
+ "additionalProperties": true,
198
+ "propertyNames": {
199
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
200
+ }
201
+ },
202
+ "SchemaEntry": {
203
+ "title": "SchemaEntry",
204
+ "type": "object",
205
+ "additionalProperties": false,
206
+ "required": [
207
+ "typeUri",
208
+ "kind",
209
+ "createdAt",
210
+ "createdByDid"
211
+ ],
212
+ "description": "One registered credential type, as the community stores it.",
213
+ "properties": {
214
+ "typeUri": {
215
+ "$ref": "#/$defs/CredentialTypeUri"
216
+ },
217
+ "dtgType": {
218
+ "$ref": "#/$defs/DtgType"
219
+ },
220
+ "credentialSchema": {
221
+ "$ref": "#/$defs/CredentialSchema"
222
+ },
223
+ "kind": {
224
+ "$ref": "#/$defs/SchemaKind"
225
+ },
226
+ "description": {
227
+ "$ref": "#/$defs/SchemaDescription"
228
+ },
229
+ "createdAt": {
230
+ "type": "string",
231
+ "format": "date-time",
232
+ "description": "When this entry was last registered. Registering an existing type replaces the entry, so this is the time of the latest registration, not the first."
233
+ },
234
+ "createdByDid": {
235
+ "type": "string",
236
+ "pattern": "^did:",
237
+ "maxLength": 2048,
238
+ "description": "The administrator who last registered the entry."
239
+ }
240
+ }
241
+ },
242
+ "SchemaDescription": {
243
+ "title": "SchemaDescription",
244
+ "type": "string",
245
+ "maxLength": 1024,
246
+ "description": "An administrator's description of the entry, shown in administration surfaces. Free text written by the registering administrator and read by other administrators; untrusted, attributed to `createdByDid` wherever it is rendered, and never read by the community's own logic."
247
+ },
248
+ "SchemaKind": {
249
+ "title": "SchemaKind",
250
+ "type": "string",
251
+ "enum": [
252
+ "issues",
253
+ "accepts"
254
+ ],
255
+ "description": "Which half of the registry an entry is on. `issues`: the community mints credentials of this type, and issuance refuses a type not registered as `issues`. `accepts`: the community recognises credentials of this type as evidence, and an Accepts criterion may reference only a registered type."
256
+ },
257
+ "CredentialSchema": {
258
+ "title": "CredentialSchema",
259
+ "type": "object",
260
+ "additionalProperties": true,
261
+ "description": "A JSON Schema (the W3C `credentialSchema` a credential of this type must conform to), carried as data. Any JSON Schema the community's validator compiles; this specification does not constrain its members. Absent means the type is registered with no schema constraint."
262
+ },
263
+ "DtgType": {
264
+ "title": "DtgType",
265
+ "type": "string",
266
+ "minLength": 1,
267
+ "maxLength": 128,
268
+ "pattern": "^[A-Za-z][A-Za-z0-9]*$",
269
+ "description": "The DTG credential catalog type the entry binds to, e.g. `MembershipCredential`. Absent for a community-defined endorsement type that maps onto the generic `EndorsementCredential`."
270
+ },
271
+ "CredentialTypeUri": {
272
+ "title": "CredentialTypeUri",
273
+ "type": "string",
274
+ "minLength": 1,
275
+ "maxLength": 512,
276
+ "description": "A credential type URI — the W3C `type` value or the SD-JWT-VC `vct` a credential of this type carries. The registry's primary key, compared as an exact string after surrounding whitespace is trimmed. Bounded at 512 bytes because it keys the community's storage."
277
+ }
278
+ }
279
+ } as const;
280
+
281
+ /**
282
+ * SPEC.md §7.2 policy for the request variant, from this specification's
283
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
284
+ * per-specification and cannot be derived from the document alone, and
285
+ * item 2 needs the schema this carries.
286
+ */
287
+ export const SPEC = {
288
+ typeUri: TYPE_URI,
289
+ isBearer: false,
290
+ isProofRequired: false,
291
+ isRecipientRequired: true,
292
+ isIssuedAtRequired: false,
293
+ payloadSchema: PAYLOAD_SCHEMA,
294
+ } as const;
295
+
296
+ /**
297
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
298
+ * tracks the *issuer* party's requirement because a response swaps the
299
+ * parties (§7.3 item 5).
300
+ */
301
+ export const RESPONSE_SPEC = {
302
+ typeUri: RESPONSE_TYPE_URI,
303
+ isBearer: false,
304
+ isProofRequired: false,
305
+ isRecipientRequired: true,
306
+ isIssuedAtRequired: false,
307
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
308
+ } as const;