@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,728 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/auth/passkey/enroll/redeem/finish/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { AuthenticatorAssertionResponseLogin, AuthenticatorAttestationResponseRegistration, Ext } from "../../../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* The invitee returns the attestation — and, where the subject already has a credential of the same purpose, a user-verified assertion from it — and the auth service binds the new credential to the invite's subject and consumes the invite.
|
|
8
|
+
*/
|
|
9
|
+
export interface AuthPasskeyEnrollRedeemFinish {
|
|
10
|
+
/**
|
|
11
|
+
* The enrollmentId from auth/passkey/enroll/redeem/start. Echoed verbatim.
|
|
12
|
+
*/
|
|
13
|
+
enrollmentId: string;
|
|
14
|
+
/**
|
|
15
|
+
* AuthenticatorAttestationResponse as returned by navigator.credentials.create.
|
|
16
|
+
*/
|
|
17
|
+
credential: AuthenticatorAttestationResponseRegistration;
|
|
18
|
+
/**
|
|
19
|
+
* AuthenticatorAssertionResponse over the start's uvOptions. REQUIRED exactly when start returned uvOptions.
|
|
20
|
+
*/
|
|
21
|
+
uvCredential?: AuthenticatorAssertionResponseLogin;
|
|
22
|
+
/**
|
|
23
|
+
* Label for the credential. Overrides the inviter's suggestion.
|
|
24
|
+
*/
|
|
25
|
+
deviceLabel?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
28
|
+
*/
|
|
29
|
+
ext?: Ext;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The registered credential.
|
|
33
|
+
*/
|
|
34
|
+
export interface AuthPasskeyEnrollRedeemFinishResponsePayload {
|
|
35
|
+
/**
|
|
36
|
+
* base64url-encoded WebAuthn credential id.
|
|
37
|
+
*/
|
|
38
|
+
credentialId: string;
|
|
39
|
+
/**
|
|
40
|
+
* The VID the credential is now bound to.
|
|
41
|
+
*/
|
|
42
|
+
subject: string;
|
|
43
|
+
/**
|
|
44
|
+
* What the credential authenticates.
|
|
45
|
+
*/
|
|
46
|
+
purpose: "session" | "stepUp";
|
|
47
|
+
/**
|
|
48
|
+
* The label persisted with the credential.
|
|
49
|
+
*/
|
|
50
|
+
deviceLabel?: string;
|
|
51
|
+
registeredAt: string;
|
|
52
|
+
/**
|
|
53
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
54
|
+
*/
|
|
55
|
+
ext?: Ext;
|
|
56
|
+
}
|
|
57
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
58
|
+
export type { AuthenticatorAssertionResponseLogin, AuthenticatorAttestationResponseRegistration, Ext };
|
|
59
|
+
/** Trust Task type URI. */
|
|
60
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/auth/passkey/enroll/redeem/finish/0.1";
|
|
61
|
+
/** Stable alias for this specification's request payload shape. */
|
|
62
|
+
export type Payload = AuthPasskeyEnrollRedeemFinish;
|
|
63
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
64
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/auth/passkey/enroll/redeem/finish/0.1#response";
|
|
65
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
66
|
+
export type Response = AuthPasskeyEnrollRedeemFinishResponsePayload;
|
|
67
|
+
/**
|
|
68
|
+
* This specification's payload schema, as a value.
|
|
69
|
+
*
|
|
70
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
71
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
72
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
73
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
74
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
75
|
+
*/
|
|
76
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
77
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
78
|
+
readonly $id: "https://trusttasks.org/spec/auth/passkey/enroll/redeem/finish/0.1";
|
|
79
|
+
readonly title: "Auth — Passkey Enroll (redeem, finish)";
|
|
80
|
+
readonly description: "The invitee returns the attestation — and, where the subject already has a credential of the same purpose, a user-verified assertion from it — and the auth service binds the new credential to the invite's subject and consumes the invite.";
|
|
81
|
+
readonly type: "object";
|
|
82
|
+
readonly additionalProperties: false;
|
|
83
|
+
readonly required: readonly ["enrollmentId", "credential"];
|
|
84
|
+
readonly properties: {
|
|
85
|
+
readonly enrollmentId: {
|
|
86
|
+
readonly type: "string";
|
|
87
|
+
readonly minLength: 1;
|
|
88
|
+
readonly description: "The enrollmentId from auth/passkey/enroll/redeem/start. Echoed verbatim.";
|
|
89
|
+
};
|
|
90
|
+
readonly credential: {
|
|
91
|
+
readonly $ref: "#/$defs/AttestationResponse";
|
|
92
|
+
readonly description: "AuthenticatorAttestationResponse as returned by navigator.credentials.create.";
|
|
93
|
+
};
|
|
94
|
+
readonly uvCredential: {
|
|
95
|
+
readonly $ref: "#/$defs/AssertionResponse";
|
|
96
|
+
readonly description: "AuthenticatorAssertionResponse over the start's uvOptions. REQUIRED exactly when start returned uvOptions.";
|
|
97
|
+
};
|
|
98
|
+
readonly deviceLabel: {
|
|
99
|
+
readonly type: "string";
|
|
100
|
+
readonly maxLength: 256;
|
|
101
|
+
readonly description: "Label for the credential. Overrides the inviter's suggestion.";
|
|
102
|
+
};
|
|
103
|
+
readonly ext: {
|
|
104
|
+
readonly $ref: "#/$defs/Ext";
|
|
105
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
readonly $defs: {
|
|
109
|
+
readonly Response: {
|
|
110
|
+
readonly $anchor: "response";
|
|
111
|
+
readonly title: "Auth Passkey Enroll Redeem Finish — response payload";
|
|
112
|
+
readonly description: "The registered credential.";
|
|
113
|
+
readonly type: "object";
|
|
114
|
+
readonly additionalProperties: false;
|
|
115
|
+
readonly required: readonly ["credentialId", "subject", "purpose", "registeredAt"];
|
|
116
|
+
readonly properties: {
|
|
117
|
+
readonly credentialId: {
|
|
118
|
+
readonly type: "string";
|
|
119
|
+
readonly minLength: 1;
|
|
120
|
+
readonly description: "base64url-encoded WebAuthn credential id.";
|
|
121
|
+
};
|
|
122
|
+
readonly subject: {
|
|
123
|
+
readonly type: "string";
|
|
124
|
+
readonly minLength: 1;
|
|
125
|
+
readonly description: "The VID the credential is now bound to.";
|
|
126
|
+
};
|
|
127
|
+
readonly purpose: {
|
|
128
|
+
readonly type: "string";
|
|
129
|
+
readonly enum: readonly ["session", "stepUp"];
|
|
130
|
+
readonly description: "What the credential authenticates.";
|
|
131
|
+
};
|
|
132
|
+
readonly deviceLabel: {
|
|
133
|
+
readonly type: "string";
|
|
134
|
+
readonly maxLength: 256;
|
|
135
|
+
readonly description: "The label persisted with the credential.";
|
|
136
|
+
};
|
|
137
|
+
readonly registeredAt: {
|
|
138
|
+
readonly type: "string";
|
|
139
|
+
readonly format: "date-time";
|
|
140
|
+
};
|
|
141
|
+
readonly ext: {
|
|
142
|
+
readonly $ref: "#/$defs/Ext";
|
|
143
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
readonly Ext: {
|
|
148
|
+
readonly title: "Ext";
|
|
149
|
+
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.";
|
|
150
|
+
readonly type: "object";
|
|
151
|
+
readonly minProperties: 1;
|
|
152
|
+
readonly additionalProperties: true;
|
|
153
|
+
readonly propertyNames: {
|
|
154
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
readonly AssertionResponse: {
|
|
158
|
+
readonly $anchor: "assertionResponse";
|
|
159
|
+
readonly title: "AuthenticatorAssertionResponse (login)";
|
|
160
|
+
readonly description: "The credential the client returns from `navigator.credentials.get`. Binary fields are base64url-encoded.";
|
|
161
|
+
readonly type: "object";
|
|
162
|
+
readonly additionalProperties: false;
|
|
163
|
+
readonly required: readonly ["id", "rawId", "type", "response"];
|
|
164
|
+
readonly properties: {
|
|
165
|
+
readonly id: {
|
|
166
|
+
readonly type: "string";
|
|
167
|
+
};
|
|
168
|
+
readonly rawId: {
|
|
169
|
+
readonly type: "string";
|
|
170
|
+
};
|
|
171
|
+
readonly type: {
|
|
172
|
+
readonly const: "public-key";
|
|
173
|
+
};
|
|
174
|
+
readonly response: {
|
|
175
|
+
readonly type: "object";
|
|
176
|
+
readonly additionalProperties: false;
|
|
177
|
+
readonly required: readonly ["clientDataJSON", "authenticatorData", "signature"];
|
|
178
|
+
readonly properties: {
|
|
179
|
+
readonly clientDataJSON: {
|
|
180
|
+
readonly type: "string";
|
|
181
|
+
};
|
|
182
|
+
readonly authenticatorData: {
|
|
183
|
+
readonly type: "string";
|
|
184
|
+
};
|
|
185
|
+
readonly signature: {
|
|
186
|
+
readonly type: "string";
|
|
187
|
+
};
|
|
188
|
+
readonly userHandle: {
|
|
189
|
+
readonly type: readonly ["string", "null"];
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
readonly authenticatorAttachment: {
|
|
194
|
+
readonly enum: readonly ["platform", "cross-platform"];
|
|
195
|
+
};
|
|
196
|
+
readonly clientExtensionResults: {
|
|
197
|
+
readonly type: "object";
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
readonly AttestationResponse: {
|
|
202
|
+
readonly $anchor: "attestationResponse";
|
|
203
|
+
readonly title: "AuthenticatorAttestationResponse (registration)";
|
|
204
|
+
readonly description: "The credential the client returns from `navigator.credentials.create`. Binary fields are base64url-encoded.";
|
|
205
|
+
readonly type: "object";
|
|
206
|
+
readonly additionalProperties: false;
|
|
207
|
+
readonly required: readonly ["id", "rawId", "type", "response"];
|
|
208
|
+
readonly properties: {
|
|
209
|
+
readonly id: {
|
|
210
|
+
readonly type: "string";
|
|
211
|
+
};
|
|
212
|
+
readonly rawId: {
|
|
213
|
+
readonly type: "string";
|
|
214
|
+
};
|
|
215
|
+
readonly type: {
|
|
216
|
+
readonly const: "public-key";
|
|
217
|
+
};
|
|
218
|
+
readonly response: {
|
|
219
|
+
readonly type: "object";
|
|
220
|
+
readonly additionalProperties: false;
|
|
221
|
+
readonly required: readonly ["clientDataJSON", "attestationObject"];
|
|
222
|
+
readonly properties: {
|
|
223
|
+
readonly clientDataJSON: {
|
|
224
|
+
readonly type: "string";
|
|
225
|
+
};
|
|
226
|
+
readonly attestationObject: {
|
|
227
|
+
readonly type: "string";
|
|
228
|
+
};
|
|
229
|
+
readonly transports: {
|
|
230
|
+
readonly type: "array";
|
|
231
|
+
readonly items: {
|
|
232
|
+
readonly type: "string";
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
readonly authenticatorAttachment: {
|
|
238
|
+
readonly enum: readonly ["platform", "cross-platform"];
|
|
239
|
+
};
|
|
240
|
+
readonly clientExtensionResults: {
|
|
241
|
+
readonly type: "object";
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
248
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
249
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
250
|
+
readonly $ref: "#/$defs/Response";
|
|
251
|
+
readonly $defs: {
|
|
252
|
+
readonly Response: {
|
|
253
|
+
readonly $anchor: "response";
|
|
254
|
+
readonly title: "Auth Passkey Enroll Redeem Finish — response payload";
|
|
255
|
+
readonly description: "The registered credential.";
|
|
256
|
+
readonly type: "object";
|
|
257
|
+
readonly additionalProperties: false;
|
|
258
|
+
readonly required: readonly ["credentialId", "subject", "purpose", "registeredAt"];
|
|
259
|
+
readonly properties: {
|
|
260
|
+
readonly credentialId: {
|
|
261
|
+
readonly type: "string";
|
|
262
|
+
readonly minLength: 1;
|
|
263
|
+
readonly description: "base64url-encoded WebAuthn credential id.";
|
|
264
|
+
};
|
|
265
|
+
readonly subject: {
|
|
266
|
+
readonly type: "string";
|
|
267
|
+
readonly minLength: 1;
|
|
268
|
+
readonly description: "The VID the credential is now bound to.";
|
|
269
|
+
};
|
|
270
|
+
readonly purpose: {
|
|
271
|
+
readonly type: "string";
|
|
272
|
+
readonly enum: readonly ["session", "stepUp"];
|
|
273
|
+
readonly description: "What the credential authenticates.";
|
|
274
|
+
};
|
|
275
|
+
readonly deviceLabel: {
|
|
276
|
+
readonly type: "string";
|
|
277
|
+
readonly maxLength: 256;
|
|
278
|
+
readonly description: "The label persisted with the credential.";
|
|
279
|
+
};
|
|
280
|
+
readonly registeredAt: {
|
|
281
|
+
readonly type: "string";
|
|
282
|
+
readonly format: "date-time";
|
|
283
|
+
};
|
|
284
|
+
readonly ext: {
|
|
285
|
+
readonly $ref: "#/$defs/Ext";
|
|
286
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
readonly Ext: {
|
|
291
|
+
readonly title: "Ext";
|
|
292
|
+
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.";
|
|
293
|
+
readonly type: "object";
|
|
294
|
+
readonly minProperties: 1;
|
|
295
|
+
readonly additionalProperties: true;
|
|
296
|
+
readonly propertyNames: {
|
|
297
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
readonly AssertionResponse: {
|
|
301
|
+
readonly $anchor: "assertionResponse";
|
|
302
|
+
readonly title: "AuthenticatorAssertionResponse (login)";
|
|
303
|
+
readonly description: "The credential the client returns from `navigator.credentials.get`. Binary fields are base64url-encoded.";
|
|
304
|
+
readonly type: "object";
|
|
305
|
+
readonly additionalProperties: false;
|
|
306
|
+
readonly required: readonly ["id", "rawId", "type", "response"];
|
|
307
|
+
readonly properties: {
|
|
308
|
+
readonly id: {
|
|
309
|
+
readonly type: "string";
|
|
310
|
+
};
|
|
311
|
+
readonly rawId: {
|
|
312
|
+
readonly type: "string";
|
|
313
|
+
};
|
|
314
|
+
readonly type: {
|
|
315
|
+
readonly const: "public-key";
|
|
316
|
+
};
|
|
317
|
+
readonly response: {
|
|
318
|
+
readonly type: "object";
|
|
319
|
+
readonly additionalProperties: false;
|
|
320
|
+
readonly required: readonly ["clientDataJSON", "authenticatorData", "signature"];
|
|
321
|
+
readonly properties: {
|
|
322
|
+
readonly clientDataJSON: {
|
|
323
|
+
readonly type: "string";
|
|
324
|
+
};
|
|
325
|
+
readonly authenticatorData: {
|
|
326
|
+
readonly type: "string";
|
|
327
|
+
};
|
|
328
|
+
readonly signature: {
|
|
329
|
+
readonly type: "string";
|
|
330
|
+
};
|
|
331
|
+
readonly userHandle: {
|
|
332
|
+
readonly type: readonly ["string", "null"];
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
readonly authenticatorAttachment: {
|
|
337
|
+
readonly enum: readonly ["platform", "cross-platform"];
|
|
338
|
+
};
|
|
339
|
+
readonly clientExtensionResults: {
|
|
340
|
+
readonly type: "object";
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
readonly AttestationResponse: {
|
|
345
|
+
readonly $anchor: "attestationResponse";
|
|
346
|
+
readonly title: "AuthenticatorAttestationResponse (registration)";
|
|
347
|
+
readonly description: "The credential the client returns from `navigator.credentials.create`. Binary fields are base64url-encoded.";
|
|
348
|
+
readonly type: "object";
|
|
349
|
+
readonly additionalProperties: false;
|
|
350
|
+
readonly required: readonly ["id", "rawId", "type", "response"];
|
|
351
|
+
readonly properties: {
|
|
352
|
+
readonly id: {
|
|
353
|
+
readonly type: "string";
|
|
354
|
+
};
|
|
355
|
+
readonly rawId: {
|
|
356
|
+
readonly type: "string";
|
|
357
|
+
};
|
|
358
|
+
readonly type: {
|
|
359
|
+
readonly const: "public-key";
|
|
360
|
+
};
|
|
361
|
+
readonly response: {
|
|
362
|
+
readonly type: "object";
|
|
363
|
+
readonly additionalProperties: false;
|
|
364
|
+
readonly required: readonly ["clientDataJSON", "attestationObject"];
|
|
365
|
+
readonly properties: {
|
|
366
|
+
readonly clientDataJSON: {
|
|
367
|
+
readonly type: "string";
|
|
368
|
+
};
|
|
369
|
+
readonly attestationObject: {
|
|
370
|
+
readonly type: "string";
|
|
371
|
+
};
|
|
372
|
+
readonly transports: {
|
|
373
|
+
readonly type: "array";
|
|
374
|
+
readonly items: {
|
|
375
|
+
readonly type: "string";
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
readonly authenticatorAttachment: {
|
|
381
|
+
readonly enum: readonly ["platform", "cross-platform"];
|
|
382
|
+
};
|
|
383
|
+
readonly clientExtensionResults: {
|
|
384
|
+
readonly type: "object";
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
/**
|
|
391
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
392
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
393
|
+
* per-specification and cannot be derived from the document alone, and
|
|
394
|
+
* item 2 needs the schema this carries.
|
|
395
|
+
*/
|
|
396
|
+
export declare const SPEC: {
|
|
397
|
+
readonly typeUri: "https://trusttasks.org/spec/auth/passkey/enroll/redeem/finish/0.1";
|
|
398
|
+
readonly isBearer: false;
|
|
399
|
+
readonly isProofRequired: false;
|
|
400
|
+
readonly isRecipientRequired: true;
|
|
401
|
+
readonly isIssuedAtRequired: true;
|
|
402
|
+
readonly payloadSchema: {
|
|
403
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
404
|
+
readonly $id: "https://trusttasks.org/spec/auth/passkey/enroll/redeem/finish/0.1";
|
|
405
|
+
readonly title: "Auth — Passkey Enroll (redeem, finish)";
|
|
406
|
+
readonly description: "The invitee returns the attestation — and, where the subject already has a credential of the same purpose, a user-verified assertion from it — and the auth service binds the new credential to the invite's subject and consumes the invite.";
|
|
407
|
+
readonly type: "object";
|
|
408
|
+
readonly additionalProperties: false;
|
|
409
|
+
readonly required: readonly ["enrollmentId", "credential"];
|
|
410
|
+
readonly properties: {
|
|
411
|
+
readonly enrollmentId: {
|
|
412
|
+
readonly type: "string";
|
|
413
|
+
readonly minLength: 1;
|
|
414
|
+
readonly description: "The enrollmentId from auth/passkey/enroll/redeem/start. Echoed verbatim.";
|
|
415
|
+
};
|
|
416
|
+
readonly credential: {
|
|
417
|
+
readonly $ref: "#/$defs/AttestationResponse";
|
|
418
|
+
readonly description: "AuthenticatorAttestationResponse as returned by navigator.credentials.create.";
|
|
419
|
+
};
|
|
420
|
+
readonly uvCredential: {
|
|
421
|
+
readonly $ref: "#/$defs/AssertionResponse";
|
|
422
|
+
readonly description: "AuthenticatorAssertionResponse over the start's uvOptions. REQUIRED exactly when start returned uvOptions.";
|
|
423
|
+
};
|
|
424
|
+
readonly deviceLabel: {
|
|
425
|
+
readonly type: "string";
|
|
426
|
+
readonly maxLength: 256;
|
|
427
|
+
readonly description: "Label for the credential. Overrides the inviter's suggestion.";
|
|
428
|
+
};
|
|
429
|
+
readonly ext: {
|
|
430
|
+
readonly $ref: "#/$defs/Ext";
|
|
431
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
432
|
+
};
|
|
433
|
+
};
|
|
434
|
+
readonly $defs: {
|
|
435
|
+
readonly Response: {
|
|
436
|
+
readonly $anchor: "response";
|
|
437
|
+
readonly title: "Auth Passkey Enroll Redeem Finish — response payload";
|
|
438
|
+
readonly description: "The registered credential.";
|
|
439
|
+
readonly type: "object";
|
|
440
|
+
readonly additionalProperties: false;
|
|
441
|
+
readonly required: readonly ["credentialId", "subject", "purpose", "registeredAt"];
|
|
442
|
+
readonly properties: {
|
|
443
|
+
readonly credentialId: {
|
|
444
|
+
readonly type: "string";
|
|
445
|
+
readonly minLength: 1;
|
|
446
|
+
readonly description: "base64url-encoded WebAuthn credential id.";
|
|
447
|
+
};
|
|
448
|
+
readonly subject: {
|
|
449
|
+
readonly type: "string";
|
|
450
|
+
readonly minLength: 1;
|
|
451
|
+
readonly description: "The VID the credential is now bound to.";
|
|
452
|
+
};
|
|
453
|
+
readonly purpose: {
|
|
454
|
+
readonly type: "string";
|
|
455
|
+
readonly enum: readonly ["session", "stepUp"];
|
|
456
|
+
readonly description: "What the credential authenticates.";
|
|
457
|
+
};
|
|
458
|
+
readonly deviceLabel: {
|
|
459
|
+
readonly type: "string";
|
|
460
|
+
readonly maxLength: 256;
|
|
461
|
+
readonly description: "The label persisted with the credential.";
|
|
462
|
+
};
|
|
463
|
+
readonly registeredAt: {
|
|
464
|
+
readonly type: "string";
|
|
465
|
+
readonly format: "date-time";
|
|
466
|
+
};
|
|
467
|
+
readonly ext: {
|
|
468
|
+
readonly $ref: "#/$defs/Ext";
|
|
469
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
};
|
|
473
|
+
readonly Ext: {
|
|
474
|
+
readonly title: "Ext";
|
|
475
|
+
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.";
|
|
476
|
+
readonly type: "object";
|
|
477
|
+
readonly minProperties: 1;
|
|
478
|
+
readonly additionalProperties: true;
|
|
479
|
+
readonly propertyNames: {
|
|
480
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
481
|
+
};
|
|
482
|
+
};
|
|
483
|
+
readonly AssertionResponse: {
|
|
484
|
+
readonly $anchor: "assertionResponse";
|
|
485
|
+
readonly title: "AuthenticatorAssertionResponse (login)";
|
|
486
|
+
readonly description: "The credential the client returns from `navigator.credentials.get`. Binary fields are base64url-encoded.";
|
|
487
|
+
readonly type: "object";
|
|
488
|
+
readonly additionalProperties: false;
|
|
489
|
+
readonly required: readonly ["id", "rawId", "type", "response"];
|
|
490
|
+
readonly properties: {
|
|
491
|
+
readonly id: {
|
|
492
|
+
readonly type: "string";
|
|
493
|
+
};
|
|
494
|
+
readonly rawId: {
|
|
495
|
+
readonly type: "string";
|
|
496
|
+
};
|
|
497
|
+
readonly type: {
|
|
498
|
+
readonly const: "public-key";
|
|
499
|
+
};
|
|
500
|
+
readonly response: {
|
|
501
|
+
readonly type: "object";
|
|
502
|
+
readonly additionalProperties: false;
|
|
503
|
+
readonly required: readonly ["clientDataJSON", "authenticatorData", "signature"];
|
|
504
|
+
readonly properties: {
|
|
505
|
+
readonly clientDataJSON: {
|
|
506
|
+
readonly type: "string";
|
|
507
|
+
};
|
|
508
|
+
readonly authenticatorData: {
|
|
509
|
+
readonly type: "string";
|
|
510
|
+
};
|
|
511
|
+
readonly signature: {
|
|
512
|
+
readonly type: "string";
|
|
513
|
+
};
|
|
514
|
+
readonly userHandle: {
|
|
515
|
+
readonly type: readonly ["string", "null"];
|
|
516
|
+
};
|
|
517
|
+
};
|
|
518
|
+
};
|
|
519
|
+
readonly authenticatorAttachment: {
|
|
520
|
+
readonly enum: readonly ["platform", "cross-platform"];
|
|
521
|
+
};
|
|
522
|
+
readonly clientExtensionResults: {
|
|
523
|
+
readonly type: "object";
|
|
524
|
+
};
|
|
525
|
+
};
|
|
526
|
+
};
|
|
527
|
+
readonly AttestationResponse: {
|
|
528
|
+
readonly $anchor: "attestationResponse";
|
|
529
|
+
readonly title: "AuthenticatorAttestationResponse (registration)";
|
|
530
|
+
readonly description: "The credential the client returns from `navigator.credentials.create`. Binary fields are base64url-encoded.";
|
|
531
|
+
readonly type: "object";
|
|
532
|
+
readonly additionalProperties: false;
|
|
533
|
+
readonly required: readonly ["id", "rawId", "type", "response"];
|
|
534
|
+
readonly properties: {
|
|
535
|
+
readonly id: {
|
|
536
|
+
readonly type: "string";
|
|
537
|
+
};
|
|
538
|
+
readonly rawId: {
|
|
539
|
+
readonly type: "string";
|
|
540
|
+
};
|
|
541
|
+
readonly type: {
|
|
542
|
+
readonly const: "public-key";
|
|
543
|
+
};
|
|
544
|
+
readonly response: {
|
|
545
|
+
readonly type: "object";
|
|
546
|
+
readonly additionalProperties: false;
|
|
547
|
+
readonly required: readonly ["clientDataJSON", "attestationObject"];
|
|
548
|
+
readonly properties: {
|
|
549
|
+
readonly clientDataJSON: {
|
|
550
|
+
readonly type: "string";
|
|
551
|
+
};
|
|
552
|
+
readonly attestationObject: {
|
|
553
|
+
readonly type: "string";
|
|
554
|
+
};
|
|
555
|
+
readonly transports: {
|
|
556
|
+
readonly type: "array";
|
|
557
|
+
readonly items: {
|
|
558
|
+
readonly type: "string";
|
|
559
|
+
};
|
|
560
|
+
};
|
|
561
|
+
};
|
|
562
|
+
};
|
|
563
|
+
readonly authenticatorAttachment: {
|
|
564
|
+
readonly enum: readonly ["platform", "cross-platform"];
|
|
565
|
+
};
|
|
566
|
+
readonly clientExtensionResults: {
|
|
567
|
+
readonly type: "object";
|
|
568
|
+
};
|
|
569
|
+
};
|
|
570
|
+
};
|
|
571
|
+
};
|
|
572
|
+
};
|
|
573
|
+
};
|
|
574
|
+
/**
|
|
575
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
576
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
577
|
+
* parties (§7.3 item 5).
|
|
578
|
+
*/
|
|
579
|
+
export declare const RESPONSE_SPEC: {
|
|
580
|
+
readonly typeUri: "https://trusttasks.org/spec/auth/passkey/enroll/redeem/finish/0.1#response";
|
|
581
|
+
readonly isBearer: false;
|
|
582
|
+
readonly isProofRequired: false;
|
|
583
|
+
readonly isRecipientRequired: true;
|
|
584
|
+
readonly isIssuedAtRequired: true;
|
|
585
|
+
readonly payloadSchema: {
|
|
586
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
587
|
+
readonly $ref: "#/$defs/Response";
|
|
588
|
+
readonly $defs: {
|
|
589
|
+
readonly Response: {
|
|
590
|
+
readonly $anchor: "response";
|
|
591
|
+
readonly title: "Auth Passkey Enroll Redeem Finish — response payload";
|
|
592
|
+
readonly description: "The registered credential.";
|
|
593
|
+
readonly type: "object";
|
|
594
|
+
readonly additionalProperties: false;
|
|
595
|
+
readonly required: readonly ["credentialId", "subject", "purpose", "registeredAt"];
|
|
596
|
+
readonly properties: {
|
|
597
|
+
readonly credentialId: {
|
|
598
|
+
readonly type: "string";
|
|
599
|
+
readonly minLength: 1;
|
|
600
|
+
readonly description: "base64url-encoded WebAuthn credential id.";
|
|
601
|
+
};
|
|
602
|
+
readonly subject: {
|
|
603
|
+
readonly type: "string";
|
|
604
|
+
readonly minLength: 1;
|
|
605
|
+
readonly description: "The VID the credential is now bound to.";
|
|
606
|
+
};
|
|
607
|
+
readonly purpose: {
|
|
608
|
+
readonly type: "string";
|
|
609
|
+
readonly enum: readonly ["session", "stepUp"];
|
|
610
|
+
readonly description: "What the credential authenticates.";
|
|
611
|
+
};
|
|
612
|
+
readonly deviceLabel: {
|
|
613
|
+
readonly type: "string";
|
|
614
|
+
readonly maxLength: 256;
|
|
615
|
+
readonly description: "The label persisted with the credential.";
|
|
616
|
+
};
|
|
617
|
+
readonly registeredAt: {
|
|
618
|
+
readonly type: "string";
|
|
619
|
+
readonly format: "date-time";
|
|
620
|
+
};
|
|
621
|
+
readonly ext: {
|
|
622
|
+
readonly $ref: "#/$defs/Ext";
|
|
623
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
624
|
+
};
|
|
625
|
+
};
|
|
626
|
+
};
|
|
627
|
+
readonly Ext: {
|
|
628
|
+
readonly title: "Ext";
|
|
629
|
+
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.";
|
|
630
|
+
readonly type: "object";
|
|
631
|
+
readonly minProperties: 1;
|
|
632
|
+
readonly additionalProperties: true;
|
|
633
|
+
readonly propertyNames: {
|
|
634
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
635
|
+
};
|
|
636
|
+
};
|
|
637
|
+
readonly AssertionResponse: {
|
|
638
|
+
readonly $anchor: "assertionResponse";
|
|
639
|
+
readonly title: "AuthenticatorAssertionResponse (login)";
|
|
640
|
+
readonly description: "The credential the client returns from `navigator.credentials.get`. Binary fields are base64url-encoded.";
|
|
641
|
+
readonly type: "object";
|
|
642
|
+
readonly additionalProperties: false;
|
|
643
|
+
readonly required: readonly ["id", "rawId", "type", "response"];
|
|
644
|
+
readonly properties: {
|
|
645
|
+
readonly id: {
|
|
646
|
+
readonly type: "string";
|
|
647
|
+
};
|
|
648
|
+
readonly rawId: {
|
|
649
|
+
readonly type: "string";
|
|
650
|
+
};
|
|
651
|
+
readonly type: {
|
|
652
|
+
readonly const: "public-key";
|
|
653
|
+
};
|
|
654
|
+
readonly response: {
|
|
655
|
+
readonly type: "object";
|
|
656
|
+
readonly additionalProperties: false;
|
|
657
|
+
readonly required: readonly ["clientDataJSON", "authenticatorData", "signature"];
|
|
658
|
+
readonly properties: {
|
|
659
|
+
readonly clientDataJSON: {
|
|
660
|
+
readonly type: "string";
|
|
661
|
+
};
|
|
662
|
+
readonly authenticatorData: {
|
|
663
|
+
readonly type: "string";
|
|
664
|
+
};
|
|
665
|
+
readonly signature: {
|
|
666
|
+
readonly type: "string";
|
|
667
|
+
};
|
|
668
|
+
readonly userHandle: {
|
|
669
|
+
readonly type: readonly ["string", "null"];
|
|
670
|
+
};
|
|
671
|
+
};
|
|
672
|
+
};
|
|
673
|
+
readonly authenticatorAttachment: {
|
|
674
|
+
readonly enum: readonly ["platform", "cross-platform"];
|
|
675
|
+
};
|
|
676
|
+
readonly clientExtensionResults: {
|
|
677
|
+
readonly type: "object";
|
|
678
|
+
};
|
|
679
|
+
};
|
|
680
|
+
};
|
|
681
|
+
readonly AttestationResponse: {
|
|
682
|
+
readonly $anchor: "attestationResponse";
|
|
683
|
+
readonly title: "AuthenticatorAttestationResponse (registration)";
|
|
684
|
+
readonly description: "The credential the client returns from `navigator.credentials.create`. Binary fields are base64url-encoded.";
|
|
685
|
+
readonly type: "object";
|
|
686
|
+
readonly additionalProperties: false;
|
|
687
|
+
readonly required: readonly ["id", "rawId", "type", "response"];
|
|
688
|
+
readonly properties: {
|
|
689
|
+
readonly id: {
|
|
690
|
+
readonly type: "string";
|
|
691
|
+
};
|
|
692
|
+
readonly rawId: {
|
|
693
|
+
readonly type: "string";
|
|
694
|
+
};
|
|
695
|
+
readonly type: {
|
|
696
|
+
readonly const: "public-key";
|
|
697
|
+
};
|
|
698
|
+
readonly response: {
|
|
699
|
+
readonly type: "object";
|
|
700
|
+
readonly additionalProperties: false;
|
|
701
|
+
readonly required: readonly ["clientDataJSON", "attestationObject"];
|
|
702
|
+
readonly properties: {
|
|
703
|
+
readonly clientDataJSON: {
|
|
704
|
+
readonly type: "string";
|
|
705
|
+
};
|
|
706
|
+
readonly attestationObject: {
|
|
707
|
+
readonly type: "string";
|
|
708
|
+
};
|
|
709
|
+
readonly transports: {
|
|
710
|
+
readonly type: "array";
|
|
711
|
+
readonly items: {
|
|
712
|
+
readonly type: "string";
|
|
713
|
+
};
|
|
714
|
+
};
|
|
715
|
+
};
|
|
716
|
+
};
|
|
717
|
+
readonly authenticatorAttachment: {
|
|
718
|
+
readonly enum: readonly ["platform", "cross-platform"];
|
|
719
|
+
};
|
|
720
|
+
readonly clientExtensionResults: {
|
|
721
|
+
readonly type: "object";
|
|
722
|
+
};
|
|
723
|
+
};
|
|
724
|
+
};
|
|
725
|
+
};
|
|
726
|
+
};
|
|
727
|
+
};
|
|
728
|
+
//# sourceMappingURL=payload.d.ts.map
|