@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,509 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/auth/signing-key/list/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { DeviceLabel, Ext, SigningKey, SigningKeyDid, SigningKeyScope } from "../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* An identity lists its own signing-key delegations. The payload names no subject: the identity listed is the one the document's proof resolves to, so a caller cannot ask for somebody else's. The outer document members are owned by the framework — SPEC §6.3.
|
|
8
|
+
*/
|
|
9
|
+
export interface AuthSigningKeyListPayload {
|
|
10
|
+
ext?: Ext;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Every delegation enrolled for the caller's identity, newest first, revoked ones included.
|
|
14
|
+
*/
|
|
15
|
+
export interface AuthSigningKeyListResponsePayload {
|
|
16
|
+
/**
|
|
17
|
+
* @maxItems 256
|
|
18
|
+
*/
|
|
19
|
+
signingKeys: SigningKey[];
|
|
20
|
+
ext?: Ext;
|
|
21
|
+
}
|
|
22
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
23
|
+
export type { DeviceLabel, Ext, SigningKey, SigningKeyDid, SigningKeyScope };
|
|
24
|
+
/** Trust Task type URI. */
|
|
25
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/auth/signing-key/list/0.1";
|
|
26
|
+
/** Stable alias for this specification's request payload shape. */
|
|
27
|
+
export type Payload = AuthSigningKeyListPayload;
|
|
28
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
29
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/auth/signing-key/list/0.1#response";
|
|
30
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
31
|
+
export type Response = AuthSigningKeyListResponsePayload;
|
|
32
|
+
/**
|
|
33
|
+
* This specification's payload schema, as a value.
|
|
34
|
+
*
|
|
35
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
36
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
37
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
38
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
39
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
40
|
+
*/
|
|
41
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
42
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
43
|
+
readonly $id: "https://trusttasks.org/spec/auth/signing-key/list/0.1";
|
|
44
|
+
readonly title: "Auth — Signing Key List — payload";
|
|
45
|
+
readonly description: "An identity lists its own signing-key delegations. The payload names no subject: the identity listed is the one the document's proof resolves to, so a caller cannot ask for somebody else's. The outer document members are owned by the framework — SPEC §6.3.";
|
|
46
|
+
readonly type: "object";
|
|
47
|
+
readonly additionalProperties: false;
|
|
48
|
+
readonly properties: {
|
|
49
|
+
readonly ext: {
|
|
50
|
+
readonly $ref: "#/$defs/Ext";
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
readonly $defs: {
|
|
54
|
+
readonly Response: {
|
|
55
|
+
readonly $anchor: "response";
|
|
56
|
+
readonly title: "Auth — Signing Key List — response payload";
|
|
57
|
+
readonly description: "Every delegation enrolled for the caller's identity, newest first, revoked ones included.";
|
|
58
|
+
readonly type: "object";
|
|
59
|
+
readonly additionalProperties: false;
|
|
60
|
+
readonly required: readonly ["signingKeys"];
|
|
61
|
+
readonly properties: {
|
|
62
|
+
readonly signingKeys: {
|
|
63
|
+
readonly type: "array";
|
|
64
|
+
readonly maxItems: 256;
|
|
65
|
+
readonly items: {
|
|
66
|
+
readonly $ref: "#/$defs/SigningKey";
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
readonly ext: {
|
|
70
|
+
readonly $ref: "#/$defs/Ext";
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
readonly Ext: {
|
|
75
|
+
readonly title: "Ext";
|
|
76
|
+
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.";
|
|
77
|
+
readonly type: "object";
|
|
78
|
+
readonly minProperties: 1;
|
|
79
|
+
readonly additionalProperties: true;
|
|
80
|
+
readonly propertyNames: {
|
|
81
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
readonly SigningKey: {
|
|
85
|
+
readonly title: "SigningKey";
|
|
86
|
+
readonly type: "object";
|
|
87
|
+
readonly additionalProperties: false;
|
|
88
|
+
readonly required: readonly ["signingKeyDid", "identityDid", "scope", "createdAt", "expiresAt", "active"];
|
|
89
|
+
readonly description: "One signing-key delegation, as its holder sees it. A delegation confers nothing of its own: it names an identity that already holds whatever standing it holds, and a document signed by the key is authorized by that identity's standing read at execution time.";
|
|
90
|
+
readonly properties: {
|
|
91
|
+
readonly signingKeyDid: {
|
|
92
|
+
readonly $ref: "#/$defs/SigningKeyDid";
|
|
93
|
+
};
|
|
94
|
+
readonly identityDid: {
|
|
95
|
+
readonly type: "string";
|
|
96
|
+
readonly pattern: "^did:";
|
|
97
|
+
readonly minLength: 5;
|
|
98
|
+
readonly maxLength: 2048;
|
|
99
|
+
readonly description: "The identity the key acts for. Included so a holder need not infer it.";
|
|
100
|
+
};
|
|
101
|
+
readonly scope: {
|
|
102
|
+
readonly $ref: "#/$defs/SigningKeyScope";
|
|
103
|
+
};
|
|
104
|
+
readonly deviceLabel: {
|
|
105
|
+
readonly $ref: "#/$defs/DeviceLabel";
|
|
106
|
+
};
|
|
107
|
+
readonly createdAt: {
|
|
108
|
+
readonly type: "string";
|
|
109
|
+
readonly format: "date-time";
|
|
110
|
+
readonly description: "When the delegation was enrolled.";
|
|
111
|
+
};
|
|
112
|
+
readonly expiresAt: {
|
|
113
|
+
readonly type: "string";
|
|
114
|
+
readonly format: "date-time";
|
|
115
|
+
readonly description: "When the delegation stops authorizing documents. Always present: the consumer sets it at enrolment and caps it at its own maximum lifetime, whatever the producer asked for, so no delegation outlives the consumer's policy.";
|
|
116
|
+
};
|
|
117
|
+
readonly lastUsedAt: {
|
|
118
|
+
readonly type: "string";
|
|
119
|
+
readonly format: "date-time";
|
|
120
|
+
readonly description: "When the delegation last authorized a document, as far as the consumer recorded. A usability signal for choosing which key to revoke, recorded best-effort; its absence does not mean the key was never used.";
|
|
121
|
+
};
|
|
122
|
+
readonly revokedAt: {
|
|
123
|
+
readonly type: "string";
|
|
124
|
+
readonly format: "date-time";
|
|
125
|
+
readonly description: "When the delegation was revoked. A revoked delegation authorizes nothing and its key cannot be enrolled again.";
|
|
126
|
+
};
|
|
127
|
+
readonly active: {
|
|
128
|
+
readonly type: "boolean";
|
|
129
|
+
readonly description: "Whether the delegation authorizes documents right now: not revoked and not past `expiresAt`. Computed by the consumer with the predicate its verifier applies, so a holder does not re-implement it and disagree.";
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
readonly DeviceLabel: {
|
|
134
|
+
readonly title: "DeviceLabel";
|
|
135
|
+
readonly type: "string";
|
|
136
|
+
readonly minLength: 1;
|
|
137
|
+
readonly maxLength: 128;
|
|
138
|
+
readonly description: "A human-readable name for where the key lives, chosen by the enrolling identity — e.g. `Work laptop — Chrome`. Read by that identity and by administrators deciding which key to revoke; retained with the delegation. Free text authored by the enrolling identity, untrusted, and attributed to it wherever it is rendered. Absent rather than invented when none was chosen: an invented label is indistinguishable from a chosen one to somebody deciding which key to revoke.";
|
|
139
|
+
};
|
|
140
|
+
readonly SigningKeyScope: {
|
|
141
|
+
readonly title: "SigningKeyScope";
|
|
142
|
+
readonly type: "string";
|
|
143
|
+
readonly enum: readonly ["console"];
|
|
144
|
+
readonly description: "What a delegated key may be accepted for. `console`: the operations an administration console performs on the identity's behalf, authorized by the identity's own standing. Never an approver's signature on a consent or approval decision, whatever the scope: those require an `assertionMethod` key of the approver's own DID document, which a delegated key never is. A closed enumeration so a consumer cannot be asked for a scope it does not define; a later version adds values.";
|
|
145
|
+
};
|
|
146
|
+
readonly SigningKeyDid: {
|
|
147
|
+
readonly title: "SigningKeyDid";
|
|
148
|
+
readonly type: "string";
|
|
149
|
+
readonly minLength: 9;
|
|
150
|
+
readonly maxLength: 256;
|
|
151
|
+
readonly pattern: "^did:key:z[1-9A-HJ-NP-Za-km-z]+$";
|
|
152
|
+
readonly 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.";
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
157
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
158
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
159
|
+
readonly $ref: "#/$defs/Response";
|
|
160
|
+
readonly $defs: {
|
|
161
|
+
readonly Response: {
|
|
162
|
+
readonly $anchor: "response";
|
|
163
|
+
readonly title: "Auth — Signing Key List — response payload";
|
|
164
|
+
readonly description: "Every delegation enrolled for the caller's identity, newest first, revoked ones included.";
|
|
165
|
+
readonly type: "object";
|
|
166
|
+
readonly additionalProperties: false;
|
|
167
|
+
readonly required: readonly ["signingKeys"];
|
|
168
|
+
readonly properties: {
|
|
169
|
+
readonly signingKeys: {
|
|
170
|
+
readonly type: "array";
|
|
171
|
+
readonly maxItems: 256;
|
|
172
|
+
readonly items: {
|
|
173
|
+
readonly $ref: "#/$defs/SigningKey";
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
readonly ext: {
|
|
177
|
+
readonly $ref: "#/$defs/Ext";
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
readonly Ext: {
|
|
182
|
+
readonly title: "Ext";
|
|
183
|
+
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.";
|
|
184
|
+
readonly type: "object";
|
|
185
|
+
readonly minProperties: 1;
|
|
186
|
+
readonly additionalProperties: true;
|
|
187
|
+
readonly propertyNames: {
|
|
188
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
readonly SigningKey: {
|
|
192
|
+
readonly title: "SigningKey";
|
|
193
|
+
readonly type: "object";
|
|
194
|
+
readonly additionalProperties: false;
|
|
195
|
+
readonly required: readonly ["signingKeyDid", "identityDid", "scope", "createdAt", "expiresAt", "active"];
|
|
196
|
+
readonly description: "One signing-key delegation, as its holder sees it. A delegation confers nothing of its own: it names an identity that already holds whatever standing it holds, and a document signed by the key is authorized by that identity's standing read at execution time.";
|
|
197
|
+
readonly properties: {
|
|
198
|
+
readonly signingKeyDid: {
|
|
199
|
+
readonly $ref: "#/$defs/SigningKeyDid";
|
|
200
|
+
};
|
|
201
|
+
readonly identityDid: {
|
|
202
|
+
readonly type: "string";
|
|
203
|
+
readonly pattern: "^did:";
|
|
204
|
+
readonly minLength: 5;
|
|
205
|
+
readonly maxLength: 2048;
|
|
206
|
+
readonly description: "The identity the key acts for. Included so a holder need not infer it.";
|
|
207
|
+
};
|
|
208
|
+
readonly scope: {
|
|
209
|
+
readonly $ref: "#/$defs/SigningKeyScope";
|
|
210
|
+
};
|
|
211
|
+
readonly deviceLabel: {
|
|
212
|
+
readonly $ref: "#/$defs/DeviceLabel";
|
|
213
|
+
};
|
|
214
|
+
readonly createdAt: {
|
|
215
|
+
readonly type: "string";
|
|
216
|
+
readonly format: "date-time";
|
|
217
|
+
readonly description: "When the delegation was enrolled.";
|
|
218
|
+
};
|
|
219
|
+
readonly expiresAt: {
|
|
220
|
+
readonly type: "string";
|
|
221
|
+
readonly format: "date-time";
|
|
222
|
+
readonly description: "When the delegation stops authorizing documents. Always present: the consumer sets it at enrolment and caps it at its own maximum lifetime, whatever the producer asked for, so no delegation outlives the consumer's policy.";
|
|
223
|
+
};
|
|
224
|
+
readonly lastUsedAt: {
|
|
225
|
+
readonly type: "string";
|
|
226
|
+
readonly format: "date-time";
|
|
227
|
+
readonly description: "When the delegation last authorized a document, as far as the consumer recorded. A usability signal for choosing which key to revoke, recorded best-effort; its absence does not mean the key was never used.";
|
|
228
|
+
};
|
|
229
|
+
readonly revokedAt: {
|
|
230
|
+
readonly type: "string";
|
|
231
|
+
readonly format: "date-time";
|
|
232
|
+
readonly description: "When the delegation was revoked. A revoked delegation authorizes nothing and its key cannot be enrolled again.";
|
|
233
|
+
};
|
|
234
|
+
readonly active: {
|
|
235
|
+
readonly type: "boolean";
|
|
236
|
+
readonly description: "Whether the delegation authorizes documents right now: not revoked and not past `expiresAt`. Computed by the consumer with the predicate its verifier applies, so a holder does not re-implement it and disagree.";
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
readonly DeviceLabel: {
|
|
241
|
+
readonly title: "DeviceLabel";
|
|
242
|
+
readonly type: "string";
|
|
243
|
+
readonly minLength: 1;
|
|
244
|
+
readonly maxLength: 128;
|
|
245
|
+
readonly description: "A human-readable name for where the key lives, chosen by the enrolling identity — e.g. `Work laptop — Chrome`. Read by that identity and by administrators deciding which key to revoke; retained with the delegation. Free text authored by the enrolling identity, untrusted, and attributed to it wherever it is rendered. Absent rather than invented when none was chosen: an invented label is indistinguishable from a chosen one to somebody deciding which key to revoke.";
|
|
246
|
+
};
|
|
247
|
+
readonly SigningKeyScope: {
|
|
248
|
+
readonly title: "SigningKeyScope";
|
|
249
|
+
readonly type: "string";
|
|
250
|
+
readonly enum: readonly ["console"];
|
|
251
|
+
readonly description: "What a delegated key may be accepted for. `console`: the operations an administration console performs on the identity's behalf, authorized by the identity's own standing. Never an approver's signature on a consent or approval decision, whatever the scope: those require an `assertionMethod` key of the approver's own DID document, which a delegated key never is. A closed enumeration so a consumer cannot be asked for a scope it does not define; a later version adds values.";
|
|
252
|
+
};
|
|
253
|
+
readonly SigningKeyDid: {
|
|
254
|
+
readonly title: "SigningKeyDid";
|
|
255
|
+
readonly type: "string";
|
|
256
|
+
readonly minLength: 9;
|
|
257
|
+
readonly maxLength: 256;
|
|
258
|
+
readonly pattern: "^did:key:z[1-9A-HJ-NP-Za-km-z]+$";
|
|
259
|
+
readonly 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.";
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
/**
|
|
264
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
265
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
266
|
+
* per-specification and cannot be derived from the document alone, and
|
|
267
|
+
* item 2 needs the schema this carries.
|
|
268
|
+
*/
|
|
269
|
+
export declare const SPEC: {
|
|
270
|
+
readonly typeUri: "https://trusttasks.org/spec/auth/signing-key/list/0.1";
|
|
271
|
+
readonly isBearer: false;
|
|
272
|
+
readonly isProofRequired: true;
|
|
273
|
+
readonly isRecipientRequired: true;
|
|
274
|
+
readonly isIssuedAtRequired: false;
|
|
275
|
+
readonly payloadSchema: {
|
|
276
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
277
|
+
readonly $id: "https://trusttasks.org/spec/auth/signing-key/list/0.1";
|
|
278
|
+
readonly title: "Auth — Signing Key List — payload";
|
|
279
|
+
readonly description: "An identity lists its own signing-key delegations. The payload names no subject: the identity listed is the one the document's proof resolves to, so a caller cannot ask for somebody else's. The outer document members are owned by the framework — SPEC §6.3.";
|
|
280
|
+
readonly type: "object";
|
|
281
|
+
readonly additionalProperties: false;
|
|
282
|
+
readonly properties: {
|
|
283
|
+
readonly ext: {
|
|
284
|
+
readonly $ref: "#/$defs/Ext";
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
readonly $defs: {
|
|
288
|
+
readonly Response: {
|
|
289
|
+
readonly $anchor: "response";
|
|
290
|
+
readonly title: "Auth — Signing Key List — response payload";
|
|
291
|
+
readonly description: "Every delegation enrolled for the caller's identity, newest first, revoked ones included.";
|
|
292
|
+
readonly type: "object";
|
|
293
|
+
readonly additionalProperties: false;
|
|
294
|
+
readonly required: readonly ["signingKeys"];
|
|
295
|
+
readonly properties: {
|
|
296
|
+
readonly signingKeys: {
|
|
297
|
+
readonly type: "array";
|
|
298
|
+
readonly maxItems: 256;
|
|
299
|
+
readonly items: {
|
|
300
|
+
readonly $ref: "#/$defs/SigningKey";
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
readonly ext: {
|
|
304
|
+
readonly $ref: "#/$defs/Ext";
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
readonly Ext: {
|
|
309
|
+
readonly title: "Ext";
|
|
310
|
+
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.";
|
|
311
|
+
readonly type: "object";
|
|
312
|
+
readonly minProperties: 1;
|
|
313
|
+
readonly additionalProperties: true;
|
|
314
|
+
readonly propertyNames: {
|
|
315
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
readonly SigningKey: {
|
|
319
|
+
readonly title: "SigningKey";
|
|
320
|
+
readonly type: "object";
|
|
321
|
+
readonly additionalProperties: false;
|
|
322
|
+
readonly required: readonly ["signingKeyDid", "identityDid", "scope", "createdAt", "expiresAt", "active"];
|
|
323
|
+
readonly description: "One signing-key delegation, as its holder sees it. A delegation confers nothing of its own: it names an identity that already holds whatever standing it holds, and a document signed by the key is authorized by that identity's standing read at execution time.";
|
|
324
|
+
readonly properties: {
|
|
325
|
+
readonly signingKeyDid: {
|
|
326
|
+
readonly $ref: "#/$defs/SigningKeyDid";
|
|
327
|
+
};
|
|
328
|
+
readonly identityDid: {
|
|
329
|
+
readonly type: "string";
|
|
330
|
+
readonly pattern: "^did:";
|
|
331
|
+
readonly minLength: 5;
|
|
332
|
+
readonly maxLength: 2048;
|
|
333
|
+
readonly description: "The identity the key acts for. Included so a holder need not infer it.";
|
|
334
|
+
};
|
|
335
|
+
readonly scope: {
|
|
336
|
+
readonly $ref: "#/$defs/SigningKeyScope";
|
|
337
|
+
};
|
|
338
|
+
readonly deviceLabel: {
|
|
339
|
+
readonly $ref: "#/$defs/DeviceLabel";
|
|
340
|
+
};
|
|
341
|
+
readonly createdAt: {
|
|
342
|
+
readonly type: "string";
|
|
343
|
+
readonly format: "date-time";
|
|
344
|
+
readonly description: "When the delegation was enrolled.";
|
|
345
|
+
};
|
|
346
|
+
readonly expiresAt: {
|
|
347
|
+
readonly type: "string";
|
|
348
|
+
readonly format: "date-time";
|
|
349
|
+
readonly description: "When the delegation stops authorizing documents. Always present: the consumer sets it at enrolment and caps it at its own maximum lifetime, whatever the producer asked for, so no delegation outlives the consumer's policy.";
|
|
350
|
+
};
|
|
351
|
+
readonly lastUsedAt: {
|
|
352
|
+
readonly type: "string";
|
|
353
|
+
readonly format: "date-time";
|
|
354
|
+
readonly description: "When the delegation last authorized a document, as far as the consumer recorded. A usability signal for choosing which key to revoke, recorded best-effort; its absence does not mean the key was never used.";
|
|
355
|
+
};
|
|
356
|
+
readonly revokedAt: {
|
|
357
|
+
readonly type: "string";
|
|
358
|
+
readonly format: "date-time";
|
|
359
|
+
readonly description: "When the delegation was revoked. A revoked delegation authorizes nothing and its key cannot be enrolled again.";
|
|
360
|
+
};
|
|
361
|
+
readonly active: {
|
|
362
|
+
readonly type: "boolean";
|
|
363
|
+
readonly description: "Whether the delegation authorizes documents right now: not revoked and not past `expiresAt`. Computed by the consumer with the predicate its verifier applies, so a holder does not re-implement it and disagree.";
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
readonly DeviceLabel: {
|
|
368
|
+
readonly title: "DeviceLabel";
|
|
369
|
+
readonly type: "string";
|
|
370
|
+
readonly minLength: 1;
|
|
371
|
+
readonly maxLength: 128;
|
|
372
|
+
readonly description: "A human-readable name for where the key lives, chosen by the enrolling identity — e.g. `Work laptop — Chrome`. Read by that identity and by administrators deciding which key to revoke; retained with the delegation. Free text authored by the enrolling identity, untrusted, and attributed to it wherever it is rendered. Absent rather than invented when none was chosen: an invented label is indistinguishable from a chosen one to somebody deciding which key to revoke.";
|
|
373
|
+
};
|
|
374
|
+
readonly SigningKeyScope: {
|
|
375
|
+
readonly title: "SigningKeyScope";
|
|
376
|
+
readonly type: "string";
|
|
377
|
+
readonly enum: readonly ["console"];
|
|
378
|
+
readonly description: "What a delegated key may be accepted for. `console`: the operations an administration console performs on the identity's behalf, authorized by the identity's own standing. Never an approver's signature on a consent or approval decision, whatever the scope: those require an `assertionMethod` key of the approver's own DID document, which a delegated key never is. A closed enumeration so a consumer cannot be asked for a scope it does not define; a later version adds values.";
|
|
379
|
+
};
|
|
380
|
+
readonly SigningKeyDid: {
|
|
381
|
+
readonly title: "SigningKeyDid";
|
|
382
|
+
readonly type: "string";
|
|
383
|
+
readonly minLength: 9;
|
|
384
|
+
readonly maxLength: 256;
|
|
385
|
+
readonly pattern: "^did:key:z[1-9A-HJ-NP-Za-km-z]+$";
|
|
386
|
+
readonly 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.";
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
/**
|
|
392
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
393
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
394
|
+
* parties (§7.3 item 5).
|
|
395
|
+
*/
|
|
396
|
+
export declare const RESPONSE_SPEC: {
|
|
397
|
+
readonly typeUri: "https://trusttasks.org/spec/auth/signing-key/list/0.1#response";
|
|
398
|
+
readonly isBearer: false;
|
|
399
|
+
readonly isProofRequired: true;
|
|
400
|
+
readonly isRecipientRequired: true;
|
|
401
|
+
readonly isIssuedAtRequired: false;
|
|
402
|
+
readonly payloadSchema: {
|
|
403
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
404
|
+
readonly $ref: "#/$defs/Response";
|
|
405
|
+
readonly $defs: {
|
|
406
|
+
readonly Response: {
|
|
407
|
+
readonly $anchor: "response";
|
|
408
|
+
readonly title: "Auth — Signing Key List — response payload";
|
|
409
|
+
readonly description: "Every delegation enrolled for the caller's identity, newest first, revoked ones included.";
|
|
410
|
+
readonly type: "object";
|
|
411
|
+
readonly additionalProperties: false;
|
|
412
|
+
readonly required: readonly ["signingKeys"];
|
|
413
|
+
readonly properties: {
|
|
414
|
+
readonly signingKeys: {
|
|
415
|
+
readonly type: "array";
|
|
416
|
+
readonly maxItems: 256;
|
|
417
|
+
readonly items: {
|
|
418
|
+
readonly $ref: "#/$defs/SigningKey";
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
readonly ext: {
|
|
422
|
+
readonly $ref: "#/$defs/Ext";
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
readonly Ext: {
|
|
427
|
+
readonly title: "Ext";
|
|
428
|
+
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.";
|
|
429
|
+
readonly type: "object";
|
|
430
|
+
readonly minProperties: 1;
|
|
431
|
+
readonly additionalProperties: true;
|
|
432
|
+
readonly propertyNames: {
|
|
433
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
readonly SigningKey: {
|
|
437
|
+
readonly title: "SigningKey";
|
|
438
|
+
readonly type: "object";
|
|
439
|
+
readonly additionalProperties: false;
|
|
440
|
+
readonly required: readonly ["signingKeyDid", "identityDid", "scope", "createdAt", "expiresAt", "active"];
|
|
441
|
+
readonly description: "One signing-key delegation, as its holder sees it. A delegation confers nothing of its own: it names an identity that already holds whatever standing it holds, and a document signed by the key is authorized by that identity's standing read at execution time.";
|
|
442
|
+
readonly properties: {
|
|
443
|
+
readonly signingKeyDid: {
|
|
444
|
+
readonly $ref: "#/$defs/SigningKeyDid";
|
|
445
|
+
};
|
|
446
|
+
readonly identityDid: {
|
|
447
|
+
readonly type: "string";
|
|
448
|
+
readonly pattern: "^did:";
|
|
449
|
+
readonly minLength: 5;
|
|
450
|
+
readonly maxLength: 2048;
|
|
451
|
+
readonly description: "The identity the key acts for. Included so a holder need not infer it.";
|
|
452
|
+
};
|
|
453
|
+
readonly scope: {
|
|
454
|
+
readonly $ref: "#/$defs/SigningKeyScope";
|
|
455
|
+
};
|
|
456
|
+
readonly deviceLabel: {
|
|
457
|
+
readonly $ref: "#/$defs/DeviceLabel";
|
|
458
|
+
};
|
|
459
|
+
readonly createdAt: {
|
|
460
|
+
readonly type: "string";
|
|
461
|
+
readonly format: "date-time";
|
|
462
|
+
readonly description: "When the delegation was enrolled.";
|
|
463
|
+
};
|
|
464
|
+
readonly expiresAt: {
|
|
465
|
+
readonly type: "string";
|
|
466
|
+
readonly format: "date-time";
|
|
467
|
+
readonly description: "When the delegation stops authorizing documents. Always present: the consumer sets it at enrolment and caps it at its own maximum lifetime, whatever the producer asked for, so no delegation outlives the consumer's policy.";
|
|
468
|
+
};
|
|
469
|
+
readonly lastUsedAt: {
|
|
470
|
+
readonly type: "string";
|
|
471
|
+
readonly format: "date-time";
|
|
472
|
+
readonly description: "When the delegation last authorized a document, as far as the consumer recorded. A usability signal for choosing which key to revoke, recorded best-effort; its absence does not mean the key was never used.";
|
|
473
|
+
};
|
|
474
|
+
readonly revokedAt: {
|
|
475
|
+
readonly type: "string";
|
|
476
|
+
readonly format: "date-time";
|
|
477
|
+
readonly description: "When the delegation was revoked. A revoked delegation authorizes nothing and its key cannot be enrolled again.";
|
|
478
|
+
};
|
|
479
|
+
readonly active: {
|
|
480
|
+
readonly type: "boolean";
|
|
481
|
+
readonly description: "Whether the delegation authorizes documents right now: not revoked and not past `expiresAt`. Computed by the consumer with the predicate its verifier applies, so a holder does not re-implement it and disagree.";
|
|
482
|
+
};
|
|
483
|
+
};
|
|
484
|
+
};
|
|
485
|
+
readonly DeviceLabel: {
|
|
486
|
+
readonly title: "DeviceLabel";
|
|
487
|
+
readonly type: "string";
|
|
488
|
+
readonly minLength: 1;
|
|
489
|
+
readonly maxLength: 128;
|
|
490
|
+
readonly description: "A human-readable name for where the key lives, chosen by the enrolling identity — e.g. `Work laptop — Chrome`. Read by that identity and by administrators deciding which key to revoke; retained with the delegation. Free text authored by the enrolling identity, untrusted, and attributed to it wherever it is rendered. Absent rather than invented when none was chosen: an invented label is indistinguishable from a chosen one to somebody deciding which key to revoke.";
|
|
491
|
+
};
|
|
492
|
+
readonly SigningKeyScope: {
|
|
493
|
+
readonly title: "SigningKeyScope";
|
|
494
|
+
readonly type: "string";
|
|
495
|
+
readonly enum: readonly ["console"];
|
|
496
|
+
readonly description: "What a delegated key may be accepted for. `console`: the operations an administration console performs on the identity's behalf, authorized by the identity's own standing. Never an approver's signature on a consent or approval decision, whatever the scope: those require an `assertionMethod` key of the approver's own DID document, which a delegated key never is. A closed enumeration so a consumer cannot be asked for a scope it does not define; a later version adds values.";
|
|
497
|
+
};
|
|
498
|
+
readonly SigningKeyDid: {
|
|
499
|
+
readonly title: "SigningKeyDid";
|
|
500
|
+
readonly type: "string";
|
|
501
|
+
readonly minLength: 9;
|
|
502
|
+
readonly maxLength: 256;
|
|
503
|
+
readonly pattern: "^did:key:z[1-9A-HJ-NP-Za-km-z]+$";
|
|
504
|
+
readonly 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.";
|
|
505
|
+
};
|
|
506
|
+
};
|
|
507
|
+
};
|
|
508
|
+
};
|
|
509
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/auth/signing-key/list/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAGtH;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,WAAW,EAAE,GAAG,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,EAAE,CAAC;AAE7E,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,uDAAgE,CAAC;AAEzF,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,yBAAyB,CAAC;AAEhD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,gEAAyE,CAAC;AAE3G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,iCAAiC,CAAC;AAEzD;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6HjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoH1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|