akey-electron-webauthn-types 1.3.11 → 1.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +17 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -24,6 +24,21 @@ export interface GetCredentialSuccessData {
|
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
export interface NativeSystemErrorDetails {
|
|
28
|
+
domain: string;
|
|
29
|
+
code: number;
|
|
30
|
+
localizedDescription: string;
|
|
31
|
+
localizedFailureReason?: string;
|
|
32
|
+
localizedRecoverySuggestion?: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface WebauthnNativeError extends Error {
|
|
36
|
+
nativeError?: NativeSystemErrorDetails;
|
|
37
|
+
nativeDomain?: string;
|
|
38
|
+
nativeCode?: number;
|
|
39
|
+
nativeNSError?: unknown;
|
|
40
|
+
}
|
|
41
|
+
|
|
27
42
|
export interface GetCredentialSuccessResult {
|
|
28
43
|
success: true;
|
|
29
44
|
data: GetCredentialSuccessData;
|
|
@@ -32,7 +47,7 @@ export interface GetCredentialSuccessResult {
|
|
|
32
47
|
export interface GetCredentialErrorResult {
|
|
33
48
|
success: false;
|
|
34
49
|
error: GetCredentialErrorCodes;
|
|
35
|
-
errorObject?:
|
|
50
|
+
errorObject?: WebauthnNativeError;
|
|
36
51
|
}
|
|
37
52
|
|
|
38
53
|
export type GetCredentialResult =
|
|
@@ -79,7 +94,7 @@ export interface CreateCredentialSuccessResult {
|
|
|
79
94
|
export interface CreateCredentialErrorResult {
|
|
80
95
|
success: false;
|
|
81
96
|
error: CreateCredentialErrorCodes;
|
|
82
|
-
errorObject?:
|
|
97
|
+
errorObject?: WebauthnNativeError;
|
|
83
98
|
}
|
|
84
99
|
|
|
85
100
|
export type CreateCredentialResult =
|