@supabase/auth-js 2.73.0-rc.3 → 2.73.0-rc.6

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 (66) hide show
  1. package/README.md +28 -1
  2. package/dist/main/GoTrueClient.d.ts +1 -1
  3. package/dist/main/GoTrueClient.d.ts.map +1 -1
  4. package/dist/main/GoTrueClient.js +43 -15
  5. package/dist/main/GoTrueClient.js.map +1 -1
  6. package/dist/main/lib/base64url.d.ts +3 -2
  7. package/dist/main/lib/base64url.d.ts.map +1 -1
  8. package/dist/main/lib/base64url.js.map +1 -1
  9. package/dist/main/lib/helpers.d.ts +2 -1
  10. package/dist/main/lib/helpers.d.ts.map +1 -1
  11. package/dist/main/lib/helpers.js.map +1 -1
  12. package/dist/main/lib/types.d.ts +140 -19
  13. package/dist/main/lib/types.d.ts.map +1 -1
  14. package/dist/main/lib/types.js +3 -2
  15. package/dist/main/lib/types.js.map +1 -1
  16. package/dist/main/lib/version.d.ts +1 -1
  17. package/dist/main/lib/version.js +1 -1
  18. package/dist/main/lib/webauthn.d.ts +274 -0
  19. package/dist/main/lib/webauthn.d.ts.map +1 -0
  20. package/dist/main/lib/webauthn.dom.d.ts +583 -0
  21. package/dist/main/lib/webauthn.dom.d.ts.map +1 -0
  22. package/dist/main/lib/webauthn.dom.js +4 -0
  23. package/dist/main/lib/webauthn.dom.js.map +1 -0
  24. package/dist/main/lib/webauthn.errors.d.ts +80 -0
  25. package/dist/main/lib/webauthn.errors.d.ts.map +1 -0
  26. package/dist/main/lib/webauthn.errors.js +265 -0
  27. package/dist/main/lib/webauthn.errors.js.map +1 -0
  28. package/dist/main/lib/webauthn.js +702 -0
  29. package/dist/main/lib/webauthn.js.map +1 -0
  30. package/dist/module/GoTrueClient.d.ts +1 -1
  31. package/dist/module/GoTrueClient.d.ts.map +1 -1
  32. package/dist/module/GoTrueClient.js +49 -21
  33. package/dist/module/GoTrueClient.js.map +1 -1
  34. package/dist/module/lib/base64url.d.ts +3 -2
  35. package/dist/module/lib/base64url.d.ts.map +1 -1
  36. package/dist/module/lib/base64url.js.map +1 -1
  37. package/dist/module/lib/helpers.d.ts +2 -1
  38. package/dist/module/lib/helpers.d.ts.map +1 -1
  39. package/dist/module/lib/helpers.js.map +1 -1
  40. package/dist/module/lib/types.d.ts +140 -19
  41. package/dist/module/lib/types.d.ts.map +1 -1
  42. package/dist/module/lib/types.js +2 -1
  43. package/dist/module/lib/types.js.map +1 -1
  44. package/dist/module/lib/version.d.ts +1 -1
  45. package/dist/module/lib/version.js +1 -1
  46. package/dist/module/lib/webauthn.d.ts +274 -0
  47. package/dist/module/lib/webauthn.d.ts.map +1 -0
  48. package/dist/module/lib/webauthn.dom.d.ts +583 -0
  49. package/dist/module/lib/webauthn.dom.d.ts.map +1 -0
  50. package/dist/module/lib/webauthn.dom.js +3 -0
  51. package/dist/module/lib/webauthn.dom.js.map +1 -0
  52. package/dist/module/lib/webauthn.errors.d.ts +80 -0
  53. package/dist/module/lib/webauthn.errors.d.ts.map +1 -0
  54. package/dist/module/lib/webauthn.errors.js +257 -0
  55. package/dist/module/lib/webauthn.errors.js.map +1 -0
  56. package/dist/module/lib/webauthn.js +685 -0
  57. package/dist/module/lib/webauthn.js.map +1 -0
  58. package/package.json +1 -1
  59. package/src/GoTrueClient.ts +198 -68
  60. package/src/lib/base64url.ts +4 -2
  61. package/src/lib/helpers.ts +2 -1
  62. package/src/lib/types.ts +205 -26
  63. package/src/lib/version.ts +1 -1
  64. package/src/lib/webauthn.dom.ts +636 -0
  65. package/src/lib/webauthn.errors.ts +317 -0
  66. package/src/lib/webauthn.ts +929 -0
@@ -0,0 +1,583 @@
1
+ import { StrictOmit } from './types';
2
+ /**
3
+ * A variant of PublicKeyCredentialCreationOptions suitable for JSON transmission to the browser to
4
+ * (eventually) get passed into navigator.credentials.create(...) in the browser.
5
+ *
6
+ * This should eventually get replaced with official TypeScript DOM types when WebAuthn Level 3 types
7
+ * eventually make it into the language:
8
+ *
9
+ * @see {@link https://w3c.github.io/webauthn/#dictdef-publickeycredentialcreationoptionsjson W3C WebAuthn Spec - PublicKeyCredentialCreationOptionsJSON}
10
+ */
11
+ export interface PublicKeyCredentialCreationOptionsJSON {
12
+ /**
13
+ * Information about the Relying Party responsible for the request.
14
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialcreationoptions-rp W3C - rp}
15
+ */
16
+ rp: PublicKeyCredentialRpEntity;
17
+ /**
18
+ * Information about the user account for which the credential is being created.
19
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialcreationoptions-user W3C - user}
20
+ */
21
+ user: PublicKeyCredentialUserEntityJSON;
22
+ /**
23
+ * A server-generated challenge in base64url format.
24
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialcreationoptions-challenge W3C - challenge}
25
+ */
26
+ challenge: Base64URLString;
27
+ /**
28
+ * Information about desired properties of the credential to be created.
29
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialcreationoptions-pubkeycredparams W3C - pubKeyCredParams}
30
+ */
31
+ pubKeyCredParams: PublicKeyCredentialParameters[];
32
+ /**
33
+ * Time in milliseconds that the caller is willing to wait for the operation to complete.
34
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialcreationoptions-timeout W3C - timeout}
35
+ */
36
+ timeout?: number;
37
+ /**
38
+ * Credentials that the authenticator should not create a new credential for.
39
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialcreationoptions-excludecredentials W3C - excludeCredentials}
40
+ */
41
+ excludeCredentials?: PublicKeyCredentialDescriptorJSON[];
42
+ /**
43
+ * Criteria for authenticator selection.
44
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialcreationoptions-authenticatorselection W3C - authenticatorSelection}
45
+ */
46
+ authenticatorSelection?: AuthenticatorSelectionCriteria;
47
+ /**
48
+ * Hints about what types of authenticators the user might want to use.
49
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialcreationoptions-hints W3C - hints}
50
+ */
51
+ hints?: PublicKeyCredentialHint[];
52
+ /**
53
+ * How the attestation statement should be transported.
54
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialcreationoptions-attestation W3C - attestation}
55
+ */
56
+ attestation?: AttestationConveyancePreference;
57
+ /**
58
+ * The attestation statement formats that the Relying Party will accept.
59
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialcreationoptions-attestationformats W3C - attestationFormats}
60
+ */
61
+ attestationFormats?: AttestationFormat[];
62
+ /**
63
+ * Additional parameters requesting additional processing by the client and authenticator.
64
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialcreationoptions-extensions W3C - extensions}
65
+ */
66
+ extensions?: AuthenticationExtensionsClientInputs;
67
+ }
68
+ /**
69
+ * A variant of PublicKeyCredentialRequestOptions suitable for JSON transmission to the browser to
70
+ * (eventually) get passed into navigator.credentials.get(...) in the browser.
71
+ *
72
+ * @see {@link https://w3c.github.io/webauthn/#dictdef-publickeycredentialrequestoptionsjson W3C WebAuthn Spec - PublicKeyCredentialRequestOptionsJSON}
73
+ */
74
+ export interface PublicKeyCredentialRequestOptionsJSON {
75
+ /**
76
+ * A server-generated challenge in base64url format.
77
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialrequestoptions-challenge W3C - challenge}
78
+ */
79
+ challenge: Base64URLString;
80
+ /**
81
+ * Time in milliseconds that the caller is willing to wait for the operation to complete.
82
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialrequestoptions-timeout W3C - timeout}
83
+ */
84
+ timeout?: number;
85
+ /**
86
+ * The relying party identifier claimed by the caller.
87
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialrequestoptions-rpid W3C - rpId}
88
+ */
89
+ rpId?: string;
90
+ /**
91
+ * A list of credentials acceptable for authentication.
92
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialrequestoptions-allowcredentials W3C - allowCredentials}
93
+ */
94
+ allowCredentials?: PublicKeyCredentialDescriptorJSON[];
95
+ /**
96
+ * Whether user verification should be performed by the authenticator.
97
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialrequestoptions-userverification W3C - userVerification}
98
+ */
99
+ userVerification?: UserVerificationRequirement;
100
+ /**
101
+ * Hints about what types of authenticators the user might want to use.
102
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialrequestoptions-hints W3C - hints}
103
+ */
104
+ hints?: PublicKeyCredentialHint[];
105
+ /**
106
+ * Additional parameters requesting additional processing by the client and authenticator.
107
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialrequestoptions-extensions W3C - extensions}
108
+ */
109
+ extensions?: AuthenticationExtensionsClientInputs;
110
+ }
111
+ /**
112
+ * Represents a public key credential descriptor in JSON format.
113
+ * Used to identify credentials for exclusion or allowance during WebAuthn ceremonies.
114
+ *
115
+ * @see {@link https://w3c.github.io/webauthn/#dictdef-publickeycredentialdescriptorjson W3C WebAuthn Spec - PublicKeyCredentialDescriptorJSON}
116
+ */
117
+ export interface PublicKeyCredentialDescriptorJSON {
118
+ /**
119
+ * The credential ID in base64url format.
120
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialdescriptor-id W3C - id}
121
+ */
122
+ id: Base64URLString;
123
+ /**
124
+ * The type of the public key credential (always "public-key").
125
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialdescriptor-type W3C - type}
126
+ */
127
+ type: PublicKeyCredentialType;
128
+ /**
129
+ * How the authenticator communicates with clients.
130
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialdescriptor-transports W3C - transports}
131
+ */
132
+ transports?: AuthenticatorTransportFuture[];
133
+ }
134
+ /**
135
+ * Represents user account information in JSON format for WebAuthn registration.
136
+ * Contains identifiers and display information for the user being registered.
137
+ *
138
+ * @see {@link https://w3c.github.io/webauthn/#dictdef-publickeycredentialuserentityjson W3C WebAuthn Spec - PublicKeyCredentialUserEntityJSON}
139
+ */
140
+ export interface PublicKeyCredentialUserEntityJSON {
141
+ /**
142
+ * A unique identifier for the user account (base64url encoded).
143
+ * Maximum 64 bytes. Should not contain PII.
144
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialuserentity-id W3C - user.id}
145
+ */
146
+ id: string;
147
+ /**
148
+ * A human-readable identifier for the account (e.g., email, username).
149
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialentity-name W3C - user.name}
150
+ */
151
+ name: string;
152
+ /**
153
+ * A human-friendly display name for the user (e.g., "John Doe").
154
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialuserentity-displayname W3C - user.displayName}
155
+ */
156
+ displayName: string;
157
+ }
158
+ /**
159
+ * Represents user account information for WebAuthn registration with binary data.
160
+ * Contains identifiers and display information for the user being registered.
161
+ *
162
+ * @see {@link https://w3c.github.io/webauthn/#dictdef-publickeycredentialuserentity W3C WebAuthn Spec - PublicKeyCredentialUserEntity}
163
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialUserEntity MDN - PublicKeyCredentialUserEntity}
164
+ */
165
+ export interface PublicKeyCredentialUserEntity {
166
+ /**
167
+ * A unique identifier for the user account.
168
+ * Maximum 64 bytes. Should not contain PII.
169
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialuserentity-id W3C - user.id}
170
+ */
171
+ id: BufferSource;
172
+ /**
173
+ * A human-readable identifier for the account.
174
+ * Typically an email, username, or phone number.
175
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialentity-name W3C - user.name}
176
+ */
177
+ name: string;
178
+ /**
179
+ * A human-friendly display name for the user.
180
+ * Example: "John Doe"
181
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialuserentity-displayname W3C - user.displayName}
182
+ */
183
+ displayName: string;
184
+ }
185
+ /**
186
+ * The credential returned from navigator.credentials.create() during WebAuthn registration.
187
+ * Contains the new credential's public key and attestation information.
188
+ *
189
+ * @see {@link https://w3c.github.io/webauthn/#registrationceremony W3C WebAuthn Spec - Registration}
190
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential MDN - PublicKeyCredential}
191
+ */
192
+ export interface RegistrationCredential extends PublicKeyCredentialFuture<RegistrationResponseJSON> {
193
+ response: AuthenticatorAttestationResponseFuture;
194
+ }
195
+ /**
196
+ * A slightly-modified RegistrationCredential to simplify working with ArrayBuffers that
197
+ * are Base64URL-encoded in the browser so that they can be sent as JSON to the server.
198
+ *
199
+ * @see {@link https://w3c.github.io/webauthn/#dictdef-registrationresponsejson W3C WebAuthn Spec - RegistrationResponseJSON}
200
+ */
201
+ export interface RegistrationResponseJSON {
202
+ /**
203
+ * The credential ID (same as rawId for JSON).
204
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredential-id W3C - id}
205
+ */
206
+ id: Base64URLString;
207
+ /**
208
+ * The raw credential ID in base64url format.
209
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredential-rawid W3C - rawId}
210
+ */
211
+ rawId: Base64URLString;
212
+ /**
213
+ * The authenticator's response to the client's request to create a credential.
214
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredential-response W3C - response}
215
+ */
216
+ response: AuthenticatorAttestationResponseJSON;
217
+ /**
218
+ * The authenticator attachment modality in effect at the time of credential creation.
219
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredential-authenticatorattachment W3C - authenticatorAttachment}
220
+ */
221
+ authenticatorAttachment?: AuthenticatorAttachment;
222
+ /**
223
+ * The results of processing client extensions.
224
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredential-getclientextensionresults W3C - getClientExtensionResults}
225
+ */
226
+ clientExtensionResults: AuthenticationExtensionsClientOutputs;
227
+ /**
228
+ * The type of the credential (always "public-key").
229
+ * @see {@link https://w3c.github.io/webauthn/#dom-credential-type W3C - type}
230
+ */
231
+ type: PublicKeyCredentialType;
232
+ }
233
+ /**
234
+ * The credential returned from navigator.credentials.get() during WebAuthn authentication.
235
+ * Contains the assertion signature proving possession of the private key.
236
+ *
237
+ * @see {@link https://w3c.github.io/webauthn/#authentication W3C WebAuthn Spec - Authentication}
238
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential MDN - PublicKeyCredential}
239
+ */
240
+ export interface AuthenticationCredential extends PublicKeyCredentialFuture<AuthenticationResponseJSON> {
241
+ response: AuthenticatorAssertionResponse;
242
+ }
243
+ /**
244
+ * A slightly-modified AuthenticationCredential to simplify working with ArrayBuffers that
245
+ * are Base64URL-encoded in the browser so that they can be sent as JSON to the server.
246
+ *
247
+ * @see {@link https://w3c.github.io/webauthn/#dictdef-authenticationresponsejson W3C WebAuthn Spec - AuthenticationResponseJSON}
248
+ */
249
+ export interface AuthenticationResponseJSON {
250
+ /**
251
+ * The credential ID (same as rawId for JSON).
252
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredential-id W3C - id}
253
+ */
254
+ id: Base64URLString;
255
+ /**
256
+ * The raw credential ID in base64url format.
257
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredential-rawid W3C - rawId}
258
+ */
259
+ rawId: Base64URLString;
260
+ /**
261
+ * The authenticator's response to the client's request to authenticate.
262
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredential-response W3C - response}
263
+ */
264
+ response: AuthenticatorAssertionResponseJSON;
265
+ /**
266
+ * The authenticator attachment modality in effect at the time of authentication.
267
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredential-authenticatorattachment W3C - authenticatorAttachment}
268
+ */
269
+ authenticatorAttachment?: AuthenticatorAttachment;
270
+ /**
271
+ * The results of processing client extensions.
272
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredential-getclientextensionresults W3C - getClientExtensionResults}
273
+ */
274
+ clientExtensionResults: AuthenticationExtensionsClientOutputs;
275
+ /**
276
+ * The type of the credential (always "public-key").
277
+ * @see {@link https://w3c.github.io/webauthn/#dom-credential-type W3C - type}
278
+ */
279
+ type: PublicKeyCredentialType;
280
+ }
281
+ /**
282
+ * A slightly-modified AuthenticatorAttestationResponse to simplify working with ArrayBuffers that
283
+ * are Base64URL-encoded in the browser so that they can be sent as JSON to the server.
284
+ *
285
+ * @see {@link https://w3c.github.io/webauthn/#dictdef-authenticatorattestationresponsejson W3C WebAuthn Spec - AuthenticatorAttestationResponseJSON}
286
+ */
287
+ export interface AuthenticatorAttestationResponseJSON {
288
+ /**
289
+ * JSON-serialized client data passed to the authenticator.
290
+ * @see {@link https://w3c.github.io/webauthn/#dom-authenticatorresponse-clientdatajson W3C - clientDataJSON}
291
+ */
292
+ clientDataJSON: Base64URLString;
293
+ /**
294
+ * The attestation object in base64url format.
295
+ * @see {@link https://w3c.github.io/webauthn/#dom-authenticatorattestationresponse-attestationobject W3C - attestationObject}
296
+ */
297
+ attestationObject: Base64URLString;
298
+ /**
299
+ * The authenticator data contained within the attestation object.
300
+ * Optional in L2, but becomes required in L3. Play it safe until L3 becomes Recommendation
301
+ * @see {@link https://w3c.github.io/webauthn/#dom-authenticatorattestationresponse-getauthenticatordata W3C - getAuthenticatorData}
302
+ */
303
+ authenticatorData?: Base64URLString;
304
+ /**
305
+ * The transports that the authenticator supports.
306
+ * Optional in L2, but becomes required in L3. Play it safe until L3 becomes Recommendation
307
+ * @see {@link https://w3c.github.io/webauthn/#dom-authenticatorattestationresponse-gettransports W3C - getTransports}
308
+ */
309
+ transports?: AuthenticatorTransportFuture[];
310
+ /**
311
+ * The COSEAlgorithmIdentifier for the public key.
312
+ * Optional in L2, but becomes required in L3. Play it safe until L3 becomes Recommendation
313
+ * @see {@link https://w3c.github.io/webauthn/#dom-authenticatorattestationresponse-getpublickeyalgorithm W3C - getPublicKeyAlgorithm}
314
+ */
315
+ publicKeyAlgorithm?: COSEAlgorithmIdentifier;
316
+ /**
317
+ * The public key in base64url format.
318
+ * @see {@link https://w3c.github.io/webauthn/#dom-authenticatorattestationresponse-getpublickey W3C - getPublicKey}
319
+ */
320
+ publicKey?: Base64URLString;
321
+ }
322
+ /**
323
+ * A slightly-modified AuthenticatorAssertionResponse to simplify working with ArrayBuffers that
324
+ * are Base64URL-encoded in the browser so that they can be sent as JSON to the server.
325
+ *
326
+ * @see {@link https://w3c.github.io/webauthn/#dictdef-authenticatorassertionresponsejson W3C WebAuthn Spec - AuthenticatorAssertionResponseJSON}
327
+ */
328
+ export interface AuthenticatorAssertionResponseJSON {
329
+ /**
330
+ * JSON-serialized client data passed to the authenticator.
331
+ * @see {@link https://w3c.github.io/webauthn/#dom-authenticatorresponse-clientdatajson W3C - clientDataJSON}
332
+ */
333
+ clientDataJSON: Base64URLString;
334
+ /**
335
+ * The authenticator data returned by the authenticator.
336
+ * @see {@link https://w3c.github.io/webauthn/#dom-authenticatorassertionresponse-authenticatordata W3C - authenticatorData}
337
+ */
338
+ authenticatorData: Base64URLString;
339
+ /**
340
+ * The signature generated by the authenticator.
341
+ * @see {@link https://w3c.github.io/webauthn/#dom-authenticatorassertionresponse-signature W3C - signature}
342
+ */
343
+ signature: Base64URLString;
344
+ /**
345
+ * The user handle returned by the authenticator, if any.
346
+ * @see {@link https://w3c.github.io/webauthn/#dom-authenticatorassertionresponse-userhandle W3C - userHandle}
347
+ */
348
+ userHandle?: Base64URLString;
349
+ }
350
+ /**
351
+ * Public key credential information needed to verify authentication responses.
352
+ * Stores the credential's public key and metadata for server-side verification.
353
+ *
354
+ * @see {@link https://w3c.github.io/webauthn/#sctn-credential-storage-modality W3C WebAuthn Spec - Credential Storage}
355
+ */
356
+ export declare type WebAuthnCredential = {
357
+ /**
358
+ * The credential ID in base64url format.
359
+ * @see {@link https://w3c.github.io/webauthn/#credential-id W3C - Credential ID}
360
+ */
361
+ id: Base64URLString;
362
+ /**
363
+ * The credential's public key.
364
+ * @see {@link https://w3c.github.io/webauthn/#credential-public-key W3C - Credential Public Key}
365
+ */
366
+ publicKey: Uint8Array_;
367
+ /**
368
+ * Number of times this authenticator is expected to have been used.
369
+ * @see {@link https://w3c.github.io/webauthn/#signature-counter W3C - Signature Counter}
370
+ */
371
+ counter: number;
372
+ /**
373
+ * The transports that the authenticator supports.
374
+ * From browser's `startRegistration()` -> RegistrationCredentialJSON.transports (API L2 and up)
375
+ * @see {@link https://w3c.github.io/webauthn/#dom-authenticatorattestationresponse-gettransports W3C - getTransports}
376
+ */
377
+ transports?: AuthenticatorTransportFuture[];
378
+ };
379
+ /**
380
+ * An attempt to communicate that this isn't just any string, but a Base64URL-encoded string.
381
+ * Base64URL encoding is used throughout WebAuthn for binary data transmission.
382
+ *
383
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc4648#section-5 RFC 4648 - Base64URL Encoding}
384
+ */
385
+ export declare type Base64URLString = string;
386
+ /**
387
+ * AuthenticatorAttestationResponse in TypeScript's DOM lib is outdated (up through v3.9.7).
388
+ * Maintain an augmented version here so we can implement additional properties as the WebAuthn
389
+ * spec evolves.
390
+ *
391
+ * Properties marked optional are not supported in all browsers.
392
+ *
393
+ * @see {@link https://www.w3.org/TR/webauthn-2/#iface-authenticatorattestationresponse W3C WebAuthn Spec - AuthenticatorAttestationResponse}
394
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse MDN - AuthenticatorAttestationResponse}
395
+ */
396
+ export interface AuthenticatorAttestationResponseFuture extends AuthenticatorAttestationResponse {
397
+ /**
398
+ * Returns the transports that the authenticator supports.
399
+ * @see {@link https://w3c.github.io/webauthn/#dom-authenticatorattestationresponse-gettransports W3C - getTransports}
400
+ */
401
+ getTransports(): AuthenticatorTransportFuture[];
402
+ }
403
+ /**
404
+ * A super class of TypeScript's `AuthenticatorTransport` that includes support for the latest
405
+ * transports. Should eventually be replaced by TypeScript's when TypeScript gets updated to
406
+ * know about it (sometime after 4.6.3)
407
+ *
408
+ * @see {@link https://w3c.github.io/webauthn/#enum-transport W3C WebAuthn Spec - AuthenticatorTransport}
409
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse/getTransports MDN - getTransports}
410
+ */
411
+ export declare type AuthenticatorTransportFuture = 'ble' | 'cable' | 'hybrid' | 'internal' | 'nfc' | 'smart-card' | 'usb';
412
+ /**
413
+ * A super class of TypeScript's `PublicKeyCredentialDescriptor` that knows about the latest
414
+ * transports. Should eventually be replaced by TypeScript's when TypeScript gets updated to
415
+ * know about it (sometime after 4.6.3)
416
+ *
417
+ * @see {@link https://w3c.github.io/webauthn/#dictdef-publickeycredentialdescriptor W3C WebAuthn Spec - PublicKeyCredentialDescriptor}
418
+ */
419
+ export interface PublicKeyCredentialDescriptorFuture extends Omit<PublicKeyCredentialDescriptor, 'transports'> {
420
+ /**
421
+ * How the authenticator communicates with clients.
422
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialdescriptor-transports W3C - transports}
423
+ */
424
+ transports?: AuthenticatorTransportFuture[];
425
+ }
426
+ /**
427
+ * Enhanced PublicKeyCredentialCreationOptions that knows about the latest features.
428
+ * Used for WebAuthn registration ceremonies.
429
+ *
430
+ * @see {@link https://w3c.github.io/webauthn/#dictdef-publickeycredentialcreationoptions W3C WebAuthn Spec - PublicKeyCredentialCreationOptions}
431
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialCreationOptions MDN - PublicKeyCredentialCreationOptions}
432
+ */
433
+ export interface PublicKeyCredentialCreationOptionsFuture extends StrictOmit<PublicKeyCredentialCreationOptions, 'excludeCredentials' | 'user'> {
434
+ /**
435
+ * Credentials that the authenticator should not create a new credential for.
436
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialcreationoptions-excludecredentials W3C - excludeCredentials}
437
+ */
438
+ excludeCredentials?: PublicKeyCredentialDescriptorFuture[];
439
+ /**
440
+ * Information about the user account for which the credential is being created.
441
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialcreationoptions-user W3C - user}
442
+ */
443
+ user: PublicKeyCredentialUserEntity;
444
+ /**
445
+ * Hints about what types of authenticators the user might want to use.
446
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialcreationoptions-hints W3C - hints}
447
+ */
448
+ hints?: PublicKeyCredentialHint[];
449
+ /**
450
+ * Criteria for authenticator selection.
451
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialcreationoptions-authenticatorselection W3C - authenticatorSelection}
452
+ */
453
+ authenticatorSelection?: AuthenticatorSelectionCriteria;
454
+ /**
455
+ * Information about desired properties of the credential to be created.
456
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialcreationoptions-pubkeycredparams W3C - pubKeyCredParams}
457
+ */
458
+ pubKeyCredParams: PublicKeyCredentialParameters[];
459
+ /**
460
+ * Information about the Relying Party responsible for the request.
461
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialcreationoptions-rp W3C - rp}
462
+ */
463
+ rp: PublicKeyCredentialRpEntity;
464
+ }
465
+ /**
466
+ * Enhanced PublicKeyCredentialRequestOptions that knows about the latest features.
467
+ * Used for WebAuthn authentication ceremonies.
468
+ *
469
+ * @see {@link https://w3c.github.io/webauthn/#dictdef-publickeycredentialrequestoptions W3C WebAuthn Spec - PublicKeyCredentialRequestOptions}
470
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialRequestOptions MDN - PublicKeyCredentialRequestOptions}
471
+ */
472
+ export interface PublicKeyCredentialRequestOptionsFuture extends StrictOmit<PublicKeyCredentialRequestOptions, 'allowCredentials'> {
473
+ /**
474
+ * A list of credentials acceptable for authentication.
475
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialrequestoptions-allowcredentials W3C - allowCredentials}
476
+ */
477
+ allowCredentials?: PublicKeyCredentialDescriptorFuture[];
478
+ /**
479
+ * Hints about what types of authenticators the user might want to use.
480
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialrequestoptions-hints W3C - hints}
481
+ */
482
+ hints?: PublicKeyCredentialHint[];
483
+ /**
484
+ * The attestation conveyance preference for the authentication ceremony.
485
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredentialcreationoptions-attestation W3C - attestation}
486
+ */
487
+ attestation?: AttestationConveyancePreference;
488
+ }
489
+ /**
490
+ * Union type for all WebAuthn credential responses in JSON format.
491
+ * Can be either a registration response (for new credentials) or authentication response (for existing credentials).
492
+ */
493
+ export declare type PublicKeyCredentialJSON = RegistrationResponseJSON | AuthenticationResponseJSON;
494
+ /**
495
+ * A super class of TypeScript's `PublicKeyCredential` that knows about upcoming WebAuthn features.
496
+ * Includes WebAuthn Level 3 methods for JSON serialization and parsing.
497
+ *
498
+ * @see {@link https://w3c.github.io/webauthn/#publickeycredential W3C WebAuthn Spec - PublicKeyCredential}
499
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential MDN - PublicKeyCredential}
500
+ */
501
+ export interface PublicKeyCredentialFuture<T extends PublicKeyCredentialJSON = PublicKeyCredentialJSON> extends PublicKeyCredential {
502
+ /**
503
+ * The type of the credential (always "public-key").
504
+ * @see {@link https://w3c.github.io/webauthn/#dom-credential-type W3C - type}
505
+ */
506
+ type: PublicKeyCredentialType;
507
+ /**
508
+ * Checks if conditional mediation is available.
509
+ * @see {@link https://github.com/w3c/webauthn/issues/1745 GitHub - Conditional Mediation}
510
+ */
511
+ isConditionalMediationAvailable?(): Promise<boolean>;
512
+ /**
513
+ * Parses JSON to create PublicKeyCredentialCreationOptions.
514
+ * @see {@link https://w3c.github.io/webauthn/#sctn-parseCreationOptionsFromJSON W3C - parseCreationOptionsFromJSON}
515
+ */
516
+ parseCreationOptionsFromJSON(options: PublicKeyCredentialCreationOptionsJSON): PublicKeyCredentialCreationOptionsFuture;
517
+ /**
518
+ * Parses JSON to create PublicKeyCredentialRequestOptions.
519
+ * @see {@link https://w3c.github.io/webauthn/#sctn-parseRequestOptionsFromJSON W3C - parseRequestOptionsFromJSON}
520
+ */
521
+ parseRequestOptionsFromJSON(options: PublicKeyCredentialRequestOptionsJSON): PublicKeyCredentialRequestOptionsFuture;
522
+ /**
523
+ * Serializes the credential to JSON format.
524
+ * @see {@link https://w3c.github.io/webauthn/#dom-publickeycredential-tojson W3C - toJSON}
525
+ */
526
+ toJSON(): T;
527
+ }
528
+ /**
529
+ * The two types of credentials as defined by bit 3 ("Backup Eligibility") in authenticator data:
530
+ * - `"singleDevice"` credentials will never be backed up
531
+ * - `"multiDevice"` credentials can be backed up
532
+ *
533
+ * @see {@link https://w3c.github.io/webauthn/#sctn-authenticator-data W3C WebAuthn Spec - Authenticator Data}
534
+ */
535
+ export declare type CredentialDeviceType = 'singleDevice' | 'multiDevice';
536
+ /**
537
+ * Categories of authenticators that Relying Parties can pass along to browsers during
538
+ * registration. Browsers that understand these values can optimize their modal experience to
539
+ * start the user off in a particular registration flow:
540
+ *
541
+ * - `hybrid`: A platform authenticator on a mobile device
542
+ * - `security-key`: A portable FIDO2 authenticator capable of being used on multiple devices via a USB or NFC connection
543
+ * - `client-device`: The device that WebAuthn is being called on. Typically synonymous with platform authenticators
544
+ *
545
+ * These values are less strict than `authenticatorAttachment`
546
+ *
547
+ * @see {@link https://w3c.github.io/webauthn/#enumdef-publickeycredentialhint W3C WebAuthn Spec - PublicKeyCredentialHint}
548
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialCreationOptions#hints MDN - hints}
549
+ */
550
+ export declare type PublicKeyCredentialHint = 'hybrid' | 'security-key' | 'client-device';
551
+ /**
552
+ * Values for an attestation object's `fmt`.
553
+ * Defines the format of the attestation statement from the authenticator.
554
+ *
555
+ * @see {@link https://www.iana.org/assignments/webauthn/webauthn.xhtml#webauthn-attestation-statement-format-ids IANA - WebAuthn Attestation Statement Format Identifiers}
556
+ * @see {@link https://w3c.github.io/webauthn/#sctn-attestation-formats W3C WebAuthn Spec - Attestation Statement Formats}
557
+ */
558
+ export declare type AttestationFormat = 'fido-u2f' | 'packed' | 'android-safetynet' | 'android-key' | 'tpm' | 'apple' | 'none';
559
+ /**
560
+ * Equivalent to `Uint8Array` before TypeScript 5.7, and `Uint8Array<ArrayBuffer>` in TypeScript 5.7
561
+ * and beyond.
562
+ *
563
+ * **Context**
564
+ *
565
+ * `Uint8Array` became a generic type in TypeScript 5.7, requiring types defined simply as
566
+ * `Uint8Array` to be refactored to `Uint8Array<ArrayBuffer>` starting in Deno 2.2. `Uint8Array` is
567
+ * _not_ generic in Deno 2.1.x and earlier, though, so this type helps bridge this gap.
568
+ *
569
+ * Inspired by Deno's std library:
570
+ *
571
+ * https://github.com/denoland/std/blob/b5a5fe4f96b91c1fe8dba5cc0270092dd11d3287/bytes/_types.ts#L11
572
+ */
573
+ export declare type Uint8Array_ = ReturnType<Uint8Array['slice']>;
574
+ /**
575
+ * Specifies the preferred authenticator attachment modality.
576
+ * - `platform`: A platform authenticator attached to the client device (e.g., Touch ID, Windows Hello)
577
+ * - `cross-platform`: A roaming authenticator not attached to the client device (e.g., USB security key)
578
+ *
579
+ * @see {@link https://w3c.github.io/webauthn/#enum-attachment W3C WebAuthn Spec - AuthenticatorAttachment}
580
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialCreationOptions/authenticatorSelection#authenticatorattachment MDN - authenticatorAttachment}
581
+ */
582
+ export declare type AuthenticatorAttachment = 'cross-platform' | 'platform';
583
+ //# sourceMappingURL=webauthn.dom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webauthn.dom.d.ts","sourceRoot":"","sources":["../../../src/lib/webauthn.dom.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEpC;;;;;;;;GAQG;AACH,MAAM,WAAW,sCAAsC;IACrD;;;OAGG;IACH,EAAE,EAAE,2BAA2B,CAAA;IAC/B;;;OAGG;IACH,IAAI,EAAE,iCAAiC,CAAA;IACvC;;;OAGG;IACH,SAAS,EAAE,eAAe,CAAA;IAC1B;;;OAGG;IACH,gBAAgB,EAAE,6BAA6B,EAAE,CAAA;IACjD;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;OAGG;IACH,kBAAkB,C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MAAM,CAAA;AAEV;;;;;;;;;;;;;GAaG;AACH,oBAAY,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAA;AAEzD;;;;;;;GAOG;AACH,oBAAY,uBAAuB,GAAG,gBAAgB,GAAG,UAAU,CAAA"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // from https://github.com/MasterKale/SimpleWebAuthn/blob/master/packages/browser/src/types/index.ts
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=webauthn.dom.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webauthn.dom.js","sourceRoot":"","sources":["../../../src/lib/webauthn.dom.ts"],"names":[],"mappings":";AAAA,oGAAoG"}