@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,545 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/auth/signing-key/enroll/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { DeviceLabel, Ext, SigningKey, SigningKeyDid, SigningKeyScope } from "../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* A freshly generated key asks to be enrolled as a signing-key delegation of an identity: documents it signs will be authorized by that identity's standing. The document is issued and proved by the key being enrolled, which is the proof that the enrolling party holds it; the identity it will act for is named in the payload and is established by the authority evidence the consumer requires, never by the key's own signature. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
|
|
8
|
+
*/
|
|
9
|
+
export interface AuthSigningKeyEnrollPayload {
|
|
10
|
+
signingKeyDid: SigningKeyDid;
|
|
11
|
+
/**
|
|
12
|
+
* The identity the key will act for — the DID whose standing a document signed by the key is authorized by. Naming it is not claiming it: the consumer establishes that the enrolling party controls this identity from separate authority evidence (Authorization).
|
|
13
|
+
*/
|
|
14
|
+
identityDid: string;
|
|
15
|
+
scope: SigningKeyScope;
|
|
16
|
+
deviceLabel?: DeviceLabel;
|
|
17
|
+
/**
|
|
18
|
+
* A requested lifetime for the delegation. The consumer sets the delegation's actual expiry — no later than this, and no later than its own cap — and returns it; absent means the consumer's default lifetime. MUST be in the future when the consumer executes the task.
|
|
19
|
+
*/
|
|
20
|
+
expiresAt?: string;
|
|
21
|
+
ext?: Ext;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The delegation as stored. From this point a document the key signs is authorized by the identity's standing, read at execution time.
|
|
25
|
+
*/
|
|
26
|
+
export interface AuthSigningKeyEnrollResponsePayload {
|
|
27
|
+
signingKey: SigningKey;
|
|
28
|
+
ext?: Ext;
|
|
29
|
+
}
|
|
30
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
31
|
+
export type { DeviceLabel, Ext, SigningKey, SigningKeyDid, SigningKeyScope };
|
|
32
|
+
/** Trust Task type URI. */
|
|
33
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/auth/signing-key/enroll/0.1";
|
|
34
|
+
/** Stable alias for this specification's request payload shape. */
|
|
35
|
+
export type Payload = AuthSigningKeyEnrollPayload;
|
|
36
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
37
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/auth/signing-key/enroll/0.1#response";
|
|
38
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
39
|
+
export type Response = AuthSigningKeyEnrollResponsePayload;
|
|
40
|
+
/**
|
|
41
|
+
* This specification's payload schema, as a value.
|
|
42
|
+
*
|
|
43
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
44
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
45
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
46
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
47
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
48
|
+
*/
|
|
49
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
50
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
51
|
+
readonly $id: "https://trusttasks.org/spec/auth/signing-key/enroll/0.1";
|
|
52
|
+
readonly title: "Auth — Signing Key Enroll — payload";
|
|
53
|
+
readonly description: "A freshly generated key asks to be enrolled as a signing-key delegation of an identity: documents it signs will be authorized by that identity's standing. The document is issued and proved by the key being enrolled, which is the proof that the enrolling party holds it; the identity it will act for is named in the payload and is established by the authority evidence the consumer requires, never by the key's own signature. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
|
|
54
|
+
readonly type: "object";
|
|
55
|
+
readonly additionalProperties: false;
|
|
56
|
+
readonly required: readonly ["signingKeyDid", "identityDid", "scope"];
|
|
57
|
+
readonly properties: {
|
|
58
|
+
readonly signingKeyDid: {
|
|
59
|
+
readonly $ref: "#/$defs/SigningKeyDid";
|
|
60
|
+
};
|
|
61
|
+
readonly identityDid: {
|
|
62
|
+
readonly type: "string";
|
|
63
|
+
readonly pattern: "^did:";
|
|
64
|
+
readonly minLength: 5;
|
|
65
|
+
readonly maxLength: 2048;
|
|
66
|
+
readonly description: "The identity the key will act for — the DID whose standing a document signed by the key is authorized by. Naming it is not claiming it: the consumer establishes that the enrolling party controls this identity from separate authority evidence (Authorization).";
|
|
67
|
+
};
|
|
68
|
+
readonly scope: {
|
|
69
|
+
readonly $ref: "#/$defs/SigningKeyScope";
|
|
70
|
+
};
|
|
71
|
+
readonly deviceLabel: {
|
|
72
|
+
readonly $ref: "#/$defs/DeviceLabel";
|
|
73
|
+
};
|
|
74
|
+
readonly expiresAt: {
|
|
75
|
+
readonly type: "string";
|
|
76
|
+
readonly format: "date-time";
|
|
77
|
+
readonly description: "A requested lifetime for the delegation. The consumer sets the delegation's actual expiry — no later than this, and no later than its own cap — and returns it; absent means the consumer's default lifetime. MUST be in the future when the consumer executes the task.";
|
|
78
|
+
};
|
|
79
|
+
readonly ext: {
|
|
80
|
+
readonly $ref: "#/$defs/Ext";
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
readonly $defs: {
|
|
84
|
+
readonly Response: {
|
|
85
|
+
readonly $anchor: "response";
|
|
86
|
+
readonly title: "Auth — Signing Key Enroll — response payload";
|
|
87
|
+
readonly description: "The delegation as stored. From this point a document the key signs is authorized by the identity's standing, read at execution time.";
|
|
88
|
+
readonly type: "object";
|
|
89
|
+
readonly additionalProperties: false;
|
|
90
|
+
readonly required: readonly ["signingKey"];
|
|
91
|
+
readonly properties: {
|
|
92
|
+
readonly signingKey: {
|
|
93
|
+
readonly $ref: "#/$defs/SigningKey";
|
|
94
|
+
};
|
|
95
|
+
readonly ext: {
|
|
96
|
+
readonly $ref: "#/$defs/Ext";
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
readonly Ext: {
|
|
101
|
+
readonly title: "Ext";
|
|
102
|
+
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.";
|
|
103
|
+
readonly type: "object";
|
|
104
|
+
readonly minProperties: 1;
|
|
105
|
+
readonly additionalProperties: true;
|
|
106
|
+
readonly propertyNames: {
|
|
107
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
readonly SigningKey: {
|
|
111
|
+
readonly title: "SigningKey";
|
|
112
|
+
readonly type: "object";
|
|
113
|
+
readonly additionalProperties: false;
|
|
114
|
+
readonly required: readonly ["signingKeyDid", "identityDid", "scope", "createdAt", "expiresAt", "active"];
|
|
115
|
+
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.";
|
|
116
|
+
readonly properties: {
|
|
117
|
+
readonly signingKeyDid: {
|
|
118
|
+
readonly $ref: "#/$defs/SigningKeyDid";
|
|
119
|
+
};
|
|
120
|
+
readonly identityDid: {
|
|
121
|
+
readonly type: "string";
|
|
122
|
+
readonly pattern: "^did:";
|
|
123
|
+
readonly minLength: 5;
|
|
124
|
+
readonly maxLength: 2048;
|
|
125
|
+
readonly description: "The identity the key acts for. Included so a holder need not infer it.";
|
|
126
|
+
};
|
|
127
|
+
readonly scope: {
|
|
128
|
+
readonly $ref: "#/$defs/SigningKeyScope";
|
|
129
|
+
};
|
|
130
|
+
readonly deviceLabel: {
|
|
131
|
+
readonly $ref: "#/$defs/DeviceLabel";
|
|
132
|
+
};
|
|
133
|
+
readonly createdAt: {
|
|
134
|
+
readonly type: "string";
|
|
135
|
+
readonly format: "date-time";
|
|
136
|
+
readonly description: "When the delegation was enrolled.";
|
|
137
|
+
};
|
|
138
|
+
readonly expiresAt: {
|
|
139
|
+
readonly type: "string";
|
|
140
|
+
readonly format: "date-time";
|
|
141
|
+
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.";
|
|
142
|
+
};
|
|
143
|
+
readonly lastUsedAt: {
|
|
144
|
+
readonly type: "string";
|
|
145
|
+
readonly format: "date-time";
|
|
146
|
+
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.";
|
|
147
|
+
};
|
|
148
|
+
readonly revokedAt: {
|
|
149
|
+
readonly type: "string";
|
|
150
|
+
readonly format: "date-time";
|
|
151
|
+
readonly description: "When the delegation was revoked. A revoked delegation authorizes nothing and its key cannot be enrolled again.";
|
|
152
|
+
};
|
|
153
|
+
readonly active: {
|
|
154
|
+
readonly type: "boolean";
|
|
155
|
+
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.";
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
readonly DeviceLabel: {
|
|
160
|
+
readonly title: "DeviceLabel";
|
|
161
|
+
readonly type: "string";
|
|
162
|
+
readonly minLength: 1;
|
|
163
|
+
readonly maxLength: 128;
|
|
164
|
+
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.";
|
|
165
|
+
};
|
|
166
|
+
readonly SigningKeyScope: {
|
|
167
|
+
readonly title: "SigningKeyScope";
|
|
168
|
+
readonly type: "string";
|
|
169
|
+
readonly enum: readonly ["console"];
|
|
170
|
+
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.";
|
|
171
|
+
};
|
|
172
|
+
readonly SigningKeyDid: {
|
|
173
|
+
readonly title: "SigningKeyDid";
|
|
174
|
+
readonly type: "string";
|
|
175
|
+
readonly minLength: 9;
|
|
176
|
+
readonly maxLength: 256;
|
|
177
|
+
readonly pattern: "^did:key:z[1-9A-HJ-NP-Za-km-z]+$";
|
|
178
|
+
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.";
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
183
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
184
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
185
|
+
readonly $ref: "#/$defs/Response";
|
|
186
|
+
readonly $defs: {
|
|
187
|
+
readonly Response: {
|
|
188
|
+
readonly $anchor: "response";
|
|
189
|
+
readonly title: "Auth — Signing Key Enroll — response payload";
|
|
190
|
+
readonly description: "The delegation as stored. From this point a document the key signs is authorized by the identity's standing, read at execution time.";
|
|
191
|
+
readonly type: "object";
|
|
192
|
+
readonly additionalProperties: false;
|
|
193
|
+
readonly required: readonly ["signingKey"];
|
|
194
|
+
readonly properties: {
|
|
195
|
+
readonly signingKey: {
|
|
196
|
+
readonly $ref: "#/$defs/SigningKey";
|
|
197
|
+
};
|
|
198
|
+
readonly ext: {
|
|
199
|
+
readonly $ref: "#/$defs/Ext";
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
readonly Ext: {
|
|
204
|
+
readonly title: "Ext";
|
|
205
|
+
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.";
|
|
206
|
+
readonly type: "object";
|
|
207
|
+
readonly minProperties: 1;
|
|
208
|
+
readonly additionalProperties: true;
|
|
209
|
+
readonly propertyNames: {
|
|
210
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
readonly SigningKey: {
|
|
214
|
+
readonly title: "SigningKey";
|
|
215
|
+
readonly type: "object";
|
|
216
|
+
readonly additionalProperties: false;
|
|
217
|
+
readonly required: readonly ["signingKeyDid", "identityDid", "scope", "createdAt", "expiresAt", "active"];
|
|
218
|
+
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.";
|
|
219
|
+
readonly properties: {
|
|
220
|
+
readonly signingKeyDid: {
|
|
221
|
+
readonly $ref: "#/$defs/SigningKeyDid";
|
|
222
|
+
};
|
|
223
|
+
readonly identityDid: {
|
|
224
|
+
readonly type: "string";
|
|
225
|
+
readonly pattern: "^did:";
|
|
226
|
+
readonly minLength: 5;
|
|
227
|
+
readonly maxLength: 2048;
|
|
228
|
+
readonly description: "The identity the key acts for. Included so a holder need not infer it.";
|
|
229
|
+
};
|
|
230
|
+
readonly scope: {
|
|
231
|
+
readonly $ref: "#/$defs/SigningKeyScope";
|
|
232
|
+
};
|
|
233
|
+
readonly deviceLabel: {
|
|
234
|
+
readonly $ref: "#/$defs/DeviceLabel";
|
|
235
|
+
};
|
|
236
|
+
readonly createdAt: {
|
|
237
|
+
readonly type: "string";
|
|
238
|
+
readonly format: "date-time";
|
|
239
|
+
readonly description: "When the delegation was enrolled.";
|
|
240
|
+
};
|
|
241
|
+
readonly expiresAt: {
|
|
242
|
+
readonly type: "string";
|
|
243
|
+
readonly format: "date-time";
|
|
244
|
+
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.";
|
|
245
|
+
};
|
|
246
|
+
readonly lastUsedAt: {
|
|
247
|
+
readonly type: "string";
|
|
248
|
+
readonly format: "date-time";
|
|
249
|
+
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.";
|
|
250
|
+
};
|
|
251
|
+
readonly revokedAt: {
|
|
252
|
+
readonly type: "string";
|
|
253
|
+
readonly format: "date-time";
|
|
254
|
+
readonly description: "When the delegation was revoked. A revoked delegation authorizes nothing and its key cannot be enrolled again.";
|
|
255
|
+
};
|
|
256
|
+
readonly active: {
|
|
257
|
+
readonly type: "boolean";
|
|
258
|
+
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.";
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
readonly DeviceLabel: {
|
|
263
|
+
readonly title: "DeviceLabel";
|
|
264
|
+
readonly type: "string";
|
|
265
|
+
readonly minLength: 1;
|
|
266
|
+
readonly maxLength: 128;
|
|
267
|
+
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.";
|
|
268
|
+
};
|
|
269
|
+
readonly SigningKeyScope: {
|
|
270
|
+
readonly title: "SigningKeyScope";
|
|
271
|
+
readonly type: "string";
|
|
272
|
+
readonly enum: readonly ["console"];
|
|
273
|
+
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.";
|
|
274
|
+
};
|
|
275
|
+
readonly SigningKeyDid: {
|
|
276
|
+
readonly title: "SigningKeyDid";
|
|
277
|
+
readonly type: "string";
|
|
278
|
+
readonly minLength: 9;
|
|
279
|
+
readonly maxLength: 256;
|
|
280
|
+
readonly pattern: "^did:key:z[1-9A-HJ-NP-Za-km-z]+$";
|
|
281
|
+
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.";
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
/**
|
|
286
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
287
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
288
|
+
* per-specification and cannot be derived from the document alone, and
|
|
289
|
+
* item 2 needs the schema this carries.
|
|
290
|
+
*/
|
|
291
|
+
export declare const SPEC: {
|
|
292
|
+
readonly typeUri: "https://trusttasks.org/spec/auth/signing-key/enroll/0.1";
|
|
293
|
+
readonly isBearer: false;
|
|
294
|
+
readonly isProofRequired: true;
|
|
295
|
+
readonly isRecipientRequired: true;
|
|
296
|
+
readonly isIssuedAtRequired: true;
|
|
297
|
+
readonly payloadSchema: {
|
|
298
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
299
|
+
readonly $id: "https://trusttasks.org/spec/auth/signing-key/enroll/0.1";
|
|
300
|
+
readonly title: "Auth — Signing Key Enroll — payload";
|
|
301
|
+
readonly description: "A freshly generated key asks to be enrolled as a signing-key delegation of an identity: documents it signs will be authorized by that identity's standing. The document is issued and proved by the key being enrolled, which is the proof that the enrolling party holds it; the identity it will act for is named in the payload and is established by the authority evidence the consumer requires, never by the key's own signature. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
|
|
302
|
+
readonly type: "object";
|
|
303
|
+
readonly additionalProperties: false;
|
|
304
|
+
readonly required: readonly ["signingKeyDid", "identityDid", "scope"];
|
|
305
|
+
readonly properties: {
|
|
306
|
+
readonly signingKeyDid: {
|
|
307
|
+
readonly $ref: "#/$defs/SigningKeyDid";
|
|
308
|
+
};
|
|
309
|
+
readonly identityDid: {
|
|
310
|
+
readonly type: "string";
|
|
311
|
+
readonly pattern: "^did:";
|
|
312
|
+
readonly minLength: 5;
|
|
313
|
+
readonly maxLength: 2048;
|
|
314
|
+
readonly description: "The identity the key will act for — the DID whose standing a document signed by the key is authorized by. Naming it is not claiming it: the consumer establishes that the enrolling party controls this identity from separate authority evidence (Authorization).";
|
|
315
|
+
};
|
|
316
|
+
readonly scope: {
|
|
317
|
+
readonly $ref: "#/$defs/SigningKeyScope";
|
|
318
|
+
};
|
|
319
|
+
readonly deviceLabel: {
|
|
320
|
+
readonly $ref: "#/$defs/DeviceLabel";
|
|
321
|
+
};
|
|
322
|
+
readonly expiresAt: {
|
|
323
|
+
readonly type: "string";
|
|
324
|
+
readonly format: "date-time";
|
|
325
|
+
readonly description: "A requested lifetime for the delegation. The consumer sets the delegation's actual expiry — no later than this, and no later than its own cap — and returns it; absent means the consumer's default lifetime. MUST be in the future when the consumer executes the task.";
|
|
326
|
+
};
|
|
327
|
+
readonly ext: {
|
|
328
|
+
readonly $ref: "#/$defs/Ext";
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
readonly $defs: {
|
|
332
|
+
readonly Response: {
|
|
333
|
+
readonly $anchor: "response";
|
|
334
|
+
readonly title: "Auth — Signing Key Enroll — response payload";
|
|
335
|
+
readonly description: "The delegation as stored. From this point a document the key signs is authorized by the identity's standing, read at execution time.";
|
|
336
|
+
readonly type: "object";
|
|
337
|
+
readonly additionalProperties: false;
|
|
338
|
+
readonly required: readonly ["signingKey"];
|
|
339
|
+
readonly properties: {
|
|
340
|
+
readonly signingKey: {
|
|
341
|
+
readonly $ref: "#/$defs/SigningKey";
|
|
342
|
+
};
|
|
343
|
+
readonly ext: {
|
|
344
|
+
readonly $ref: "#/$defs/Ext";
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
readonly Ext: {
|
|
349
|
+
readonly title: "Ext";
|
|
350
|
+
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.";
|
|
351
|
+
readonly type: "object";
|
|
352
|
+
readonly minProperties: 1;
|
|
353
|
+
readonly additionalProperties: true;
|
|
354
|
+
readonly propertyNames: {
|
|
355
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
356
|
+
};
|
|
357
|
+
};
|
|
358
|
+
readonly SigningKey: {
|
|
359
|
+
readonly title: "SigningKey";
|
|
360
|
+
readonly type: "object";
|
|
361
|
+
readonly additionalProperties: false;
|
|
362
|
+
readonly required: readonly ["signingKeyDid", "identityDid", "scope", "createdAt", "expiresAt", "active"];
|
|
363
|
+
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.";
|
|
364
|
+
readonly properties: {
|
|
365
|
+
readonly signingKeyDid: {
|
|
366
|
+
readonly $ref: "#/$defs/SigningKeyDid";
|
|
367
|
+
};
|
|
368
|
+
readonly identityDid: {
|
|
369
|
+
readonly type: "string";
|
|
370
|
+
readonly pattern: "^did:";
|
|
371
|
+
readonly minLength: 5;
|
|
372
|
+
readonly maxLength: 2048;
|
|
373
|
+
readonly description: "The identity the key acts for. Included so a holder need not infer it.";
|
|
374
|
+
};
|
|
375
|
+
readonly scope: {
|
|
376
|
+
readonly $ref: "#/$defs/SigningKeyScope";
|
|
377
|
+
};
|
|
378
|
+
readonly deviceLabel: {
|
|
379
|
+
readonly $ref: "#/$defs/DeviceLabel";
|
|
380
|
+
};
|
|
381
|
+
readonly createdAt: {
|
|
382
|
+
readonly type: "string";
|
|
383
|
+
readonly format: "date-time";
|
|
384
|
+
readonly description: "When the delegation was enrolled.";
|
|
385
|
+
};
|
|
386
|
+
readonly expiresAt: {
|
|
387
|
+
readonly type: "string";
|
|
388
|
+
readonly format: "date-time";
|
|
389
|
+
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.";
|
|
390
|
+
};
|
|
391
|
+
readonly lastUsedAt: {
|
|
392
|
+
readonly type: "string";
|
|
393
|
+
readonly format: "date-time";
|
|
394
|
+
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.";
|
|
395
|
+
};
|
|
396
|
+
readonly revokedAt: {
|
|
397
|
+
readonly type: "string";
|
|
398
|
+
readonly format: "date-time";
|
|
399
|
+
readonly description: "When the delegation was revoked. A revoked delegation authorizes nothing and its key cannot be enrolled again.";
|
|
400
|
+
};
|
|
401
|
+
readonly active: {
|
|
402
|
+
readonly type: "boolean";
|
|
403
|
+
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.";
|
|
404
|
+
};
|
|
405
|
+
};
|
|
406
|
+
};
|
|
407
|
+
readonly DeviceLabel: {
|
|
408
|
+
readonly title: "DeviceLabel";
|
|
409
|
+
readonly type: "string";
|
|
410
|
+
readonly minLength: 1;
|
|
411
|
+
readonly maxLength: 128;
|
|
412
|
+
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.";
|
|
413
|
+
};
|
|
414
|
+
readonly SigningKeyScope: {
|
|
415
|
+
readonly title: "SigningKeyScope";
|
|
416
|
+
readonly type: "string";
|
|
417
|
+
readonly enum: readonly ["console"];
|
|
418
|
+
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.";
|
|
419
|
+
};
|
|
420
|
+
readonly SigningKeyDid: {
|
|
421
|
+
readonly title: "SigningKeyDid";
|
|
422
|
+
readonly type: "string";
|
|
423
|
+
readonly minLength: 9;
|
|
424
|
+
readonly maxLength: 256;
|
|
425
|
+
readonly pattern: "^did:key:z[1-9A-HJ-NP-Za-km-z]+$";
|
|
426
|
+
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.";
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
/**
|
|
432
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
433
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
434
|
+
* parties (§7.3 item 5).
|
|
435
|
+
*/
|
|
436
|
+
export declare const RESPONSE_SPEC: {
|
|
437
|
+
readonly typeUri: "https://trusttasks.org/spec/auth/signing-key/enroll/0.1#response";
|
|
438
|
+
readonly isBearer: false;
|
|
439
|
+
readonly isProofRequired: false;
|
|
440
|
+
readonly isRecipientRequired: true;
|
|
441
|
+
readonly isIssuedAtRequired: true;
|
|
442
|
+
readonly payloadSchema: {
|
|
443
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
444
|
+
readonly $ref: "#/$defs/Response";
|
|
445
|
+
readonly $defs: {
|
|
446
|
+
readonly Response: {
|
|
447
|
+
readonly $anchor: "response";
|
|
448
|
+
readonly title: "Auth — Signing Key Enroll — response payload";
|
|
449
|
+
readonly description: "The delegation as stored. From this point a document the key signs is authorized by the identity's standing, read at execution time.";
|
|
450
|
+
readonly type: "object";
|
|
451
|
+
readonly additionalProperties: false;
|
|
452
|
+
readonly required: readonly ["signingKey"];
|
|
453
|
+
readonly properties: {
|
|
454
|
+
readonly signingKey: {
|
|
455
|
+
readonly $ref: "#/$defs/SigningKey";
|
|
456
|
+
};
|
|
457
|
+
readonly ext: {
|
|
458
|
+
readonly $ref: "#/$defs/Ext";
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
};
|
|
462
|
+
readonly Ext: {
|
|
463
|
+
readonly title: "Ext";
|
|
464
|
+
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.";
|
|
465
|
+
readonly type: "object";
|
|
466
|
+
readonly minProperties: 1;
|
|
467
|
+
readonly additionalProperties: true;
|
|
468
|
+
readonly propertyNames: {
|
|
469
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
readonly SigningKey: {
|
|
473
|
+
readonly title: "SigningKey";
|
|
474
|
+
readonly type: "object";
|
|
475
|
+
readonly additionalProperties: false;
|
|
476
|
+
readonly required: readonly ["signingKeyDid", "identityDid", "scope", "createdAt", "expiresAt", "active"];
|
|
477
|
+
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.";
|
|
478
|
+
readonly properties: {
|
|
479
|
+
readonly signingKeyDid: {
|
|
480
|
+
readonly $ref: "#/$defs/SigningKeyDid";
|
|
481
|
+
};
|
|
482
|
+
readonly identityDid: {
|
|
483
|
+
readonly type: "string";
|
|
484
|
+
readonly pattern: "^did:";
|
|
485
|
+
readonly minLength: 5;
|
|
486
|
+
readonly maxLength: 2048;
|
|
487
|
+
readonly description: "The identity the key acts for. Included so a holder need not infer it.";
|
|
488
|
+
};
|
|
489
|
+
readonly scope: {
|
|
490
|
+
readonly $ref: "#/$defs/SigningKeyScope";
|
|
491
|
+
};
|
|
492
|
+
readonly deviceLabel: {
|
|
493
|
+
readonly $ref: "#/$defs/DeviceLabel";
|
|
494
|
+
};
|
|
495
|
+
readonly createdAt: {
|
|
496
|
+
readonly type: "string";
|
|
497
|
+
readonly format: "date-time";
|
|
498
|
+
readonly description: "When the delegation was enrolled.";
|
|
499
|
+
};
|
|
500
|
+
readonly expiresAt: {
|
|
501
|
+
readonly type: "string";
|
|
502
|
+
readonly format: "date-time";
|
|
503
|
+
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.";
|
|
504
|
+
};
|
|
505
|
+
readonly lastUsedAt: {
|
|
506
|
+
readonly type: "string";
|
|
507
|
+
readonly format: "date-time";
|
|
508
|
+
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.";
|
|
509
|
+
};
|
|
510
|
+
readonly revokedAt: {
|
|
511
|
+
readonly type: "string";
|
|
512
|
+
readonly format: "date-time";
|
|
513
|
+
readonly description: "When the delegation was revoked. A revoked delegation authorizes nothing and its key cannot be enrolled again.";
|
|
514
|
+
};
|
|
515
|
+
readonly active: {
|
|
516
|
+
readonly type: "boolean";
|
|
517
|
+
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.";
|
|
518
|
+
};
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
readonly DeviceLabel: {
|
|
522
|
+
readonly title: "DeviceLabel";
|
|
523
|
+
readonly type: "string";
|
|
524
|
+
readonly minLength: 1;
|
|
525
|
+
readonly maxLength: 128;
|
|
526
|
+
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.";
|
|
527
|
+
};
|
|
528
|
+
readonly SigningKeyScope: {
|
|
529
|
+
readonly title: "SigningKeyScope";
|
|
530
|
+
readonly type: "string";
|
|
531
|
+
readonly enum: readonly ["console"];
|
|
532
|
+
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.";
|
|
533
|
+
};
|
|
534
|
+
readonly SigningKeyDid: {
|
|
535
|
+
readonly title: "SigningKeyDid";
|
|
536
|
+
readonly type: "string";
|
|
537
|
+
readonly minLength: 9;
|
|
538
|
+
readonly maxLength: 256;
|
|
539
|
+
readonly pattern: "^did:key:z[1-9A-HJ-NP-Za-km-z]+$";
|
|
540
|
+
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.";
|
|
541
|
+
};
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
};
|
|
545
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/auth/signing-key/enroll/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,2BAA2B;IAC1C,aAAa,EAAE,aAAa,CAAC;IAC7B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,eAAe,CAAC;IACvB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,mCAAmC;IAClD,UAAU,EAAE,UAAU,CAAC;IACvB,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,yDAAkE,CAAC;AAE3F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,2BAA2B,CAAC;AAElD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,kEAA2E,CAAC;AAE7G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,mCAAmC,CAAC;AAE3D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmJjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgH1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|