@openvtc/trust-tasks 0.20.8 → 0.21.0
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 +233 -0
- package/dist/_shared/components.d.ts +299 -2
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/auth/passkey/enroll/invite/0.2/payload.d.ts +456 -0
- package/dist/auth/passkey/enroll/invite/0.2/payload.d.ts.map +1 -0
- package/dist/auth/passkey/enroll/invite/0.2/payload.js +248 -0
- package/dist/auth/passkey/enroll/invite/0.2/payload.js.map +1 -0
- package/dist/auth/passkey/enroll/redeem/finish/0.1/payload.d.ts +728 -0
- package/dist/auth/passkey/enroll/redeem/finish/0.1/payload.d.ts.map +1 -0
- package/dist/auth/passkey/enroll/redeem/finish/0.1/payload.js +430 -0
- package/dist/auth/passkey/enroll/redeem/finish/0.1/payload.js.map +1 -0
- package/dist/auth/passkey/enroll/redeem/start/0.1/payload.d.ts +1043 -0
- package/dist/auth/passkey/enroll/redeem/start/0.1/payload.d.ts.map +1 -0
- package/dist/auth/passkey/enroll/redeem/start/0.1/payload.js +628 -0
- package/dist/auth/passkey/enroll/redeem/start/0.1/payload.js.map +1 -0
- package/dist/auth/passkey/revoke/finish/0.2/payload.d.ts +533 -0
- package/dist/auth/passkey/revoke/finish/0.2/payload.d.ts.map +1 -0
- package/dist/auth/passkey/revoke/finish/0.2/payload.js +315 -0
- package/dist/auth/passkey/revoke/finish/0.2/payload.js.map +1 -0
- package/dist/auth/passkey/revoke/start/0.2/payload.d.ts +511 -0
- package/dist/auth/passkey/revoke/start/0.2/payload.d.ts.map +1 -0
- package/dist/auth/passkey/revoke/start/0.2/payload.js +297 -0
- package/dist/auth/passkey/revoke/start/0.2/payload.js.map +1 -0
- package/dist/auth/step-up/approve-response/0.5/payload.d.ts +887 -0
- package/dist/auth/step-up/approve-response/0.5/payload.d.ts.map +1 -0
- package/dist/auth/step-up/approve-response/0.5/payload.js +504 -0
- package/dist/auth/step-up/approve-response/0.5/payload.js.map +1 -0
- package/dist/device/list/0.1/payload.d.ts +4 -4
- package/dist/device/list/0.1/payload.d.ts.map +1 -1
- package/dist/device/list/0.1/payload.js +4 -2
- package/dist/device/list/0.1/payload.js.map +1 -1
- package/dist/device/list/0.2/payload.d.ts +4 -4
- package/dist/device/list/0.2/payload.d.ts.map +1 -1
- package/dist/device/list/0.2/payload.js +4 -2
- package/dist/device/list/0.2/payload.js.map +1 -1
- package/dist/device/register/0.1/payload.d.ts +4 -4
- package/dist/device/register/0.1/payload.d.ts.map +1 -1
- package/dist/device/register/0.1/payload.js +4 -2
- package/dist/device/register/0.1/payload.js.map +1 -1
- package/dist/device/register/0.2/payload.d.ts +4 -4
- package/dist/device/register/0.2/payload.d.ts.map +1 -1
- package/dist/device/register/0.2/payload.js +4 -2
- package/dist/device/register/0.2/payload.js.map +1 -1
- package/dist/git-ns/_shared/0.4/git-ns.d.ts +16 -0
- package/dist/git-ns/_shared/0.4/git-ns.d.ts.map +1 -0
- package/dist/git-ns/_shared/0.4/git-ns.js +6 -0
- package/dist/git-ns/_shared/0.4/git-ns.js.map +1 -0
- package/dist/git-ns/account/link-status/0.1/payload.d.ts +2 -2
- package/dist/git-ns/account/link-status/0.1/payload.js +2 -2
- package/dist/git-ns/account/link-status/0.1/payload.js.map +1 -1
- package/dist/git-ns/account/unlink/0.1/payload.d.ts +411 -0
- package/dist/git-ns/account/unlink/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/account/unlink/0.1/payload.js +228 -0
- package/dist/git-ns/account/unlink/0.1/payload.js.map +1 -0
- package/dist/git-ns/bridge/event/0.3/payload.d.ts +1682 -0
- package/dist/git-ns/bridge/event/0.3/payload.d.ts.map +1 -0
- package/dist/git-ns/bridge/event/0.3/payload.js +971 -0
- package/dist/git-ns/bridge/event/0.3/payload.js.map +1 -0
- package/dist/git-ns/bridge/job/0.4/payload.d.ts +1068 -0
- package/dist/git-ns/bridge/job/0.4/payload.d.ts.map +1 -0
- package/dist/git-ns/bridge/job/0.4/payload.js +573 -0
- package/dist/git-ns/bridge/job/0.4/payload.js.map +1 -0
- package/dist/git-ns/drift/resolve/0.3/payload.d.ts +1072 -0
- package/dist/git-ns/drift/resolve/0.3/payload.d.ts.map +1 -0
- package/dist/git-ns/drift/resolve/0.3/payload.js +634 -0
- package/dist/git-ns/drift/resolve/0.3/payload.js.map +1 -0
- package/dist/git-ns/namespace/reseat/0.3/payload.d.ts +515 -0
- package/dist/git-ns/namespace/reseat/0.3/payload.d.ts.map +1 -0
- package/dist/git-ns/namespace/reseat/0.3/payload.js +296 -0
- package/dist/git-ns/namespace/reseat/0.3/payload.js.map +1 -0
- package/dist/git-ns/repo/create/0.3/payload.d.ts +1101 -0
- package/dist/git-ns/repo/create/0.3/payload.d.ts.map +1 -0
- package/dist/git-ns/repo/create/0.3/payload.js +646 -0
- package/dist/git-ns/repo/create/0.3/payload.js.map +1 -0
- package/dist/git-ns/right/break-glass/0.1/payload.d.ts +685 -0
- package/dist/git-ns/right/break-glass/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/right/break-glass/0.1/payload.js +397 -0
- package/dist/git-ns/right/break-glass/0.1/payload.js.map +1 -0
- package/dist/git-ns/right/break-glass-notice/0.1/payload.d.ts +384 -0
- package/dist/git-ns/right/break-glass-notice/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/right/break-glass-notice/0.1/payload.js +216 -0
- package/dist/git-ns/right/break-glass-notice/0.1/payload.js.map +1 -0
- package/dist/git-ns/right/grant/0.3/payload.d.ts +678 -0
- package/dist/git-ns/right/grant/0.3/payload.d.ts.map +1 -0
- package/dist/git-ns/right/grant/0.3/payload.js +383 -0
- package/dist/git-ns/right/grant/0.3/payload.js.map +1 -0
- package/dist/git-ns/right/ratify/0.1/payload.d.ts +702 -0
- package/dist/git-ns/right/ratify/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/right/ratify/0.1/payload.js +404 -0
- package/dist/git-ns/right/ratify/0.1/payload.js.map +1 -0
- package/dist/git-ns/right/revoke/0.3/payload.d.ts +664 -0
- package/dist/git-ns/right/revoke/0.3/payload.d.ts.map +1 -0
- package/dist/git-ns/right/revoke/0.3/payload.js +378 -0
- package/dist/git-ns/right/revoke/0.3/payload.js.map +1 -0
- package/dist/git-ns/roles/reproject/0.1/payload.d.ts +325 -0
- package/dist/git-ns/roles/reproject/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/roles/reproject/0.1/payload.js +176 -0
- package/dist/git-ns/roles/reproject/0.1/payload.js.map +1 -0
- package/dist/git-ns/view/0.1/payload.d.ts +2 -2
- package/dist/git-ns/view/0.1/payload.js +2 -2
- package/dist/git-ns/view/0.1/payload.js.map +1 -1
- package/dist/git-ns/view/0.2/payload.d.ts +2 -2
- package/dist/git-ns/view/0.2/payload.js +2 -2
- package/dist/git-ns/view/0.2/payload.js.map +1 -1
- package/dist/git-ns/view/0.3/payload.d.ts +2 -2
- package/dist/git-ns/view/0.3/payload.js +2 -2
- package/dist/git-ns/view/0.3/payload.js.map +1 -1
- package/dist/git-ns/view/0.4/payload.d.ts +1696 -0
- package/dist/git-ns/view/0.4/payload.d.ts.map +1 -0
- package/dist/git-ns/view/0.4/payload.js +1012 -0
- package/dist/git-ns/view/0.4/payload.js.map +1 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +30 -0
- package/dist/index.js.map +1 -1
- package/dist/messaging/message/status/0.1/payload.d.ts +372 -0
- package/dist/messaging/message/status/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/message/status/0.1/payload.js +214 -0
- package/dist/messaging/message/status/0.1/payload.js.map +1 -0
- package/dist/vta/_shared/0.3/did-key-roles.d.ts +16 -0
- package/dist/vta/_shared/0.3/did-key-roles.d.ts.map +1 -0
- package/dist/vta/_shared/0.3/did-key-roles.js +6 -0
- package/dist/vta/_shared/0.3/did-key-roles.js.map +1 -0
- package/dist/vta/attestation/mnemonic-export/1.0/payload.d.ts +326 -0
- package/dist/vta/attestation/mnemonic-export/1.0/payload.d.ts.map +1 -0
- package/dist/vta/attestation/mnemonic-export/1.0/payload.js +175 -0
- package/dist/vta/attestation/mnemonic-export/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/dids/keys/add/1.0/payload.d.ts +1914 -0
- package/dist/vta/webvh/dids/keys/add/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/dids/keys/add/1.0/payload.js +1128 -0
- package/dist/vta/webvh/dids/keys/add/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/dids/keys/list/1.0/payload.d.ts +1603 -0
- package/dist/vta/webvh/dids/keys/list/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/dids/keys/list/1.0/payload.js +942 -0
- package/dist/vta/webvh/dids/keys/list/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/dids/keys/retire/1.0/payload.d.ts +1914 -0
- package/dist/vta/webvh/dids/keys/retire/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/dids/keys/retire/1.0/payload.js +1123 -0
- package/dist/vta/webvh/dids/keys/retire/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/dids/keys/revoke/1.0/payload.d.ts +2021 -0
- package/dist/vta/webvh/dids/keys/revoke/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/dids/keys/revoke/1.0/payload.js +1168 -0
- package/dist/vta/webvh/dids/keys/revoke/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/dids/rotate-keys/2.0/payload.d.ts +1992 -0
- package/dist/vta/webvh/dids/rotate-keys/2.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/dids/rotate-keys/2.0/payload.js +1151 -0
- package/dist/vta/webvh/dids/rotate-keys/2.0/payload.js.map +1 -0
- package/dist/vta/webvh/dids/update/2.0/payload.d.ts +1062 -0
- package/dist/vta/webvh/dids/update/2.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/dids/update/2.0/payload.js +616 -0
- package/dist/vta/webvh/dids/update/2.0/payload.js.map +1 -0
- package/dist/vtc/credentials/reissue/0.1/payload.d.ts +502 -0
- package/dist/vtc/credentials/reissue/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/credentials/reissue/0.1/payload.js +282 -0
- package/dist/vtc/credentials/reissue/0.1/payload.js.map +1 -0
- package/dist/vtc/members/personhood/challenge/0.1/payload.d.ts +2 -2
- package/dist/vtc/members/personhood/challenge/0.1/payload.js +2 -2
- package/dist/vtc/members/personhood/challenge/0.1/payload.js.map +1 -1
- package/dist/vtc/vetting/vetters/profile/0.1/payload.d.ts +2 -2
- package/dist/vtc/vetting/vetters/profile/0.1/payload.js +2 -2
- package/dist/vtc/vetting/vetters/profile/0.1/payload.js.map +1 -1
- package/dist/vtc/vetting/vetters/resend/0.1/payload.d.ts +2 -2
- package/dist/vtc/vetting/vetters/resend/0.1/payload.js +2 -2
- package/dist/vtc/vetting/vetters/resend/0.1/payload.js.map +1 -1
- package/package.json +1 -1
- package/src/_shared/components.ts +313 -2
- package/src/auth/passkey/enroll/invite/0.2/payload.ts +325 -0
- package/src/auth/passkey/enroll/redeem/finish/0.1/payload.ts +499 -0
- package/src/auth/passkey/enroll/redeem/start/0.1/payload.ts +700 -0
- package/src/auth/passkey/revoke/finish/0.2/payload.ts +379 -0
- package/src/auth/passkey/revoke/start/0.2/payload.ts +349 -0
- package/src/auth/step-up/approve-response/0.5/payload.ts +593 -0
- package/src/device/list/0.1/payload.ts +4 -2
- package/src/device/list/0.2/payload.ts +4 -2
- package/src/device/register/0.1/payload.ts +4 -2
- package/src/device/register/0.2/payload.ts +4 -2
- package/src/git-ns/_shared/0.4/git-ns.ts +17 -0
- package/src/git-ns/account/link-status/0.1/payload.ts +2 -2
- package/src/git-ns/account/unlink/0.1/payload.ts +274 -0
- package/src/git-ns/bridge/event/0.3/payload.ts +1132 -0
- package/src/git-ns/bridge/job/0.4/payload.ts +691 -0
- package/src/git-ns/drift/resolve/0.3/payload.ts +707 -0
- package/src/git-ns/namespace/reseat/0.3/payload.ts +342 -0
- package/src/git-ns/repo/create/0.3/payload.ts +706 -0
- package/src/git-ns/right/break-glass/0.1/payload.ts +443 -0
- package/src/git-ns/right/break-glass-notice/0.1/payload.ts +258 -0
- package/src/git-ns/right/grant/0.3/payload.ts +434 -0
- package/src/git-ns/right/ratify/0.1/payload.ts +455 -0
- package/src/git-ns/right/revoke/0.3/payload.ts +425 -0
- package/src/git-ns/roles/reproject/0.1/payload.ts +220 -0
- package/src/git-ns/view/0.1/payload.ts +2 -2
- package/src/git-ns/view/0.2/payload.ts +2 -2
- package/src/git-ns/view/0.3/payload.ts +2 -2
- package/src/git-ns/view/0.4/payload.ts +1075 -0
- package/src/index.ts +30 -0
- package/src/messaging/message/status/0.1/payload.ts +270 -0
- package/src/vta/_shared/0.3/did-key-roles.ts +17 -0
- package/src/vta/attestation/mnemonic-export/1.0/payload.ts +232 -0
- package/src/vta/webvh/dids/keys/add/1.0/payload.ts +1217 -0
- package/src/vta/webvh/dids/keys/list/1.0/payload.ts +1004 -0
- package/src/vta/webvh/dids/keys/retire/1.0/payload.ts +1212 -0
- package/src/vta/webvh/dids/keys/revoke/1.0/payload.ts +1276 -0
- package/src/vta/webvh/dids/rotate-keys/2.0/payload.ts +1262 -0
- package/src/vta/webvh/dids/update/2.0/payload.ts +713 -0
- package/src/vtc/credentials/reissue/0.1/payload.ts +357 -0
- package/src/vtc/members/personhood/challenge/0.1/payload.ts +2 -2
- package/src/vtc/vetting/vetters/profile/0.1/payload.ts +2 -2
- package/src/vtc/vetting/vetters/resend/0.1/payload.ts +2 -2
|
@@ -0,0 +1,1043 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/auth/passkey/enroll/redeem/start/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { Ext, PublicKeyCredentialCreationOptions, PublicKeyCredentialDescriptor, PublicKeyCredentialRequestOptions } from "../../../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* The invitee presents an auth/passkey/enroll/invite token and its claim code, and the auth service begins the WebAuthn registration ceremony the invite authorises.
|
|
8
|
+
*/
|
|
9
|
+
export interface AuthPasskeyEnrollRedeemStart {
|
|
10
|
+
/**
|
|
11
|
+
* The invite token, as carried in the invite URL.
|
|
12
|
+
*/
|
|
13
|
+
token: string;
|
|
14
|
+
/**
|
|
15
|
+
* The claim code the administrator delivered separately.
|
|
16
|
+
*/
|
|
17
|
+
claimCode: string;
|
|
18
|
+
/**
|
|
19
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
20
|
+
*/
|
|
21
|
+
ext?: Ext;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The registration ceremony the invite authorises.
|
|
25
|
+
*/
|
|
26
|
+
export interface AuthPasskeyEnrollRedeemStartResponsePayload {
|
|
27
|
+
/**
|
|
28
|
+
* Opaque handle correlating this start with the matching auth/passkey/enroll/redeem/finish. Echoed verbatim.
|
|
29
|
+
*/
|
|
30
|
+
enrollmentId: string;
|
|
31
|
+
/**
|
|
32
|
+
* The VID the invite binds the credential to, so the invitee can see whose passkey they are enrolling before they create it.
|
|
33
|
+
*/
|
|
34
|
+
subject: string;
|
|
35
|
+
/**
|
|
36
|
+
* What the credential will authenticate, from the invite.
|
|
37
|
+
*/
|
|
38
|
+
purpose: "session" | "stepUp";
|
|
39
|
+
/**
|
|
40
|
+
* The inviter's suggested label, if any. The invitee MAY override it at finish.
|
|
41
|
+
*/
|
|
42
|
+
deviceLabel?: string;
|
|
43
|
+
/**
|
|
44
|
+
* PublicKeyCredentialCreationOptions for navigator.credentials.create.
|
|
45
|
+
*/
|
|
46
|
+
options: PublicKeyCredentialCreationOptions;
|
|
47
|
+
/**
|
|
48
|
+
* PublicKeyCredentialRequestOptions over the subject's existing credentials of the same purpose, present exactly when the subject already has one. The invitee MUST run both ceremonies and return both results to finish.
|
|
49
|
+
*/
|
|
50
|
+
uvOptions?: PublicKeyCredentialRequestOptions;
|
|
51
|
+
/**
|
|
52
|
+
* When this ceremony lapses (not the invite).
|
|
53
|
+
*/
|
|
54
|
+
expiresAt: string;
|
|
55
|
+
/**
|
|
56
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
57
|
+
*/
|
|
58
|
+
ext?: Ext;
|
|
59
|
+
}
|
|
60
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
61
|
+
export type { Ext, PublicKeyCredentialCreationOptions, PublicKeyCredentialDescriptor, PublicKeyCredentialRequestOptions };
|
|
62
|
+
/** Trust Task type URI. */
|
|
63
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/auth/passkey/enroll/redeem/start/0.1";
|
|
64
|
+
/** Stable alias for this specification's request payload shape. */
|
|
65
|
+
export type Payload = AuthPasskeyEnrollRedeemStart;
|
|
66
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
67
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/auth/passkey/enroll/redeem/start/0.1#response";
|
|
68
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
69
|
+
export type Response = AuthPasskeyEnrollRedeemStartResponsePayload;
|
|
70
|
+
/**
|
|
71
|
+
* This specification's payload schema, as a value.
|
|
72
|
+
*
|
|
73
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
74
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
75
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
76
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
77
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
78
|
+
*/
|
|
79
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
80
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
81
|
+
readonly $id: "https://trusttasks.org/spec/auth/passkey/enroll/redeem/start/0.1";
|
|
82
|
+
readonly title: "Auth — Passkey Enroll (redeem, start)";
|
|
83
|
+
readonly description: "The invitee presents an auth/passkey/enroll/invite token and its claim code, and the auth service begins the WebAuthn registration ceremony the invite authorises.";
|
|
84
|
+
readonly type: "object";
|
|
85
|
+
readonly additionalProperties: false;
|
|
86
|
+
readonly required: readonly ["token", "claimCode"];
|
|
87
|
+
readonly properties: {
|
|
88
|
+
readonly token: {
|
|
89
|
+
readonly type: "string";
|
|
90
|
+
readonly minLength: 16;
|
|
91
|
+
readonly maxLength: 512;
|
|
92
|
+
readonly description: "The invite token, as carried in the invite URL.";
|
|
93
|
+
};
|
|
94
|
+
readonly claimCode: {
|
|
95
|
+
readonly type: "string";
|
|
96
|
+
readonly minLength: 1;
|
|
97
|
+
readonly maxLength: 64;
|
|
98
|
+
readonly description: "The claim code the administrator delivered separately.";
|
|
99
|
+
};
|
|
100
|
+
readonly ext: {
|
|
101
|
+
readonly $ref: "#/$defs/Ext";
|
|
102
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
readonly $defs: {
|
|
106
|
+
readonly Response: {
|
|
107
|
+
readonly $anchor: "response";
|
|
108
|
+
readonly title: "Auth Passkey Enroll Redeem Start — response payload";
|
|
109
|
+
readonly description: "The registration ceremony the invite authorises.";
|
|
110
|
+
readonly type: "object";
|
|
111
|
+
readonly additionalProperties: false;
|
|
112
|
+
readonly required: readonly ["enrollmentId", "subject", "purpose", "options", "expiresAt"];
|
|
113
|
+
readonly properties: {
|
|
114
|
+
readonly enrollmentId: {
|
|
115
|
+
readonly type: "string";
|
|
116
|
+
readonly minLength: 1;
|
|
117
|
+
readonly description: "Opaque handle correlating this start with the matching auth/passkey/enroll/redeem/finish. Echoed verbatim.";
|
|
118
|
+
};
|
|
119
|
+
readonly subject: {
|
|
120
|
+
readonly type: "string";
|
|
121
|
+
readonly minLength: 1;
|
|
122
|
+
readonly description: "The VID the invite binds the credential to, so the invitee can see whose passkey they are enrolling before they create it.";
|
|
123
|
+
};
|
|
124
|
+
readonly purpose: {
|
|
125
|
+
readonly type: "string";
|
|
126
|
+
readonly enum: readonly ["session", "stepUp"];
|
|
127
|
+
readonly description: "What the credential will authenticate, from the invite.";
|
|
128
|
+
};
|
|
129
|
+
readonly deviceLabel: {
|
|
130
|
+
readonly type: "string";
|
|
131
|
+
readonly maxLength: 256;
|
|
132
|
+
readonly description: "The inviter's suggested label, if any. The invitee MAY override it at finish.";
|
|
133
|
+
};
|
|
134
|
+
readonly options: {
|
|
135
|
+
readonly $ref: "#/$defs/CredentialCreationOptions";
|
|
136
|
+
readonly description: "PublicKeyCredentialCreationOptions for navigator.credentials.create.";
|
|
137
|
+
};
|
|
138
|
+
readonly uvOptions: {
|
|
139
|
+
readonly $ref: "#/$defs/CredentialRequestOptions";
|
|
140
|
+
readonly description: "PublicKeyCredentialRequestOptions over the subject's existing credentials of the same purpose, present exactly when the subject already has one. The invitee MUST run both ceremonies and return both results to finish.";
|
|
141
|
+
};
|
|
142
|
+
readonly expiresAt: {
|
|
143
|
+
readonly type: "string";
|
|
144
|
+
readonly format: "date-time";
|
|
145
|
+
readonly description: "When this ceremony lapses (not the invite).";
|
|
146
|
+
};
|
|
147
|
+
readonly ext: {
|
|
148
|
+
readonly $ref: "#/$defs/Ext";
|
|
149
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
readonly Ext: {
|
|
154
|
+
readonly title: "Ext";
|
|
155
|
+
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.";
|
|
156
|
+
readonly type: "object";
|
|
157
|
+
readonly minProperties: 1;
|
|
158
|
+
readonly additionalProperties: true;
|
|
159
|
+
readonly propertyNames: {
|
|
160
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
readonly CredentialRequestOptions: {
|
|
164
|
+
readonly $anchor: "credentialRequestOptions";
|
|
165
|
+
readonly title: "PublicKeyCredentialRequestOptions";
|
|
166
|
+
readonly description: "Server-issued options for `navigator.credentials.get({ publicKey: ... })`.";
|
|
167
|
+
readonly type: "object";
|
|
168
|
+
readonly additionalProperties: false;
|
|
169
|
+
readonly required: readonly ["challenge"];
|
|
170
|
+
readonly properties: {
|
|
171
|
+
readonly extensions: {
|
|
172
|
+
readonly type: "object";
|
|
173
|
+
readonly description: "Client extension inputs, per the WebAuthn Level 2 `AuthenticationExtensionsClientInputs` dictionary.\n\nThis component states that it mirrors the W3C dictionary, and that dictionary defines `extensions`. Omitting it while closing the object with `additionalProperties: false` made the two claims contradict each other: a server emitting standard WebAuthn options could not conform, and the widely-used server libraries emit this member by default.\n\nStructure is deliberately unconstrained. The set of extensions is open and registered outside this framework, so enumerating them here would date the schema against a registry it does not own — and a closed list would reproduce the original defect one revision later.";
|
|
174
|
+
};
|
|
175
|
+
readonly challenge: {
|
|
176
|
+
readonly type: "string";
|
|
177
|
+
readonly description: "base64url-encoded one-time nonce.";
|
|
178
|
+
};
|
|
179
|
+
readonly timeout: {
|
|
180
|
+
readonly type: "integer";
|
|
181
|
+
readonly minimum: 1;
|
|
182
|
+
};
|
|
183
|
+
readonly rpId: {
|
|
184
|
+
readonly type: "string";
|
|
185
|
+
readonly minLength: 1;
|
|
186
|
+
};
|
|
187
|
+
readonly allowCredentials: {
|
|
188
|
+
readonly type: "array";
|
|
189
|
+
readonly items: {
|
|
190
|
+
readonly $ref: "#/$defs/CredentialDescriptor";
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
readonly userVerification: {
|
|
194
|
+
readonly enum: readonly ["discouraged", "preferred", "required"];
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
readonly CredentialDescriptor: {
|
|
199
|
+
readonly $anchor: "credentialDescriptor";
|
|
200
|
+
readonly title: "PublicKeyCredentialDescriptor";
|
|
201
|
+
readonly type: "object";
|
|
202
|
+
readonly additionalProperties: false;
|
|
203
|
+
readonly required: readonly ["type", "id"];
|
|
204
|
+
readonly properties: {
|
|
205
|
+
readonly type: {
|
|
206
|
+
readonly const: "public-key";
|
|
207
|
+
};
|
|
208
|
+
readonly id: {
|
|
209
|
+
readonly type: "string";
|
|
210
|
+
readonly description: "base64url-encoded credential id.";
|
|
211
|
+
};
|
|
212
|
+
readonly transports: {
|
|
213
|
+
readonly type: "array";
|
|
214
|
+
readonly items: {
|
|
215
|
+
readonly enum: readonly ["usb", "nfc", "ble", "internal", "hybrid"];
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
readonly CredentialCreationOptions: {
|
|
221
|
+
readonly $anchor: "credentialCreationOptions";
|
|
222
|
+
readonly title: "PublicKeyCredentialCreationOptions";
|
|
223
|
+
readonly description: "Server-issued options for `navigator.credentials.create({ publicKey: ... })`. Mirrors the WebAuthn Level 2 `PublicKeyCredentialCreationOptions` dictionary; binary fields are base64url-encoded strings (rather than ArrayBuffers) so the value is JSON-safe over the wire.";
|
|
224
|
+
readonly type: "object";
|
|
225
|
+
readonly additionalProperties: false;
|
|
226
|
+
readonly required: readonly ["challenge", "rp", "user", "pubKeyCredParams"];
|
|
227
|
+
readonly properties: {
|
|
228
|
+
readonly extensions: {
|
|
229
|
+
readonly type: "object";
|
|
230
|
+
readonly description: "Client extension inputs, per the WebAuthn Level 2 `AuthenticationExtensionsClientInputs` dictionary.\n\nThis component states that it mirrors the W3C dictionary, and that dictionary defines `extensions`. Omitting it while closing the object with `additionalProperties: false` made the two claims contradict each other: a server emitting standard WebAuthn options could not conform, and the widely-used server libraries emit this member by default.\n\nStructure is deliberately unconstrained. The set of extensions is open and registered outside this framework, so enumerating them here would date the schema against a registry it does not own — and a closed list would reproduce the original defect one revision later.";
|
|
231
|
+
};
|
|
232
|
+
readonly challenge: {
|
|
233
|
+
readonly type: "string";
|
|
234
|
+
readonly description: "base64url-encoded one-time nonce.";
|
|
235
|
+
};
|
|
236
|
+
readonly rp: {
|
|
237
|
+
readonly type: "object";
|
|
238
|
+
readonly additionalProperties: false;
|
|
239
|
+
readonly required: readonly ["id", "name"];
|
|
240
|
+
readonly properties: {
|
|
241
|
+
readonly id: {
|
|
242
|
+
readonly type: "string";
|
|
243
|
+
readonly minLength: 1;
|
|
244
|
+
};
|
|
245
|
+
readonly name: {
|
|
246
|
+
readonly type: "string";
|
|
247
|
+
readonly minLength: 1;
|
|
248
|
+
readonly maxLength: 64;
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
readonly user: {
|
|
253
|
+
readonly type: "object";
|
|
254
|
+
readonly additionalProperties: false;
|
|
255
|
+
readonly required: readonly ["id", "name", "displayName"];
|
|
256
|
+
readonly properties: {
|
|
257
|
+
readonly id: {
|
|
258
|
+
readonly type: "string";
|
|
259
|
+
readonly description: "base64url-encoded user handle. SHOULD be a stable opaque identifier — never reuse a human-readable username here.";
|
|
260
|
+
};
|
|
261
|
+
readonly name: {
|
|
262
|
+
readonly type: "string";
|
|
263
|
+
readonly minLength: 1;
|
|
264
|
+
readonly maxLength: 64;
|
|
265
|
+
};
|
|
266
|
+
readonly displayName: {
|
|
267
|
+
readonly type: "string";
|
|
268
|
+
readonly maxLength: 64;
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
readonly pubKeyCredParams: {
|
|
273
|
+
readonly type: "array";
|
|
274
|
+
readonly minItems: 1;
|
|
275
|
+
readonly items: {
|
|
276
|
+
readonly type: "object";
|
|
277
|
+
readonly additionalProperties: false;
|
|
278
|
+
readonly required: readonly ["type", "alg"];
|
|
279
|
+
readonly properties: {
|
|
280
|
+
readonly type: {
|
|
281
|
+
readonly const: "public-key";
|
|
282
|
+
};
|
|
283
|
+
readonly alg: {
|
|
284
|
+
readonly type: "integer";
|
|
285
|
+
readonly description: "COSE algorithm identifier (e.g. -8 Ed25519, -7 ES256, -257 RS256).";
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
readonly timeout: {
|
|
291
|
+
readonly type: "integer";
|
|
292
|
+
readonly minimum: 1;
|
|
293
|
+
};
|
|
294
|
+
readonly excludeCredentials: {
|
|
295
|
+
readonly type: "array";
|
|
296
|
+
readonly items: {
|
|
297
|
+
readonly $ref: "#/$defs/CredentialDescriptor";
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
readonly authenticatorSelection: {
|
|
301
|
+
readonly type: "object";
|
|
302
|
+
readonly additionalProperties: false;
|
|
303
|
+
readonly properties: {
|
|
304
|
+
readonly authenticatorAttachment: {
|
|
305
|
+
readonly enum: readonly ["platform", "cross-platform"];
|
|
306
|
+
};
|
|
307
|
+
readonly requireResidentKey: {
|
|
308
|
+
readonly type: "boolean";
|
|
309
|
+
};
|
|
310
|
+
readonly residentKey: {
|
|
311
|
+
readonly enum: readonly ["discouraged", "preferred", "required"];
|
|
312
|
+
};
|
|
313
|
+
readonly userVerification: {
|
|
314
|
+
readonly enum: readonly ["discouraged", "preferred", "required"];
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
readonly attestation: {
|
|
319
|
+
readonly enum: readonly ["none", "indirect", "direct", "enterprise"];
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
326
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
327
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
328
|
+
readonly $ref: "#/$defs/Response";
|
|
329
|
+
readonly $defs: {
|
|
330
|
+
readonly Response: {
|
|
331
|
+
readonly $anchor: "response";
|
|
332
|
+
readonly title: "Auth Passkey Enroll Redeem Start — response payload";
|
|
333
|
+
readonly description: "The registration ceremony the invite authorises.";
|
|
334
|
+
readonly type: "object";
|
|
335
|
+
readonly additionalProperties: false;
|
|
336
|
+
readonly required: readonly ["enrollmentId", "subject", "purpose", "options", "expiresAt"];
|
|
337
|
+
readonly properties: {
|
|
338
|
+
readonly enrollmentId: {
|
|
339
|
+
readonly type: "string";
|
|
340
|
+
readonly minLength: 1;
|
|
341
|
+
readonly description: "Opaque handle correlating this start with the matching auth/passkey/enroll/redeem/finish. Echoed verbatim.";
|
|
342
|
+
};
|
|
343
|
+
readonly subject: {
|
|
344
|
+
readonly type: "string";
|
|
345
|
+
readonly minLength: 1;
|
|
346
|
+
readonly description: "The VID the invite binds the credential to, so the invitee can see whose passkey they are enrolling before they create it.";
|
|
347
|
+
};
|
|
348
|
+
readonly purpose: {
|
|
349
|
+
readonly type: "string";
|
|
350
|
+
readonly enum: readonly ["session", "stepUp"];
|
|
351
|
+
readonly description: "What the credential will authenticate, from the invite.";
|
|
352
|
+
};
|
|
353
|
+
readonly deviceLabel: {
|
|
354
|
+
readonly type: "string";
|
|
355
|
+
readonly maxLength: 256;
|
|
356
|
+
readonly description: "The inviter's suggested label, if any. The invitee MAY override it at finish.";
|
|
357
|
+
};
|
|
358
|
+
readonly options: {
|
|
359
|
+
readonly $ref: "#/$defs/CredentialCreationOptions";
|
|
360
|
+
readonly description: "PublicKeyCredentialCreationOptions for navigator.credentials.create.";
|
|
361
|
+
};
|
|
362
|
+
readonly uvOptions: {
|
|
363
|
+
readonly $ref: "#/$defs/CredentialRequestOptions";
|
|
364
|
+
readonly description: "PublicKeyCredentialRequestOptions over the subject's existing credentials of the same purpose, present exactly when the subject already has one. The invitee MUST run both ceremonies and return both results to finish.";
|
|
365
|
+
};
|
|
366
|
+
readonly expiresAt: {
|
|
367
|
+
readonly type: "string";
|
|
368
|
+
readonly format: "date-time";
|
|
369
|
+
readonly description: "When this ceremony lapses (not the invite).";
|
|
370
|
+
};
|
|
371
|
+
readonly ext: {
|
|
372
|
+
readonly $ref: "#/$defs/Ext";
|
|
373
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
374
|
+
};
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
readonly Ext: {
|
|
378
|
+
readonly title: "Ext";
|
|
379
|
+
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.";
|
|
380
|
+
readonly type: "object";
|
|
381
|
+
readonly minProperties: 1;
|
|
382
|
+
readonly additionalProperties: true;
|
|
383
|
+
readonly propertyNames: {
|
|
384
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
readonly CredentialRequestOptions: {
|
|
388
|
+
readonly $anchor: "credentialRequestOptions";
|
|
389
|
+
readonly title: "PublicKeyCredentialRequestOptions";
|
|
390
|
+
readonly description: "Server-issued options for `navigator.credentials.get({ publicKey: ... })`.";
|
|
391
|
+
readonly type: "object";
|
|
392
|
+
readonly additionalProperties: false;
|
|
393
|
+
readonly required: readonly ["challenge"];
|
|
394
|
+
readonly properties: {
|
|
395
|
+
readonly extensions: {
|
|
396
|
+
readonly type: "object";
|
|
397
|
+
readonly description: "Client extension inputs, per the WebAuthn Level 2 `AuthenticationExtensionsClientInputs` dictionary.\n\nThis component states that it mirrors the W3C dictionary, and that dictionary defines `extensions`. Omitting it while closing the object with `additionalProperties: false` made the two claims contradict each other: a server emitting standard WebAuthn options could not conform, and the widely-used server libraries emit this member by default.\n\nStructure is deliberately unconstrained. The set of extensions is open and registered outside this framework, so enumerating them here would date the schema against a registry it does not own — and a closed list would reproduce the original defect one revision later.";
|
|
398
|
+
};
|
|
399
|
+
readonly challenge: {
|
|
400
|
+
readonly type: "string";
|
|
401
|
+
readonly description: "base64url-encoded one-time nonce.";
|
|
402
|
+
};
|
|
403
|
+
readonly timeout: {
|
|
404
|
+
readonly type: "integer";
|
|
405
|
+
readonly minimum: 1;
|
|
406
|
+
};
|
|
407
|
+
readonly rpId: {
|
|
408
|
+
readonly type: "string";
|
|
409
|
+
readonly minLength: 1;
|
|
410
|
+
};
|
|
411
|
+
readonly allowCredentials: {
|
|
412
|
+
readonly type: "array";
|
|
413
|
+
readonly items: {
|
|
414
|
+
readonly $ref: "#/$defs/CredentialDescriptor";
|
|
415
|
+
};
|
|
416
|
+
};
|
|
417
|
+
readonly userVerification: {
|
|
418
|
+
readonly enum: readonly ["discouraged", "preferred", "required"];
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
};
|
|
422
|
+
readonly CredentialDescriptor: {
|
|
423
|
+
readonly $anchor: "credentialDescriptor";
|
|
424
|
+
readonly title: "PublicKeyCredentialDescriptor";
|
|
425
|
+
readonly type: "object";
|
|
426
|
+
readonly additionalProperties: false;
|
|
427
|
+
readonly required: readonly ["type", "id"];
|
|
428
|
+
readonly properties: {
|
|
429
|
+
readonly type: {
|
|
430
|
+
readonly const: "public-key";
|
|
431
|
+
};
|
|
432
|
+
readonly id: {
|
|
433
|
+
readonly type: "string";
|
|
434
|
+
readonly description: "base64url-encoded credential id.";
|
|
435
|
+
};
|
|
436
|
+
readonly transports: {
|
|
437
|
+
readonly type: "array";
|
|
438
|
+
readonly items: {
|
|
439
|
+
readonly enum: readonly ["usb", "nfc", "ble", "internal", "hybrid"];
|
|
440
|
+
};
|
|
441
|
+
};
|
|
442
|
+
};
|
|
443
|
+
};
|
|
444
|
+
readonly CredentialCreationOptions: {
|
|
445
|
+
readonly $anchor: "credentialCreationOptions";
|
|
446
|
+
readonly title: "PublicKeyCredentialCreationOptions";
|
|
447
|
+
readonly description: "Server-issued options for `navigator.credentials.create({ publicKey: ... })`. Mirrors the WebAuthn Level 2 `PublicKeyCredentialCreationOptions` dictionary; binary fields are base64url-encoded strings (rather than ArrayBuffers) so the value is JSON-safe over the wire.";
|
|
448
|
+
readonly type: "object";
|
|
449
|
+
readonly additionalProperties: false;
|
|
450
|
+
readonly required: readonly ["challenge", "rp", "user", "pubKeyCredParams"];
|
|
451
|
+
readonly properties: {
|
|
452
|
+
readonly extensions: {
|
|
453
|
+
readonly type: "object";
|
|
454
|
+
readonly description: "Client extension inputs, per the WebAuthn Level 2 `AuthenticationExtensionsClientInputs` dictionary.\n\nThis component states that it mirrors the W3C dictionary, and that dictionary defines `extensions`. Omitting it while closing the object with `additionalProperties: false` made the two claims contradict each other: a server emitting standard WebAuthn options could not conform, and the widely-used server libraries emit this member by default.\n\nStructure is deliberately unconstrained. The set of extensions is open and registered outside this framework, so enumerating them here would date the schema against a registry it does not own — and a closed list would reproduce the original defect one revision later.";
|
|
455
|
+
};
|
|
456
|
+
readonly challenge: {
|
|
457
|
+
readonly type: "string";
|
|
458
|
+
readonly description: "base64url-encoded one-time nonce.";
|
|
459
|
+
};
|
|
460
|
+
readonly rp: {
|
|
461
|
+
readonly type: "object";
|
|
462
|
+
readonly additionalProperties: false;
|
|
463
|
+
readonly required: readonly ["id", "name"];
|
|
464
|
+
readonly properties: {
|
|
465
|
+
readonly id: {
|
|
466
|
+
readonly type: "string";
|
|
467
|
+
readonly minLength: 1;
|
|
468
|
+
};
|
|
469
|
+
readonly name: {
|
|
470
|
+
readonly type: "string";
|
|
471
|
+
readonly minLength: 1;
|
|
472
|
+
readonly maxLength: 64;
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
};
|
|
476
|
+
readonly user: {
|
|
477
|
+
readonly type: "object";
|
|
478
|
+
readonly additionalProperties: false;
|
|
479
|
+
readonly required: readonly ["id", "name", "displayName"];
|
|
480
|
+
readonly properties: {
|
|
481
|
+
readonly id: {
|
|
482
|
+
readonly type: "string";
|
|
483
|
+
readonly description: "base64url-encoded user handle. SHOULD be a stable opaque identifier — never reuse a human-readable username here.";
|
|
484
|
+
};
|
|
485
|
+
readonly name: {
|
|
486
|
+
readonly type: "string";
|
|
487
|
+
readonly minLength: 1;
|
|
488
|
+
readonly maxLength: 64;
|
|
489
|
+
};
|
|
490
|
+
readonly displayName: {
|
|
491
|
+
readonly type: "string";
|
|
492
|
+
readonly maxLength: 64;
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
};
|
|
496
|
+
readonly pubKeyCredParams: {
|
|
497
|
+
readonly type: "array";
|
|
498
|
+
readonly minItems: 1;
|
|
499
|
+
readonly items: {
|
|
500
|
+
readonly type: "object";
|
|
501
|
+
readonly additionalProperties: false;
|
|
502
|
+
readonly required: readonly ["type", "alg"];
|
|
503
|
+
readonly properties: {
|
|
504
|
+
readonly type: {
|
|
505
|
+
readonly const: "public-key";
|
|
506
|
+
};
|
|
507
|
+
readonly alg: {
|
|
508
|
+
readonly type: "integer";
|
|
509
|
+
readonly description: "COSE algorithm identifier (e.g. -8 Ed25519, -7 ES256, -257 RS256).";
|
|
510
|
+
};
|
|
511
|
+
};
|
|
512
|
+
};
|
|
513
|
+
};
|
|
514
|
+
readonly timeout: {
|
|
515
|
+
readonly type: "integer";
|
|
516
|
+
readonly minimum: 1;
|
|
517
|
+
};
|
|
518
|
+
readonly excludeCredentials: {
|
|
519
|
+
readonly type: "array";
|
|
520
|
+
readonly items: {
|
|
521
|
+
readonly $ref: "#/$defs/CredentialDescriptor";
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
readonly authenticatorSelection: {
|
|
525
|
+
readonly type: "object";
|
|
526
|
+
readonly additionalProperties: false;
|
|
527
|
+
readonly properties: {
|
|
528
|
+
readonly authenticatorAttachment: {
|
|
529
|
+
readonly enum: readonly ["platform", "cross-platform"];
|
|
530
|
+
};
|
|
531
|
+
readonly requireResidentKey: {
|
|
532
|
+
readonly type: "boolean";
|
|
533
|
+
};
|
|
534
|
+
readonly residentKey: {
|
|
535
|
+
readonly enum: readonly ["discouraged", "preferred", "required"];
|
|
536
|
+
};
|
|
537
|
+
readonly userVerification: {
|
|
538
|
+
readonly enum: readonly ["discouraged", "preferred", "required"];
|
|
539
|
+
};
|
|
540
|
+
};
|
|
541
|
+
};
|
|
542
|
+
readonly attestation: {
|
|
543
|
+
readonly enum: readonly ["none", "indirect", "direct", "enterprise"];
|
|
544
|
+
};
|
|
545
|
+
};
|
|
546
|
+
};
|
|
547
|
+
};
|
|
548
|
+
};
|
|
549
|
+
/**
|
|
550
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
551
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
552
|
+
* per-specification and cannot be derived from the document alone, and
|
|
553
|
+
* item 2 needs the schema this carries.
|
|
554
|
+
*/
|
|
555
|
+
export declare const SPEC: {
|
|
556
|
+
readonly typeUri: "https://trusttasks.org/spec/auth/passkey/enroll/redeem/start/0.1";
|
|
557
|
+
readonly isBearer: false;
|
|
558
|
+
readonly isProofRequired: false;
|
|
559
|
+
readonly isRecipientRequired: true;
|
|
560
|
+
readonly isIssuedAtRequired: true;
|
|
561
|
+
readonly payloadSchema: {
|
|
562
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
563
|
+
readonly $id: "https://trusttasks.org/spec/auth/passkey/enroll/redeem/start/0.1";
|
|
564
|
+
readonly title: "Auth — Passkey Enroll (redeem, start)";
|
|
565
|
+
readonly description: "The invitee presents an auth/passkey/enroll/invite token and its claim code, and the auth service begins the WebAuthn registration ceremony the invite authorises.";
|
|
566
|
+
readonly type: "object";
|
|
567
|
+
readonly additionalProperties: false;
|
|
568
|
+
readonly required: readonly ["token", "claimCode"];
|
|
569
|
+
readonly properties: {
|
|
570
|
+
readonly token: {
|
|
571
|
+
readonly type: "string";
|
|
572
|
+
readonly minLength: 16;
|
|
573
|
+
readonly maxLength: 512;
|
|
574
|
+
readonly description: "The invite token, as carried in the invite URL.";
|
|
575
|
+
};
|
|
576
|
+
readonly claimCode: {
|
|
577
|
+
readonly type: "string";
|
|
578
|
+
readonly minLength: 1;
|
|
579
|
+
readonly maxLength: 64;
|
|
580
|
+
readonly description: "The claim code the administrator delivered separately.";
|
|
581
|
+
};
|
|
582
|
+
readonly ext: {
|
|
583
|
+
readonly $ref: "#/$defs/Ext";
|
|
584
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
readonly $defs: {
|
|
588
|
+
readonly Response: {
|
|
589
|
+
readonly $anchor: "response";
|
|
590
|
+
readonly title: "Auth Passkey Enroll Redeem Start — response payload";
|
|
591
|
+
readonly description: "The registration ceremony the invite authorises.";
|
|
592
|
+
readonly type: "object";
|
|
593
|
+
readonly additionalProperties: false;
|
|
594
|
+
readonly required: readonly ["enrollmentId", "subject", "purpose", "options", "expiresAt"];
|
|
595
|
+
readonly properties: {
|
|
596
|
+
readonly enrollmentId: {
|
|
597
|
+
readonly type: "string";
|
|
598
|
+
readonly minLength: 1;
|
|
599
|
+
readonly description: "Opaque handle correlating this start with the matching auth/passkey/enroll/redeem/finish. Echoed verbatim.";
|
|
600
|
+
};
|
|
601
|
+
readonly subject: {
|
|
602
|
+
readonly type: "string";
|
|
603
|
+
readonly minLength: 1;
|
|
604
|
+
readonly description: "The VID the invite binds the credential to, so the invitee can see whose passkey they are enrolling before they create it.";
|
|
605
|
+
};
|
|
606
|
+
readonly purpose: {
|
|
607
|
+
readonly type: "string";
|
|
608
|
+
readonly enum: readonly ["session", "stepUp"];
|
|
609
|
+
readonly description: "What the credential will authenticate, from the invite.";
|
|
610
|
+
};
|
|
611
|
+
readonly deviceLabel: {
|
|
612
|
+
readonly type: "string";
|
|
613
|
+
readonly maxLength: 256;
|
|
614
|
+
readonly description: "The inviter's suggested label, if any. The invitee MAY override it at finish.";
|
|
615
|
+
};
|
|
616
|
+
readonly options: {
|
|
617
|
+
readonly $ref: "#/$defs/CredentialCreationOptions";
|
|
618
|
+
readonly description: "PublicKeyCredentialCreationOptions for navigator.credentials.create.";
|
|
619
|
+
};
|
|
620
|
+
readonly uvOptions: {
|
|
621
|
+
readonly $ref: "#/$defs/CredentialRequestOptions";
|
|
622
|
+
readonly description: "PublicKeyCredentialRequestOptions over the subject's existing credentials of the same purpose, present exactly when the subject already has one. The invitee MUST run both ceremonies and return both results to finish.";
|
|
623
|
+
};
|
|
624
|
+
readonly expiresAt: {
|
|
625
|
+
readonly type: "string";
|
|
626
|
+
readonly format: "date-time";
|
|
627
|
+
readonly description: "When this ceremony lapses (not the invite).";
|
|
628
|
+
};
|
|
629
|
+
readonly ext: {
|
|
630
|
+
readonly $ref: "#/$defs/Ext";
|
|
631
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
632
|
+
};
|
|
633
|
+
};
|
|
634
|
+
};
|
|
635
|
+
readonly Ext: {
|
|
636
|
+
readonly title: "Ext";
|
|
637
|
+
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.";
|
|
638
|
+
readonly type: "object";
|
|
639
|
+
readonly minProperties: 1;
|
|
640
|
+
readonly additionalProperties: true;
|
|
641
|
+
readonly propertyNames: {
|
|
642
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
643
|
+
};
|
|
644
|
+
};
|
|
645
|
+
readonly CredentialRequestOptions: {
|
|
646
|
+
readonly $anchor: "credentialRequestOptions";
|
|
647
|
+
readonly title: "PublicKeyCredentialRequestOptions";
|
|
648
|
+
readonly description: "Server-issued options for `navigator.credentials.get({ publicKey: ... })`.";
|
|
649
|
+
readonly type: "object";
|
|
650
|
+
readonly additionalProperties: false;
|
|
651
|
+
readonly required: readonly ["challenge"];
|
|
652
|
+
readonly properties: {
|
|
653
|
+
readonly extensions: {
|
|
654
|
+
readonly type: "object";
|
|
655
|
+
readonly description: "Client extension inputs, per the WebAuthn Level 2 `AuthenticationExtensionsClientInputs` dictionary.\n\nThis component states that it mirrors the W3C dictionary, and that dictionary defines `extensions`. Omitting it while closing the object with `additionalProperties: false` made the two claims contradict each other: a server emitting standard WebAuthn options could not conform, and the widely-used server libraries emit this member by default.\n\nStructure is deliberately unconstrained. The set of extensions is open and registered outside this framework, so enumerating them here would date the schema against a registry it does not own — and a closed list would reproduce the original defect one revision later.";
|
|
656
|
+
};
|
|
657
|
+
readonly challenge: {
|
|
658
|
+
readonly type: "string";
|
|
659
|
+
readonly description: "base64url-encoded one-time nonce.";
|
|
660
|
+
};
|
|
661
|
+
readonly timeout: {
|
|
662
|
+
readonly type: "integer";
|
|
663
|
+
readonly minimum: 1;
|
|
664
|
+
};
|
|
665
|
+
readonly rpId: {
|
|
666
|
+
readonly type: "string";
|
|
667
|
+
readonly minLength: 1;
|
|
668
|
+
};
|
|
669
|
+
readonly allowCredentials: {
|
|
670
|
+
readonly type: "array";
|
|
671
|
+
readonly items: {
|
|
672
|
+
readonly $ref: "#/$defs/CredentialDescriptor";
|
|
673
|
+
};
|
|
674
|
+
};
|
|
675
|
+
readonly userVerification: {
|
|
676
|
+
readonly enum: readonly ["discouraged", "preferred", "required"];
|
|
677
|
+
};
|
|
678
|
+
};
|
|
679
|
+
};
|
|
680
|
+
readonly CredentialDescriptor: {
|
|
681
|
+
readonly $anchor: "credentialDescriptor";
|
|
682
|
+
readonly title: "PublicKeyCredentialDescriptor";
|
|
683
|
+
readonly type: "object";
|
|
684
|
+
readonly additionalProperties: false;
|
|
685
|
+
readonly required: readonly ["type", "id"];
|
|
686
|
+
readonly properties: {
|
|
687
|
+
readonly type: {
|
|
688
|
+
readonly const: "public-key";
|
|
689
|
+
};
|
|
690
|
+
readonly id: {
|
|
691
|
+
readonly type: "string";
|
|
692
|
+
readonly description: "base64url-encoded credential id.";
|
|
693
|
+
};
|
|
694
|
+
readonly transports: {
|
|
695
|
+
readonly type: "array";
|
|
696
|
+
readonly items: {
|
|
697
|
+
readonly enum: readonly ["usb", "nfc", "ble", "internal", "hybrid"];
|
|
698
|
+
};
|
|
699
|
+
};
|
|
700
|
+
};
|
|
701
|
+
};
|
|
702
|
+
readonly CredentialCreationOptions: {
|
|
703
|
+
readonly $anchor: "credentialCreationOptions";
|
|
704
|
+
readonly title: "PublicKeyCredentialCreationOptions";
|
|
705
|
+
readonly description: "Server-issued options for `navigator.credentials.create({ publicKey: ... })`. Mirrors the WebAuthn Level 2 `PublicKeyCredentialCreationOptions` dictionary; binary fields are base64url-encoded strings (rather than ArrayBuffers) so the value is JSON-safe over the wire.";
|
|
706
|
+
readonly type: "object";
|
|
707
|
+
readonly additionalProperties: false;
|
|
708
|
+
readonly required: readonly ["challenge", "rp", "user", "pubKeyCredParams"];
|
|
709
|
+
readonly properties: {
|
|
710
|
+
readonly extensions: {
|
|
711
|
+
readonly type: "object";
|
|
712
|
+
readonly description: "Client extension inputs, per the WebAuthn Level 2 `AuthenticationExtensionsClientInputs` dictionary.\n\nThis component states that it mirrors the W3C dictionary, and that dictionary defines `extensions`. Omitting it while closing the object with `additionalProperties: false` made the two claims contradict each other: a server emitting standard WebAuthn options could not conform, and the widely-used server libraries emit this member by default.\n\nStructure is deliberately unconstrained. The set of extensions is open and registered outside this framework, so enumerating them here would date the schema against a registry it does not own — and a closed list would reproduce the original defect one revision later.";
|
|
713
|
+
};
|
|
714
|
+
readonly challenge: {
|
|
715
|
+
readonly type: "string";
|
|
716
|
+
readonly description: "base64url-encoded one-time nonce.";
|
|
717
|
+
};
|
|
718
|
+
readonly rp: {
|
|
719
|
+
readonly type: "object";
|
|
720
|
+
readonly additionalProperties: false;
|
|
721
|
+
readonly required: readonly ["id", "name"];
|
|
722
|
+
readonly properties: {
|
|
723
|
+
readonly id: {
|
|
724
|
+
readonly type: "string";
|
|
725
|
+
readonly minLength: 1;
|
|
726
|
+
};
|
|
727
|
+
readonly name: {
|
|
728
|
+
readonly type: "string";
|
|
729
|
+
readonly minLength: 1;
|
|
730
|
+
readonly maxLength: 64;
|
|
731
|
+
};
|
|
732
|
+
};
|
|
733
|
+
};
|
|
734
|
+
readonly user: {
|
|
735
|
+
readonly type: "object";
|
|
736
|
+
readonly additionalProperties: false;
|
|
737
|
+
readonly required: readonly ["id", "name", "displayName"];
|
|
738
|
+
readonly properties: {
|
|
739
|
+
readonly id: {
|
|
740
|
+
readonly type: "string";
|
|
741
|
+
readonly description: "base64url-encoded user handle. SHOULD be a stable opaque identifier — never reuse a human-readable username here.";
|
|
742
|
+
};
|
|
743
|
+
readonly name: {
|
|
744
|
+
readonly type: "string";
|
|
745
|
+
readonly minLength: 1;
|
|
746
|
+
readonly maxLength: 64;
|
|
747
|
+
};
|
|
748
|
+
readonly displayName: {
|
|
749
|
+
readonly type: "string";
|
|
750
|
+
readonly maxLength: 64;
|
|
751
|
+
};
|
|
752
|
+
};
|
|
753
|
+
};
|
|
754
|
+
readonly pubKeyCredParams: {
|
|
755
|
+
readonly type: "array";
|
|
756
|
+
readonly minItems: 1;
|
|
757
|
+
readonly items: {
|
|
758
|
+
readonly type: "object";
|
|
759
|
+
readonly additionalProperties: false;
|
|
760
|
+
readonly required: readonly ["type", "alg"];
|
|
761
|
+
readonly properties: {
|
|
762
|
+
readonly type: {
|
|
763
|
+
readonly const: "public-key";
|
|
764
|
+
};
|
|
765
|
+
readonly alg: {
|
|
766
|
+
readonly type: "integer";
|
|
767
|
+
readonly description: "COSE algorithm identifier (e.g. -8 Ed25519, -7 ES256, -257 RS256).";
|
|
768
|
+
};
|
|
769
|
+
};
|
|
770
|
+
};
|
|
771
|
+
};
|
|
772
|
+
readonly timeout: {
|
|
773
|
+
readonly type: "integer";
|
|
774
|
+
readonly minimum: 1;
|
|
775
|
+
};
|
|
776
|
+
readonly excludeCredentials: {
|
|
777
|
+
readonly type: "array";
|
|
778
|
+
readonly items: {
|
|
779
|
+
readonly $ref: "#/$defs/CredentialDescriptor";
|
|
780
|
+
};
|
|
781
|
+
};
|
|
782
|
+
readonly authenticatorSelection: {
|
|
783
|
+
readonly type: "object";
|
|
784
|
+
readonly additionalProperties: false;
|
|
785
|
+
readonly properties: {
|
|
786
|
+
readonly authenticatorAttachment: {
|
|
787
|
+
readonly enum: readonly ["platform", "cross-platform"];
|
|
788
|
+
};
|
|
789
|
+
readonly requireResidentKey: {
|
|
790
|
+
readonly type: "boolean";
|
|
791
|
+
};
|
|
792
|
+
readonly residentKey: {
|
|
793
|
+
readonly enum: readonly ["discouraged", "preferred", "required"];
|
|
794
|
+
};
|
|
795
|
+
readonly userVerification: {
|
|
796
|
+
readonly enum: readonly ["discouraged", "preferred", "required"];
|
|
797
|
+
};
|
|
798
|
+
};
|
|
799
|
+
};
|
|
800
|
+
readonly attestation: {
|
|
801
|
+
readonly enum: readonly ["none", "indirect", "direct", "enterprise"];
|
|
802
|
+
};
|
|
803
|
+
};
|
|
804
|
+
};
|
|
805
|
+
};
|
|
806
|
+
};
|
|
807
|
+
};
|
|
808
|
+
/**
|
|
809
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
810
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
811
|
+
* parties (§7.3 item 5).
|
|
812
|
+
*/
|
|
813
|
+
export declare const RESPONSE_SPEC: {
|
|
814
|
+
readonly typeUri: "https://trusttasks.org/spec/auth/passkey/enroll/redeem/start/0.1#response";
|
|
815
|
+
readonly isBearer: false;
|
|
816
|
+
readonly isProofRequired: false;
|
|
817
|
+
readonly isRecipientRequired: true;
|
|
818
|
+
readonly isIssuedAtRequired: true;
|
|
819
|
+
readonly payloadSchema: {
|
|
820
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
821
|
+
readonly $ref: "#/$defs/Response";
|
|
822
|
+
readonly $defs: {
|
|
823
|
+
readonly Response: {
|
|
824
|
+
readonly $anchor: "response";
|
|
825
|
+
readonly title: "Auth Passkey Enroll Redeem Start — response payload";
|
|
826
|
+
readonly description: "The registration ceremony the invite authorises.";
|
|
827
|
+
readonly type: "object";
|
|
828
|
+
readonly additionalProperties: false;
|
|
829
|
+
readonly required: readonly ["enrollmentId", "subject", "purpose", "options", "expiresAt"];
|
|
830
|
+
readonly properties: {
|
|
831
|
+
readonly enrollmentId: {
|
|
832
|
+
readonly type: "string";
|
|
833
|
+
readonly minLength: 1;
|
|
834
|
+
readonly description: "Opaque handle correlating this start with the matching auth/passkey/enroll/redeem/finish. Echoed verbatim.";
|
|
835
|
+
};
|
|
836
|
+
readonly subject: {
|
|
837
|
+
readonly type: "string";
|
|
838
|
+
readonly minLength: 1;
|
|
839
|
+
readonly description: "The VID the invite binds the credential to, so the invitee can see whose passkey they are enrolling before they create it.";
|
|
840
|
+
};
|
|
841
|
+
readonly purpose: {
|
|
842
|
+
readonly type: "string";
|
|
843
|
+
readonly enum: readonly ["session", "stepUp"];
|
|
844
|
+
readonly description: "What the credential will authenticate, from the invite.";
|
|
845
|
+
};
|
|
846
|
+
readonly deviceLabel: {
|
|
847
|
+
readonly type: "string";
|
|
848
|
+
readonly maxLength: 256;
|
|
849
|
+
readonly description: "The inviter's suggested label, if any. The invitee MAY override it at finish.";
|
|
850
|
+
};
|
|
851
|
+
readonly options: {
|
|
852
|
+
readonly $ref: "#/$defs/CredentialCreationOptions";
|
|
853
|
+
readonly description: "PublicKeyCredentialCreationOptions for navigator.credentials.create.";
|
|
854
|
+
};
|
|
855
|
+
readonly uvOptions: {
|
|
856
|
+
readonly $ref: "#/$defs/CredentialRequestOptions";
|
|
857
|
+
readonly description: "PublicKeyCredentialRequestOptions over the subject's existing credentials of the same purpose, present exactly when the subject already has one. The invitee MUST run both ceremonies and return both results to finish.";
|
|
858
|
+
};
|
|
859
|
+
readonly expiresAt: {
|
|
860
|
+
readonly type: "string";
|
|
861
|
+
readonly format: "date-time";
|
|
862
|
+
readonly description: "When this ceremony lapses (not the invite).";
|
|
863
|
+
};
|
|
864
|
+
readonly ext: {
|
|
865
|
+
readonly $ref: "#/$defs/Ext";
|
|
866
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
867
|
+
};
|
|
868
|
+
};
|
|
869
|
+
};
|
|
870
|
+
readonly Ext: {
|
|
871
|
+
readonly title: "Ext";
|
|
872
|
+
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.";
|
|
873
|
+
readonly type: "object";
|
|
874
|
+
readonly minProperties: 1;
|
|
875
|
+
readonly additionalProperties: true;
|
|
876
|
+
readonly propertyNames: {
|
|
877
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
878
|
+
};
|
|
879
|
+
};
|
|
880
|
+
readonly CredentialRequestOptions: {
|
|
881
|
+
readonly $anchor: "credentialRequestOptions";
|
|
882
|
+
readonly title: "PublicKeyCredentialRequestOptions";
|
|
883
|
+
readonly description: "Server-issued options for `navigator.credentials.get({ publicKey: ... })`.";
|
|
884
|
+
readonly type: "object";
|
|
885
|
+
readonly additionalProperties: false;
|
|
886
|
+
readonly required: readonly ["challenge"];
|
|
887
|
+
readonly properties: {
|
|
888
|
+
readonly extensions: {
|
|
889
|
+
readonly type: "object";
|
|
890
|
+
readonly description: "Client extension inputs, per the WebAuthn Level 2 `AuthenticationExtensionsClientInputs` dictionary.\n\nThis component states that it mirrors the W3C dictionary, and that dictionary defines `extensions`. Omitting it while closing the object with `additionalProperties: false` made the two claims contradict each other: a server emitting standard WebAuthn options could not conform, and the widely-used server libraries emit this member by default.\n\nStructure is deliberately unconstrained. The set of extensions is open and registered outside this framework, so enumerating them here would date the schema against a registry it does not own — and a closed list would reproduce the original defect one revision later.";
|
|
891
|
+
};
|
|
892
|
+
readonly challenge: {
|
|
893
|
+
readonly type: "string";
|
|
894
|
+
readonly description: "base64url-encoded one-time nonce.";
|
|
895
|
+
};
|
|
896
|
+
readonly timeout: {
|
|
897
|
+
readonly type: "integer";
|
|
898
|
+
readonly minimum: 1;
|
|
899
|
+
};
|
|
900
|
+
readonly rpId: {
|
|
901
|
+
readonly type: "string";
|
|
902
|
+
readonly minLength: 1;
|
|
903
|
+
};
|
|
904
|
+
readonly allowCredentials: {
|
|
905
|
+
readonly type: "array";
|
|
906
|
+
readonly items: {
|
|
907
|
+
readonly $ref: "#/$defs/CredentialDescriptor";
|
|
908
|
+
};
|
|
909
|
+
};
|
|
910
|
+
readonly userVerification: {
|
|
911
|
+
readonly enum: readonly ["discouraged", "preferred", "required"];
|
|
912
|
+
};
|
|
913
|
+
};
|
|
914
|
+
};
|
|
915
|
+
readonly CredentialDescriptor: {
|
|
916
|
+
readonly $anchor: "credentialDescriptor";
|
|
917
|
+
readonly title: "PublicKeyCredentialDescriptor";
|
|
918
|
+
readonly type: "object";
|
|
919
|
+
readonly additionalProperties: false;
|
|
920
|
+
readonly required: readonly ["type", "id"];
|
|
921
|
+
readonly properties: {
|
|
922
|
+
readonly type: {
|
|
923
|
+
readonly const: "public-key";
|
|
924
|
+
};
|
|
925
|
+
readonly id: {
|
|
926
|
+
readonly type: "string";
|
|
927
|
+
readonly description: "base64url-encoded credential id.";
|
|
928
|
+
};
|
|
929
|
+
readonly transports: {
|
|
930
|
+
readonly type: "array";
|
|
931
|
+
readonly items: {
|
|
932
|
+
readonly enum: readonly ["usb", "nfc", "ble", "internal", "hybrid"];
|
|
933
|
+
};
|
|
934
|
+
};
|
|
935
|
+
};
|
|
936
|
+
};
|
|
937
|
+
readonly CredentialCreationOptions: {
|
|
938
|
+
readonly $anchor: "credentialCreationOptions";
|
|
939
|
+
readonly title: "PublicKeyCredentialCreationOptions";
|
|
940
|
+
readonly description: "Server-issued options for `navigator.credentials.create({ publicKey: ... })`. Mirrors the WebAuthn Level 2 `PublicKeyCredentialCreationOptions` dictionary; binary fields are base64url-encoded strings (rather than ArrayBuffers) so the value is JSON-safe over the wire.";
|
|
941
|
+
readonly type: "object";
|
|
942
|
+
readonly additionalProperties: false;
|
|
943
|
+
readonly required: readonly ["challenge", "rp", "user", "pubKeyCredParams"];
|
|
944
|
+
readonly properties: {
|
|
945
|
+
readonly extensions: {
|
|
946
|
+
readonly type: "object";
|
|
947
|
+
readonly description: "Client extension inputs, per the WebAuthn Level 2 `AuthenticationExtensionsClientInputs` dictionary.\n\nThis component states that it mirrors the W3C dictionary, and that dictionary defines `extensions`. Omitting it while closing the object with `additionalProperties: false` made the two claims contradict each other: a server emitting standard WebAuthn options could not conform, and the widely-used server libraries emit this member by default.\n\nStructure is deliberately unconstrained. The set of extensions is open and registered outside this framework, so enumerating them here would date the schema against a registry it does not own — and a closed list would reproduce the original defect one revision later.";
|
|
948
|
+
};
|
|
949
|
+
readonly challenge: {
|
|
950
|
+
readonly type: "string";
|
|
951
|
+
readonly description: "base64url-encoded one-time nonce.";
|
|
952
|
+
};
|
|
953
|
+
readonly rp: {
|
|
954
|
+
readonly type: "object";
|
|
955
|
+
readonly additionalProperties: false;
|
|
956
|
+
readonly required: readonly ["id", "name"];
|
|
957
|
+
readonly properties: {
|
|
958
|
+
readonly id: {
|
|
959
|
+
readonly type: "string";
|
|
960
|
+
readonly minLength: 1;
|
|
961
|
+
};
|
|
962
|
+
readonly name: {
|
|
963
|
+
readonly type: "string";
|
|
964
|
+
readonly minLength: 1;
|
|
965
|
+
readonly maxLength: 64;
|
|
966
|
+
};
|
|
967
|
+
};
|
|
968
|
+
};
|
|
969
|
+
readonly user: {
|
|
970
|
+
readonly type: "object";
|
|
971
|
+
readonly additionalProperties: false;
|
|
972
|
+
readonly required: readonly ["id", "name", "displayName"];
|
|
973
|
+
readonly properties: {
|
|
974
|
+
readonly id: {
|
|
975
|
+
readonly type: "string";
|
|
976
|
+
readonly description: "base64url-encoded user handle. SHOULD be a stable opaque identifier — never reuse a human-readable username here.";
|
|
977
|
+
};
|
|
978
|
+
readonly name: {
|
|
979
|
+
readonly type: "string";
|
|
980
|
+
readonly minLength: 1;
|
|
981
|
+
readonly maxLength: 64;
|
|
982
|
+
};
|
|
983
|
+
readonly displayName: {
|
|
984
|
+
readonly type: "string";
|
|
985
|
+
readonly maxLength: 64;
|
|
986
|
+
};
|
|
987
|
+
};
|
|
988
|
+
};
|
|
989
|
+
readonly pubKeyCredParams: {
|
|
990
|
+
readonly type: "array";
|
|
991
|
+
readonly minItems: 1;
|
|
992
|
+
readonly items: {
|
|
993
|
+
readonly type: "object";
|
|
994
|
+
readonly additionalProperties: false;
|
|
995
|
+
readonly required: readonly ["type", "alg"];
|
|
996
|
+
readonly properties: {
|
|
997
|
+
readonly type: {
|
|
998
|
+
readonly const: "public-key";
|
|
999
|
+
};
|
|
1000
|
+
readonly alg: {
|
|
1001
|
+
readonly type: "integer";
|
|
1002
|
+
readonly description: "COSE algorithm identifier (e.g. -8 Ed25519, -7 ES256, -257 RS256).";
|
|
1003
|
+
};
|
|
1004
|
+
};
|
|
1005
|
+
};
|
|
1006
|
+
};
|
|
1007
|
+
readonly timeout: {
|
|
1008
|
+
readonly type: "integer";
|
|
1009
|
+
readonly minimum: 1;
|
|
1010
|
+
};
|
|
1011
|
+
readonly excludeCredentials: {
|
|
1012
|
+
readonly type: "array";
|
|
1013
|
+
readonly items: {
|
|
1014
|
+
readonly $ref: "#/$defs/CredentialDescriptor";
|
|
1015
|
+
};
|
|
1016
|
+
};
|
|
1017
|
+
readonly authenticatorSelection: {
|
|
1018
|
+
readonly type: "object";
|
|
1019
|
+
readonly additionalProperties: false;
|
|
1020
|
+
readonly properties: {
|
|
1021
|
+
readonly authenticatorAttachment: {
|
|
1022
|
+
readonly enum: readonly ["platform", "cross-platform"];
|
|
1023
|
+
};
|
|
1024
|
+
readonly requireResidentKey: {
|
|
1025
|
+
readonly type: "boolean";
|
|
1026
|
+
};
|
|
1027
|
+
readonly residentKey: {
|
|
1028
|
+
readonly enum: readonly ["discouraged", "preferred", "required"];
|
|
1029
|
+
};
|
|
1030
|
+
readonly userVerification: {
|
|
1031
|
+
readonly enum: readonly ["discouraged", "preferred", "required"];
|
|
1032
|
+
};
|
|
1033
|
+
};
|
|
1034
|
+
};
|
|
1035
|
+
readonly attestation: {
|
|
1036
|
+
readonly enum: readonly ["none", "indirect", "direct", "enterprise"];
|
|
1037
|
+
};
|
|
1038
|
+
};
|
|
1039
|
+
};
|
|
1040
|
+
};
|
|
1041
|
+
};
|
|
1042
|
+
};
|
|
1043
|
+
//# sourceMappingURL=payload.d.ts.map
|