@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,204 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/auth/signing-key/revoke/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Ext, SigningKeyDid } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Revoke one signing-key delegation, by its key. The next document the key signs is refused. The outer document members are owned by the framework — SPEC §6.3.
|
|
11
|
+
*/
|
|
12
|
+
export interface AuthSigningKeyRevokePayload {
|
|
13
|
+
signingKeyDid: SigningKeyDid;
|
|
14
|
+
ext?: Ext;
|
|
15
|
+
}
|
|
16
|
+
export interface AuthSigningKeyRevokeResponsePayload {
|
|
17
|
+
signingKeyDid: SigningKeyDid;
|
|
18
|
+
/**
|
|
19
|
+
* When the delegation was revoked. For a delegation that was already revoked, the original instant: a revoke of a revoked key succeeds and changes nothing.
|
|
20
|
+
*/
|
|
21
|
+
revokedAt: string;
|
|
22
|
+
/**
|
|
23
|
+
* How many of the owning identity's delegations are still active. Zero is a legitimate state: losing every delegated key costs an identity the delegated signing path, not its own standing or its other credentials.
|
|
24
|
+
*/
|
|
25
|
+
remainingActive: number;
|
|
26
|
+
ext?: Ext;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
30
|
+
export type { Ext, SigningKeyDid };
|
|
31
|
+
|
|
32
|
+
/** Trust Task type URI. */
|
|
33
|
+
export const TYPE_URI = "https://trusttasks.org/spec/auth/signing-key/revoke/0.1" as const;
|
|
34
|
+
|
|
35
|
+
/** Stable alias for this specification's request payload shape. */
|
|
36
|
+
export type Payload = AuthSigningKeyRevokePayload;
|
|
37
|
+
|
|
38
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
39
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/auth/signing-key/revoke/0.1#response" as const;
|
|
40
|
+
|
|
41
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
42
|
+
export type Response = AuthSigningKeyRevokeResponsePayload;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* This specification's payload schema, as a value.
|
|
46
|
+
*
|
|
47
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
48
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
49
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
50
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
51
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
52
|
+
*/
|
|
53
|
+
export const PAYLOAD_SCHEMA = {
|
|
54
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
55
|
+
"$id": "https://trusttasks.org/spec/auth/signing-key/revoke/0.1",
|
|
56
|
+
"title": "Auth — Signing Key Revoke — payload",
|
|
57
|
+
"description": "Revoke one signing-key delegation, by its key. The next document the key signs is refused. The outer document members are owned by the framework — SPEC §6.3.",
|
|
58
|
+
"type": "object",
|
|
59
|
+
"additionalProperties": false,
|
|
60
|
+
"required": [
|
|
61
|
+
"signingKeyDid"
|
|
62
|
+
],
|
|
63
|
+
"properties": {
|
|
64
|
+
"signingKeyDid": {
|
|
65
|
+
"$ref": "#/$defs/SigningKeyDid"
|
|
66
|
+
},
|
|
67
|
+
"ext": {
|
|
68
|
+
"$ref": "#/$defs/Ext"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"$defs": {
|
|
72
|
+
"Response": {
|
|
73
|
+
"$anchor": "response",
|
|
74
|
+
"title": "Auth — Signing Key Revoke — response payload",
|
|
75
|
+
"type": "object",
|
|
76
|
+
"additionalProperties": false,
|
|
77
|
+
"required": [
|
|
78
|
+
"signingKeyDid",
|
|
79
|
+
"revokedAt",
|
|
80
|
+
"remainingActive"
|
|
81
|
+
],
|
|
82
|
+
"properties": {
|
|
83
|
+
"signingKeyDid": {
|
|
84
|
+
"$ref": "#/$defs/SigningKeyDid"
|
|
85
|
+
},
|
|
86
|
+
"revokedAt": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"format": "date-time",
|
|
89
|
+
"description": "When the delegation was revoked. For a delegation that was already revoked, the original instant: a revoke of a revoked key succeeds and changes nothing."
|
|
90
|
+
},
|
|
91
|
+
"remainingActive": {
|
|
92
|
+
"type": "integer",
|
|
93
|
+
"minimum": 0,
|
|
94
|
+
"description": "How many of the owning identity's delegations are still active. Zero is a legitimate state: losing every delegated key costs an identity the delegated signing path, not its own standing or its other credentials."
|
|
95
|
+
},
|
|
96
|
+
"ext": {
|
|
97
|
+
"$ref": "#/$defs/Ext"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"Ext": {
|
|
102
|
+
"title": "Ext",
|
|
103
|
+
"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.",
|
|
104
|
+
"type": "object",
|
|
105
|
+
"minProperties": 1,
|
|
106
|
+
"additionalProperties": true,
|
|
107
|
+
"propertyNames": {
|
|
108
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"SigningKeyDid": {
|
|
112
|
+
"title": "SigningKeyDid",
|
|
113
|
+
"type": "string",
|
|
114
|
+
"minLength": 9,
|
|
115
|
+
"maxLength": 256,
|
|
116
|
+
"pattern": "^did:key:z[1-9A-HJ-NP-Za-km-z]+$",
|
|
117
|
+
"description": "The delegated key, as a `did:key` — an Ed25519 multikey (`z6Mk…`) derived from the public half of a keypair the holder generated for itself, typically a non-extractable browser key. `did:key` only, because its document is a function of the key and resolves with no network: a key whose DID document could be rewritten after enrolment is not the key that was enrolled."
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
} as const;
|
|
121
|
+
|
|
122
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
123
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
124
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
125
|
+
"$ref": "#/$defs/Response",
|
|
126
|
+
"$defs": {
|
|
127
|
+
"Response": {
|
|
128
|
+
"$anchor": "response",
|
|
129
|
+
"title": "Auth — Signing Key Revoke — response payload",
|
|
130
|
+
"type": "object",
|
|
131
|
+
"additionalProperties": false,
|
|
132
|
+
"required": [
|
|
133
|
+
"signingKeyDid",
|
|
134
|
+
"revokedAt",
|
|
135
|
+
"remainingActive"
|
|
136
|
+
],
|
|
137
|
+
"properties": {
|
|
138
|
+
"signingKeyDid": {
|
|
139
|
+
"$ref": "#/$defs/SigningKeyDid"
|
|
140
|
+
},
|
|
141
|
+
"revokedAt": {
|
|
142
|
+
"type": "string",
|
|
143
|
+
"format": "date-time",
|
|
144
|
+
"description": "When the delegation was revoked. For a delegation that was already revoked, the original instant: a revoke of a revoked key succeeds and changes nothing."
|
|
145
|
+
},
|
|
146
|
+
"remainingActive": {
|
|
147
|
+
"type": "integer",
|
|
148
|
+
"minimum": 0,
|
|
149
|
+
"description": "How many of the owning identity's delegations are still active. Zero is a legitimate state: losing every delegated key costs an identity the delegated signing path, not its own standing or its other credentials."
|
|
150
|
+
},
|
|
151
|
+
"ext": {
|
|
152
|
+
"$ref": "#/$defs/Ext"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"Ext": {
|
|
157
|
+
"title": "Ext",
|
|
158
|
+
"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.",
|
|
159
|
+
"type": "object",
|
|
160
|
+
"minProperties": 1,
|
|
161
|
+
"additionalProperties": true,
|
|
162
|
+
"propertyNames": {
|
|
163
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"SigningKeyDid": {
|
|
167
|
+
"title": "SigningKeyDid",
|
|
168
|
+
"type": "string",
|
|
169
|
+
"minLength": 9,
|
|
170
|
+
"maxLength": 256,
|
|
171
|
+
"pattern": "^did:key:z[1-9A-HJ-NP-Za-km-z]+$",
|
|
172
|
+
"description": "The delegated key, as a `did:key` — an Ed25519 multikey (`z6Mk…`) derived from the public half of a keypair the holder generated for itself, typically a non-extractable browser key. `did:key` only, because its document is a function of the key and resolves with no network: a key whose DID document could be rewritten after enrolment is not the key that was enrolled."
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
} as const;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
179
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
180
|
+
* per-specification and cannot be derived from the document alone, and
|
|
181
|
+
* item 2 needs the schema this carries.
|
|
182
|
+
*/
|
|
183
|
+
export const SPEC = {
|
|
184
|
+
typeUri: TYPE_URI,
|
|
185
|
+
isBearer: false,
|
|
186
|
+
isProofRequired: true,
|
|
187
|
+
isRecipientRequired: true,
|
|
188
|
+
isIssuedAtRequired: true,
|
|
189
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
190
|
+
} as const;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
194
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
195
|
+
* parties (§7.3 item 5).
|
|
196
|
+
*/
|
|
197
|
+
export const RESPONSE_SPEC = {
|
|
198
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
199
|
+
isBearer: false,
|
|
200
|
+
isProofRequired: true,
|
|
201
|
+
isRecipientRequired: true,
|
|
202
|
+
isIssuedAtRequired: true,
|
|
203
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
204
|
+
} as const;
|
package/src/index.ts
CHANGED
|
@@ -27,6 +27,7 @@ export * as AuditList_v0_1 from "./audit/list/0.1/payload.js";
|
|
|
27
27
|
export * as AuditVerify_v0_1 from "./audit/verify/0.1/payload.js";
|
|
28
28
|
export * as PasskeyInviteShared_v0_1 from "./auth/_shared/0.1/passkey-invite.js";
|
|
29
29
|
export * as SessionShared_v0_1 from "./auth/_shared/0.1/session.js";
|
|
30
|
+
export * as SigningKeyShared_v0_1 from "./auth/_shared/0.1/signing-key.js";
|
|
30
31
|
export * as TokensShared_v0_1 from "./auth/_shared/0.1/tokens.js";
|
|
31
32
|
export * as WebauthnShared_v0_1 from "./auth/_shared/0.1/webauthn.js";
|
|
32
33
|
export * as SessionShared_v0_2 from "./auth/_shared/0.2/session.js";
|
|
@@ -58,6 +59,9 @@ export * as AuthRefresh_v0_1 from "./auth/refresh/0.1/payload.js";
|
|
|
58
59
|
export * as AuthRevokeSession_v0_1 from "./auth/revoke-session/0.1/payload.js";
|
|
59
60
|
export * as AuthRevokeSession_v0_2 from "./auth/revoke-session/0.2/payload.js";
|
|
60
61
|
export * as AuthSessionsList_v0_1 from "./auth/sessions/list/0.1/payload.js";
|
|
62
|
+
export * as AuthSigningKeyEnroll_v0_1 from "./auth/signing-key/enroll/0.1/payload.js";
|
|
63
|
+
export * as AuthSigningKeyList_v0_1 from "./auth/signing-key/list/0.1/payload.js";
|
|
64
|
+
export * as AuthSigningKeyRevoke_v0_1 from "./auth/signing-key/revoke/0.1/payload.js";
|
|
61
65
|
export * as AuthStepUpApproveRequest_v0_1 from "./auth/step-up/approve-request/0.1/payload.js";
|
|
62
66
|
export * as AuthStepUpApproveRequest_v0_2 from "./auth/step-up/approve-request/0.2/payload.js";
|
|
63
67
|
export * as AuthStepUpApproveRequest_v0_3 from "./auth/step-up/approve-request/0.3/payload.js";
|
|
@@ -498,6 +502,7 @@ export * as VtaContextsList_v1_0 from "./vta/contexts/list/1.0/payload.js";
|
|
|
498
502
|
export * as VtaContextsPreviewDelete_v1_0 from "./vta/contexts/preview-delete/1.0/payload.js";
|
|
499
503
|
export * as VtaContextsSecrets_v1_0 from "./vta/contexts/secrets/1.0/payload.js";
|
|
500
504
|
export * as VtaContextsUpdateDid_v1_0 from "./vta/contexts/update-did/1.0/payload.js";
|
|
505
|
+
export * as VtaContextsUpdateDid_v1_1 from "./vta/contexts/update-did/1.1/payload.js";
|
|
501
506
|
export * as VtaContextsUpdate_v1_0 from "./vta/contexts/update/1.0/payload.js";
|
|
502
507
|
export * as VtaCredentialsIssue_v0_1 from "./vta/credentials/issue/0.1/payload.js";
|
|
503
508
|
export * as VtaCredentialsIssue_v0_2 from "./vta/credentials/issue/0.2/payload.js";
|
|
@@ -568,6 +573,7 @@ export * as VtaWebvhServersRemove_v1_0 from "./vta/webvh/servers/remove/1.0/payl
|
|
|
568
573
|
export * as VtaWebvhServersRetireOrphan_v0_1 from "./vta/webvh/servers/retire-orphan/0.1/payload.js";
|
|
569
574
|
export * as BackupShared_v0_1 from "./vtc/_shared/0.1/backup.js";
|
|
570
575
|
export * as CeremonyShared_v0_1 from "./vtc/_shared/0.1/ceremony.js";
|
|
576
|
+
export * as CommunityPresentationShared_v0_1 from "./vtc/_shared/0.1/community-presentation.js";
|
|
571
577
|
export * as CommunityShared_v0_1 from "./vtc/_shared/0.1/community.js";
|
|
572
578
|
export * as ConfigPortabilityShared_v0_1 from "./vtc/_shared/0.1/config-portability.js";
|
|
573
579
|
export * as EndorsementTypeShared_v0_1 from "./vtc/_shared/0.1/endorsement-type.js";
|
|
@@ -576,7 +582,11 @@ export * as InvitationShared_v0_1 from "./vtc/_shared/0.1/invitation.js";
|
|
|
576
582
|
export * as InviteShared_v0_1 from "./vtc/_shared/0.1/invite.js";
|
|
577
583
|
export * as JoinRequestShared_v0_1 from "./vtc/_shared/0.1/join-request.js";
|
|
578
584
|
export * as MemberShared_v0_1 from "./vtc/_shared/0.1/member.js";
|
|
585
|
+
export * as RelationshipLifecycleShared_v0_1 from "./vtc/_shared/0.1/relationship-lifecycle.js";
|
|
586
|
+
export * as SchemaRegistryShared_v0_1 from "./vtc/_shared/0.1/schema-registry.js";
|
|
579
587
|
export * as VetterProfileShared_v0_1 from "./vtc/_shared/0.1/vetter-profile.js";
|
|
588
|
+
export * as VettingAutoGrantShared_v0_1 from "./vtc/_shared/0.1/vetting-auto-grant.js";
|
|
589
|
+
export * as WebsiteTransferShared_v0_1 from "./vtc/_shared/0.1/website-transfer.js";
|
|
580
590
|
export * as VtcAdminBootstrap_v0_1 from "./vtc/admin/bootstrap/0.1/payload.js";
|
|
581
591
|
export * as VtcAdminInvitesCreate_v0_1 from "./vtc/admin/invites/create/0.1/payload.js";
|
|
582
592
|
export * as VtcAdminInvitesList_v0_1 from "./vtc/admin/invites/list/0.1/payload.js";
|
|
@@ -588,8 +598,14 @@ export * as VtcAuthRecogniseChallenge_v0_1 from "./vtc/auth/recognise/challenge/
|
|
|
588
598
|
export * as VtcBackupExport_v0_1 from "./vtc/backup/export/0.1/payload.js";
|
|
589
599
|
export * as VtcBackupImport_v0_1 from "./vtc/backup/import/0.1/payload.js";
|
|
590
600
|
export * as VtcCeremoniesList_v0_1 from "./vtc/ceremonies/list/0.1/payload.js";
|
|
601
|
+
export * as VtcCommunityBrandingShow_v0_1 from "./vtc/community/branding/show/0.1/payload.js";
|
|
602
|
+
export * as VtcCommunityBrandingUpdate_v0_1 from "./vtc/community/branding/update/0.1/payload.js";
|
|
603
|
+
export * as VtcCommunityJoinDiscoveryShow_v0_1 from "./vtc/community/join-discovery/show/0.1/payload.js";
|
|
604
|
+
export * as VtcCommunityJoinDiscoveryUpdate_v0_1 from "./vtc/community/join-discovery/update/0.1/payload.js";
|
|
591
605
|
export * as VtcCommunityProfileShow_v0_1 from "./vtc/community/profile/show/0.1/payload.js";
|
|
592
606
|
export * as VtcCommunityProfileUpdate_v0_1 from "./vtc/community/profile/update/0.1/payload.js";
|
|
607
|
+
export * as VtcCommunityRequestedAttributesShow_v0_1 from "./vtc/community/requested-attributes/show/0.1/payload.js";
|
|
608
|
+
export * as VtcCommunityRequestedAttributesUpdate_v0_1 from "./vtc/community/requested-attributes/update/0.1/payload.js";
|
|
593
609
|
export * as VtcConfigExport_v0_1 from "./vtc/config/export/0.1/payload.js";
|
|
594
610
|
export * as VtcConfigImport_v0_1 from "./vtc/config/import/0.1/payload.js";
|
|
595
611
|
export * as VtcCredentialsReissue_v0_1 from "./vtc/credentials/reissue/0.1/payload.js";
|
|
@@ -615,6 +631,7 @@ export * as VtcJoinRequestsDecide_v0_1 from "./vtc/join-requests/decide/0.1/payl
|
|
|
615
631
|
export * as VtcJoinRequestsList_v0_1 from "./vtc/join-requests/list/0.1/payload.js";
|
|
616
632
|
export * as VtcJoinRequestsManifest_v0_1 from "./vtc/join-requests/manifest/0.1/payload.js";
|
|
617
633
|
export * as VtcJoinRequestsManifest_v0_2 from "./vtc/join-requests/manifest/0.2/payload.js";
|
|
634
|
+
export * as VtcJoinRequestsQuery_v0_1 from "./vtc/join-requests/query/0.1/payload.js";
|
|
618
635
|
export * as VtcJoinRequestsReject_v0_1 from "./vtc/join-requests/reject/0.1/payload.js";
|
|
619
636
|
export * as VtcJoinRequestsShow_v0_1 from "./vtc/join-requests/show/0.1/payload.js";
|
|
620
637
|
export * as VtcJoinRequestsStatus_v0_1 from "./vtc/join-requests/status/0.1/payload.js";
|
|
@@ -622,6 +639,7 @@ export * as VtcJoinRequestsSubmitReceipt_v0_1 from "./vtc/join-requests/submit-r
|
|
|
622
639
|
export * as VtcJoinRequestsSubmit_v0_1 from "./vtc/join-requests/submit/0.1/payload.js";
|
|
623
640
|
export * as VtcJoinRequestsSubmit_v0_2 from "./vtc/join-requests/submit/0.2/payload.js";
|
|
624
641
|
export * as VtcJoinRequestsSupplement_v0_1 from "./vtc/join-requests/supplement/0.1/payload.js";
|
|
642
|
+
export * as VtcJoinRequestsVettingShow_v0_1 from "./vtc/join-requests/vetting/show/0.1/payload.js";
|
|
625
643
|
export * as VtcJoinRequestsWithdraw_v0_1 from "./vtc/join-requests/withdraw/0.1/payload.js";
|
|
626
644
|
export * as VtcMembersAdminRemove_v0_1 from "./vtc/members/admin-remove/0.1/payload.js";
|
|
627
645
|
export * as VtcMembersCredentials_v0_1 from "./vtc/members/credentials/0.1/payload.js";
|
|
@@ -657,21 +675,42 @@ export * as VtcRelationshipsPublish_v0_1 from "./vtc/relationships/publish/0.1/p
|
|
|
657
675
|
export * as VtcRelationshipsPublish_v0_2 from "./vtc/relationships/publish/0.2/payload.js";
|
|
658
676
|
export * as VtcRelationshipsRequest_v0_1 from "./vtc/relationships/request/0.1/payload.js";
|
|
659
677
|
export * as VtcRelationshipsRequest_v0_2 from "./vtc/relationships/request/0.2/payload.js";
|
|
678
|
+
export * as VtcRelationshipsRestore_v0_1 from "./vtc/relationships/restore/0.1/payload.js";
|
|
660
679
|
export * as VtcRelationshipsRevoke_v0_1 from "./vtc/relationships/revoke/0.1/payload.js";
|
|
680
|
+
export * as VtcRelationshipsSuspend_v0_1 from "./vtc/relationships/suspend/0.1/payload.js";
|
|
681
|
+
export * as VtcRoomsList_v0_1 from "./vtc/rooms/list/0.1/payload.js";
|
|
682
|
+
export * as VtcSchemasAcceptsDelete_v0_1 from "./vtc/schemas/accepts/delete/0.1/payload.js";
|
|
683
|
+
export * as VtcSchemasAcceptsList_v0_1 from "./vtc/schemas/accepts/list/0.1/payload.js";
|
|
684
|
+
export * as VtcSchemasAcceptsRegister_v0_1 from "./vtc/schemas/accepts/register/0.1/payload.js";
|
|
685
|
+
export * as VtcSchemasAcceptsShow_v0_1 from "./vtc/schemas/accepts/show/0.1/payload.js";
|
|
686
|
+
export * as VtcSchemasDelete_v0_1 from "./vtc/schemas/delete/0.1/payload.js";
|
|
687
|
+
export * as VtcSchemasList_v0_1 from "./vtc/schemas/list/0.1/payload.js";
|
|
688
|
+
export * as VtcSchemasRegister_v0_1 from "./vtc/schemas/register/0.1/payload.js";
|
|
689
|
+
export * as VtcSchemasShow_v0_1 from "./vtc/schemas/show/0.1/payload.js";
|
|
690
|
+
export * as VtcVettingAutoGrantShow_v0_1 from "./vtc/vetting/auto-grant/show/0.1/payload.js";
|
|
691
|
+
export * as VtcVettingAutoGrantUpdate_v0_1 from "./vtc/vetting/auto-grant/update/0.1/payload.js";
|
|
661
692
|
export * as VtcVettingPcsChallenge_v0_1 from "./vtc/vetting/pcs-challenge/0.1/payload.js";
|
|
693
|
+
export * as VtcVettingRevocationsList_v0_1 from "./vtc/vetting/revocations/list/0.1/payload.js";
|
|
662
694
|
export * as VtcVettingRevokeStatement_v0_1 from "./vtc/vetting/revoke-statement/0.1/payload.js";
|
|
663
695
|
export * as VtcVettingVettersEventMode_v0_1 from "./vtc/vetting/vetters/event-mode/0.1/payload.js";
|
|
664
696
|
export * as VtcVettingVettersGrant_v0_1 from "./vtc/vetting/vetters/grant/0.1/payload.js";
|
|
697
|
+
export * as VtcVettingVettersGrantsList_v0_1 from "./vtc/vetting/vetters/grants/list/0.1/payload.js";
|
|
665
698
|
export * as VtcVettingVettersList_v0_1 from "./vtc/vetting/vetters/list/0.1/payload.js";
|
|
666
699
|
export * as VtcVettingVettersPcsRoot_v0_1 from "./vtc/vetting/vetters/pcs-root/0.1/payload.js";
|
|
667
700
|
export * as VtcVettingVettersPcsTokens_v0_1 from "./vtc/vetting/vetters/pcs-tokens/0.1/payload.js";
|
|
668
701
|
export * as VtcVettingVettersProfile_v0_1 from "./vtc/vetting/vetters/profile/0.1/payload.js";
|
|
669
702
|
export * as VtcVettingVettersResend_v0_1 from "./vtc/vetting/vetters/resend/0.1/payload.js";
|
|
670
703
|
export * as VtcVettingVettersShow_v0_1 from "./vtc/vetting/vetters/show/0.1/payload.js";
|
|
704
|
+
export * as VtcWebsiteDeploy_v0_1 from "./vtc/website/deploy/0.1/payload.js";
|
|
671
705
|
export * as VtcWebsiteFilesDelete_v0_1 from "./vtc/website/files/delete/0.1/payload.js";
|
|
672
706
|
export * as VtcWebsiteFilesList_v0_1 from "./vtc/website/files/list/0.1/payload.js";
|
|
707
|
+
export * as VtcWebsiteFilesShow_v0_1 from "./vtc/website/files/show/0.1/payload.js";
|
|
673
708
|
export * as VtcWebsiteGenerationsList_v0_1 from "./vtc/website/generations/list/0.1/payload.js";
|
|
674
709
|
export * as VtcWebsiteRollback_v0_1 from "./vtc/website/rollback/0.1/payload.js";
|
|
710
|
+
export * as VtcWebsiteUploadAbort_v0_1 from "./vtc/website/upload/abort/0.1/payload.js";
|
|
711
|
+
export * as VtcWebsiteUploadBegin_v0_1 from "./vtc/website/upload/begin/0.1/payload.js";
|
|
712
|
+
export * as VtcWebsiteUploadChunk_v0_1 from "./vtc/website/upload/chunk/0.1/payload.js";
|
|
713
|
+
export * as VtcWebsiteUploadCommit_v0_1 from "./vtc/website/upload/commit/0.1/payload.js";
|
|
675
714
|
export * as SyncUpdateShared_v0_1 from "./webvh/_shared/0.1/sync-update.js";
|
|
676
715
|
export * as WitnessKeyShared_v0_1 from "./webvh/_shared/0.1/witness-key.js";
|
|
677
716
|
export * as WebvhSyncBatch_v0_1 from "./webvh/sync/batch/0.1/payload.js";
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/contexts/update-did/1.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { ContextRecord, Ext } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export interface VTAContextsUpdateDIDPayload {
|
|
10
|
+
/**
|
|
11
|
+
* Context whose DID is being set.
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
/**
|
|
15
|
+
* The DID this context acts as from now on, or `null` to leave the context with no DID of its own. A string MUST be a DID per DID Core §3.1 (`did:` method-name `:` method-specific-id); `pattern` applies to strings only, so `null` is not constrained by it. Anything that authenticated or signed as the previous DID keeps referring to it; this task does not migrate those references, and a consumer MUST NOT imply that it does.
|
|
16
|
+
*/
|
|
17
|
+
did: string | null;
|
|
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 { ContextRecord, Ext };
|
|
23
|
+
|
|
24
|
+
/** Trust Task type URI. */
|
|
25
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/contexts/update-did/1.1" as const;
|
|
26
|
+
|
|
27
|
+
/** Stable alias for this specification's request payload shape. */
|
|
28
|
+
export type Payload = VTAContextsUpdateDIDPayload;
|
|
29
|
+
|
|
30
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
31
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/contexts/update-did/1.1#response" as const;
|
|
32
|
+
|
|
33
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
34
|
+
export type Response = ContextRecord;
|
|
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/vta/contexts/update-did/1.1",
|
|
48
|
+
"title": "VTA Contexts Update-DID — payload",
|
|
49
|
+
"type": "object",
|
|
50
|
+
"additionalProperties": false,
|
|
51
|
+
"required": [
|
|
52
|
+
"id",
|
|
53
|
+
"did"
|
|
54
|
+
],
|
|
55
|
+
"properties": {
|
|
56
|
+
"id": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"minLength": 1,
|
|
59
|
+
"description": "Context whose DID is being set."
|
|
60
|
+
},
|
|
61
|
+
"did": {
|
|
62
|
+
"type": [
|
|
63
|
+
"string",
|
|
64
|
+
"null"
|
|
65
|
+
],
|
|
66
|
+
"pattern": "^did:[a-z0-9]+:(?:(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[A-Za-z0-9._-]|%[0-9A-Fa-f]{2})+$",
|
|
67
|
+
"description": "The DID this context acts as from now on, or `null` to leave the context with no DID of its own. A string MUST be a DID per DID Core §3.1 (`did:` method-name `:` method-specific-id); `pattern` applies to strings only, so `null` is not constrained by it. Anything that authenticated or signed as the previous DID keeps referring to it; this task does not migrate those references, and a consumer MUST NOT imply that it does."
|
|
68
|
+
},
|
|
69
|
+
"ext": {
|
|
70
|
+
"$ref": "#/$defs/Ext"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"$defs": {
|
|
74
|
+
"Response": {
|
|
75
|
+
"$anchor": "response",
|
|
76
|
+
"title": "VTA Contexts Update-DID — response payload",
|
|
77
|
+
"description": "Success response to vta/contexts/update-did: the context as it now stands. Type https://trusttasks.org/spec/vta/contexts/update-did/1.1#response.",
|
|
78
|
+
"$ref": "#/$defs/ContextRecord"
|
|
79
|
+
},
|
|
80
|
+
"ContextRecord": {
|
|
81
|
+
"title": "ContextRecord",
|
|
82
|
+
"description": "A context as the VTA holds it.",
|
|
83
|
+
"type": "object",
|
|
84
|
+
"additionalProperties": false,
|
|
85
|
+
"required": [
|
|
86
|
+
"id",
|
|
87
|
+
"name",
|
|
88
|
+
"basePath",
|
|
89
|
+
"createdAt",
|
|
90
|
+
"updatedAt"
|
|
91
|
+
],
|
|
92
|
+
"properties": {
|
|
93
|
+
"id": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"minLength": 1,
|
|
96
|
+
"description": "Context id. For a nested context this is the full path (`parent/leaf`), not the leaf alone — an ACL scope naming this context must use this value verbatim."
|
|
97
|
+
},
|
|
98
|
+
"name": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"minLength": 1,
|
|
101
|
+
"maxLength": 256,
|
|
102
|
+
"description": "Human-readable name. Operator-facing only; carries no authorization meaning, and two contexts may share a name."
|
|
103
|
+
},
|
|
104
|
+
"did": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"description": "DID this context acts as, when one has been assigned. Absent means the context has no identity of its own yet — not that it has been denied one."
|
|
107
|
+
},
|
|
108
|
+
"description": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"maxLength": 1024,
|
|
111
|
+
"description": "Free-form description."
|
|
112
|
+
},
|
|
113
|
+
"parent": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"description": "Id of the context this one nests under. Absent for a top-level context. Authority granted at a parent reaches its children, so this member is load-bearing for anyone reasoning about scope."
|
|
116
|
+
},
|
|
117
|
+
"basePath": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"description": "Resolved path from the root context, as the VTA derives it from the parent chain. Consumers MUST treat this as derived state: it is recomputed by the maintainer and is not independently settable."
|
|
120
|
+
},
|
|
121
|
+
"createdAt": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"format": "date-time",
|
|
124
|
+
"description": "RFC 3339."
|
|
125
|
+
},
|
|
126
|
+
"updatedAt": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"format": "date-time",
|
|
129
|
+
"description": "RFC 3339."
|
|
130
|
+
},
|
|
131
|
+
"ext": {
|
|
132
|
+
"$ref": "#/$defs/Ext"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"Ext": {
|
|
137
|
+
"title": "Ext",
|
|
138
|
+
"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.",
|
|
139
|
+
"type": "object",
|
|
140
|
+
"minProperties": 1,
|
|
141
|
+
"additionalProperties": true,
|
|
142
|
+
"propertyNames": {
|
|
143
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
} as const;
|
|
148
|
+
|
|
149
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
150
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
151
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
152
|
+
"$ref": "#/$defs/Response",
|
|
153
|
+
"$defs": {
|
|
154
|
+
"Response": {
|
|
155
|
+
"$anchor": "response",
|
|
156
|
+
"title": "VTA Contexts Update-DID — response payload",
|
|
157
|
+
"description": "Success response to vta/contexts/update-did: the context as it now stands. Type https://trusttasks.org/spec/vta/contexts/update-did/1.1#response.",
|
|
158
|
+
"$ref": "#/$defs/ContextRecord"
|
|
159
|
+
},
|
|
160
|
+
"ContextRecord": {
|
|
161
|
+
"title": "ContextRecord",
|
|
162
|
+
"description": "A context as the VTA holds it.",
|
|
163
|
+
"type": "object",
|
|
164
|
+
"additionalProperties": false,
|
|
165
|
+
"required": [
|
|
166
|
+
"id",
|
|
167
|
+
"name",
|
|
168
|
+
"basePath",
|
|
169
|
+
"createdAt",
|
|
170
|
+
"updatedAt"
|
|
171
|
+
],
|
|
172
|
+
"properties": {
|
|
173
|
+
"id": {
|
|
174
|
+
"type": "string",
|
|
175
|
+
"minLength": 1,
|
|
176
|
+
"description": "Context id. For a nested context this is the full path (`parent/leaf`), not the leaf alone — an ACL scope naming this context must use this value verbatim."
|
|
177
|
+
},
|
|
178
|
+
"name": {
|
|
179
|
+
"type": "string",
|
|
180
|
+
"minLength": 1,
|
|
181
|
+
"maxLength": 256,
|
|
182
|
+
"description": "Human-readable name. Operator-facing only; carries no authorization meaning, and two contexts may share a name."
|
|
183
|
+
},
|
|
184
|
+
"did": {
|
|
185
|
+
"type": "string",
|
|
186
|
+
"description": "DID this context acts as, when one has been assigned. Absent means the context has no identity of its own yet — not that it has been denied one."
|
|
187
|
+
},
|
|
188
|
+
"description": {
|
|
189
|
+
"type": "string",
|
|
190
|
+
"maxLength": 1024,
|
|
191
|
+
"description": "Free-form description."
|
|
192
|
+
},
|
|
193
|
+
"parent": {
|
|
194
|
+
"type": "string",
|
|
195
|
+
"description": "Id of the context this one nests under. Absent for a top-level context. Authority granted at a parent reaches its children, so this member is load-bearing for anyone reasoning about scope."
|
|
196
|
+
},
|
|
197
|
+
"basePath": {
|
|
198
|
+
"type": "string",
|
|
199
|
+
"description": "Resolved path from the root context, as the VTA derives it from the parent chain. Consumers MUST treat this as derived state: it is recomputed by the maintainer and is not independently settable."
|
|
200
|
+
},
|
|
201
|
+
"createdAt": {
|
|
202
|
+
"type": "string",
|
|
203
|
+
"format": "date-time",
|
|
204
|
+
"description": "RFC 3339."
|
|
205
|
+
},
|
|
206
|
+
"updatedAt": {
|
|
207
|
+
"type": "string",
|
|
208
|
+
"format": "date-time",
|
|
209
|
+
"description": "RFC 3339."
|
|
210
|
+
},
|
|
211
|
+
"ext": {
|
|
212
|
+
"$ref": "#/$defs/Ext"
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"Ext": {
|
|
217
|
+
"title": "Ext",
|
|
218
|
+
"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.",
|
|
219
|
+
"type": "object",
|
|
220
|
+
"minProperties": 1,
|
|
221
|
+
"additionalProperties": true,
|
|
222
|
+
"propertyNames": {
|
|
223
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
} as const;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
231
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
232
|
+
* per-specification and cannot be derived from the document alone, and
|
|
233
|
+
* item 2 needs the schema this carries.
|
|
234
|
+
*/
|
|
235
|
+
export const SPEC = {
|
|
236
|
+
typeUri: TYPE_URI,
|
|
237
|
+
isBearer: false,
|
|
238
|
+
isProofRequired: true,
|
|
239
|
+
isRecipientRequired: true,
|
|
240
|
+
isIssuedAtRequired: true,
|
|
241
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
242
|
+
} as const;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
246
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
247
|
+
* parties (§7.3 item 5).
|
|
248
|
+
*/
|
|
249
|
+
export const RESPONSE_SPEC = {
|
|
250
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
251
|
+
isBearer: false,
|
|
252
|
+
isProofRequired: true,
|
|
253
|
+
isRecipientRequired: true,
|
|
254
|
+
isIssuedAtRequired: true,
|
|
255
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
256
|
+
} as const;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/_shared/0.1/community-presentation.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Shared types for vtc/community/{branding,requested-attributes,join-discovery}/*: how a community asks to be shown to a prospective applicant, what it asks an applicant to tell it about themselves, and whether it answers its join manifest to a caller it cannot identify. `CommunityBranding` and `RequestedAttribute` are copied member for member from vtc/join-requests/manifest/0.2, which publishes both to applicants; the manifest's own copies are that task's local definitions and re-pinning them here is an editorial follow-up. Not itself a Trust Task specification (the `_shared` folder is skipped by the registry build and the codegen).
|
|
8
|
+
*/
|
|
9
|
+
export interface VTCSharedCommunityPresentationDefinitions {
|
|
10
|
+
[k: string]: unknown | undefined;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The definitions this shared schema publishes, hoisted to one declaration each.
|
|
15
|
+
* See "../../../_shared/components.js".
|
|
16
|
+
*/
|
|
17
|
+
export type { CommunityBranding, JoinDiscovery, RequestedAttribute, RequestedAttributes } from "../../../_shared/components.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/_shared/0.1/relationship-lifecycle.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Shared types for vtc/relationships/{suspend,restore}: an edge's resolved state after a lifecycle event. Not itself a Trust Task specification (the `_shared` folder is skipped by the registry build and the codegen).
|
|
8
|
+
*/
|
|
9
|
+
export interface VTCSharedRelationshipLifecycleDefinitions {
|
|
10
|
+
[k: string]: unknown | undefined;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The definitions this shared schema publishes, hoisted to one declaration each.
|
|
15
|
+
* See "../../../_shared/components.js".
|
|
16
|
+
*/
|
|
17
|
+
export type { InForce, LifecycleReason } from "../../../_shared/components.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/_shared/0.1/schema-registry.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Shared types for the vtc/schemas/* and vtc/schemas/accepts/* families: a community's credential-type registry (the types it issues or accepts, each optionally bound to a JSON Schema) and its Accepts criteria (named DCQL queries a ceremony runs over presented credentials). Defined once so register, list and show compare value for value. `VettingRequirements` and `Duration` are copied member for member from vtc/join-requests/manifest/0.2, which publishes an Accepts criterion's vetting to applicants; the manifest's own copies are local `$defs` of that task and re-pinning them here is an editorial follow-up. Not itself a Trust Task specification (the `_shared` folder is skipped by the registry build and the codegen).
|
|
8
|
+
*/
|
|
9
|
+
export interface VTCSharedSchemaRegistryDefinitions {
|
|
10
|
+
[k: string]: unknown | undefined;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The definitions this shared schema publishes, hoisted to one declaration each.
|
|
15
|
+
* See "../../../_shared/components.js".
|
|
16
|
+
*/
|
|
17
|
+
export type { AcceptsCriterion, AcceptsCriterionId, CredentialSchema, CredentialTypeUri, CriterionDescription, DcqlQuery, DtgType, Duration, SchemaDescription, SchemaEntry, SchemaKind, SchemaSummary, VettingRequirements } from "../../../_shared/components.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/_shared/0.1/vetting-auto-grant.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Shared types for vtc/vetting/auto-grant/*: the configuration of the community's automatic vetter-grant sweep and the outcome of its last run. Not itself a Trust Task specification (the `_shared` folder is skipped by the registry build and the codegen).
|
|
8
|
+
*/
|
|
9
|
+
export interface VTCSharedAutomaticVetterGrantDefinitions {
|
|
10
|
+
[k: string]: unknown | undefined;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The definitions this shared schema publishes, hoisted to one declaration each.
|
|
15
|
+
* See "../../../_shared/components.js".
|
|
16
|
+
*/
|
|
17
|
+
export type { AutoGrantStatus, AutoGrantSweep, GrantValiditySeconds, SweepMinutes } from "../../../_shared/components.js";
|