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