@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,3567 @@
|
|
|
1
|
+
import { SubjectId } from "../../Schema.mjs";
|
|
2
|
+
import { AssuranceRequired, AuthenticationRequired, InvalidOperationInput, OperationForbidden, OperationPrivateOutputUnsupported } from "../../operations/errors.mjs";
|
|
3
|
+
import { AuthInvocation, AuthenticationAssurance } from "../../operations/context.mjs";
|
|
4
|
+
import { AuthCredentialCommandCollector, AuthOperationResult, AuthRevealCommandCollectorService } from "../../operations/credentials.mjs";
|
|
5
|
+
import { AuthOperation, CredentialCollectorProvenance, OperationHandler, RevealCollectorProvenance } from "../../operations/operation.mjs";
|
|
6
|
+
import { LoginIdentifier } from "../../identity/models.mjs";
|
|
7
|
+
import { HookDenied } from "../../hooks/models.mjs";
|
|
8
|
+
import { LifecycleHooks } from "../../hooks/LifecycleHooks.mjs";
|
|
9
|
+
import { PreparedCommit } from "../../hooks/commit.mjs";
|
|
10
|
+
import { AuthenticationAuthority } from "../../sessions/AuthenticationAuthority.mjs";
|
|
11
|
+
import { SubtleCrypto } from "../../WebCrypto.mjs";
|
|
12
|
+
import "../../Operations.mjs";
|
|
13
|
+
import { SessionApiError } from "../../auth/session.mjs";
|
|
14
|
+
import { AuthRequest } from "../../auth/AuthRequest.mjs";
|
|
15
|
+
import { AuthConfigurationError } from "../../auth/AuthConfigurationError.mjs";
|
|
16
|
+
import "../../Auth.mjs";
|
|
17
|
+
import { ModuleService, makeSessionModule } from "../../sessions/module.mjs";
|
|
18
|
+
import { NewPasswordRejected, PasswordCheckUnavailable, PasswordConfigurationError } from "../errors.mjs";
|
|
19
|
+
import { PasswordActionRequired, PasswordMethodConfigurationError, PasswordMethodUnsupported, PasswordRejected, PasswordUnavailable } from "./errors.mjs";
|
|
20
|
+
import { ProofCleanupResult, ProofCompletionDecision, ProofContinuation, ProofId, ProofRequestReceipt } from "../../proofs/models.mjs";
|
|
21
|
+
import { PasswordCredentialSnapshot, PasswordReplacement } from "./models.mjs";
|
|
22
|
+
import { ProofCapabilityUnsupported, ProofConfigurationError, ProofIngressDenied, ProofInvalid, ProofRequestConflict, ProofUnavailable } from "../../proofs/errors.mjs";
|
|
23
|
+
import { EmailProofDelivery } from "../../proofs/EmailProofDelivery.mjs";
|
|
24
|
+
import { ProofPolicy } from "../../proofs/policy.mjs";
|
|
25
|
+
import { ProofPersistence } from "../../proofs/ProofPersistence.mjs";
|
|
26
|
+
import { PreparedProofDispatch, ProofIssuePlan } from "../../proofs/dispatch.mjs";
|
|
27
|
+
import { ProofCompletionPlan } from "../../proofs/completion.mjs";
|
|
28
|
+
import { ProofKeyring, ProofSecretPolicy } from "../../proofs/crypto.mjs";
|
|
29
|
+
import { SmsProofDelivery } from "../../proofs/SmsProofDelivery.mjs";
|
|
30
|
+
import { ProofModule } from "../../proofs/module.mjs";
|
|
31
|
+
import "../../Proofs.mjs";
|
|
32
|
+
import { CompromisedPasswords } from "../CompromisedPasswords.mjs";
|
|
33
|
+
import { NewPasswordCheck } from "../NewPasswordCheck.mjs";
|
|
34
|
+
import { PasswordHashing } from "../PasswordHashing.mjs";
|
|
35
|
+
import { PasswordActionEvidence } from "./PasswordActionEvidence.mjs";
|
|
36
|
+
import { PasswordMethodPolicy } from "./policy.mjs";
|
|
37
|
+
import { PasswordPersistence, PreparePasswordCommit } from "./PasswordPersistence.mjs";
|
|
38
|
+
import { PasswordPreparedConfiguration, PasswordPreparedContext } from "./preparedModels.mjs";
|
|
39
|
+
import { PasswordPreparedPersistence } from "./PasswordPreparedPersistence.mjs";
|
|
40
|
+
import { PasswordPreparedAuthorization, PasswordPreparedCompletionPlan, ServiceId } from "./prepared.mjs";
|
|
41
|
+
import { PasswordSignInOptions, makePasswordSignIn } from "./signIn.mjs";
|
|
42
|
+
import { Context, Crypto, Effect, Layer, Redacted, Schema, Types } from "effect";
|
|
43
|
+
//#region src/password/methods/module.d.ts
|
|
44
|
+
interface MethodService<Id extends string, Kind extends string> {
|
|
45
|
+
readonly moduleId: Id;
|
|
46
|
+
readonly kind: Kind;
|
|
47
|
+
}
|
|
48
|
+
type PasswordRegistrationDecision = {
|
|
49
|
+
readonly _tag: "Created";
|
|
50
|
+
readonly subjectId: SubjectId;
|
|
51
|
+
} | {
|
|
52
|
+
readonly _tag: "Suppressed";
|
|
53
|
+
} | {
|
|
54
|
+
readonly _tag: "Pending";
|
|
55
|
+
readonly reference: string;
|
|
56
|
+
};
|
|
57
|
+
declare const Status: Schema.Struct<{
|
|
58
|
+
readonly hasPassword: Schema.Boolean;
|
|
59
|
+
}>;
|
|
60
|
+
declare const Cleanup: Schema.Struct<{
|
|
61
|
+
readonly removed: Schema.Natural;
|
|
62
|
+
readonly hasMore: Schema.Boolean;
|
|
63
|
+
}>;
|
|
64
|
+
/** Public email/password method. Trusted claims/provisioning/action capabilities
|
|
65
|
+
* are explicit; no product account model, implicit login or MFA bypass is supplied.
|
|
66
|
+
*/
|
|
67
|
+
declare const makePasswordWithManagement: <const Id extends string, const SessionModuleId extends string, Claims extends Schema.Codec<unknown, unknown, unknown, unknown>, Registration extends Schema.Codec<unknown, unknown, unknown, unknown>>(moduleId: Id, input: {
|
|
68
|
+
readonly sessions: ReturnType<typeof makeSessionModule<SessionModuleId, Claims>>;
|
|
69
|
+
readonly registration: Registration;
|
|
70
|
+
readonly policy: PasswordMethodPolicy;
|
|
71
|
+
readonly reset: {
|
|
72
|
+
readonly template: string;
|
|
73
|
+
readonly secret: ProofSecretPolicy;
|
|
74
|
+
readonly policy: ProofPolicy;
|
|
75
|
+
readonly keys?: ProofKeyring;
|
|
76
|
+
};
|
|
77
|
+
}) => Readonly<{
|
|
78
|
+
strategy: Readonly<{
|
|
79
|
+
completion: boolean;
|
|
80
|
+
make: Effect.Effect<{
|
|
81
|
+
readonly signIn: (input: Omit<{
|
|
82
|
+
readonly email: string;
|
|
83
|
+
readonly password: string;
|
|
84
|
+
readonly flowId: string;
|
|
85
|
+
}, "flowId">) => Effect.Effect<{
|
|
86
|
+
readonly _tag: "Authenticated";
|
|
87
|
+
readonly session: {
|
|
88
|
+
readonly sessionId: string & import("effect/Brand").Brand<"effect-auth/SessionId">;
|
|
89
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
90
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
91
|
+
readonly assurance: AuthenticationAssurance;
|
|
92
|
+
readonly issuedAt: import("effect/DateTime").Utc;
|
|
93
|
+
readonly expiresAt: import("effect/DateTime").Utc;
|
|
94
|
+
readonly absoluteExpiresAt: import("effect/DateTime").Utc;
|
|
95
|
+
readonly claims: Claims["Type"];
|
|
96
|
+
};
|
|
97
|
+
} | {
|
|
98
|
+
readonly _tag: "PendingAuthentication";
|
|
99
|
+
readonly expiresAt: import("effect/DateTime").Utc;
|
|
100
|
+
}, NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable | SessionApiError, AuthRequest>;
|
|
101
|
+
readonly register: (input: {
|
|
102
|
+
readonly requestId: string;
|
|
103
|
+
readonly email: string;
|
|
104
|
+
readonly newPassword: string;
|
|
105
|
+
readonly registration: Registration["Encoded"];
|
|
106
|
+
}) => Effect.Effect<{
|
|
107
|
+
readonly _tag: "RegistrationAccepted";
|
|
108
|
+
} | {
|
|
109
|
+
readonly _tag: "ProvisioningPending";
|
|
110
|
+
readonly reference: string;
|
|
111
|
+
}, NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable | SessionApiError, AuthRequest | Exclude<Exclude<Registration["DecodingServices"], CredentialCollectorProvenance | RevealCollectorProvenance>, Crypto.Crypto | OperationHandler<`${Id}/add-password`, {
|
|
112
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
|
|
113
|
+
readonly newPassword: Redacted.Redacted<string>;
|
|
114
|
+
readonly actionProof?: Redacted.Redacted<string> | undefined;
|
|
115
|
+
}, {
|
|
116
|
+
readonly invalidation: {
|
|
117
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
118
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
119
|
+
readonly maximumExposureMillis: number;
|
|
120
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
121
|
+
};
|
|
122
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/change-password`, {
|
|
123
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
|
|
124
|
+
readonly newPassword: Redacted.Redacted<string>;
|
|
125
|
+
readonly actionProof?: Redacted.Redacted<string> | undefined;
|
|
126
|
+
readonly currentPassword: Redacted.Redacted<string>;
|
|
127
|
+
}, {
|
|
128
|
+
readonly invalidation: {
|
|
129
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
130
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
131
|
+
readonly maximumExposureMillis: number;
|
|
132
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
133
|
+
};
|
|
134
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/cleanup`, {
|
|
135
|
+
readonly limit: number;
|
|
136
|
+
}, {
|
|
137
|
+
readonly removed: number;
|
|
138
|
+
readonly hasMore: boolean;
|
|
139
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/complete-reset`, {
|
|
140
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
|
|
141
|
+
readonly newPassword: Redacted.Redacted<string>;
|
|
142
|
+
readonly actionProof?: Redacted.Redacted<string> | undefined;
|
|
143
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
|
|
144
|
+
readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
|
|
145
|
+
readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
|
|
146
|
+
readonly credential: Redacted.Redacted<string>;
|
|
147
|
+
}, {
|
|
148
|
+
readonly invalidation: {
|
|
149
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
150
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
151
|
+
readonly maximumExposureMillis: number;
|
|
152
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
153
|
+
};
|
|
154
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/register`, {
|
|
155
|
+
readonly requestId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
|
|
156
|
+
readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
|
|
157
|
+
readonly newPassword: Redacted.Redacted<string>;
|
|
158
|
+
readonly registration: Registration["Type"];
|
|
159
|
+
}, {
|
|
160
|
+
readonly _tag: "RegistrationAccepted";
|
|
161
|
+
} | {
|
|
162
|
+
readonly _tag: "ProvisioningPending";
|
|
163
|
+
readonly reference: string;
|
|
164
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/request-reset`, {
|
|
165
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
|
|
166
|
+
readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
|
|
167
|
+
readonly requestId: string & import("effect/Brand").Brand<"effect-auth/ProofRequestId">;
|
|
168
|
+
readonly locale: string;
|
|
169
|
+
}, {
|
|
170
|
+
readonly requestId: string & import("effect/Brand").Brand<"effect-auth/ProofRequestId">;
|
|
171
|
+
readonly reference: {
|
|
172
|
+
readonly proofId: string & import("effect/Brand").Brand<"effect-auth/ProofId">;
|
|
173
|
+
readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
|
|
174
|
+
readonly keyId: string;
|
|
175
|
+
};
|
|
176
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/sign-in`, {
|
|
177
|
+
readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
|
|
178
|
+
readonly password: Redacted.Redacted<string>;
|
|
179
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
|
|
180
|
+
}, {
|
|
181
|
+
readonly _tag: "Authenticated";
|
|
182
|
+
readonly session: {
|
|
183
|
+
readonly sessionId: string & import("effect/Brand").Brand<"effect-auth/SessionId">;
|
|
184
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
185
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
186
|
+
readonly assurance: AuthenticationAssurance;
|
|
187
|
+
readonly issuedAt: import("effect/DateTime").Utc;
|
|
188
|
+
readonly expiresAt: import("effect/DateTime").Utc;
|
|
189
|
+
readonly absoluteExpiresAt: import("effect/DateTime").Utc;
|
|
190
|
+
readonly claims: Claims["Type"];
|
|
191
|
+
};
|
|
192
|
+
} | {
|
|
193
|
+
readonly _tag: "PendingAuthentication";
|
|
194
|
+
readonly expiresAt: import("effect/DateTime").Utc;
|
|
195
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/status`, void, {
|
|
196
|
+
readonly hasPassword: boolean;
|
|
197
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/verify-reset`, {
|
|
198
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
|
|
199
|
+
readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
|
|
200
|
+
readonly reference: {
|
|
201
|
+
readonly proofId: string & import("effect/Brand").Brand<"effect-auth/ProofId">;
|
|
202
|
+
readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
|
|
203
|
+
readonly keyId: string;
|
|
204
|
+
};
|
|
205
|
+
readonly secret: Redacted.Redacted<string>;
|
|
206
|
+
}, {
|
|
207
|
+
readonly continuation: {
|
|
208
|
+
readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
|
|
209
|
+
readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
|
|
210
|
+
readonly expiresAtMillis: number;
|
|
211
|
+
};
|
|
212
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | SubtleCrypto | (AuthCredentialCommandCollector | AuthRevealCommandCollectorService)>>;
|
|
213
|
+
readonly addPassword: (input: {
|
|
214
|
+
readonly commandId: string;
|
|
215
|
+
readonly newPassword: string;
|
|
216
|
+
readonly actionProof?: string | undefined;
|
|
217
|
+
}) => Effect.Effect<{
|
|
218
|
+
readonly invalidation: {
|
|
219
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
220
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
221
|
+
readonly maximumExposureMillis: number;
|
|
222
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
223
|
+
};
|
|
224
|
+
}, NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable | SessionApiError, AuthRequest>;
|
|
225
|
+
readonly changePassword: (input: {
|
|
226
|
+
readonly commandId: string;
|
|
227
|
+
readonly newPassword: string;
|
|
228
|
+
readonly actionProof?: string | undefined;
|
|
229
|
+
readonly currentPassword: string;
|
|
230
|
+
}) => Effect.Effect<{
|
|
231
|
+
readonly invalidation: {
|
|
232
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
233
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
234
|
+
readonly maximumExposureMillis: number;
|
|
235
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
236
|
+
};
|
|
237
|
+
}, NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable | SessionApiError, AuthRequest>;
|
|
238
|
+
readonly requestReset: (input: {
|
|
239
|
+
readonly flowId: string;
|
|
240
|
+
readonly email: string;
|
|
241
|
+
readonly requestId: string;
|
|
242
|
+
readonly locale: string;
|
|
243
|
+
}) => Effect.Effect<{
|
|
244
|
+
readonly requestId: string & import("effect/Brand").Brand<"effect-auth/ProofRequestId">;
|
|
245
|
+
readonly reference: {
|
|
246
|
+
readonly proofId: string & import("effect/Brand").Brand<"effect-auth/ProofId">;
|
|
247
|
+
readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
|
|
248
|
+
readonly keyId: string;
|
|
249
|
+
};
|
|
250
|
+
}, NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable | SessionApiError, AuthRequest>;
|
|
251
|
+
readonly verifyReset: (input: {
|
|
252
|
+
readonly flowId: string;
|
|
253
|
+
readonly email: string;
|
|
254
|
+
readonly reference: {
|
|
255
|
+
readonly proofId: string;
|
|
256
|
+
readonly purpose: string;
|
|
257
|
+
readonly keyId: string;
|
|
258
|
+
};
|
|
259
|
+
readonly secret: string;
|
|
260
|
+
}) => Effect.Effect<{
|
|
261
|
+
readonly continuation: {
|
|
262
|
+
readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
|
|
263
|
+
readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
|
|
264
|
+
readonly expiresAtMillis: number;
|
|
265
|
+
};
|
|
266
|
+
}, NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable | SessionApiError, AuthRequest>;
|
|
267
|
+
readonly completeReset: (input: {
|
|
268
|
+
readonly commandId: string;
|
|
269
|
+
readonly newPassword: string;
|
|
270
|
+
readonly actionProof?: string | undefined;
|
|
271
|
+
readonly flowId: string;
|
|
272
|
+
readonly email: string;
|
|
273
|
+
readonly continuationId: string;
|
|
274
|
+
readonly credential: string;
|
|
275
|
+
}) => Effect.Effect<{
|
|
276
|
+
readonly invalidation: {
|
|
277
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
278
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
279
|
+
readonly maximumExposureMillis: number;
|
|
280
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
281
|
+
};
|
|
282
|
+
}, NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable | SessionApiError, AuthRequest>;
|
|
283
|
+
readonly passwordStatus: (input?: void | undefined) => Effect.Effect<{
|
|
284
|
+
readonly hasPassword: boolean;
|
|
285
|
+
}, NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable | SessionApiError, AuthRequest>;
|
|
286
|
+
}, AuthConfigurationError | PasswordConfigurationError | PasswordMethodConfigurationError | ProofConfigurationError, AuthenticationAuthority | CompromisedPasswords | Layer.CurrentMemoMap | EmailProofDelivery | ModuleService<SessionModuleId, "completion", Claims["Type"]> | ModuleService<SessionModuleId, "strategy", Claims["Type"]> | PasswordActionEvidence | PasswordPersistence | ProofPersistence | import("effect/Scope").Scope | Exclude<Exclude<Exclude<Exclude<Registration["DecodingServices"], import("effect/Scope").Scope>, ProofModule<`${Id}/reset`, {
|
|
287
|
+
readonly _tag: "Identifier";
|
|
288
|
+
readonly flowId: string;
|
|
289
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
290
|
+
readonly identifier: LoginIdentifier;
|
|
291
|
+
} | {
|
|
292
|
+
readonly _tag: "Subject";
|
|
293
|
+
readonly flowId: string;
|
|
294
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
295
|
+
readonly revision: {
|
|
296
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
297
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
298
|
+
readonly credentials: readonly {
|
|
299
|
+
readonly credentialId: string;
|
|
300
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
301
|
+
}[];
|
|
302
|
+
};
|
|
303
|
+
readonly identifier: LoginIdentifier;
|
|
304
|
+
} | {
|
|
305
|
+
readonly _tag: "IdentifierChange";
|
|
306
|
+
readonly flowId: string;
|
|
307
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
308
|
+
readonly revision: {
|
|
309
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
310
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
311
|
+
readonly credentials: readonly {
|
|
312
|
+
readonly credentialId: string;
|
|
313
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
314
|
+
}[];
|
|
315
|
+
};
|
|
316
|
+
readonly identifier: LoginIdentifier;
|
|
317
|
+
}>>, LifecycleHooks | NewPasswordCheck | PasswordHashing>, Crypto.Crypto | SubtleCrypto> | Exclude<Exclude<Exclude<Exclude<Registration["EncodingServices"], import("effect/Scope").Scope>, ProofModule<`${Id}/reset`, {
|
|
318
|
+
readonly _tag: "Identifier";
|
|
319
|
+
readonly flowId: string;
|
|
320
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
321
|
+
readonly identifier: LoginIdentifier;
|
|
322
|
+
} | {
|
|
323
|
+
readonly _tag: "Subject";
|
|
324
|
+
readonly flowId: string;
|
|
325
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
326
|
+
readonly revision: {
|
|
327
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
328
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
329
|
+
readonly credentials: readonly {
|
|
330
|
+
readonly credentialId: string;
|
|
331
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
332
|
+
}[];
|
|
333
|
+
};
|
|
334
|
+
readonly identifier: LoginIdentifier;
|
|
335
|
+
} | {
|
|
336
|
+
readonly _tag: "IdentifierChange";
|
|
337
|
+
readonly flowId: string;
|
|
338
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
339
|
+
readonly revision: {
|
|
340
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
341
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
342
|
+
readonly credentials: readonly {
|
|
343
|
+
readonly credentialId: string;
|
|
344
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
345
|
+
}[];
|
|
346
|
+
};
|
|
347
|
+
readonly identifier: LoginIdentifier;
|
|
348
|
+
}>>, LifecycleHooks | NewPasswordCheck | PasswordHashing>, Crypto.Crypto | SubtleCrypto> | (MethodService<Id, "claims"> & {
|
|
349
|
+
readonly claims: Types.Invariant<Claims["Type"]>;
|
|
350
|
+
}) | (MethodService<Id, "registration"> & {
|
|
351
|
+
readonly registration: Types.Invariant<Registration["Type"]>;
|
|
352
|
+
})>;
|
|
353
|
+
}>;
|
|
354
|
+
prepared: (configuration: PasswordPreparedConfiguration) => Readonly<{
|
|
355
|
+
PasswordPrepared: Context.Service<ServiceId<Id, "prepared"> & {
|
|
356
|
+
readonly reset: Types.Invariant<ProofModule<`${Id}/reset`, {
|
|
357
|
+
readonly _tag: "Identifier";
|
|
358
|
+
readonly flowId: string;
|
|
359
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
360
|
+
readonly identifier: LoginIdentifier;
|
|
361
|
+
} | {
|
|
362
|
+
readonly _tag: "Subject";
|
|
363
|
+
readonly flowId: string;
|
|
364
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
365
|
+
readonly revision: {
|
|
366
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
367
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
368
|
+
readonly credentials: readonly {
|
|
369
|
+
readonly credentialId: string;
|
|
370
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
371
|
+
}[];
|
|
372
|
+
};
|
|
373
|
+
readonly identifier: LoginIdentifier;
|
|
374
|
+
} | {
|
|
375
|
+
readonly _tag: "IdentifierChange";
|
|
376
|
+
readonly flowId: string;
|
|
377
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
378
|
+
readonly revision: {
|
|
379
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
380
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
381
|
+
readonly credentials: readonly {
|
|
382
|
+
readonly credentialId: string;
|
|
383
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
384
|
+
}[];
|
|
385
|
+
};
|
|
386
|
+
readonly identifier: LoginIdentifier;
|
|
387
|
+
}>>;
|
|
388
|
+
}, {
|
|
389
|
+
readonly beginAdd: (invocation: AuthInvocation, input: {
|
|
390
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
|
|
391
|
+
readonly newPassword: Redacted.Redacted<string>;
|
|
392
|
+
}) => Effect.Effect<AuthOperationResult<{
|
|
393
|
+
readonly _tag: "Prepared";
|
|
394
|
+
readonly intentId: string & import("effect/Brand").Brand<"effect-auth/PasswordPreparedIntentId">;
|
|
395
|
+
readonly expiresAtMillis: number;
|
|
396
|
+
} | {
|
|
397
|
+
readonly _tag: "AlreadyExists";
|
|
398
|
+
}>, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, never>;
|
|
399
|
+
readonly beginChange: (invocation: AuthInvocation, input: {
|
|
400
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
|
|
401
|
+
readonly newPassword: Redacted.Redacted<string>;
|
|
402
|
+
readonly currentPassword: Redacted.Redacted<string>;
|
|
403
|
+
}) => Effect.Effect<AuthOperationResult<{
|
|
404
|
+
readonly _tag: "Prepared";
|
|
405
|
+
readonly intentId: string & import("effect/Brand").Brand<"effect-auth/PasswordPreparedIntentId">;
|
|
406
|
+
readonly expiresAtMillis: number;
|
|
407
|
+
} | {
|
|
408
|
+
readonly _tag: "AlreadyExists";
|
|
409
|
+
}>, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, never>;
|
|
410
|
+
readonly beginReset: (invocation: AuthInvocation, input: {
|
|
411
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
|
|
412
|
+
readonly newPassword: Redacted.Redacted<string>;
|
|
413
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
|
|
414
|
+
readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
|
|
415
|
+
readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
|
|
416
|
+
readonly continuationCredential: Redacted.Redacted<string>;
|
|
417
|
+
}) => Effect.Effect<AuthOperationResult<{
|
|
418
|
+
readonly _tag: "Prepared";
|
|
419
|
+
readonly intentId: string & import("effect/Brand").Brand<"effect-auth/PasswordPreparedIntentId">;
|
|
420
|
+
readonly expiresAtMillis: number;
|
|
421
|
+
} | {
|
|
422
|
+
readonly _tag: "AlreadyExists";
|
|
423
|
+
}>, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, ProofModule<`${Id}/reset`, {
|
|
424
|
+
readonly _tag: "Identifier";
|
|
425
|
+
readonly flowId: string;
|
|
426
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
427
|
+
readonly identifier: LoginIdentifier;
|
|
428
|
+
} | {
|
|
429
|
+
readonly _tag: "Subject";
|
|
430
|
+
readonly flowId: string;
|
|
431
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
432
|
+
readonly revision: {
|
|
433
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
434
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
435
|
+
readonly credentials: readonly {
|
|
436
|
+
readonly credentialId: string;
|
|
437
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
438
|
+
}[];
|
|
439
|
+
};
|
|
440
|
+
readonly identifier: LoginIdentifier;
|
|
441
|
+
} | {
|
|
442
|
+
readonly _tag: "IdentifierChange";
|
|
443
|
+
readonly flowId: string;
|
|
444
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
445
|
+
readonly revision: {
|
|
446
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
447
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
448
|
+
readonly credentials: readonly {
|
|
449
|
+
readonly credentialId: string;
|
|
450
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
451
|
+
}[];
|
|
452
|
+
};
|
|
453
|
+
readonly identifier: LoginIdentifier;
|
|
454
|
+
}>>;
|
|
455
|
+
readonly context: (invocation: AuthInvocation, credential: Redacted.Redacted<string>) => Effect.Effect<PasswordPreparedContext, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable>;
|
|
456
|
+
readonly resetContext: (invocation: AuthInvocation, input: {
|
|
457
|
+
readonly intentCredential: Redacted.Redacted<string>;
|
|
458
|
+
readonly continuationCredential: Redacted.Redacted<string>;
|
|
459
|
+
}) => Effect.Effect<PasswordPreparedContext, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, ProofModule<`${Id}/reset`, {
|
|
460
|
+
readonly _tag: "Identifier";
|
|
461
|
+
readonly flowId: string;
|
|
462
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
463
|
+
readonly identifier: LoginIdentifier;
|
|
464
|
+
} | {
|
|
465
|
+
readonly _tag: "Subject";
|
|
466
|
+
readonly flowId: string;
|
|
467
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
468
|
+
readonly revision: {
|
|
469
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
470
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
471
|
+
readonly credentials: readonly {
|
|
472
|
+
readonly credentialId: string;
|
|
473
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
474
|
+
}[];
|
|
475
|
+
};
|
|
476
|
+
readonly identifier: LoginIdentifier;
|
|
477
|
+
} | {
|
|
478
|
+
readonly _tag: "IdentifierChange";
|
|
479
|
+
readonly flowId: string;
|
|
480
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
481
|
+
readonly revision: {
|
|
482
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
483
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
484
|
+
readonly credentials: readonly {
|
|
485
|
+
readonly credentialId: string;
|
|
486
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
487
|
+
}[];
|
|
488
|
+
};
|
|
489
|
+
readonly identifier: LoginIdentifier;
|
|
490
|
+
}>>;
|
|
491
|
+
readonly planComplete: (invocation: AuthInvocation, input: {
|
|
492
|
+
readonly intentCredential: Redacted.Redacted<string>;
|
|
493
|
+
readonly actionProof?: Redacted.Redacted<string> | undefined;
|
|
494
|
+
} & {
|
|
495
|
+
readonly continuationCredential?: Redacted.Redacted<string>;
|
|
496
|
+
}) => Effect.Effect<PasswordPreparedCompletionPlan<ServiceId<Id, "prepared-persistence">>, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, never>;
|
|
497
|
+
readonly planResetComplete: (invocation: AuthInvocation, input: {
|
|
498
|
+
readonly intentCredential: Redacted.Redacted<string>;
|
|
499
|
+
readonly actionProof?: Redacted.Redacted<string> | undefined;
|
|
500
|
+
} & {
|
|
501
|
+
readonly continuationCredential?: Redacted.Redacted<string>;
|
|
502
|
+
}) => Effect.Effect<PasswordPreparedCompletionPlan<ServiceId<Id, "prepared-persistence">>, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, ProofModule<`${Id}/reset`, {
|
|
503
|
+
readonly _tag: "Identifier";
|
|
504
|
+
readonly flowId: string;
|
|
505
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
506
|
+
readonly identifier: LoginIdentifier;
|
|
507
|
+
} | {
|
|
508
|
+
readonly _tag: "Subject";
|
|
509
|
+
readonly flowId: string;
|
|
510
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
511
|
+
readonly revision: {
|
|
512
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
513
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
514
|
+
readonly credentials: readonly {
|
|
515
|
+
readonly credentialId: string;
|
|
516
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
517
|
+
}[];
|
|
518
|
+
};
|
|
519
|
+
readonly identifier: LoginIdentifier;
|
|
520
|
+
} | {
|
|
521
|
+
readonly _tag: "IdentifierChange";
|
|
522
|
+
readonly flowId: string;
|
|
523
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
524
|
+
readonly revision: {
|
|
525
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
526
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
527
|
+
readonly credentials: readonly {
|
|
528
|
+
readonly credentialId: string;
|
|
529
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
530
|
+
}[];
|
|
531
|
+
};
|
|
532
|
+
readonly identifier: LoginIdentifier;
|
|
533
|
+
}>>;
|
|
534
|
+
readonly planCompleteAuthorized: (invocation: AuthInvocation, input: {
|
|
535
|
+
readonly intentCredential: Redacted.Redacted<string>;
|
|
536
|
+
readonly actionProof?: Redacted.Redacted<string> | undefined;
|
|
537
|
+
} & {
|
|
538
|
+
readonly continuationCredential?: Redacted.Redacted<string>;
|
|
539
|
+
}, authorization: PasswordPreparedAuthorization) => Effect.Effect<PasswordPreparedCompletionPlan<ServiceId<Id, "prepared-persistence">>, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, never>;
|
|
540
|
+
readonly planResetCompleteAuthorized: (invocation: AuthInvocation, input: {
|
|
541
|
+
readonly intentCredential: Redacted.Redacted<string>;
|
|
542
|
+
readonly actionProof?: Redacted.Redacted<string> | undefined;
|
|
543
|
+
} & {
|
|
544
|
+
readonly continuationCredential?: Redacted.Redacted<string>;
|
|
545
|
+
}, authorization: PasswordPreparedAuthorization) => Effect.Effect<PasswordPreparedCompletionPlan<ServiceId<Id, "prepared-persistence">>, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, ProofModule<`${Id}/reset`, {
|
|
546
|
+
readonly _tag: "Identifier";
|
|
547
|
+
readonly flowId: string;
|
|
548
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
549
|
+
readonly identifier: LoginIdentifier;
|
|
550
|
+
} | {
|
|
551
|
+
readonly _tag: "Subject";
|
|
552
|
+
readonly flowId: string;
|
|
553
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
554
|
+
readonly revision: {
|
|
555
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
556
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
557
|
+
readonly credentials: readonly {
|
|
558
|
+
readonly credentialId: string;
|
|
559
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
560
|
+
}[];
|
|
561
|
+
};
|
|
562
|
+
readonly identifier: LoginIdentifier;
|
|
563
|
+
} | {
|
|
564
|
+
readonly _tag: "IdentifierChange";
|
|
565
|
+
readonly flowId: string;
|
|
566
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
567
|
+
readonly revision: {
|
|
568
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
569
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
570
|
+
readonly credentials: readonly {
|
|
571
|
+
readonly credentialId: string;
|
|
572
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
573
|
+
}[];
|
|
574
|
+
};
|
|
575
|
+
readonly identifier: LoginIdentifier;
|
|
576
|
+
}>>;
|
|
577
|
+
readonly cancel: (invocation: AuthInvocation, credential: Redacted.Redacted<string>) => Effect.Effect<PreparedCommit<AuthOperationResult<void>>, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable>;
|
|
578
|
+
readonly cleanup: (limit: number) => Effect.Effect<PreparedCommit<{
|
|
579
|
+
readonly removed: number;
|
|
580
|
+
readonly hasMore: boolean;
|
|
581
|
+
}>, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, never>;
|
|
582
|
+
}>;
|
|
583
|
+
PasswordPreparedPersistence: Context.Service<ServiceId<Id, "prepared-persistence">, PasswordPreparedPersistence>;
|
|
584
|
+
layer: Layer.Layer<ServiceId<Id, "prepared"> & {
|
|
585
|
+
readonly reset: Types.Invariant<ProofModule<`${Id}/reset`, {
|
|
586
|
+
readonly _tag: "Identifier";
|
|
587
|
+
readonly flowId: string;
|
|
588
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
589
|
+
readonly identifier: LoginIdentifier;
|
|
590
|
+
} | {
|
|
591
|
+
readonly _tag: "Subject";
|
|
592
|
+
readonly flowId: string;
|
|
593
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
594
|
+
readonly revision: {
|
|
595
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
596
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
597
|
+
readonly credentials: readonly {
|
|
598
|
+
readonly credentialId: string;
|
|
599
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
600
|
+
}[];
|
|
601
|
+
};
|
|
602
|
+
readonly identifier: LoginIdentifier;
|
|
603
|
+
} | {
|
|
604
|
+
readonly _tag: "IdentifierChange";
|
|
605
|
+
readonly flowId: string;
|
|
606
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
607
|
+
readonly revision: {
|
|
608
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
609
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
610
|
+
readonly credentials: readonly {
|
|
611
|
+
readonly credentialId: string;
|
|
612
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
613
|
+
}[];
|
|
614
|
+
};
|
|
615
|
+
readonly identifier: LoginIdentifier;
|
|
616
|
+
}>>;
|
|
617
|
+
}, PasswordMethodConfigurationError, AuthenticationAuthority | Crypto.Crypto | LifecycleHooks | ModuleService<SessionModuleId, "strategy", Claims["Type"]> | NewPasswordCheck | PasswordActionEvidence | PasswordHashing | PasswordPersistence | ServiceId<Id, "prepared-persistence">>;
|
|
618
|
+
handlersLayer: Layer.Layer<OperationHandler<`${Id}/prepared/add/begin`, {
|
|
619
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
|
|
620
|
+
readonly newPassword: Redacted.Redacted<string>;
|
|
621
|
+
}, {
|
|
622
|
+
readonly _tag: "Prepared";
|
|
623
|
+
readonly intentId: string & import("effect/Brand").Brand<"effect-auth/PasswordPreparedIntentId">;
|
|
624
|
+
readonly expiresAtMillis: number;
|
|
625
|
+
} | {
|
|
626
|
+
readonly _tag: "AlreadyExists";
|
|
627
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/prepared/add/complete`, {
|
|
628
|
+
readonly intentCredential: Redacted.Redacted<string>;
|
|
629
|
+
readonly actionProof?: Redacted.Redacted<string> | undefined;
|
|
630
|
+
}, {
|
|
631
|
+
readonly invalidation: {
|
|
632
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
633
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
634
|
+
readonly maximumExposureMillis: number;
|
|
635
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
636
|
+
};
|
|
637
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/prepared/cancel`, {
|
|
638
|
+
readonly intentCredential: Redacted.Redacted<string>;
|
|
639
|
+
}, void, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/prepared/change/begin`, {
|
|
640
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
|
|
641
|
+
readonly newPassword: Redacted.Redacted<string>;
|
|
642
|
+
readonly currentPassword: Redacted.Redacted<string>;
|
|
643
|
+
}, {
|
|
644
|
+
readonly _tag: "Prepared";
|
|
645
|
+
readonly intentId: string & import("effect/Brand").Brand<"effect-auth/PasswordPreparedIntentId">;
|
|
646
|
+
readonly expiresAtMillis: number;
|
|
647
|
+
} | {
|
|
648
|
+
readonly _tag: "AlreadyExists";
|
|
649
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/prepared/change/complete`, {
|
|
650
|
+
readonly intentCredential: Redacted.Redacted<string>;
|
|
651
|
+
readonly actionProof?: Redacted.Redacted<string> | undefined;
|
|
652
|
+
}, {
|
|
653
|
+
readonly invalidation: {
|
|
654
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
655
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
656
|
+
readonly maximumExposureMillis: number;
|
|
657
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
658
|
+
};
|
|
659
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/prepared/cleanup`, {
|
|
660
|
+
readonly limit: number;
|
|
661
|
+
}, {
|
|
662
|
+
readonly removed: number;
|
|
663
|
+
readonly hasMore: boolean;
|
|
664
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable>, never, ServiceId<Id, "prepared-persistence"> | (ServiceId<Id, "prepared"> & {
|
|
665
|
+
readonly reset: Types.Invariant<ProofModule<`${Id}/reset`, {
|
|
666
|
+
readonly _tag: "Identifier";
|
|
667
|
+
readonly flowId: string;
|
|
668
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
669
|
+
readonly identifier: LoginIdentifier;
|
|
670
|
+
} | {
|
|
671
|
+
readonly _tag: "Subject";
|
|
672
|
+
readonly flowId: string;
|
|
673
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
674
|
+
readonly revision: {
|
|
675
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
676
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
677
|
+
readonly credentials: readonly {
|
|
678
|
+
readonly credentialId: string;
|
|
679
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
680
|
+
}[];
|
|
681
|
+
};
|
|
682
|
+
readonly identifier: LoginIdentifier;
|
|
683
|
+
} | {
|
|
684
|
+
readonly _tag: "IdentifierChange";
|
|
685
|
+
readonly flowId: string;
|
|
686
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
687
|
+
readonly revision: {
|
|
688
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
689
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
690
|
+
readonly credentials: readonly {
|
|
691
|
+
readonly credentialId: string;
|
|
692
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
693
|
+
}[];
|
|
694
|
+
};
|
|
695
|
+
readonly identifier: LoginIdentifier;
|
|
696
|
+
}>>;
|
|
697
|
+
})>;
|
|
698
|
+
resetHandlersLayer: Layer.Layer<OperationHandler<`${Id}/prepared/reset/begin`, {
|
|
699
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
|
|
700
|
+
readonly newPassword: Redacted.Redacted<string>;
|
|
701
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
|
|
702
|
+
readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
|
|
703
|
+
readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
|
|
704
|
+
readonly continuationCredential: Redacted.Redacted<string>;
|
|
705
|
+
}, {
|
|
706
|
+
readonly _tag: "Prepared";
|
|
707
|
+
readonly intentId: string & import("effect/Brand").Brand<"effect-auth/PasswordPreparedIntentId">;
|
|
708
|
+
readonly expiresAtMillis: number;
|
|
709
|
+
} | {
|
|
710
|
+
readonly _tag: "AlreadyExists";
|
|
711
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/prepared/reset/complete`, {
|
|
712
|
+
readonly intentCredential: Redacted.Redacted<string>;
|
|
713
|
+
readonly actionProof?: Redacted.Redacted<string> | undefined;
|
|
714
|
+
readonly continuationCredential: Redacted.Redacted<string>;
|
|
715
|
+
}, {
|
|
716
|
+
readonly invalidation: {
|
|
717
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
718
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
719
|
+
readonly maximumExposureMillis: number;
|
|
720
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
721
|
+
};
|
|
722
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable>, never, ProofModule<`${Id}/reset`, {
|
|
723
|
+
readonly _tag: "Identifier";
|
|
724
|
+
readonly flowId: string;
|
|
725
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
726
|
+
readonly identifier: LoginIdentifier;
|
|
727
|
+
} | {
|
|
728
|
+
readonly _tag: "Subject";
|
|
729
|
+
readonly flowId: string;
|
|
730
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
731
|
+
readonly revision: {
|
|
732
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
733
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
734
|
+
readonly credentials: readonly {
|
|
735
|
+
readonly credentialId: string;
|
|
736
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
737
|
+
}[];
|
|
738
|
+
};
|
|
739
|
+
readonly identifier: LoginIdentifier;
|
|
740
|
+
} | {
|
|
741
|
+
readonly _tag: "IdentifierChange";
|
|
742
|
+
readonly flowId: string;
|
|
743
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
744
|
+
readonly revision: {
|
|
745
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
746
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
747
|
+
readonly credentials: readonly {
|
|
748
|
+
readonly credentialId: string;
|
|
749
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
750
|
+
}[];
|
|
751
|
+
};
|
|
752
|
+
readonly identifier: LoginIdentifier;
|
|
753
|
+
}> | ServiceId<Id, "prepared-persistence"> | (ServiceId<Id, "prepared"> & {
|
|
754
|
+
readonly reset: Types.Invariant<ProofModule<`${Id}/reset`, {
|
|
755
|
+
readonly _tag: "Identifier";
|
|
756
|
+
readonly flowId: string;
|
|
757
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
758
|
+
readonly identifier: LoginIdentifier;
|
|
759
|
+
} | {
|
|
760
|
+
readonly _tag: "Subject";
|
|
761
|
+
readonly flowId: string;
|
|
762
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
763
|
+
readonly revision: {
|
|
764
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
765
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
766
|
+
readonly credentials: readonly {
|
|
767
|
+
readonly credentialId: string;
|
|
768
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
769
|
+
}[];
|
|
770
|
+
};
|
|
771
|
+
readonly identifier: LoginIdentifier;
|
|
772
|
+
} | {
|
|
773
|
+
readonly _tag: "IdentifierChange";
|
|
774
|
+
readonly flowId: string;
|
|
775
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
776
|
+
readonly revision: {
|
|
777
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
778
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
779
|
+
readonly credentials: readonly {
|
|
780
|
+
readonly credentialId: string;
|
|
781
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
782
|
+
}[];
|
|
783
|
+
};
|
|
784
|
+
readonly identifier: LoginIdentifier;
|
|
785
|
+
}>>;
|
|
786
|
+
})>;
|
|
787
|
+
operations: {
|
|
788
|
+
BeginAdd: AuthOperation<`${Id}/prepared/add/begin`, Schema.Struct<{
|
|
789
|
+
readonly commandId: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordCommandId">;
|
|
790
|
+
readonly newPassword: Schema.RedactedFromValue<Schema.String>;
|
|
791
|
+
}>, Schema.Union<readonly [Schema.TaggedStruct<"Prepared", {
|
|
792
|
+
readonly intentId: Schema.brand<Schema.String, "effect-auth/PasswordPreparedIntentId">;
|
|
793
|
+
readonly expiresAtMillis: Schema.Int;
|
|
794
|
+
}>, Schema.TaggedStruct<"AlreadyExists", {}>]>, Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
|
|
795
|
+
readonly payload: Schema.Struct<{
|
|
796
|
+
readonly commandId: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordCommandId">;
|
|
797
|
+
readonly newPassword: Schema.RedactedFromValue<Schema.String>;
|
|
798
|
+
}>;
|
|
799
|
+
readonly success: Schema.Union<readonly [Schema.TaggedStruct<"Prepared", {
|
|
800
|
+
readonly intentId: Schema.brand<Schema.String, "effect-auth/PasswordPreparedIntentId">;
|
|
801
|
+
readonly expiresAtMillis: Schema.Int;
|
|
802
|
+
}>, Schema.TaggedStruct<"AlreadyExists", {}>]>;
|
|
803
|
+
readonly error: Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
|
|
804
|
+
readonly access: "authenticated";
|
|
805
|
+
readonly exposure: "public";
|
|
806
|
+
readonly replay: "idempotent";
|
|
807
|
+
readonly credentials: true;
|
|
808
|
+
}>;
|
|
809
|
+
BeginChange: AuthOperation<`${Id}/prepared/change/begin`, Schema.Struct<{
|
|
810
|
+
readonly commandId: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordCommandId">;
|
|
811
|
+
readonly newPassword: Schema.RedactedFromValue<Schema.String>;
|
|
812
|
+
readonly currentPassword: Schema.RedactedFromValue<Schema.String>;
|
|
813
|
+
}>, Schema.Union<readonly [Schema.TaggedStruct<"Prepared", {
|
|
814
|
+
readonly intentId: Schema.brand<Schema.String, "effect-auth/PasswordPreparedIntentId">;
|
|
815
|
+
readonly expiresAtMillis: Schema.Int;
|
|
816
|
+
}>, Schema.TaggedStruct<"AlreadyExists", {}>]>, Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
|
|
817
|
+
readonly payload: Schema.Struct<{
|
|
818
|
+
readonly commandId: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordCommandId">;
|
|
819
|
+
readonly newPassword: Schema.RedactedFromValue<Schema.String>;
|
|
820
|
+
readonly currentPassword: Schema.RedactedFromValue<Schema.String>;
|
|
821
|
+
}>;
|
|
822
|
+
readonly success: Schema.Union<readonly [Schema.TaggedStruct<"Prepared", {
|
|
823
|
+
readonly intentId: Schema.brand<Schema.String, "effect-auth/PasswordPreparedIntentId">;
|
|
824
|
+
readonly expiresAtMillis: Schema.Int;
|
|
825
|
+
}>, Schema.TaggedStruct<"AlreadyExists", {}>]>;
|
|
826
|
+
readonly error: Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
|
|
827
|
+
readonly access: "authenticated";
|
|
828
|
+
readonly exposure: "public";
|
|
829
|
+
readonly replay: "idempotent";
|
|
830
|
+
readonly credentials: true;
|
|
831
|
+
}>;
|
|
832
|
+
CompleteAdd: AuthOperation<`${Id}/prepared/add/complete`, Schema.Struct<{
|
|
833
|
+
readonly intentCredential: Schema.RedactedFromValue<Schema.String>;
|
|
834
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
835
|
+
}>, Schema.Struct<{
|
|
836
|
+
readonly invalidation: Schema.Struct<{
|
|
837
|
+
readonly trigger: Schema.Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
|
|
838
|
+
readonly existingSessions: Schema.Literals<readonly ["immediate", "original-absolute-expiry"]>;
|
|
839
|
+
readonly maximumExposureMillis: Schema.Natural;
|
|
840
|
+
readonly oldAuthenticationEvidence: Schema.Literal<"rejected">;
|
|
841
|
+
}>;
|
|
842
|
+
}>, Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
|
|
843
|
+
readonly payload: Schema.Struct<{
|
|
844
|
+
readonly intentCredential: Schema.RedactedFromValue<Schema.String>;
|
|
845
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
846
|
+
}>;
|
|
847
|
+
readonly success: Schema.Struct<{
|
|
848
|
+
readonly invalidation: Schema.Struct<{
|
|
849
|
+
readonly trigger: Schema.Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
|
|
850
|
+
readonly existingSessions: Schema.Literals<readonly ["immediate", "original-absolute-expiry"]>;
|
|
851
|
+
readonly maximumExposureMillis: Schema.Natural;
|
|
852
|
+
readonly oldAuthenticationEvidence: Schema.Literal<"rejected">;
|
|
853
|
+
}>;
|
|
854
|
+
}>;
|
|
855
|
+
readonly error: Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
|
|
856
|
+
readonly access: "authenticated";
|
|
857
|
+
readonly exposure: "public";
|
|
858
|
+
readonly replay: "single-use";
|
|
859
|
+
readonly credentials: true;
|
|
860
|
+
}>;
|
|
861
|
+
CompleteChange: AuthOperation<`${Id}/prepared/change/complete`, Schema.Struct<{
|
|
862
|
+
readonly intentCredential: Schema.RedactedFromValue<Schema.String>;
|
|
863
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
864
|
+
}>, Schema.Struct<{
|
|
865
|
+
readonly invalidation: Schema.Struct<{
|
|
866
|
+
readonly trigger: Schema.Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
|
|
867
|
+
readonly existingSessions: Schema.Literals<readonly ["immediate", "original-absolute-expiry"]>;
|
|
868
|
+
readonly maximumExposureMillis: Schema.Natural;
|
|
869
|
+
readonly oldAuthenticationEvidence: Schema.Literal<"rejected">;
|
|
870
|
+
}>;
|
|
871
|
+
}>, Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
|
|
872
|
+
readonly payload: Schema.Struct<{
|
|
873
|
+
readonly intentCredential: Schema.RedactedFromValue<Schema.String>;
|
|
874
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
875
|
+
}>;
|
|
876
|
+
readonly success: Schema.Struct<{
|
|
877
|
+
readonly invalidation: Schema.Struct<{
|
|
878
|
+
readonly trigger: Schema.Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
|
|
879
|
+
readonly existingSessions: Schema.Literals<readonly ["immediate", "original-absolute-expiry"]>;
|
|
880
|
+
readonly maximumExposureMillis: Schema.Natural;
|
|
881
|
+
readonly oldAuthenticationEvidence: Schema.Literal<"rejected">;
|
|
882
|
+
}>;
|
|
883
|
+
}>;
|
|
884
|
+
readonly error: Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
|
|
885
|
+
readonly access: "authenticated";
|
|
886
|
+
readonly exposure: "public";
|
|
887
|
+
readonly replay: "single-use";
|
|
888
|
+
readonly credentials: true;
|
|
889
|
+
}>;
|
|
890
|
+
Cancel: AuthOperation<`${Id}/prepared/cancel`, Schema.Struct<{
|
|
891
|
+
readonly intentCredential: Schema.RedactedFromValue<Schema.String>;
|
|
892
|
+
}>, Schema.Void, Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
|
|
893
|
+
readonly payload: Schema.Struct<{
|
|
894
|
+
readonly intentCredential: Schema.RedactedFromValue<Schema.String>;
|
|
895
|
+
}>;
|
|
896
|
+
readonly success: Schema.Void;
|
|
897
|
+
readonly error: Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
|
|
898
|
+
readonly access: "any";
|
|
899
|
+
readonly exposure: "public";
|
|
900
|
+
readonly replay: "idempotent";
|
|
901
|
+
readonly credentials: true;
|
|
902
|
+
}>;
|
|
903
|
+
Cleanup: AuthOperation<`${Id}/prepared/cleanup`, Schema.Struct<{
|
|
904
|
+
readonly limit: Schema.Int;
|
|
905
|
+
}>, Schema.Struct<{
|
|
906
|
+
readonly removed: Schema.Natural;
|
|
907
|
+
readonly hasMore: Schema.Boolean;
|
|
908
|
+
}>, Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
|
|
909
|
+
readonly payload: Schema.Struct<{
|
|
910
|
+
readonly limit: Schema.Int;
|
|
911
|
+
}>;
|
|
912
|
+
readonly success: Schema.Struct<{
|
|
913
|
+
readonly removed: Schema.Natural;
|
|
914
|
+
readonly hasMore: Schema.Boolean;
|
|
915
|
+
}>;
|
|
916
|
+
readonly error: Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
|
|
917
|
+
readonly access: "system";
|
|
918
|
+
readonly replay: "idempotent";
|
|
919
|
+
}>;
|
|
920
|
+
};
|
|
921
|
+
resetOperations: {
|
|
922
|
+
BeginReset: AuthOperation<`${Id}/prepared/reset/begin`, Schema.Struct<{
|
|
923
|
+
readonly commandId: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordCommandId">;
|
|
924
|
+
readonly newPassword: Schema.RedactedFromValue<Schema.String>;
|
|
925
|
+
readonly flowId: Schema.brand<Schema.NonEmptyString, "effect-auth/AuthenticationFlowId">;
|
|
926
|
+
readonly email: Schema.compose<Schema.decodeTo<Schema.brand<Schema.String, "effect-auth/Email">, Schema.String, never, never>, Schema.String>;
|
|
927
|
+
readonly continuationId: Schema.brand<Schema.String, "effect-auth/ProofContinuationId">;
|
|
928
|
+
readonly continuationCredential: Schema.RedactedFromValue<Schema.String>;
|
|
929
|
+
}>, Schema.Union<readonly [Schema.TaggedStruct<"Prepared", {
|
|
930
|
+
readonly intentId: Schema.brand<Schema.String, "effect-auth/PasswordPreparedIntentId">;
|
|
931
|
+
readonly expiresAtMillis: Schema.Int;
|
|
932
|
+
}>, Schema.TaggedStruct<"AlreadyExists", {}>]>, Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
|
|
933
|
+
readonly payload: Schema.Struct<{
|
|
934
|
+
readonly commandId: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordCommandId">;
|
|
935
|
+
readonly newPassword: Schema.RedactedFromValue<Schema.String>;
|
|
936
|
+
readonly flowId: Schema.brand<Schema.NonEmptyString, "effect-auth/AuthenticationFlowId">;
|
|
937
|
+
readonly email: Schema.compose<Schema.decodeTo<Schema.brand<Schema.String, "effect-auth/Email">, Schema.String, never, never>, Schema.String>;
|
|
938
|
+
readonly continuationId: Schema.brand<Schema.String, "effect-auth/ProofContinuationId">;
|
|
939
|
+
readonly continuationCredential: Schema.RedactedFromValue<Schema.String>;
|
|
940
|
+
}>;
|
|
941
|
+
readonly success: Schema.Union<readonly [Schema.TaggedStruct<"Prepared", {
|
|
942
|
+
readonly intentId: Schema.brand<Schema.String, "effect-auth/PasswordPreparedIntentId">;
|
|
943
|
+
readonly expiresAtMillis: Schema.Int;
|
|
944
|
+
}>, Schema.TaggedStruct<"AlreadyExists", {}>]>;
|
|
945
|
+
readonly error: Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
|
|
946
|
+
readonly access: "any";
|
|
947
|
+
readonly exposure: "public";
|
|
948
|
+
readonly replay: "idempotent";
|
|
949
|
+
readonly credentials: true;
|
|
950
|
+
}>;
|
|
951
|
+
CompleteReset: AuthOperation<`${Id}/prepared/reset/complete`, Schema.Struct<{
|
|
952
|
+
readonly intentCredential: Schema.RedactedFromValue<Schema.String>;
|
|
953
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
954
|
+
readonly continuationCredential: Schema.RedactedFromValue<Schema.String>;
|
|
955
|
+
}>, Schema.Struct<{
|
|
956
|
+
readonly invalidation: Schema.Struct<{
|
|
957
|
+
readonly trigger: Schema.Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
|
|
958
|
+
readonly existingSessions: Schema.Literals<readonly ["immediate", "original-absolute-expiry"]>;
|
|
959
|
+
readonly maximumExposureMillis: Schema.Natural;
|
|
960
|
+
readonly oldAuthenticationEvidence: Schema.Literal<"rejected">;
|
|
961
|
+
}>;
|
|
962
|
+
}>, Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
|
|
963
|
+
readonly payload: Schema.Struct<{
|
|
964
|
+
readonly intentCredential: Schema.RedactedFromValue<Schema.String>;
|
|
965
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
966
|
+
readonly continuationCredential: Schema.RedactedFromValue<Schema.String>;
|
|
967
|
+
}>;
|
|
968
|
+
readonly success: Schema.Struct<{
|
|
969
|
+
readonly invalidation: Schema.Struct<{
|
|
970
|
+
readonly trigger: Schema.Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
|
|
971
|
+
readonly existingSessions: Schema.Literals<readonly ["immediate", "original-absolute-expiry"]>;
|
|
972
|
+
readonly maximumExposureMillis: Schema.Natural;
|
|
973
|
+
readonly oldAuthenticationEvidence: Schema.Literal<"rejected">;
|
|
974
|
+
}>;
|
|
975
|
+
}>;
|
|
976
|
+
readonly error: Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
|
|
977
|
+
readonly access: "any";
|
|
978
|
+
readonly exposure: "public";
|
|
979
|
+
readonly replay: "single-use";
|
|
980
|
+
readonly credentials: true;
|
|
981
|
+
}>;
|
|
982
|
+
};
|
|
983
|
+
resetGroup: import("effect/unstable/rpc/RpcGroup").RpcGroup<import("effect/unstable/rpc/Rpc").Rpc<`${Id}/prepared/reset/begin`, Schema.Struct<{
|
|
984
|
+
readonly commandId: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordCommandId">;
|
|
985
|
+
readonly newPassword: Schema.RedactedFromValue<Schema.String>;
|
|
986
|
+
readonly flowId: Schema.brand<Schema.NonEmptyString, "effect-auth/AuthenticationFlowId">;
|
|
987
|
+
readonly email: Schema.compose<Schema.decodeTo<Schema.brand<Schema.String, "effect-auth/Email">, Schema.String, never, never>, Schema.String>;
|
|
988
|
+
readonly continuationId: Schema.brand<Schema.String, "effect-auth/ProofContinuationId">;
|
|
989
|
+
readonly continuationCredential: Schema.RedactedFromValue<Schema.String>;
|
|
990
|
+
}>, Schema.Union<readonly [Schema.TaggedStruct<"Prepared", {
|
|
991
|
+
readonly intentId: Schema.brand<Schema.String, "effect-auth/PasswordPreparedIntentId">;
|
|
992
|
+
readonly expiresAtMillis: Schema.Int;
|
|
993
|
+
}>, Schema.TaggedStruct<"AlreadyExists", {}>]>, Schema.Union<readonly [Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/prepared/reset/complete`, Schema.Struct<{
|
|
994
|
+
readonly intentCredential: Schema.RedactedFromValue<Schema.String>;
|
|
995
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
996
|
+
readonly continuationCredential: Schema.RedactedFromValue<Schema.String>;
|
|
997
|
+
}>, Schema.Struct<{
|
|
998
|
+
readonly invalidation: Schema.Struct<{
|
|
999
|
+
readonly trigger: Schema.Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
|
|
1000
|
+
readonly existingSessions: Schema.Literals<readonly ["immediate", "original-absolute-expiry"]>;
|
|
1001
|
+
readonly maximumExposureMillis: Schema.Natural;
|
|
1002
|
+
readonly oldAuthenticationEvidence: Schema.Literal<"rejected">;
|
|
1003
|
+
}>;
|
|
1004
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never>>;
|
|
1005
|
+
group: import("effect/unstable/rpc/RpcGroup").RpcGroup<import("effect/unstable/rpc/Rpc").Rpc<`${Id}/prepared/add/begin`, Schema.Struct<{
|
|
1006
|
+
readonly commandId: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordCommandId">;
|
|
1007
|
+
readonly newPassword: Schema.RedactedFromValue<Schema.String>;
|
|
1008
|
+
}>, Schema.Union<readonly [Schema.TaggedStruct<"Prepared", {
|
|
1009
|
+
readonly intentId: Schema.brand<Schema.String, "effect-auth/PasswordPreparedIntentId">;
|
|
1010
|
+
readonly expiresAtMillis: Schema.Int;
|
|
1011
|
+
}>, Schema.TaggedStruct<"AlreadyExists", {}>]>, Schema.Union<readonly [Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/prepared/add/complete`, Schema.Struct<{
|
|
1012
|
+
readonly intentCredential: Schema.RedactedFromValue<Schema.String>;
|
|
1013
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
1014
|
+
}>, Schema.Struct<{
|
|
1015
|
+
readonly invalidation: Schema.Struct<{
|
|
1016
|
+
readonly trigger: Schema.Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
|
|
1017
|
+
readonly existingSessions: Schema.Literals<readonly ["immediate", "original-absolute-expiry"]>;
|
|
1018
|
+
readonly maximumExposureMillis: Schema.Natural;
|
|
1019
|
+
readonly oldAuthenticationEvidence: Schema.Literal<"rejected">;
|
|
1020
|
+
}>;
|
|
1021
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/prepared/cancel`, Schema.Struct<{
|
|
1022
|
+
readonly intentCredential: Schema.RedactedFromValue<Schema.String>;
|
|
1023
|
+
}>, Schema.Void, Schema.Union<readonly [Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/prepared/change/begin`, Schema.Struct<{
|
|
1024
|
+
readonly commandId: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordCommandId">;
|
|
1025
|
+
readonly newPassword: Schema.RedactedFromValue<Schema.String>;
|
|
1026
|
+
readonly currentPassword: Schema.RedactedFromValue<Schema.String>;
|
|
1027
|
+
}>, Schema.Union<readonly [Schema.TaggedStruct<"Prepared", {
|
|
1028
|
+
readonly intentId: Schema.brand<Schema.String, "effect-auth/PasswordPreparedIntentId">;
|
|
1029
|
+
readonly expiresAtMillis: Schema.Int;
|
|
1030
|
+
}>, Schema.TaggedStruct<"AlreadyExists", {}>]>, Schema.Union<readonly [Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/prepared/change/complete`, Schema.Struct<{
|
|
1031
|
+
readonly intentCredential: Schema.RedactedFromValue<Schema.String>;
|
|
1032
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
1033
|
+
}>, Schema.Struct<{
|
|
1034
|
+
readonly invalidation: Schema.Struct<{
|
|
1035
|
+
readonly trigger: Schema.Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
|
|
1036
|
+
readonly existingSessions: Schema.Literals<readonly ["immediate", "original-absolute-expiry"]>;
|
|
1037
|
+
readonly maximumExposureMillis: Schema.Natural;
|
|
1038
|
+
readonly oldAuthenticationEvidence: Schema.Literal<"rejected">;
|
|
1039
|
+
}>;
|
|
1040
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/prepared/cleanup`, Schema.Struct<{
|
|
1041
|
+
readonly limit: Schema.Int;
|
|
1042
|
+
}>, Schema.Struct<{
|
|
1043
|
+
readonly removed: Schema.Natural;
|
|
1044
|
+
readonly hasMore: Schema.Boolean;
|
|
1045
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never>>;
|
|
1046
|
+
schemas: {
|
|
1047
|
+
BeginAddInput: Schema.Struct<{
|
|
1048
|
+
readonly commandId: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordCommandId">;
|
|
1049
|
+
readonly newPassword: Schema.RedactedFromValue<Schema.String>;
|
|
1050
|
+
}>;
|
|
1051
|
+
BeginChangeInput: Schema.Struct<{
|
|
1052
|
+
readonly commandId: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordCommandId">;
|
|
1053
|
+
readonly newPassword: Schema.RedactedFromValue<Schema.String>;
|
|
1054
|
+
readonly currentPassword: Schema.RedactedFromValue<Schema.String>;
|
|
1055
|
+
}>;
|
|
1056
|
+
BeginResetInput: Schema.Struct<{
|
|
1057
|
+
readonly commandId: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordCommandId">;
|
|
1058
|
+
readonly newPassword: Schema.RedactedFromValue<Schema.String>;
|
|
1059
|
+
readonly flowId: Schema.brand<Schema.NonEmptyString, "effect-auth/AuthenticationFlowId">;
|
|
1060
|
+
readonly email: Schema.compose<Schema.decodeTo<Schema.brand<Schema.String, "effect-auth/Email">, Schema.String, never, never>, Schema.String>;
|
|
1061
|
+
readonly continuationId: Schema.brand<Schema.String, "effect-auth/ProofContinuationId">;
|
|
1062
|
+
readonly continuationCredential: Schema.RedactedFromValue<Schema.String>;
|
|
1063
|
+
}>;
|
|
1064
|
+
CompleteInput: Schema.Struct<{
|
|
1065
|
+
readonly intentCredential: Schema.RedactedFromValue<Schema.String>;
|
|
1066
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
1067
|
+
}>;
|
|
1068
|
+
CompleteResetInput: Schema.Struct<{
|
|
1069
|
+
readonly intentCredential: Schema.RedactedFromValue<Schema.String>;
|
|
1070
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
1071
|
+
readonly continuationCredential: Schema.RedactedFromValue<Schema.String>;
|
|
1072
|
+
}>;
|
|
1073
|
+
Result: Schema.Union<readonly [Schema.TaggedStruct<"Prepared", {
|
|
1074
|
+
readonly intentId: Schema.brand<Schema.String, "effect-auth/PasswordPreparedIntentId">;
|
|
1075
|
+
readonly expiresAtMillis: Schema.Int;
|
|
1076
|
+
}>, Schema.TaggedStruct<"AlreadyExists", {}>]>;
|
|
1077
|
+
};
|
|
1078
|
+
}>;
|
|
1079
|
+
Passwords: Context.Service<MethodService<Id, "method"> & {
|
|
1080
|
+
readonly claims: Types.Invariant<Claims["Type"]>;
|
|
1081
|
+
readonly registration: Types.Invariant<Registration["Type"]>;
|
|
1082
|
+
}, {
|
|
1083
|
+
readonly planRegister: (input: {
|
|
1084
|
+
readonly requestId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
|
|
1085
|
+
readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
|
|
1086
|
+
readonly newPassword: Redacted.Redacted<string>;
|
|
1087
|
+
readonly registration: Registration["Type"];
|
|
1088
|
+
}) => Effect.Effect<{
|
|
1089
|
+
readonly commit: Effect.Effect<PreparedCommit<{
|
|
1090
|
+
readonly _tag: "RegistrationAccepted";
|
|
1091
|
+
} | {
|
|
1092
|
+
readonly _tag: "ProvisioningPending";
|
|
1093
|
+
readonly reference: string;
|
|
1094
|
+
}>, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, MethodService<Id, "registration"> & {
|
|
1095
|
+
readonly registration: Types.Invariant<Registration["Type"]>;
|
|
1096
|
+
}>;
|
|
1097
|
+
}, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable>;
|
|
1098
|
+
readonly signIn: (input: {
|
|
1099
|
+
readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
|
|
1100
|
+
readonly password: Redacted.Redacted<string>;
|
|
1101
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
|
|
1102
|
+
}) => Effect.Effect<AuthOperationResult<{
|
|
1103
|
+
readonly _tag: "Authenticated";
|
|
1104
|
+
readonly session: {
|
|
1105
|
+
readonly sessionId: string & import("effect/Brand").Brand<"effect-auth/SessionId">;
|
|
1106
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1107
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1108
|
+
readonly assurance: AuthenticationAssurance;
|
|
1109
|
+
readonly issuedAt: import("effect/DateTime").Utc;
|
|
1110
|
+
readonly expiresAt: import("effect/DateTime").Utc;
|
|
1111
|
+
readonly absoluteExpiresAt: import("effect/DateTime").Utc;
|
|
1112
|
+
readonly claims: Claims["Type"];
|
|
1113
|
+
};
|
|
1114
|
+
} | {
|
|
1115
|
+
readonly _tag: "PendingAuthentication";
|
|
1116
|
+
readonly expiresAt: import("effect/DateTime").Utc;
|
|
1117
|
+
}>, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable>;
|
|
1118
|
+
readonly planAdd: (invocation: AuthInvocation, input: {
|
|
1119
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
|
|
1120
|
+
readonly newPassword: Redacted.Redacted<string>;
|
|
1121
|
+
readonly actionProof?: Redacted.Redacted<string> | undefined;
|
|
1122
|
+
}) => Effect.Effect<{
|
|
1123
|
+
readonly commit: Effect.Effect<PreparedCommit<AuthOperationResult<{
|
|
1124
|
+
readonly invalidation: {
|
|
1125
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
1126
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
1127
|
+
readonly maximumExposureMillis: number;
|
|
1128
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
1129
|
+
};
|
|
1130
|
+
} | {
|
|
1131
|
+
readonly _tag: "Rejected";
|
|
1132
|
+
}>>, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, PasswordPersistence>;
|
|
1133
|
+
}, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable>;
|
|
1134
|
+
readonly planChange: (invocation: AuthInvocation, input: {
|
|
1135
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
|
|
1136
|
+
readonly newPassword: Redacted.Redacted<string>;
|
|
1137
|
+
readonly actionProof?: Redacted.Redacted<string> | undefined;
|
|
1138
|
+
readonly currentPassword: Redacted.Redacted<string>;
|
|
1139
|
+
}) => Effect.Effect<{
|
|
1140
|
+
readonly commit: Effect.Effect<PreparedCommit<AuthOperationResult<{
|
|
1141
|
+
readonly invalidation: {
|
|
1142
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
1143
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
1144
|
+
readonly maximumExposureMillis: number;
|
|
1145
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
1146
|
+
};
|
|
1147
|
+
} | {
|
|
1148
|
+
readonly _tag: "Rejected";
|
|
1149
|
+
}>>, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, PasswordPersistence>;
|
|
1150
|
+
}, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable>;
|
|
1151
|
+
readonly requestReset: (input: {
|
|
1152
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
|
|
1153
|
+
readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
|
|
1154
|
+
readonly requestId: string & import("effect/Brand").Brand<"effect-auth/ProofRequestId">;
|
|
1155
|
+
readonly locale: string;
|
|
1156
|
+
}) => Effect.Effect<ProofRequestReceipt, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable>;
|
|
1157
|
+
readonly verifyReset: (input: {
|
|
1158
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
|
|
1159
|
+
readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
|
|
1160
|
+
readonly reference: {
|
|
1161
|
+
readonly proofId: string & import("effect/Brand").Brand<"effect-auth/ProofId">;
|
|
1162
|
+
readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
|
|
1163
|
+
readonly keyId: string;
|
|
1164
|
+
};
|
|
1165
|
+
readonly secret: Redacted.Redacted<string>;
|
|
1166
|
+
}) => Effect.Effect<AuthOperationResult<{
|
|
1167
|
+
readonly continuation: ProofContinuation;
|
|
1168
|
+
}>, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable>;
|
|
1169
|
+
readonly planReset: (invocation: AuthInvocation, input: {
|
|
1170
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
|
|
1171
|
+
readonly newPassword: Redacted.Redacted<string>;
|
|
1172
|
+
readonly actionProof?: Redacted.Redacted<string> | undefined;
|
|
1173
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
|
|
1174
|
+
readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
|
|
1175
|
+
readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
|
|
1176
|
+
readonly credential: Redacted.Redacted<string>;
|
|
1177
|
+
}) => Effect.Effect<{
|
|
1178
|
+
readonly commit: Effect.Effect<PreparedCommit<AuthOperationResult<{
|
|
1179
|
+
readonly invalidation: {
|
|
1180
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
1181
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
1182
|
+
readonly maximumExposureMillis: number;
|
|
1183
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
1184
|
+
};
|
|
1185
|
+
} | {
|
|
1186
|
+
readonly _tag: "Rejected";
|
|
1187
|
+
}>>, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable, PasswordPersistence>;
|
|
1188
|
+
}, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable>;
|
|
1189
|
+
readonly status: (invocation: AuthInvocation) => Effect.Effect<typeof Status.Type, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable>;
|
|
1190
|
+
readonly cleanup: (limit: number) => Effect.Effect<typeof Cleanup.Type, HookDenied | NewPasswordRejected | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable>;
|
|
1191
|
+
}>;
|
|
1192
|
+
RegistrationAuthority: Context.Service<MethodService<Id, "registration"> & {
|
|
1193
|
+
readonly registration: Types.Invariant<Registration["Type"]>;
|
|
1194
|
+
}, {
|
|
1195
|
+
/** Join application provisioning + unverified identifier + create-if-absent
|
|
1196
|
+
* password under one owner, or persist a protected recovery intent and Pending.
|
|
1197
|
+
* Request binding includes exact private credential intent; public requestId
|
|
1198
|
+
* alone cannot adopt another request's subject. Never upsert an existing login.
|
|
1199
|
+
* Every retry has a fresh salt: verifier equality cannot prove password equality.
|
|
1200
|
+
* Retain the original protected intent; replays never replace it or expose its
|
|
1201
|
+
* subject. Return uniform Accepted/Pending metadata or suppress the replay.
|
|
1202
|
+
* A pending reference is non-authorizing and cannot resume/adopt that intent.
|
|
1203
|
+
*/
|
|
1204
|
+
readonly register: <A>(input: {
|
|
1205
|
+
readonly moduleId: string;
|
|
1206
|
+
readonly requestId: string;
|
|
1207
|
+
readonly identifier: LoginIdentifier;
|
|
1208
|
+
readonly registration: Registration["Type"];
|
|
1209
|
+
readonly replacement: PasswordReplacement;
|
|
1210
|
+
}, prepare: PreparePasswordCommit<PasswordRegistrationDecision, A>) => Effect.Effect<PreparedCommit<A>, PasswordUnavailable>;
|
|
1211
|
+
}>;
|
|
1212
|
+
ClaimsForPassword: Context.Service<MethodService<Id, "claims"> & {
|
|
1213
|
+
readonly claims: Types.Invariant<Claims["Type"]>;
|
|
1214
|
+
}, {
|
|
1215
|
+
readonly resolve: (credential: PasswordCredentialSnapshot) => Effect.Effect<Claims["Type"], PasswordUnavailable>;
|
|
1216
|
+
}>;
|
|
1217
|
+
layer: Layer.Layer<MethodService<Id, "method"> & {
|
|
1218
|
+
readonly claims: Types.Invariant<Claims["Type"]>;
|
|
1219
|
+
readonly registration: Types.Invariant<Registration["Type"]>;
|
|
1220
|
+
}, PasswordMethodConfigurationError, AuthenticationAuthority | Crypto.Crypto | LifecycleHooks | ModuleService<SessionModuleId, "completion", Claims["Type"]> | ModuleService<SessionModuleId, "strategy", Claims["Type"]> | NewPasswordCheck | PasswordActionEvidence | PasswordHashing | PasswordPersistence | ProofModule<`${Id}/reset`, {
|
|
1221
|
+
readonly _tag: "Identifier";
|
|
1222
|
+
readonly flowId: string;
|
|
1223
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1224
|
+
readonly identifier: LoginIdentifier;
|
|
1225
|
+
} | {
|
|
1226
|
+
readonly _tag: "Subject";
|
|
1227
|
+
readonly flowId: string;
|
|
1228
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1229
|
+
readonly revision: {
|
|
1230
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1231
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1232
|
+
readonly credentials: readonly {
|
|
1233
|
+
readonly credentialId: string;
|
|
1234
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1235
|
+
}[];
|
|
1236
|
+
};
|
|
1237
|
+
readonly identifier: LoginIdentifier;
|
|
1238
|
+
} | {
|
|
1239
|
+
readonly _tag: "IdentifierChange";
|
|
1240
|
+
readonly flowId: string;
|
|
1241
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1242
|
+
readonly revision: {
|
|
1243
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1244
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1245
|
+
readonly credentials: readonly {
|
|
1246
|
+
readonly credentialId: string;
|
|
1247
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1248
|
+
}[];
|
|
1249
|
+
};
|
|
1250
|
+
readonly identifier: LoginIdentifier;
|
|
1251
|
+
}> | Exclude<Registration["DecodingServices"], import("effect/Scope").Scope> | Exclude<Registration["EncodingServices"], import("effect/Scope").Scope> | (MethodService<Id, "claims"> & {
|
|
1252
|
+
readonly claims: Types.Invariant<Claims["Type"]>;
|
|
1253
|
+
})>;
|
|
1254
|
+
handlersLayer: Layer.Layer<OperationHandler<`${Id}/add-password`, {
|
|
1255
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
|
|
1256
|
+
readonly newPassword: Redacted.Redacted<string>;
|
|
1257
|
+
readonly actionProof?: Redacted.Redacted<string> | undefined;
|
|
1258
|
+
}, {
|
|
1259
|
+
readonly invalidation: {
|
|
1260
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
1261
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
1262
|
+
readonly maximumExposureMillis: number;
|
|
1263
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
1264
|
+
};
|
|
1265
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/change-password`, {
|
|
1266
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
|
|
1267
|
+
readonly newPassword: Redacted.Redacted<string>;
|
|
1268
|
+
readonly actionProof?: Redacted.Redacted<string> | undefined;
|
|
1269
|
+
readonly currentPassword: Redacted.Redacted<string>;
|
|
1270
|
+
}, {
|
|
1271
|
+
readonly invalidation: {
|
|
1272
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
1273
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
1274
|
+
readonly maximumExposureMillis: number;
|
|
1275
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
1276
|
+
};
|
|
1277
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/cleanup`, {
|
|
1278
|
+
readonly limit: number;
|
|
1279
|
+
}, {
|
|
1280
|
+
readonly removed: number;
|
|
1281
|
+
readonly hasMore: boolean;
|
|
1282
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/complete-reset`, {
|
|
1283
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
|
|
1284
|
+
readonly newPassword: Redacted.Redacted<string>;
|
|
1285
|
+
readonly actionProof?: Redacted.Redacted<string> | undefined;
|
|
1286
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
|
|
1287
|
+
readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
|
|
1288
|
+
readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
|
|
1289
|
+
readonly credential: Redacted.Redacted<string>;
|
|
1290
|
+
}, {
|
|
1291
|
+
readonly invalidation: {
|
|
1292
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
1293
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
1294
|
+
readonly maximumExposureMillis: number;
|
|
1295
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
1296
|
+
};
|
|
1297
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/register`, {
|
|
1298
|
+
readonly requestId: string & import("effect/Brand").Brand<"effect-auth/PasswordCommandId">;
|
|
1299
|
+
readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
|
|
1300
|
+
readonly newPassword: Redacted.Redacted<string>;
|
|
1301
|
+
readonly registration: Registration["Type"];
|
|
1302
|
+
}, {
|
|
1303
|
+
readonly _tag: "RegistrationAccepted";
|
|
1304
|
+
} | {
|
|
1305
|
+
readonly _tag: "ProvisioningPending";
|
|
1306
|
+
readonly reference: string;
|
|
1307
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/request-reset`, {
|
|
1308
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
|
|
1309
|
+
readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
|
|
1310
|
+
readonly requestId: string & import("effect/Brand").Brand<"effect-auth/ProofRequestId">;
|
|
1311
|
+
readonly locale: string;
|
|
1312
|
+
}, {
|
|
1313
|
+
readonly requestId: string & import("effect/Brand").Brand<"effect-auth/ProofRequestId">;
|
|
1314
|
+
readonly reference: {
|
|
1315
|
+
readonly proofId: string & import("effect/Brand").Brand<"effect-auth/ProofId">;
|
|
1316
|
+
readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
|
|
1317
|
+
readonly keyId: string;
|
|
1318
|
+
};
|
|
1319
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/sign-in`, {
|
|
1320
|
+
readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
|
|
1321
|
+
readonly password: Redacted.Redacted<string>;
|
|
1322
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
|
|
1323
|
+
}, {
|
|
1324
|
+
readonly _tag: "Authenticated";
|
|
1325
|
+
readonly session: {
|
|
1326
|
+
readonly sessionId: string & import("effect/Brand").Brand<"effect-auth/SessionId">;
|
|
1327
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1328
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1329
|
+
readonly assurance: AuthenticationAssurance;
|
|
1330
|
+
readonly issuedAt: import("effect/DateTime").Utc;
|
|
1331
|
+
readonly expiresAt: import("effect/DateTime").Utc;
|
|
1332
|
+
readonly absoluteExpiresAt: import("effect/DateTime").Utc;
|
|
1333
|
+
readonly claims: Claims["Type"];
|
|
1334
|
+
};
|
|
1335
|
+
} | {
|
|
1336
|
+
readonly _tag: "PendingAuthentication";
|
|
1337
|
+
readonly expiresAt: import("effect/DateTime").Utc;
|
|
1338
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/status`, void, {
|
|
1339
|
+
readonly hasPassword: boolean;
|
|
1340
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable> | OperationHandler<`${Id}/verify-reset`, {
|
|
1341
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
|
|
1342
|
+
readonly email: string & import("effect/Brand").Brand<"effect-auth/Email">;
|
|
1343
|
+
readonly reference: {
|
|
1344
|
+
readonly proofId: string & import("effect/Brand").Brand<"effect-auth/ProofId">;
|
|
1345
|
+
readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
|
|
1346
|
+
readonly keyId: string;
|
|
1347
|
+
};
|
|
1348
|
+
readonly secret: Redacted.Redacted<string>;
|
|
1349
|
+
}, {
|
|
1350
|
+
readonly continuation: {
|
|
1351
|
+
readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
|
|
1352
|
+
readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
|
|
1353
|
+
readonly expiresAtMillis: number;
|
|
1354
|
+
};
|
|
1355
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | NewPasswordRejected | OperationForbidden | OperationPrivateOutputUnsupported | PasswordActionRequired | PasswordCheckUnavailable | PasswordMethodUnsupported | PasswordRejected | PasswordUnavailable>, never, PasswordPersistence | (MethodService<Id, "method"> & {
|
|
1356
|
+
readonly claims: Types.Invariant<Claims["Type"]>;
|
|
1357
|
+
readonly registration: Types.Invariant<Registration["Type"]>;
|
|
1358
|
+
}) | (MethodService<Id, "registration"> & {
|
|
1359
|
+
readonly registration: Types.Invariant<Registration["Type"]>;
|
|
1360
|
+
})>;
|
|
1361
|
+
operations: {
|
|
1362
|
+
Register: AuthOperation<`${Id}/register`, Schema.Struct<{
|
|
1363
|
+
readonly requestId: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordCommandId">;
|
|
1364
|
+
readonly email: Schema.compose<Schema.decodeTo<Schema.brand<Schema.String, "effect-auth/Email">, Schema.String, never, never>, Schema.String>;
|
|
1365
|
+
readonly newPassword: Schema.RedactedFromValue<Schema.String>;
|
|
1366
|
+
readonly registration: Schema.Codec<Registration["Type"], Registration["Encoded"], Registration["DecodingServices"], Registration["EncodingServices"]>;
|
|
1367
|
+
}>, Schema.Union<readonly [Schema.TaggedStruct<"RegistrationAccepted", {}>, Schema.TaggedStruct<"ProvisioningPending", {
|
|
1368
|
+
readonly reference: Schema.NonEmptyString;
|
|
1369
|
+
}>]>, Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
|
|
1370
|
+
readonly payload: Schema.Struct<{
|
|
1371
|
+
readonly requestId: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordCommandId">;
|
|
1372
|
+
readonly email: Schema.compose<Schema.decodeTo<Schema.brand<Schema.String, "effect-auth/Email">, Schema.String, never, never>, Schema.String>;
|
|
1373
|
+
readonly newPassword: Schema.RedactedFromValue<Schema.String>;
|
|
1374
|
+
readonly registration: Schema.Codec<Registration["Type"], Registration["Encoded"], Registration["DecodingServices"], Registration["EncodingServices"]>;
|
|
1375
|
+
}>;
|
|
1376
|
+
readonly success: Schema.Union<readonly [Schema.TaggedStruct<"RegistrationAccepted", {}>, Schema.TaggedStruct<"ProvisioningPending", {
|
|
1377
|
+
readonly reference: Schema.NonEmptyString;
|
|
1378
|
+
}>]>;
|
|
1379
|
+
readonly error: Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
|
|
1380
|
+
readonly access: "any";
|
|
1381
|
+
readonly exposure: "public";
|
|
1382
|
+
readonly replay: "idempotent";
|
|
1383
|
+
}>;
|
|
1384
|
+
SignIn: AuthOperation<`${Id}/sign-in`, Schema.Struct<{
|
|
1385
|
+
readonly email: Schema.compose<Schema.decodeTo<Schema.brand<Schema.String, "effect-auth/Email">, Schema.String, never, never>, Schema.String>;
|
|
1386
|
+
readonly password: Schema.RedactedFromValue<Schema.String>;
|
|
1387
|
+
readonly flowId: Schema.brand<Schema.NonEmptyString, "effect-auth/AuthenticationFlowId">;
|
|
1388
|
+
}>, Schema.Union<readonly [Schema.TaggedStruct<"Authenticated", {
|
|
1389
|
+
readonly session: Schema.Struct<{
|
|
1390
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "effect-auth/SessionId">;
|
|
1391
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
1392
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1393
|
+
readonly assurance: typeof AuthenticationAssurance;
|
|
1394
|
+
readonly issuedAt: Schema.DateTimeUtcFromMillis;
|
|
1395
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
1396
|
+
readonly absoluteExpiresAt: Schema.DateTimeUtcFromMillis;
|
|
1397
|
+
readonly claims: Schema.Codec<Claims["Type"], Claims["Encoded"], Claims["DecodingServices"], Claims["EncodingServices"]>;
|
|
1398
|
+
}>;
|
|
1399
|
+
}>, Schema.TaggedStruct<"PendingAuthentication", {
|
|
1400
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
1401
|
+
}>]>, Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
|
|
1402
|
+
readonly payload: Schema.Struct<{
|
|
1403
|
+
readonly email: Schema.compose<Schema.decodeTo<Schema.brand<Schema.String, "effect-auth/Email">, Schema.String, never, never>, Schema.String>;
|
|
1404
|
+
readonly password: Schema.RedactedFromValue<Schema.String>;
|
|
1405
|
+
readonly flowId: Schema.brand<Schema.NonEmptyString, "effect-auth/AuthenticationFlowId">;
|
|
1406
|
+
}>;
|
|
1407
|
+
readonly success: Schema.Union<readonly [Schema.TaggedStruct<"Authenticated", {
|
|
1408
|
+
readonly session: Schema.Struct<{
|
|
1409
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "effect-auth/SessionId">;
|
|
1410
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
1411
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1412
|
+
readonly assurance: typeof AuthenticationAssurance;
|
|
1413
|
+
readonly issuedAt: Schema.DateTimeUtcFromMillis;
|
|
1414
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
1415
|
+
readonly absoluteExpiresAt: Schema.DateTimeUtcFromMillis;
|
|
1416
|
+
readonly claims: Schema.Codec<Claims["Type"], Claims["Encoded"], Claims["DecodingServices"], Claims["EncodingServices"]>;
|
|
1417
|
+
}>;
|
|
1418
|
+
}>, Schema.TaggedStruct<"PendingAuthentication", {
|
|
1419
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
1420
|
+
}>]>;
|
|
1421
|
+
readonly error: Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
|
|
1422
|
+
readonly access: "any";
|
|
1423
|
+
readonly exposure: "public";
|
|
1424
|
+
readonly replay: "non-idempotent";
|
|
1425
|
+
readonly credentials: true;
|
|
1426
|
+
}>;
|
|
1427
|
+
AddPassword: AuthOperation<`${Id}/add-password`, Schema.Struct<{
|
|
1428
|
+
commandId: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordCommandId">;
|
|
1429
|
+
newPassword: Schema.RedactedFromValue<Schema.String>;
|
|
1430
|
+
actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
1431
|
+
}>, Schema.Struct<{
|
|
1432
|
+
readonly invalidation: Schema.Struct<{
|
|
1433
|
+
readonly trigger: Schema.Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
|
|
1434
|
+
readonly existingSessions: Schema.Literals<readonly ["immediate", "original-absolute-expiry"]>;
|
|
1435
|
+
readonly maximumExposureMillis: Schema.Natural;
|
|
1436
|
+
readonly oldAuthenticationEvidence: Schema.Literal<"rejected">;
|
|
1437
|
+
}>;
|
|
1438
|
+
}>, Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
|
|
1439
|
+
readonly payload: Schema.Struct<{
|
|
1440
|
+
commandId: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordCommandId">;
|
|
1441
|
+
newPassword: Schema.RedactedFromValue<Schema.String>;
|
|
1442
|
+
actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
1443
|
+
}>;
|
|
1444
|
+
readonly success: Schema.Struct<{
|
|
1445
|
+
readonly invalidation: Schema.Struct<{
|
|
1446
|
+
readonly trigger: Schema.Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
|
|
1447
|
+
readonly existingSessions: Schema.Literals<readonly ["immediate", "original-absolute-expiry"]>;
|
|
1448
|
+
readonly maximumExposureMillis: Schema.Natural;
|
|
1449
|
+
readonly oldAuthenticationEvidence: Schema.Literal<"rejected">;
|
|
1450
|
+
}>;
|
|
1451
|
+
}>;
|
|
1452
|
+
readonly error: Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
|
|
1453
|
+
readonly access: "authenticated";
|
|
1454
|
+
readonly exposure: "public";
|
|
1455
|
+
readonly replay: "single-use";
|
|
1456
|
+
readonly credentials: true;
|
|
1457
|
+
}>;
|
|
1458
|
+
ChangePassword: AuthOperation<`${Id}/change-password`, Schema.Struct<{
|
|
1459
|
+
readonly commandId: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordCommandId">;
|
|
1460
|
+
readonly newPassword: Schema.RedactedFromValue<Schema.String>;
|
|
1461
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
1462
|
+
readonly currentPassword: Schema.RedactedFromValue<Schema.String>;
|
|
1463
|
+
}>, Schema.Struct<{
|
|
1464
|
+
readonly invalidation: Schema.Struct<{
|
|
1465
|
+
readonly trigger: Schema.Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
|
|
1466
|
+
readonly existingSessions: Schema.Literals<readonly ["immediate", "original-absolute-expiry"]>;
|
|
1467
|
+
readonly maximumExposureMillis: Schema.Natural;
|
|
1468
|
+
readonly oldAuthenticationEvidence: Schema.Literal<"rejected">;
|
|
1469
|
+
}>;
|
|
1470
|
+
}>, Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
|
|
1471
|
+
readonly payload: Schema.Struct<{
|
|
1472
|
+
readonly commandId: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordCommandId">;
|
|
1473
|
+
readonly newPassword: Schema.RedactedFromValue<Schema.String>;
|
|
1474
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
1475
|
+
readonly currentPassword: Schema.RedactedFromValue<Schema.String>;
|
|
1476
|
+
}>;
|
|
1477
|
+
readonly success: Schema.Struct<{
|
|
1478
|
+
readonly invalidation: Schema.Struct<{
|
|
1479
|
+
readonly trigger: Schema.Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
|
|
1480
|
+
readonly existingSessions: Schema.Literals<readonly ["immediate", "original-absolute-expiry"]>;
|
|
1481
|
+
readonly maximumExposureMillis: Schema.Natural;
|
|
1482
|
+
readonly oldAuthenticationEvidence: Schema.Literal<"rejected">;
|
|
1483
|
+
}>;
|
|
1484
|
+
}>;
|
|
1485
|
+
readonly error: Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
|
|
1486
|
+
readonly access: "authenticated";
|
|
1487
|
+
readonly exposure: "public";
|
|
1488
|
+
readonly replay: "single-use";
|
|
1489
|
+
readonly credentials: true;
|
|
1490
|
+
}>;
|
|
1491
|
+
RequestReset: AuthOperation<`${Id}/request-reset`, Schema.Struct<{
|
|
1492
|
+
readonly flowId: Schema.brand<Schema.NonEmptyString, "effect-auth/AuthenticationFlowId">;
|
|
1493
|
+
readonly email: Schema.compose<Schema.decodeTo<Schema.brand<Schema.String, "effect-auth/Email">, Schema.String, never, never>, Schema.String>;
|
|
1494
|
+
readonly requestId: Schema.brand<Schema.String, "effect-auth/ProofRequestId">;
|
|
1495
|
+
readonly locale: Schema.NonEmptyString;
|
|
1496
|
+
}>, Schema.Struct<{
|
|
1497
|
+
readonly requestId: Schema.brand<Schema.String, "effect-auth/ProofRequestId">;
|
|
1498
|
+
readonly reference: Schema.Struct<{
|
|
1499
|
+
readonly proofId: Schema.brand<Schema.String, "effect-auth/ProofId">;
|
|
1500
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
1501
|
+
readonly keyId: Schema.String;
|
|
1502
|
+
}>;
|
|
1503
|
+
}>, Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
|
|
1504
|
+
readonly payload: Schema.Struct<{
|
|
1505
|
+
readonly flowId: Schema.brand<Schema.NonEmptyString, "effect-auth/AuthenticationFlowId">;
|
|
1506
|
+
readonly email: Schema.compose<Schema.decodeTo<Schema.brand<Schema.String, "effect-auth/Email">, Schema.String, never, never>, Schema.String>;
|
|
1507
|
+
readonly requestId: Schema.brand<Schema.String, "effect-auth/ProofRequestId">;
|
|
1508
|
+
readonly locale: Schema.NonEmptyString;
|
|
1509
|
+
}>;
|
|
1510
|
+
readonly success: Schema.Struct<{
|
|
1511
|
+
readonly requestId: Schema.brand<Schema.String, "effect-auth/ProofRequestId">;
|
|
1512
|
+
readonly reference: Schema.Struct<{
|
|
1513
|
+
readonly proofId: Schema.brand<Schema.String, "effect-auth/ProofId">;
|
|
1514
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
1515
|
+
readonly keyId: Schema.String;
|
|
1516
|
+
}>;
|
|
1517
|
+
}>;
|
|
1518
|
+
readonly error: Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
|
|
1519
|
+
readonly access: "any";
|
|
1520
|
+
readonly exposure: "public";
|
|
1521
|
+
readonly replay: "idempotent";
|
|
1522
|
+
}>;
|
|
1523
|
+
VerifyReset: AuthOperation<`${Id}/verify-reset`, Schema.Struct<{
|
|
1524
|
+
readonly flowId: Schema.brand<Schema.NonEmptyString, "effect-auth/AuthenticationFlowId">;
|
|
1525
|
+
readonly email: Schema.compose<Schema.decodeTo<Schema.brand<Schema.String, "effect-auth/Email">, Schema.String, never, never>, Schema.String>;
|
|
1526
|
+
readonly reference: Schema.Struct<{
|
|
1527
|
+
readonly proofId: Schema.brand<Schema.String, "effect-auth/ProofId">;
|
|
1528
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
1529
|
+
readonly keyId: Schema.String;
|
|
1530
|
+
}>;
|
|
1531
|
+
readonly secret: Schema.RedactedFromValue<Schema.String>;
|
|
1532
|
+
}>, Schema.Struct<{
|
|
1533
|
+
readonly continuation: Schema.Struct<{
|
|
1534
|
+
readonly continuationId: Schema.brand<Schema.String, "effect-auth/ProofContinuationId">;
|
|
1535
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
1536
|
+
readonly expiresAtMillis: Schema.Int;
|
|
1537
|
+
}>;
|
|
1538
|
+
}>, Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
|
|
1539
|
+
readonly payload: Schema.Struct<{
|
|
1540
|
+
readonly flowId: Schema.brand<Schema.NonEmptyString, "effect-auth/AuthenticationFlowId">;
|
|
1541
|
+
readonly email: Schema.compose<Schema.decodeTo<Schema.brand<Schema.String, "effect-auth/Email">, Schema.String, never, never>, Schema.String>;
|
|
1542
|
+
readonly reference: Schema.Struct<{
|
|
1543
|
+
readonly proofId: Schema.brand<Schema.String, "effect-auth/ProofId">;
|
|
1544
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
1545
|
+
readonly keyId: Schema.String;
|
|
1546
|
+
}>;
|
|
1547
|
+
readonly secret: Schema.RedactedFromValue<Schema.String>;
|
|
1548
|
+
}>;
|
|
1549
|
+
readonly success: Schema.Struct<{
|
|
1550
|
+
readonly continuation: Schema.Struct<{
|
|
1551
|
+
readonly continuationId: Schema.brand<Schema.String, "effect-auth/ProofContinuationId">;
|
|
1552
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
1553
|
+
readonly expiresAtMillis: Schema.Int;
|
|
1554
|
+
}>;
|
|
1555
|
+
}>;
|
|
1556
|
+
readonly error: Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
|
|
1557
|
+
readonly access: "any";
|
|
1558
|
+
readonly exposure: "public";
|
|
1559
|
+
readonly replay: "single-use";
|
|
1560
|
+
readonly credentials: true;
|
|
1561
|
+
}>;
|
|
1562
|
+
CompleteReset: AuthOperation<`${Id}/complete-reset`, Schema.Struct<{
|
|
1563
|
+
readonly commandId: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordCommandId">;
|
|
1564
|
+
readonly newPassword: Schema.RedactedFromValue<Schema.String>;
|
|
1565
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
1566
|
+
readonly flowId: Schema.brand<Schema.NonEmptyString, "effect-auth/AuthenticationFlowId">;
|
|
1567
|
+
readonly email: Schema.compose<Schema.decodeTo<Schema.brand<Schema.String, "effect-auth/Email">, Schema.String, never, never>, Schema.String>;
|
|
1568
|
+
readonly continuationId: Schema.brand<Schema.String, "effect-auth/ProofContinuationId">;
|
|
1569
|
+
readonly credential: Schema.RedactedFromValue<Schema.String>;
|
|
1570
|
+
}>, Schema.Struct<{
|
|
1571
|
+
readonly invalidation: Schema.Struct<{
|
|
1572
|
+
readonly trigger: Schema.Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
|
|
1573
|
+
readonly existingSessions: Schema.Literals<readonly ["immediate", "original-absolute-expiry"]>;
|
|
1574
|
+
readonly maximumExposureMillis: Schema.Natural;
|
|
1575
|
+
readonly oldAuthenticationEvidence: Schema.Literal<"rejected">;
|
|
1576
|
+
}>;
|
|
1577
|
+
}>, Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
|
|
1578
|
+
readonly payload: Schema.Struct<{
|
|
1579
|
+
readonly commandId: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordCommandId">;
|
|
1580
|
+
readonly newPassword: Schema.RedactedFromValue<Schema.String>;
|
|
1581
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
1582
|
+
readonly flowId: Schema.brand<Schema.NonEmptyString, "effect-auth/AuthenticationFlowId">;
|
|
1583
|
+
readonly email: Schema.compose<Schema.decodeTo<Schema.brand<Schema.String, "effect-auth/Email">, Schema.String, never, never>, Schema.String>;
|
|
1584
|
+
readonly continuationId: Schema.brand<Schema.String, "effect-auth/ProofContinuationId">;
|
|
1585
|
+
readonly credential: Schema.RedactedFromValue<Schema.String>;
|
|
1586
|
+
}>;
|
|
1587
|
+
readonly success: Schema.Struct<{
|
|
1588
|
+
readonly invalidation: Schema.Struct<{
|
|
1589
|
+
readonly trigger: Schema.Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
|
|
1590
|
+
readonly existingSessions: Schema.Literals<readonly ["immediate", "original-absolute-expiry"]>;
|
|
1591
|
+
readonly maximumExposureMillis: Schema.Natural;
|
|
1592
|
+
readonly oldAuthenticationEvidence: Schema.Literal<"rejected">;
|
|
1593
|
+
}>;
|
|
1594
|
+
}>;
|
|
1595
|
+
readonly error: Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
|
|
1596
|
+
readonly access: "any";
|
|
1597
|
+
readonly exposure: "public";
|
|
1598
|
+
readonly replay: "single-use";
|
|
1599
|
+
readonly credentials: true;
|
|
1600
|
+
}>;
|
|
1601
|
+
PasswordStatus: AuthOperation<`${Id}/status`, Schema.Void, Schema.Struct<{
|
|
1602
|
+
readonly hasPassword: Schema.Boolean;
|
|
1603
|
+
}>, Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
|
|
1604
|
+
readonly payload: Schema.Void;
|
|
1605
|
+
readonly success: Schema.Struct<{
|
|
1606
|
+
readonly hasPassword: Schema.Boolean;
|
|
1607
|
+
}>;
|
|
1608
|
+
readonly error: Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
|
|
1609
|
+
readonly access: "authenticated";
|
|
1610
|
+
readonly exposure: "public";
|
|
1611
|
+
readonly replay: "read-only";
|
|
1612
|
+
}>;
|
|
1613
|
+
CleanupAttempts: AuthOperation<`${Id}/cleanup`, Schema.Struct<{
|
|
1614
|
+
readonly limit: Schema.Int;
|
|
1615
|
+
}>, Schema.Struct<{
|
|
1616
|
+
readonly removed: Schema.Natural;
|
|
1617
|
+
readonly hasMore: Schema.Boolean;
|
|
1618
|
+
}>, Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, never, {
|
|
1619
|
+
readonly payload: Schema.Struct<{
|
|
1620
|
+
readonly limit: Schema.Int;
|
|
1621
|
+
}>;
|
|
1622
|
+
readonly success: Schema.Struct<{
|
|
1623
|
+
readonly removed: Schema.Natural;
|
|
1624
|
+
readonly hasMore: Schema.Boolean;
|
|
1625
|
+
}>;
|
|
1626
|
+
readonly error: Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>;
|
|
1627
|
+
readonly access: "system";
|
|
1628
|
+
readonly replay: "idempotent";
|
|
1629
|
+
}>;
|
|
1630
|
+
};
|
|
1631
|
+
reset: Readonly<{
|
|
1632
|
+
Proofs: Context.Service<ProofModule<`${Id}/reset`, {
|
|
1633
|
+
readonly _tag: "Identifier";
|
|
1634
|
+
readonly flowId: string;
|
|
1635
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1636
|
+
readonly identifier: LoginIdentifier;
|
|
1637
|
+
} | {
|
|
1638
|
+
readonly _tag: "Subject";
|
|
1639
|
+
readonly flowId: string;
|
|
1640
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1641
|
+
readonly revision: {
|
|
1642
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1643
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1644
|
+
readonly credentials: readonly {
|
|
1645
|
+
readonly credentialId: string;
|
|
1646
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1647
|
+
}[];
|
|
1648
|
+
};
|
|
1649
|
+
readonly identifier: LoginIdentifier;
|
|
1650
|
+
} | {
|
|
1651
|
+
readonly _tag: "IdentifierChange";
|
|
1652
|
+
readonly flowId: string;
|
|
1653
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1654
|
+
readonly revision: {
|
|
1655
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1656
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1657
|
+
readonly credentials: readonly {
|
|
1658
|
+
readonly credentialId: string;
|
|
1659
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1660
|
+
}[];
|
|
1661
|
+
};
|
|
1662
|
+
readonly identifier: LoginIdentifier;
|
|
1663
|
+
}>, {
|
|
1664
|
+
readonly planIssue: (input: {
|
|
1665
|
+
readonly requestId: string & import("effect/Brand").Brand<"effect-auth/ProofRequestId">;
|
|
1666
|
+
readonly binding: {
|
|
1667
|
+
readonly _tag: "Identifier";
|
|
1668
|
+
readonly flowId: string;
|
|
1669
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1670
|
+
readonly identifier: LoginIdentifier;
|
|
1671
|
+
} | {
|
|
1672
|
+
readonly _tag: "Subject";
|
|
1673
|
+
readonly flowId: string;
|
|
1674
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1675
|
+
readonly revision: {
|
|
1676
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1677
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1678
|
+
readonly credentials: readonly {
|
|
1679
|
+
readonly credentialId: string;
|
|
1680
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1681
|
+
}[];
|
|
1682
|
+
};
|
|
1683
|
+
readonly identifier: LoginIdentifier;
|
|
1684
|
+
} | {
|
|
1685
|
+
readonly _tag: "IdentifierChange";
|
|
1686
|
+
readonly flowId: string;
|
|
1687
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1688
|
+
readonly revision: {
|
|
1689
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1690
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1691
|
+
readonly credentials: readonly {
|
|
1692
|
+
readonly credentialId: string;
|
|
1693
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1694
|
+
}[];
|
|
1695
|
+
};
|
|
1696
|
+
readonly identifier: LoginIdentifier;
|
|
1697
|
+
};
|
|
1698
|
+
readonly locale: string;
|
|
1699
|
+
readonly eligible: boolean;
|
|
1700
|
+
} & {
|
|
1701
|
+
readonly supersedes?: ProofId;
|
|
1702
|
+
}) => Effect.Effect<ProofIssuePlan, HookDenied | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable>;
|
|
1703
|
+
readonly prepareIssue: (input: {
|
|
1704
|
+
readonly requestId: string & import("effect/Brand").Brand<"effect-auth/ProofRequestId">;
|
|
1705
|
+
readonly binding: {
|
|
1706
|
+
readonly _tag: "Identifier";
|
|
1707
|
+
readonly flowId: string;
|
|
1708
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1709
|
+
readonly identifier: LoginIdentifier;
|
|
1710
|
+
} | {
|
|
1711
|
+
readonly _tag: "Subject";
|
|
1712
|
+
readonly flowId: string;
|
|
1713
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1714
|
+
readonly revision: {
|
|
1715
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1716
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1717
|
+
readonly credentials: readonly {
|
|
1718
|
+
readonly credentialId: string;
|
|
1719
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1720
|
+
}[];
|
|
1721
|
+
};
|
|
1722
|
+
readonly identifier: LoginIdentifier;
|
|
1723
|
+
} | {
|
|
1724
|
+
readonly _tag: "IdentifierChange";
|
|
1725
|
+
readonly flowId: string;
|
|
1726
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1727
|
+
readonly revision: {
|
|
1728
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1729
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1730
|
+
readonly credentials: readonly {
|
|
1731
|
+
readonly credentialId: string;
|
|
1732
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1733
|
+
}[];
|
|
1734
|
+
};
|
|
1735
|
+
readonly identifier: LoginIdentifier;
|
|
1736
|
+
};
|
|
1737
|
+
readonly locale: string;
|
|
1738
|
+
readonly eligible: boolean;
|
|
1739
|
+
} & {
|
|
1740
|
+
readonly supersedes?: ProofId;
|
|
1741
|
+
}) => Effect.Effect<PreparedCommit<PreparedProofDispatch>, HookDenied | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable>;
|
|
1742
|
+
readonly prepareAttempt: (input: {
|
|
1743
|
+
readonly reference: {
|
|
1744
|
+
readonly proofId: string & import("effect/Brand").Brand<"effect-auth/ProofId">;
|
|
1745
|
+
readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
|
|
1746
|
+
readonly keyId: string;
|
|
1747
|
+
};
|
|
1748
|
+
readonly binding: {
|
|
1749
|
+
readonly _tag: "Identifier";
|
|
1750
|
+
readonly flowId: string;
|
|
1751
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1752
|
+
readonly identifier: LoginIdentifier;
|
|
1753
|
+
} | {
|
|
1754
|
+
readonly _tag: "Subject";
|
|
1755
|
+
readonly flowId: string;
|
|
1756
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1757
|
+
readonly revision: {
|
|
1758
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1759
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1760
|
+
readonly credentials: readonly {
|
|
1761
|
+
readonly credentialId: string;
|
|
1762
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1763
|
+
}[];
|
|
1764
|
+
};
|
|
1765
|
+
readonly identifier: LoginIdentifier;
|
|
1766
|
+
} | {
|
|
1767
|
+
readonly _tag: "IdentifierChange";
|
|
1768
|
+
readonly flowId: string;
|
|
1769
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1770
|
+
readonly revision: {
|
|
1771
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1772
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1773
|
+
readonly credentials: readonly {
|
|
1774
|
+
readonly credentialId: string;
|
|
1775
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1776
|
+
}[];
|
|
1777
|
+
};
|
|
1778
|
+
readonly identifier: LoginIdentifier;
|
|
1779
|
+
};
|
|
1780
|
+
readonly credential: Redacted.Redacted<string>;
|
|
1781
|
+
}) => Effect.Effect<PreparedCommit<AuthOperationResult<{
|
|
1782
|
+
readonly _tag: "Accepted";
|
|
1783
|
+
readonly continuation: {
|
|
1784
|
+
readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
|
|
1785
|
+
readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
|
|
1786
|
+
readonly expiresAtMillis: number;
|
|
1787
|
+
};
|
|
1788
|
+
}> | {
|
|
1789
|
+
readonly value: {
|
|
1790
|
+
readonly _tag: "Rejected";
|
|
1791
|
+
};
|
|
1792
|
+
readonly credentialCommands: readonly [];
|
|
1793
|
+
}>, HookDenied | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable, never>;
|
|
1794
|
+
readonly planComplete: (input: {
|
|
1795
|
+
readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
|
|
1796
|
+
readonly binding: {
|
|
1797
|
+
readonly _tag: "Identifier";
|
|
1798
|
+
readonly flowId: string;
|
|
1799
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1800
|
+
readonly identifier: LoginIdentifier;
|
|
1801
|
+
} | {
|
|
1802
|
+
readonly _tag: "Subject";
|
|
1803
|
+
readonly flowId: string;
|
|
1804
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1805
|
+
readonly revision: {
|
|
1806
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1807
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1808
|
+
readonly credentials: readonly {
|
|
1809
|
+
readonly credentialId: string;
|
|
1810
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1811
|
+
}[];
|
|
1812
|
+
};
|
|
1813
|
+
readonly identifier: LoginIdentifier;
|
|
1814
|
+
} | {
|
|
1815
|
+
readonly _tag: "IdentifierChange";
|
|
1816
|
+
readonly flowId: string;
|
|
1817
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1818
|
+
readonly revision: {
|
|
1819
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1820
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1821
|
+
readonly credentials: readonly {
|
|
1822
|
+
readonly credentialId: string;
|
|
1823
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1824
|
+
}[];
|
|
1825
|
+
};
|
|
1826
|
+
readonly identifier: LoginIdentifier;
|
|
1827
|
+
};
|
|
1828
|
+
readonly credential: Redacted.Redacted<string>;
|
|
1829
|
+
}) => Effect.Effect<ProofCompletionPlan, HookDenied | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable>;
|
|
1830
|
+
readonly prepareComplete: (input: {
|
|
1831
|
+
readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
|
|
1832
|
+
readonly binding: {
|
|
1833
|
+
readonly _tag: "Identifier";
|
|
1834
|
+
readonly flowId: string;
|
|
1835
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1836
|
+
readonly identifier: LoginIdentifier;
|
|
1837
|
+
} | {
|
|
1838
|
+
readonly _tag: "Subject";
|
|
1839
|
+
readonly flowId: string;
|
|
1840
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1841
|
+
readonly revision: {
|
|
1842
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1843
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1844
|
+
readonly credentials: readonly {
|
|
1845
|
+
readonly credentialId: string;
|
|
1846
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1847
|
+
}[];
|
|
1848
|
+
};
|
|
1849
|
+
readonly identifier: LoginIdentifier;
|
|
1850
|
+
} | {
|
|
1851
|
+
readonly _tag: "IdentifierChange";
|
|
1852
|
+
readonly flowId: string;
|
|
1853
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1854
|
+
readonly revision: {
|
|
1855
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1856
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1857
|
+
readonly credentials: readonly {
|
|
1858
|
+
readonly credentialId: string;
|
|
1859
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1860
|
+
}[];
|
|
1861
|
+
};
|
|
1862
|
+
readonly identifier: LoginIdentifier;
|
|
1863
|
+
};
|
|
1864
|
+
readonly credential: Redacted.Redacted<string>;
|
|
1865
|
+
}) => Effect.Effect<PreparedCommit<ProofCompletionDecision>, HookDenied | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable>;
|
|
1866
|
+
readonly cancel: (binding: {
|
|
1867
|
+
readonly _tag: "Identifier";
|
|
1868
|
+
readonly flowId: string;
|
|
1869
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1870
|
+
readonly identifier: LoginIdentifier;
|
|
1871
|
+
} | {
|
|
1872
|
+
readonly _tag: "Subject";
|
|
1873
|
+
readonly flowId: string;
|
|
1874
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1875
|
+
readonly revision: {
|
|
1876
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1877
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1878
|
+
readonly credentials: readonly {
|
|
1879
|
+
readonly credentialId: string;
|
|
1880
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1881
|
+
}[];
|
|
1882
|
+
};
|
|
1883
|
+
readonly identifier: LoginIdentifier;
|
|
1884
|
+
} | {
|
|
1885
|
+
readonly _tag: "IdentifierChange";
|
|
1886
|
+
readonly flowId: string;
|
|
1887
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1888
|
+
readonly revision: {
|
|
1889
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1890
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1891
|
+
readonly credentials: readonly {
|
|
1892
|
+
readonly credentialId: string;
|
|
1893
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1894
|
+
}[];
|
|
1895
|
+
};
|
|
1896
|
+
readonly identifier: LoginIdentifier;
|
|
1897
|
+
}) => Effect.Effect<PreparedCommit<void>, HookDenied | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable>;
|
|
1898
|
+
readonly cleanup: (limit: number) => Effect.Effect<PreparedCommit<ProofCleanupResult>, HookDenied | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable>;
|
|
1899
|
+
}>;
|
|
1900
|
+
emailLayer: Layer.Layer<ProofModule<`${Id}/reset`, {
|
|
1901
|
+
readonly _tag: "Identifier";
|
|
1902
|
+
readonly flowId: string;
|
|
1903
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1904
|
+
readonly identifier: LoginIdentifier;
|
|
1905
|
+
} | {
|
|
1906
|
+
readonly _tag: "Subject";
|
|
1907
|
+
readonly flowId: string;
|
|
1908
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1909
|
+
readonly revision: {
|
|
1910
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1911
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1912
|
+
readonly credentials: readonly {
|
|
1913
|
+
readonly credentialId: string;
|
|
1914
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1915
|
+
}[];
|
|
1916
|
+
};
|
|
1917
|
+
readonly identifier: LoginIdentifier;
|
|
1918
|
+
} | {
|
|
1919
|
+
readonly _tag: "IdentifierChange";
|
|
1920
|
+
readonly flowId: string;
|
|
1921
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1922
|
+
readonly revision: {
|
|
1923
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1924
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1925
|
+
readonly credentials: readonly {
|
|
1926
|
+
readonly credentialId: string;
|
|
1927
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1928
|
+
}[];
|
|
1929
|
+
};
|
|
1930
|
+
readonly identifier: LoginIdentifier;
|
|
1931
|
+
}>, ProofConfigurationError, Crypto.Crypto | EmailProofDelivery | LifecycleHooks | ProofPersistence | SubtleCrypto>;
|
|
1932
|
+
smsLayer: Layer.Layer<ProofModule<`${Id}/reset`, {
|
|
1933
|
+
readonly _tag: "Identifier";
|
|
1934
|
+
readonly flowId: string;
|
|
1935
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1936
|
+
readonly identifier: LoginIdentifier;
|
|
1937
|
+
} | {
|
|
1938
|
+
readonly _tag: "Subject";
|
|
1939
|
+
readonly flowId: string;
|
|
1940
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1941
|
+
readonly revision: {
|
|
1942
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1943
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1944
|
+
readonly credentials: readonly {
|
|
1945
|
+
readonly credentialId: string;
|
|
1946
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1947
|
+
}[];
|
|
1948
|
+
};
|
|
1949
|
+
readonly identifier: LoginIdentifier;
|
|
1950
|
+
} | {
|
|
1951
|
+
readonly _tag: "IdentifierChange";
|
|
1952
|
+
readonly flowId: string;
|
|
1953
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1954
|
+
readonly revision: {
|
|
1955
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1956
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1957
|
+
readonly credentials: readonly {
|
|
1958
|
+
readonly credentialId: string;
|
|
1959
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1960
|
+
}[];
|
|
1961
|
+
};
|
|
1962
|
+
readonly identifier: LoginIdentifier;
|
|
1963
|
+
}>, ProofConfigurationError, Crypto.Crypto | LifecycleHooks | ProofPersistence | SmsProofDelivery | SubtleCrypto>;
|
|
1964
|
+
handlersLayer: Layer.Layer<OperationHandler<`${Id}/reset/attempt`, {
|
|
1965
|
+
readonly reference: {
|
|
1966
|
+
readonly proofId: string & import("effect/Brand").Brand<"effect-auth/ProofId">;
|
|
1967
|
+
readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
|
|
1968
|
+
readonly keyId: string;
|
|
1969
|
+
};
|
|
1970
|
+
readonly binding: {
|
|
1971
|
+
readonly _tag: "Identifier";
|
|
1972
|
+
readonly flowId: string;
|
|
1973
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1974
|
+
readonly identifier: LoginIdentifier;
|
|
1975
|
+
} | {
|
|
1976
|
+
readonly _tag: "Subject";
|
|
1977
|
+
readonly flowId: string;
|
|
1978
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1979
|
+
readonly revision: {
|
|
1980
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1981
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1982
|
+
readonly credentials: readonly {
|
|
1983
|
+
readonly credentialId: string;
|
|
1984
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1985
|
+
}[];
|
|
1986
|
+
};
|
|
1987
|
+
readonly identifier: LoginIdentifier;
|
|
1988
|
+
} | {
|
|
1989
|
+
readonly _tag: "IdentifierChange";
|
|
1990
|
+
readonly flowId: string;
|
|
1991
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1992
|
+
readonly revision: {
|
|
1993
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1994
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1995
|
+
readonly credentials: readonly {
|
|
1996
|
+
readonly credentialId: string;
|
|
1997
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1998
|
+
}[];
|
|
1999
|
+
};
|
|
2000
|
+
readonly identifier: LoginIdentifier;
|
|
2001
|
+
};
|
|
2002
|
+
readonly credential: Redacted.Redacted<string>;
|
|
2003
|
+
}, {
|
|
2004
|
+
readonly _tag: "Accepted";
|
|
2005
|
+
readonly continuation: {
|
|
2006
|
+
readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
|
|
2007
|
+
readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
|
|
2008
|
+
readonly expiresAtMillis: number;
|
|
2009
|
+
};
|
|
2010
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | OperationForbidden | OperationPrivateOutputUnsupported | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable> | OperationHandler<`${Id}/reset/cancel`, {
|
|
2011
|
+
readonly binding: {
|
|
2012
|
+
readonly _tag: "Identifier";
|
|
2013
|
+
readonly flowId: string;
|
|
2014
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2015
|
+
readonly identifier: LoginIdentifier;
|
|
2016
|
+
} | {
|
|
2017
|
+
readonly _tag: "Subject";
|
|
2018
|
+
readonly flowId: string;
|
|
2019
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2020
|
+
readonly revision: {
|
|
2021
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
2022
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2023
|
+
readonly credentials: readonly {
|
|
2024
|
+
readonly credentialId: string;
|
|
2025
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2026
|
+
}[];
|
|
2027
|
+
};
|
|
2028
|
+
readonly identifier: LoginIdentifier;
|
|
2029
|
+
} | {
|
|
2030
|
+
readonly _tag: "IdentifierChange";
|
|
2031
|
+
readonly flowId: string;
|
|
2032
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2033
|
+
readonly revision: {
|
|
2034
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
2035
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2036
|
+
readonly credentials: readonly {
|
|
2037
|
+
readonly credentialId: string;
|
|
2038
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2039
|
+
}[];
|
|
2040
|
+
};
|
|
2041
|
+
readonly identifier: LoginIdentifier;
|
|
2042
|
+
};
|
|
2043
|
+
}, void, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | OperationForbidden | OperationPrivateOutputUnsupported | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable> | OperationHandler<`${Id}/reset/cleanup`, {
|
|
2044
|
+
readonly limit: number;
|
|
2045
|
+
}, {
|
|
2046
|
+
readonly removed: number;
|
|
2047
|
+
readonly hasMore: boolean;
|
|
2048
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | OperationForbidden | OperationPrivateOutputUnsupported | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable> | OperationHandler<`${Id}/reset/complete`, {
|
|
2049
|
+
readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
|
|
2050
|
+
readonly binding: {
|
|
2051
|
+
readonly _tag: "Identifier";
|
|
2052
|
+
readonly flowId: string;
|
|
2053
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2054
|
+
readonly identifier: LoginIdentifier;
|
|
2055
|
+
} | {
|
|
2056
|
+
readonly _tag: "Subject";
|
|
2057
|
+
readonly flowId: string;
|
|
2058
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2059
|
+
readonly revision: {
|
|
2060
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
2061
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2062
|
+
readonly credentials: readonly {
|
|
2063
|
+
readonly credentialId: string;
|
|
2064
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2065
|
+
}[];
|
|
2066
|
+
};
|
|
2067
|
+
readonly identifier: LoginIdentifier;
|
|
2068
|
+
} | {
|
|
2069
|
+
readonly _tag: "IdentifierChange";
|
|
2070
|
+
readonly flowId: string;
|
|
2071
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2072
|
+
readonly revision: {
|
|
2073
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
2074
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2075
|
+
readonly credentials: readonly {
|
|
2076
|
+
readonly credentialId: string;
|
|
2077
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2078
|
+
}[];
|
|
2079
|
+
};
|
|
2080
|
+
readonly identifier: LoginIdentifier;
|
|
2081
|
+
};
|
|
2082
|
+
readonly credential: Redacted.Redacted<string>;
|
|
2083
|
+
}, void, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | OperationForbidden | OperationPrivateOutputUnsupported | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable> | OperationHandler<`${Id}/reset/request`, {
|
|
2084
|
+
readonly requestId: string & import("effect/Brand").Brand<"effect-auth/ProofRequestId">;
|
|
2085
|
+
readonly binding: {
|
|
2086
|
+
readonly _tag: "Identifier";
|
|
2087
|
+
readonly flowId: string;
|
|
2088
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2089
|
+
readonly identifier: LoginIdentifier;
|
|
2090
|
+
} | {
|
|
2091
|
+
readonly _tag: "Subject";
|
|
2092
|
+
readonly flowId: string;
|
|
2093
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2094
|
+
readonly revision: {
|
|
2095
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
2096
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2097
|
+
readonly credentials: readonly {
|
|
2098
|
+
readonly credentialId: string;
|
|
2099
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2100
|
+
}[];
|
|
2101
|
+
};
|
|
2102
|
+
readonly identifier: LoginIdentifier;
|
|
2103
|
+
} | {
|
|
2104
|
+
readonly _tag: "IdentifierChange";
|
|
2105
|
+
readonly flowId: string;
|
|
2106
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2107
|
+
readonly revision: {
|
|
2108
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
2109
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2110
|
+
readonly credentials: readonly {
|
|
2111
|
+
readonly credentialId: string;
|
|
2112
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2113
|
+
}[];
|
|
2114
|
+
};
|
|
2115
|
+
readonly identifier: LoginIdentifier;
|
|
2116
|
+
};
|
|
2117
|
+
readonly locale: string;
|
|
2118
|
+
readonly eligible: boolean;
|
|
2119
|
+
}, {
|
|
2120
|
+
readonly requestId: string & import("effect/Brand").Brand<"effect-auth/ProofRequestId">;
|
|
2121
|
+
readonly reference: {
|
|
2122
|
+
readonly proofId: string & import("effect/Brand").Brand<"effect-auth/ProofId">;
|
|
2123
|
+
readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
|
|
2124
|
+
readonly keyId: string;
|
|
2125
|
+
};
|
|
2126
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | OperationForbidden | OperationPrivateOutputUnsupported | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable> | OperationHandler<`${Id}/reset/resend`, {
|
|
2127
|
+
readonly requestId: string & import("effect/Brand").Brand<"effect-auth/ProofRequestId">;
|
|
2128
|
+
readonly binding: {
|
|
2129
|
+
readonly _tag: "Identifier";
|
|
2130
|
+
readonly flowId: string;
|
|
2131
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2132
|
+
readonly identifier: LoginIdentifier;
|
|
2133
|
+
} | {
|
|
2134
|
+
readonly _tag: "Subject";
|
|
2135
|
+
readonly flowId: string;
|
|
2136
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2137
|
+
readonly revision: {
|
|
2138
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
2139
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2140
|
+
readonly credentials: readonly {
|
|
2141
|
+
readonly credentialId: string;
|
|
2142
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2143
|
+
}[];
|
|
2144
|
+
};
|
|
2145
|
+
readonly identifier: LoginIdentifier;
|
|
2146
|
+
} | {
|
|
2147
|
+
readonly _tag: "IdentifierChange";
|
|
2148
|
+
readonly flowId: string;
|
|
2149
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2150
|
+
readonly revision: {
|
|
2151
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
2152
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2153
|
+
readonly credentials: readonly {
|
|
2154
|
+
readonly credentialId: string;
|
|
2155
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2156
|
+
}[];
|
|
2157
|
+
};
|
|
2158
|
+
readonly identifier: LoginIdentifier;
|
|
2159
|
+
};
|
|
2160
|
+
readonly locale: string;
|
|
2161
|
+
readonly eligible: boolean;
|
|
2162
|
+
readonly supersedes: string & import("effect/Brand").Brand<"effect-auth/ProofId">;
|
|
2163
|
+
}, {
|
|
2164
|
+
readonly requestId: string & import("effect/Brand").Brand<"effect-auth/ProofRequestId">;
|
|
2165
|
+
readonly reference: {
|
|
2166
|
+
readonly proofId: string & import("effect/Brand").Brand<"effect-auth/ProofId">;
|
|
2167
|
+
readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
|
|
2168
|
+
readonly keyId: string;
|
|
2169
|
+
};
|
|
2170
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | OperationForbidden | OperationPrivateOutputUnsupported | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable>, never, ProofModule<`${Id}/reset`, {
|
|
2171
|
+
readonly _tag: "Identifier";
|
|
2172
|
+
readonly flowId: string;
|
|
2173
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2174
|
+
readonly identifier: LoginIdentifier;
|
|
2175
|
+
} | {
|
|
2176
|
+
readonly _tag: "Subject";
|
|
2177
|
+
readonly flowId: string;
|
|
2178
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2179
|
+
readonly revision: {
|
|
2180
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
2181
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2182
|
+
readonly credentials: readonly {
|
|
2183
|
+
readonly credentialId: string;
|
|
2184
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2185
|
+
}[];
|
|
2186
|
+
};
|
|
2187
|
+
readonly identifier: LoginIdentifier;
|
|
2188
|
+
} | {
|
|
2189
|
+
readonly _tag: "IdentifierChange";
|
|
2190
|
+
readonly flowId: string;
|
|
2191
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2192
|
+
readonly revision: {
|
|
2193
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
2194
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2195
|
+
readonly credentials: readonly {
|
|
2196
|
+
readonly credentialId: string;
|
|
2197
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2198
|
+
}[];
|
|
2199
|
+
};
|
|
2200
|
+
readonly identifier: LoginIdentifier;
|
|
2201
|
+
}>>;
|
|
2202
|
+
operations: {
|
|
2203
|
+
Request: AuthOperation<`${Id}/reset/request`, Schema.Struct<{
|
|
2204
|
+
readonly requestId: Schema.brand<Schema.String, "effect-auth/ProofRequestId">;
|
|
2205
|
+
readonly binding: Schema.Codec<{
|
|
2206
|
+
readonly _tag: "Identifier";
|
|
2207
|
+
readonly flowId: string;
|
|
2208
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2209
|
+
readonly identifier: LoginIdentifier;
|
|
2210
|
+
} | {
|
|
2211
|
+
readonly _tag: "Subject";
|
|
2212
|
+
readonly flowId: string;
|
|
2213
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2214
|
+
readonly revision: {
|
|
2215
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
2216
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2217
|
+
readonly credentials: readonly {
|
|
2218
|
+
readonly credentialId: string;
|
|
2219
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2220
|
+
}[];
|
|
2221
|
+
};
|
|
2222
|
+
readonly identifier: LoginIdentifier;
|
|
2223
|
+
} | {
|
|
2224
|
+
readonly _tag: "IdentifierChange";
|
|
2225
|
+
readonly flowId: string;
|
|
2226
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2227
|
+
readonly revision: {
|
|
2228
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
2229
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2230
|
+
readonly credentials: readonly {
|
|
2231
|
+
readonly credentialId: string;
|
|
2232
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2233
|
+
}[];
|
|
2234
|
+
};
|
|
2235
|
+
readonly identifier: LoginIdentifier;
|
|
2236
|
+
}, {
|
|
2237
|
+
readonly _tag: "Identifier";
|
|
2238
|
+
readonly flowId: string;
|
|
2239
|
+
readonly contextDigest: string;
|
|
2240
|
+
readonly identifier: {
|
|
2241
|
+
readonly namespace: string;
|
|
2242
|
+
readonly value: string;
|
|
2243
|
+
};
|
|
2244
|
+
} | {
|
|
2245
|
+
readonly _tag: "Subject";
|
|
2246
|
+
readonly flowId: string;
|
|
2247
|
+
readonly contextDigest: string;
|
|
2248
|
+
readonly revision: {
|
|
2249
|
+
readonly subjectId: string;
|
|
2250
|
+
readonly securityRevision: string;
|
|
2251
|
+
readonly credentials: readonly {
|
|
2252
|
+
readonly credentialId: string;
|
|
2253
|
+
readonly revision: string;
|
|
2254
|
+
}[];
|
|
2255
|
+
};
|
|
2256
|
+
readonly identifier: {
|
|
2257
|
+
readonly namespace: string;
|
|
2258
|
+
readonly value: string;
|
|
2259
|
+
};
|
|
2260
|
+
} | {
|
|
2261
|
+
readonly _tag: "IdentifierChange";
|
|
2262
|
+
readonly flowId: string;
|
|
2263
|
+
readonly contextDigest: string;
|
|
2264
|
+
readonly revision: {
|
|
2265
|
+
readonly subjectId: string;
|
|
2266
|
+
readonly securityRevision: string;
|
|
2267
|
+
readonly credentials: readonly {
|
|
2268
|
+
readonly credentialId: string;
|
|
2269
|
+
readonly revision: string;
|
|
2270
|
+
}[];
|
|
2271
|
+
};
|
|
2272
|
+
readonly identifier: {
|
|
2273
|
+
readonly namespace: string;
|
|
2274
|
+
readonly value: string;
|
|
2275
|
+
};
|
|
2276
|
+
}, never, never>;
|
|
2277
|
+
readonly locale: Schema.String;
|
|
2278
|
+
readonly eligible: Schema.Boolean;
|
|
2279
|
+
}>, Schema.Struct<{
|
|
2280
|
+
readonly requestId: Schema.brand<Schema.String, "effect-auth/ProofRequestId">;
|
|
2281
|
+
readonly reference: Schema.Struct<{
|
|
2282
|
+
readonly proofId: Schema.brand<Schema.String, "effect-auth/ProofId">;
|
|
2283
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
2284
|
+
readonly keyId: Schema.String;
|
|
2285
|
+
}>;
|
|
2286
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, never, {
|
|
2287
|
+
readonly payload: Schema.Struct<{
|
|
2288
|
+
readonly requestId: Schema.brand<Schema.String, "effect-auth/ProofRequestId">;
|
|
2289
|
+
readonly binding: Schema.Codec<{
|
|
2290
|
+
readonly _tag: "Identifier";
|
|
2291
|
+
readonly flowId: string;
|
|
2292
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2293
|
+
readonly identifier: LoginIdentifier;
|
|
2294
|
+
} | {
|
|
2295
|
+
readonly _tag: "Subject";
|
|
2296
|
+
readonly flowId: string;
|
|
2297
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2298
|
+
readonly revision: {
|
|
2299
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
2300
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2301
|
+
readonly credentials: readonly {
|
|
2302
|
+
readonly credentialId: string;
|
|
2303
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2304
|
+
}[];
|
|
2305
|
+
};
|
|
2306
|
+
readonly identifier: LoginIdentifier;
|
|
2307
|
+
} | {
|
|
2308
|
+
readonly _tag: "IdentifierChange";
|
|
2309
|
+
readonly flowId: string;
|
|
2310
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2311
|
+
readonly revision: {
|
|
2312
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
2313
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2314
|
+
readonly credentials: readonly {
|
|
2315
|
+
readonly credentialId: string;
|
|
2316
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2317
|
+
}[];
|
|
2318
|
+
};
|
|
2319
|
+
readonly identifier: LoginIdentifier;
|
|
2320
|
+
}, {
|
|
2321
|
+
readonly _tag: "Identifier";
|
|
2322
|
+
readonly flowId: string;
|
|
2323
|
+
readonly contextDigest: string;
|
|
2324
|
+
readonly identifier: {
|
|
2325
|
+
readonly namespace: string;
|
|
2326
|
+
readonly value: string;
|
|
2327
|
+
};
|
|
2328
|
+
} | {
|
|
2329
|
+
readonly _tag: "Subject";
|
|
2330
|
+
readonly flowId: string;
|
|
2331
|
+
readonly contextDigest: string;
|
|
2332
|
+
readonly revision: {
|
|
2333
|
+
readonly subjectId: string;
|
|
2334
|
+
readonly securityRevision: string;
|
|
2335
|
+
readonly credentials: readonly {
|
|
2336
|
+
readonly credentialId: string;
|
|
2337
|
+
readonly revision: string;
|
|
2338
|
+
}[];
|
|
2339
|
+
};
|
|
2340
|
+
readonly identifier: {
|
|
2341
|
+
readonly namespace: string;
|
|
2342
|
+
readonly value: string;
|
|
2343
|
+
};
|
|
2344
|
+
} | {
|
|
2345
|
+
readonly _tag: "IdentifierChange";
|
|
2346
|
+
readonly flowId: string;
|
|
2347
|
+
readonly contextDigest: string;
|
|
2348
|
+
readonly revision: {
|
|
2349
|
+
readonly subjectId: string;
|
|
2350
|
+
readonly securityRevision: string;
|
|
2351
|
+
readonly credentials: readonly {
|
|
2352
|
+
readonly credentialId: string;
|
|
2353
|
+
readonly revision: string;
|
|
2354
|
+
}[];
|
|
2355
|
+
};
|
|
2356
|
+
readonly identifier: {
|
|
2357
|
+
readonly namespace: string;
|
|
2358
|
+
readonly value: string;
|
|
2359
|
+
};
|
|
2360
|
+
}, never, never>;
|
|
2361
|
+
readonly locale: Schema.String;
|
|
2362
|
+
readonly eligible: Schema.Boolean;
|
|
2363
|
+
}>;
|
|
2364
|
+
readonly success: Schema.Struct<{
|
|
2365
|
+
readonly requestId: Schema.brand<Schema.String, "effect-auth/ProofRequestId">;
|
|
2366
|
+
readonly reference: Schema.Struct<{
|
|
2367
|
+
readonly proofId: Schema.brand<Schema.String, "effect-auth/ProofId">;
|
|
2368
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
2369
|
+
readonly keyId: Schema.String;
|
|
2370
|
+
}>;
|
|
2371
|
+
}>;
|
|
2372
|
+
readonly error: Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>;
|
|
2373
|
+
readonly access: "system";
|
|
2374
|
+
readonly replay: "idempotent";
|
|
2375
|
+
}>;
|
|
2376
|
+
Resend: AuthOperation<`${Id}/reset/resend`, Schema.Struct<{
|
|
2377
|
+
readonly requestId: Schema.brand<Schema.String, "effect-auth/ProofRequestId">;
|
|
2378
|
+
readonly binding: Schema.Codec<{
|
|
2379
|
+
readonly _tag: "Identifier";
|
|
2380
|
+
readonly flowId: string;
|
|
2381
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2382
|
+
readonly identifier: LoginIdentifier;
|
|
2383
|
+
} | {
|
|
2384
|
+
readonly _tag: "Subject";
|
|
2385
|
+
readonly flowId: string;
|
|
2386
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2387
|
+
readonly revision: {
|
|
2388
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
2389
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2390
|
+
readonly credentials: readonly {
|
|
2391
|
+
readonly credentialId: string;
|
|
2392
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2393
|
+
}[];
|
|
2394
|
+
};
|
|
2395
|
+
readonly identifier: LoginIdentifier;
|
|
2396
|
+
} | {
|
|
2397
|
+
readonly _tag: "IdentifierChange";
|
|
2398
|
+
readonly flowId: string;
|
|
2399
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2400
|
+
readonly revision: {
|
|
2401
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
2402
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2403
|
+
readonly credentials: readonly {
|
|
2404
|
+
readonly credentialId: string;
|
|
2405
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2406
|
+
}[];
|
|
2407
|
+
};
|
|
2408
|
+
readonly identifier: LoginIdentifier;
|
|
2409
|
+
}, {
|
|
2410
|
+
readonly _tag: "Identifier";
|
|
2411
|
+
readonly flowId: string;
|
|
2412
|
+
readonly contextDigest: string;
|
|
2413
|
+
readonly identifier: {
|
|
2414
|
+
readonly namespace: string;
|
|
2415
|
+
readonly value: string;
|
|
2416
|
+
};
|
|
2417
|
+
} | {
|
|
2418
|
+
readonly _tag: "Subject";
|
|
2419
|
+
readonly flowId: string;
|
|
2420
|
+
readonly contextDigest: string;
|
|
2421
|
+
readonly revision: {
|
|
2422
|
+
readonly subjectId: string;
|
|
2423
|
+
readonly securityRevision: string;
|
|
2424
|
+
readonly credentials: readonly {
|
|
2425
|
+
readonly credentialId: string;
|
|
2426
|
+
readonly revision: string;
|
|
2427
|
+
}[];
|
|
2428
|
+
};
|
|
2429
|
+
readonly identifier: {
|
|
2430
|
+
readonly namespace: string;
|
|
2431
|
+
readonly value: string;
|
|
2432
|
+
};
|
|
2433
|
+
} | {
|
|
2434
|
+
readonly _tag: "IdentifierChange";
|
|
2435
|
+
readonly flowId: string;
|
|
2436
|
+
readonly contextDigest: string;
|
|
2437
|
+
readonly revision: {
|
|
2438
|
+
readonly subjectId: string;
|
|
2439
|
+
readonly securityRevision: string;
|
|
2440
|
+
readonly credentials: readonly {
|
|
2441
|
+
readonly credentialId: string;
|
|
2442
|
+
readonly revision: string;
|
|
2443
|
+
}[];
|
|
2444
|
+
};
|
|
2445
|
+
readonly identifier: {
|
|
2446
|
+
readonly namespace: string;
|
|
2447
|
+
readonly value: string;
|
|
2448
|
+
};
|
|
2449
|
+
}, never, never>;
|
|
2450
|
+
readonly locale: Schema.String;
|
|
2451
|
+
readonly eligible: Schema.Boolean;
|
|
2452
|
+
readonly supersedes: Schema.brand<Schema.String, "effect-auth/ProofId">;
|
|
2453
|
+
}>, Schema.Struct<{
|
|
2454
|
+
readonly requestId: Schema.brand<Schema.String, "effect-auth/ProofRequestId">;
|
|
2455
|
+
readonly reference: Schema.Struct<{
|
|
2456
|
+
readonly proofId: Schema.brand<Schema.String, "effect-auth/ProofId">;
|
|
2457
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
2458
|
+
readonly keyId: Schema.String;
|
|
2459
|
+
}>;
|
|
2460
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, never, {
|
|
2461
|
+
readonly payload: Schema.Struct<{
|
|
2462
|
+
readonly requestId: Schema.brand<Schema.String, "effect-auth/ProofRequestId">;
|
|
2463
|
+
readonly binding: Schema.Codec<{
|
|
2464
|
+
readonly _tag: "Identifier";
|
|
2465
|
+
readonly flowId: string;
|
|
2466
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2467
|
+
readonly identifier: LoginIdentifier;
|
|
2468
|
+
} | {
|
|
2469
|
+
readonly _tag: "Subject";
|
|
2470
|
+
readonly flowId: string;
|
|
2471
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2472
|
+
readonly revision: {
|
|
2473
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
2474
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2475
|
+
readonly credentials: readonly {
|
|
2476
|
+
readonly credentialId: string;
|
|
2477
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2478
|
+
}[];
|
|
2479
|
+
};
|
|
2480
|
+
readonly identifier: LoginIdentifier;
|
|
2481
|
+
} | {
|
|
2482
|
+
readonly _tag: "IdentifierChange";
|
|
2483
|
+
readonly flowId: string;
|
|
2484
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2485
|
+
readonly revision: {
|
|
2486
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
2487
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2488
|
+
readonly credentials: readonly {
|
|
2489
|
+
readonly credentialId: string;
|
|
2490
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2491
|
+
}[];
|
|
2492
|
+
};
|
|
2493
|
+
readonly identifier: LoginIdentifier;
|
|
2494
|
+
}, {
|
|
2495
|
+
readonly _tag: "Identifier";
|
|
2496
|
+
readonly flowId: string;
|
|
2497
|
+
readonly contextDigest: string;
|
|
2498
|
+
readonly identifier: {
|
|
2499
|
+
readonly namespace: string;
|
|
2500
|
+
readonly value: string;
|
|
2501
|
+
};
|
|
2502
|
+
} | {
|
|
2503
|
+
readonly _tag: "Subject";
|
|
2504
|
+
readonly flowId: string;
|
|
2505
|
+
readonly contextDigest: string;
|
|
2506
|
+
readonly revision: {
|
|
2507
|
+
readonly subjectId: string;
|
|
2508
|
+
readonly securityRevision: string;
|
|
2509
|
+
readonly credentials: readonly {
|
|
2510
|
+
readonly credentialId: string;
|
|
2511
|
+
readonly revision: string;
|
|
2512
|
+
}[];
|
|
2513
|
+
};
|
|
2514
|
+
readonly identifier: {
|
|
2515
|
+
readonly namespace: string;
|
|
2516
|
+
readonly value: string;
|
|
2517
|
+
};
|
|
2518
|
+
} | {
|
|
2519
|
+
readonly _tag: "IdentifierChange";
|
|
2520
|
+
readonly flowId: string;
|
|
2521
|
+
readonly contextDigest: string;
|
|
2522
|
+
readonly revision: {
|
|
2523
|
+
readonly subjectId: string;
|
|
2524
|
+
readonly securityRevision: string;
|
|
2525
|
+
readonly credentials: readonly {
|
|
2526
|
+
readonly credentialId: string;
|
|
2527
|
+
readonly revision: string;
|
|
2528
|
+
}[];
|
|
2529
|
+
};
|
|
2530
|
+
readonly identifier: {
|
|
2531
|
+
readonly namespace: string;
|
|
2532
|
+
readonly value: string;
|
|
2533
|
+
};
|
|
2534
|
+
}, never, never>;
|
|
2535
|
+
readonly locale: Schema.String;
|
|
2536
|
+
readonly eligible: Schema.Boolean;
|
|
2537
|
+
readonly supersedes: Schema.brand<Schema.String, "effect-auth/ProofId">;
|
|
2538
|
+
}>;
|
|
2539
|
+
readonly success: Schema.Struct<{
|
|
2540
|
+
readonly requestId: Schema.brand<Schema.String, "effect-auth/ProofRequestId">;
|
|
2541
|
+
readonly reference: Schema.Struct<{
|
|
2542
|
+
readonly proofId: Schema.brand<Schema.String, "effect-auth/ProofId">;
|
|
2543
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
2544
|
+
readonly keyId: Schema.String;
|
|
2545
|
+
}>;
|
|
2546
|
+
}>;
|
|
2547
|
+
readonly error: Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>;
|
|
2548
|
+
readonly access: "system";
|
|
2549
|
+
readonly replay: "idempotent";
|
|
2550
|
+
}>;
|
|
2551
|
+
Attempt: AuthOperation<`${Id}/reset/attempt`, Schema.Struct<{
|
|
2552
|
+
readonly reference: Schema.Struct<{
|
|
2553
|
+
readonly proofId: Schema.brand<Schema.String, "effect-auth/ProofId">;
|
|
2554
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
2555
|
+
readonly keyId: Schema.String;
|
|
2556
|
+
}>;
|
|
2557
|
+
readonly binding: Schema.Codec<{
|
|
2558
|
+
readonly _tag: "Identifier";
|
|
2559
|
+
readonly flowId: string;
|
|
2560
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2561
|
+
readonly identifier: LoginIdentifier;
|
|
2562
|
+
} | {
|
|
2563
|
+
readonly _tag: "Subject";
|
|
2564
|
+
readonly flowId: string;
|
|
2565
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2566
|
+
readonly revision: {
|
|
2567
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
2568
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2569
|
+
readonly credentials: readonly {
|
|
2570
|
+
readonly credentialId: string;
|
|
2571
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2572
|
+
}[];
|
|
2573
|
+
};
|
|
2574
|
+
readonly identifier: LoginIdentifier;
|
|
2575
|
+
} | {
|
|
2576
|
+
readonly _tag: "IdentifierChange";
|
|
2577
|
+
readonly flowId: string;
|
|
2578
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2579
|
+
readonly revision: {
|
|
2580
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
2581
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2582
|
+
readonly credentials: readonly {
|
|
2583
|
+
readonly credentialId: string;
|
|
2584
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2585
|
+
}[];
|
|
2586
|
+
};
|
|
2587
|
+
readonly identifier: LoginIdentifier;
|
|
2588
|
+
}, {
|
|
2589
|
+
readonly _tag: "Identifier";
|
|
2590
|
+
readonly flowId: string;
|
|
2591
|
+
readonly contextDigest: string;
|
|
2592
|
+
readonly identifier: {
|
|
2593
|
+
readonly namespace: string;
|
|
2594
|
+
readonly value: string;
|
|
2595
|
+
};
|
|
2596
|
+
} | {
|
|
2597
|
+
readonly _tag: "Subject";
|
|
2598
|
+
readonly flowId: string;
|
|
2599
|
+
readonly contextDigest: string;
|
|
2600
|
+
readonly revision: {
|
|
2601
|
+
readonly subjectId: string;
|
|
2602
|
+
readonly securityRevision: string;
|
|
2603
|
+
readonly credentials: readonly {
|
|
2604
|
+
readonly credentialId: string;
|
|
2605
|
+
readonly revision: string;
|
|
2606
|
+
}[];
|
|
2607
|
+
};
|
|
2608
|
+
readonly identifier: {
|
|
2609
|
+
readonly namespace: string;
|
|
2610
|
+
readonly value: string;
|
|
2611
|
+
};
|
|
2612
|
+
} | {
|
|
2613
|
+
readonly _tag: "IdentifierChange";
|
|
2614
|
+
readonly flowId: string;
|
|
2615
|
+
readonly contextDigest: string;
|
|
2616
|
+
readonly revision: {
|
|
2617
|
+
readonly subjectId: string;
|
|
2618
|
+
readonly securityRevision: string;
|
|
2619
|
+
readonly credentials: readonly {
|
|
2620
|
+
readonly credentialId: string;
|
|
2621
|
+
readonly revision: string;
|
|
2622
|
+
}[];
|
|
2623
|
+
};
|
|
2624
|
+
readonly identifier: {
|
|
2625
|
+
readonly namespace: string;
|
|
2626
|
+
readonly value: string;
|
|
2627
|
+
};
|
|
2628
|
+
}, never, never>;
|
|
2629
|
+
readonly credential: Schema.RedactedFromValue<Schema.String>;
|
|
2630
|
+
}>, Schema.TaggedStruct<"Accepted", {
|
|
2631
|
+
readonly continuation: Schema.Struct<{
|
|
2632
|
+
readonly continuationId: Schema.brand<Schema.String, "effect-auth/ProofContinuationId">;
|
|
2633
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
2634
|
+
readonly expiresAtMillis: Schema.Int;
|
|
2635
|
+
}>;
|
|
2636
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, never, {
|
|
2637
|
+
readonly payload: Schema.Struct<{
|
|
2638
|
+
readonly reference: Schema.Struct<{
|
|
2639
|
+
readonly proofId: Schema.brand<Schema.String, "effect-auth/ProofId">;
|
|
2640
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
2641
|
+
readonly keyId: Schema.String;
|
|
2642
|
+
}>;
|
|
2643
|
+
readonly binding: Schema.Codec<{
|
|
2644
|
+
readonly _tag: "Identifier";
|
|
2645
|
+
readonly flowId: string;
|
|
2646
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2647
|
+
readonly identifier: LoginIdentifier;
|
|
2648
|
+
} | {
|
|
2649
|
+
readonly _tag: "Subject";
|
|
2650
|
+
readonly flowId: string;
|
|
2651
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2652
|
+
readonly revision: {
|
|
2653
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
2654
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2655
|
+
readonly credentials: readonly {
|
|
2656
|
+
readonly credentialId: string;
|
|
2657
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2658
|
+
}[];
|
|
2659
|
+
};
|
|
2660
|
+
readonly identifier: LoginIdentifier;
|
|
2661
|
+
} | {
|
|
2662
|
+
readonly _tag: "IdentifierChange";
|
|
2663
|
+
readonly flowId: string;
|
|
2664
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2665
|
+
readonly revision: {
|
|
2666
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
2667
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2668
|
+
readonly credentials: readonly {
|
|
2669
|
+
readonly credentialId: string;
|
|
2670
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2671
|
+
}[];
|
|
2672
|
+
};
|
|
2673
|
+
readonly identifier: LoginIdentifier;
|
|
2674
|
+
}, {
|
|
2675
|
+
readonly _tag: "Identifier";
|
|
2676
|
+
readonly flowId: string;
|
|
2677
|
+
readonly contextDigest: string;
|
|
2678
|
+
readonly identifier: {
|
|
2679
|
+
readonly namespace: string;
|
|
2680
|
+
readonly value: string;
|
|
2681
|
+
};
|
|
2682
|
+
} | {
|
|
2683
|
+
readonly _tag: "Subject";
|
|
2684
|
+
readonly flowId: string;
|
|
2685
|
+
readonly contextDigest: string;
|
|
2686
|
+
readonly revision: {
|
|
2687
|
+
readonly subjectId: string;
|
|
2688
|
+
readonly securityRevision: string;
|
|
2689
|
+
readonly credentials: readonly {
|
|
2690
|
+
readonly credentialId: string;
|
|
2691
|
+
readonly revision: string;
|
|
2692
|
+
}[];
|
|
2693
|
+
};
|
|
2694
|
+
readonly identifier: {
|
|
2695
|
+
readonly namespace: string;
|
|
2696
|
+
readonly value: string;
|
|
2697
|
+
};
|
|
2698
|
+
} | {
|
|
2699
|
+
readonly _tag: "IdentifierChange";
|
|
2700
|
+
readonly flowId: string;
|
|
2701
|
+
readonly contextDigest: string;
|
|
2702
|
+
readonly revision: {
|
|
2703
|
+
readonly subjectId: string;
|
|
2704
|
+
readonly securityRevision: string;
|
|
2705
|
+
readonly credentials: readonly {
|
|
2706
|
+
readonly credentialId: string;
|
|
2707
|
+
readonly revision: string;
|
|
2708
|
+
}[];
|
|
2709
|
+
};
|
|
2710
|
+
readonly identifier: {
|
|
2711
|
+
readonly namespace: string;
|
|
2712
|
+
readonly value: string;
|
|
2713
|
+
};
|
|
2714
|
+
}, never, never>;
|
|
2715
|
+
readonly credential: Schema.RedactedFromValue<Schema.String>;
|
|
2716
|
+
}>;
|
|
2717
|
+
readonly success: Schema.TaggedStruct<"Accepted", {
|
|
2718
|
+
readonly continuation: Schema.Struct<{
|
|
2719
|
+
readonly continuationId: Schema.brand<Schema.String, "effect-auth/ProofContinuationId">;
|
|
2720
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
2721
|
+
readonly expiresAtMillis: Schema.Int;
|
|
2722
|
+
}>;
|
|
2723
|
+
}>;
|
|
2724
|
+
readonly error: Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>;
|
|
2725
|
+
readonly access: "system";
|
|
2726
|
+
readonly replay: "single-use";
|
|
2727
|
+
readonly credentials: true;
|
|
2728
|
+
}>;
|
|
2729
|
+
Complete: AuthOperation<`${Id}/reset/complete`, Schema.Struct<{
|
|
2730
|
+
readonly continuationId: Schema.brand<Schema.String, "effect-auth/ProofContinuationId">;
|
|
2731
|
+
readonly binding: Schema.Codec<{
|
|
2732
|
+
readonly _tag: "Identifier";
|
|
2733
|
+
readonly flowId: string;
|
|
2734
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2735
|
+
readonly identifier: LoginIdentifier;
|
|
2736
|
+
} | {
|
|
2737
|
+
readonly _tag: "Subject";
|
|
2738
|
+
readonly flowId: string;
|
|
2739
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2740
|
+
readonly revision: {
|
|
2741
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
2742
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2743
|
+
readonly credentials: readonly {
|
|
2744
|
+
readonly credentialId: string;
|
|
2745
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2746
|
+
}[];
|
|
2747
|
+
};
|
|
2748
|
+
readonly identifier: LoginIdentifier;
|
|
2749
|
+
} | {
|
|
2750
|
+
readonly _tag: "IdentifierChange";
|
|
2751
|
+
readonly flowId: string;
|
|
2752
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2753
|
+
readonly revision: {
|
|
2754
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
2755
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2756
|
+
readonly credentials: readonly {
|
|
2757
|
+
readonly credentialId: string;
|
|
2758
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2759
|
+
}[];
|
|
2760
|
+
};
|
|
2761
|
+
readonly identifier: LoginIdentifier;
|
|
2762
|
+
}, {
|
|
2763
|
+
readonly _tag: "Identifier";
|
|
2764
|
+
readonly flowId: string;
|
|
2765
|
+
readonly contextDigest: string;
|
|
2766
|
+
readonly identifier: {
|
|
2767
|
+
readonly namespace: string;
|
|
2768
|
+
readonly value: string;
|
|
2769
|
+
};
|
|
2770
|
+
} | {
|
|
2771
|
+
readonly _tag: "Subject";
|
|
2772
|
+
readonly flowId: string;
|
|
2773
|
+
readonly contextDigest: string;
|
|
2774
|
+
readonly revision: {
|
|
2775
|
+
readonly subjectId: string;
|
|
2776
|
+
readonly securityRevision: string;
|
|
2777
|
+
readonly credentials: readonly {
|
|
2778
|
+
readonly credentialId: string;
|
|
2779
|
+
readonly revision: string;
|
|
2780
|
+
}[];
|
|
2781
|
+
};
|
|
2782
|
+
readonly identifier: {
|
|
2783
|
+
readonly namespace: string;
|
|
2784
|
+
readonly value: string;
|
|
2785
|
+
};
|
|
2786
|
+
} | {
|
|
2787
|
+
readonly _tag: "IdentifierChange";
|
|
2788
|
+
readonly flowId: string;
|
|
2789
|
+
readonly contextDigest: string;
|
|
2790
|
+
readonly revision: {
|
|
2791
|
+
readonly subjectId: string;
|
|
2792
|
+
readonly securityRevision: string;
|
|
2793
|
+
readonly credentials: readonly {
|
|
2794
|
+
readonly credentialId: string;
|
|
2795
|
+
readonly revision: string;
|
|
2796
|
+
}[];
|
|
2797
|
+
};
|
|
2798
|
+
readonly identifier: {
|
|
2799
|
+
readonly namespace: string;
|
|
2800
|
+
readonly value: string;
|
|
2801
|
+
};
|
|
2802
|
+
}, never, never>;
|
|
2803
|
+
readonly credential: Schema.RedactedFromValue<Schema.String>;
|
|
2804
|
+
}>, Schema.Void, Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, never, {
|
|
2805
|
+
readonly payload: Schema.Struct<{
|
|
2806
|
+
readonly continuationId: Schema.brand<Schema.String, "effect-auth/ProofContinuationId">;
|
|
2807
|
+
readonly binding: Schema.Codec<{
|
|
2808
|
+
readonly _tag: "Identifier";
|
|
2809
|
+
readonly flowId: string;
|
|
2810
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2811
|
+
readonly identifier: LoginIdentifier;
|
|
2812
|
+
} | {
|
|
2813
|
+
readonly _tag: "Subject";
|
|
2814
|
+
readonly flowId: string;
|
|
2815
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2816
|
+
readonly revision: {
|
|
2817
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
2818
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2819
|
+
readonly credentials: readonly {
|
|
2820
|
+
readonly credentialId: string;
|
|
2821
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2822
|
+
}[];
|
|
2823
|
+
};
|
|
2824
|
+
readonly identifier: LoginIdentifier;
|
|
2825
|
+
} | {
|
|
2826
|
+
readonly _tag: "IdentifierChange";
|
|
2827
|
+
readonly flowId: string;
|
|
2828
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2829
|
+
readonly revision: {
|
|
2830
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
2831
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2832
|
+
readonly credentials: readonly {
|
|
2833
|
+
readonly credentialId: string;
|
|
2834
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2835
|
+
}[];
|
|
2836
|
+
};
|
|
2837
|
+
readonly identifier: LoginIdentifier;
|
|
2838
|
+
}, {
|
|
2839
|
+
readonly _tag: "Identifier";
|
|
2840
|
+
readonly flowId: string;
|
|
2841
|
+
readonly contextDigest: string;
|
|
2842
|
+
readonly identifier: {
|
|
2843
|
+
readonly namespace: string;
|
|
2844
|
+
readonly value: string;
|
|
2845
|
+
};
|
|
2846
|
+
} | {
|
|
2847
|
+
readonly _tag: "Subject";
|
|
2848
|
+
readonly flowId: string;
|
|
2849
|
+
readonly contextDigest: string;
|
|
2850
|
+
readonly revision: {
|
|
2851
|
+
readonly subjectId: string;
|
|
2852
|
+
readonly securityRevision: string;
|
|
2853
|
+
readonly credentials: readonly {
|
|
2854
|
+
readonly credentialId: string;
|
|
2855
|
+
readonly revision: string;
|
|
2856
|
+
}[];
|
|
2857
|
+
};
|
|
2858
|
+
readonly identifier: {
|
|
2859
|
+
readonly namespace: string;
|
|
2860
|
+
readonly value: string;
|
|
2861
|
+
};
|
|
2862
|
+
} | {
|
|
2863
|
+
readonly _tag: "IdentifierChange";
|
|
2864
|
+
readonly flowId: string;
|
|
2865
|
+
readonly contextDigest: string;
|
|
2866
|
+
readonly revision: {
|
|
2867
|
+
readonly subjectId: string;
|
|
2868
|
+
readonly securityRevision: string;
|
|
2869
|
+
readonly credentials: readonly {
|
|
2870
|
+
readonly credentialId: string;
|
|
2871
|
+
readonly revision: string;
|
|
2872
|
+
}[];
|
|
2873
|
+
};
|
|
2874
|
+
readonly identifier: {
|
|
2875
|
+
readonly namespace: string;
|
|
2876
|
+
readonly value: string;
|
|
2877
|
+
};
|
|
2878
|
+
}, never, never>;
|
|
2879
|
+
readonly credential: Schema.RedactedFromValue<Schema.String>;
|
|
2880
|
+
}>;
|
|
2881
|
+
readonly success: Schema.Void;
|
|
2882
|
+
readonly error: Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>;
|
|
2883
|
+
readonly access: "system";
|
|
2884
|
+
readonly replay: "single-use";
|
|
2885
|
+
readonly credentials: true;
|
|
2886
|
+
}>;
|
|
2887
|
+
Cancel: AuthOperation<`${Id}/reset/cancel`, Schema.Struct<{
|
|
2888
|
+
readonly binding: Schema.Codec<{
|
|
2889
|
+
readonly _tag: "Identifier";
|
|
2890
|
+
readonly flowId: string;
|
|
2891
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2892
|
+
readonly identifier: LoginIdentifier;
|
|
2893
|
+
} | {
|
|
2894
|
+
readonly _tag: "Subject";
|
|
2895
|
+
readonly flowId: string;
|
|
2896
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2897
|
+
readonly revision: {
|
|
2898
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
2899
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2900
|
+
readonly credentials: readonly {
|
|
2901
|
+
readonly credentialId: string;
|
|
2902
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2903
|
+
}[];
|
|
2904
|
+
};
|
|
2905
|
+
readonly identifier: LoginIdentifier;
|
|
2906
|
+
} | {
|
|
2907
|
+
readonly _tag: "IdentifierChange";
|
|
2908
|
+
readonly flowId: string;
|
|
2909
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2910
|
+
readonly revision: {
|
|
2911
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
2912
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2913
|
+
readonly credentials: readonly {
|
|
2914
|
+
readonly credentialId: string;
|
|
2915
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2916
|
+
}[];
|
|
2917
|
+
};
|
|
2918
|
+
readonly identifier: LoginIdentifier;
|
|
2919
|
+
}, {
|
|
2920
|
+
readonly _tag: "Identifier";
|
|
2921
|
+
readonly flowId: string;
|
|
2922
|
+
readonly contextDigest: string;
|
|
2923
|
+
readonly identifier: {
|
|
2924
|
+
readonly namespace: string;
|
|
2925
|
+
readonly value: string;
|
|
2926
|
+
};
|
|
2927
|
+
} | {
|
|
2928
|
+
readonly _tag: "Subject";
|
|
2929
|
+
readonly flowId: string;
|
|
2930
|
+
readonly contextDigest: string;
|
|
2931
|
+
readonly revision: {
|
|
2932
|
+
readonly subjectId: string;
|
|
2933
|
+
readonly securityRevision: string;
|
|
2934
|
+
readonly credentials: readonly {
|
|
2935
|
+
readonly credentialId: string;
|
|
2936
|
+
readonly revision: string;
|
|
2937
|
+
}[];
|
|
2938
|
+
};
|
|
2939
|
+
readonly identifier: {
|
|
2940
|
+
readonly namespace: string;
|
|
2941
|
+
readonly value: string;
|
|
2942
|
+
};
|
|
2943
|
+
} | {
|
|
2944
|
+
readonly _tag: "IdentifierChange";
|
|
2945
|
+
readonly flowId: string;
|
|
2946
|
+
readonly contextDigest: string;
|
|
2947
|
+
readonly revision: {
|
|
2948
|
+
readonly subjectId: string;
|
|
2949
|
+
readonly securityRevision: string;
|
|
2950
|
+
readonly credentials: readonly {
|
|
2951
|
+
readonly credentialId: string;
|
|
2952
|
+
readonly revision: string;
|
|
2953
|
+
}[];
|
|
2954
|
+
};
|
|
2955
|
+
readonly identifier: {
|
|
2956
|
+
readonly namespace: string;
|
|
2957
|
+
readonly value: string;
|
|
2958
|
+
};
|
|
2959
|
+
}, never, never>;
|
|
2960
|
+
}>, Schema.Void, Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, never, {
|
|
2961
|
+
readonly payload: Schema.Struct<{
|
|
2962
|
+
readonly binding: Schema.Codec<{
|
|
2963
|
+
readonly _tag: "Identifier";
|
|
2964
|
+
readonly flowId: string;
|
|
2965
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2966
|
+
readonly identifier: LoginIdentifier;
|
|
2967
|
+
} | {
|
|
2968
|
+
readonly _tag: "Subject";
|
|
2969
|
+
readonly flowId: string;
|
|
2970
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2971
|
+
readonly revision: {
|
|
2972
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
2973
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2974
|
+
readonly credentials: readonly {
|
|
2975
|
+
readonly credentialId: string;
|
|
2976
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2977
|
+
}[];
|
|
2978
|
+
};
|
|
2979
|
+
readonly identifier: LoginIdentifier;
|
|
2980
|
+
} | {
|
|
2981
|
+
readonly _tag: "IdentifierChange";
|
|
2982
|
+
readonly flowId: string;
|
|
2983
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
2984
|
+
readonly revision: {
|
|
2985
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
2986
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2987
|
+
readonly credentials: readonly {
|
|
2988
|
+
readonly credentialId: string;
|
|
2989
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
2990
|
+
}[];
|
|
2991
|
+
};
|
|
2992
|
+
readonly identifier: LoginIdentifier;
|
|
2993
|
+
}, {
|
|
2994
|
+
readonly _tag: "Identifier";
|
|
2995
|
+
readonly flowId: string;
|
|
2996
|
+
readonly contextDigest: string;
|
|
2997
|
+
readonly identifier: {
|
|
2998
|
+
readonly namespace: string;
|
|
2999
|
+
readonly value: string;
|
|
3000
|
+
};
|
|
3001
|
+
} | {
|
|
3002
|
+
readonly _tag: "Subject";
|
|
3003
|
+
readonly flowId: string;
|
|
3004
|
+
readonly contextDigest: string;
|
|
3005
|
+
readonly revision: {
|
|
3006
|
+
readonly subjectId: string;
|
|
3007
|
+
readonly securityRevision: string;
|
|
3008
|
+
readonly credentials: readonly {
|
|
3009
|
+
readonly credentialId: string;
|
|
3010
|
+
readonly revision: string;
|
|
3011
|
+
}[];
|
|
3012
|
+
};
|
|
3013
|
+
readonly identifier: {
|
|
3014
|
+
readonly namespace: string;
|
|
3015
|
+
readonly value: string;
|
|
3016
|
+
};
|
|
3017
|
+
} | {
|
|
3018
|
+
readonly _tag: "IdentifierChange";
|
|
3019
|
+
readonly flowId: string;
|
|
3020
|
+
readonly contextDigest: string;
|
|
3021
|
+
readonly revision: {
|
|
3022
|
+
readonly subjectId: string;
|
|
3023
|
+
readonly securityRevision: string;
|
|
3024
|
+
readonly credentials: readonly {
|
|
3025
|
+
readonly credentialId: string;
|
|
3026
|
+
readonly revision: string;
|
|
3027
|
+
}[];
|
|
3028
|
+
};
|
|
3029
|
+
readonly identifier: {
|
|
3030
|
+
readonly namespace: string;
|
|
3031
|
+
readonly value: string;
|
|
3032
|
+
};
|
|
3033
|
+
}, never, never>;
|
|
3034
|
+
}>;
|
|
3035
|
+
readonly success: Schema.Void;
|
|
3036
|
+
readonly error: Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>;
|
|
3037
|
+
readonly access: "system";
|
|
3038
|
+
readonly replay: "idempotent";
|
|
3039
|
+
}>;
|
|
3040
|
+
Cleanup: AuthOperation<`${Id}/reset/cleanup`, Schema.Struct<{
|
|
3041
|
+
readonly limit: Schema.Int;
|
|
3042
|
+
}>, Schema.Struct<{
|
|
3043
|
+
readonly removed: Schema.Natural;
|
|
3044
|
+
readonly hasMore: Schema.Boolean;
|
|
3045
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, never, {
|
|
3046
|
+
readonly payload: Schema.Struct<{
|
|
3047
|
+
readonly limit: Schema.Int;
|
|
3048
|
+
}>;
|
|
3049
|
+
readonly success: Schema.Struct<{
|
|
3050
|
+
readonly removed: Schema.Natural;
|
|
3051
|
+
readonly hasMore: Schema.Boolean;
|
|
3052
|
+
}>;
|
|
3053
|
+
readonly error: Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>;
|
|
3054
|
+
readonly access: "system";
|
|
3055
|
+
readonly replay: "idempotent";
|
|
3056
|
+
}>;
|
|
3057
|
+
};
|
|
3058
|
+
group: import("effect/unstable/rpc/RpcGroup").RpcGroup<import("effect/unstable/rpc/Rpc").Rpc<`${Id}/reset/attempt`, Schema.Struct<{
|
|
3059
|
+
readonly reference: Schema.Struct<{
|
|
3060
|
+
readonly proofId: Schema.brand<Schema.String, "effect-auth/ProofId">;
|
|
3061
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
3062
|
+
readonly keyId: Schema.String;
|
|
3063
|
+
}>;
|
|
3064
|
+
readonly binding: Schema.Codec<{
|
|
3065
|
+
readonly _tag: "Identifier";
|
|
3066
|
+
readonly flowId: string;
|
|
3067
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
3068
|
+
readonly identifier: LoginIdentifier;
|
|
3069
|
+
} | {
|
|
3070
|
+
readonly _tag: "Subject";
|
|
3071
|
+
readonly flowId: string;
|
|
3072
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
3073
|
+
readonly revision: {
|
|
3074
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
3075
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
3076
|
+
readonly credentials: readonly {
|
|
3077
|
+
readonly credentialId: string;
|
|
3078
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
3079
|
+
}[];
|
|
3080
|
+
};
|
|
3081
|
+
readonly identifier: LoginIdentifier;
|
|
3082
|
+
} | {
|
|
3083
|
+
readonly _tag: "IdentifierChange";
|
|
3084
|
+
readonly flowId: string;
|
|
3085
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
3086
|
+
readonly revision: {
|
|
3087
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
3088
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
3089
|
+
readonly credentials: readonly {
|
|
3090
|
+
readonly credentialId: string;
|
|
3091
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
3092
|
+
}[];
|
|
3093
|
+
};
|
|
3094
|
+
readonly identifier: LoginIdentifier;
|
|
3095
|
+
}, {
|
|
3096
|
+
readonly _tag: "Identifier";
|
|
3097
|
+
readonly flowId: string;
|
|
3098
|
+
readonly contextDigest: string;
|
|
3099
|
+
readonly identifier: {
|
|
3100
|
+
readonly namespace: string;
|
|
3101
|
+
readonly value: string;
|
|
3102
|
+
};
|
|
3103
|
+
} | {
|
|
3104
|
+
readonly _tag: "Subject";
|
|
3105
|
+
readonly flowId: string;
|
|
3106
|
+
readonly contextDigest: string;
|
|
3107
|
+
readonly revision: {
|
|
3108
|
+
readonly subjectId: string;
|
|
3109
|
+
readonly securityRevision: string;
|
|
3110
|
+
readonly credentials: readonly {
|
|
3111
|
+
readonly credentialId: string;
|
|
3112
|
+
readonly revision: string;
|
|
3113
|
+
}[];
|
|
3114
|
+
};
|
|
3115
|
+
readonly identifier: {
|
|
3116
|
+
readonly namespace: string;
|
|
3117
|
+
readonly value: string;
|
|
3118
|
+
};
|
|
3119
|
+
} | {
|
|
3120
|
+
readonly _tag: "IdentifierChange";
|
|
3121
|
+
readonly flowId: string;
|
|
3122
|
+
readonly contextDigest: string;
|
|
3123
|
+
readonly revision: {
|
|
3124
|
+
readonly subjectId: string;
|
|
3125
|
+
readonly securityRevision: string;
|
|
3126
|
+
readonly credentials: readonly {
|
|
3127
|
+
readonly credentialId: string;
|
|
3128
|
+
readonly revision: string;
|
|
3129
|
+
}[];
|
|
3130
|
+
};
|
|
3131
|
+
readonly identifier: {
|
|
3132
|
+
readonly namespace: string;
|
|
3133
|
+
readonly value: string;
|
|
3134
|
+
};
|
|
3135
|
+
}, never, never>;
|
|
3136
|
+
readonly credential: Schema.RedactedFromValue<Schema.String>;
|
|
3137
|
+
}>, Schema.TaggedStruct<"Accepted", {
|
|
3138
|
+
readonly continuation: Schema.Struct<{
|
|
3139
|
+
readonly continuationId: Schema.brand<Schema.String, "effect-auth/ProofContinuationId">;
|
|
3140
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
3141
|
+
readonly expiresAtMillis: Schema.Int;
|
|
3142
|
+
}>;
|
|
3143
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/reset/cancel`, Schema.Struct<{
|
|
3144
|
+
readonly binding: Schema.Codec<{
|
|
3145
|
+
readonly _tag: "Identifier";
|
|
3146
|
+
readonly flowId: string;
|
|
3147
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
3148
|
+
readonly identifier: LoginIdentifier;
|
|
3149
|
+
} | {
|
|
3150
|
+
readonly _tag: "Subject";
|
|
3151
|
+
readonly flowId: string;
|
|
3152
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
3153
|
+
readonly revision: {
|
|
3154
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
3155
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
3156
|
+
readonly credentials: readonly {
|
|
3157
|
+
readonly credentialId: string;
|
|
3158
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
3159
|
+
}[];
|
|
3160
|
+
};
|
|
3161
|
+
readonly identifier: LoginIdentifier;
|
|
3162
|
+
} | {
|
|
3163
|
+
readonly _tag: "IdentifierChange";
|
|
3164
|
+
readonly flowId: string;
|
|
3165
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
3166
|
+
readonly revision: {
|
|
3167
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
3168
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
3169
|
+
readonly credentials: readonly {
|
|
3170
|
+
readonly credentialId: string;
|
|
3171
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
3172
|
+
}[];
|
|
3173
|
+
};
|
|
3174
|
+
readonly identifier: LoginIdentifier;
|
|
3175
|
+
}, {
|
|
3176
|
+
readonly _tag: "Identifier";
|
|
3177
|
+
readonly flowId: string;
|
|
3178
|
+
readonly contextDigest: string;
|
|
3179
|
+
readonly identifier: {
|
|
3180
|
+
readonly namespace: string;
|
|
3181
|
+
readonly value: string;
|
|
3182
|
+
};
|
|
3183
|
+
} | {
|
|
3184
|
+
readonly _tag: "Subject";
|
|
3185
|
+
readonly flowId: string;
|
|
3186
|
+
readonly contextDigest: string;
|
|
3187
|
+
readonly revision: {
|
|
3188
|
+
readonly subjectId: string;
|
|
3189
|
+
readonly securityRevision: string;
|
|
3190
|
+
readonly credentials: readonly {
|
|
3191
|
+
readonly credentialId: string;
|
|
3192
|
+
readonly revision: string;
|
|
3193
|
+
}[];
|
|
3194
|
+
};
|
|
3195
|
+
readonly identifier: {
|
|
3196
|
+
readonly namespace: string;
|
|
3197
|
+
readonly value: string;
|
|
3198
|
+
};
|
|
3199
|
+
} | {
|
|
3200
|
+
readonly _tag: "IdentifierChange";
|
|
3201
|
+
readonly flowId: string;
|
|
3202
|
+
readonly contextDigest: string;
|
|
3203
|
+
readonly revision: {
|
|
3204
|
+
readonly subjectId: string;
|
|
3205
|
+
readonly securityRevision: string;
|
|
3206
|
+
readonly credentials: readonly {
|
|
3207
|
+
readonly credentialId: string;
|
|
3208
|
+
readonly revision: string;
|
|
3209
|
+
}[];
|
|
3210
|
+
};
|
|
3211
|
+
readonly identifier: {
|
|
3212
|
+
readonly namespace: string;
|
|
3213
|
+
readonly value: string;
|
|
3214
|
+
};
|
|
3215
|
+
}, never, never>;
|
|
3216
|
+
}>, Schema.Void, Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/reset/cleanup`, Schema.Struct<{
|
|
3217
|
+
readonly limit: Schema.Int;
|
|
3218
|
+
}>, Schema.Struct<{
|
|
3219
|
+
readonly removed: Schema.Natural;
|
|
3220
|
+
readonly hasMore: Schema.Boolean;
|
|
3221
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/reset/complete`, Schema.Struct<{
|
|
3222
|
+
readonly continuationId: Schema.brand<Schema.String, "effect-auth/ProofContinuationId">;
|
|
3223
|
+
readonly binding: Schema.Codec<{
|
|
3224
|
+
readonly _tag: "Identifier";
|
|
3225
|
+
readonly flowId: string;
|
|
3226
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
3227
|
+
readonly identifier: LoginIdentifier;
|
|
3228
|
+
} | {
|
|
3229
|
+
readonly _tag: "Subject";
|
|
3230
|
+
readonly flowId: string;
|
|
3231
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
3232
|
+
readonly revision: {
|
|
3233
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
3234
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
3235
|
+
readonly credentials: readonly {
|
|
3236
|
+
readonly credentialId: string;
|
|
3237
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
3238
|
+
}[];
|
|
3239
|
+
};
|
|
3240
|
+
readonly identifier: LoginIdentifier;
|
|
3241
|
+
} | {
|
|
3242
|
+
readonly _tag: "IdentifierChange";
|
|
3243
|
+
readonly flowId: string;
|
|
3244
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
3245
|
+
readonly revision: {
|
|
3246
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
3247
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
3248
|
+
readonly credentials: readonly {
|
|
3249
|
+
readonly credentialId: string;
|
|
3250
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
3251
|
+
}[];
|
|
3252
|
+
};
|
|
3253
|
+
readonly identifier: LoginIdentifier;
|
|
3254
|
+
}, {
|
|
3255
|
+
readonly _tag: "Identifier";
|
|
3256
|
+
readonly flowId: string;
|
|
3257
|
+
readonly contextDigest: string;
|
|
3258
|
+
readonly identifier: {
|
|
3259
|
+
readonly namespace: string;
|
|
3260
|
+
readonly value: string;
|
|
3261
|
+
};
|
|
3262
|
+
} | {
|
|
3263
|
+
readonly _tag: "Subject";
|
|
3264
|
+
readonly flowId: string;
|
|
3265
|
+
readonly contextDigest: string;
|
|
3266
|
+
readonly revision: {
|
|
3267
|
+
readonly subjectId: string;
|
|
3268
|
+
readonly securityRevision: string;
|
|
3269
|
+
readonly credentials: readonly {
|
|
3270
|
+
readonly credentialId: string;
|
|
3271
|
+
readonly revision: string;
|
|
3272
|
+
}[];
|
|
3273
|
+
};
|
|
3274
|
+
readonly identifier: {
|
|
3275
|
+
readonly namespace: string;
|
|
3276
|
+
readonly value: string;
|
|
3277
|
+
};
|
|
3278
|
+
} | {
|
|
3279
|
+
readonly _tag: "IdentifierChange";
|
|
3280
|
+
readonly flowId: string;
|
|
3281
|
+
readonly contextDigest: string;
|
|
3282
|
+
readonly revision: {
|
|
3283
|
+
readonly subjectId: string;
|
|
3284
|
+
readonly securityRevision: string;
|
|
3285
|
+
readonly credentials: readonly {
|
|
3286
|
+
readonly credentialId: string;
|
|
3287
|
+
readonly revision: string;
|
|
3288
|
+
}[];
|
|
3289
|
+
};
|
|
3290
|
+
readonly identifier: {
|
|
3291
|
+
readonly namespace: string;
|
|
3292
|
+
readonly value: string;
|
|
3293
|
+
};
|
|
3294
|
+
}, never, never>;
|
|
3295
|
+
readonly credential: Schema.RedactedFromValue<Schema.String>;
|
|
3296
|
+
}>, Schema.Void, Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/reset/request`, Schema.Struct<{
|
|
3297
|
+
readonly requestId: Schema.brand<Schema.String, "effect-auth/ProofRequestId">;
|
|
3298
|
+
readonly binding: Schema.Codec<{
|
|
3299
|
+
readonly _tag: "Identifier";
|
|
3300
|
+
readonly flowId: string;
|
|
3301
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
3302
|
+
readonly identifier: LoginIdentifier;
|
|
3303
|
+
} | {
|
|
3304
|
+
readonly _tag: "Subject";
|
|
3305
|
+
readonly flowId: string;
|
|
3306
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
3307
|
+
readonly revision: {
|
|
3308
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
3309
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
3310
|
+
readonly credentials: readonly {
|
|
3311
|
+
readonly credentialId: string;
|
|
3312
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
3313
|
+
}[];
|
|
3314
|
+
};
|
|
3315
|
+
readonly identifier: LoginIdentifier;
|
|
3316
|
+
} | {
|
|
3317
|
+
readonly _tag: "IdentifierChange";
|
|
3318
|
+
readonly flowId: string;
|
|
3319
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
3320
|
+
readonly revision: {
|
|
3321
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
3322
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
3323
|
+
readonly credentials: readonly {
|
|
3324
|
+
readonly credentialId: string;
|
|
3325
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
3326
|
+
}[];
|
|
3327
|
+
};
|
|
3328
|
+
readonly identifier: LoginIdentifier;
|
|
3329
|
+
}, {
|
|
3330
|
+
readonly _tag: "Identifier";
|
|
3331
|
+
readonly flowId: string;
|
|
3332
|
+
readonly contextDigest: string;
|
|
3333
|
+
readonly identifier: {
|
|
3334
|
+
readonly namespace: string;
|
|
3335
|
+
readonly value: string;
|
|
3336
|
+
};
|
|
3337
|
+
} | {
|
|
3338
|
+
readonly _tag: "Subject";
|
|
3339
|
+
readonly flowId: string;
|
|
3340
|
+
readonly contextDigest: string;
|
|
3341
|
+
readonly revision: {
|
|
3342
|
+
readonly subjectId: string;
|
|
3343
|
+
readonly securityRevision: string;
|
|
3344
|
+
readonly credentials: readonly {
|
|
3345
|
+
readonly credentialId: string;
|
|
3346
|
+
readonly revision: string;
|
|
3347
|
+
}[];
|
|
3348
|
+
};
|
|
3349
|
+
readonly identifier: {
|
|
3350
|
+
readonly namespace: string;
|
|
3351
|
+
readonly value: string;
|
|
3352
|
+
};
|
|
3353
|
+
} | {
|
|
3354
|
+
readonly _tag: "IdentifierChange";
|
|
3355
|
+
readonly flowId: string;
|
|
3356
|
+
readonly contextDigest: string;
|
|
3357
|
+
readonly revision: {
|
|
3358
|
+
readonly subjectId: string;
|
|
3359
|
+
readonly securityRevision: string;
|
|
3360
|
+
readonly credentials: readonly {
|
|
3361
|
+
readonly credentialId: string;
|
|
3362
|
+
readonly revision: string;
|
|
3363
|
+
}[];
|
|
3364
|
+
};
|
|
3365
|
+
readonly identifier: {
|
|
3366
|
+
readonly namespace: string;
|
|
3367
|
+
readonly value: string;
|
|
3368
|
+
};
|
|
3369
|
+
}, never, never>;
|
|
3370
|
+
readonly locale: Schema.String;
|
|
3371
|
+
readonly eligible: Schema.Boolean;
|
|
3372
|
+
}>, Schema.Struct<{
|
|
3373
|
+
readonly requestId: Schema.brand<Schema.String, "effect-auth/ProofRequestId">;
|
|
3374
|
+
readonly reference: Schema.Struct<{
|
|
3375
|
+
readonly proofId: Schema.brand<Schema.String, "effect-auth/ProofId">;
|
|
3376
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
3377
|
+
readonly keyId: Schema.String;
|
|
3378
|
+
}>;
|
|
3379
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/reset/resend`, Schema.Struct<{
|
|
3380
|
+
readonly requestId: Schema.brand<Schema.String, "effect-auth/ProofRequestId">;
|
|
3381
|
+
readonly binding: Schema.Codec<{
|
|
3382
|
+
readonly _tag: "Identifier";
|
|
3383
|
+
readonly flowId: string;
|
|
3384
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
3385
|
+
readonly identifier: LoginIdentifier;
|
|
3386
|
+
} | {
|
|
3387
|
+
readonly _tag: "Subject";
|
|
3388
|
+
readonly flowId: string;
|
|
3389
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
3390
|
+
readonly revision: {
|
|
3391
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
3392
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
3393
|
+
readonly credentials: readonly {
|
|
3394
|
+
readonly credentialId: string;
|
|
3395
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
3396
|
+
}[];
|
|
3397
|
+
};
|
|
3398
|
+
readonly identifier: LoginIdentifier;
|
|
3399
|
+
} | {
|
|
3400
|
+
readonly _tag: "IdentifierChange";
|
|
3401
|
+
readonly flowId: string;
|
|
3402
|
+
readonly contextDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
3403
|
+
readonly revision: {
|
|
3404
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
3405
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
3406
|
+
readonly credentials: readonly {
|
|
3407
|
+
readonly credentialId: string;
|
|
3408
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
3409
|
+
}[];
|
|
3410
|
+
};
|
|
3411
|
+
readonly identifier: LoginIdentifier;
|
|
3412
|
+
}, {
|
|
3413
|
+
readonly _tag: "Identifier";
|
|
3414
|
+
readonly flowId: string;
|
|
3415
|
+
readonly contextDigest: string;
|
|
3416
|
+
readonly identifier: {
|
|
3417
|
+
readonly namespace: string;
|
|
3418
|
+
readonly value: string;
|
|
3419
|
+
};
|
|
3420
|
+
} | {
|
|
3421
|
+
readonly _tag: "Subject";
|
|
3422
|
+
readonly flowId: string;
|
|
3423
|
+
readonly contextDigest: string;
|
|
3424
|
+
readonly revision: {
|
|
3425
|
+
readonly subjectId: string;
|
|
3426
|
+
readonly securityRevision: string;
|
|
3427
|
+
readonly credentials: readonly {
|
|
3428
|
+
readonly credentialId: string;
|
|
3429
|
+
readonly revision: string;
|
|
3430
|
+
}[];
|
|
3431
|
+
};
|
|
3432
|
+
readonly identifier: {
|
|
3433
|
+
readonly namespace: string;
|
|
3434
|
+
readonly value: string;
|
|
3435
|
+
};
|
|
3436
|
+
} | {
|
|
3437
|
+
readonly _tag: "IdentifierChange";
|
|
3438
|
+
readonly flowId: string;
|
|
3439
|
+
readonly contextDigest: string;
|
|
3440
|
+
readonly revision: {
|
|
3441
|
+
readonly subjectId: string;
|
|
3442
|
+
readonly securityRevision: string;
|
|
3443
|
+
readonly credentials: readonly {
|
|
3444
|
+
readonly credentialId: string;
|
|
3445
|
+
readonly revision: string;
|
|
3446
|
+
}[];
|
|
3447
|
+
};
|
|
3448
|
+
readonly identifier: {
|
|
3449
|
+
readonly namespace: string;
|
|
3450
|
+
readonly value: string;
|
|
3451
|
+
};
|
|
3452
|
+
}, never, never>;
|
|
3453
|
+
readonly locale: Schema.String;
|
|
3454
|
+
readonly eligible: Schema.Boolean;
|
|
3455
|
+
readonly supersedes: Schema.brand<Schema.String, "effect-auth/ProofId">;
|
|
3456
|
+
}>, Schema.Struct<{
|
|
3457
|
+
readonly requestId: Schema.brand<Schema.String, "effect-auth/ProofRequestId">;
|
|
3458
|
+
readonly reference: Schema.Struct<{
|
|
3459
|
+
readonly proofId: Schema.brand<Schema.String, "effect-auth/ProofId">;
|
|
3460
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
3461
|
+
readonly keyId: Schema.String;
|
|
3462
|
+
}>;
|
|
3463
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never>>;
|
|
3464
|
+
}>;
|
|
3465
|
+
group: import("effect/unstable/rpc/RpcGroup").RpcGroup<import("effect/unstable/rpc/Rpc").Rpc<`${Id}/add-password`, Schema.Struct<{
|
|
3466
|
+
commandId: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordCommandId">;
|
|
3467
|
+
newPassword: Schema.RedactedFromValue<Schema.String>;
|
|
3468
|
+
actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
3469
|
+
}>, Schema.Struct<{
|
|
3470
|
+
readonly invalidation: Schema.Struct<{
|
|
3471
|
+
readonly trigger: Schema.Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
|
|
3472
|
+
readonly existingSessions: Schema.Literals<readonly ["immediate", "original-absolute-expiry"]>;
|
|
3473
|
+
readonly maximumExposureMillis: Schema.Natural;
|
|
3474
|
+
readonly oldAuthenticationEvidence: Schema.Literal<"rejected">;
|
|
3475
|
+
}>;
|
|
3476
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/change-password`, Schema.Struct<{
|
|
3477
|
+
readonly commandId: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordCommandId">;
|
|
3478
|
+
readonly newPassword: Schema.RedactedFromValue<Schema.String>;
|
|
3479
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
3480
|
+
readonly currentPassword: Schema.RedactedFromValue<Schema.String>;
|
|
3481
|
+
}>, Schema.Struct<{
|
|
3482
|
+
readonly invalidation: Schema.Struct<{
|
|
3483
|
+
readonly trigger: Schema.Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
|
|
3484
|
+
readonly existingSessions: Schema.Literals<readonly ["immediate", "original-absolute-expiry"]>;
|
|
3485
|
+
readonly maximumExposureMillis: Schema.Natural;
|
|
3486
|
+
readonly oldAuthenticationEvidence: Schema.Literal<"rejected">;
|
|
3487
|
+
}>;
|
|
3488
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/cleanup`, Schema.Struct<{
|
|
3489
|
+
readonly limit: Schema.Int;
|
|
3490
|
+
}>, Schema.Struct<{
|
|
3491
|
+
readonly removed: Schema.Natural;
|
|
3492
|
+
readonly hasMore: Schema.Boolean;
|
|
3493
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/complete-reset`, Schema.Struct<{
|
|
3494
|
+
readonly commandId: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordCommandId">;
|
|
3495
|
+
readonly newPassword: Schema.RedactedFromValue<Schema.String>;
|
|
3496
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
3497
|
+
readonly flowId: Schema.brand<Schema.NonEmptyString, "effect-auth/AuthenticationFlowId">;
|
|
3498
|
+
readonly email: Schema.compose<Schema.decodeTo<Schema.brand<Schema.String, "effect-auth/Email">, Schema.String, never, never>, Schema.String>;
|
|
3499
|
+
readonly continuationId: Schema.brand<Schema.String, "effect-auth/ProofContinuationId">;
|
|
3500
|
+
readonly credential: Schema.RedactedFromValue<Schema.String>;
|
|
3501
|
+
}>, Schema.Struct<{
|
|
3502
|
+
readonly invalidation: Schema.Struct<{
|
|
3503
|
+
readonly trigger: Schema.Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
|
|
3504
|
+
readonly existingSessions: Schema.Literals<readonly ["immediate", "original-absolute-expiry"]>;
|
|
3505
|
+
readonly maximumExposureMillis: Schema.Natural;
|
|
3506
|
+
readonly oldAuthenticationEvidence: Schema.Literal<"rejected">;
|
|
3507
|
+
}>;
|
|
3508
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/register`, Schema.Struct<{
|
|
3509
|
+
readonly requestId: Schema.brand<Schema.NonEmptyString, "effect-auth/PasswordCommandId">;
|
|
3510
|
+
readonly email: Schema.compose<Schema.decodeTo<Schema.brand<Schema.String, "effect-auth/Email">, Schema.String, never, never>, Schema.String>;
|
|
3511
|
+
readonly newPassword: Schema.RedactedFromValue<Schema.String>;
|
|
3512
|
+
readonly registration: Schema.Codec<Registration["Type"], Registration["Encoded"], Registration["DecodingServices"], Registration["EncodingServices"]>;
|
|
3513
|
+
}>, Schema.Union<readonly [Schema.TaggedStruct<"RegistrationAccepted", {}>, Schema.TaggedStruct<"ProvisioningPending", {
|
|
3514
|
+
readonly reference: Schema.NonEmptyString;
|
|
3515
|
+
}>]>, Schema.Union<readonly [Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/request-reset`, Schema.Struct<{
|
|
3516
|
+
readonly flowId: Schema.brand<Schema.NonEmptyString, "effect-auth/AuthenticationFlowId">;
|
|
3517
|
+
readonly email: Schema.compose<Schema.decodeTo<Schema.brand<Schema.String, "effect-auth/Email">, Schema.String, never, never>, Schema.String>;
|
|
3518
|
+
readonly requestId: Schema.brand<Schema.String, "effect-auth/ProofRequestId">;
|
|
3519
|
+
readonly locale: Schema.NonEmptyString;
|
|
3520
|
+
}>, Schema.Struct<{
|
|
3521
|
+
readonly requestId: Schema.brand<Schema.String, "effect-auth/ProofRequestId">;
|
|
3522
|
+
readonly reference: Schema.Struct<{
|
|
3523
|
+
readonly proofId: Schema.brand<Schema.String, "effect-auth/ProofId">;
|
|
3524
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
3525
|
+
readonly keyId: Schema.String;
|
|
3526
|
+
}>;
|
|
3527
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/sign-in`, Schema.Struct<{
|
|
3528
|
+
readonly email: Schema.compose<Schema.decodeTo<Schema.brand<Schema.String, "effect-auth/Email">, Schema.String, never, never>, Schema.String>;
|
|
3529
|
+
readonly password: Schema.RedactedFromValue<Schema.String>;
|
|
3530
|
+
readonly flowId: Schema.brand<Schema.NonEmptyString, "effect-auth/AuthenticationFlowId">;
|
|
3531
|
+
}>, Schema.Union<readonly [Schema.TaggedStruct<"Authenticated", {
|
|
3532
|
+
readonly session: Schema.Struct<{
|
|
3533
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "effect-auth/SessionId">;
|
|
3534
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
3535
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
3536
|
+
readonly assurance: typeof AuthenticationAssurance;
|
|
3537
|
+
readonly issuedAt: Schema.DateTimeUtcFromMillis;
|
|
3538
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
3539
|
+
readonly absoluteExpiresAt: Schema.DateTimeUtcFromMillis;
|
|
3540
|
+
readonly claims: Schema.Codec<Claims["Type"], Claims["Encoded"], Claims["DecodingServices"], Claims["EncodingServices"]>;
|
|
3541
|
+
}>;
|
|
3542
|
+
}>, Schema.TaggedStruct<"PendingAuthentication", {
|
|
3543
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
3544
|
+
}>]>, Schema.Union<readonly [Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/status`, Schema.Void, Schema.Struct<{
|
|
3545
|
+
readonly hasPassword: Schema.Boolean;
|
|
3546
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/verify-reset`, Schema.Struct<{
|
|
3547
|
+
readonly flowId: Schema.brand<Schema.NonEmptyString, "effect-auth/AuthenticationFlowId">;
|
|
3548
|
+
readonly email: Schema.compose<Schema.decodeTo<Schema.brand<Schema.String, "effect-auth/Email">, Schema.String, never, never>, Schema.String>;
|
|
3549
|
+
readonly reference: Schema.Struct<{
|
|
3550
|
+
readonly proofId: Schema.brand<Schema.String, "effect-auth/ProofId">;
|
|
3551
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
3552
|
+
readonly keyId: Schema.String;
|
|
3553
|
+
}>;
|
|
3554
|
+
readonly secret: Schema.RedactedFromValue<Schema.String>;
|
|
3555
|
+
}>, Schema.Struct<{
|
|
3556
|
+
readonly continuation: Schema.Struct<{
|
|
3557
|
+
readonly continuationId: Schema.brand<Schema.String, "effect-auth/ProofContinuationId">;
|
|
3558
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
3559
|
+
readonly expiresAtMillis: Schema.Int;
|
|
3560
|
+
}>;
|
|
3561
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [typeof PasswordRejected, typeof PasswordUnavailable, typeof PasswordActionRequired, typeof PasswordMethodUnsupported, typeof NewPasswordRejected, typeof PasswordCheckUnavailable, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never>>;
|
|
3562
|
+
}>;
|
|
3563
|
+
declare function makePasswordMethod<const Id extends string, const SessionId extends string, Claims extends Schema.Codec<unknown, unknown, unknown, unknown>, Registration extends Schema.Codec<unknown, unknown, unknown, unknown>>(moduleId: Id, options: Parameters<typeof makePasswordWithManagement<Id, SessionId, Claims, Registration>>[1]): ReturnType<typeof makePasswordWithManagement<Id, SessionId, Claims, Registration>>;
|
|
3564
|
+
declare function makePasswordMethod<const Id extends string, const SessionId extends string, Claims extends Schema.Codec<unknown, unknown, unknown, unknown>>(moduleId: Id, options: PasswordSignInOptions<SessionId, Claims>): ReturnType<typeof makePasswordSignIn<Id, SessionId, Claims>>;
|
|
3565
|
+
//#endregion
|
|
3566
|
+
export { MethodService, PasswordRegistrationDecision, makePasswordMethod };
|
|
3567
|
+
//# sourceMappingURL=module.d.mts.map
|