@yielded/auth 0.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +18 -0
- package/dist/Atom.d.mts +5 -0
- package/dist/Atom.mjs +5 -0
- package/dist/Auth.d.mts +9 -0
- package/dist/Auth.mjs +7 -0
- package/dist/AuthContract.d.mts +4 -0
- package/dist/AuthContract.mjs +4 -0
- package/dist/AuthSession.d.mts +82 -0
- package/dist/AuthSession.mjs +138 -0
- package/dist/AuthSession.mjs.map +1 -0
- package/dist/AuthStore.d.mts +68 -0
- package/dist/AuthStore.mjs +194 -0
- package/dist/AuthStore.mjs.map +1 -0
- package/dist/AuthTokenCodec.d.mts +40 -0
- package/dist/AuthTokenCodec.mjs +104 -0
- package/dist/AuthTokenCodec.mjs.map +1 -0
- package/dist/Client.d.mts +2 -0
- package/dist/Client.mjs +2 -0
- package/dist/Cloudflare.d.mts +89 -0
- package/dist/Cloudflare.mjs +166 -0
- package/dist/Cloudflare.mjs.map +1 -0
- package/dist/Drizzle.d.mts +28 -0
- package/dist/Drizzle.mjs +27 -0
- package/dist/DrizzleD1.d.mts +935 -0
- package/dist/DrizzleD1.mjs +29 -0
- package/dist/DrizzleD1.mjs.map +1 -0
- package/dist/DrizzleLibsql.d.mts +2288 -0
- package/dist/DrizzleLibsql.mjs +85 -0
- package/dist/DrizzleLibsql.mjs.map +1 -0
- package/dist/DrizzleMysql2.d.mts +1809 -0
- package/dist/DrizzleMysql2.mjs +55 -0
- package/dist/DrizzleMysql2.mjs.map +1 -0
- package/dist/DrizzlePglite.d.mts +1808 -0
- package/dist/DrizzlePglite.mjs +45 -0
- package/dist/DrizzlePglite.mjs.map +1 -0
- package/dist/DrizzlePostgres.d.mts +1808 -0
- package/dist/DrizzlePostgres.mjs +45 -0
- package/dist/DrizzlePostgres.mjs.map +1 -0
- package/dist/DrizzleSqliteBun.d.mts +2287 -0
- package/dist/DrizzleSqliteBun.mjs +62 -0
- package/dist/DrizzleSqliteBun.mjs.map +1 -0
- package/dist/DrizzleSqliteDo.d.mts +2343 -0
- package/dist/DrizzleSqliteDo.mjs +105 -0
- package/dist/DrizzleSqliteDo.mjs.map +1 -0
- package/dist/DrizzleSqliteNode.d.mts +2287 -0
- package/dist/DrizzleSqliteNode.mjs +62 -0
- package/dist/DrizzleSqliteNode.mjs.map +1 -0
- package/dist/DrizzleSqliteWasm.d.mts +2287 -0
- package/dist/DrizzleSqliteWasm.mjs +62 -0
- package/dist/DrizzleSqliteWasm.mjs.map +1 -0
- package/dist/Email.d.mts +12 -0
- package/dist/Email.mjs +11 -0
- package/dist/EmailOtp.d.mts +42 -0
- package/dist/EmailOtp.mjs +120 -0
- package/dist/EmailOtp.mjs.map +1 -0
- package/dist/EmailOtpSender.d.mts +22 -0
- package/dist/EmailOtpSender.mjs +18 -0
- package/dist/EmailOtpSender.mjs.map +1 -0
- package/dist/Errors.d.mts +55 -0
- package/dist/Errors.mjs +31 -0
- package/dist/Errors.mjs.map +1 -0
- package/dist/GitHub.d.mts +5 -0
- package/dist/GitHub.mjs +4 -0
- package/dist/Hooks.d.mts +6 -0
- package/dist/Hooks.mjs +6 -0
- package/dist/Http.d.mts +12 -0
- package/dist/Http.mjs +12 -0
- package/dist/HttpServer.d.mts +103 -0
- package/dist/HttpServer.mjs +326 -0
- package/dist/HttpServer.mjs.map +1 -0
- package/dist/Identity.d.mts +9 -0
- package/dist/Identity.mjs +9 -0
- package/dist/IdentityResolver.d.mts +16 -0
- package/dist/IdentityResolver.mjs +12 -0
- package/dist/IdentityResolver.mjs.map +1 -0
- package/dist/OAuth.d.mts +36 -0
- package/dist/OAuth.mjs +35 -0
- package/dist/OpenIdClient.d.mts +3 -0
- package/dist/OpenIdClient.mjs +3 -0
- package/dist/OpenIdClientConnected.d.mts +4 -0
- package/dist/OpenIdClientConnected.mjs +3 -0
- package/dist/OperationHttp.d.mts +3 -0
- package/dist/OperationHttp.mjs +3 -0
- package/dist/OperationHttpClient.d.mts +2 -0
- package/dist/OperationHttpClient.mjs +2 -0
- package/dist/OperationHttpServer.d.mts +5 -0
- package/dist/OperationHttpServer.mjs +4 -0
- package/dist/Operations.d.mts +8 -0
- package/dist/Operations.mjs +8 -0
- package/dist/Passkey.d.mts +12 -0
- package/dist/Passkey.mjs +12 -0
- package/dist/PasskeyBrowser.d.mts +4 -0
- package/dist/PasskeyBrowser.mjs +4 -0
- package/dist/PasskeyContract.d.mts +641 -0
- package/dist/PasskeyContract.mjs +174 -0
- package/dist/PasskeyContract.mjs.map +1 -0
- package/dist/PasskeyPassword.d.mts +412 -0
- package/dist/PasskeyPassword.mjs +174 -0
- package/dist/PasskeyPassword.mjs.map +1 -0
- package/dist/PasskeySimpleWebAuthn.d.mts +3 -0
- package/dist/PasskeySimpleWebAuthn.mjs +3 -0
- package/dist/Password.d.mts +19 -0
- package/dist/Password.mjs +17 -0
- package/dist/PasswordAuth.d.mts +45 -0
- package/dist/PasswordAuth.mjs +79 -0
- package/dist/PasswordAuth.mjs.map +1 -0
- package/dist/PasswordCredentialStore.d.mts +46 -0
- package/dist/PasswordCredentialStore.mjs +62 -0
- package/dist/PasswordCredentialStore.mjs.map +1 -0
- package/dist/PasswordHasher.d.mts +31 -0
- package/dist/PasswordHasher.mjs +76 -0
- package/dist/PasswordHasher.mjs.map +1 -0
- package/dist/PhoneOtp.d.mts +11 -0
- package/dist/PhoneOtp.mjs +11 -0
- package/dist/Policy.d.mts +52 -0
- package/dist/Policy.mjs +36 -0
- package/dist/Policy.mjs.map +1 -0
- package/dist/Proofs.d.mts +14 -0
- package/dist/Proofs.mjs +13 -0
- package/dist/Rpc.d.mts +12 -0
- package/dist/Rpc.mjs +11 -0
- package/dist/Rpc.mjs.map +1 -0
- package/dist/Schema.d.mts +160 -0
- package/dist/Schema.mjs +141 -0
- package/dist/Schema.mjs.map +1 -0
- package/dist/SessionContract.d.mts +3 -0
- package/dist/SessionContract.mjs +3 -0
- package/dist/Sessions.d.mts +14 -0
- package/dist/Sessions.mjs +12 -0
- package/dist/Testing.d.mts +7 -0
- package/dist/Testing.mjs +7 -0
- package/dist/Totp.d.mts +8 -0
- package/dist/Totp.mjs +8 -0
- package/dist/TotpContract.d.mts +318 -0
- package/dist/TotpContract.mjs +119 -0
- package/dist/TotpContract.mjs.map +1 -0
- package/dist/WebCrypto.d.mts +28 -0
- package/dist/WebCrypto.mjs +42 -0
- package/dist/WebCrypto.mjs.map +1 -0
- package/dist/Workflows.d.mts +16 -0
- package/dist/Workflows.mjs +11 -0
- package/dist/Workflows.mjs.map +1 -0
- package/dist/atom/AuthAtomLifetime.d.mts +35 -0
- package/dist/atom/AuthAtomLifetime.mjs +50 -0
- package/dist/atom/AuthAtomLifetime.mjs.map +1 -0
- package/dist/atom/AuthAtomWorkflow.d.mts +17 -0
- package/dist/atom/AuthAtomWorkflow.mjs +9 -0
- package/dist/atom/AuthAtomWorkflow.mjs.map +1 -0
- package/dist/atom/client.d.mts +43 -0
- package/dist/atom/client.mjs +168 -0
- package/dist/atom/client.mjs.map +1 -0
- package/dist/atom/operations.d.mts +35 -0
- package/dist/atom/operations.mjs +58 -0
- package/dist/atom/operations.mjs.map +1 -0
- package/dist/atom/scoped-runtime.mjs +151 -0
- package/dist/atom/scoped-runtime.mjs.map +1 -0
- package/dist/auth/Auth.d.mts +7806 -0
- package/dist/auth/Auth.mjs +141 -0
- package/dist/auth/Auth.mjs.map +1 -0
- package/dist/auth/AuthConfigurationError.d.mts +10 -0
- package/dist/auth/AuthConfigurationError.mjs +14 -0
- package/dist/auth/AuthConfigurationError.mjs.map +1 -0
- package/dist/auth/AuthRequest.d.mts +21 -0
- package/dist/auth/AuthRequest.mjs +10 -0
- package/dist/auth/AuthRequest.mjs.map +1 -0
- package/dist/auth/AuthStrategy.d.mts +23 -0
- package/dist/auth/AuthStrategy.mjs +33 -0
- package/dist/auth/AuthStrategy.mjs.map +1 -0
- package/dist/auth/ConsumeDecision.d.mts +11 -0
- package/dist/auth/actions.d.mts +18 -0
- package/dist/auth/actions.mjs +70 -0
- package/dist/auth/actions.mjs.map +1 -0
- package/dist/auth/defaults.mjs +12 -0
- package/dist/auth/defaults.mjs.map +1 -0
- package/dist/auth/definition.d.mts +46 -0
- package/dist/auth/session.d.mts +27 -0
- package/dist/auth/session.mjs +56 -0
- package/dist/auth/session.mjs.map +1 -0
- package/dist/drizzle/D1BatchStatements.d.mts +11 -0
- package/dist/drizzle/D1BatchStatements.mjs +8 -0
- package/dist/drizzle/D1BatchStatements.mjs.map +1 -0
- package/dist/drizzle/PasswordPreparedPostconditions.mjs +12 -0
- package/dist/drizzle/PasswordPreparedPostconditions.mjs.map +1 -0
- package/dist/drizzle/SuppliedService.d.mts +10 -0
- package/dist/drizzle/d1-emails.d.mts +68 -0
- package/dist/drizzle/d1-emails.mjs +580 -0
- package/dist/drizzle/d1-emails.mjs.map +1 -0
- package/dist/drizzle/d1-generated-statement.mjs +79 -0
- package/dist/drizzle/d1-generated-statement.mjs.map +1 -0
- package/dist/drizzle/d1-identity.d.mts +33 -0
- package/dist/drizzle/d1-identity.mjs +120 -0
- package/dist/drizzle/d1-identity.mjs.map +1 -0
- package/dist/drizzle/d1-oauth.d.mts +316 -0
- package/dist/drizzle/d1-oauth.mjs +79 -0
- package/dist/drizzle/d1-oauth.mjs.map +1 -0
- package/dist/drizzle/d1-passkey.d.mts +52 -0
- package/dist/drizzle/d1-passkey.mjs +97 -0
- package/dist/drizzle/d1-passkey.mjs.map +1 -0
- package/dist/drizzle/d1-password-prepared.d.mts +27 -0
- package/dist/drizzle/d1-password-prepared.mjs +464 -0
- package/dist/drizzle/d1-password-prepared.mjs.map +1 -0
- package/dist/drizzle/d1-passwords.d.mts +96 -0
- package/dist/drizzle/d1-passwords.mjs +1008 -0
- package/dist/drizzle/d1-passwords.mjs.map +1 -0
- package/dist/drizzle/d1-phone.d.mts +29 -0
- package/dist/drizzle/d1-phone.mjs +33 -0
- package/dist/drizzle/d1-phone.mjs.map +1 -0
- package/dist/drizzle/d1-planning.d.mts +12 -0
- package/dist/drizzle/d1-planning.mjs +43 -0
- package/dist/drizzle/d1-planning.mjs.map +1 -0
- package/dist/drizzle/d1-proofs.d.mts +88 -0
- package/dist/drizzle/d1-proofs.mjs +833 -0
- package/dist/drizzle/d1-proofs.mjs.map +1 -0
- package/dist/drizzle/d1-sessions.d.mts +77 -0
- package/dist/drizzle/d1-sessions.mjs +970 -0
- package/dist/drizzle/d1-sessions.mjs.map +1 -0
- package/dist/drizzle/d1-totp.d.mts +27 -0
- package/dist/drizzle/d1-totp.mjs +28 -0
- package/dist/drizzle/d1-totp.mjs.map +1 -0
- package/dist/drizzle/email-model.d.mts +352 -0
- package/dist/drizzle/email-model.mjs +21 -0
- package/dist/drizzle/email-model.mjs.map +1 -0
- package/dist/drizzle/email-registration.d.mts +33 -0
- package/dist/drizzle/email-registration.mjs +238 -0
- package/dist/drizzle/email-registration.mjs.map +1 -0
- package/dist/drizzle/email-sql.d.mts +18 -0
- package/dist/drizzle/email-sql.mjs +473 -0
- package/dist/drizzle/email-sql.mjs.map +1 -0
- package/dist/drizzle/email-target.d.mts +28 -0
- package/dist/drizzle/email-target.mjs +75 -0
- package/dist/drizzle/email-target.mjs.map +1 -0
- package/dist/drizzle/model.d.mts +259 -0
- package/dist/drizzle/model.mjs +81 -0
- package/dist/drizzle/model.mjs.map +1 -0
- package/dist/drizzle/mysql-emails.d.mts +82 -0
- package/dist/drizzle/mysql-emails.mjs +38 -0
- package/dist/drizzle/mysql-emails.mjs.map +1 -0
- package/dist/drizzle/mysql-identity.d.mts +24 -0
- package/dist/drizzle/mysql-identity.mjs +95 -0
- package/dist/drizzle/mysql-identity.mjs.map +1 -0
- package/dist/drizzle/mysql-password-prepared.d.mts +32 -0
- package/dist/drizzle/mysql-password-prepared.mjs +16 -0
- package/dist/drizzle/mysql-password-prepared.mjs.map +1 -0
- package/dist/drizzle/mysql-passwords.d.mts +102 -0
- package/dist/drizzle/mysql-passwords.mjs +38 -0
- package/dist/drizzle/mysql-passwords.mjs.map +1 -0
- package/dist/drizzle/mysql-proofs.d.mts +83 -0
- package/dist/drizzle/mysql-proofs.mjs +23 -0
- package/dist/drizzle/mysql-proofs.mjs.map +1 -0
- package/dist/drizzle/mysql-sessions.d.mts +250 -0
- package/dist/drizzle/mysql-sessions.mjs +53 -0
- package/dist/drizzle/mysql-sessions.mjs.map +1 -0
- package/dist/drizzle/mysql.d.mts +73 -0
- package/dist/drizzle/mysql.mjs +221 -0
- package/dist/drizzle/mysql.mjs.map +1 -0
- package/dist/drizzle/oauth-accounts.mjs +361 -0
- package/dist/drizzle/oauth-accounts.mjs.map +1 -0
- package/dist/drizzle/oauth-connected-access.mjs +210 -0
- package/dist/drizzle/oauth-connected-access.mjs.map +1 -0
- package/dist/drizzle/oauth-connected-collection.mjs +202 -0
- package/dist/drizzle/oauth-connected-collection.mjs.map +1 -0
- package/dist/drizzle/oauth-connected-custody.mjs +146 -0
- package/dist/drizzle/oauth-connected-custody.mjs.map +1 -0
- package/dist/drizzle/oauth-connected-drivers.mjs +78 -0
- package/dist/drizzle/oauth-connected-drivers.mjs.map +1 -0
- package/dist/drizzle/oauth-connected-flow.mjs +248 -0
- package/dist/drizzle/oauth-connected-flow.mjs.map +1 -0
- package/dist/drizzle/oauth-connected-input.mjs +105 -0
- package/dist/drizzle/oauth-connected-input.mjs.map +1 -0
- package/dist/drizzle/oauth-connected-maintenance.mjs +215 -0
- package/dist/drizzle/oauth-connected-maintenance.mjs.map +1 -0
- package/dist/drizzle/oauth-connected-management.mjs +228 -0
- package/dist/drizzle/oauth-connected-management.mjs.map +1 -0
- package/dist/drizzle/oauth-connected-model.d.mts +278 -0
- package/dist/drizzle/oauth-connected-model.mjs +22 -0
- package/dist/drizzle/oauth-connected-model.mjs.map +1 -0
- package/dist/drizzle/oauth-connected-reference.d.mts +17 -0
- package/dist/drizzle/oauth-connected-reference.mjs +53 -0
- package/dist/drizzle/oauth-connected-reference.mjs.map +1 -0
- package/dist/drizzle/oauth-connected-settlement.mjs +117 -0
- package/dist/drizzle/oauth-connected-settlement.mjs.map +1 -0
- package/dist/drizzle/oauth-connected-state.d.mts +16 -0
- package/dist/drizzle/oauth-connected-state.mjs +422 -0
- package/dist/drizzle/oauth-connected-state.mjs.map +1 -0
- package/dist/drizzle/oauth-connected-target.d.mts +114 -0
- package/dist/drizzle/oauth-connected-target.mjs +94 -0
- package/dist/drizzle/oauth-connected-target.mjs.map +1 -0
- package/dist/drizzle/oauth-drivers.mjs +53 -0
- package/dist/drizzle/oauth-drivers.mjs.map +1 -0
- package/dist/drizzle/oauth-flow.d.mts +7 -0
- package/dist/drizzle/oauth-flow.mjs +255 -0
- package/dist/drizzle/oauth-flow.mjs.map +1 -0
- package/dist/drizzle/oauth-input.mjs +130 -0
- package/dist/drizzle/oauth-input.mjs.map +1 -0
- package/dist/drizzle/oauth-model.d.mts +468 -0
- package/dist/drizzle/oauth-model.mjs +49 -0
- package/dist/drizzle/oauth-model.mjs.map +1 -0
- package/dist/drizzle/oauth-mysql.mjs +8 -0
- package/dist/drizzle/oauth-mysql.mjs.map +1 -0
- package/dist/drizzle/oauth-owner.d.mts +4 -0
- package/dist/drizzle/oauth-owner.mjs +10 -0
- package/dist/drizzle/oauth-owner.mjs.map +1 -0
- package/dist/drizzle/oauth-registration.d.mts +8 -0
- package/dist/drizzle/oauth-registration.mjs +375 -0
- package/dist/drizzle/oauth-registration.mjs.map +1 -0
- package/dist/drizzle/oauth-state.mjs +109 -0
- package/dist/drizzle/oauth-state.mjs.map +1 -0
- package/dist/drizzle/oauth-target.d.mts +125 -0
- package/dist/drizzle/oauth-target.mjs +252 -0
- package/dist/drizzle/oauth-target.mjs.map +1 -0
- package/dist/drizzle/passkey-admission.mjs +203 -0
- package/dist/drizzle/passkey-admission.mjs.map +1 -0
- package/dist/drizzle/passkey-credentials.mjs +239 -0
- package/dist/drizzle/passkey-credentials.mjs.map +1 -0
- package/dist/drizzle/passkey-drivers.mjs +34 -0
- package/dist/drizzle/passkey-drivers.mjs.map +1 -0
- package/dist/drizzle/passkey-enrollment.mjs +132 -0
- package/dist/drizzle/passkey-enrollment.mjs.map +1 -0
- package/dist/drizzle/passkey-flow.mjs +436 -0
- package/dist/drizzle/passkey-flow.mjs.map +1 -0
- package/dist/drizzle/passkey-management.mjs +225 -0
- package/dist/drizzle/passkey-management.mjs.map +1 -0
- package/dist/drizzle/passkey-model.d.mts +275 -0
- package/dist/drizzle/passkey-model.mjs +36 -0
- package/dist/drizzle/passkey-model.mjs.map +1 -0
- package/dist/drizzle/passkey-registration-ceremony-model.d.mts +50 -0
- package/dist/drizzle/passkey-registration-ceremony-model.mjs +18 -0
- package/dist/drizzle/passkey-registration-ceremony-model.mjs.map +1 -0
- package/dist/drizzle/passkey-registration-ceremony.mjs +124 -0
- package/dist/drizzle/passkey-registration-ceremony.mjs.map +1 -0
- package/dist/drizzle/passkey-registration-custody.mjs +51 -0
- package/dist/drizzle/passkey-registration-custody.mjs.map +1 -0
- package/dist/drizzle/passkey-registration-write.mjs +205 -0
- package/dist/drizzle/passkey-registration-write.mjs.map +1 -0
- package/dist/drizzle/passkey-state.d.mts +5 -0
- package/dist/drizzle/passkey-state.mjs +207 -0
- package/dist/drizzle/passkey-state.mjs.map +1 -0
- package/dist/drizzle/passkey-target.d.mts +16 -0
- package/dist/drizzle/passkey-target.mjs +174 -0
- package/dist/drizzle/passkey-target.mjs.map +1 -0
- package/dist/drizzle/passkey-write-drivers.mjs +33 -0
- package/dist/drizzle/passkey-write-drivers.mjs.map +1 -0
- package/dist/drizzle/passkey-write-model.d.mts +192 -0
- package/dist/drizzle/passkey-write-model.mjs +13 -0
- package/dist/drizzle/passkey-write-model.mjs.map +1 -0
- package/dist/drizzle/passkey-write-state.mjs +326 -0
- package/dist/drizzle/passkey-write-state.mjs.map +1 -0
- package/dist/drizzle/passkey-write-target.d.mts +14 -0
- package/dist/drizzle/passkey-write-target.mjs +185 -0
- package/dist/drizzle/passkey-write-target.mjs.map +1 -0
- package/dist/drizzle/password-model.d.mts +330 -0
- package/dist/drizzle/password-model.mjs +22 -0
- package/dist/drizzle/password-model.mjs.map +1 -0
- package/dist/drizzle/password-prepared-model.d.mts +93 -0
- package/dist/drizzle/password-prepared-model.mjs +11 -0
- package/dist/drizzle/password-prepared-model.mjs.map +1 -0
- package/dist/drizzle/password-prepared-sql.mjs +394 -0
- package/dist/drizzle/password-prepared-sql.mjs.map +1 -0
- package/dist/drizzle/password-prepared-state.mjs +107 -0
- package/dist/drizzle/password-prepared-state.mjs.map +1 -0
- package/dist/drizzle/password-prepared-target.d.mts +12 -0
- package/dist/drizzle/password-prepared-target.mjs +57 -0
- package/dist/drizzle/password-prepared-target.mjs.map +1 -0
- package/dist/drizzle/password-registration.d.mts +23 -0
- package/dist/drizzle/password-registration.mjs +136 -0
- package/dist/drizzle/password-registration.mjs.map +1 -0
- package/dist/drizzle/password-sql.d.mts +20 -0
- package/dist/drizzle/password-sql.mjs +702 -0
- package/dist/drizzle/password-sql.mjs.map +1 -0
- package/dist/drizzle/password-target.d.mts +25 -0
- package/dist/drizzle/password-target.mjs +63 -0
- package/dist/drizzle/password-target.mjs.map +1 -0
- package/dist/drizzle/pg-emails.d.mts +83 -0
- package/dist/drizzle/pg-emails.mjs +38 -0
- package/dist/drizzle/pg-emails.mjs.map +1 -0
- package/dist/drizzle/pg-password-prepared.d.mts +33 -0
- package/dist/drizzle/pg-password-prepared.mjs +16 -0
- package/dist/drizzle/pg-password-prepared.mjs.map +1 -0
- package/dist/drizzle/pg-passwords.d.mts +103 -0
- package/dist/drizzle/pg-passwords.mjs +38 -0
- package/dist/drizzle/pg-passwords.mjs.map +1 -0
- package/dist/drizzle/pg-proofs.d.mts +84 -0
- package/dist/drizzle/pg-proofs.mjs +22 -0
- package/dist/drizzle/pg-proofs.mjs.map +1 -0
- package/dist/drizzle/pg-sessions.d.mts +251 -0
- package/dist/drizzle/pg-sessions.mjs +53 -0
- package/dist/drizzle/pg-sessions.mjs.map +1 -0
- package/dist/drizzle/pg.d.mts +88 -0
- package/dist/drizzle/pg.mjs +294 -0
- package/dist/drizzle/pg.mjs.map +1 -0
- package/dist/drizzle/phone-model.d.mts +117 -0
- package/dist/drizzle/phone-model.mjs +39 -0
- package/dist/drizzle/phone-model.mjs.map +1 -0
- package/dist/drizzle/phone-state.mjs +426 -0
- package/dist/drizzle/phone-state.mjs.map +1 -0
- package/dist/drizzle/phone-target.d.mts +19 -0
- package/dist/drizzle/phone-target.mjs +171 -0
- package/dist/drizzle/phone-target.mjs.map +1 -0
- package/dist/drizzle/proof-model.d.mts +287 -0
- package/dist/drizzle/proof-model.mjs +17 -0
- package/dist/drizzle/proof-model.mjs.map +1 -0
- package/dist/drizzle/proof-sql.d.mts +16 -0
- package/dist/drizzle/proof-sql.mjs +618 -0
- package/dist/drizzle/proof-sql.mjs.map +1 -0
- package/dist/drizzle/proof-target.d.mts +17 -0
- package/dist/drizzle/proof-target.mjs +38 -0
- package/dist/drizzle/proof-target.mjs.map +1 -0
- package/dist/drizzle/session-model.d.mts +201 -0
- package/dist/drizzle/session-model.mjs +19 -0
- package/dist/drizzle/session-model.mjs.map +1 -0
- package/dist/drizzle/session-sql.mjs +732 -0
- package/dist/drizzle/session-sql.mjs.map +1 -0
- package/dist/drizzle/session-target.d.mts +37 -0
- package/dist/drizzle/session-target.mjs +47 -0
- package/dist/drizzle/session-target.mjs.map +1 -0
- package/dist/drizzle/sqlite-emails.mjs +45 -0
- package/dist/drizzle/sqlite-emails.mjs.map +1 -0
- package/dist/drizzle/sqlite-identity.mjs +92 -0
- package/dist/drizzle/sqlite-identity.mjs.map +1 -0
- package/dist/drizzle/sqlite-password-prepared.mjs +21 -0
- package/dist/drizzle/sqlite-password-prepared.mjs.map +1 -0
- package/dist/drizzle/sqlite-passwords.mjs +49 -0
- package/dist/drizzle/sqlite-passwords.mjs.map +1 -0
- package/dist/drizzle/sqlite-proofs.mjs +29 -0
- package/dist/drizzle/sqlite-proofs.mjs.map +1 -0
- package/dist/drizzle/sqlite-sessions.mjs +74 -0
- package/dist/drizzle/sqlite-sessions.mjs.map +1 -0
- package/dist/drizzle/sqlite.d.mts +81 -0
- package/dist/drizzle/sqlite.mjs +220 -0
- package/dist/drizzle/sqlite.mjs.map +1 -0
- package/dist/drizzle/standalone-guard.mjs +19 -0
- package/dist/drizzle/standalone-guard.mjs.map +1 -0
- package/dist/drizzle/step-up-model.d.mts +65 -0
- package/dist/drizzle/step-up-model.mjs +9 -0
- package/dist/drizzle/step-up-model.mjs.map +1 -0
- package/dist/drizzle/step-up-state.mjs +34 -0
- package/dist/drizzle/step-up-state.mjs.map +1 -0
- package/dist/drizzle/totp-model.d.mts +85 -0
- package/dist/drizzle/totp-model.mjs +13 -0
- package/dist/drizzle/totp-model.mjs.map +1 -0
- package/dist/drizzle/totp-state.d.mts +39 -0
- package/dist/drizzle/totp-state.mjs +288 -0
- package/dist/drizzle/totp-state.mjs.map +1 -0
- package/dist/drizzle/totp-target.d.mts +16 -0
- package/dist/drizzle/totp-target.mjs +83 -0
- package/dist/drizzle/totp-target.mjs.map +1 -0
- package/dist/drizzle/transaction-execution.d.mts +20 -0
- package/dist/drizzle/transaction-execution.mjs +111 -0
- package/dist/drizzle/transaction-execution.mjs.map +1 -0
- package/dist/drizzle/transaction-mysql.mjs +46 -0
- package/dist/drizzle/transaction-mysql.mjs.map +1 -0
- package/dist/drizzle/transaction-owner.d.mts +6 -0
- package/dist/drizzle/transaction-owner.mjs +252 -0
- package/dist/drizzle/transaction-owner.mjs.map +1 -0
- package/dist/email/EmailActionEvidence.d.mts +33 -0
- package/dist/email/EmailActionEvidence.mjs +15 -0
- package/dist/email/EmailActionEvidence.mjs.map +1 -0
- package/dist/email/EmailAddressPersistence.d.mts +63 -0
- package/dist/email/EmailAddressPersistence.mjs +19 -0
- package/dist/email/EmailAddressPersistence.mjs.map +1 -0
- package/dist/email/EmailIdentifierNotifier.d.mts +30 -0
- package/dist/email/EmailIdentifierNotifier.mjs +31 -0
- package/dist/email/EmailIdentifierNotifier.mjs.map +1 -0
- package/dist/email/EmailReturnTargets.d.mts +19 -0
- package/dist/email/EmailReturnTargets.mjs +29 -0
- package/dist/email/EmailReturnTargets.mjs.map +1 -0
- package/dist/email/EmailSignInTargets.d.mts +20 -0
- package/dist/email/EmailSignInTargets.mjs +12 -0
- package/dist/email/EmailSignInTargets.mjs.map +1 -0
- package/dist/email/addresses.d.mts +33 -0
- package/dist/email/addresses.mjs +404 -0
- package/dist/email/addresses.mjs.map +1 -0
- package/dist/email/definition.d.mts +10153 -0
- package/dist/email/definition.mjs +111 -0
- package/dist/email/definition.mjs.map +1 -0
- package/dist/email/errors.d.mts +15 -0
- package/dist/email/errors.mjs +11 -0
- package/dist/email/errors.mjs.map +1 -0
- package/dist/email/magicLink.d.mts +33 -0
- package/dist/email/magicLink.mjs +58 -0
- package/dist/email/magicLink.mjs.map +1 -0
- package/dist/email/models.d.mts +56 -0
- package/dist/email/models.mjs +31 -0
- package/dist/email/models.mjs.map +1 -0
- package/dist/email/module.d.mts +22296 -0
- package/dist/email/module.mjs +415 -0
- package/dist/email/module.mjs.map +1 -0
- package/dist/email/registration.d.mts +28 -0
- package/dist/email/registration.mjs +243 -0
- package/dist/email/registration.mjs.map +1 -0
- package/dist/email/snapshot.mjs +37 -0
- package/dist/email/snapshot.mjs.map +1 -0
- package/dist/hooks/LifecycleHooks.d.mts +34 -0
- package/dist/hooks/LifecycleHooks.mjs +74 -0
- package/dist/hooks/LifecycleHooks.mjs.map +1 -0
- package/dist/hooks/commit.d.mts +66 -0
- package/dist/hooks/commit.mjs +136 -0
- package/dist/hooks/commit.mjs.map +1 -0
- package/dist/hooks/models.d.mts +51 -0
- package/dist/hooks/models.mjs +87 -0
- package/dist/hooks/models.mjs.map +1 -0
- package/dist/hooks/plugins.d.mts +36 -0
- package/dist/hooks/plugins.mjs +60 -0
- package/dist/hooks/plugins.mjs.map +1 -0
- package/dist/hooks/transactions.d.mts +31 -0
- package/dist/hooks/transactions.mjs +38 -0
- package/dist/hooks/transactions.mjs.map +1 -0
- package/dist/http/auth-api.d.mts +9 -0
- package/dist/http/auth-api.mjs +13 -0
- package/dist/http/auth-api.mjs.map +1 -0
- package/dist/http/auth-contract.d.mts +84 -0
- package/dist/http/auth-contract.mjs +75 -0
- package/dist/http/auth-contract.mjs.map +1 -0
- package/dist/http/auth-http.d.mts +216 -0
- package/dist/http/auth-http.mjs +184 -0
- package/dist/http/auth-http.mjs.map +1 -0
- package/dist/http/endpoints/get-session.d.mts +8 -0
- package/dist/http/endpoints/get-session.mjs +12 -0
- package/dist/http/endpoints/get-session.mjs.map +1 -0
- package/dist/http/endpoints/password-sign-in.d.mts +8 -0
- package/dist/http/endpoints/password-sign-in.mjs +18 -0
- package/dist/http/endpoints/password-sign-in.mjs.map +1 -0
- package/dist/http/endpoints/request-email-otp.d.mts +8 -0
- package/dist/http/endpoints/request-email-otp.mjs +17 -0
- package/dist/http/endpoints/request-email-otp.mjs.map +1 -0
- package/dist/http/endpoints/set-password.d.mts +9 -0
- package/dist/http/endpoints/set-password.mjs +19 -0
- package/dist/http/endpoints/set-password.mjs.map +1 -0
- package/dist/http/endpoints/sign-out.d.mts +6 -0
- package/dist/http/endpoints/sign-out.mjs +7 -0
- package/dist/http/endpoints/sign-out.mjs.map +1 -0
- package/dist/http/endpoints/verify-email-otp.d.mts +9 -0
- package/dist/http/endpoints/verify-email-otp.mjs +18 -0
- package/dist/http/endpoints/verify-email-otp.mjs.map +1 -0
- package/dist/http/models.d.mts +49 -0
- package/dist/http/models.mjs +35 -0
- package/dist/http/models.mjs.map +1 -0
- package/dist/http/security.d.mts +91 -0
- package/dist/http/security.mjs +77 -0
- package/dist/http/security.mjs.map +1 -0
- package/dist/http/session-contract.d.mts +303 -0
- package/dist/http/session-contract.mjs +38 -0
- package/dist/http/session-contract.mjs.map +1 -0
- package/dist/http-operation/OperationHttpInvocation.d.mts +16 -0
- package/dist/http-operation/OperationHttpInvocation.mjs +11 -0
- package/dist/http-operation/OperationHttpInvocation.mjs.map +1 -0
- package/dist/http-operation/OperationHttpServerConfig.d.mts +18 -0
- package/dist/http-operation/OperationHttpServerConfig.mjs +72 -0
- package/dist/http-operation/OperationHttpServerConfig.mjs.map +1 -0
- package/dist/http-operation/auth-client.d.mts +75 -0
- package/dist/http-operation/auth-client.mjs +116 -0
- package/dist/http-operation/auth-client.mjs.map +1 -0
- package/dist/http-operation/client.d.mts +50 -0
- package/dist/http-operation/client.mjs +188 -0
- package/dist/http-operation/client.mjs.map +1 -0
- package/dist/http-operation/configuration-schema.mjs +19 -0
- package/dist/http-operation/configuration-schema.mjs.map +1 -0
- package/dist/http-operation/contract.d.mts +40 -0
- package/dist/http-operation/contract.mjs +37 -0
- package/dist/http-operation/contract.mjs.map +1 -0
- package/dist/http-operation/errors.d.mts +13 -0
- package/dist/http-operation/errors.mjs +31 -0
- package/dist/http-operation/errors.mjs.map +1 -0
- package/dist/http-operation/models.d.mts +32 -0
- package/dist/http-operation/models.mjs +14 -0
- package/dist/http-operation/models.mjs.map +1 -0
- package/dist/http-operation/private.mjs +35 -0
- package/dist/http-operation/private.mjs.map +1 -0
- package/dist/http-operation/security.mjs +58 -0
- package/dist/http-operation/security.mjs.map +1 -0
- package/dist/http-operation/server.d.mts +33 -0
- package/dist/http-operation/server.mjs +268 -0
- package/dist/http-operation/server.mjs.map +1 -0
- package/dist/identity/ExternalIdentityMutation.d.mts +15 -0
- package/dist/identity/ExternalIdentityMutation.mjs +11 -0
- package/dist/identity/ExternalIdentityMutation.mjs.map +1 -0
- package/dist/identity/IdentityMutation.d.mts +22 -0
- package/dist/identity/IdentityMutation.mjs +17 -0
- package/dist/identity/IdentityMutation.mjs.map +1 -0
- package/dist/identity/IdentityRepository.d.mts +20 -0
- package/dist/identity/IdentityRepository.mjs +11 -0
- package/dist/identity/IdentityRepository.mjs.map +1 -0
- package/dist/identity/SubjectLifecycle.d.mts +58 -0
- package/dist/identity/SubjectLifecycle.mjs +43 -0
- package/dist/identity/SubjectLifecycle.mjs.map +1 -0
- package/dist/identity/SubjectProvisioner.d.mts +37 -0
- package/dist/identity/SubjectProvisioner.mjs +20 -0
- package/dist/identity/SubjectProvisioner.mjs.map +1 -0
- package/dist/identity/codecs.d.mts +34 -0
- package/dist/identity/codecs.mjs +40 -0
- package/dist/identity/codecs.mjs.map +1 -0
- package/dist/identity/models.d.mts +62 -0
- package/dist/identity/models.mjs +51 -0
- package/dist/identity/models.mjs.map +1 -0
- package/dist/identity/operations.d.mts +118 -0
- package/dist/identity/operations.mjs +124 -0
- package/dist/identity/operations.mjs.map +1 -0
- package/dist/index.d.mts +23 -0
- package/dist/index.mjs +23 -0
- package/dist/internal/AuthStoreDecisions.d.mts +22 -0
- package/dist/internal/AuthStoreDecisions.mjs +8 -0
- package/dist/internal/AuthStoreDecisions.mjs.map +1 -0
- package/dist/internal/CurrentSession.d.mts +9 -0
- package/dist/internal/CurrentSession.mjs +8 -0
- package/dist/internal/CurrentSession.mjs.map +1 -0
- package/dist/internal/diagnostics.mjs +23 -0
- package/dist/internal/diagnostics.mjs.map +1 -0
- package/dist/oauth/GithubOAuthProvider.d.mts +43 -0
- package/dist/oauth/GithubOAuthProvider.mjs +66 -0
- package/dist/oauth/GithubOAuthProvider.mjs.map +1 -0
- package/dist/oauth/OAuth.d.mts +73 -0
- package/dist/oauth/OAuth.mjs +180 -0
- package/dist/oauth/OAuth.mjs.map +1 -0
- package/dist/oauth/OAuthAccountsPersistence.d.mts +109 -0
- package/dist/oauth/OAuthAccountsPersistence.mjs +12 -0
- package/dist/oauth/OAuthAccountsPersistence.mjs.map +1 -0
- package/dist/oauth/OAuthActionEvidence.d.mts +28 -0
- package/dist/oauth/OAuthActionEvidence.mjs +15 -0
- package/dist/oauth/OAuthActionEvidence.mjs.map +1 -0
- package/dist/oauth/OAuthConnectedActionEvidence.d.mts +22 -0
- package/dist/oauth/OAuthConnectedActionEvidence.mjs +9 -0
- package/dist/oauth/OAuthConnectedActionEvidence.mjs.map +1 -0
- package/dist/oauth/OAuthConnectedPersistence.d.mts +129 -0
- package/dist/oauth/OAuthConnectedPersistence.mjs +12 -0
- package/dist/oauth/OAuthConnectedPersistence.mjs.map +1 -0
- package/dist/oauth/OAuthConnectedProtocol.d.mts +41 -0
- package/dist/oauth/OAuthConnectedProtocol.mjs +13 -0
- package/dist/oauth/OAuthConnectedProtocol.mjs.map +1 -0
- package/dist/oauth/OAuthConnectedRevocations.d.mts +167 -0
- package/dist/oauth/OAuthConnectedRevocations.mjs +21 -0
- package/dist/oauth/OAuthConnectedRevocations.mjs.map +1 -0
- package/dist/oauth/OAuthConnectedTokenProtector.d.mts +24 -0
- package/dist/oauth/OAuthConnectedTokenProtector.mjs +153 -0
- package/dist/oauth/OAuthConnectedTokenProtector.mjs.map +1 -0
- package/dist/oauth/OAuthConnectedTransactionProtector.d.mts +23 -0
- package/dist/oauth/OAuthConnectedTransactionProtector.mjs +37 -0
- package/dist/oauth/OAuthConnectedTransactionProtector.mjs.map +1 -0
- package/dist/oauth/OAuthConnectedUseAuthority.d.mts +22 -0
- package/dist/oauth/OAuthConnectedUseAuthority.mjs +10 -0
- package/dist/oauth/OAuthConnectedUseAuthority.mjs.map +1 -0
- package/dist/oauth/OAuthConnectionStore.d.mts +33 -0
- package/dist/oauth/OAuthConnectionStore.mjs +38 -0
- package/dist/oauth/OAuthConnectionStore.mjs.map +1 -0
- package/dist/oauth/OAuthLinkTransactionProtector.d.mts +25 -0
- package/dist/oauth/OAuthLinkTransactionProtector.mjs +39 -0
- package/dist/oauth/OAuthLinkTransactionProtector.mjs.map +1 -0
- package/dist/oauth/OAuthProtocol.d.mts +33 -0
- package/dist/oauth/OAuthProtocol.mjs +16 -0
- package/dist/oauth/OAuthProtocol.mjs.map +1 -0
- package/dist/oauth/OAuthProvider.d.mts +70 -0
- package/dist/oauth/OAuthProvider.mjs +39 -0
- package/dist/oauth/OAuthProvider.mjs.map +1 -0
- package/dist/oauth/OAuthProviders.d.mts +27 -0
- package/dist/oauth/OAuthProviders.mjs +33 -0
- package/dist/oauth/OAuthProviders.mjs.map +1 -0
- package/dist/oauth/OAuthRegistrationIntents.d.mts +87 -0
- package/dist/oauth/OAuthRegistrationIntents.mjs +19 -0
- package/dist/oauth/OAuthRegistrationIntents.mjs.map +1 -0
- package/dist/oauth/OAuthReturnTargets.d.mts +15 -0
- package/dist/oauth/OAuthReturnTargets.mjs +24 -0
- package/dist/oauth/OAuthReturnTargets.mjs.map +1 -0
- package/dist/oauth/OAuthSignInPersistence.d.mts +68 -0
- package/dist/oauth/OAuthSignInPersistence.mjs +12 -0
- package/dist/oauth/OAuthSignInPersistence.mjs.map +1 -0
- package/dist/oauth/OAuthStateDecisions.d.mts +14 -0
- package/dist/oauth/OAuthStateDecisions.mjs +8 -0
- package/dist/oauth/OAuthStateDecisions.mjs.map +1 -0
- package/dist/oauth/OAuthStateStore.d.mts +35 -0
- package/dist/oauth/OAuthStateStore.mjs +64 -0
- package/dist/oauth/OAuthStateStore.mjs.map +1 -0
- package/dist/oauth/OAuthTransactionProtector.d.mts +26 -0
- package/dist/oauth/OAuthTransactionProtector.mjs +78 -0
- package/dist/oauth/OAuthTransactionProtector.mjs.map +1 -0
- package/dist/oauth/accounts.d.mts +29 -0
- package/dist/oauth/accounts.mjs +515 -0
- package/dist/oauth/accounts.mjs.map +1 -0
- package/dist/oauth/accountsModels.d.mts +463 -0
- package/dist/oauth/accountsModels.mjs +155 -0
- package/dist/oauth/accountsModels.mjs.map +1 -0
- package/dist/oauth/connected.d.mts +442 -0
- package/dist/oauth/connected.mjs +526 -0
- package/dist/oauth/connected.mjs.map +1 -0
- package/dist/oauth/connectedAccess.d.mts +20 -0
- package/dist/oauth/connectedAccess.mjs +279 -0
- package/dist/oauth/connectedAccess.mjs.map +1 -0
- package/dist/oauth/connectedMaintenance.d.mts +19 -0
- package/dist/oauth/connectedMaintenance.mjs +133 -0
- package/dist/oauth/connectedMaintenance.mjs.map +1 -0
- package/dist/oauth/connectedModels.d.mts +2023 -0
- package/dist/oauth/connectedModels.mjs +375 -0
- package/dist/oauth/connectedModels.mjs.map +1 -0
- package/dist/oauth/definition.d.mts +4396 -0
- package/dist/oauth/definition.mjs +120 -0
- package/dist/oauth/definition.mjs.map +1 -0
- package/dist/oauth/errors.d.mts +49 -0
- package/dist/oauth/errors.mjs +42 -0
- package/dist/oauth/errors.mjs.map +1 -0
- package/dist/oauth/github/identity.d.mts +8 -0
- package/dist/oauth/github/identity.mjs +24 -0
- package/dist/oauth/github/identity.mjs.map +1 -0
- package/dist/oauth/github/models.d.mts +34 -0
- package/dist/oauth/github/protocol.d.mts +54 -0
- package/dist/oauth/github/protocol.mjs +204 -0
- package/dist/oauth/github/protocol.mjs.map +1 -0
- package/dist/oauth/openid-client/ProviderRevocation.d.mts +4 -0
- package/dist/oauth/openid-client/ProviderRevocation.mjs +11 -0
- package/dist/oauth/openid-client/ProviderRevocation.mjs.map +1 -0
- package/dist/oauth/openid-client/compatibility.d.mts +1 -0
- package/dist/oauth/openid-client/compatibility.mjs +6 -0
- package/dist/oauth/openid-client/compatibility.mjs.map +1 -0
- package/dist/oauth/openid-client/configuration.mjs +305 -0
- package/dist/oauth/openid-client/configuration.mjs.map +1 -0
- package/dist/oauth/openid-client/connected/configuration.mjs +338 -0
- package/dist/oauth/openid-client/connected/configuration.mjs.map +1 -0
- package/dist/oauth/openid-client/connected/models.d.mts +42 -0
- package/dist/oauth/openid-client/connected/protocol.d.mts +16 -0
- package/dist/oauth/openid-client/connected/protocol.mjs +402 -0
- package/dist/oauth/openid-client/connected/protocol.mjs.map +1 -0
- package/dist/oauth/openid-client/models.d.mts +67 -0
- package/dist/oauth/openid-client/models.mjs +16 -0
- package/dist/oauth/openid-client/models.mjs.map +1 -0
- package/dist/oauth/openid-client/protocol.d.mts +27 -0
- package/dist/oauth/openid-client/protocol.mjs +218 -0
- package/dist/oauth/openid-client/protocol.mjs.map +1 -0
- package/dist/oauth/openid-client/transport.mjs +59 -0
- package/dist/oauth/openid-client/transport.mjs.map +1 -0
- package/dist/oauth/policy.d.mts +18 -0
- package/dist/oauth/policy.mjs +16 -0
- package/dist/oauth/policy.mjs.map +1 -0
- package/dist/oauth/registration.d.mts +24 -0
- package/dist/oauth/registration.mjs +177 -0
- package/dist/oauth/registration.mjs.map +1 -0
- package/dist/oauth/registrationModels.d.mts +152 -0
- package/dist/oauth/registrationModels.mjs +93 -0
- package/dist/oauth/registrationModels.mjs.map +1 -0
- package/dist/oauth/registrationSecrets.mjs +70 -0
- package/dist/oauth/registrationSecrets.mjs.map +1 -0
- package/dist/oauth/schema.d.mts +86 -0
- package/dist/oauth/schema.mjs +81 -0
- package/dist/oauth/schema.mjs.map +1 -0
- package/dist/oauth/signInErrors.d.mts +17 -0
- package/dist/oauth/signInErrors.mjs +16 -0
- package/dist/oauth/signInErrors.mjs.map +1 -0
- package/dist/oauth/signInModels.d.mts +343 -0
- package/dist/oauth/signInModels.mjs +181 -0
- package/dist/oauth/signInModels.mjs.map +1 -0
- package/dist/oauth/signInModule.d.mts +1546 -0
- package/dist/oauth/signInModule.mjs +430 -0
- package/dist/oauth/signInModule.mjs.map +1 -0
- package/dist/oauth/signInSnapshot.mjs +29 -0
- package/dist/oauth/signInSnapshot.mjs.map +1 -0
- package/dist/oauth/transactionEncryption.d.mts +14 -0
- package/dist/oauth/transactionEncryption.mjs +129 -0
- package/dist/oauth/transactionEncryption.mjs.map +1 -0
- package/dist/operations/RequestBindingConfig.d.mts +11 -0
- package/dist/operations/RequestBindingConfig.mjs +10 -0
- package/dist/operations/RequestBindingConfig.mjs.map +1 -0
- package/dist/operations/actions.d.mts +947 -0
- package/dist/operations/actions.mjs +148 -0
- package/dist/operations/actions.mjs.map +1 -0
- package/dist/operations/context.d.mts +63 -0
- package/dist/operations/context.mjs +55 -0
- package/dist/operations/context.mjs.map +1 -0
- package/dist/operations/credentials.d.mts +39 -0
- package/dist/operations/credentials.mjs +60 -0
- package/dist/operations/credentials.mjs.map +1 -0
- package/dist/operations/errors.d.mts +24 -0
- package/dist/operations/errors.mjs +31 -0
- package/dist/operations/errors.mjs.map +1 -0
- package/dist/operations/operation.d.mts +124 -0
- package/dist/operations/operation.mjs +220 -0
- package/dist/operations/operation.mjs.map +1 -0
- package/dist/operations/requestBinding.d.mts +46 -0
- package/dist/operations/requestBinding.mjs +130 -0
- package/dist/operations/requestBinding.mjs.map +1 -0
- package/dist/operations/requestBindingModels.d.mts +13 -0
- package/dist/operations/requestBindingModels.mjs +12 -0
- package/dist/operations/requestBindingModels.mjs.map +1 -0
- package/dist/operations/reveals.d.mts +28 -0
- package/dist/operations/reveals.mjs +88 -0
- package/dist/operations/reveals.mjs.map +1 -0
- package/dist/passkey/PasskeyActionEvidence.d.mts +22 -0
- package/dist/passkey/PasskeyActionEvidence.mjs +9 -0
- package/dist/passkey/PasskeyActionEvidence.mjs.map +1 -0
- package/dist/passkey/PasskeyCredentials.d.mts +16 -0
- package/dist/passkey/PasskeyCredentials.mjs +9 -0
- package/dist/passkey/PasskeyCredentials.mjs.map +1 -0
- package/dist/passkey/PasskeyEnrollmentContext.d.mts +22 -0
- package/dist/passkey/PasskeyEnrollmentContext.mjs +9 -0
- package/dist/passkey/PasskeyEnrollmentContext.mjs.map +1 -0
- package/dist/passkey/PasskeyManagementPersistence.d.mts +106 -0
- package/dist/passkey/PasskeyManagementPersistence.mjs +9 -0
- package/dist/passkey/PasskeyManagementPersistence.mjs.map +1 -0
- package/dist/passkey/PasskeyPersistence.d.mts +63 -0
- package/dist/passkey/PasskeyPersistence.mjs +10 -0
- package/dist/passkey/PasskeyPersistence.mjs.map +1 -0
- package/dist/passkey/PasskeyProtocol.d.mts +38 -0
- package/dist/passkey/PasskeyProtocol.mjs +11 -0
- package/dist/passkey/PasskeyProtocol.mjs.map +1 -0
- package/dist/passkey/actions.d.mts +50 -0
- package/dist/passkey/actions.mjs +376 -0
- package/dist/passkey/actions.mjs.map +1 -0
- package/dist/passkey/browser/PasskeyBrowser.d.mts +18 -0
- package/dist/passkey/browser/PasskeyBrowser.mjs +9 -0
- package/dist/passkey/browser/PasskeyBrowser.mjs.map +1 -0
- package/dist/passkey/browser/models.d.mts +38 -0
- package/dist/passkey/browser/models.mjs +41 -0
- package/dist/passkey/browser/models.mjs.map +1 -0
- package/dist/passkey/browser/simplewebauthn.d.mts +17 -0
- package/dist/passkey/browser/simplewebauthn.mjs +411 -0
- package/dist/passkey/browser/simplewebauthn.mjs.map +1 -0
- package/dist/passkey/definition.d.mts +5626 -0
- package/dist/passkey/definition.mjs +114 -0
- package/dist/passkey/definition.mjs.map +1 -0
- package/dist/passkey/errors.d.mts +20 -0
- package/dist/passkey/errors.mjs +20 -0
- package/dist/passkey/errors.mjs.map +1 -0
- package/dist/passkey/management.mjs +276 -0
- package/dist/passkey/management.mjs.map +1 -0
- package/dist/passkey/models.d.mts +1245 -0
- package/dist/passkey/models.mjs +301 -0
- package/dist/passkey/models.mjs.map +1 -0
- package/dist/passkey/module.d.mts +2132 -0
- package/dist/passkey/module.mjs +174 -0
- package/dist/passkey/module.mjs.map +1 -0
- package/dist/passkey/pending.mjs +99 -0
- package/dist/passkey/pending.mjs.map +1 -0
- package/dist/passkey/policy.d.mts +48 -0
- package/dist/passkey/policy.mjs +77 -0
- package/dist/passkey/policy.mjs.map +1 -0
- package/dist/passkey/registration.mjs +107 -0
- package/dist/passkey/registration.mjs.map +1 -0
- package/dist/passkey/simplewebauthn/configuration.mjs +45 -0
- package/dist/passkey/simplewebauthn/configuration.mjs.map +1 -0
- package/dist/passkey/simplewebauthn/models.d.mts +21 -0
- package/dist/passkey/simplewebauthn/models.mjs +8 -0
- package/dist/passkey/simplewebauthn/models.mjs.map +1 -0
- package/dist/passkey/simplewebauthn/protocol.d.mts +62 -0
- package/dist/passkey/simplewebauthn/protocol.mjs +402 -0
- package/dist/passkey/simplewebauthn/protocol.mjs.map +1 -0
- package/dist/passkey/snapshot.mjs +31 -0
- package/dist/passkey/snapshot.mjs.map +1 -0
- package/dist/passkey/stepUp.mjs +101 -0
- package/dist/passkey/stepUp.mjs.map +1 -0
- package/dist/password/CompromisedPasswords.d.mts +26 -0
- package/dist/password/CompromisedPasswords.mjs +23 -0
- package/dist/password/CompromisedPasswords.mjs.map +1 -0
- package/dist/password/NewPasswordCheck.d.mts +21 -0
- package/dist/password/NewPasswordCheck.mjs +39 -0
- package/dist/password/NewPasswordCheck.mjs.map +1 -0
- package/dist/password/PasswordHashing.d.mts +24 -0
- package/dist/password/PasswordHashing.mjs +96 -0
- package/dist/password/PasswordHashing.mjs.map +1 -0
- package/dist/password/PasswordKdfAdmission.d.mts +19 -0
- package/dist/password/PasswordKdfAdmission.mjs +25 -0
- package/dist/password/PasswordKdfAdmission.mjs.map +1 -0
- package/dist/password/configuration.d.mts +43 -0
- package/dist/password/configuration.mjs +64 -0
- package/dist/password/configuration.mjs.map +1 -0
- package/dist/password/defaults.mjs +13 -0
- package/dist/password/defaults.mjs.map +1 -0
- package/dist/password/encoding.mjs +64 -0
- package/dist/password/encoding.mjs.map +1 -0
- package/dist/password/errors.d.mts +28 -0
- package/dist/password/errors.mjs +25 -0
- package/dist/password/errors.mjs.map +1 -0
- package/dist/password/methods/PasswordActionEvidence.d.mts +38 -0
- package/dist/password/methods/PasswordActionEvidence.mjs +22 -0
- package/dist/password/methods/PasswordActionEvidence.mjs.map +1 -0
- package/dist/password/methods/PasswordPersistence.d.mts +102 -0
- package/dist/password/methods/PasswordPersistence.mjs +13 -0
- package/dist/password/methods/PasswordPersistence.mjs.map +1 -0
- package/dist/password/methods/PasswordPreparedPersistence.d.mts +111 -0
- package/dist/password/methods/contracts.d.mts +43 -0
- package/dist/password/methods/contracts.mjs +33 -0
- package/dist/password/methods/contracts.mjs.map +1 -0
- package/dist/password/methods/definition.d.mts +3813 -0
- package/dist/password/methods/definition.mjs +56 -0
- package/dist/password/methods/definition.mjs.map +1 -0
- package/dist/password/methods/errors.d.mts +15 -0
- package/dist/password/methods/errors.mjs +11 -0
- package/dist/password/methods/errors.mjs.map +1 -0
- package/dist/password/methods/models.d.mts +70 -0
- package/dist/password/methods/models.mjs +44 -0
- package/dist/password/methods/models.mjs.map +1 -0
- package/dist/password/methods/module.d.mts +3567 -0
- package/dist/password/methods/module.mjs +553 -0
- package/dist/password/methods/module.mjs.map +1 -0
- package/dist/password/methods/policy.d.mts +84 -0
- package/dist/password/methods/policy.mjs +80 -0
- package/dist/password/methods/policy.mjs.map +1 -0
- package/dist/password/methods/preparation.mjs +54 -0
- package/dist/password/methods/preparation.mjs.map +1 -0
- package/dist/password/methods/prepared.d.mts +53 -0
- package/dist/password/methods/prepared.mjs +610 -0
- package/dist/password/methods/prepared.mjs.map +1 -0
- package/dist/password/methods/preparedModels.d.mts +1295 -0
- package/dist/password/methods/preparedModels.mjs +278 -0
- package/dist/password/methods/preparedModels.mjs.map +1 -0
- package/dist/password/methods/signIn.d.mts +180 -0
- package/dist/password/methods/signIn.mjs +73 -0
- package/dist/password/methods/signIn.mjs.map +1 -0
- package/dist/password/methods/snapshot.mjs +38 -0
- package/dist/password/methods/snapshot.mjs.map +1 -0
- package/dist/password/methods/verification.mjs +138 -0
- package/dist/password/methods/verification.mjs.map +1 -0
- package/dist/password/models.d.mts +13 -0
- package/dist/password/models.mjs +12 -0
- package/dist/password/models.mjs.map +1 -0
- package/dist/password/policy.d.mts +33 -0
- package/dist/password/policy.mjs +37 -0
- package/dist/password/policy.mjs.map +1 -0
- package/dist/phone/PhoneActionEvidence.d.mts +23 -0
- package/dist/phone/PhoneActionEvidence.mjs +10 -0
- package/dist/phone/PhoneActionEvidence.mjs.map +1 -0
- package/dist/phone/PhoneAdmission.d.mts +29 -0
- package/dist/phone/PhoneAdmission.mjs +10 -0
- package/dist/phone/PhoneAdmission.mjs.map +1 -0
- package/dist/phone/PhoneDeliveryEligibility.d.mts +11 -0
- package/dist/phone/PhoneDeliveryEligibility.mjs +8 -0
- package/dist/phone/PhoneDeliveryEligibility.mjs.map +1 -0
- package/dist/phone/PhonePersistence.d.mts +33 -0
- package/dist/phone/PhonePersistence.mjs +10 -0
- package/dist/phone/PhonePersistence.mjs.map +1 -0
- package/dist/phone/PhoneRequestContext.d.mts +10 -0
- package/dist/phone/PhoneRequestContext.mjs +8 -0
- package/dist/phone/PhoneRequestContext.mjs.map +1 -0
- package/dist/phone/PhoneSignInTargets.d.mts +19 -0
- package/dist/phone/PhoneSignInTargets.mjs +13 -0
- package/dist/phone/PhoneSignInTargets.mjs.map +1 -0
- package/dist/phone/definition.d.mts +7190 -0
- package/dist/phone/definition.mjs +28 -0
- package/dist/phone/definition.mjs.map +1 -0
- package/dist/phone/failure.mjs +23 -0
- package/dist/phone/failure.mjs.map +1 -0
- package/dist/phone/lifecycle.mjs +427 -0
- package/dist/phone/lifecycle.mjs.map +1 -0
- package/dist/phone/lifecycleModels.d.mts +164 -0
- package/dist/phone/lifecycleModels.mjs +91 -0
- package/dist/phone/lifecycleModels.mjs.map +1 -0
- package/dist/phone/models.d.mts +41 -0
- package/dist/phone/models.mjs +29 -0
- package/dist/phone/models.mjs.map +1 -0
- package/dist/phone/module.d.mts +6027 -0
- package/dist/phone/module.mjs +293 -0
- package/dist/phone/module.mjs.map +1 -0
- package/dist/proofs/EmailProofDelivery.d.mts +13 -0
- package/dist/proofs/EmailProofDelivery.mjs +11 -0
- package/dist/proofs/EmailProofDelivery.mjs.map +1 -0
- package/dist/proofs/HostIngressLimiter.d.mts +20 -0
- package/dist/proofs/HostIngressLimiter.mjs +13 -0
- package/dist/proofs/HostIngressLimiter.mjs.map +1 -0
- package/dist/proofs/ProofPersistence.d.mts +140 -0
- package/dist/proofs/ProofPersistence.mjs +13 -0
- package/dist/proofs/ProofPersistence.mjs.map +1 -0
- package/dist/proofs/SmsProofDelivery.d.mts +13 -0
- package/dist/proofs/SmsProofDelivery.mjs +11 -0
- package/dist/proofs/SmsProofDelivery.mjs.map +1 -0
- package/dist/proofs/abuse.d.mts +15 -0
- package/dist/proofs/abuse.mjs +12 -0
- package/dist/proofs/abuse.mjs.map +1 -0
- package/dist/proofs/completion.d.mts +22 -0
- package/dist/proofs/crypto.d.mts +196 -0
- package/dist/proofs/crypto.mjs +189 -0
- package/dist/proofs/crypto.mjs.map +1 -0
- package/dist/proofs/definition.d.mts +335 -0
- package/dist/proofs/definition.mjs +10 -0
- package/dist/proofs/definition.mjs.map +1 -0
- package/dist/proofs/delivery.d.mts +30 -0
- package/dist/proofs/delivery.mjs +26 -0
- package/dist/proofs/delivery.mjs.map +1 -0
- package/dist/proofs/dispatch.d.mts +20 -0
- package/dist/proofs/dispatch.mjs +54 -0
- package/dist/proofs/dispatch.mjs.map +1 -0
- package/dist/proofs/errors.d.mts +21 -0
- package/dist/proofs/errors.mjs +25 -0
- package/dist/proofs/errors.mjs.map +1 -0
- package/dist/proofs/models.d.mts +141 -0
- package/dist/proofs/models.mjs +93 -0
- package/dist/proofs/models.mjs.map +1 -0
- package/dist/proofs/module.d.mts +344 -0
- package/dist/proofs/module.mjs +350 -0
- package/dist/proofs/module.mjs.map +1 -0
- package/dist/proofs/policy.d.mts +152 -0
- package/dist/proofs/policy.mjs +51 -0
- package/dist/proofs/policy.mjs.map +1 -0
- package/dist/sessions/AuthenticationAuthority.d.mts +31 -0
- package/dist/sessions/AuthenticationAuthority.mjs +8 -0
- package/dist/sessions/AuthenticationAuthority.mjs.map +1 -0
- package/dist/sessions/PendingAuthentication.d.mts +108 -0
- package/dist/sessions/PendingAuthentication.mjs +40 -0
- package/dist/sessions/PendingAuthentication.mjs.map +1 -0
- package/dist/sessions/SessionStepUpPersistence.d.mts +152 -0
- package/dist/sessions/SessionStepUpPersistence.mjs +63 -0
- package/dist/sessions/SessionStepUpPersistence.mjs.map +1 -0
- package/dist/sessions/assurance.d.mts +163 -0
- package/dist/sessions/assurance.mjs +95 -0
- package/dist/sessions/assurance.mjs.map +1 -0
- package/dist/sessions/commit.d.mts +13 -0
- package/dist/sessions/configuration.d.mts +46 -0
- package/dist/sessions/configuration.mjs +55 -0
- package/dist/sessions/configuration.mjs.map +1 -0
- package/dist/sessions/contract.d.mts +663 -0
- package/dist/sessions/contract.mjs +174 -0
- package/dist/sessions/contract.mjs.map +1 -0
- package/dist/sessions/crypto.d.mts +24 -0
- package/dist/sessions/crypto.mjs +106 -0
- package/dist/sessions/crypto.mjs.map +1 -0
- package/dist/sessions/definition.d.mts +11 -0
- package/dist/sessions/definition.mjs +10 -0
- package/dist/sessions/definition.mjs.map +1 -0
- package/dist/sessions/errors.d.mts +35 -0
- package/dist/sessions/errors.mjs +34 -0
- package/dist/sessions/errors.mjs.map +1 -0
- package/dist/sessions/invalidation.d.mts +23 -0
- package/dist/sessions/invalidation.mjs +33 -0
- package/dist/sessions/invalidation.mjs.map +1 -0
- package/dist/sessions/models.d.mts +143 -0
- package/dist/sessions/models.mjs +94 -0
- package/dist/sessions/models.mjs.map +1 -0
- package/dist/sessions/module.d.mts +1091 -0
- package/dist/sessions/module.mjs +943 -0
- package/dist/sessions/module.mjs.map +1 -0
- package/dist/sessions/persistence.d.mts +93 -0
- package/dist/sessions/policy.d.mts +80 -0
- package/dist/sessions/policy.mjs +66 -0
- package/dist/sessions/policy.mjs.map +1 -0
- package/dist/testing/conformance/AuthStore.d.mts +11 -0
- package/dist/testing/conformance/AuthStore.mjs +173 -0
- package/dist/testing/conformance/AuthStore.mjs.map +1 -0
- package/dist/testing/conformance/OAuthConnectionStore.d.mts +11 -0
- package/dist/testing/conformance/OAuthConnectionStore.mjs +102 -0
- package/dist/testing/conformance/OAuthConnectionStore.mjs.map +1 -0
- package/dist/testing/conformance/OAuthStateStore.d.mts +11 -0
- package/dist/testing/conformance/OAuthStateStore.mjs +45 -0
- package/dist/testing/conformance/OAuthStateStore.mjs.map +1 -0
- package/dist/testing/conformance/PasswordCredentialStore.d.mts +20 -0
- package/dist/testing/conformance/PasswordCredentialStore.mjs +103 -0
- package/dist/testing/conformance/PasswordCredentialStore.mjs.map +1 -0
- package/dist/testing/conformance/support.mjs +17 -0
- package/dist/testing/conformance/support.mjs.map +1 -0
- package/dist/testing/crypto.d.mts +11 -0
- package/dist/testing/crypto.mjs +41 -0
- package/dist/testing/crypto.mjs.map +1 -0
- package/dist/testing/keyring.d.mts +9 -0
- package/dist/testing/keyring.mjs +17 -0
- package/dist/testing/keyring.mjs.map +1 -0
- package/dist/totp/TotpActionEvidence.d.mts +18 -0
- package/dist/totp/TotpActionEvidence.mjs +8 -0
- package/dist/totp/TotpActionEvidence.mjs.map +1 -0
- package/dist/totp/TotpPersistence.d.mts +19 -0
- package/dist/totp/TotpPersistence.mjs +8 -0
- package/dist/totp/TotpPersistence.mjs.map +1 -0
- package/dist/totp/TotpSecretKeys.d.mts +15 -0
- package/dist/totp/TotpSecretKeys.mjs +8 -0
- package/dist/totp/TotpSecretKeys.mjs.map +1 -0
- package/dist/totp/crypto.mjs +96 -0
- package/dist/totp/crypto.mjs.map +1 -0
- package/dist/totp/definition.d.mts +764 -0
- package/dist/totp/definition.mjs +24 -0
- package/dist/totp/definition.mjs.map +1 -0
- package/dist/totp/errors.d.mts +16 -0
- package/dist/totp/errors.mjs +18 -0
- package/dist/totp/errors.mjs.map +1 -0
- package/dist/totp/models.d.mts +377 -0
- package/dist/totp/models.mjs +137 -0
- package/dist/totp/models.mjs.map +1 -0
- package/dist/totp/module.d.mts +737 -0
- package/dist/totp/module.mjs +355 -0
- package/dist/totp/module.mjs.map +1 -0
- package/package.json +1 -0
- package/src/Atom.ts +4 -0
- package/src/Auth.ts +16 -0
- package/src/AuthContract.ts +17 -0
- package/src/AuthSession.ts +298 -0
- package/src/AuthStore.ts +367 -0
- package/src/AuthTokenCodec.ts +226 -0
- package/src/Client.ts +9 -0
- package/src/Cloudflare.ts +345 -0
- package/src/Drizzle.ts +378 -0
- package/src/DrizzleD1.ts +136 -0
- package/src/DrizzleLibsql.ts +288 -0
- package/src/DrizzleMysql2.ts +184 -0
- package/src/DrizzlePglite.ts +160 -0
- package/src/DrizzlePostgres.ts +160 -0
- package/src/DrizzleSqliteBun.ts +244 -0
- package/src/DrizzleSqliteDo.ts +473 -0
- package/src/DrizzleSqliteNode.ts +245 -0
- package/src/DrizzleSqliteWasm.ts +245 -0
- package/src/Email.ts +55 -0
- package/src/EmailOtp.ts +250 -0
- package/src/EmailOtpSender.ts +28 -0
- package/src/Errors.ts +103 -0
- package/src/GitHub.ts +16 -0
- package/src/Hooks.ts +50 -0
- package/src/Http.ts +47 -0
- package/src/HttpServer.ts +742 -0
- package/src/Identity.ts +53 -0
- package/src/IdentityResolver.ts +18 -0
- package/src/OAuth.ts +242 -0
- package/src/OpenIdClient.ts +13 -0
- package/src/OpenIdClientConnected.ts +18 -0
- package/src/OperationHttp.ts +14 -0
- package/src/OperationHttpClient.ts +6 -0
- package/src/OperationHttpServer.ts +15 -0
- package/src/Operations.ts +69 -0
- package/src/Passkey.ts +81 -0
- package/src/PasskeyBrowser.ts +19 -0
- package/src/PasskeyContract.ts +212 -0
- package/src/PasskeyPassword.ts +319 -0
- package/src/PasskeySimpleWebAuthn.ts +6 -0
- package/src/Password.ts +113 -0
- package/src/PasswordAuth.ts +197 -0
- package/src/PasswordCredentialStore.ts +140 -0
- package/src/PasswordHasher.ts +147 -0
- package/src/PhoneOtp.ts +32 -0
- package/src/Policy.ts +95 -0
- package/src/Proofs.ts +71 -0
- package/src/Rpc.ts +15 -0
- package/src/Schema.ts +235 -0
- package/src/SessionContract.ts +2 -0
- package/src/Sessions.ts +105 -0
- package/src/Testing.ts +24 -0
- package/src/Totp.ts +28 -0
- package/src/TotpContract.ts +147 -0
- package/src/WebCrypto.ts +61 -0
- package/src/Workflows.ts +12 -0
- package/src/atom/AuthAtomLifetime.ts +87 -0
- package/src/atom/AuthAtomWorkflow.ts +27 -0
- package/src/atom/client.ts +364 -0
- package/src/atom/operations.ts +183 -0
- package/src/atom/scoped-runtime.ts +249 -0
- package/src/auth/Auth.ts +482 -0
- package/src/auth/AuthConfigurationError.ts +9 -0
- package/src/auth/AuthRequest.ts +21 -0
- package/src/auth/AuthStrategy.ts +116 -0
- package/src/auth/ConsumeDecision.ts +4 -0
- package/src/auth/actions.ts +220 -0
- package/src/auth/defaults.ts +23 -0
- package/src/auth/definition.ts +88 -0
- package/src/auth/session.ts +146 -0
- package/src/drizzle/D1BatchStatements.ts +10 -0
- package/src/drizzle/PasswordPreparedPostconditions.ts +30 -0
- package/src/drizzle/SuppliedService.ts +10 -0
- package/src/drizzle/d1-emails.ts +1808 -0
- package/src/drizzle/d1-generated-statement.ts +129 -0
- package/src/drizzle/d1-identity.ts +374 -0
- package/src/drizzle/d1-oauth.ts +338 -0
- package/src/drizzle/d1-passkey.ts +371 -0
- package/src/drizzle/d1-password-prepared.ts +1273 -0
- package/src/drizzle/d1-passwords.ts +2661 -0
- package/src/drizzle/d1-phone.ts +94 -0
- package/src/drizzle/d1-planning.ts +105 -0
- package/src/drizzle/d1-proofs.ts +2305 -0
- package/src/drizzle/d1-sessions.ts +2867 -0
- package/src/drizzle/d1-totp.ts +79 -0
- package/src/drizzle/email-model.ts +512 -0
- package/src/drizzle/email-registration.ts +696 -0
- package/src/drizzle/email-sql.ts +1468 -0
- package/src/drizzle/email-target.ts +243 -0
- package/src/drizzle/model.ts +492 -0
- package/src/drizzle/mysql-emails.ts +323 -0
- package/src/drizzle/mysql-identity.ts +323 -0
- package/src/drizzle/mysql-password-prepared.ts +206 -0
- package/src/drizzle/mysql-passwords.ts +341 -0
- package/src/drizzle/mysql-proofs.ts +183 -0
- package/src/drizzle/mysql-sessions.ts +742 -0
- package/src/drizzle/mysql.ts +686 -0
- package/src/drizzle/oauth-accounts.ts +801 -0
- package/src/drizzle/oauth-connected-access.ts +354 -0
- package/src/drizzle/oauth-connected-collection.ts +324 -0
- package/src/drizzle/oauth-connected-custody.ts +277 -0
- package/src/drizzle/oauth-connected-drivers.ts +463 -0
- package/src/drizzle/oauth-connected-flow.ts +439 -0
- package/src/drizzle/oauth-connected-input.ts +128 -0
- package/src/drizzle/oauth-connected-maintenance.ts +345 -0
- package/src/drizzle/oauth-connected-management.ts +365 -0
- package/src/drizzle/oauth-connected-model.ts +347 -0
- package/src/drizzle/oauth-connected-reference.ts +112 -0
- package/src/drizzle/oauth-connected-settlement.ts +226 -0
- package/src/drizzle/oauth-connected-state.ts +846 -0
- package/src/drizzle/oauth-connected-target.ts +264 -0
- package/src/drizzle/oauth-drivers.ts +567 -0
- package/src/drizzle/oauth-flow.ts +461 -0
- package/src/drizzle/oauth-input.ts +205 -0
- package/src/drizzle/oauth-model.ts +610 -0
- package/src/drizzle/oauth-mysql.ts +10 -0
- package/src/drizzle/oauth-owner.ts +29 -0
- package/src/drizzle/oauth-registration.ts +638 -0
- package/src/drizzle/oauth-state.ts +213 -0
- package/src/drizzle/oauth-target.ts +751 -0
- package/src/drizzle/passkey-admission.ts +333 -0
- package/src/drizzle/passkey-credentials.ts +465 -0
- package/src/drizzle/passkey-drivers.ts +385 -0
- package/src/drizzle/passkey-enrollment.ts +280 -0
- package/src/drizzle/passkey-flow.ts +983 -0
- package/src/drizzle/passkey-management.ts +369 -0
- package/src/drizzle/passkey-model.ts +350 -0
- package/src/drizzle/passkey-registration-ceremony-model.ts +69 -0
- package/src/drizzle/passkey-registration-ceremony.ts +254 -0
- package/src/drizzle/passkey-registration-custody.ts +82 -0
- package/src/drizzle/passkey-registration-write.ts +378 -0
- package/src/drizzle/passkey-state.ts +307 -0
- package/src/drizzle/passkey-target.ts +528 -0
- package/src/drizzle/passkey-write-drivers.ts +396 -0
- package/src/drizzle/passkey-write-model.ts +265 -0
- package/src/drizzle/passkey-write-state.ts +627 -0
- package/src/drizzle/passkey-write-target.ts +406 -0
- package/src/drizzle/password-model.ts +491 -0
- package/src/drizzle/password-prepared-model.ts +259 -0
- package/src/drizzle/password-prepared-sql.ts +1198 -0
- package/src/drizzle/password-prepared-state.ts +232 -0
- package/src/drizzle/password-prepared-target.ts +158 -0
- package/src/drizzle/password-registration.ts +372 -0
- package/src/drizzle/password-sql.ts +2082 -0
- package/src/drizzle/password-target.ts +223 -0
- package/src/drizzle/pg-emails.ts +323 -0
- package/src/drizzle/pg-password-prepared.ts +207 -0
- package/src/drizzle/pg-passwords.ts +340 -0
- package/src/drizzle/pg-proofs.ts +193 -0
- package/src/drizzle/pg-sessions.ts +751 -0
- package/src/drizzle/pg.ts +982 -0
- package/src/drizzle/phone-model.ts +185 -0
- package/src/drizzle/phone-state.ts +802 -0
- package/src/drizzle/phone-target.ts +471 -0
- package/src/drizzle/proof-model.ts +398 -0
- package/src/drizzle/proof-sql.ts +1912 -0
- package/src/drizzle/proof-target.ts +120 -0
- package/src/drizzle/session-model.ts +368 -0
- package/src/drizzle/session-sql.ts +2152 -0
- package/src/drizzle/session-target.ts +335 -0
- package/src/drizzle/sqlite-emails.ts +368 -0
- package/src/drizzle/sqlite-identity.ts +343 -0
- package/src/drizzle/sqlite-password-prepared.ts +262 -0
- package/src/drizzle/sqlite-passwords.ts +499 -0
- package/src/drizzle/sqlite-proofs.ts +204 -0
- package/src/drizzle/sqlite-sessions.ts +972 -0
- package/src/drizzle/sqlite.ts +704 -0
- package/src/drizzle/standalone-guard.ts +38 -0
- package/src/drizzle/step-up-model.ts +129 -0
- package/src/drizzle/step-up-state.ts +141 -0
- package/src/drizzle/totp-model.ts +91 -0
- package/src/drizzle/totp-state.ts +520 -0
- package/src/drizzle/totp-target.ts +304 -0
- package/src/drizzle/transaction-execution.ts +290 -0
- package/src/drizzle/transaction-mysql.ts +104 -0
- package/src/drizzle/transaction-owner.ts +570 -0
- package/src/email/EmailActionEvidence.ts +37 -0
- package/src/email/EmailAddressPersistence.ts +71 -0
- package/src/email/EmailIdentifierNotifier.ts +48 -0
- package/src/email/EmailReturnTargets.ts +50 -0
- package/src/email/EmailSignInTargets.ts +20 -0
- package/src/email/addresses.ts +630 -0
- package/src/email/definition.ts +309 -0
- package/src/email/errors.ts +23 -0
- package/src/email/magicLink.ts +84 -0
- package/src/email/models.ts +50 -0
- package/src/email/module.ts +664 -0
- package/src/email/registration.ts +415 -0
- package/src/email/snapshot.ts +51 -0
- package/src/hooks/LifecycleHooks.ts +136 -0
- package/src/hooks/commit.ts +271 -0
- package/src/hooks/models.ts +111 -0
- package/src/hooks/plugins.ts +87 -0
- package/src/hooks/transactions.ts +51 -0
- package/src/http/auth-api.ts +17 -0
- package/src/http/auth-contract.ts +148 -0
- package/src/http/auth-http.ts +467 -0
- package/src/http/endpoints/get-session.ts +9 -0
- package/src/http/endpoints/password-sign-in.ts +19 -0
- package/src/http/endpoints/request-email-otp.ts +10 -0
- package/src/http/endpoints/set-password.ts +18 -0
- package/src/http/endpoints/sign-out.ts +5 -0
- package/src/http/endpoints/verify-email-otp.ts +15 -0
- package/src/http/models.ts +80 -0
- package/src/http/security.ts +102 -0
- package/src/http/session-contract.ts +92 -0
- package/src/http-operation/OperationHttpInvocation.ts +39 -0
- package/src/http-operation/OperationHttpServerConfig.ts +124 -0
- package/src/http-operation/auth-client.ts +273 -0
- package/src/http-operation/client.ts +453 -0
- package/src/http-operation/configuration-schema.ts +19 -0
- package/src/http-operation/contract.ts +116 -0
- package/src/http-operation/errors.ts +38 -0
- package/src/http-operation/models.ts +42 -0
- package/src/http-operation/private.ts +50 -0
- package/src/http-operation/security.ts +93 -0
- package/src/http-operation/server.ts +544 -0
- package/src/identity/ExternalIdentityMutation.ts +18 -0
- package/src/identity/IdentityMutation.ts +41 -0
- package/src/identity/IdentityRepository.ts +37 -0
- package/src/identity/SubjectLifecycle.ts +80 -0
- package/src/identity/SubjectProvisioner.ts +40 -0
- package/src/identity/codecs.ts +54 -0
- package/src/identity/models.ts +82 -0
- package/src/identity/operations.ts +182 -0
- package/src/index.ts +23 -0
- package/src/internal/AuthStoreDecisions.ts +23 -0
- package/src/internal/CurrentSession.ts +8 -0
- package/src/internal/diagnostics.ts +71 -0
- package/src/oauth/GithubOAuthProvider.ts +106 -0
- package/src/oauth/OAuth.ts +436 -0
- package/src/oauth/OAuthAccountsPersistence.ts +142 -0
- package/src/oauth/OAuthActionEvidence.ts +31 -0
- package/src/oauth/OAuthConnectedActionEvidence.ts +28 -0
- package/src/oauth/OAuthConnectedPersistence.ts +163 -0
- package/src/oauth/OAuthConnectedProtocol.ts +54 -0
- package/src/oauth/OAuthConnectedRevocations.ts +48 -0
- package/src/oauth/OAuthConnectedTokenProtector.ts +240 -0
- package/src/oauth/OAuthConnectedTransactionProtector.ts +56 -0
- package/src/oauth/OAuthConnectedUseAuthority.ts +26 -0
- package/src/oauth/OAuthConnectionStore.ts +59 -0
- package/src/oauth/OAuthLinkTransactionProtector.ts +58 -0
- package/src/oauth/OAuthProtocol.ts +39 -0
- package/src/oauth/OAuthProvider.ts +126 -0
- package/src/oauth/OAuthProviders.ts +53 -0
- package/src/oauth/OAuthRegistrationIntents.ts +42 -0
- package/src/oauth/OAuthReturnTargets.ts +44 -0
- package/src/oauth/OAuthSignInPersistence.ts +91 -0
- package/src/oauth/OAuthStateDecisions.ts +16 -0
- package/src/oauth/OAuthStateStore.ts +102 -0
- package/src/oauth/OAuthTransactionProtector.ts +103 -0
- package/src/oauth/accounts.ts +987 -0
- package/src/oauth/accountsModels.ts +214 -0
- package/src/oauth/connected.ts +995 -0
- package/src/oauth/connectedAccess.ts +644 -0
- package/src/oauth/connectedMaintenance.ts +248 -0
- package/src/oauth/connectedModels.ts +495 -0
- package/src/oauth/definition.ts +414 -0
- package/src/oauth/errors.ts +78 -0
- package/src/oauth/github/identity.ts +26 -0
- package/src/oauth/github/models.ts +37 -0
- package/src/oauth/github/protocol.ts +329 -0
- package/src/oauth/openid-client/ProviderRevocation.ts +22 -0
- package/src/oauth/openid-client/compatibility.ts +47 -0
- package/src/oauth/openid-client/configuration.ts +472 -0
- package/src/oauth/openid-client/connected/configuration.ts +565 -0
- package/src/oauth/openid-client/connected/models.ts +58 -0
- package/src/oauth/openid-client/connected/protocol.ts +866 -0
- package/src/oauth/openid-client/models.ts +78 -0
- package/src/oauth/openid-client/protocol.ts +437 -0
- package/src/oauth/openid-client/transport.ts +67 -0
- package/src/oauth/policy.ts +26 -0
- package/src/oauth/registration.ts +410 -0
- package/src/oauth/registrationModels.ts +115 -0
- package/src/oauth/registrationSecrets.ts +127 -0
- package/src/oauth/schema.ts +102 -0
- package/src/oauth/signInErrors.ts +23 -0
- package/src/oauth/signInModels.ts +266 -0
- package/src/oauth/signInModule.ts +875 -0
- package/src/oauth/signInSnapshot.ts +37 -0
- package/src/oauth/transactionEncryption.ts +198 -0
- package/src/operations/RequestBindingConfig.ts +12 -0
- package/src/operations/actions.ts +342 -0
- package/src/operations/context.ts +130 -0
- package/src/operations/credentials.ts +121 -0
- package/src/operations/errors.ts +53 -0
- package/src/operations/operation.ts +740 -0
- package/src/operations/requestBinding.ts +237 -0
- package/src/operations/requestBindingModels.ts +18 -0
- package/src/operations/reveals.ts +147 -0
- package/src/passkey/PasskeyActionEvidence.ts +25 -0
- package/src/passkey/PasskeyCredentials.ts +16 -0
- package/src/passkey/PasskeyEnrollmentContext.ts +26 -0
- package/src/passkey/PasskeyManagementPersistence.ts +124 -0
- package/src/passkey/PasskeyPersistence.ts +85 -0
- package/src/passkey/PasskeyProtocol.ts +48 -0
- package/src/passkey/actions.ts +905 -0
- package/src/passkey/browser/PasskeyBrowser.ts +26 -0
- package/src/passkey/browser/models.ts +67 -0
- package/src/passkey/browser/simplewebauthn.ts +621 -0
- package/src/passkey/definition.ts +386 -0
- package/src/passkey/errors.ts +39 -0
- package/src/passkey/management.ts +552 -0
- package/src/passkey/models.ts +414 -0
- package/src/passkey/module.ts +367 -0
- package/src/passkey/pending.ts +203 -0
- package/src/passkey/policy.ts +88 -0
- package/src/passkey/registration.ts +251 -0
- package/src/passkey/simplewebauthn/configuration.ts +97 -0
- package/src/passkey/simplewebauthn/models.ts +9 -0
- package/src/passkey/simplewebauthn/protocol.ts +729 -0
- package/src/passkey/snapshot.ts +48 -0
- package/src/passkey/stepUp.ts +212 -0
- package/src/password/CompromisedPasswords.ts +36 -0
- package/src/password/NewPasswordCheck.ts +89 -0
- package/src/password/PasswordHashing.ts +209 -0
- package/src/password/PasswordKdfAdmission.ts +44 -0
- package/src/password/configuration.ts +52 -0
- package/src/password/defaults.ts +15 -0
- package/src/password/encoding.ts +137 -0
- package/src/password/errors.ts +43 -0
- package/src/password/methods/PasswordActionEvidence.ts +41 -0
- package/src/password/methods/PasswordPersistence.ts +128 -0
- package/src/password/methods/PasswordPreparedPersistence.ts +123 -0
- package/src/password/methods/contracts.ts +47 -0
- package/src/password/methods/definition.ts +199 -0
- package/src/password/methods/errors.ts +26 -0
- package/src/password/methods/models.ts +80 -0
- package/src/password/methods/module.ts +986 -0
- package/src/password/methods/policy.ts +68 -0
- package/src/password/methods/preparation.ts +73 -0
- package/src/password/methods/prepared.ts +1199 -0
- package/src/password/methods/preparedModels.ts +496 -0
- package/src/password/methods/signIn.ts +136 -0
- package/src/password/methods/snapshot.ts +53 -0
- package/src/password/methods/verification.ts +266 -0
- package/src/password/models.ts +15 -0
- package/src/password/policy.ts +41 -0
- package/src/phone/PhoneActionEvidence.ts +26 -0
- package/src/phone/PhoneAdmission.ts +29 -0
- package/src/phone/PhoneDeliveryEligibility.ts +9 -0
- package/src/phone/PhonePersistence.ts +43 -0
- package/src/phone/PhoneRequestContext.ts +7 -0
- package/src/phone/PhoneSignInTargets.ts +19 -0
- package/src/phone/definition.ts +87 -0
- package/src/phone/failure.ts +40 -0
- package/src/phone/lifecycle.ts +662 -0
- package/src/phone/lifecycleModels.ts +108 -0
- package/src/phone/models.ts +41 -0
- package/src/phone/module.ts +433 -0
- package/src/proofs/EmailProofDelivery.ts +19 -0
- package/src/proofs/HostIngressLimiter.ts +20 -0
- package/src/proofs/ProofPersistence.ts +172 -0
- package/src/proofs/SmsProofDelivery.ts +19 -0
- package/src/proofs/abuse.ts +23 -0
- package/src/proofs/completion.ts +23 -0
- package/src/proofs/crypto.ts +326 -0
- package/src/proofs/definition.ts +39 -0
- package/src/proofs/delivery.ts +73 -0
- package/src/proofs/dispatch.ts +99 -0
- package/src/proofs/errors.ts +46 -0
- package/src/proofs/models.ts +131 -0
- package/src/proofs/module.ts +620 -0
- package/src/proofs/policy.ts +77 -0
- package/src/sessions/AuthenticationAuthority.ts +51 -0
- package/src/sessions/PendingAuthentication.ts +121 -0
- package/src/sessions/SessionStepUpPersistence.ts +164 -0
- package/src/sessions/assurance.ts +192 -0
- package/src/sessions/commit.ts +13 -0
- package/src/sessions/configuration.ts +133 -0
- package/src/sessions/contract.ts +203 -0
- package/src/sessions/crypto.ts +181 -0
- package/src/sessions/definition.ts +25 -0
- package/src/sessions/errors.ts +68 -0
- package/src/sessions/invalidation.ts +46 -0
- package/src/sessions/models.ts +138 -0
- package/src/sessions/module.ts +1991 -0
- package/src/sessions/persistence.ts +135 -0
- package/src/sessions/policy.ts +103 -0
- package/src/testing/conformance/AuthStore.ts +314 -0
- package/src/testing/conformance/OAuthConnectionStore.ts +167 -0
- package/src/testing/conformance/OAuthStateStore.ts +105 -0
- package/src/testing/conformance/PasswordCredentialStore.ts +205 -0
- package/src/testing/conformance/support.ts +38 -0
- package/src/testing/crypto.ts +55 -0
- package/src/testing/keyring.ts +17 -0
- package/src/totp/TotpActionEvidence.ts +18 -0
- package/src/totp/TotpPersistence.ts +26 -0
- package/src/totp/TotpSecretKeys.ts +15 -0
- package/src/totp/crypto.ts +160 -0
- package/src/totp/definition.ts +78 -0
- package/src/totp/errors.ts +25 -0
- package/src/totp/models.ts +164 -0
- package/src/totp/module.ts +717 -0
|
@@ -0,0 +1,1295 @@
|
|
|
1
|
+
import { AuthenticationEvidence } from "../../sessions/models.mjs";
|
|
2
|
+
import { LoginIdentifier } from "../../identity/models.mjs";
|
|
3
|
+
import { PasswordMethodConfigurationError, PasswordUnavailable } from "./errors.mjs";
|
|
4
|
+
import { PasswordAction } from "./models.mjs";
|
|
5
|
+
import { DateTime, Effect, Redacted, Schema } from "effect";
|
|
6
|
+
//#region src/password/methods/preparedModels.d.ts
|
|
7
|
+
declare const PasswordPreparedIntentId: Schema.brand<Schema.String, "effect-auth/PasswordPreparedIntentId">;
|
|
8
|
+
type PasswordPreparedIntentId = typeof PasswordPreparedIntentId.Type;
|
|
9
|
+
declare const PasswordPreparedCredential: Schema.RedactedFromValue<Schema.String>;
|
|
10
|
+
type PasswordPreparedCredential = typeof PasswordPreparedCredential.Type;
|
|
11
|
+
declare const PasswordPreparedVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordPreparedVersion">;
|
|
12
|
+
type PasswordPreparedVersion = typeof PasswordPreparedVersion.Type;
|
|
13
|
+
declare const PasswordPreparedConfiguration: Schema.Struct<{
|
|
14
|
+
readonly generation: Schema.Int;
|
|
15
|
+
readonly lifetimeMillis: Schema.Int;
|
|
16
|
+
readonly preparationLifetimeMillis: Schema.Int;
|
|
17
|
+
readonly retentionMillis: Schema.Int;
|
|
18
|
+
readonly maximumPendingPerSubject: Schema.Int;
|
|
19
|
+
readonly admission: Schema.Struct<{
|
|
20
|
+
readonly identifier: Schema.Struct<{
|
|
21
|
+
readonly limit: Schema.Int;
|
|
22
|
+
readonly windowMillis: Schema.Int;
|
|
23
|
+
}>;
|
|
24
|
+
readonly subject: Schema.Struct<{
|
|
25
|
+
readonly limit: Schema.Int;
|
|
26
|
+
readonly windowMillis: Schema.Int;
|
|
27
|
+
}>;
|
|
28
|
+
readonly action: Schema.Struct<{
|
|
29
|
+
readonly limit: Schema.Int;
|
|
30
|
+
readonly windowMillis: Schema.Int;
|
|
31
|
+
}>;
|
|
32
|
+
}>;
|
|
33
|
+
}>;
|
|
34
|
+
type PasswordPreparedConfiguration = typeof PasswordPreparedConfiguration.Type;
|
|
35
|
+
declare const validatePasswordPreparedConfiguration: (input: {
|
|
36
|
+
readonly generation: number;
|
|
37
|
+
readonly lifetimeMillis: number;
|
|
38
|
+
readonly preparationLifetimeMillis: number;
|
|
39
|
+
readonly retentionMillis: number;
|
|
40
|
+
readonly maximumPendingPerSubject: number;
|
|
41
|
+
readonly admission: {
|
|
42
|
+
readonly identifier: {
|
|
43
|
+
readonly limit: number;
|
|
44
|
+
readonly windowMillis: number;
|
|
45
|
+
};
|
|
46
|
+
readonly subject: {
|
|
47
|
+
readonly limit: number;
|
|
48
|
+
readonly windowMillis: number;
|
|
49
|
+
};
|
|
50
|
+
readonly action: {
|
|
51
|
+
readonly limit: number;
|
|
52
|
+
readonly windowMillis: number;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
}) => Effect.Effect<{
|
|
56
|
+
readonly generation: number;
|
|
57
|
+
readonly lifetimeMillis: number;
|
|
58
|
+
readonly preparationLifetimeMillis: number;
|
|
59
|
+
readonly retentionMillis: number;
|
|
60
|
+
readonly maximumPendingPerSubject: number;
|
|
61
|
+
readonly admission: {
|
|
62
|
+
readonly identifier: {
|
|
63
|
+
readonly limit: number;
|
|
64
|
+
readonly windowMillis: number;
|
|
65
|
+
};
|
|
66
|
+
readonly subject: {
|
|
67
|
+
readonly limit: number;
|
|
68
|
+
readonly windowMillis: number;
|
|
69
|
+
};
|
|
70
|
+
readonly action: {
|
|
71
|
+
readonly limit: number;
|
|
72
|
+
readonly windowMillis: number;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
}, PasswordMethodConfigurationError, never>;
|
|
76
|
+
declare const PasswordPreparedRequirement: Schema.Struct<{
|
|
77
|
+
readonly maximumAgeMillis: Schema.Int;
|
|
78
|
+
readonly alternatives: Schema.NonEmptyArray<Schema.Struct<{
|
|
79
|
+
readonly userVerified: Schema.Boolean;
|
|
80
|
+
readonly phishingResistant: Schema.Boolean;
|
|
81
|
+
readonly factors: Schema.$Array<Schema.Literals<readonly ["knowledge", "possession", "inherence"]>>;
|
|
82
|
+
readonly minimumCredentials: Schema.Int;
|
|
83
|
+
}>>;
|
|
84
|
+
}>;
|
|
85
|
+
type PasswordPreparedRequirement = typeof PasswordPreparedRequirement.Type;
|
|
86
|
+
declare const BoundedChallenge: Schema.Struct<{
|
|
87
|
+
readonly action: Schema.Literals<readonly ["add-password", "change-password", "reset-password"]>;
|
|
88
|
+
readonly commandId: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordCommandId">;
|
|
89
|
+
readonly moduleId: Schema.NonEmptyString;
|
|
90
|
+
readonly revision: Schema.Struct<{
|
|
91
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
92
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
93
|
+
readonly credentials: Schema.$Array<Schema.Struct<{
|
|
94
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
95
|
+
readonly revision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
96
|
+
}>>;
|
|
97
|
+
}>;
|
|
98
|
+
readonly targetCredentialId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
99
|
+
readonly bindingDigest: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
100
|
+
}>;
|
|
101
|
+
declare const PasswordPreparedReset: Schema.Struct<{
|
|
102
|
+
readonly continuationId: Schema.brand<Schema.String, "effect-auth/ProofContinuationId">;
|
|
103
|
+
readonly binding: Schema.Union<readonly [Schema.TaggedStruct<"Identifier", {
|
|
104
|
+
readonly flowId: Schema.String;
|
|
105
|
+
readonly contextDigest: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
106
|
+
readonly identifier: Schema.compose<typeof LoginIdentifier, Schema.Struct<{
|
|
107
|
+
readonly namespace: Schema.NonEmptyString;
|
|
108
|
+
readonly value: Schema.NonEmptyString;
|
|
109
|
+
}>>;
|
|
110
|
+
}>, Schema.TaggedStruct<"Subject", {
|
|
111
|
+
readonly flowId: Schema.String;
|
|
112
|
+
readonly contextDigest: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
113
|
+
readonly revision: Schema.Struct<{
|
|
114
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
115
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
116
|
+
readonly credentials: Schema.$Array<Schema.Struct<{
|
|
117
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
118
|
+
readonly revision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
119
|
+
}>>;
|
|
120
|
+
}>;
|
|
121
|
+
readonly identifier: Schema.compose<typeof LoginIdentifier, Schema.Struct<{
|
|
122
|
+
readonly namespace: Schema.NonEmptyString;
|
|
123
|
+
readonly value: Schema.NonEmptyString;
|
|
124
|
+
}>>;
|
|
125
|
+
}>, Schema.TaggedStruct<"IdentifierChange", {
|
|
126
|
+
readonly flowId: Schema.String;
|
|
127
|
+
readonly contextDigest: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
128
|
+
readonly revision: Schema.Struct<{
|
|
129
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
130
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
131
|
+
readonly credentials: Schema.$Array<Schema.Struct<{
|
|
132
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
133
|
+
readonly revision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
134
|
+
}>>;
|
|
135
|
+
}>;
|
|
136
|
+
readonly identifier: Schema.compose<typeof LoginIdentifier, Schema.Struct<{
|
|
137
|
+
readonly namespace: Schema.NonEmptyString;
|
|
138
|
+
readonly value: Schema.NonEmptyString;
|
|
139
|
+
}>>;
|
|
140
|
+
}>]>;
|
|
141
|
+
}>;
|
|
142
|
+
type PasswordPreparedReset = typeof PasswordPreparedReset.Type;
|
|
143
|
+
declare const PasswordPreparedReservation: Schema.TaggedStruct<"Preparing", {
|
|
144
|
+
moduleId: Schema.NonEmptyString;
|
|
145
|
+
generation: Schema.Int;
|
|
146
|
+
intentId: Schema.brand<Schema.String, "effect-auth/PasswordPreparedIntentId">;
|
|
147
|
+
version: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordPreparedVersion">;
|
|
148
|
+
commandId: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordCommandId">;
|
|
149
|
+
action: Schema.Literals<readonly ["add-password", "change-password", "reset-password"]>;
|
|
150
|
+
revision: Schema.Struct<{
|
|
151
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
152
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
153
|
+
readonly credentials: Schema.$Array<Schema.Struct<{
|
|
154
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
155
|
+
readonly revision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
156
|
+
}>>;
|
|
157
|
+
}>;
|
|
158
|
+
credential: Schema.optionalKey<Schema.Struct<{
|
|
159
|
+
readonly verifier: Schema.RedactedFromValue<Schema.brand<Schema.String, "effect-auth/EncodedPasswordHash">>;
|
|
160
|
+
readonly normalization: Schema.Literals<readonly ["none", "NFC"]>;
|
|
161
|
+
readonly identifierVerifiedAtMillis: Schema.optionalKey<Schema.Int>;
|
|
162
|
+
readonly moduleId: Schema.NonEmptyString;
|
|
163
|
+
readonly revision: Schema.Struct<{
|
|
164
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
165
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
166
|
+
readonly credentials: Schema.$Array<Schema.Struct<{
|
|
167
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
168
|
+
readonly revision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
169
|
+
}>>;
|
|
170
|
+
}>;
|
|
171
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
172
|
+
readonly credentialRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
173
|
+
readonly verifierVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
174
|
+
readonly identifier: Schema.compose<typeof LoginIdentifier, Schema.Struct<{
|
|
175
|
+
readonly namespace: Schema.NonEmptyString;
|
|
176
|
+
readonly value: Schema.NonEmptyString;
|
|
177
|
+
}>>;
|
|
178
|
+
readonly identifierBindingRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
179
|
+
}>>;
|
|
180
|
+
capturedRequirement: Schema.Struct<{
|
|
181
|
+
readonly maximumAgeMillis: Schema.Int;
|
|
182
|
+
readonly alternatives: Schema.NonEmptyArray<Schema.Struct<{
|
|
183
|
+
readonly userVerified: Schema.Boolean;
|
|
184
|
+
readonly phishingResistant: Schema.Boolean;
|
|
185
|
+
readonly factors: Schema.$Array<Schema.Literals<readonly ["knowledge", "possession", "inherence"]>>;
|
|
186
|
+
readonly minimumCredentials: Schema.Int;
|
|
187
|
+
}>>;
|
|
188
|
+
}>;
|
|
189
|
+
reset: Schema.optionalKey<Schema.Struct<{
|
|
190
|
+
readonly continuationId: Schema.brand<Schema.String, "effect-auth/ProofContinuationId">;
|
|
191
|
+
readonly binding: Schema.Union<readonly [Schema.TaggedStruct<"Identifier", {
|
|
192
|
+
readonly flowId: Schema.String;
|
|
193
|
+
readonly contextDigest: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
194
|
+
readonly identifier: Schema.compose<typeof LoginIdentifier, Schema.Struct<{
|
|
195
|
+
readonly namespace: Schema.NonEmptyString;
|
|
196
|
+
readonly value: Schema.NonEmptyString;
|
|
197
|
+
}>>;
|
|
198
|
+
}>, Schema.TaggedStruct<"Subject", {
|
|
199
|
+
readonly flowId: Schema.String;
|
|
200
|
+
readonly contextDigest: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
201
|
+
readonly revision: Schema.Struct<{
|
|
202
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
203
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
204
|
+
readonly credentials: Schema.$Array<Schema.Struct<{
|
|
205
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
206
|
+
readonly revision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
207
|
+
}>>;
|
|
208
|
+
}>;
|
|
209
|
+
readonly identifier: Schema.compose<typeof LoginIdentifier, Schema.Struct<{
|
|
210
|
+
readonly namespace: Schema.NonEmptyString;
|
|
211
|
+
readonly value: Schema.NonEmptyString;
|
|
212
|
+
}>>;
|
|
213
|
+
}>, Schema.TaggedStruct<"IdentifierChange", {
|
|
214
|
+
readonly flowId: Schema.String;
|
|
215
|
+
readonly contextDigest: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
216
|
+
readonly revision: Schema.Struct<{
|
|
217
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
218
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
219
|
+
readonly credentials: Schema.$Array<Schema.Struct<{
|
|
220
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
221
|
+
readonly revision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
222
|
+
}>>;
|
|
223
|
+
}>;
|
|
224
|
+
readonly identifier: Schema.compose<typeof LoginIdentifier, Schema.Struct<{
|
|
225
|
+
readonly namespace: Schema.NonEmptyString;
|
|
226
|
+
readonly value: Schema.NonEmptyString;
|
|
227
|
+
}>>;
|
|
228
|
+
}>]>;
|
|
229
|
+
}>>;
|
|
230
|
+
invalidation: Schema.Struct<{
|
|
231
|
+
readonly trigger: Schema.Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
|
|
232
|
+
readonly existingSessions: Schema.Literals<readonly ["immediate", "original-absolute-expiry"]>;
|
|
233
|
+
readonly maximumExposureMillis: Schema.Natural;
|
|
234
|
+
readonly oldAuthenticationEvidence: Schema.Literal<"rejected">;
|
|
235
|
+
}>;
|
|
236
|
+
createdAtMillis: Schema.Int;
|
|
237
|
+
preparationExpiresAtMillis: Schema.Int;
|
|
238
|
+
retainUntilMillis: Schema.Int;
|
|
239
|
+
}>;
|
|
240
|
+
type PasswordPreparedReservation = typeof PasswordPreparedReservation.Type;
|
|
241
|
+
declare const PasswordPreparedReady: Schema.TaggedStruct<"Ready", {
|
|
242
|
+
readonly moduleId: Schema.NonEmptyString;
|
|
243
|
+
readonly generation: Schema.Int;
|
|
244
|
+
readonly intentId: Schema.brand<Schema.String, "effect-auth/PasswordPreparedIntentId">;
|
|
245
|
+
readonly version: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordPreparedVersion">;
|
|
246
|
+
readonly commandId: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordCommandId">;
|
|
247
|
+
readonly action: Schema.Literals<readonly ["add-password", "change-password", "reset-password"]>;
|
|
248
|
+
readonly revision: Schema.Struct<{
|
|
249
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
250
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
251
|
+
readonly credentials: Schema.$Array<Schema.Struct<{
|
|
252
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
253
|
+
readonly revision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
254
|
+
}>>;
|
|
255
|
+
}>;
|
|
256
|
+
readonly credential: Schema.optionalKey<Schema.Struct<{
|
|
257
|
+
readonly verifier: Schema.RedactedFromValue<Schema.brand<Schema.String, "effect-auth/EncodedPasswordHash">>;
|
|
258
|
+
readonly normalization: Schema.Literals<readonly ["none", "NFC"]>;
|
|
259
|
+
readonly identifierVerifiedAtMillis: Schema.optionalKey<Schema.Int>;
|
|
260
|
+
readonly moduleId: Schema.NonEmptyString;
|
|
261
|
+
readonly revision: Schema.Struct<{
|
|
262
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
263
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
264
|
+
readonly credentials: Schema.$Array<Schema.Struct<{
|
|
265
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
266
|
+
readonly revision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
267
|
+
}>>;
|
|
268
|
+
}>;
|
|
269
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
270
|
+
readonly credentialRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
271
|
+
readonly verifierVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
272
|
+
readonly identifier: Schema.compose<typeof LoginIdentifier, Schema.Struct<{
|
|
273
|
+
readonly namespace: Schema.NonEmptyString;
|
|
274
|
+
readonly value: Schema.NonEmptyString;
|
|
275
|
+
}>>;
|
|
276
|
+
readonly identifierBindingRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
277
|
+
}>>;
|
|
278
|
+
readonly capturedRequirement: Schema.Struct<{
|
|
279
|
+
readonly maximumAgeMillis: Schema.Int;
|
|
280
|
+
readonly alternatives: Schema.NonEmptyArray<Schema.Struct<{
|
|
281
|
+
readonly userVerified: Schema.Boolean;
|
|
282
|
+
readonly phishingResistant: Schema.Boolean;
|
|
283
|
+
readonly factors: Schema.$Array<Schema.Literals<readonly ["knowledge", "possession", "inherence"]>>;
|
|
284
|
+
readonly minimumCredentials: Schema.Int;
|
|
285
|
+
}>>;
|
|
286
|
+
}>;
|
|
287
|
+
readonly reset: Schema.optionalKey<Schema.Struct<{
|
|
288
|
+
readonly continuationId: Schema.brand<Schema.String, "effect-auth/ProofContinuationId">;
|
|
289
|
+
readonly binding: Schema.Union<readonly [Schema.TaggedStruct<"Identifier", {
|
|
290
|
+
readonly flowId: Schema.String;
|
|
291
|
+
readonly contextDigest: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
292
|
+
readonly identifier: Schema.compose<typeof LoginIdentifier, Schema.Struct<{
|
|
293
|
+
readonly namespace: Schema.NonEmptyString;
|
|
294
|
+
readonly value: Schema.NonEmptyString;
|
|
295
|
+
}>>;
|
|
296
|
+
}>, Schema.TaggedStruct<"Subject", {
|
|
297
|
+
readonly flowId: Schema.String;
|
|
298
|
+
readonly contextDigest: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
299
|
+
readonly revision: Schema.Struct<{
|
|
300
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
301
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
302
|
+
readonly credentials: Schema.$Array<Schema.Struct<{
|
|
303
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
304
|
+
readonly revision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
305
|
+
}>>;
|
|
306
|
+
}>;
|
|
307
|
+
readonly identifier: Schema.compose<typeof LoginIdentifier, Schema.Struct<{
|
|
308
|
+
readonly namespace: Schema.NonEmptyString;
|
|
309
|
+
readonly value: Schema.NonEmptyString;
|
|
310
|
+
}>>;
|
|
311
|
+
}>, Schema.TaggedStruct<"IdentifierChange", {
|
|
312
|
+
readonly flowId: Schema.String;
|
|
313
|
+
readonly contextDigest: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
314
|
+
readonly revision: Schema.Struct<{
|
|
315
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
316
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
317
|
+
readonly credentials: Schema.$Array<Schema.Struct<{
|
|
318
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
319
|
+
readonly revision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
320
|
+
}>>;
|
|
321
|
+
}>;
|
|
322
|
+
readonly identifier: Schema.compose<typeof LoginIdentifier, Schema.Struct<{
|
|
323
|
+
readonly namespace: Schema.NonEmptyString;
|
|
324
|
+
readonly value: Schema.NonEmptyString;
|
|
325
|
+
}>>;
|
|
326
|
+
}>]>;
|
|
327
|
+
}>>;
|
|
328
|
+
readonly invalidation: Schema.Struct<{
|
|
329
|
+
readonly trigger: Schema.Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
|
|
330
|
+
readonly existingSessions: Schema.Literals<readonly ["immediate", "original-absolute-expiry"]>;
|
|
331
|
+
readonly maximumExposureMillis: Schema.Natural;
|
|
332
|
+
readonly oldAuthenticationEvidence: Schema.Literal<"rejected">;
|
|
333
|
+
}>;
|
|
334
|
+
readonly createdAtMillis: Schema.Int;
|
|
335
|
+
readonly preparationExpiresAtMillis: Schema.Int;
|
|
336
|
+
readonly retainUntilMillis: Schema.Int;
|
|
337
|
+
readonly replacement: Schema.Struct<{
|
|
338
|
+
readonly verifier: Schema.RedactedFromValue<Schema.brand<Schema.String, "effect-auth/EncodedPasswordHash">>;
|
|
339
|
+
readonly normalization: Schema.Literals<readonly ["none", "NFC"]>;
|
|
340
|
+
}>;
|
|
341
|
+
readonly challenge: Schema.Struct<{
|
|
342
|
+
readonly action: Schema.Literals<readonly ["add-password", "change-password", "reset-password"]>;
|
|
343
|
+
readonly commandId: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordCommandId">;
|
|
344
|
+
readonly moduleId: Schema.NonEmptyString;
|
|
345
|
+
readonly revision: Schema.Struct<{
|
|
346
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
347
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
348
|
+
readonly credentials: Schema.$Array<Schema.Struct<{
|
|
349
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
350
|
+
readonly revision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
351
|
+
}>>;
|
|
352
|
+
}>;
|
|
353
|
+
readonly targetCredentialId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
354
|
+
readonly bindingDigest: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
355
|
+
}>;
|
|
356
|
+
readonly baseEvidence: Schema.optionalKey<Schema.Struct<{
|
|
357
|
+
readonly revision: Schema.Struct<{
|
|
358
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
359
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
360
|
+
readonly credentials: Schema.$Array<Schema.Struct<{
|
|
361
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
362
|
+
readonly revision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
363
|
+
}>>;
|
|
364
|
+
}>;
|
|
365
|
+
readonly flowId: Schema.brand<Schema.NonEmptyString, "effect-auth/AuthenticationFlowId">;
|
|
366
|
+
readonly bindingDigest: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
367
|
+
readonly proofs: Schema.NonEmptyArray<Schema.Struct<{
|
|
368
|
+
readonly userVerified: Schema.Boolean;
|
|
369
|
+
readonly phishingResistant: Schema.Boolean;
|
|
370
|
+
readonly verifiedAt: Schema.DateTimeUtcFromMillis;
|
|
371
|
+
readonly method: Schema.NonEmptyString;
|
|
372
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
373
|
+
readonly factors: Schema.$Array<Schema.Literals<readonly ["knowledge", "possession", "inherence"]>>;
|
|
374
|
+
}>>;
|
|
375
|
+
}>>;
|
|
376
|
+
readonly digest: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
377
|
+
readonly issuedAtMillis: Schema.Int;
|
|
378
|
+
readonly expiresAtMillis: Schema.Int;
|
|
379
|
+
}>;
|
|
380
|
+
type PasswordPreparedReady = typeof PasswordPreparedReady.Type;
|
|
381
|
+
declare const PasswordPreparedResult: Schema.Union<readonly [Schema.TaggedStruct<"Prepared", {
|
|
382
|
+
readonly intentId: Schema.brand<Schema.String, "effect-auth/PasswordPreparedIntentId">;
|
|
383
|
+
readonly expiresAtMillis: Schema.Int;
|
|
384
|
+
}>, Schema.TaggedStruct<"AlreadyExists", {}>]>;
|
|
385
|
+
type PasswordPreparedResult = typeof PasswordPreparedResult.Type;
|
|
386
|
+
interface PasswordPreparedContext {
|
|
387
|
+
readonly intentId: PasswordPreparedIntentId;
|
|
388
|
+
readonly action: PasswordAction;
|
|
389
|
+
readonly challenge: typeof BoundedChallenge.Type;
|
|
390
|
+
readonly capturedRequirement: PasswordPreparedRequirement;
|
|
391
|
+
readonly baseEvidence?: AuthenticationEvidence;
|
|
392
|
+
readonly expiresAtMillis: number;
|
|
393
|
+
}
|
|
394
|
+
/** Explicit private persistence codec: encodes the Redacted PHC verifier, never a
|
|
395
|
+
* plaintext password. Do not log this value or expose it through an operation. */
|
|
396
|
+
declare const PasswordPreparedReadyJson: Schema.fromJsonString<Schema.TaggedStruct<"Ready", {
|
|
397
|
+
readonly moduleId: Schema.NonEmptyString;
|
|
398
|
+
readonly generation: Schema.Int;
|
|
399
|
+
readonly intentId: Schema.brand<Schema.String, "effect-auth/PasswordPreparedIntentId">;
|
|
400
|
+
readonly version: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordPreparedVersion">;
|
|
401
|
+
readonly commandId: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordCommandId">;
|
|
402
|
+
readonly action: Schema.Literals<readonly ["add-password", "change-password", "reset-password"]>;
|
|
403
|
+
readonly revision: Schema.Struct<{
|
|
404
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
405
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
406
|
+
readonly credentials: Schema.$Array<Schema.Struct<{
|
|
407
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
408
|
+
readonly revision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
409
|
+
}>>;
|
|
410
|
+
}>;
|
|
411
|
+
readonly credential: Schema.optionalKey<Schema.Struct<{
|
|
412
|
+
readonly verifier: Schema.RedactedFromValue<Schema.brand<Schema.String, "effect-auth/EncodedPasswordHash">>;
|
|
413
|
+
readonly normalization: Schema.Literals<readonly ["none", "NFC"]>;
|
|
414
|
+
readonly identifierVerifiedAtMillis: Schema.optionalKey<Schema.Int>;
|
|
415
|
+
readonly moduleId: Schema.NonEmptyString;
|
|
416
|
+
readonly revision: Schema.Struct<{
|
|
417
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
418
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
419
|
+
readonly credentials: Schema.$Array<Schema.Struct<{
|
|
420
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
421
|
+
readonly revision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
422
|
+
}>>;
|
|
423
|
+
}>;
|
|
424
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
425
|
+
readonly credentialRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
426
|
+
readonly verifierVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
427
|
+
readonly identifier: Schema.compose<typeof LoginIdentifier, Schema.Struct<{
|
|
428
|
+
readonly namespace: Schema.NonEmptyString;
|
|
429
|
+
readonly value: Schema.NonEmptyString;
|
|
430
|
+
}>>;
|
|
431
|
+
readonly identifierBindingRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
432
|
+
}>>;
|
|
433
|
+
readonly capturedRequirement: Schema.Struct<{
|
|
434
|
+
readonly maximumAgeMillis: Schema.Int;
|
|
435
|
+
readonly alternatives: Schema.NonEmptyArray<Schema.Struct<{
|
|
436
|
+
readonly userVerified: Schema.Boolean;
|
|
437
|
+
readonly phishingResistant: Schema.Boolean;
|
|
438
|
+
readonly factors: Schema.$Array<Schema.Literals<readonly ["knowledge", "possession", "inherence"]>>;
|
|
439
|
+
readonly minimumCredentials: Schema.Int;
|
|
440
|
+
}>>;
|
|
441
|
+
}>;
|
|
442
|
+
readonly reset: Schema.optionalKey<Schema.Struct<{
|
|
443
|
+
readonly continuationId: Schema.brand<Schema.String, "effect-auth/ProofContinuationId">;
|
|
444
|
+
readonly binding: Schema.Union<readonly [Schema.TaggedStruct<"Identifier", {
|
|
445
|
+
readonly flowId: Schema.String;
|
|
446
|
+
readonly contextDigest: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
447
|
+
readonly identifier: Schema.compose<typeof LoginIdentifier, Schema.Struct<{
|
|
448
|
+
readonly namespace: Schema.NonEmptyString;
|
|
449
|
+
readonly value: Schema.NonEmptyString;
|
|
450
|
+
}>>;
|
|
451
|
+
}>, Schema.TaggedStruct<"Subject", {
|
|
452
|
+
readonly flowId: Schema.String;
|
|
453
|
+
readonly contextDigest: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
454
|
+
readonly revision: Schema.Struct<{
|
|
455
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
456
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
457
|
+
readonly credentials: Schema.$Array<Schema.Struct<{
|
|
458
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
459
|
+
readonly revision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
460
|
+
}>>;
|
|
461
|
+
}>;
|
|
462
|
+
readonly identifier: Schema.compose<typeof LoginIdentifier, Schema.Struct<{
|
|
463
|
+
readonly namespace: Schema.NonEmptyString;
|
|
464
|
+
readonly value: Schema.NonEmptyString;
|
|
465
|
+
}>>;
|
|
466
|
+
}>, Schema.TaggedStruct<"IdentifierChange", {
|
|
467
|
+
readonly flowId: Schema.String;
|
|
468
|
+
readonly contextDigest: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
469
|
+
readonly revision: Schema.Struct<{
|
|
470
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
471
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
472
|
+
readonly credentials: Schema.$Array<Schema.Struct<{
|
|
473
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
474
|
+
readonly revision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
475
|
+
}>>;
|
|
476
|
+
}>;
|
|
477
|
+
readonly identifier: Schema.compose<typeof LoginIdentifier, Schema.Struct<{
|
|
478
|
+
readonly namespace: Schema.NonEmptyString;
|
|
479
|
+
readonly value: Schema.NonEmptyString;
|
|
480
|
+
}>>;
|
|
481
|
+
}>]>;
|
|
482
|
+
}>>;
|
|
483
|
+
readonly invalidation: Schema.Struct<{
|
|
484
|
+
readonly trigger: Schema.Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
|
|
485
|
+
readonly existingSessions: Schema.Literals<readonly ["immediate", "original-absolute-expiry"]>;
|
|
486
|
+
readonly maximumExposureMillis: Schema.Natural;
|
|
487
|
+
readonly oldAuthenticationEvidence: Schema.Literal<"rejected">;
|
|
488
|
+
}>;
|
|
489
|
+
readonly createdAtMillis: Schema.Int;
|
|
490
|
+
readonly preparationExpiresAtMillis: Schema.Int;
|
|
491
|
+
readonly retainUntilMillis: Schema.Int;
|
|
492
|
+
readonly replacement: Schema.Struct<{
|
|
493
|
+
readonly verifier: Schema.RedactedFromValue<Schema.brand<Schema.String, "effect-auth/EncodedPasswordHash">>;
|
|
494
|
+
readonly normalization: Schema.Literals<readonly ["none", "NFC"]>;
|
|
495
|
+
}>;
|
|
496
|
+
readonly challenge: Schema.Struct<{
|
|
497
|
+
readonly action: Schema.Literals<readonly ["add-password", "change-password", "reset-password"]>;
|
|
498
|
+
readonly commandId: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordCommandId">;
|
|
499
|
+
readonly moduleId: Schema.NonEmptyString;
|
|
500
|
+
readonly revision: Schema.Struct<{
|
|
501
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
502
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
503
|
+
readonly credentials: Schema.$Array<Schema.Struct<{
|
|
504
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
505
|
+
readonly revision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
506
|
+
}>>;
|
|
507
|
+
}>;
|
|
508
|
+
readonly targetCredentialId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
509
|
+
readonly bindingDigest: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
510
|
+
}>;
|
|
511
|
+
readonly baseEvidence: Schema.optionalKey<Schema.Struct<{
|
|
512
|
+
readonly revision: Schema.Struct<{
|
|
513
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
514
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
515
|
+
readonly credentials: Schema.$Array<Schema.Struct<{
|
|
516
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
517
|
+
readonly revision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
518
|
+
}>>;
|
|
519
|
+
}>;
|
|
520
|
+
readonly flowId: Schema.brand<Schema.NonEmptyString, "effect-auth/AuthenticationFlowId">;
|
|
521
|
+
readonly bindingDigest: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
522
|
+
readonly proofs: Schema.NonEmptyArray<Schema.Struct<{
|
|
523
|
+
readonly userVerified: Schema.Boolean;
|
|
524
|
+
readonly phishingResistant: Schema.Boolean;
|
|
525
|
+
readonly verifiedAt: Schema.DateTimeUtcFromMillis;
|
|
526
|
+
readonly method: Schema.NonEmptyString;
|
|
527
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
528
|
+
readonly factors: Schema.$Array<Schema.Literals<readonly ["knowledge", "possession", "inherence"]>>;
|
|
529
|
+
}>>;
|
|
530
|
+
}>>;
|
|
531
|
+
readonly digest: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
532
|
+
readonly issuedAtMillis: Schema.Int;
|
|
533
|
+
readonly expiresAtMillis: Schema.Int;
|
|
534
|
+
}>>;
|
|
535
|
+
declare const encodePasswordPreparedReady: (value: {
|
|
536
|
+
readonly _tag: "Ready";
|
|
537
|
+
readonly moduleId: string;
|
|
538
|
+
readonly generation: number;
|
|
539
|
+
readonly intentId: string & import("effect/Brand").Brand<"effect-auth/PasswordPreparedIntentId">;
|
|
540
|
+
readonly version: string & import("effect/Brand").Brand<"effect-auth/PasswordPreparedVersion">;
|
|
541
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
|
|
542
|
+
readonly action: "add-password" | "change-password" | "reset-password";
|
|
543
|
+
readonly revision: {
|
|
544
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
545
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
546
|
+
readonly credentials: readonly {
|
|
547
|
+
readonly credentialId: string;
|
|
548
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
549
|
+
}[];
|
|
550
|
+
};
|
|
551
|
+
readonly credential?: {
|
|
552
|
+
readonly verifier: Redacted.Redacted<string & import("effect/Brand").Brand<"effect-auth/EncodedPasswordHash">>;
|
|
553
|
+
readonly normalization: "NFC" | "none";
|
|
554
|
+
readonly identifierVerifiedAtMillis?: number | undefined;
|
|
555
|
+
readonly moduleId: string;
|
|
556
|
+
readonly revision: {
|
|
557
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
558
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
559
|
+
readonly credentials: readonly {
|
|
560
|
+
readonly credentialId: string;
|
|
561
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
562
|
+
}[];
|
|
563
|
+
};
|
|
564
|
+
readonly credentialId: string;
|
|
565
|
+
readonly credentialRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
566
|
+
readonly verifierVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
567
|
+
readonly identifier: LoginIdentifier;
|
|
568
|
+
readonly identifierBindingRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
569
|
+
} | undefined;
|
|
570
|
+
readonly capturedRequirement: {
|
|
571
|
+
readonly maximumAgeMillis: number;
|
|
572
|
+
readonly alternatives: readonly [{
|
|
573
|
+
readonly userVerified: boolean;
|
|
574
|
+
readonly phishingResistant: boolean;
|
|
575
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
576
|
+
readonly minimumCredentials: number;
|
|
577
|
+
}, ...{
|
|
578
|
+
readonly userVerified: boolean;
|
|
579
|
+
readonly phishingResistant: boolean;
|
|
580
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
581
|
+
readonly minimumCredentials: number;
|
|
582
|
+
}[]];
|
|
583
|
+
};
|
|
584
|
+
readonly reset?: {
|
|
585
|
+
readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
|
|
586
|
+
readonly binding: {
|
|
587
|
+
readonly _tag: "Identifier";
|
|
588
|
+
readonly flowId: string;
|
|
589
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
590
|
+
readonly identifier: LoginIdentifier;
|
|
591
|
+
} | {
|
|
592
|
+
readonly _tag: "Subject";
|
|
593
|
+
readonly flowId: string;
|
|
594
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
595
|
+
readonly revision: {
|
|
596
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
597
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
598
|
+
readonly credentials: readonly {
|
|
599
|
+
readonly credentialId: string;
|
|
600
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
601
|
+
}[];
|
|
602
|
+
};
|
|
603
|
+
readonly identifier: LoginIdentifier;
|
|
604
|
+
} | {
|
|
605
|
+
readonly _tag: "IdentifierChange";
|
|
606
|
+
readonly flowId: string;
|
|
607
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
608
|
+
readonly revision: {
|
|
609
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
610
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
611
|
+
readonly credentials: readonly {
|
|
612
|
+
readonly credentialId: string;
|
|
613
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
614
|
+
}[];
|
|
615
|
+
};
|
|
616
|
+
readonly identifier: LoginIdentifier;
|
|
617
|
+
};
|
|
618
|
+
} | undefined;
|
|
619
|
+
readonly invalidation: {
|
|
620
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
621
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
622
|
+
readonly maximumExposureMillis: number;
|
|
623
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
624
|
+
};
|
|
625
|
+
readonly createdAtMillis: number;
|
|
626
|
+
readonly preparationExpiresAtMillis: number;
|
|
627
|
+
readonly retainUntilMillis: number;
|
|
628
|
+
readonly replacement: {
|
|
629
|
+
readonly verifier: Redacted.Redacted<string & import("effect/Brand").Brand<"effect-auth/EncodedPasswordHash">>;
|
|
630
|
+
readonly normalization: "NFC" | "none";
|
|
631
|
+
};
|
|
632
|
+
readonly challenge: {
|
|
633
|
+
readonly action: "add-password" | "change-password" | "reset-password";
|
|
634
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
|
|
635
|
+
readonly moduleId: string;
|
|
636
|
+
readonly revision: {
|
|
637
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
638
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
639
|
+
readonly credentials: readonly {
|
|
640
|
+
readonly credentialId: string;
|
|
641
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
642
|
+
}[];
|
|
643
|
+
};
|
|
644
|
+
readonly targetCredentialId?: string | undefined;
|
|
645
|
+
readonly bindingDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
646
|
+
};
|
|
647
|
+
readonly baseEvidence?: {
|
|
648
|
+
readonly revision: {
|
|
649
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
650
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
651
|
+
readonly credentials: readonly {
|
|
652
|
+
readonly credentialId: string;
|
|
653
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
654
|
+
}[];
|
|
655
|
+
};
|
|
656
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
|
|
657
|
+
readonly bindingDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
658
|
+
readonly proofs: readonly [{
|
|
659
|
+
readonly userVerified: boolean;
|
|
660
|
+
readonly phishingResistant: boolean;
|
|
661
|
+
readonly verifiedAt: DateTime.Utc;
|
|
662
|
+
readonly method: string;
|
|
663
|
+
readonly credentialId: string;
|
|
664
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
665
|
+
}, ...{
|
|
666
|
+
readonly userVerified: boolean;
|
|
667
|
+
readonly phishingResistant: boolean;
|
|
668
|
+
readonly verifiedAt: DateTime.Utc;
|
|
669
|
+
readonly method: string;
|
|
670
|
+
readonly credentialId: string;
|
|
671
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
672
|
+
}[]];
|
|
673
|
+
} | undefined;
|
|
674
|
+
readonly digest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
675
|
+
readonly issuedAtMillis: number;
|
|
676
|
+
readonly expiresAtMillis: number;
|
|
677
|
+
}) => Effect.Effect<string, PasswordUnavailable, never>;
|
|
678
|
+
declare const decodePasswordPreparedReady: (value: string) => Effect.Effect<{
|
|
679
|
+
_tag: "Ready";
|
|
680
|
+
moduleId: string;
|
|
681
|
+
generation: number;
|
|
682
|
+
intentId: string & import("effect/Brand").Brand<"effect-auth/PasswordPreparedIntentId">;
|
|
683
|
+
version: string & import("effect/Brand").Brand<"effect-auth/PasswordPreparedVersion">;
|
|
684
|
+
commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
|
|
685
|
+
action: "add-password" | "change-password" | "reset-password";
|
|
686
|
+
credential?: Readonly<{
|
|
687
|
+
moduleId: string;
|
|
688
|
+
credentialId: string;
|
|
689
|
+
credentialRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
690
|
+
verifierVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
691
|
+
verifier: Redacted.Redacted<string & import("effect/Brand").Brand<"effect-auth/EncodedPasswordHash">>;
|
|
692
|
+
normalization: "NFC" | "none";
|
|
693
|
+
identifierBindingRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
694
|
+
identifierVerifiedAtMillis?: number | undefined;
|
|
695
|
+
revision: {
|
|
696
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
697
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
698
|
+
readonly credentials: readonly {
|
|
699
|
+
readonly credentialId: string;
|
|
700
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
701
|
+
}[];
|
|
702
|
+
};
|
|
703
|
+
identifier: Readonly<LoginIdentifier>;
|
|
704
|
+
}> | undefined;
|
|
705
|
+
reset?: {
|
|
706
|
+
readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
|
|
707
|
+
readonly binding: {
|
|
708
|
+
readonly _tag: "Identifier";
|
|
709
|
+
readonly flowId: string;
|
|
710
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
711
|
+
readonly identifier: LoginIdentifier;
|
|
712
|
+
} | {
|
|
713
|
+
readonly _tag: "Subject";
|
|
714
|
+
readonly flowId: string;
|
|
715
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
716
|
+
readonly revision: {
|
|
717
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
718
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
719
|
+
readonly credentials: readonly {
|
|
720
|
+
readonly credentialId: string;
|
|
721
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
722
|
+
}[];
|
|
723
|
+
};
|
|
724
|
+
readonly identifier: LoginIdentifier;
|
|
725
|
+
} | {
|
|
726
|
+
readonly _tag: "IdentifierChange";
|
|
727
|
+
readonly flowId: string;
|
|
728
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
729
|
+
readonly revision: {
|
|
730
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
731
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
732
|
+
readonly credentials: readonly {
|
|
733
|
+
readonly credentialId: string;
|
|
734
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
735
|
+
}[];
|
|
736
|
+
};
|
|
737
|
+
readonly identifier: LoginIdentifier;
|
|
738
|
+
};
|
|
739
|
+
} | undefined;
|
|
740
|
+
invalidation: {
|
|
741
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
742
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
743
|
+
readonly maximumExposureMillis: number;
|
|
744
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
745
|
+
};
|
|
746
|
+
createdAtMillis: number;
|
|
747
|
+
preparationExpiresAtMillis: number;
|
|
748
|
+
retainUntilMillis: number;
|
|
749
|
+
replacement: {
|
|
750
|
+
readonly verifier: Redacted.Redacted<string & import("effect/Brand").Brand<"effect-auth/EncodedPasswordHash">>;
|
|
751
|
+
readonly normalization: "NFC" | "none";
|
|
752
|
+
};
|
|
753
|
+
baseEvidence?: Readonly<{
|
|
754
|
+
flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
|
|
755
|
+
bindingDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
756
|
+
revision: Readonly<{
|
|
757
|
+
subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
758
|
+
securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
759
|
+
credentials: readonly Readonly<{
|
|
760
|
+
credentialId: string;
|
|
761
|
+
revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
762
|
+
}>[];
|
|
763
|
+
}>;
|
|
764
|
+
proofs: readonly [Readonly<{
|
|
765
|
+
method: string;
|
|
766
|
+
credentialId: string;
|
|
767
|
+
userVerified: boolean;
|
|
768
|
+
phishingResistant: boolean;
|
|
769
|
+
factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
770
|
+
verifiedAt: DateTime.Utc;
|
|
771
|
+
}>, ...Readonly<{
|
|
772
|
+
method: string;
|
|
773
|
+
credentialId: string;
|
|
774
|
+
userVerified: boolean;
|
|
775
|
+
phishingResistant: boolean;
|
|
776
|
+
factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
777
|
+
verifiedAt: DateTime.Utc;
|
|
778
|
+
}>[]];
|
|
779
|
+
}> | undefined;
|
|
780
|
+
digest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
781
|
+
issuedAtMillis: number;
|
|
782
|
+
expiresAtMillis: number;
|
|
783
|
+
revision: {
|
|
784
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
785
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
786
|
+
readonly credentials: readonly {
|
|
787
|
+
readonly credentialId: string;
|
|
788
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
789
|
+
}[];
|
|
790
|
+
};
|
|
791
|
+
challenge: {
|
|
792
|
+
action: "add-password" | "change-password" | "reset-password";
|
|
793
|
+
commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
|
|
794
|
+
moduleId: string;
|
|
795
|
+
targetCredentialId?: string | undefined;
|
|
796
|
+
bindingDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
797
|
+
revision: {
|
|
798
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
799
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
800
|
+
readonly credentials: readonly {
|
|
801
|
+
readonly credentialId: string;
|
|
802
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
803
|
+
}[];
|
|
804
|
+
};
|
|
805
|
+
};
|
|
806
|
+
capturedRequirement: Readonly<{
|
|
807
|
+
maximumAgeMillis: number;
|
|
808
|
+
alternatives: readonly [Readonly<{
|
|
809
|
+
userVerified: boolean;
|
|
810
|
+
phishingResistant: boolean;
|
|
811
|
+
minimumCredentials: number;
|
|
812
|
+
factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
813
|
+
}>, ...Readonly<{
|
|
814
|
+
userVerified: boolean;
|
|
815
|
+
phishingResistant: boolean;
|
|
816
|
+
minimumCredentials: number;
|
|
817
|
+
factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
818
|
+
}>[]];
|
|
819
|
+
}>;
|
|
820
|
+
}, PasswordUnavailable, never>;
|
|
821
|
+
declare const snapshotPasswordPreparedReservation: (input: {
|
|
822
|
+
readonly _tag: "Preparing";
|
|
823
|
+
readonly moduleId: string;
|
|
824
|
+
readonly generation: number;
|
|
825
|
+
readonly intentId: string & import("effect/Brand").Brand<"effect-auth/PasswordPreparedIntentId">;
|
|
826
|
+
readonly version: string & import("effect/Brand").Brand<"effect-auth/PasswordPreparedVersion">;
|
|
827
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
|
|
828
|
+
readonly action: "add-password" | "change-password" | "reset-password";
|
|
829
|
+
readonly revision: {
|
|
830
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
831
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
832
|
+
readonly credentials: readonly {
|
|
833
|
+
readonly credentialId: string;
|
|
834
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
835
|
+
}[];
|
|
836
|
+
};
|
|
837
|
+
readonly credential?: {
|
|
838
|
+
readonly verifier: Redacted.Redacted<string & import("effect/Brand").Brand<"effect-auth/EncodedPasswordHash">>;
|
|
839
|
+
readonly normalization: "NFC" | "none";
|
|
840
|
+
readonly identifierVerifiedAtMillis?: number | undefined;
|
|
841
|
+
readonly moduleId: string;
|
|
842
|
+
readonly revision: {
|
|
843
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
844
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
845
|
+
readonly credentials: readonly {
|
|
846
|
+
readonly credentialId: string;
|
|
847
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
848
|
+
}[];
|
|
849
|
+
};
|
|
850
|
+
readonly credentialId: string;
|
|
851
|
+
readonly credentialRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
852
|
+
readonly verifierVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
853
|
+
readonly identifier: LoginIdentifier;
|
|
854
|
+
readonly identifierBindingRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
855
|
+
} | undefined;
|
|
856
|
+
readonly capturedRequirement: {
|
|
857
|
+
readonly maximumAgeMillis: number;
|
|
858
|
+
readonly alternatives: readonly [{
|
|
859
|
+
readonly userVerified: boolean;
|
|
860
|
+
readonly phishingResistant: boolean;
|
|
861
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
862
|
+
readonly minimumCredentials: number;
|
|
863
|
+
}, ...{
|
|
864
|
+
readonly userVerified: boolean;
|
|
865
|
+
readonly phishingResistant: boolean;
|
|
866
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
867
|
+
readonly minimumCredentials: number;
|
|
868
|
+
}[]];
|
|
869
|
+
};
|
|
870
|
+
readonly reset?: {
|
|
871
|
+
readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
|
|
872
|
+
readonly binding: {
|
|
873
|
+
readonly _tag: "Identifier";
|
|
874
|
+
readonly flowId: string;
|
|
875
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
876
|
+
readonly identifier: LoginIdentifier;
|
|
877
|
+
} | {
|
|
878
|
+
readonly _tag: "Subject";
|
|
879
|
+
readonly flowId: string;
|
|
880
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
881
|
+
readonly revision: {
|
|
882
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
883
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
884
|
+
readonly credentials: readonly {
|
|
885
|
+
readonly credentialId: string;
|
|
886
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
887
|
+
}[];
|
|
888
|
+
};
|
|
889
|
+
readonly identifier: LoginIdentifier;
|
|
890
|
+
} | {
|
|
891
|
+
readonly _tag: "IdentifierChange";
|
|
892
|
+
readonly flowId: string;
|
|
893
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
894
|
+
readonly revision: {
|
|
895
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
896
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
897
|
+
readonly credentials: readonly {
|
|
898
|
+
readonly credentialId: string;
|
|
899
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
900
|
+
}[];
|
|
901
|
+
};
|
|
902
|
+
readonly identifier: LoginIdentifier;
|
|
903
|
+
};
|
|
904
|
+
} | undefined;
|
|
905
|
+
readonly invalidation: {
|
|
906
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
907
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
908
|
+
readonly maximumExposureMillis: number;
|
|
909
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
910
|
+
};
|
|
911
|
+
readonly createdAtMillis: number;
|
|
912
|
+
readonly preparationExpiresAtMillis: number;
|
|
913
|
+
readonly retainUntilMillis: number;
|
|
914
|
+
}) => Effect.Effect<{
|
|
915
|
+
_tag: "Preparing";
|
|
916
|
+
moduleId: string;
|
|
917
|
+
generation: number;
|
|
918
|
+
intentId: string & import("effect/Brand").Brand<"effect-auth/PasswordPreparedIntentId">;
|
|
919
|
+
version: string & import("effect/Brand").Brand<"effect-auth/PasswordPreparedVersion">;
|
|
920
|
+
commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
|
|
921
|
+
action: "add-password" | "change-password" | "reset-password";
|
|
922
|
+
credential?: Readonly<{
|
|
923
|
+
moduleId: string;
|
|
924
|
+
credentialId: string;
|
|
925
|
+
credentialRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
926
|
+
verifierVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
927
|
+
verifier: Redacted.Redacted<string & import("effect/Brand").Brand<"effect-auth/EncodedPasswordHash">>;
|
|
928
|
+
normalization: "NFC" | "none";
|
|
929
|
+
identifierBindingRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
930
|
+
identifierVerifiedAtMillis?: number | undefined;
|
|
931
|
+
revision: {
|
|
932
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
933
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
934
|
+
readonly credentials: readonly {
|
|
935
|
+
readonly credentialId: string;
|
|
936
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
937
|
+
}[];
|
|
938
|
+
};
|
|
939
|
+
identifier: Readonly<LoginIdentifier>;
|
|
940
|
+
}> | undefined;
|
|
941
|
+
reset?: {
|
|
942
|
+
readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
|
|
943
|
+
readonly binding: {
|
|
944
|
+
readonly _tag: "Identifier";
|
|
945
|
+
readonly flowId: string;
|
|
946
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
947
|
+
readonly identifier: LoginIdentifier;
|
|
948
|
+
} | {
|
|
949
|
+
readonly _tag: "Subject";
|
|
950
|
+
readonly flowId: string;
|
|
951
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
952
|
+
readonly revision: {
|
|
953
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
954
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
955
|
+
readonly credentials: readonly {
|
|
956
|
+
readonly credentialId: string;
|
|
957
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
958
|
+
}[];
|
|
959
|
+
};
|
|
960
|
+
readonly identifier: LoginIdentifier;
|
|
961
|
+
} | {
|
|
962
|
+
readonly _tag: "IdentifierChange";
|
|
963
|
+
readonly flowId: string;
|
|
964
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
965
|
+
readonly revision: {
|
|
966
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
967
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
968
|
+
readonly credentials: readonly {
|
|
969
|
+
readonly credentialId: string;
|
|
970
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
971
|
+
}[];
|
|
972
|
+
};
|
|
973
|
+
readonly identifier: LoginIdentifier;
|
|
974
|
+
};
|
|
975
|
+
} | undefined;
|
|
976
|
+
invalidation: {
|
|
977
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
978
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
979
|
+
readonly maximumExposureMillis: number;
|
|
980
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
981
|
+
};
|
|
982
|
+
createdAtMillis: number;
|
|
983
|
+
preparationExpiresAtMillis: number;
|
|
984
|
+
retainUntilMillis: number;
|
|
985
|
+
revision: {
|
|
986
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
987
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
988
|
+
readonly credentials: readonly {
|
|
989
|
+
readonly credentialId: string;
|
|
990
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
991
|
+
}[];
|
|
992
|
+
};
|
|
993
|
+
capturedRequirement: Readonly<{
|
|
994
|
+
maximumAgeMillis: number;
|
|
995
|
+
alternatives: readonly [Readonly<{
|
|
996
|
+
userVerified: boolean;
|
|
997
|
+
phishingResistant: boolean;
|
|
998
|
+
minimumCredentials: number;
|
|
999
|
+
factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1000
|
+
}>, ...Readonly<{
|
|
1001
|
+
userVerified: boolean;
|
|
1002
|
+
phishingResistant: boolean;
|
|
1003
|
+
minimumCredentials: number;
|
|
1004
|
+
factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1005
|
+
}>[]];
|
|
1006
|
+
}>;
|
|
1007
|
+
}, PasswordUnavailable, never>;
|
|
1008
|
+
declare const snapshotPasswordPreparedReady: (input: {
|
|
1009
|
+
readonly _tag: "Ready";
|
|
1010
|
+
readonly moduleId: string;
|
|
1011
|
+
readonly generation: number;
|
|
1012
|
+
readonly intentId: string & import("effect/Brand").Brand<"effect-auth/PasswordPreparedIntentId">;
|
|
1013
|
+
readonly version: string & import("effect/Brand").Brand<"effect-auth/PasswordPreparedVersion">;
|
|
1014
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
|
|
1015
|
+
readonly action: "add-password" | "change-password" | "reset-password";
|
|
1016
|
+
readonly revision: {
|
|
1017
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1018
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1019
|
+
readonly credentials: readonly {
|
|
1020
|
+
readonly credentialId: string;
|
|
1021
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1022
|
+
}[];
|
|
1023
|
+
};
|
|
1024
|
+
readonly credential?: {
|
|
1025
|
+
readonly verifier: Redacted.Redacted<string & import("effect/Brand").Brand<"effect-auth/EncodedPasswordHash">>;
|
|
1026
|
+
readonly normalization: "NFC" | "none";
|
|
1027
|
+
readonly identifierVerifiedAtMillis?: number | undefined;
|
|
1028
|
+
readonly moduleId: string;
|
|
1029
|
+
readonly revision: {
|
|
1030
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1031
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1032
|
+
readonly credentials: readonly {
|
|
1033
|
+
readonly credentialId: string;
|
|
1034
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1035
|
+
}[];
|
|
1036
|
+
};
|
|
1037
|
+
readonly credentialId: string;
|
|
1038
|
+
readonly credentialRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1039
|
+
readonly verifierVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1040
|
+
readonly identifier: LoginIdentifier;
|
|
1041
|
+
readonly identifierBindingRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1042
|
+
} | undefined;
|
|
1043
|
+
readonly capturedRequirement: {
|
|
1044
|
+
readonly maximumAgeMillis: number;
|
|
1045
|
+
readonly alternatives: readonly [{
|
|
1046
|
+
readonly userVerified: boolean;
|
|
1047
|
+
readonly phishingResistant: boolean;
|
|
1048
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1049
|
+
readonly minimumCredentials: number;
|
|
1050
|
+
}, ...{
|
|
1051
|
+
readonly userVerified: boolean;
|
|
1052
|
+
readonly phishingResistant: boolean;
|
|
1053
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1054
|
+
readonly minimumCredentials: number;
|
|
1055
|
+
}[]];
|
|
1056
|
+
};
|
|
1057
|
+
readonly reset?: {
|
|
1058
|
+
readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
|
|
1059
|
+
readonly binding: {
|
|
1060
|
+
readonly _tag: "Identifier";
|
|
1061
|
+
readonly flowId: string;
|
|
1062
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1063
|
+
readonly identifier: LoginIdentifier;
|
|
1064
|
+
} | {
|
|
1065
|
+
readonly _tag: "Subject";
|
|
1066
|
+
readonly flowId: string;
|
|
1067
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1068
|
+
readonly revision: {
|
|
1069
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1070
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1071
|
+
readonly credentials: readonly {
|
|
1072
|
+
readonly credentialId: string;
|
|
1073
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1074
|
+
}[];
|
|
1075
|
+
};
|
|
1076
|
+
readonly identifier: LoginIdentifier;
|
|
1077
|
+
} | {
|
|
1078
|
+
readonly _tag: "IdentifierChange";
|
|
1079
|
+
readonly flowId: string;
|
|
1080
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1081
|
+
readonly revision: {
|
|
1082
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1083
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1084
|
+
readonly credentials: readonly {
|
|
1085
|
+
readonly credentialId: string;
|
|
1086
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1087
|
+
}[];
|
|
1088
|
+
};
|
|
1089
|
+
readonly identifier: LoginIdentifier;
|
|
1090
|
+
};
|
|
1091
|
+
} | undefined;
|
|
1092
|
+
readonly invalidation: {
|
|
1093
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
1094
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
1095
|
+
readonly maximumExposureMillis: number;
|
|
1096
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
1097
|
+
};
|
|
1098
|
+
readonly createdAtMillis: number;
|
|
1099
|
+
readonly preparationExpiresAtMillis: number;
|
|
1100
|
+
readonly retainUntilMillis: number;
|
|
1101
|
+
readonly replacement: {
|
|
1102
|
+
readonly verifier: Redacted.Redacted<string & import("effect/Brand").Brand<"effect-auth/EncodedPasswordHash">>;
|
|
1103
|
+
readonly normalization: "NFC" | "none";
|
|
1104
|
+
};
|
|
1105
|
+
readonly challenge: {
|
|
1106
|
+
readonly action: "add-password" | "change-password" | "reset-password";
|
|
1107
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
|
|
1108
|
+
readonly moduleId: string;
|
|
1109
|
+
readonly revision: {
|
|
1110
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1111
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1112
|
+
readonly credentials: readonly {
|
|
1113
|
+
readonly credentialId: string;
|
|
1114
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1115
|
+
}[];
|
|
1116
|
+
};
|
|
1117
|
+
readonly targetCredentialId?: string | undefined;
|
|
1118
|
+
readonly bindingDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1119
|
+
};
|
|
1120
|
+
readonly baseEvidence?: {
|
|
1121
|
+
readonly revision: {
|
|
1122
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1123
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1124
|
+
readonly credentials: readonly {
|
|
1125
|
+
readonly credentialId: string;
|
|
1126
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1127
|
+
}[];
|
|
1128
|
+
};
|
|
1129
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
|
|
1130
|
+
readonly bindingDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1131
|
+
readonly proofs: readonly [{
|
|
1132
|
+
readonly userVerified: boolean;
|
|
1133
|
+
readonly phishingResistant: boolean;
|
|
1134
|
+
readonly verifiedAt: DateTime.Utc;
|
|
1135
|
+
readonly method: string;
|
|
1136
|
+
readonly credentialId: string;
|
|
1137
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1138
|
+
}, ...{
|
|
1139
|
+
readonly userVerified: boolean;
|
|
1140
|
+
readonly phishingResistant: boolean;
|
|
1141
|
+
readonly verifiedAt: DateTime.Utc;
|
|
1142
|
+
readonly method: string;
|
|
1143
|
+
readonly credentialId: string;
|
|
1144
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1145
|
+
}[]];
|
|
1146
|
+
} | undefined;
|
|
1147
|
+
readonly digest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1148
|
+
readonly issuedAtMillis: number;
|
|
1149
|
+
readonly expiresAtMillis: number;
|
|
1150
|
+
}) => Effect.Effect<{
|
|
1151
|
+
_tag: "Ready";
|
|
1152
|
+
moduleId: string;
|
|
1153
|
+
generation: number;
|
|
1154
|
+
intentId: string & import("effect/Brand").Brand<"effect-auth/PasswordPreparedIntentId">;
|
|
1155
|
+
version: string & import("effect/Brand").Brand<"effect-auth/PasswordPreparedVersion">;
|
|
1156
|
+
commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
|
|
1157
|
+
action: "add-password" | "change-password" | "reset-password";
|
|
1158
|
+
credential?: Readonly<{
|
|
1159
|
+
moduleId: string;
|
|
1160
|
+
credentialId: string;
|
|
1161
|
+
credentialRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1162
|
+
verifierVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1163
|
+
verifier: Redacted.Redacted<string & import("effect/Brand").Brand<"effect-auth/EncodedPasswordHash">>;
|
|
1164
|
+
normalization: "NFC" | "none";
|
|
1165
|
+
identifierBindingRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1166
|
+
identifierVerifiedAtMillis?: number | undefined;
|
|
1167
|
+
revision: {
|
|
1168
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1169
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1170
|
+
readonly credentials: readonly {
|
|
1171
|
+
readonly credentialId: string;
|
|
1172
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1173
|
+
}[];
|
|
1174
|
+
};
|
|
1175
|
+
identifier: Readonly<LoginIdentifier>;
|
|
1176
|
+
}> | undefined;
|
|
1177
|
+
reset?: {
|
|
1178
|
+
readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
|
|
1179
|
+
readonly binding: {
|
|
1180
|
+
readonly _tag: "Identifier";
|
|
1181
|
+
readonly flowId: string;
|
|
1182
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1183
|
+
readonly identifier: LoginIdentifier;
|
|
1184
|
+
} | {
|
|
1185
|
+
readonly _tag: "Subject";
|
|
1186
|
+
readonly flowId: string;
|
|
1187
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1188
|
+
readonly revision: {
|
|
1189
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1190
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1191
|
+
readonly credentials: readonly {
|
|
1192
|
+
readonly credentialId: string;
|
|
1193
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1194
|
+
}[];
|
|
1195
|
+
};
|
|
1196
|
+
readonly identifier: LoginIdentifier;
|
|
1197
|
+
} | {
|
|
1198
|
+
readonly _tag: "IdentifierChange";
|
|
1199
|
+
readonly flowId: string;
|
|
1200
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1201
|
+
readonly revision: {
|
|
1202
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1203
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1204
|
+
readonly credentials: readonly {
|
|
1205
|
+
readonly credentialId: string;
|
|
1206
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1207
|
+
}[];
|
|
1208
|
+
};
|
|
1209
|
+
readonly identifier: LoginIdentifier;
|
|
1210
|
+
};
|
|
1211
|
+
} | undefined;
|
|
1212
|
+
invalidation: {
|
|
1213
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
1214
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
1215
|
+
readonly maximumExposureMillis: number;
|
|
1216
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
1217
|
+
};
|
|
1218
|
+
createdAtMillis: number;
|
|
1219
|
+
preparationExpiresAtMillis: number;
|
|
1220
|
+
retainUntilMillis: number;
|
|
1221
|
+
replacement: {
|
|
1222
|
+
readonly verifier: Redacted.Redacted<string & import("effect/Brand").Brand<"effect-auth/EncodedPasswordHash">>;
|
|
1223
|
+
readonly normalization: "NFC" | "none";
|
|
1224
|
+
};
|
|
1225
|
+
baseEvidence?: Readonly<{
|
|
1226
|
+
flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
|
|
1227
|
+
bindingDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1228
|
+
revision: Readonly<{
|
|
1229
|
+
subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1230
|
+
securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1231
|
+
credentials: readonly Readonly<{
|
|
1232
|
+
credentialId: string;
|
|
1233
|
+
revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1234
|
+
}>[];
|
|
1235
|
+
}>;
|
|
1236
|
+
proofs: readonly [Readonly<{
|
|
1237
|
+
method: string;
|
|
1238
|
+
credentialId: string;
|
|
1239
|
+
userVerified: boolean;
|
|
1240
|
+
phishingResistant: boolean;
|
|
1241
|
+
factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1242
|
+
verifiedAt: DateTime.Utc;
|
|
1243
|
+
}>, ...Readonly<{
|
|
1244
|
+
method: string;
|
|
1245
|
+
credentialId: string;
|
|
1246
|
+
userVerified: boolean;
|
|
1247
|
+
phishingResistant: boolean;
|
|
1248
|
+
factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1249
|
+
verifiedAt: DateTime.Utc;
|
|
1250
|
+
}>[]];
|
|
1251
|
+
}> | undefined;
|
|
1252
|
+
digest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1253
|
+
issuedAtMillis: number;
|
|
1254
|
+
expiresAtMillis: number;
|
|
1255
|
+
revision: {
|
|
1256
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1257
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1258
|
+
readonly credentials: readonly {
|
|
1259
|
+
readonly credentialId: string;
|
|
1260
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1261
|
+
}[];
|
|
1262
|
+
};
|
|
1263
|
+
challenge: {
|
|
1264
|
+
action: "add-password" | "change-password" | "reset-password";
|
|
1265
|
+
commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
|
|
1266
|
+
moduleId: string;
|
|
1267
|
+
targetCredentialId?: string | undefined;
|
|
1268
|
+
bindingDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1269
|
+
revision: {
|
|
1270
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1271
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1272
|
+
readonly credentials: readonly {
|
|
1273
|
+
readonly credentialId: string;
|
|
1274
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1275
|
+
}[];
|
|
1276
|
+
};
|
|
1277
|
+
};
|
|
1278
|
+
capturedRequirement: Readonly<{
|
|
1279
|
+
maximumAgeMillis: number;
|
|
1280
|
+
alternatives: readonly [Readonly<{
|
|
1281
|
+
userVerified: boolean;
|
|
1282
|
+
phishingResistant: boolean;
|
|
1283
|
+
minimumCredentials: number;
|
|
1284
|
+
factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1285
|
+
}>, ...Readonly<{
|
|
1286
|
+
userVerified: boolean;
|
|
1287
|
+
phishingResistant: boolean;
|
|
1288
|
+
minimumCredentials: number;
|
|
1289
|
+
factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1290
|
+
}>[]];
|
|
1291
|
+
}>;
|
|
1292
|
+
}, PasswordUnavailable, never>;
|
|
1293
|
+
//#endregion
|
|
1294
|
+
export { PasswordPreparedConfiguration, PasswordPreparedContext, PasswordPreparedCredential, PasswordPreparedIntentId, PasswordPreparedReady, PasswordPreparedReadyJson, PasswordPreparedRequirement, PasswordPreparedReservation, PasswordPreparedReset, PasswordPreparedResult, PasswordPreparedVersion, decodePasswordPreparedReady, encodePasswordPreparedReady, snapshotPasswordPreparedReady, snapshotPasswordPreparedReservation, validatePasswordPreparedConfiguration };
|
|
1295
|
+
//# sourceMappingURL=preparedModels.d.mts.map
|