@spfn/auth 0.3.0-beta.2 → 0.3.0-beta.21

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 (47) hide show
  1. package/README.md +1488 -25
  2. package/dist/client-proof.d.ts +45 -15
  3. package/dist/client-proof.js +201 -5
  4. package/dist/client-proof.js.map +1 -1
  5. package/dist/client.d.ts +92 -1
  6. package/dist/client.js +58 -0
  7. package/dist/client.js.map +1 -1
  8. package/dist/config.d.ts +342 -0
  9. package/dist/config.js +153 -4
  10. package/dist/config.js.map +1 -1
  11. package/dist/errors.d.ts +396 -3
  12. package/dist/errors.js +257 -2
  13. package/dist/errors.js.map +1 -1
  14. package/dist/index.d.ts +202 -2
  15. package/dist/index.js +277 -3
  16. package/dist/index.js.map +1 -1
  17. package/dist/machine-principals-B7N8gux0.d.ts +3087 -0
  18. package/dist/nextjs/api.js +350 -12
  19. package/dist/nextjs/api.js.map +1 -1
  20. package/dist/nextjs/client.d.ts +28 -1
  21. package/dist/nextjs/client.js +24 -3
  22. package/dist/nextjs/client.js.map +1 -1
  23. package/dist/nextjs/server.d.ts +173 -3
  24. package/dist/nextjs/server.js +372 -10
  25. package/dist/nextjs/server.js.map +1 -1
  26. package/dist/server.d.ts +4167 -582
  27. package/dist/server.js +9618 -4341
  28. package/dist/server.js.map +1 -1
  29. package/dist/{session-DTHahDQ9.d.ts → session-Dfwu5g2W.d.ts} +28 -1
  30. package/migrations/20260810112144_colorful_tomorrow_man/migration.sql +18 -0
  31. package/migrations/20260810112144_colorful_tomorrow_man/snapshot.json +3576 -0
  32. package/migrations/20260901091716_fine_arclight/migration.sql +21 -0
  33. package/migrations/20260901091716_fine_arclight/snapshot.json +3849 -0
  34. package/migrations/20260906155957_natural_moonstone/migration.sql +33 -0
  35. package/migrations/20260906155957_natural_moonstone/snapshot.json +4275 -0
  36. package/migrations/20260907020904_giant_eternals/migration.sql +21 -0
  37. package/migrations/20260907020904_giant_eternals/snapshot.json +4561 -0
  38. package/migrations/20260907044807_eminent_angel/migration.sql +2 -0
  39. package/migrations/20260907044807_eminent_angel/snapshot.json +4561 -0
  40. package/migrations/20260918083158_foamy_roughhouse/migration.sql +55 -0
  41. package/migrations/20260918083158_foamy_roughhouse/snapshot.json +5271 -0
  42. package/migrations/20260918142743_smart_cassandra_nova/migration.sql +2 -0
  43. package/migrations/20260918142743_smart_cassandra_nova/snapshot.json +5297 -0
  44. package/migrations/20260918143800_fat_princess_powerful/migration.sql +17 -0
  45. package/migrations/20260918143800_fat_princess_powerful/snapshot.json +5523 -0
  46. package/package.json +9 -6
  47. package/dist/authenticate-55LeXHqZ.d.ts +0 -1447
package/dist/errors.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ConflictError, ForbiddenError, NotFoundError, UnauthorizedError, ValidationError, ErrorRegistry } from '@spfn/core/errors';
1
+ import { ConflictError, ForbiddenError, NotFoundError, ValidationError, UnauthorizedError, HttpError, ErrorRegistry } from '@spfn/core/errors';
2
2
 
3
3
  /**
4
4
  * Authentication & Authorization Error Classes
@@ -199,6 +199,25 @@ declare class InvalidKeyFingerprintError extends ValidationError {
199
199
  details?: Record<string, any>;
200
200
  });
201
201
  }
202
+ /**
203
+ * Key Algorithm Mismatch Error (400)
204
+ *
205
+ * Thrown when the submitted public key's SPKI type is not the one its declared
206
+ * algorithm needs — a P-256 EC key declared RS256, an RSA key declared ES256, a
207
+ * curve other than P-256 declared ES256, or bytes that are no SPKI key at all.
208
+ *
209
+ * The algorithm is stored beside the key and read back at proof verification;
210
+ * nothing re-derives it from the key material. So a mismatch accepted here
211
+ * surfaces only after the device believes it is enrolled, on every request it
212
+ * then makes. It is refused at registration instead, wherever key material is
213
+ * stored: register, login, rotate, invitation acceptance and device start.
214
+ */
215
+ declare class KeyAlgorithmMismatchError extends ValidationError {
216
+ constructor(data?: {
217
+ message?: string;
218
+ details?: Record<string, any>;
219
+ });
220
+ }
202
221
  /**
203
222
  * Key Not Found Error (404)
204
223
  *
@@ -212,6 +231,95 @@ declare class KeyNotFoundError extends NotFoundError {
212
231
  details?: Record<string, any>;
213
232
  });
214
233
  }
234
+ /**
235
+ * Revoke-All Link Error (404)
236
+ *
237
+ * Thrown when a signed sign-out-everywhere link cannot be acted on: unknown,
238
+ * expired, already spent, superseded by a newer one, issued against a key
239
+ * generation that has since moved, or belonging to an account that is not
240
+ * active.
241
+ *
242
+ * One error for every one of those, and the same body for each. Telling an
243
+ * expired link from an unknown one would tell whoever is holding a random value
244
+ * that it named a real outstanding link, and the sibling link flows refuse the
245
+ * same way for the same reason. The specific cause is logged.
246
+ *
247
+ * 404 rather than the 401 the password-reset link answers with: there is no
248
+ * credential here to have been wrong. The address the mail went to is the proof,
249
+ * and what the caller presented either names an outstanding link or names
250
+ * nothing.
251
+ */
252
+ declare class RevokeAllLinkError extends NotFoundError {
253
+ constructor(data?: {
254
+ message?: string;
255
+ details?: Record<string, any>;
256
+ });
257
+ }
258
+ /**
259
+ * Device Auth Not Found Error (404)
260
+ *
261
+ * Thrown when a device-code operation names a code the server cannot act on: one
262
+ * that was never issued, and one whose record has already been consumed.
263
+ *
264
+ * Those two are answered identically on purpose. A consumed record is a login
265
+ * that finished, and saying so would tell whoever holds the code that it was
266
+ * real — which is the difference between guessing at random and knowing a guess
267
+ * landed. Every route that accepts a code is rate limited for the same reason.
268
+ */
269
+ declare class DeviceAuthNotFoundError extends NotFoundError {
270
+ constructor(data?: {
271
+ message?: string;
272
+ details?: Record<string, any>;
273
+ });
274
+ }
275
+ /**
276
+ * Device Auth Expired Error (400)
277
+ *
278
+ * Thrown when a device-code operation names a record whose TTL has run out,
279
+ * whatever state it is in. The waiting device starts again; the approver is told
280
+ * the code on the other screen is stale.
281
+ *
282
+ * 400 rather than 401: on the approve and deny routes the caller's own session is
283
+ * fine, and answering 401 would send a signed-in user to a login screen over a
284
+ * code that simply sat too long.
285
+ */
286
+ declare class DeviceAuthExpiredError extends ValidationError {
287
+ constructor(data?: {
288
+ message?: string;
289
+ details?: Record<string, any>;
290
+ });
291
+ }
292
+ /**
293
+ * Device Auth Already Handled Error (409)
294
+ *
295
+ * Thrown when an approve, deny or info call names a record that has already been
296
+ * approved or denied. A decision on a device is made once — a second approval
297
+ * would let one code be answered twice, and re-approving a record the owner
298
+ * denied would undo the refusal.
299
+ *
300
+ * This is also what the loser of two concurrent approvals sees, since the
301
+ * transition names the state it moves from and only one call can match it.
302
+ */
303
+ declare class DeviceAuthAlreadyHandledError extends ConflictError {
304
+ constructor(data?: {
305
+ message?: string;
306
+ details?: Record<string, any>;
307
+ });
308
+ }
309
+ /**
310
+ * Device Auth Denied Error (403)
311
+ *
312
+ * Thrown when the waiting device polls a record its owner refused. Distinct from
313
+ * a pending answer, and distinct from a code that does not exist: the device
314
+ * asked a person and the person said no, so it should stop polling and say so
315
+ * rather than time out looking like a network fault.
316
+ */
317
+ declare class DeviceAuthDeniedError extends ForbiddenError {
318
+ constructor(data?: {
319
+ message?: string;
320
+ details?: Record<string, any>;
321
+ });
322
+ }
215
323
  /**
216
324
  * Nonce Key Binding Error (400)
217
325
  *
@@ -244,6 +352,73 @@ declare class NativeSignInUnsupportedError extends ValidationError {
244
352
  details?: Record<string, any>;
245
353
  });
246
354
  }
355
+ /**
356
+ * Invalid Signup Link Error (400)
357
+ *
358
+ * Thrown when an emailed signup confirmation link is unknown, expired, already
359
+ * consumed, or superseded by a newer request for the same address.
360
+ *
361
+ * One error for all four states, on purpose. Distinguishing "expired" from
362
+ * "unknown" tells a caller holding a random token whether it named a real
363
+ * pending signup, which is exactly the enumeration the request step avoids. The
364
+ * specific reason is logged.
365
+ */
366
+ declare class InvalidSignupLinkError extends ValidationError {
367
+ constructor(data?: {
368
+ message?: string;
369
+ details?: Record<string, any>;
370
+ });
371
+ }
372
+ /**
373
+ * Invalid Signup Setup Session Error (401)
374
+ *
375
+ * Thrown when the password-setup session backing a verified-email signup is
376
+ * missing, unknown, expired, superseded or already used.
377
+ *
378
+ * One error for every one of those, on purpose: telling a caller which of them
379
+ * applies tells them whether an address is mid-signup, which is the same
380
+ * enumeration the request step is careful not to leak.
381
+ */
382
+ declare class InvalidSignupSetupSessionError extends UnauthorizedError {
383
+ constructor(data?: {
384
+ message?: string;
385
+ details?: Record<string, any>;
386
+ });
387
+ }
388
+ /**
389
+ * Password Reset Link Error (401)
390
+ *
391
+ * Thrown when an emailed password reset link is unknown, expired, already
392
+ * consumed, superseded by a newer request, or belongs to an account that is no
393
+ * longer active.
394
+ *
395
+ * One error for every one of those, on purpose. Distinguishing "expired" from
396
+ * "unknown" tells a caller holding a random token whether it named a real
397
+ * pending reset, which is exactly the enumeration the request step avoids. The
398
+ * specific reason is logged.
399
+ */
400
+ declare class PasswordResetLinkError extends UnauthorizedError {
401
+ constructor(data?: {
402
+ message?: string;
403
+ details?: Record<string, any>;
404
+ });
405
+ }
406
+ /**
407
+ * Password Reset Session Error (401)
408
+ *
409
+ * Thrown when the password-setup session backing a reset is missing, unknown,
410
+ * expired, superseded or already used.
411
+ *
412
+ * One error for every one of those, for the same reason the link error is one
413
+ * error: which of them applies tells a caller whether an account is mid-reset,
414
+ * and that is the enumeration the request step is careful not to leak.
415
+ */
416
+ declare class PasswordResetSessionError extends UnauthorizedError {
417
+ constructor(data?: {
418
+ message?: string;
419
+ details?: Record<string, any>;
420
+ });
421
+ }
247
422
  /**
248
423
  * Unverified Email Link Error (400)
249
424
  *
@@ -335,6 +510,182 @@ declare class InsufficientRoleError extends ForbiddenError {
335
510
  details?: Record<string, any>;
336
511
  });
337
512
  }
513
+ /**
514
+ * Passkey Challenge Error (401)
515
+ *
516
+ * Thrown when the challenge a WebAuthn ceremony presents is unknown, expired,
517
+ * already spent, minted for the other ceremony, or minted for another account.
518
+ *
519
+ * One error for all five, on purpose. Telling a caller which applies tells them
520
+ * whether a challenge they did not mint exists and what it was for, and the
521
+ * remedy is the same in every case: start the ceremony again.
522
+ */
523
+ declare class PasskeyChallengeError extends UnauthorizedError {
524
+ constructor(data?: {
525
+ message?: string;
526
+ details?: Record<string, any>;
527
+ });
528
+ }
529
+ /**
530
+ * Passkey Verification Error (401)
531
+ *
532
+ * Thrown when an assertion or attestation does not verify: wrong origin, wrong
533
+ * rpId, a bad signature, a regressed signature counter — or, on login, a
534
+ * credential that is unknown or has been revoked.
535
+ *
536
+ * Those last two share this error with the cryptographic failures deliberately.
537
+ * A distinct "no such passkey" would answer, to anyone holding a credential id,
538
+ * whether it is enrolled here — and a revoked credential answering differently
539
+ * from an unknown one would say the account once had it.
540
+ */
541
+ declare class PasskeyVerificationError extends UnauthorizedError {
542
+ constructor(data?: {
543
+ message?: string;
544
+ details?: Record<string, any>;
545
+ });
546
+ }
547
+ /**
548
+ * Passkey Not Found Error (404)
549
+ *
550
+ * Thrown when a management operation names a passkey the caller does not own,
551
+ * or one already revoked. Every lookup is owner-scoped, so the answer is only
552
+ * ever "not yours" and says nothing about other accounts.
553
+ */
554
+ declare class PasskeyNotFoundError extends NotFoundError {
555
+ constructor(data?: {
556
+ message?: string;
557
+ details?: Record<string, any>;
558
+ });
559
+ }
560
+ /**
561
+ * Passkey Already Registered Error (409)
562
+ *
563
+ * Thrown when the credential presented for enrollment is already on file for
564
+ * some account — including one that revoked it. A credential id is reserved for
565
+ * good once used, so this is also the answer to re-enrolling one's own revoked
566
+ * passkey.
567
+ */
568
+ declare class PasskeyAlreadyRegisteredError extends ConflictError {
569
+ constructor(data?: {
570
+ message?: string;
571
+ details?: Record<string, any>;
572
+ });
573
+ }
574
+ /**
575
+ * Recent Authentication Required Error (403)
576
+ *
577
+ * Thrown when enrolling or revoking a passkey from a session that proved itself
578
+ * too long ago and carried no password. Clients branch on `code` to know to
579
+ * prompt for the password rather than to show a generic refusal, so the code is
580
+ * a stable field rather than a message they would have to match on.
581
+ */
582
+ declare class RecentAuthenticationRequiredError extends ForbiddenError {
583
+ readonly code = "RECENT_AUTH_REQUIRED";
584
+ constructor(data?: {
585
+ message?: string;
586
+ details?: Record<string, any>;
587
+ });
588
+ }
589
+ /**
590
+ * Last Recovery Credential Error (409)
591
+ *
592
+ * Thrown when revoking a passkey would leave the account with no way back in:
593
+ * no other live passkey, no password, and no linked social account. There is no
594
+ * password reset in this package, so that state is not recoverable by support
595
+ * either — the refusal is the only thing standing between the owner and a
596
+ * locked account.
597
+ *
598
+ * Clients branch on `code` to offer "set a password first" instead of a generic
599
+ * refusal.
600
+ */
601
+ declare class LastRecoveryCredentialError extends ConflictError {
602
+ readonly code = "LAST_RECOVERY_CREDENTIAL";
603
+ constructor(data?: {
604
+ message?: string;
605
+ details?: Record<string, any>;
606
+ });
607
+ }
608
+ /**
609
+ * Passkey Config Error (500)
610
+ *
611
+ * Thrown at boot when the passkey relying-party configuration cannot be honoured
612
+ * — an origin that is not https outside localhost, an origin off the rpId, an
613
+ * unsupported user-verification value.
614
+ *
615
+ * A refusal at boot rather than at the first ceremony: every one of these makes
616
+ * every passkey operation fail, and the drift is between environments, so the
617
+ * deploy that introduces it is where it has to surface.
618
+ */
619
+ declare class PasskeyConfigError extends HttpError {
620
+ constructor(data: {
621
+ message: string;
622
+ details?: Record<string, any>;
623
+ });
624
+ }
625
+ /**
626
+ * OAuth2 Unknown Client Error (400)
627
+ *
628
+ * Thrown by the API authorize endpoints when `client_id` names no registered
629
+ * client. One of the two refusals that must NOT be turned into a redirect: with
630
+ * no client there is no registered redirect URI, so the only place left to send
631
+ * the error is the one the request supplied — which is exactly the open redirect
632
+ * this rule exists to close. The consent screen shows it instead.
633
+ */
634
+ declare class OAuth2UnknownClientError extends ValidationError {
635
+ constructor(data?: {
636
+ message?: string;
637
+ details?: Record<string, any>;
638
+ });
639
+ }
640
+ /**
641
+ * OAuth2 Redirect URI Mismatch Error (400)
642
+ *
643
+ * Thrown when `redirect_uri` is not one the client registered. The second
644
+ * non-redirectable refusal, for the same reason as the first: redirecting the
645
+ * error to an unregistered URI is the attack.
646
+ */
647
+ declare class OAuth2RedirectUriMismatchError extends ValidationError {
648
+ constructor(data?: {
649
+ message?: string;
650
+ details?: Record<string, any>;
651
+ });
652
+ }
653
+ /**
654
+ * OAuth2 Authorize Redirect Error (400)
655
+ *
656
+ * Every other authorize-time refusal — `invalid_request`, `invalid_scope`,
657
+ * `invalid_target`, `access_denied`. The client and its redirect URI are both
658
+ * known by the time these are decided, so RFC 6749 §4.1.2.1 says the error goes
659
+ * back to the client as query parameters on that URI rather than to the person.
660
+ *
661
+ * The API cannot perform that redirect — it is answering the web app's consent
662
+ * handler, not the browser — so it carries the pieces in `details` and the
663
+ * handler builds the 302. `redirectUri` is the registered-and-matched value, not
664
+ * the raw parameter, which is what makes it safe to send somebody to.
665
+ */
666
+ declare class OAuth2AuthorizeRedirectError extends ValidationError {
667
+ constructor(data: {
668
+ error: string;
669
+ redirectUri: string;
670
+ state?: string;
671
+ message?: string;
672
+ details?: Record<string, any>;
673
+ });
674
+ }
675
+ /**
676
+ * OAuth2 Grant Not Found Error (404)
677
+ *
678
+ * Thrown by `DELETE /_auth/oauth2/grants/:id` when the caller owns no live grant
679
+ * of that id. A grant belonging to somebody else answers the same way as one
680
+ * that never existed — the id is a number in a URL, and telling the two apart
681
+ * would let anyone count other people's connected clients.
682
+ */
683
+ declare class OAuth2GrantNotFoundError extends NotFoundError {
684
+ constructor(data?: {
685
+ message?: string;
686
+ details?: Record<string, any>;
687
+ });
688
+ }
338
689
 
339
690
  type authErrors_AccountAlreadyExistsError = AccountAlreadyExistsError;
340
691
  declare const authErrors_AccountAlreadyExistsError: typeof AccountAlreadyExistsError;
@@ -346,6 +697,14 @@ type authErrors_DeletionAlreadyRequestedError = DeletionAlreadyRequestedError;
346
697
  declare const authErrors_DeletionAlreadyRequestedError: typeof DeletionAlreadyRequestedError;
347
698
  type authErrors_DeletionNotRequestedError = DeletionNotRequestedError;
348
699
  declare const authErrors_DeletionNotRequestedError: typeof DeletionNotRequestedError;
700
+ type authErrors_DeviceAuthAlreadyHandledError = DeviceAuthAlreadyHandledError;
701
+ declare const authErrors_DeviceAuthAlreadyHandledError: typeof DeviceAuthAlreadyHandledError;
702
+ type authErrors_DeviceAuthDeniedError = DeviceAuthDeniedError;
703
+ declare const authErrors_DeviceAuthDeniedError: typeof DeviceAuthDeniedError;
704
+ type authErrors_DeviceAuthExpiredError = DeviceAuthExpiredError;
705
+ declare const authErrors_DeviceAuthExpiredError: typeof DeviceAuthExpiredError;
706
+ type authErrors_DeviceAuthNotFoundError = DeviceAuthNotFoundError;
707
+ declare const authErrors_DeviceAuthNotFoundError: typeof DeviceAuthNotFoundError;
349
708
  type authErrors_ImmediateDeletionNotAllowedError = ImmediateDeletionNotAllowedError;
350
709
  declare const authErrors_ImmediateDeletionNotAllowedError: typeof ImmediateDeletionNotAllowedError;
351
710
  type authErrors_InsufficientPermissionsError = InsufficientPermissionsError;
@@ -356,6 +715,10 @@ type authErrors_InvalidCredentialsError = InvalidCredentialsError;
356
715
  declare const authErrors_InvalidCredentialsError: typeof InvalidCredentialsError;
357
716
  type authErrors_InvalidKeyFingerprintError = InvalidKeyFingerprintError;
358
717
  declare const authErrors_InvalidKeyFingerprintError: typeof InvalidKeyFingerprintError;
718
+ type authErrors_InvalidSignupLinkError = InvalidSignupLinkError;
719
+ declare const authErrors_InvalidSignupLinkError: typeof InvalidSignupLinkError;
720
+ type authErrors_InvalidSignupSetupSessionError = InvalidSignupSetupSessionError;
721
+ declare const authErrors_InvalidSignupSetupSessionError: typeof InvalidSignupSetupSessionError;
359
722
  type authErrors_InvalidSocialTokenError = InvalidSocialTokenError;
360
723
  declare const authErrors_InvalidSocialTokenError: typeof InvalidSocialTokenError;
361
724
  type authErrors_InvalidTokenError = InvalidTokenError;
@@ -364,20 +727,50 @@ type authErrors_InvalidVerificationCodeError = InvalidVerificationCodeError;
364
727
  declare const authErrors_InvalidVerificationCodeError: typeof InvalidVerificationCodeError;
365
728
  type authErrors_InvalidVerificationTokenError = InvalidVerificationTokenError;
366
729
  declare const authErrors_InvalidVerificationTokenError: typeof InvalidVerificationTokenError;
730
+ type authErrors_KeyAlgorithmMismatchError = KeyAlgorithmMismatchError;
731
+ declare const authErrors_KeyAlgorithmMismatchError: typeof KeyAlgorithmMismatchError;
367
732
  type authErrors_KeyExpiredError = KeyExpiredError;
368
733
  declare const authErrors_KeyExpiredError: typeof KeyExpiredError;
369
734
  type authErrors_KeyIdAlreadyRegisteredError = KeyIdAlreadyRegisteredError;
370
735
  declare const authErrors_KeyIdAlreadyRegisteredError: typeof KeyIdAlreadyRegisteredError;
371
736
  type authErrors_KeyNotFoundError = KeyNotFoundError;
372
737
  declare const authErrors_KeyNotFoundError: typeof KeyNotFoundError;
738
+ type authErrors_LastRecoveryCredentialError = LastRecoveryCredentialError;
739
+ declare const authErrors_LastRecoveryCredentialError: typeof LastRecoveryCredentialError;
373
740
  type authErrors_NativeSignInUnsupportedError = NativeSignInUnsupportedError;
374
741
  declare const authErrors_NativeSignInUnsupportedError: typeof NativeSignInUnsupportedError;
375
742
  type authErrors_NonceKeyBindingError = NonceKeyBindingError;
376
743
  declare const authErrors_NonceKeyBindingError: typeof NonceKeyBindingError;
744
+ type authErrors_OAuth2AuthorizeRedirectError = OAuth2AuthorizeRedirectError;
745
+ declare const authErrors_OAuth2AuthorizeRedirectError: typeof OAuth2AuthorizeRedirectError;
746
+ type authErrors_OAuth2GrantNotFoundError = OAuth2GrantNotFoundError;
747
+ declare const authErrors_OAuth2GrantNotFoundError: typeof OAuth2GrantNotFoundError;
748
+ type authErrors_OAuth2RedirectUriMismatchError = OAuth2RedirectUriMismatchError;
749
+ declare const authErrors_OAuth2RedirectUriMismatchError: typeof OAuth2RedirectUriMismatchError;
750
+ type authErrors_OAuth2UnknownClientError = OAuth2UnknownClientError;
751
+ declare const authErrors_OAuth2UnknownClientError: typeof OAuth2UnknownClientError;
752
+ type authErrors_PasskeyAlreadyRegisteredError = PasskeyAlreadyRegisteredError;
753
+ declare const authErrors_PasskeyAlreadyRegisteredError: typeof PasskeyAlreadyRegisteredError;
754
+ type authErrors_PasskeyChallengeError = PasskeyChallengeError;
755
+ declare const authErrors_PasskeyChallengeError: typeof PasskeyChallengeError;
756
+ type authErrors_PasskeyConfigError = PasskeyConfigError;
757
+ declare const authErrors_PasskeyConfigError: typeof PasskeyConfigError;
758
+ type authErrors_PasskeyNotFoundError = PasskeyNotFoundError;
759
+ declare const authErrors_PasskeyNotFoundError: typeof PasskeyNotFoundError;
760
+ type authErrors_PasskeyVerificationError = PasskeyVerificationError;
761
+ declare const authErrors_PasskeyVerificationError: typeof PasskeyVerificationError;
762
+ type authErrors_PasswordResetLinkError = PasswordResetLinkError;
763
+ declare const authErrors_PasswordResetLinkError: typeof PasswordResetLinkError;
764
+ type authErrors_PasswordResetSessionError = PasswordResetSessionError;
765
+ declare const authErrors_PasswordResetSessionError: typeof PasswordResetSessionError;
766
+ type authErrors_RecentAuthenticationRequiredError = RecentAuthenticationRequiredError;
767
+ declare const authErrors_RecentAuthenticationRequiredError: typeof RecentAuthenticationRequiredError;
377
768
  type authErrors_RegistrationRejectedError = RegistrationRejectedError;
378
769
  declare const authErrors_RegistrationRejectedError: typeof RegistrationRejectedError;
379
770
  type authErrors_ReservedUsernameError = ReservedUsernameError;
380
771
  declare const authErrors_ReservedUsernameError: typeof ReservedUsernameError;
772
+ type authErrors_RevokeAllLinkError = RevokeAllLinkError;
773
+ declare const authErrors_RevokeAllLinkError: typeof RevokeAllLinkError;
381
774
  type authErrors_TokenExpiredError = TokenExpiredError;
382
775
  declare const authErrors_TokenExpiredError: typeof TokenExpiredError;
383
776
  type authErrors_UnverifiedEmailLinkError = UnverifiedEmailLinkError;
@@ -389,7 +782,7 @@ declare const authErrors_VerificationTokenPurposeMismatchError: typeof Verificat
389
782
  type authErrors_VerificationTokenTargetMismatchError = VerificationTokenTargetMismatchError;
390
783
  declare const authErrors_VerificationTokenTargetMismatchError: typeof VerificationTokenTargetMismatchError;
391
784
  declare namespace authErrors {
392
- export { authErrors_AccountAlreadyExistsError as AccountAlreadyExistsError, authErrors_AccountDisabledError as AccountDisabledError, authErrors_AccountPendingDeletionError as AccountPendingDeletionError, authErrors_DeletionAlreadyRequestedError as DeletionAlreadyRequestedError, authErrors_DeletionNotRequestedError as DeletionNotRequestedError, authErrors_ImmediateDeletionNotAllowedError as ImmediateDeletionNotAllowedError, authErrors_InsufficientPermissionsError as InsufficientPermissionsError, authErrors_InsufficientRoleError as InsufficientRoleError, authErrors_InvalidCredentialsError as InvalidCredentialsError, authErrors_InvalidKeyFingerprintError as InvalidKeyFingerprintError, authErrors_InvalidSocialTokenError as InvalidSocialTokenError, authErrors_InvalidTokenError as InvalidTokenError, authErrors_InvalidVerificationCodeError as InvalidVerificationCodeError, authErrors_InvalidVerificationTokenError as InvalidVerificationTokenError, authErrors_KeyExpiredError as KeyExpiredError, authErrors_KeyIdAlreadyRegisteredError as KeyIdAlreadyRegisteredError, authErrors_KeyNotFoundError as KeyNotFoundError, authErrors_NativeSignInUnsupportedError as NativeSignInUnsupportedError, authErrors_NonceKeyBindingError as NonceKeyBindingError, authErrors_RegistrationRejectedError as RegistrationRejectedError, authErrors_ReservedUsernameError as ReservedUsernameError, authErrors_TokenExpiredError as TokenExpiredError, authErrors_UnverifiedEmailLinkError as UnverifiedEmailLinkError, authErrors_UsernameAlreadyTakenError as UsernameAlreadyTakenError, authErrors_VerificationTokenPurposeMismatchError as VerificationTokenPurposeMismatchError, authErrors_VerificationTokenTargetMismatchError as VerificationTokenTargetMismatchError };
785
+ export { authErrors_AccountAlreadyExistsError as AccountAlreadyExistsError, authErrors_AccountDisabledError as AccountDisabledError, authErrors_AccountPendingDeletionError as AccountPendingDeletionError, authErrors_DeletionAlreadyRequestedError as DeletionAlreadyRequestedError, authErrors_DeletionNotRequestedError as DeletionNotRequestedError, authErrors_DeviceAuthAlreadyHandledError as DeviceAuthAlreadyHandledError, authErrors_DeviceAuthDeniedError as DeviceAuthDeniedError, authErrors_DeviceAuthExpiredError as DeviceAuthExpiredError, authErrors_DeviceAuthNotFoundError as DeviceAuthNotFoundError, authErrors_ImmediateDeletionNotAllowedError as ImmediateDeletionNotAllowedError, authErrors_InsufficientPermissionsError as InsufficientPermissionsError, authErrors_InsufficientRoleError as InsufficientRoleError, authErrors_InvalidCredentialsError as InvalidCredentialsError, authErrors_InvalidKeyFingerprintError as InvalidKeyFingerprintError, authErrors_InvalidSignupLinkError as InvalidSignupLinkError, authErrors_InvalidSignupSetupSessionError as InvalidSignupSetupSessionError, authErrors_InvalidSocialTokenError as InvalidSocialTokenError, authErrors_InvalidTokenError as InvalidTokenError, authErrors_InvalidVerificationCodeError as InvalidVerificationCodeError, authErrors_InvalidVerificationTokenError as InvalidVerificationTokenError, authErrors_KeyAlgorithmMismatchError as KeyAlgorithmMismatchError, authErrors_KeyExpiredError as KeyExpiredError, authErrors_KeyIdAlreadyRegisteredError as KeyIdAlreadyRegisteredError, authErrors_KeyNotFoundError as KeyNotFoundError, authErrors_LastRecoveryCredentialError as LastRecoveryCredentialError, authErrors_NativeSignInUnsupportedError as NativeSignInUnsupportedError, authErrors_NonceKeyBindingError as NonceKeyBindingError, authErrors_OAuth2AuthorizeRedirectError as OAuth2AuthorizeRedirectError, authErrors_OAuth2GrantNotFoundError as OAuth2GrantNotFoundError, authErrors_OAuth2RedirectUriMismatchError as OAuth2RedirectUriMismatchError, authErrors_OAuth2UnknownClientError as OAuth2UnknownClientError, authErrors_PasskeyAlreadyRegisteredError as PasskeyAlreadyRegisteredError, authErrors_PasskeyChallengeError as PasskeyChallengeError, authErrors_PasskeyConfigError as PasskeyConfigError, authErrors_PasskeyNotFoundError as PasskeyNotFoundError, authErrors_PasskeyVerificationError as PasskeyVerificationError, authErrors_PasswordResetLinkError as PasswordResetLinkError, authErrors_PasswordResetSessionError as PasswordResetSessionError, authErrors_RecentAuthenticationRequiredError as RecentAuthenticationRequiredError, authErrors_RegistrationRejectedError as RegistrationRejectedError, authErrors_ReservedUsernameError as ReservedUsernameError, authErrors_RevokeAllLinkError as RevokeAllLinkError, authErrors_TokenExpiredError as TokenExpiredError, authErrors_UnverifiedEmailLinkError as UnverifiedEmailLinkError, authErrors_UsernameAlreadyTakenError as UsernameAlreadyTakenError, authErrors_VerificationTokenPurposeMismatchError as VerificationTokenPurposeMismatchError, authErrors_VerificationTokenTargetMismatchError as VerificationTokenTargetMismatchError };
393
786
  }
394
787
 
395
788
  /**
@@ -398,4 +791,4 @@ declare namespace authErrors {
398
791
 
399
792
  declare const authErrorRegistry: ErrorRegistry;
400
793
 
401
- export { AccountAlreadyExistsError, AccountDisabledError, AccountPendingDeletionError, authErrors as AuthError, DeletionAlreadyRequestedError, DeletionNotRequestedError, ImmediateDeletionNotAllowedError, InsufficientPermissionsError, InsufficientRoleError, InvalidCredentialsError, InvalidKeyFingerprintError, InvalidSocialTokenError, InvalidTokenError, InvalidVerificationCodeError, InvalidVerificationTokenError, KeyExpiredError, KeyIdAlreadyRegisteredError, KeyNotFoundError, NativeSignInUnsupportedError, NonceKeyBindingError, RegistrationRejectedError, ReservedUsernameError, TokenExpiredError, UnverifiedEmailLinkError, UsernameAlreadyTakenError, VerificationTokenPurposeMismatchError, VerificationTokenTargetMismatchError, authErrorRegistry };
794
+ export { AccountAlreadyExistsError, AccountDisabledError, AccountPendingDeletionError, authErrors as AuthError, DeletionAlreadyRequestedError, DeletionNotRequestedError, DeviceAuthAlreadyHandledError, DeviceAuthDeniedError, DeviceAuthExpiredError, DeviceAuthNotFoundError, ImmediateDeletionNotAllowedError, InsufficientPermissionsError, InsufficientRoleError, InvalidCredentialsError, InvalidKeyFingerprintError, InvalidSignupLinkError, InvalidSignupSetupSessionError, InvalidSocialTokenError, InvalidTokenError, InvalidVerificationCodeError, InvalidVerificationTokenError, KeyAlgorithmMismatchError, KeyExpiredError, KeyIdAlreadyRegisteredError, KeyNotFoundError, LastRecoveryCredentialError, NativeSignInUnsupportedError, NonceKeyBindingError, OAuth2AuthorizeRedirectError, OAuth2GrantNotFoundError, OAuth2RedirectUriMismatchError, OAuth2UnknownClientError, PasskeyAlreadyRegisteredError, PasskeyChallengeError, PasskeyConfigError, PasskeyNotFoundError, PasskeyVerificationError, PasswordResetLinkError, PasswordResetSessionError, RecentAuthenticationRequiredError, RegistrationRejectedError, ReservedUsernameError, RevokeAllLinkError, TokenExpiredError, UnverifiedEmailLinkError, UsernameAlreadyTakenError, VerificationTokenPurposeMismatchError, VerificationTokenTargetMismatchError, authErrorRegistry };