@simplewebauthn/browser 12.0.0 → 13.0.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.
Files changed (52) hide show
  1. package/README.md +2 -2
  2. package/dist/bundle/index.es5.umd.min.js +2 -2
  3. package/dist/bundle/index.umd.min.js +2 -2
  4. package/esm/helpers/browserSupportsWebAuthn.d.ts +4 -0
  5. package/esm/helpers/browserSupportsWebAuthn.d.ts.map +1 -1
  6. package/esm/helpers/browserSupportsWebAuthn.js +4 -1
  7. package/esm/helpers/browserSupportsWebAuthnAutofill.d.ts.map +1 -1
  8. package/esm/helpers/toAuthenticatorAttachment.d.ts +1 -1
  9. package/esm/helpers/toAuthenticatorAttachment.d.ts.map +1 -1
  10. package/esm/helpers/toPublicKeyCredentialDescriptor.d.ts +1 -1
  11. package/esm/helpers/toPublicKeyCredentialDescriptor.d.ts.map +1 -1
  12. package/esm/helpers/webAuthnAbortService.d.ts +8 -0
  13. package/esm/helpers/webAuthnAbortService.d.ts.map +1 -1
  14. package/esm/helpers/webAuthnAbortService.js +0 -8
  15. package/esm/index.d.ts +10 -15
  16. package/esm/index.d.ts.map +1 -1
  17. package/esm/index.js +10 -14
  18. package/esm/methods/startAuthentication.d.ts +7 -7
  19. package/esm/methods/startAuthentication.d.ts.map +1 -1
  20. package/esm/methods/startRegistration.d.ts +6 -6
  21. package/esm/methods/startRegistration.d.ts.map +1 -1
  22. package/esm/types/dom.d.ts +329 -0
  23. package/esm/types/dom.d.ts.map +1 -0
  24. package/esm/types/dom.js +1 -0
  25. package/esm/types/index.d.ts +205 -0
  26. package/esm/types/index.d.ts.map +1 -0
  27. package/esm/types/index.js +1 -0
  28. package/package.json +2 -4
  29. package/script/helpers/browserSupportsWebAuthn.d.ts +4 -0
  30. package/script/helpers/browserSupportsWebAuthn.d.ts.map +1 -1
  31. package/script/helpers/browserSupportsWebAuthn.js +4 -1
  32. package/script/helpers/browserSupportsWebAuthnAutofill.d.ts.map +1 -1
  33. package/script/helpers/toAuthenticatorAttachment.d.ts +1 -1
  34. package/script/helpers/toAuthenticatorAttachment.d.ts.map +1 -1
  35. package/script/helpers/toPublicKeyCredentialDescriptor.d.ts +1 -1
  36. package/script/helpers/toPublicKeyCredentialDescriptor.d.ts.map +1 -1
  37. package/script/helpers/webAuthnAbortService.d.ts +8 -0
  38. package/script/helpers/webAuthnAbortService.d.ts.map +1 -1
  39. package/script/helpers/webAuthnAbortService.js +0 -8
  40. package/script/index.d.ts +10 -15
  41. package/script/index.d.ts.map +1 -1
  42. package/script/index.js +24 -23
  43. package/script/methods/startAuthentication.d.ts +7 -7
  44. package/script/methods/startAuthentication.d.ts.map +1 -1
  45. package/script/methods/startRegistration.d.ts +6 -6
  46. package/script/methods/startRegistration.d.ts.map +1 -1
  47. package/script/types/dom.d.ts +329 -0
  48. package/script/types/dom.d.ts.map +1 -0
  49. package/script/types/dom.js +2 -0
  50. package/script/types/index.d.ts +205 -0
  51. package/script/types/index.d.ts.map +1 -0
  52. package/script/types/index.js +2 -0
@@ -1,5 +1,13 @@
1
1
  interface WebAuthnAbortService {
2
+ /**
3
+ * Prepare an abort signal that will help support multiple auth attempts without needing to
4
+ * reload the page. This is automatically called whenever `startRegistration()` and
5
+ * `startAuthentication()` are called.
6
+ */
2
7
  createNewAbortSignal(): AbortSignal;
8
+ /**
9
+ * Manually cancel any active WebAuthn registration or authentication attempt.
10
+ */
3
11
  cancelCeremony(): void;
4
12
  }
5
13
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"webAuthnAbortService.d.ts","sourceRoot":"","sources":["../../src/helpers/webAuthnAbortService.ts"],"names":[],"mappings":"AAAA,UAAU,oBAAoB;IAC5B,oBAAoB,IAAI,WAAW,CAAC;IACpC,cAAc,IAAI,IAAI,CAAC;CACxB;AA0CD;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,EAAE,oBAAqD,CAAC"}
1
+ {"version":3,"file":"webAuthnAbortService.d.ts","sourceRoot":"","sources":["../../src/helpers/webAuthnAbortService.ts"],"names":[],"mappings":"AAAA,UAAU,oBAAoB;IAC5B;;;;OAIG;IACH,oBAAoB,IAAI,WAAW,CAAC;IACpC;;OAEG;IACH,cAAc,IAAI,IAAI,CAAC;CACxB;AAkCD;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,EAAE,oBAAqD,CAAC"}
@@ -10,11 +10,6 @@ class BaseWebAuthnAbortService {
10
10
  value: void 0
11
11
  });
12
12
  }
13
- /**
14
- * Prepare an abort signal that will help support multiple auth attempts without needing to
15
- * reload the page. This is automatically called whenever `startRegistration()` and
16
- * `startAuthentication()` are called.
17
- */
18
13
  createNewAbortSignal() {
19
14
  // Abort any existing calls to navigator.credentials.create() or navigator.credentials.get()
20
15
  if (this.controller) {
@@ -26,9 +21,6 @@ class BaseWebAuthnAbortService {
26
21
  this.controller = newController;
27
22
  return newController.signal;
28
23
  }
29
- /**
30
- * Manually cancel any active WebAuthn registration or authentication attempt.
31
- */
32
24
  cancelCeremony() {
33
25
  if (this.controller) {
34
26
  const abortError = new Error('Manually cancelling existing WebAuthn API call');
package/script/index.d.ts CHANGED
@@ -1,16 +1,11 @@
1
- /**
2
- * @packageDocumentation
3
- * @module @simplewebauthn/browser
4
- */
5
- import { startRegistration } from './methods/startRegistration.js';
6
- import { startAuthentication } from './methods/startAuthentication.js';
7
- import { browserSupportsWebAuthn } from './helpers/browserSupportsWebAuthn.js';
8
- import { platformAuthenticatorIsAvailable } from './helpers/platformAuthenticatorIsAvailable.js';
9
- import { browserSupportsWebAuthnAutofill } from './helpers/browserSupportsWebAuthnAutofill.js';
10
- import { base64URLStringToBuffer } from './helpers/base64URLStringToBuffer.js';
11
- import { bufferToBase64URLString } from './helpers/bufferToBase64URLString.js';
12
- import { WebAuthnAbortService } from './helpers/webAuthnAbortService.js';
13
- import { WebAuthnError } from './helpers/webAuthnError.js';
14
- export { base64URLStringToBuffer, browserSupportsWebAuthn, browserSupportsWebAuthnAutofill, bufferToBase64URLString, platformAuthenticatorIsAvailable, startAuthentication, startRegistration, WebAuthnAbortService, WebAuthnError, };
15
- export type { WebAuthnErrorCode } from './helpers/webAuthnError.js';
1
+ export * from './methods/startRegistration.js';
2
+ export * from './methods/startAuthentication.js';
3
+ export * from './helpers/browserSupportsWebAuthn.js';
4
+ export * from './helpers/platformAuthenticatorIsAvailable.js';
5
+ export * from './helpers/browserSupportsWebAuthnAutofill.js';
6
+ export * from './helpers/base64URLStringToBuffer.js';
7
+ export * from './helpers/bufferToBase64URLString.js';
8
+ export * from './helpers/webAuthnAbortService.js';
9
+ export * from './helpers/webAuthnError.js';
10
+ export * from './types/index.js';
16
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,gCAAgC,EAAE,MAAM,+CAA+C,CAAC;AACjG,OAAO,EAAE,+BAA+B,EAAE,MAAM,8CAA8C,CAAC;AAC/F,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,+BAA+B,EAC/B,uBAAuB,EACvB,gCAAgC,EAChC,mBAAmB,EACnB,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,GACd,CAAC;AAEF,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC;AAClD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC"}
package/script/index.js CHANGED
@@ -1,25 +1,26 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WebAuthnError = exports.WebAuthnAbortService = exports.startRegistration = exports.startAuthentication = exports.platformAuthenticatorIsAvailable = exports.bufferToBase64URLString = exports.browserSupportsWebAuthnAutofill = exports.browserSupportsWebAuthn = exports.base64URLStringToBuffer = void 0;
4
- /**
5
- * @packageDocumentation
6
- * @module @simplewebauthn/browser
7
- */
8
- const startRegistration_js_1 = require("./methods/startRegistration.js");
9
- Object.defineProperty(exports, "startRegistration", { enumerable: true, get: function () { return startRegistration_js_1.startRegistration; } });
10
- const startAuthentication_js_1 = require("./methods/startAuthentication.js");
11
- Object.defineProperty(exports, "startAuthentication", { enumerable: true, get: function () { return startAuthentication_js_1.startAuthentication; } });
12
- const browserSupportsWebAuthn_js_1 = require("./helpers/browserSupportsWebAuthn.js");
13
- Object.defineProperty(exports, "browserSupportsWebAuthn", { enumerable: true, get: function () { return browserSupportsWebAuthn_js_1.browserSupportsWebAuthn; } });
14
- const platformAuthenticatorIsAvailable_js_1 = require("./helpers/platformAuthenticatorIsAvailable.js");
15
- Object.defineProperty(exports, "platformAuthenticatorIsAvailable", { enumerable: true, get: function () { return platformAuthenticatorIsAvailable_js_1.platformAuthenticatorIsAvailable; } });
16
- const browserSupportsWebAuthnAutofill_js_1 = require("./helpers/browserSupportsWebAuthnAutofill.js");
17
- Object.defineProperty(exports, "browserSupportsWebAuthnAutofill", { enumerable: true, get: function () { return browserSupportsWebAuthnAutofill_js_1.browserSupportsWebAuthnAutofill; } });
18
- const base64URLStringToBuffer_js_1 = require("./helpers/base64URLStringToBuffer.js");
19
- Object.defineProperty(exports, "base64URLStringToBuffer", { enumerable: true, get: function () { return base64URLStringToBuffer_js_1.base64URLStringToBuffer; } });
20
- const bufferToBase64URLString_js_1 = require("./helpers/bufferToBase64URLString.js");
21
- Object.defineProperty(exports, "bufferToBase64URLString", { enumerable: true, get: function () { return bufferToBase64URLString_js_1.bufferToBase64URLString; } });
22
- const webAuthnAbortService_js_1 = require("./helpers/webAuthnAbortService.js");
23
- Object.defineProperty(exports, "WebAuthnAbortService", { enumerable: true, get: function () { return webAuthnAbortService_js_1.WebAuthnAbortService; } });
24
- const webAuthnError_js_1 = require("./helpers/webAuthnError.js");
25
- Object.defineProperty(exports, "WebAuthnError", { enumerable: true, get: function () { return webAuthnError_js_1.WebAuthnError; } });
17
+ __exportStar(require("./methods/startRegistration.js"), exports);
18
+ __exportStar(require("./methods/startAuthentication.js"), exports);
19
+ __exportStar(require("./helpers/browserSupportsWebAuthn.js"), exports);
20
+ __exportStar(require("./helpers/platformAuthenticatorIsAvailable.js"), exports);
21
+ __exportStar(require("./helpers/browserSupportsWebAuthnAutofill.js"), exports);
22
+ __exportStar(require("./helpers/base64URLStringToBuffer.js"), exports);
23
+ __exportStar(require("./helpers/bufferToBase64URLString.js"), exports);
24
+ __exportStar(require("./helpers/webAuthnAbortService.js"), exports);
25
+ __exportStar(require("./helpers/webAuthnError.js"), exports);
26
+ __exportStar(require("./types/index.js"), exports);
@@ -1,9 +1,5 @@
1
- import { AuthenticationResponseJSON, PublicKeyCredentialRequestOptionsJSON } from '@simplewebauthn/types';
2
- export type StartAuthenticationOpts = {
3
- optionsJSON: PublicKeyCredentialRequestOptionsJSON;
4
- useBrowserAutofill?: boolean;
5
- verifyBrowserAutofillInput?: boolean;
6
- };
1
+ import type { AuthenticationResponseJSON, PublicKeyCredentialRequestOptionsJSON } from '../types/index.js';
2
+ export type StartAuthenticationOpts = Parameters<typeof startAuthentication>[0];
7
3
  /**
8
4
  * Begin authenticator "login" via WebAuthn assertion
9
5
  *
@@ -11,5 +7,9 @@ export type StartAuthenticationOpts = {
11
7
  * @param useBrowserAutofill (Optional) Initialize conditional UI to enable logging in via browser autofill prompts. Defaults to `false`.
12
8
  * @param verifyBrowserAutofillInput (Optional) Ensure a suitable `<input>` element is present when `useBrowserAutofill` is `true`. Defaults to `true`.
13
9
  */
14
- export declare function startAuthentication(options: StartAuthenticationOpts): Promise<AuthenticationResponseJSON>;
10
+ export declare function startAuthentication(options: {
11
+ optionsJSON: PublicKeyCredentialRequestOptionsJSON;
12
+ useBrowserAutofill?: boolean;
13
+ verifyBrowserAutofillInput?: boolean;
14
+ }): Promise<AuthenticationResponseJSON>;
15
15
  //# sourceMappingURL=startAuthentication.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"startAuthentication.d.ts","sourceRoot":"","sources":["../../src/methods/startAuthentication.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,0BAA0B,EAC1B,qCAAqC,EACtC,MAAM,uBAAuB,CAAC;AAW/B,MAAM,MAAM,uBAAuB,GAAG;IACpC,WAAW,EAAE,qCAAqC,CAAC;IACnD,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC,CAAC;AAEF;;;;;;GAMG;AACH,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,0BAA0B,CAAC,CAkGrC"}
1
+ {"version":3,"file":"startAuthentication.d.ts","sourceRoot":"","sources":["../../src/methods/startAuthentication.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,0BAA0B,EAC1B,qCAAqC,EACtC,MAAM,mBAAmB,CAAC;AAU3B,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC;AAEhF;;;;;;GAMG;AACH,wBAAsB,mBAAmB,CACvC,OAAO,EAAE;IACP,WAAW,EAAE,qCAAqC,CAAC;IACnD,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC,GACA,OAAO,CAAC,0BAA0B,CAAC,CAkGrC"}
@@ -1,13 +1,13 @@
1
- import { PublicKeyCredentialCreationOptionsJSON, RegistrationResponseJSON } from '@simplewebauthn/types';
2
- export type StartRegistrationOpts = {
3
- optionsJSON: PublicKeyCredentialCreationOptionsJSON;
4
- useAutoRegister?: boolean;
5
- };
1
+ import type { PublicKeyCredentialCreationOptionsJSON, RegistrationResponseJSON } from '../types/index.js';
2
+ export type StartRegistrationOpts = Parameters<typeof startRegistration>[0];
6
3
  /**
7
4
  * Begin authenticator "registration" via WebAuthn attestation
8
5
  *
9
6
  * @param optionsJSON Output from **@simplewebauthn/server**'s `generateRegistrationOptions()`
10
7
  * @param useAutoRegister (Optional) Try to silently create a passkey with the password manager that the user just signed in with. Defaults to `false`.
11
8
  */
12
- export declare function startRegistration(options: StartRegistrationOpts): Promise<RegistrationResponseJSON>;
9
+ export declare function startRegistration(options: {
10
+ optionsJSON: PublicKeyCredentialCreationOptionsJSON;
11
+ useAutoRegister?: boolean;
12
+ }): Promise<RegistrationResponseJSON>;
13
13
  //# sourceMappingURL=startRegistration.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"startRegistration.d.ts","sourceRoot":"","sources":["../../src/methods/startRegistration.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,sCAAsC,EAEtC,wBAAwB,EACzB,MAAM,uBAAuB,CAAC;AAU/B,MAAM,MAAM,qBAAqB,GAAG;IAClC,WAAW,EAAE,sCAAsC,CAAC;IACpD,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF;;;;;GAKG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,wBAAwB,CAAC,CA6GnC"}
1
+ {"version":3,"file":"startRegistration.d.ts","sourceRoot":"","sources":["../../src/methods/startRegistration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,sCAAsC,EAEtC,wBAAwB,EACzB,MAAM,mBAAmB,CAAC;AAS3B,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;AAE5E;;;;;GAKG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE;IACP,WAAW,EAAE,sCAAsC,CAAC;IACpD,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,GACA,OAAO,CAAC,wBAAwB,CAAC,CA6GnC"}
@@ -0,0 +1,329 @@
1
+ /**
2
+ * DO NOT MODIFY THESE FILES!
3
+ *
4
+ * These files were copied from the **types** package. To update this file, make changes to those
5
+ * files instead and then run the following command from the monorepo root folder:
6
+ *
7
+ * deno task codegen:types
8
+ */
9
+ /**
10
+ * Generated from typescript@5.6.3
11
+ * To regenerate, run the following command from the package root:
12
+ * deno task extract-dom-types
13
+ */
14
+ /**
15
+ * Available only in secure contexts.
16
+ *
17
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse)
18
+ */
19
+ export interface AuthenticatorAssertionResponse extends AuthenticatorResponse {
20
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/authenticatorData) */
21
+ readonly authenticatorData: ArrayBuffer;
22
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/signature) */
23
+ readonly signature: ArrayBuffer;
24
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/userHandle) */
25
+ readonly userHandle: ArrayBuffer | null;
26
+ }
27
+ /**
28
+ * Available only in secure contexts.
29
+ *
30
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse)
31
+ */
32
+ export interface AuthenticatorAttestationResponse extends AuthenticatorResponse {
33
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/attestationObject) */
34
+ readonly attestationObject: ArrayBuffer;
35
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getAuthenticatorData) */
36
+ getAuthenticatorData(): ArrayBuffer;
37
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKey) */
38
+ getPublicKey(): ArrayBuffer | null;
39
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKeyAlgorithm) */
40
+ getPublicKeyAlgorithm(): COSEAlgorithmIdentifier;
41
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getTransports) */
42
+ getTransports(): string[];
43
+ }
44
+ export interface AuthenticationExtensionsClientInputs {
45
+ appid?: string;
46
+ credProps?: boolean;
47
+ hmacCreateSecret?: boolean;
48
+ minPinLength?: boolean;
49
+ }
50
+ export interface AuthenticationExtensionsClientOutputs {
51
+ appid?: boolean;
52
+ credProps?: CredentialPropertiesOutput;
53
+ hmacCreateSecret?: boolean;
54
+ }
55
+ export interface AuthenticatorSelectionCriteria {
56
+ authenticatorAttachment?: AuthenticatorAttachment;
57
+ requireResidentKey?: boolean;
58
+ residentKey?: ResidentKeyRequirement;
59
+ userVerification?: UserVerificationRequirement;
60
+ }
61
+ /**
62
+ * Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives.
63
+ *
64
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto)
65
+ */
66
+ export interface Crypto {
67
+ /**
68
+ * Available only in secure contexts.
69
+ *
70
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle)
71
+ */
72
+ readonly subtle: SubtleCrypto;
73
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */
74
+ getRandomValues<T extends ArrayBufferView | null>(array: T): T;
75
+ /**
76
+ * Available only in secure contexts.
77
+ *
78
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID)
79
+ */
80
+ randomUUID(): `${string}-${string}-${string}-${string}-${string}`;
81
+ }
82
+ /**
83
+ * Available only in secure contexts.
84
+ *
85
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential)
86
+ */
87
+ export interface PublicKeyCredential extends Credential {
88
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/authenticatorAttachment) */
89
+ readonly authenticatorAttachment: string | null;
90
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/rawId) */
91
+ readonly rawId: ArrayBuffer;
92
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/response) */
93
+ readonly response: AuthenticatorResponse;
94
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/getClientExtensionResults) */
95
+ getClientExtensionResults(): AuthenticationExtensionsClientOutputs;
96
+ }
97
+ export interface PublicKeyCredentialCreationOptions {
98
+ attestation?: AttestationConveyancePreference;
99
+ authenticatorSelection?: AuthenticatorSelectionCriteria;
100
+ challenge: BufferSource;
101
+ excludeCredentials?: PublicKeyCredentialDescriptor[];
102
+ extensions?: AuthenticationExtensionsClientInputs;
103
+ pubKeyCredParams: PublicKeyCredentialParameters[];
104
+ rp: PublicKeyCredentialRpEntity;
105
+ timeout?: number;
106
+ user: PublicKeyCredentialUserEntity;
107
+ }
108
+ export interface PublicKeyCredentialDescriptor {
109
+ id: BufferSource;
110
+ transports?: AuthenticatorTransport[];
111
+ type: PublicKeyCredentialType;
112
+ }
113
+ export interface PublicKeyCredentialParameters {
114
+ alg: COSEAlgorithmIdentifier;
115
+ type: PublicKeyCredentialType;
116
+ }
117
+ export interface PublicKeyCredentialRequestOptions {
118
+ allowCredentials?: PublicKeyCredentialDescriptor[];
119
+ challenge: BufferSource;
120
+ extensions?: AuthenticationExtensionsClientInputs;
121
+ rpId?: string;
122
+ timeout?: number;
123
+ userVerification?: UserVerificationRequirement;
124
+ }
125
+ export interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {
126
+ displayName: string;
127
+ id: BufferSource;
128
+ }
129
+ /**
130
+ * Available only in secure contexts.
131
+ *
132
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse)
133
+ */
134
+ export interface AuthenticatorResponse {
135
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse/clientDataJSON) */
136
+ readonly clientDataJSON: ArrayBuffer;
137
+ }
138
+ export interface CredentialPropertiesOutput {
139
+ rk?: boolean;
140
+ }
141
+ /**
142
+ * This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).
143
+ * Available only in secure contexts.
144
+ *
145
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto)
146
+ */
147
+ export interface SubtleCrypto {
148
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt) */
149
+ decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
150
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits) */
151
+ deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
152
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */
153
+ deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
154
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest) */
155
+ digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
156
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt) */
157
+ encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
158
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey) */
159
+ exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
160
+ exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
161
+ exportKey(format: KeyFormat, key: CryptoKey): Promise<ArrayBuffer | JsonWebKey>;
162
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
163
+ generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
164
+ generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
165
+ generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
166
+ generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
167
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */
168
+ importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
169
+ importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
170
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign) */
171
+ sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
172
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */
173
+ unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
174
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify) */
175
+ verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
176
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey) */
177
+ wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;
178
+ }
179
+ /**
180
+ * Available only in secure contexts.
181
+ *
182
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential)
183
+ */
184
+ export interface Credential {
185
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/id) */
186
+ readonly id: string;
187
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/type) */
188
+ readonly type: string;
189
+ }
190
+ export interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {
191
+ id?: string;
192
+ }
193
+ export interface PublicKeyCredentialEntity {
194
+ name: string;
195
+ }
196
+ export interface RsaOaepParams extends Algorithm {
197
+ label?: BufferSource;
198
+ }
199
+ export interface AesCtrParams extends Algorithm {
200
+ counter: BufferSource;
201
+ length: number;
202
+ }
203
+ export interface AesCbcParams extends Algorithm {
204
+ iv: BufferSource;
205
+ }
206
+ export interface AesGcmParams extends Algorithm {
207
+ additionalData?: BufferSource;
208
+ iv: BufferSource;
209
+ tagLength?: number;
210
+ }
211
+ /**
212
+ * The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.
213
+ * Available only in secure contexts.
214
+ *
215
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey)
216
+ */
217
+ export interface CryptoKey {
218
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm) */
219
+ readonly algorithm: KeyAlgorithm;
220
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable) */
221
+ readonly extractable: boolean;
222
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type) */
223
+ readonly type: KeyType;
224
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages) */
225
+ readonly usages: KeyUsage[];
226
+ }
227
+ export interface EcdhKeyDeriveParams extends Algorithm {
228
+ public: CryptoKey;
229
+ }
230
+ export interface HkdfParams extends Algorithm {
231
+ hash: HashAlgorithmIdentifier;
232
+ info: BufferSource;
233
+ salt: BufferSource;
234
+ }
235
+ export interface Pbkdf2Params extends Algorithm {
236
+ hash: HashAlgorithmIdentifier;
237
+ iterations: number;
238
+ salt: BufferSource;
239
+ }
240
+ export interface AesDerivedKeyParams extends Algorithm {
241
+ length: number;
242
+ }
243
+ export interface HmacImportParams extends Algorithm {
244
+ hash: HashAlgorithmIdentifier;
245
+ length?: number;
246
+ }
247
+ export interface JsonWebKey {
248
+ alg?: string;
249
+ crv?: string;
250
+ d?: string;
251
+ dp?: string;
252
+ dq?: string;
253
+ e?: string;
254
+ ext?: boolean;
255
+ k?: string;
256
+ key_ops?: string[];
257
+ kty?: string;
258
+ n?: string;
259
+ oth?: RsaOtherPrimesInfo[];
260
+ p?: string;
261
+ q?: string;
262
+ qi?: string;
263
+ use?: string;
264
+ x?: string;
265
+ y?: string;
266
+ }
267
+ export interface CryptoKeyPair {
268
+ privateKey: CryptoKey;
269
+ publicKey: CryptoKey;
270
+ }
271
+ export interface RsaHashedKeyGenParams extends RsaKeyGenParams {
272
+ hash: HashAlgorithmIdentifier;
273
+ }
274
+ export interface EcKeyGenParams extends Algorithm {
275
+ namedCurve: NamedCurve;
276
+ }
277
+ export interface AesKeyGenParams extends Algorithm {
278
+ length: number;
279
+ }
280
+ export interface HmacKeyGenParams extends Algorithm {
281
+ hash: HashAlgorithmIdentifier;
282
+ length?: number;
283
+ }
284
+ export interface RsaHashedImportParams extends Algorithm {
285
+ hash: HashAlgorithmIdentifier;
286
+ }
287
+ export interface EcKeyImportParams extends Algorithm {
288
+ namedCurve: NamedCurve;
289
+ }
290
+ export interface AesKeyAlgorithm extends KeyAlgorithm {
291
+ length: number;
292
+ }
293
+ export interface RsaPssParams extends Algorithm {
294
+ saltLength: number;
295
+ }
296
+ export interface EcdsaParams extends Algorithm {
297
+ hash: HashAlgorithmIdentifier;
298
+ }
299
+ export interface Algorithm {
300
+ name: string;
301
+ }
302
+ export interface KeyAlgorithm {
303
+ name: string;
304
+ }
305
+ export interface RsaOtherPrimesInfo {
306
+ d?: string;
307
+ r?: string;
308
+ t?: string;
309
+ }
310
+ export interface RsaKeyGenParams extends Algorithm {
311
+ modulusLength: number;
312
+ publicExponent: BigInteger;
313
+ }
314
+ export type AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none";
315
+ export type AuthenticatorTransport = "ble" | "hybrid" | "internal" | "nfc" | "usb";
316
+ export type COSEAlgorithmIdentifier = number;
317
+ export type UserVerificationRequirement = "discouraged" | "preferred" | "required";
318
+ export type AuthenticatorAttachment = "cross-platform" | "platform";
319
+ export type ResidentKeyRequirement = "discouraged" | "preferred" | "required";
320
+ export type BufferSource = ArrayBufferView | ArrayBuffer;
321
+ export type PublicKeyCredentialType = "public-key";
322
+ export type AlgorithmIdentifier = Algorithm | string;
323
+ export type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
324
+ export type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
325
+ export type KeyType = "private" | "public" | "secret";
326
+ export type HashAlgorithmIdentifier = AlgorithmIdentifier;
327
+ export type NamedCurve = string;
328
+ export type BigInteger = Uint8Array;
329
+ //# sourceMappingURL=dom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../src/types/dom.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH;;;;GAIG;AACH;;;;GAIG;AACH,MAAM,WAAW,8BAA+B,SAAQ,qBAAqB;IACzE,mHAAmH;IACnH,QAAQ,CAAC,iBAAiB,EAAE,WAAW,CAAC;IACxC,2GAA2G;IAC3G,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC;IAChC,4GAA4G;IAC5G,QAAQ,CAAC,UAAU,EAAE,WAAW,GAAG,IAAI,CAAC;CAC3C;AAED;;;;GAIG;AACH,MAAM,WAAW,gCAAiC,SAAQ,qB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