@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,512 @@
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
+ import type { CredentialSchema, CredentialTypeUri, DtgType, Ext, SchemaDescription, SchemaEntry, SchemaKind } from "../../../../_shared/components.js";
6
+ /**
7
+ * 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.
8
+ */
9
+ export interface VTCSchemasRegisterPayload {
10
+ typeUri: CredentialTypeUri;
11
+ kind: SchemaKind;
12
+ dtgType?: DtgType;
13
+ credentialSchema?: CredentialSchema;
14
+ description?: SchemaDescription;
15
+ ext?: Ext;
16
+ }
17
+ export interface VTCSchemasRegisterResponsePayload {
18
+ schema: SchemaEntry;
19
+ ext?: Ext;
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
+ /** Trust Task type URI. */
24
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/schemas/register/0.1";
25
+ /** Stable alias for this specification's request payload shape. */
26
+ export type Payload = VTCSchemasRegisterPayload;
27
+ /** Trust Task response type URI (request type URI + "#response"). */
28
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/schemas/register/0.1#response";
29
+ /** Stable alias for this specification's success-response payload shape. */
30
+ export type Response = VTCSchemasRegisterResponsePayload;
31
+ /**
32
+ * This specification's payload schema, as a value.
33
+ *
34
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
35
+ * rather than only as a `.json` file because TypeScript types are erased
36
+ * at runtime: without a schema a consumer has nothing to validate, and
37
+ * every REQUIRED payload member is optional in practice. Cross-file
38
+ * `$ref`s are already inlined, so it needs no resolver.
39
+ */
40
+ export declare const PAYLOAD_SCHEMA: {
41
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
42
+ readonly $id: "https://trusttasks.org/spec/vtc/schemas/register/0.1";
43
+ readonly title: "VTC Schemas — Register — payload";
44
+ readonly 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.";
45
+ readonly type: "object";
46
+ readonly additionalProperties: false;
47
+ readonly required: readonly ["typeUri", "kind"];
48
+ readonly properties: {
49
+ readonly typeUri: {
50
+ readonly $ref: "#/$defs/CredentialTypeUri";
51
+ };
52
+ readonly kind: {
53
+ readonly $ref: "#/$defs/SchemaKind";
54
+ };
55
+ readonly dtgType: {
56
+ readonly $ref: "#/$defs/DtgType";
57
+ };
58
+ readonly credentialSchema: {
59
+ readonly $ref: "#/$defs/CredentialSchema";
60
+ };
61
+ readonly description: {
62
+ readonly $ref: "#/$defs/SchemaDescription";
63
+ };
64
+ readonly ext: {
65
+ readonly $ref: "#/$defs/Ext";
66
+ };
67
+ };
68
+ readonly $defs: {
69
+ readonly Response: {
70
+ readonly $anchor: "response";
71
+ readonly title: "VTC Schemas — Register — response payload";
72
+ readonly type: "object";
73
+ readonly additionalProperties: false;
74
+ readonly required: readonly ["schema"];
75
+ readonly properties: {
76
+ readonly schema: {
77
+ readonly $ref: "#/$defs/SchemaEntry";
78
+ };
79
+ readonly ext: {
80
+ readonly $ref: "#/$defs/Ext";
81
+ };
82
+ };
83
+ };
84
+ readonly Ext: {
85
+ readonly title: "Ext";
86
+ readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
87
+ readonly type: "object";
88
+ readonly minProperties: 1;
89
+ readonly additionalProperties: true;
90
+ readonly propertyNames: {
91
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
92
+ };
93
+ };
94
+ readonly SchemaEntry: {
95
+ readonly title: "SchemaEntry";
96
+ readonly type: "object";
97
+ readonly additionalProperties: false;
98
+ readonly required: readonly ["typeUri", "kind", "createdAt", "createdByDid"];
99
+ readonly description: "One registered credential type, as the community stores it.";
100
+ readonly properties: {
101
+ readonly typeUri: {
102
+ readonly $ref: "#/$defs/CredentialTypeUri";
103
+ };
104
+ readonly dtgType: {
105
+ readonly $ref: "#/$defs/DtgType";
106
+ };
107
+ readonly credentialSchema: {
108
+ readonly $ref: "#/$defs/CredentialSchema";
109
+ };
110
+ readonly kind: {
111
+ readonly $ref: "#/$defs/SchemaKind";
112
+ };
113
+ readonly description: {
114
+ readonly $ref: "#/$defs/SchemaDescription";
115
+ };
116
+ readonly createdAt: {
117
+ readonly type: "string";
118
+ readonly format: "date-time";
119
+ readonly 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.";
120
+ };
121
+ readonly createdByDid: {
122
+ readonly type: "string";
123
+ readonly pattern: "^did:";
124
+ readonly maxLength: 2048;
125
+ readonly description: "The administrator who last registered the entry.";
126
+ };
127
+ };
128
+ };
129
+ readonly SchemaDescription: {
130
+ readonly title: "SchemaDescription";
131
+ readonly type: "string";
132
+ readonly maxLength: 1024;
133
+ readonly 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.";
134
+ };
135
+ readonly SchemaKind: {
136
+ readonly title: "SchemaKind";
137
+ readonly type: "string";
138
+ readonly enum: readonly ["issues", "accepts"];
139
+ readonly 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.";
140
+ };
141
+ readonly CredentialSchema: {
142
+ readonly title: "CredentialSchema";
143
+ readonly type: "object";
144
+ readonly additionalProperties: true;
145
+ readonly 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.";
146
+ };
147
+ readonly DtgType: {
148
+ readonly title: "DtgType";
149
+ readonly type: "string";
150
+ readonly minLength: 1;
151
+ readonly maxLength: 128;
152
+ readonly pattern: "^[A-Za-z][A-Za-z0-9]*$";
153
+ readonly 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`.";
154
+ };
155
+ readonly CredentialTypeUri: {
156
+ readonly title: "CredentialTypeUri";
157
+ readonly type: "string";
158
+ readonly minLength: 1;
159
+ readonly maxLength: 512;
160
+ readonly 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.";
161
+ };
162
+ };
163
+ };
164
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
165
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
166
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
167
+ readonly $ref: "#/$defs/Response";
168
+ readonly $defs: {
169
+ readonly Response: {
170
+ readonly $anchor: "response";
171
+ readonly title: "VTC Schemas — Register — response payload";
172
+ readonly type: "object";
173
+ readonly additionalProperties: false;
174
+ readonly required: readonly ["schema"];
175
+ readonly properties: {
176
+ readonly schema: {
177
+ readonly $ref: "#/$defs/SchemaEntry";
178
+ };
179
+ readonly ext: {
180
+ readonly $ref: "#/$defs/Ext";
181
+ };
182
+ };
183
+ };
184
+ readonly Ext: {
185
+ readonly title: "Ext";
186
+ readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
187
+ readonly type: "object";
188
+ readonly minProperties: 1;
189
+ readonly additionalProperties: true;
190
+ readonly propertyNames: {
191
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
192
+ };
193
+ };
194
+ readonly SchemaEntry: {
195
+ readonly title: "SchemaEntry";
196
+ readonly type: "object";
197
+ readonly additionalProperties: false;
198
+ readonly required: readonly ["typeUri", "kind", "createdAt", "createdByDid"];
199
+ readonly description: "One registered credential type, as the community stores it.";
200
+ readonly properties: {
201
+ readonly typeUri: {
202
+ readonly $ref: "#/$defs/CredentialTypeUri";
203
+ };
204
+ readonly dtgType: {
205
+ readonly $ref: "#/$defs/DtgType";
206
+ };
207
+ readonly credentialSchema: {
208
+ readonly $ref: "#/$defs/CredentialSchema";
209
+ };
210
+ readonly kind: {
211
+ readonly $ref: "#/$defs/SchemaKind";
212
+ };
213
+ readonly description: {
214
+ readonly $ref: "#/$defs/SchemaDescription";
215
+ };
216
+ readonly createdAt: {
217
+ readonly type: "string";
218
+ readonly format: "date-time";
219
+ readonly 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.";
220
+ };
221
+ readonly createdByDid: {
222
+ readonly type: "string";
223
+ readonly pattern: "^did:";
224
+ readonly maxLength: 2048;
225
+ readonly description: "The administrator who last registered the entry.";
226
+ };
227
+ };
228
+ };
229
+ readonly SchemaDescription: {
230
+ readonly title: "SchemaDescription";
231
+ readonly type: "string";
232
+ readonly maxLength: 1024;
233
+ readonly 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.";
234
+ };
235
+ readonly SchemaKind: {
236
+ readonly title: "SchemaKind";
237
+ readonly type: "string";
238
+ readonly enum: readonly ["issues", "accepts"];
239
+ readonly 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.";
240
+ };
241
+ readonly CredentialSchema: {
242
+ readonly title: "CredentialSchema";
243
+ readonly type: "object";
244
+ readonly additionalProperties: true;
245
+ readonly 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.";
246
+ };
247
+ readonly DtgType: {
248
+ readonly title: "DtgType";
249
+ readonly type: "string";
250
+ readonly minLength: 1;
251
+ readonly maxLength: 128;
252
+ readonly pattern: "^[A-Za-z][A-Za-z0-9]*$";
253
+ readonly 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`.";
254
+ };
255
+ readonly CredentialTypeUri: {
256
+ readonly title: "CredentialTypeUri";
257
+ readonly type: "string";
258
+ readonly minLength: 1;
259
+ readonly maxLength: 512;
260
+ readonly 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.";
261
+ };
262
+ };
263
+ };
264
+ /**
265
+ * SPEC.md §7.2 policy for the request variant, from this specification's
266
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
267
+ * per-specification and cannot be derived from the document alone, and
268
+ * item 2 needs the schema this carries.
269
+ */
270
+ export declare const SPEC: {
271
+ readonly typeUri: "https://trusttasks.org/spec/vtc/schemas/register/0.1";
272
+ readonly isBearer: false;
273
+ readonly isProofRequired: true;
274
+ readonly isRecipientRequired: true;
275
+ readonly isIssuedAtRequired: true;
276
+ readonly payloadSchema: {
277
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
278
+ readonly $id: "https://trusttasks.org/spec/vtc/schemas/register/0.1";
279
+ readonly title: "VTC Schemas — Register — payload";
280
+ readonly 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.";
281
+ readonly type: "object";
282
+ readonly additionalProperties: false;
283
+ readonly required: readonly ["typeUri", "kind"];
284
+ readonly properties: {
285
+ readonly typeUri: {
286
+ readonly $ref: "#/$defs/CredentialTypeUri";
287
+ };
288
+ readonly kind: {
289
+ readonly $ref: "#/$defs/SchemaKind";
290
+ };
291
+ readonly dtgType: {
292
+ readonly $ref: "#/$defs/DtgType";
293
+ };
294
+ readonly credentialSchema: {
295
+ readonly $ref: "#/$defs/CredentialSchema";
296
+ };
297
+ readonly description: {
298
+ readonly $ref: "#/$defs/SchemaDescription";
299
+ };
300
+ readonly ext: {
301
+ readonly $ref: "#/$defs/Ext";
302
+ };
303
+ };
304
+ readonly $defs: {
305
+ readonly Response: {
306
+ readonly $anchor: "response";
307
+ readonly title: "VTC Schemas — Register — response payload";
308
+ readonly type: "object";
309
+ readonly additionalProperties: false;
310
+ readonly required: readonly ["schema"];
311
+ readonly properties: {
312
+ readonly schema: {
313
+ readonly $ref: "#/$defs/SchemaEntry";
314
+ };
315
+ readonly ext: {
316
+ readonly $ref: "#/$defs/Ext";
317
+ };
318
+ };
319
+ };
320
+ readonly Ext: {
321
+ readonly title: "Ext";
322
+ readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
323
+ readonly type: "object";
324
+ readonly minProperties: 1;
325
+ readonly additionalProperties: true;
326
+ readonly propertyNames: {
327
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
328
+ };
329
+ };
330
+ readonly SchemaEntry: {
331
+ readonly title: "SchemaEntry";
332
+ readonly type: "object";
333
+ readonly additionalProperties: false;
334
+ readonly required: readonly ["typeUri", "kind", "createdAt", "createdByDid"];
335
+ readonly description: "One registered credential type, as the community stores it.";
336
+ readonly properties: {
337
+ readonly typeUri: {
338
+ readonly $ref: "#/$defs/CredentialTypeUri";
339
+ };
340
+ readonly dtgType: {
341
+ readonly $ref: "#/$defs/DtgType";
342
+ };
343
+ readonly credentialSchema: {
344
+ readonly $ref: "#/$defs/CredentialSchema";
345
+ };
346
+ readonly kind: {
347
+ readonly $ref: "#/$defs/SchemaKind";
348
+ };
349
+ readonly description: {
350
+ readonly $ref: "#/$defs/SchemaDescription";
351
+ };
352
+ readonly createdAt: {
353
+ readonly type: "string";
354
+ readonly format: "date-time";
355
+ readonly 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.";
356
+ };
357
+ readonly createdByDid: {
358
+ readonly type: "string";
359
+ readonly pattern: "^did:";
360
+ readonly maxLength: 2048;
361
+ readonly description: "The administrator who last registered the entry.";
362
+ };
363
+ };
364
+ };
365
+ readonly SchemaDescription: {
366
+ readonly title: "SchemaDescription";
367
+ readonly type: "string";
368
+ readonly maxLength: 1024;
369
+ readonly 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.";
370
+ };
371
+ readonly SchemaKind: {
372
+ readonly title: "SchemaKind";
373
+ readonly type: "string";
374
+ readonly enum: readonly ["issues", "accepts"];
375
+ readonly 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.";
376
+ };
377
+ readonly CredentialSchema: {
378
+ readonly title: "CredentialSchema";
379
+ readonly type: "object";
380
+ readonly additionalProperties: true;
381
+ readonly 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.";
382
+ };
383
+ readonly DtgType: {
384
+ readonly title: "DtgType";
385
+ readonly type: "string";
386
+ readonly minLength: 1;
387
+ readonly maxLength: 128;
388
+ readonly pattern: "^[A-Za-z][A-Za-z0-9]*$";
389
+ readonly 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`.";
390
+ };
391
+ readonly CredentialTypeUri: {
392
+ readonly title: "CredentialTypeUri";
393
+ readonly type: "string";
394
+ readonly minLength: 1;
395
+ readonly maxLength: 512;
396
+ readonly 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.";
397
+ };
398
+ };
399
+ };
400
+ };
401
+ /**
402
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
403
+ * tracks the *issuer* party's requirement because a response swaps the
404
+ * parties (§7.3 item 5).
405
+ */
406
+ export declare const RESPONSE_SPEC: {
407
+ readonly typeUri: "https://trusttasks.org/spec/vtc/schemas/register/0.1#response";
408
+ readonly isBearer: false;
409
+ readonly isProofRequired: true;
410
+ readonly isRecipientRequired: true;
411
+ readonly isIssuedAtRequired: true;
412
+ readonly payloadSchema: {
413
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
414
+ readonly $ref: "#/$defs/Response";
415
+ readonly $defs: {
416
+ readonly Response: {
417
+ readonly $anchor: "response";
418
+ readonly title: "VTC Schemas — Register — response payload";
419
+ readonly type: "object";
420
+ readonly additionalProperties: false;
421
+ readonly required: readonly ["schema"];
422
+ readonly properties: {
423
+ readonly schema: {
424
+ readonly $ref: "#/$defs/SchemaEntry";
425
+ };
426
+ readonly ext: {
427
+ readonly $ref: "#/$defs/Ext";
428
+ };
429
+ };
430
+ };
431
+ readonly Ext: {
432
+ readonly title: "Ext";
433
+ readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
434
+ readonly type: "object";
435
+ readonly minProperties: 1;
436
+ readonly additionalProperties: true;
437
+ readonly propertyNames: {
438
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
439
+ };
440
+ };
441
+ readonly SchemaEntry: {
442
+ readonly title: "SchemaEntry";
443
+ readonly type: "object";
444
+ readonly additionalProperties: false;
445
+ readonly required: readonly ["typeUri", "kind", "createdAt", "createdByDid"];
446
+ readonly description: "One registered credential type, as the community stores it.";
447
+ readonly properties: {
448
+ readonly typeUri: {
449
+ readonly $ref: "#/$defs/CredentialTypeUri";
450
+ };
451
+ readonly dtgType: {
452
+ readonly $ref: "#/$defs/DtgType";
453
+ };
454
+ readonly credentialSchema: {
455
+ readonly $ref: "#/$defs/CredentialSchema";
456
+ };
457
+ readonly kind: {
458
+ readonly $ref: "#/$defs/SchemaKind";
459
+ };
460
+ readonly description: {
461
+ readonly $ref: "#/$defs/SchemaDescription";
462
+ };
463
+ readonly createdAt: {
464
+ readonly type: "string";
465
+ readonly format: "date-time";
466
+ readonly 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.";
467
+ };
468
+ readonly createdByDid: {
469
+ readonly type: "string";
470
+ readonly pattern: "^did:";
471
+ readonly maxLength: 2048;
472
+ readonly description: "The administrator who last registered the entry.";
473
+ };
474
+ };
475
+ };
476
+ readonly SchemaDescription: {
477
+ readonly title: "SchemaDescription";
478
+ readonly type: "string";
479
+ readonly maxLength: 1024;
480
+ readonly 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.";
481
+ };
482
+ readonly SchemaKind: {
483
+ readonly title: "SchemaKind";
484
+ readonly type: "string";
485
+ readonly enum: readonly ["issues", "accepts"];
486
+ readonly 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.";
487
+ };
488
+ readonly CredentialSchema: {
489
+ readonly title: "CredentialSchema";
490
+ readonly type: "object";
491
+ readonly additionalProperties: true;
492
+ readonly 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.";
493
+ };
494
+ readonly DtgType: {
495
+ readonly title: "DtgType";
496
+ readonly type: "string";
497
+ readonly minLength: 1;
498
+ readonly maxLength: 128;
499
+ readonly pattern: "^[A-Za-z][A-Za-z0-9]*$";
500
+ readonly 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`.";
501
+ };
502
+ readonly CredentialTypeUri: {
503
+ readonly title: "CredentialTypeUri";
504
+ readonly type: "string";
505
+ readonly minLength: 1;
506
+ readonly maxLength: 512;
507
+ readonly 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.";
508
+ };
509
+ };
510
+ };
511
+ };
512
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vtc/schemas/register/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,OAAO,EAAE,GAAG,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAGvJ;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,iBAAiB,CAAC;IAC3B,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD,MAAM,WAAW,iCAAiC;IAChD,MAAM,EAAE,WAAW,CAAC;IACpB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,OAAO,EAAE,GAAG,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;AAE9G,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,sDAA+D,CAAC;AAExF,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,yBAAyB,CAAC;AAEhD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,+DAAwE,CAAC;AAE1G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,iCAAiC,CAAC;AAEzD;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwIjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4G1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}