@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,2343 @@
|
|
|
1
|
+
import { ConsumeChallenge, ConsumeRegistration, NewChallenge, NewRegistration, PendingRegistration, SubjectId, TokenDigest, VerifiedEmail } from "./Schema.mjs";
|
|
2
|
+
import { AuthenticationAssurance } from "./operations/context.mjs";
|
|
3
|
+
import { AuthenticationEvidence, PendingConsumption, SecurityRevision, SessionCredentialVersion, SessionId } from "./sessions/models.mjs";
|
|
4
|
+
import { ExternalIdentity, IdentityConflict, IdentityUnavailable, LoginIdentifier, ProvisioningResult } from "./identity/models.mjs";
|
|
5
|
+
import { HookConfigurationError } from "./hooks/models.mjs";
|
|
6
|
+
import { LifecycleHooks } from "./hooks/LifecycleHooks.mjs";
|
|
7
|
+
import { PreparedCommit } from "./hooks/commit.mjs";
|
|
8
|
+
import { PrepareSessionCommit } from "./sessions/commit.mjs";
|
|
9
|
+
import { PendingAuthenticationInvalid, SessionConflict, SessionInvalid, SessionUnavailable, StaleAuthentication } from "./sessions/errors.mjs";
|
|
10
|
+
import { AuthenticationAuthority } from "./sessions/AuthenticationAuthority.mjs";
|
|
11
|
+
import { PendingAuthentication, PendingAuthenticationRecord } from "./sessions/PendingAuthentication.mjs";
|
|
12
|
+
import { RequestBindingFlowId } from "./operations/requestBindingModels.mjs";
|
|
13
|
+
import "./Operations.mjs";
|
|
14
|
+
import { SessionInvalidationWindow } from "./sessions/invalidation.mjs";
|
|
15
|
+
import { SessionRepository, SignedSessionValidity, StatefulSessionPersistence, StatefulSessionRecord } from "./sessions/persistence.mjs";
|
|
16
|
+
import { SessionStepUpPersistence } from "./sessions/SessionStepUpPersistence.mjs";
|
|
17
|
+
import "./Hooks.mjs";
|
|
18
|
+
import "./Sessions.mjs";
|
|
19
|
+
import { PasswordUnavailable } from "./password/methods/errors.mjs";
|
|
20
|
+
import { AuthStoreError, InvalidRegistration } from "./Errors.mjs";
|
|
21
|
+
import { ConsumeDecision } from "./auth/ConsumeDecision.mjs";
|
|
22
|
+
import { AuthStoreDecisions, ChallengeConsumeDecision } from "./internal/AuthStoreDecisions.mjs";
|
|
23
|
+
import { EmailOtpRejected, IssueChallengeError } from "./AuthStore.mjs";
|
|
24
|
+
import { EmailAddressDecision, EmailCredentialSnapshot } from "./email/models.mjs";
|
|
25
|
+
import { ProofAttemptDecision, ProofBinding, ProofCleanupResult, ProofCompletionDecision, ProofContinuationId, ProofDeliveryId, ProofDeliveryOutcome, ProofId, ProofPurpose, ProofVersion } from "./proofs/models.mjs";
|
|
26
|
+
import { SubjectProvisioningInput } from "./identity/SubjectProvisioner.mjs";
|
|
27
|
+
import { InvalidOAuthState } from "./oauth/errors.mjs";
|
|
28
|
+
import { OAuthProviderKey, OAuthState } from "./oauth/schema.mjs";
|
|
29
|
+
import { AuthStoreTables, AuthTables, DrizzleMappingError, ExternalIdentityTables, IdentityTables, OAuthStateTables, SubjectProvisioningTables } from "./drizzle/model.mjs";
|
|
30
|
+
import { EmailAddressMapping, EmailRegistrationMapping, EmailSignInMapping } from "./drizzle/email-model.mjs";
|
|
31
|
+
import { PasswordAttemptAdmission, PasswordAttemptDecision, PasswordAttemptId, PasswordCredentialSnapshot, PasswordMutationDecision } from "./password/methods/models.mjs";
|
|
32
|
+
import { ProofRequestConflict, ProofUnavailable } from "./proofs/errors.mjs";
|
|
33
|
+
import { ProofPolicy } from "./proofs/policy.mjs";
|
|
34
|
+
import { PrepareProofCommit, ProofCompletionInput, ProofDeliveryClaim, ProofDigest, ProofIssueDecision, ProofPersistence, ProofRecord } from "./proofs/ProofPersistence.mjs";
|
|
35
|
+
import { ProofCompletionPlan } from "./proofs/completion.mjs";
|
|
36
|
+
import "./Identity.mjs";
|
|
37
|
+
import "./Proofs.mjs";
|
|
38
|
+
import { EncodedPasswordHash } from "./password/models.mjs";
|
|
39
|
+
import { PasswordAttemptPolicy } from "./password/methods/policy.mjs";
|
|
40
|
+
import { PasswordMutationInput, PasswordPersistence, PreparePasswordCommit } from "./password/methods/PasswordPersistence.mjs";
|
|
41
|
+
import { PasswordPreparedPersistence } from "./password/methods/PasswordPreparedPersistence.mjs";
|
|
42
|
+
import { PasswordPersistenceMapping, PasswordRegistrationMapping } from "./drizzle/password-model.mjs";
|
|
43
|
+
import { ProofPersistenceMapping } from "./drizzle/proof-model.mjs";
|
|
44
|
+
import { PasswordPreparedPersistenceMapping, PasswordPreparedProofMapping } from "./drizzle/password-prepared-model.mjs";
|
|
45
|
+
import { AuthenticationAuthorityMapping, PendingAuthenticationMapping, SignedSessionValidityMapping, StatefulSessionMapping } from "./drizzle/session-model.mjs";
|
|
46
|
+
import { PasskeyConfigurationError } from "./passkey/errors.mjs";
|
|
47
|
+
import { PasskeyPersistence } from "./passkey/PasskeyPersistence.mjs";
|
|
48
|
+
import { PasskeyCredentialMapping, PasskeyCredentialServices, PasskeyEnrollmentContextMapping, PasskeyEnrollmentContextServices, PasskeyMappingSource, PasskeyPersistenceMapping, PasskeyPersistenceServices } from "./drizzle/passkey-model.mjs";
|
|
49
|
+
import { SessionStepUpMapping } from "./drizzle/step-up-model.mjs";
|
|
50
|
+
import { OAuthRegistrationIntent } from "./oauth/registrationModels.mjs";
|
|
51
|
+
import { OAuthUnavailable } from "./oauth/signInErrors.mjs";
|
|
52
|
+
import { OAuthClaim, OAuthClaimDecision, OAuthCleanupInput, OAuthCredentialSnapshot, OAuthIssueDecision, OAuthPendingFlow, OAuthSettlementDecision, OAuthVerifiedExternalIdentity } from "./oauth/signInModels.mjs";
|
|
53
|
+
import { OAuthSignInPersistence, PrepareOAuthCommit } from "./oauth/OAuthSignInPersistence.mjs";
|
|
54
|
+
import { OAuthAccountRevision, OAuthActionAuthorization, OAuthLinkAccess, OAuthLinkClaim, OAuthLinkOutcome, OAuthLinkPendingFlow } from "./oauth/accountsModels.mjs";
|
|
55
|
+
import { OAuthAccountsMapping, OAuthRegistrationAuthority, OAuthRegistrationIntentMapping, OAuthRegistrationMapping, OAuthSignInMapping } from "./drizzle/oauth-model.mjs";
|
|
56
|
+
import { OAuthConnectedAccess, OAuthConnectedActionAuthorization, OAuthConnectedClaim, OAuthConnectedDisconnectGrant, OAuthConnectedOutcome, OAuthConnectedPendingFlow, OAuthConnectedRefreshClaim, OAuthConnectedRefreshOutcome, OAuthConnectedRevocationJob, OAuthConnectedStoredGrant, OAuthConnectedTarget, OAuthConnectedUseAuthorization } from "./oauth/connectedModels.mjs";
|
|
57
|
+
import { OAuthConnectedMapping, OAuthConnectedRevocationMapping } from "./drizzle/oauth-connected-model.mjs";
|
|
58
|
+
import { PasskeyRegistrationCeremonyMapping, PasskeyRegistrationCeremonyServices } from "./drizzle/passkey-registration-ceremony-model.mjs";
|
|
59
|
+
import { EmailUnavailable } from "./email/errors.mjs";
|
|
60
|
+
import { EmailAddressMutation, EmailAddressPersistence, EmailAddressTarget, PrepareEmailCommit } from "./email/EmailAddressPersistence.mjs";
|
|
61
|
+
import "./Email.mjs";
|
|
62
|
+
import { EmailRegistrationAuthority } from "./drizzle/email-registration.mjs";
|
|
63
|
+
import { OAuthAccountsPersistence } from "./oauth/OAuthAccountsPersistence.mjs";
|
|
64
|
+
import { OAuthConnectedPersistence } from "./oauth/OAuthConnectedPersistence.mjs";
|
|
65
|
+
import { OAuthConnectedRevocationClaim, OAuthConnectedRevocations } from "./oauth/OAuthConnectedRevocations.mjs";
|
|
66
|
+
import { OAuthRegistrationIntents, OAuthRegistrationSettlement } from "./oauth/OAuthRegistrationIntents.mjs";
|
|
67
|
+
import { OAuthStateDecisions } from "./oauth/OAuthStateDecisions.mjs";
|
|
68
|
+
import "./OAuth.mjs";
|
|
69
|
+
import { OAuthCoordinatorError } from "./drizzle/oauth-target.mjs";
|
|
70
|
+
import "./Password.mjs";
|
|
71
|
+
import { PasswordRegistrationAuthority } from "./drizzle/password-registration.mjs";
|
|
72
|
+
import { passwordPreparedPersistenceLayer } from "./drizzle/password-prepared-target.mjs";
|
|
73
|
+
import { TotpConfigurationError } from "./totp/errors.mjs";
|
|
74
|
+
import { TotpPersistence } from "./totp/TotpPersistence.mjs";
|
|
75
|
+
import { TotpMapping, TotpMappingSource, TotpPersistenceServices } from "./drizzle/totp-model.mjs";
|
|
76
|
+
import { PasskeyManagementPersistence } from "./passkey/PasskeyManagementPersistence.mjs";
|
|
77
|
+
import { PasskeyManagementMapping, PasskeyManagementServices, PasskeyRegistrationMapping, PasskeyRegistrationServices, PasskeyRegistrationWriter } from "./drizzle/passkey-write-model.mjs";
|
|
78
|
+
import { PasskeyCoordinatorError } from "./drizzle/passkey-target.mjs";
|
|
79
|
+
import { PhoneConfigurationError } from "./phone/lifecycleModels.mjs";
|
|
80
|
+
import { PhoneAdmission } from "./phone/PhoneAdmission.mjs";
|
|
81
|
+
import { PhonePersistence } from "./phone/PhonePersistence.mjs";
|
|
82
|
+
import { PhoneSignInTargets } from "./phone/PhoneSignInTargets.mjs";
|
|
83
|
+
import { PhoneMapping, PhoneMappingSource, PhonePersistenceServices } from "./drizzle/phone-model.mjs";
|
|
84
|
+
import "./Drizzle.mjs";
|
|
85
|
+
import "./Totp.mjs";
|
|
86
|
+
import { SuppliedService } from "./drizzle/SuppliedService.mjs";
|
|
87
|
+
import { TotpCoordinatorError } from "./drizzle/totp-target.mjs";
|
|
88
|
+
import "./Passkey.mjs";
|
|
89
|
+
import "./PhoneOtp.mjs";
|
|
90
|
+
import { PhoneCoordinatorError } from "./drizzle/phone-target.mjs";
|
|
91
|
+
import { Context, Effect } from "effect";
|
|
92
|
+
import { AnyRelations } from "drizzle-orm";
|
|
93
|
+
import { SqlError } from "effect/unstable/sql/SqlError";
|
|
94
|
+
import { AnySQLiteTable } from "drizzle-orm/sqlite-core";
|
|
95
|
+
import { EffectSQLiteDoDatabase } from "drizzle-orm/effect-sqlite-do";
|
|
96
|
+
//#region src/DrizzleSqliteDo.d.ts
|
|
97
|
+
/**
|
|
98
|
+
* Email mutations must own their outer transactionSync. Arbitrary raw Drizzle
|
|
99
|
+
* nesting is not detectable; owner bodies and mapping allocators stay runSync-compatible.
|
|
100
|
+
*/
|
|
101
|
+
declare const coordinateEmailAddress: {
|
|
102
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, M extends AnySQLiteTable, NativeId, Out, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
103
|
+
readonly mapping: EmailAddressMapping<S, I, C, AC, M, NativeId>;
|
|
104
|
+
readonly proofMapping: ProofPersistenceMapping<any, any, any, any, any, any, any, any, any, any, any, any>;
|
|
105
|
+
readonly transaction?: never;
|
|
106
|
+
}, body: Effect.Effect<Out, E, NoInfer<EmailAddressPersistence>>): Effect.Effect<Out, DatabaseError | E | EmailUnavailable | HookConfigurationError | SqlError, DatabaseRequirements | LifecycleHooks>;
|
|
107
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, M extends AnySQLiteTable, NativeId, Out, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
108
|
+
readonly mapping: EmailAddressMapping<S, I, C, AC, M, NativeId>;
|
|
109
|
+
readonly proofMapping: ProofPersistenceMapping<any, any, any, any, any, any, any, any, any, any, any, any>;
|
|
110
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Parameters<Parameters<Database["transaction"]>[0]>[0]>, TxShape>;
|
|
111
|
+
}, body: Effect.Effect<Out, E, NoInfer<TxId | EmailAddressPersistence>>): Effect.Effect<Out, DatabaseError | E | EmailUnavailable | HookConfigurationError | SqlError, DatabaseRequirements | LifecycleHooks>;
|
|
112
|
+
}, coordinateEmailRegistration: {
|
|
113
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, TargetId, Registration, S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, Rq extends AnySQLiteTable, NativeId, Out, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
114
|
+
readonly mapping: EmailRegistrationMapping<NoInfer<Registration>, S, I, C, AC, Rq, NativeId>;
|
|
115
|
+
readonly proofMapping: ProofPersistenceMapping<any, any, any, any, any, any, any, any, any, any, any, any>;
|
|
116
|
+
readonly target: SuppliedService<TargetId, EmailRegistrationAuthority<Registration>>;
|
|
117
|
+
readonly transaction?: never;
|
|
118
|
+
}, body: Effect.Effect<Out, E, NoInfer<TargetId>>): Effect.Effect<Out, DatabaseError | E | EmailUnavailable | HookConfigurationError | SqlError, DatabaseRequirements | LifecycleHooks>;
|
|
119
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, TargetId, Registration, S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, Rq extends AnySQLiteTable, NativeId, Out, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
120
|
+
readonly mapping: EmailRegistrationMapping<NoInfer<Registration>, S, I, C, AC, Rq, NativeId>;
|
|
121
|
+
readonly proofMapping: ProofPersistenceMapping<any, any, any, any, any, any, any, any, any, any, any, any>;
|
|
122
|
+
readonly target: SuppliedService<TargetId, EmailRegistrationAuthority<Registration>>;
|
|
123
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Parameters<Parameters<Database["transaction"]>[0]>[0]>, TxShape>;
|
|
124
|
+
}, body: Effect.Effect<Out, E, NoInfer<TargetId | TxId>>): Effect.Effect<Out, DatabaseError | E | EmailUnavailable | HookConfigurationError | SqlError, DatabaseRequirements | LifecycleHooks>;
|
|
125
|
+
}, makeEmailAddressServices: <S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, M extends AnySQLiteTable, NativeId>(database: EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, mapping: EmailAddressMapping<S, I, C, AC, M, NativeId>, proofMapping: ProofPersistenceMapping<any, any, any, any, any, any, any, any, any, any, any, any>) => Effect.Effect<{
|
|
126
|
+
emailAddressPersistence: {
|
|
127
|
+
readonly target: (input: {
|
|
128
|
+
readonly moduleId: string;
|
|
129
|
+
readonly subjectId: SubjectId;
|
|
130
|
+
readonly target: LoginIdentifier;
|
|
131
|
+
readonly sourceCredentialId?: string;
|
|
132
|
+
}) => Effect.Effect<EmailAddressTarget, EmailUnavailable>;
|
|
133
|
+
readonly checkCompletion: (input: ProofCompletionInput) => Effect.Effect<boolean, EmailUnavailable>;
|
|
134
|
+
readonly verifyWithProof: <A>(input: EmailAddressMutation, prepare: PrepareEmailCommit<EmailAddressDecision, A>) => Effect.Effect<PreparedCommit<A>, EmailUnavailable>;
|
|
135
|
+
readonly changeWithProof: <A>(input: EmailAddressMutation, prepare: PrepareEmailCommit<EmailAddressDecision, A>) => Effect.Effect<PreparedCommit<A>, EmailUnavailable>;
|
|
136
|
+
readonly cleanup: <A>(input: {
|
|
137
|
+
readonly moduleId: string;
|
|
138
|
+
readonly limit: number;
|
|
139
|
+
}, prepare: PrepareEmailCommit<{
|
|
140
|
+
readonly removed: number;
|
|
141
|
+
readonly hasMore: boolean;
|
|
142
|
+
}, A>) => Effect.Effect<PreparedCommit<A>, EmailUnavailable>;
|
|
143
|
+
};
|
|
144
|
+
}, never, LifecycleHooks>, makeEmailRegistrationServices: <Registration, S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, Rq extends AnySQLiteTable, NativeId>(database: EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, mapping: EmailRegistrationMapping<Registration, S, I, C, AC, Rq, NativeId>, proofMapping: ProofPersistenceMapping<any, any, any, any, any, any, any, any, any, any, any, any>) => Effect.Effect<{
|
|
145
|
+
registrationAuthority: EmailRegistrationAuthority<Registration>;
|
|
146
|
+
}, never, LifecycleHooks>, makeEmailSignInServices: <S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, NativeId>(database: EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, mapping: EmailSignInMapping<S, I, C, NativeId>) => Effect.Effect<{
|
|
147
|
+
emailSignInTargets: {
|
|
148
|
+
readonly lookup: (input: {
|
|
149
|
+
readonly moduleId: string;
|
|
150
|
+
readonly identifier: LoginIdentifier;
|
|
151
|
+
}) => Effect.Effect<import("effect/Option").Option<EmailCredentialSnapshot>, EmailUnavailable>;
|
|
152
|
+
};
|
|
153
|
+
}, never, never>;
|
|
154
|
+
/**
|
|
155
|
+
* Password mutations and registration must own their outer transactionSync.
|
|
156
|
+
* Arbitrary raw Drizzle nesting is not detectable; owner bodies must remain
|
|
157
|
+
* runSync-compatible. Detectable Effect commit scopes are rejected pre-write.
|
|
158
|
+
*/
|
|
159
|
+
declare const coordinatePasswordPersistence: {
|
|
160
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, A extends AnySQLiteTable, RS extends AnySQLiteTable, CE extends AnySQLiteTable, M extends AnySQLiteTable, NativeId, PM extends ProofPersistenceMapping<any, any, any, any, any, any, any, any, any, any, any, any> | undefined, Out, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
161
|
+
readonly mapping: PasswordPersistenceMapping<S, I, C, AC, A, RS, CE, M, NativeId>;
|
|
162
|
+
readonly proofMapping?: PM | undefined;
|
|
163
|
+
readonly transaction?: never;
|
|
164
|
+
}, body: Effect.Effect<Out, E, NoInfer<PasswordPersistence>>): Effect.Effect<Out, DatabaseError | E | HookConfigurationError | PasswordUnavailable | SqlError, DatabaseRequirements | LifecycleHooks>;
|
|
165
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, A extends AnySQLiteTable, RS extends AnySQLiteTable, CE extends AnySQLiteTable, M extends AnySQLiteTable, NativeId, PM extends ProofPersistenceMapping<any, any, any, any, any, any, any, any, any, any, any, any> | undefined, Out, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
166
|
+
readonly mapping: PasswordPersistenceMapping<S, I, C, AC, A, RS, CE, M, NativeId>;
|
|
167
|
+
readonly proofMapping?: PM | undefined;
|
|
168
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Parameters<Parameters<Database["transaction"]>[0]>[0]>, TxShape>;
|
|
169
|
+
}, body: Effect.Effect<Out, E, NoInfer<TxId | PasswordPersistence>>): Effect.Effect<Out, DatabaseError | E | HookConfigurationError | PasswordUnavailable | SqlError, DatabaseRequirements | LifecycleHooks>;
|
|
170
|
+
}, coordinatePasswordRegistration: {
|
|
171
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, TargetId, Registration, S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, Rq extends AnySQLiteTable, NativeId, Out, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
172
|
+
readonly mapping: PasswordRegistrationMapping<NoInfer<Registration>, S, I, C, AC, Rq, NativeId>;
|
|
173
|
+
readonly target: SuppliedService<TargetId, PasswordRegistrationAuthority<Registration>>;
|
|
174
|
+
readonly transaction?: never;
|
|
175
|
+
}, body: Effect.Effect<Out, E, NoInfer<TargetId>>): Effect.Effect<Out, DatabaseError | E | HookConfigurationError | PasswordUnavailable | SqlError, DatabaseRequirements | LifecycleHooks>;
|
|
176
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, TargetId, Registration, S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, Rq extends AnySQLiteTable, NativeId, Out, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
177
|
+
readonly mapping: PasswordRegistrationMapping<NoInfer<Registration>, S, I, C, AC, Rq, NativeId>;
|
|
178
|
+
readonly target: SuppliedService<TargetId, PasswordRegistrationAuthority<Registration>>;
|
|
179
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Parameters<Parameters<Database["transaction"]>[0]>[0]>, TxShape>;
|
|
180
|
+
}, body: Effect.Effect<Out, E, NoInfer<TargetId | TxId>>): Effect.Effect<Out, DatabaseError | E | HookConfigurationError | PasswordUnavailable | SqlError, DatabaseRequirements | LifecycleHooks>;
|
|
181
|
+
}, makePasswordPersistenceServices: <S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, A extends AnySQLiteTable, RS extends AnySQLiteTable, CE extends AnySQLiteTable, M extends AnySQLiteTable, NativeId>(database: EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, mapping: PasswordPersistenceMapping<S, I, C, AC, A, RS, CE, M, NativeId>, proofMapping?: ProofPersistenceMapping<any, any, any, any, any, any, any, any, any, any, any, any>) => Effect.Effect<{
|
|
182
|
+
passwordPersistence: {
|
|
183
|
+
readonly admitAttempt: <A_1>(input: {
|
|
184
|
+
readonly moduleId: string;
|
|
185
|
+
readonly action: "sign-in" | "change";
|
|
186
|
+
readonly identifier: LoginIdentifier;
|
|
187
|
+
readonly subjectId?: SubjectId;
|
|
188
|
+
readonly policy: PasswordAttemptPolicy;
|
|
189
|
+
}, prepare: PreparePasswordCommit<PasswordAttemptAdmission, A_1>) => Effect.Effect<PreparedCommit<A_1>, PasswordUnavailable>;
|
|
190
|
+
readonly settleAttempt: <A_1>(input: {
|
|
191
|
+
readonly moduleId: string;
|
|
192
|
+
readonly attemptId: PasswordAttemptId;
|
|
193
|
+
readonly captured?: PasswordCredentialSnapshot;
|
|
194
|
+
readonly outcome: PasswordAttemptDecision;
|
|
195
|
+
readonly rehash?: {
|
|
196
|
+
readonly expectedVersion: SecurityRevision;
|
|
197
|
+
readonly expectedVerifier: import("effect/Redacted").Redacted<EncodedPasswordHash>;
|
|
198
|
+
readonly nextVerifier: import("effect/Redacted").Redacted<EncodedPasswordHash>;
|
|
199
|
+
};
|
|
200
|
+
}, prepare: PreparePasswordCommit<PasswordAttemptDecision, A_1>) => Effect.Effect<PreparedCommit<A_1>, PasswordUnavailable>;
|
|
201
|
+
readonly readForSubject: (input: {
|
|
202
|
+
readonly moduleId: string;
|
|
203
|
+
readonly subjectId: SubjectId;
|
|
204
|
+
}) => Effect.Effect<import("effect/Option").Option<PasswordCredentialSnapshot>, PasswordUnavailable>;
|
|
205
|
+
readonly recoveryTarget: (input: {
|
|
206
|
+
readonly moduleId: string;
|
|
207
|
+
readonly identifier: LoginIdentifier;
|
|
208
|
+
}) => Effect.Effect<import("effect/Option").Option<PasswordCredentialSnapshot>, PasswordUnavailable>;
|
|
209
|
+
readonly addIfAbsent: <A_1>(input: PasswordMutationInput, prepare: PreparePasswordCommit<PasswordMutationDecision, A_1>) => Effect.Effect<PreparedCommit<A_1>, PasswordUnavailable>;
|
|
210
|
+
readonly replaceIfCurrent: <A_1>(input: PasswordMutationInput, prepare: PreparePasswordCommit<PasswordMutationDecision, A_1>) => Effect.Effect<PreparedCommit<A_1>, PasswordUnavailable>;
|
|
211
|
+
readonly checkReset: (input: ProofCompletionInput) => Effect.Effect<boolean, PasswordUnavailable>;
|
|
212
|
+
readonly resetWithProof: <A_1>(input: PasswordMutationInput & {
|
|
213
|
+
readonly completion: ProofCompletionPlan;
|
|
214
|
+
}, prepare: PreparePasswordCommit<PasswordMutationDecision, A_1>) => Effect.Effect<PreparedCommit<A_1>, PasswordUnavailable>;
|
|
215
|
+
readonly cleanupAttempts: <A_1>(input: {
|
|
216
|
+
readonly moduleId: string;
|
|
217
|
+
readonly limit: number;
|
|
218
|
+
}, prepare: PreparePasswordCommit<{
|
|
219
|
+
readonly removed: number;
|
|
220
|
+
readonly hasMore: boolean;
|
|
221
|
+
}, A_1>) => Effect.Effect<PreparedCommit<A_1>, PasswordUnavailable>;
|
|
222
|
+
};
|
|
223
|
+
}, never, LifecycleHooks>, makePasswordRegistrationServices: <Registration, S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, Rq extends AnySQLiteTable, NativeId>(database: EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, mapping: PasswordRegistrationMapping<Registration, S, I, C, AC, Rq, NativeId>) => Effect.Effect<{
|
|
224
|
+
registrationAuthority: PasswordRegistrationAuthority<Registration>;
|
|
225
|
+
}, never, LifecycleHooks>;
|
|
226
|
+
/**
|
|
227
|
+
* Proof mutations and coordinateProofPersistence must own their outermost
|
|
228
|
+
* transactionSync call. The installed driver cannot detect an arbitrary raw
|
|
229
|
+
* Drizzle outer transaction; calling either boundary from one is unsupported.
|
|
230
|
+
* The owner body must remain runSync-compatible.
|
|
231
|
+
*/
|
|
232
|
+
declare const coordinateProofPersistence: {
|
|
233
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, Rq extends AnySQLiteTable, S extends AnySQLiteTable, G extends AnySQLiteTable, Cn extends AnySQLiteTable, Rs extends AnySQLiteTable, Aev extends AnySQLiteTable, F extends AnySQLiteTable, C extends AnySQLiteTable, Sub extends AnySQLiteTable, I extends AnySQLiteTable, Cr extends AnySQLiteTable, NativeId, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
234
|
+
readonly mapping: ProofPersistenceMapping<Rq, S, G, Cn, Rs, Aev, F, C, Sub, I, Cr, NativeId>;
|
|
235
|
+
readonly transaction?: never;
|
|
236
|
+
}, body: Effect.Effect<A, E, NoInfer<ProofPersistence>>): Effect.Effect<A, DatabaseError | E | HookConfigurationError | ProofUnavailable | SqlError, DatabaseRequirements | LifecycleHooks>;
|
|
237
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, Rq extends AnySQLiteTable, S extends AnySQLiteTable, G extends AnySQLiteTable, Cn extends AnySQLiteTable, Rs extends AnySQLiteTable, Aev extends AnySQLiteTable, F extends AnySQLiteTable, C extends AnySQLiteTable, Sub extends AnySQLiteTable, I extends AnySQLiteTable, Cr extends AnySQLiteTable, NativeId, A, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
238
|
+
readonly mapping: ProofPersistenceMapping<Rq, S, G, Cn, Rs, Aev, F, C, Sub, I, Cr, NativeId>;
|
|
239
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Parameters<Parameters<Database["transaction"]>[0]>[0]>, TxShape>;
|
|
240
|
+
}, body: Effect.Effect<A, E, NoInfer<TxId | ProofPersistence>>): Effect.Effect<A, DatabaseError | E | HookConfigurationError | ProofUnavailable | SqlError, DatabaseRequirements | LifecycleHooks>;
|
|
241
|
+
}, makeProofPersistenceServices: <Rq extends AnySQLiteTable, S extends AnySQLiteTable, G extends AnySQLiteTable, Cn extends AnySQLiteTable, Rs extends AnySQLiteTable, A extends AnySQLiteTable, F extends AnySQLiteTable, C extends AnySQLiteTable, Sub extends AnySQLiteTable, I extends AnySQLiteTable, Cr extends AnySQLiteTable, NativeId>(database: EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, mapping: ProofPersistenceMapping<Rq, S, G, Cn, Rs, A, F, C, Sub, I, Cr, NativeId>) => Effect.Effect<{
|
|
242
|
+
proofPersistence: {
|
|
243
|
+
readonly issue: <A_1>(input: {
|
|
244
|
+
readonly record: ProofRecord;
|
|
245
|
+
readonly policy: ProofPolicy;
|
|
246
|
+
readonly eligible: boolean;
|
|
247
|
+
readonly supersedes?: ProofId;
|
|
248
|
+
}, prepare: PrepareProofCommit<ProofIssueDecision, A_1>) => Effect.Effect<PreparedCommit<A_1>, ProofRequestConflict | ProofUnavailable>;
|
|
249
|
+
readonly attempt: <A_1>(input: {
|
|
250
|
+
readonly moduleId: string;
|
|
251
|
+
readonly purpose: ProofPurpose;
|
|
252
|
+
readonly proofId: ProofId;
|
|
253
|
+
readonly binding: ProofBinding;
|
|
254
|
+
readonly candidate?: ProofDigest;
|
|
255
|
+
readonly continuationId: ProofContinuationId;
|
|
256
|
+
readonly continuationDigest: TokenDigest;
|
|
257
|
+
readonly nowMillis: number;
|
|
258
|
+
readonly policy: ProofPolicy;
|
|
259
|
+
}, prepare: PrepareProofCommit<ProofAttemptDecision, A_1>) => Effect.Effect<PreparedCommit<A_1>, ProofUnavailable>;
|
|
260
|
+
readonly complete: <A_1>(input: ProofCompletionInput, prepare: PrepareProofCommit<ProofCompletionDecision, A_1>) => Effect.Effect<PreparedCommit<A_1>, ProofUnavailable>;
|
|
261
|
+
readonly claimDelivery: <A_1>(input: {
|
|
262
|
+
readonly moduleId: string;
|
|
263
|
+
readonly proofId: ProofId;
|
|
264
|
+
readonly version: ProofVersion;
|
|
265
|
+
readonly deliveryId: ProofDeliveryId;
|
|
266
|
+
readonly nowMillis: number;
|
|
267
|
+
readonly policy: ProofPolicy;
|
|
268
|
+
readonly allowAmbiguousRetry: boolean;
|
|
269
|
+
}, prepare: PrepareProofCommit<ProofDeliveryClaim, A_1>) => Effect.Effect<PreparedCommit<A_1>, ProofUnavailable>;
|
|
270
|
+
readonly settleDelivery: <A_1>(input: {
|
|
271
|
+
readonly moduleId: string;
|
|
272
|
+
readonly proofId: ProofId;
|
|
273
|
+
readonly version: ProofVersion;
|
|
274
|
+
readonly deliveryId: ProofDeliveryId;
|
|
275
|
+
readonly claimVersion: ProofVersion;
|
|
276
|
+
readonly outcome: ProofDeliveryOutcome;
|
|
277
|
+
readonly nowMillis: number;
|
|
278
|
+
}, prepare: PrepareProofCommit<void, A_1>) => Effect.Effect<PreparedCommit<A_1>, ProofUnavailable>;
|
|
279
|
+
readonly cancel: <A_1>(input: {
|
|
280
|
+
readonly moduleId: string;
|
|
281
|
+
readonly purpose: ProofPurpose;
|
|
282
|
+
readonly binding: ProofBinding;
|
|
283
|
+
readonly nowMillis: number;
|
|
284
|
+
}, prepare: PrepareProofCommit<void, A_1>) => Effect.Effect<PreparedCommit<A_1>, ProofUnavailable>;
|
|
285
|
+
readonly cleanup: <A_1>(input: {
|
|
286
|
+
readonly moduleId: string;
|
|
287
|
+
readonly nowMillis: number;
|
|
288
|
+
readonly limit: number;
|
|
289
|
+
}, prepare: PrepareProofCommit<ProofCleanupResult, A_1>) => Effect.Effect<PreparedCommit<A_1>, ProofUnavailable>;
|
|
290
|
+
};
|
|
291
|
+
}, never, LifecycleHooks>;
|
|
292
|
+
/**
|
|
293
|
+
* Session mutation methods and coordinate* functions must own their outermost
|
|
294
|
+
* transactionSync call. The installed Drizzle driver exposes no context marker
|
|
295
|
+
* for an arbitrary raw outer database.transaction call, so invoking either
|
|
296
|
+
* boundary from one is unsupported and cannot be detected. Detectable Effect
|
|
297
|
+
* commit scopes are rejected before writes.
|
|
298
|
+
*/
|
|
299
|
+
declare const coordinateAuthenticationAuthority: {
|
|
300
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, Claims, S extends AnySQLiteTable, C extends AnySQLiteTable, F extends AnySQLiteTable, P extends AnySQLiteTable, NativeId, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
301
|
+
readonly mapping: AuthenticationAuthorityMapping<Claims, S, C, F, P, NativeId>;
|
|
302
|
+
readonly transaction?: never;
|
|
303
|
+
}, body: Effect.Effect<A, E, NoInfer<AuthenticationAuthority>>): Effect.Effect<A, DatabaseError | E | HookConfigurationError | SessionUnavailable | SqlError, DatabaseRequirements | LifecycleHooks>;
|
|
304
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, Claims, S extends AnySQLiteTable, C extends AnySQLiteTable, F extends AnySQLiteTable, P extends AnySQLiteTable, NativeId, A, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
305
|
+
readonly mapping: AuthenticationAuthorityMapping<Claims, S, C, F, P, NativeId>;
|
|
306
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Parameters<Parameters<Database["transaction"]>[0]>[0]>, TxShape>;
|
|
307
|
+
}, body: Effect.Effect<A, E, NoInfer<TxId | AuthenticationAuthority>>): Effect.Effect<A, DatabaseError | E | HookConfigurationError | SessionUnavailable | SqlError, DatabaseRequirements | LifecycleHooks>;
|
|
308
|
+
}, coordinatePendingAuthentication: {
|
|
309
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, TargetId, Claims, S extends AnySQLiteTable, C extends AnySQLiteTable, P extends AnySQLiteTable, F extends AnySQLiteTable, NativeId, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
310
|
+
readonly mapping: PendingAuthenticationMapping<NoInfer<Claims>, S, C, P, F, NativeId>;
|
|
311
|
+
readonly target: SuppliedService<TargetId, PendingAuthentication<Claims>>;
|
|
312
|
+
readonly transaction?: never;
|
|
313
|
+
}, body: Effect.Effect<A, E, NoInfer<TargetId>>): Effect.Effect<A, DatabaseError | E | HookConfigurationError | SessionUnavailable | SqlError, DatabaseRequirements | LifecycleHooks>;
|
|
314
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, TargetId, Claims, S extends AnySQLiteTable, C extends AnySQLiteTable, P extends AnySQLiteTable, F extends AnySQLiteTable, NativeId, A, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
315
|
+
readonly mapping: PendingAuthenticationMapping<NoInfer<Claims>, S, C, P, F, NativeId>;
|
|
316
|
+
readonly target: SuppliedService<TargetId, PendingAuthentication<Claims>>;
|
|
317
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Parameters<Parameters<Database["transaction"]>[0]>[0]>, TxShape>;
|
|
318
|
+
}, body: Effect.Effect<A, E, NoInfer<TargetId | TxId>>): Effect.Effect<A, DatabaseError | E | HookConfigurationError | SessionUnavailable | SqlError, DatabaseRequirements | LifecycleHooks>;
|
|
319
|
+
}, coordinateSignedSessionValidity: {
|
|
320
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, TargetId, S extends AnySQLiteTable, T extends AnySQLiteTable, NativeId, NativeSessionId, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
321
|
+
readonly mapping: SignedSessionValidityMapping<S, T, NativeId, NativeSessionId>;
|
|
322
|
+
readonly target: SuppliedService<TargetId, SignedSessionValidity>;
|
|
323
|
+
readonly transaction?: never;
|
|
324
|
+
}, body: Effect.Effect<A, E, NoInfer<TargetId>>): Effect.Effect<A, DatabaseError | E | HookConfigurationError | SessionUnavailable | SqlError, DatabaseRequirements | LifecycleHooks>;
|
|
325
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, TargetId, S extends AnySQLiteTable, T extends AnySQLiteTable, NativeId, NativeSessionId, A, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
326
|
+
readonly mapping: SignedSessionValidityMapping<S, T, NativeId, NativeSessionId>;
|
|
327
|
+
readonly target: SuppliedService<TargetId, SignedSessionValidity>;
|
|
328
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Parameters<Parameters<Database["transaction"]>[0]>[0]>, TxShape>;
|
|
329
|
+
}, body: Effect.Effect<A, E, NoInfer<TargetId | TxId>>): Effect.Effect<A, DatabaseError | E | HookConfigurationError | SessionUnavailable | SqlError, DatabaseRequirements | LifecycleHooks>;
|
|
330
|
+
}, coordinateStatefulSessions: {
|
|
331
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, PersistenceId, RepositoryId, Claims, S extends AnySQLiteTable, C extends AnySQLiteTable, Session extends AnySQLiteTable, F extends AnySQLiteTable, P extends AnySQLiteTable, NativeId, NativeSessionId, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
332
|
+
readonly mapping: StatefulSessionMapping<NoInfer<Claims>, S, C, Session, F, P, NativeId, NativeSessionId>;
|
|
333
|
+
readonly persistence: SuppliedService<PersistenceId, StatefulSessionPersistence<Claims>>;
|
|
334
|
+
readonly repository: SuppliedService<RepositoryId, SessionRepository>;
|
|
335
|
+
readonly transaction?: never;
|
|
336
|
+
}, body: Effect.Effect<A, E, NoInfer<PersistenceId | RepositoryId>>): Effect.Effect<A, DatabaseError | E | HookConfigurationError | SessionUnavailable | SqlError, DatabaseRequirements | LifecycleHooks>;
|
|
337
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, PersistenceId, RepositoryId, Claims, S extends AnySQLiteTable, C extends AnySQLiteTable, Session extends AnySQLiteTable, F extends AnySQLiteTable, P extends AnySQLiteTable, NativeId, NativeSessionId, A, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
338
|
+
readonly mapping: StatefulSessionMapping<NoInfer<Claims>, S, C, Session, F, P, NativeId, NativeSessionId>;
|
|
339
|
+
readonly persistence: SuppliedService<PersistenceId, StatefulSessionPersistence<Claims>>;
|
|
340
|
+
readonly repository: SuppliedService<RepositoryId, SessionRepository>;
|
|
341
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Parameters<Parameters<Database["transaction"]>[0]>[0]>, TxShape>;
|
|
342
|
+
}, body: Effect.Effect<A, E, NoInfer<PersistenceId | RepositoryId | TxId>>): Effect.Effect<A, DatabaseError | E | HookConfigurationError | SessionUnavailable | SqlError, DatabaseRequirements | LifecycleHooks>;
|
|
343
|
+
}, makeAuthenticationAuthorityServices: <Claims, S extends AnySQLiteTable, C extends AnySQLiteTable, F extends AnySQLiteTable, P extends AnySQLiteTable, NativeId>(database: EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, mapping: AuthenticationAuthorityMapping<Claims, S, C, F, P, NativeId>) => Effect.Effect<{
|
|
344
|
+
authenticationAuthority: {
|
|
345
|
+
capture: (subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">, credentialIds: readonly string[]) => Effect.Effect<{
|
|
346
|
+
subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
347
|
+
securityRevision: SecurityRevision;
|
|
348
|
+
credentials: {
|
|
349
|
+
credentialId: any;
|
|
350
|
+
revision: any;
|
|
351
|
+
}[];
|
|
352
|
+
}, SessionUnavailable | StaleAuthentication, never>;
|
|
353
|
+
requirements: (evidence: {
|
|
354
|
+
readonly revision: {
|
|
355
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
356
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
357
|
+
readonly credentials: readonly {
|
|
358
|
+
readonly credentialId: string;
|
|
359
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
360
|
+
}[];
|
|
361
|
+
};
|
|
362
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
|
|
363
|
+
readonly bindingDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
364
|
+
readonly proofs: readonly [{
|
|
365
|
+
readonly method: string;
|
|
366
|
+
readonly credentialId: string;
|
|
367
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
368
|
+
readonly userVerified: boolean;
|
|
369
|
+
readonly phishingResistant: boolean;
|
|
370
|
+
readonly verifiedAt: import("effect/DateTime").Utc;
|
|
371
|
+
}, ...{
|
|
372
|
+
readonly method: string;
|
|
373
|
+
readonly credentialId: string;
|
|
374
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
375
|
+
readonly userVerified: boolean;
|
|
376
|
+
readonly phishingResistant: boolean;
|
|
377
|
+
readonly verifiedAt: import("effect/DateTime").Utc;
|
|
378
|
+
}[]];
|
|
379
|
+
}) => Effect.Effect<{
|
|
380
|
+
readonly alternatives: readonly [{
|
|
381
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
382
|
+
readonly userVerified: boolean;
|
|
383
|
+
readonly phishingResistant: boolean;
|
|
384
|
+
readonly minimumCredentials: number;
|
|
385
|
+
}, ...{
|
|
386
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
387
|
+
readonly userVerified: boolean;
|
|
388
|
+
readonly phishingResistant: boolean;
|
|
389
|
+
readonly minimumCredentials: number;
|
|
390
|
+
}[]];
|
|
391
|
+
readonly maximumAgeMillis: number;
|
|
392
|
+
}, SessionUnavailable | StaleAuthentication, never>;
|
|
393
|
+
approve: <A>(input: {
|
|
394
|
+
readonly evidence: AuthenticationEvidence;
|
|
395
|
+
readonly now: import("effect/DateTime").Utc;
|
|
396
|
+
readonly expiresAt: import("effect/DateTime").Utc;
|
|
397
|
+
readonly absoluteExpiresAt: import("effect/DateTime").Utc;
|
|
398
|
+
readonly pending?: PendingConsumption;
|
|
399
|
+
}, prepare: PrepareSessionCommit<void, A>) => Effect.Effect<PreparedCommit<A>, PendingAuthenticationInvalid | SessionUnavailable | StaleAuthentication, never>;
|
|
400
|
+
};
|
|
401
|
+
}, never, LifecycleHooks>, makePendingAuthenticationServices: <Claims, S extends AnySQLiteTable, C extends AnySQLiteTable, P extends AnySQLiteTable, F extends AnySQLiteTable, NativeId>(database: EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, mapping: PendingAuthenticationMapping<Claims, S, C, P, F, NativeId>) => Effect.Effect<{
|
|
402
|
+
pendingAuthentication: {
|
|
403
|
+
create: <A>(input: Omit<PendingAuthenticationRecord<Claims>, "version">, now: import("effect/DateTime").Utc, prepare: PrepareSessionCommit<PendingAuthenticationRecord<Claims>, A>) => Effect.Effect<PreparedCommit<A>, SessionConflict | SessionUnavailable | StaleAuthentication, never>;
|
|
404
|
+
context: (input: {
|
|
405
|
+
readonly digest: TokenDigest;
|
|
406
|
+
readonly now: import("effect/DateTime").Utc;
|
|
407
|
+
}) => Effect.Effect<Readonly<{
|
|
408
|
+
flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
|
|
409
|
+
bindingDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
410
|
+
expiresAtMillis: number;
|
|
411
|
+
revision: Readonly<{
|
|
412
|
+
subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
413
|
+
securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
414
|
+
credentials: readonly Readonly<{
|
|
415
|
+
credentialId: string;
|
|
416
|
+
revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
417
|
+
}>[];
|
|
418
|
+
}>;
|
|
419
|
+
}>, PendingAuthenticationInvalid | SessionUnavailable, never>;
|
|
420
|
+
read: (input: {
|
|
421
|
+
readonly digest: TokenDigest;
|
|
422
|
+
readonly bindingDigest: TokenDigest;
|
|
423
|
+
readonly now: import("effect/DateTime").Utc;
|
|
424
|
+
}) => Effect.Effect<PendingAuthenticationRecord<Claims>, PendingAuthenticationInvalid | SessionUnavailable, never>;
|
|
425
|
+
reject: <A>(input: {
|
|
426
|
+
readonly digest: TokenDigest;
|
|
427
|
+
readonly bindingDigest: TokenDigest;
|
|
428
|
+
readonly now: import("effect/DateTime").Utc;
|
|
429
|
+
}, prepare: PrepareSessionCommit<{
|
|
430
|
+
readonly _tag: "Rejected";
|
|
431
|
+
}, A>) => Effect.Effect<PreparedCommit<A>, SessionUnavailable, never>;
|
|
432
|
+
};
|
|
433
|
+
}, never, LifecycleHooks>, makeSessionStepUpServices: <Claims, Id, S extends AnySQLiteTable, C extends AnySQLiteTable, I extends AnySQLiteTable, Session extends AnySQLiteTable, T extends AnySQLiteTable, NativeId, NativeSessionId>(database: EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, mapping: SessionStepUpMapping<NoInfer<Claims>, S, C, I, Session, T, NativeId, NativeSessionId>, target: Context.Service<Id, SessionStepUpPersistence<Claims>>) => Effect.Effect<{
|
|
434
|
+
sessionStepUpPersistence: SessionStepUpPersistence<Claims>;
|
|
435
|
+
}, never, LifecycleHooks>, coordinateSessionStepUp: {
|
|
436
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, Claims, Id, S extends AnySQLiteTable, C extends AnySQLiteTable, I extends AnySQLiteTable, Session extends AnySQLiteTable, T extends AnySQLiteTable, NativeId, NativeSessionId, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
437
|
+
readonly mapping: SessionStepUpMapping<NoInfer<Claims>, S, C, I, Session, T, NativeId, NativeSessionId>;
|
|
438
|
+
readonly target: SuppliedService<Id, SessionStepUpPersistence<Claims>>;
|
|
439
|
+
readonly transaction?: never;
|
|
440
|
+
}, body: Effect.Effect<A, E, NoInfer<Id>>): Effect.Effect<A, DatabaseError | E | HookConfigurationError | SessionUnavailable | SqlError, DatabaseRequirements | LifecycleHooks>;
|
|
441
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, Claims, Id, S extends AnySQLiteTable, C extends AnySQLiteTable, I extends AnySQLiteTable, Session extends AnySQLiteTable, T extends AnySQLiteTable, NativeId, NativeSessionId, A, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
442
|
+
readonly mapping: SessionStepUpMapping<NoInfer<Claims>, S, C, I, Session, T, NativeId, NativeSessionId>;
|
|
443
|
+
readonly target: SuppliedService<Id, SessionStepUpPersistence<Claims>>;
|
|
444
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Parameters<Parameters<Database["transaction"]>[0]>[0]>, TxShape>;
|
|
445
|
+
}, body: Effect.Effect<A, E, NoInfer<Id | TxId>>): Effect.Effect<A, DatabaseError | E | HookConfigurationError | SessionUnavailable | SqlError, DatabaseRequirements | LifecycleHooks>;
|
|
446
|
+
}, makeSignedSessionValidityServices: <S extends AnySQLiteTable, T extends AnySQLiteTable, NativeId, NativeSessionId>(database: EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, mapping: SignedSessionValidityMapping<S, T, NativeId, NativeSessionId>) => Effect.Effect<{
|
|
447
|
+
signedSessionValidity: {
|
|
448
|
+
verify: (session: {
|
|
449
|
+
readonly sessionId: string & import("effect/Brand").Brand<"effect-auth/SessionId">;
|
|
450
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
451
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
452
|
+
readonly assurance: AuthenticationAssurance;
|
|
453
|
+
readonly issuedAt: import("effect/DateTime").Utc;
|
|
454
|
+
readonly expiresAt: import("effect/DateTime").Utc;
|
|
455
|
+
readonly absoluteExpiresAt: import("effect/DateTime").Utc;
|
|
456
|
+
}, now: import("effect/DateTime").Utc) => Effect.Effect<undefined, SessionInvalid | SessionUnavailable, never>;
|
|
457
|
+
revoke: <A>(input: {
|
|
458
|
+
readonly subjectId: SubjectId;
|
|
459
|
+
readonly sessionId: SessionId;
|
|
460
|
+
readonly absoluteExpiresAt: import("effect/DateTime").Utc;
|
|
461
|
+
readonly expectedSecurityRevision: SecurityRevision;
|
|
462
|
+
}, prepare: PrepareSessionCommit<void, A>) => Effect.Effect<PreparedCommit<A>, SessionUnavailable | StaleAuthentication, never>;
|
|
463
|
+
revokeAll: <A>(input: {
|
|
464
|
+
readonly subjectId: SubjectId;
|
|
465
|
+
readonly expectedSecurityRevision: SecurityRevision;
|
|
466
|
+
}, prepare: PrepareSessionCommit<void, A>) => Effect.Effect<PreparedCommit<A>, SessionUnavailable | StaleAuthentication, never>;
|
|
467
|
+
};
|
|
468
|
+
}, never, LifecycleHooks>, makeStatefulSessionServices: <Claims, S extends AnySQLiteTable, C extends AnySQLiteTable, Session extends AnySQLiteTable, F extends AnySQLiteTable, P extends AnySQLiteTable, NativeId, NativeSessionId>(database: EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, mapping: StatefulSessionMapping<Claims, S, C, Session, F, P, NativeId, NativeSessionId>) => Effect.Effect<{
|
|
469
|
+
statefulSessionPersistence: {
|
|
470
|
+
establish: <A>(input: {
|
|
471
|
+
readonly session: Omit<StatefulSessionRecord<Claims>, "sessionId" | "version">;
|
|
472
|
+
readonly evidence: AuthenticationEvidence;
|
|
473
|
+
readonly pending?: PendingConsumption;
|
|
474
|
+
readonly now: import("effect/DateTime").Utc;
|
|
475
|
+
}, prepare: PrepareSessionCommit<StatefulSessionRecord<Claims>, A>) => Effect.Effect<PreparedCommit<A>, PendingAuthenticationInvalid | SessionConflict | SessionUnavailable | StaleAuthentication, never>;
|
|
476
|
+
verify: (input: {
|
|
477
|
+
readonly digest: TokenDigest;
|
|
478
|
+
readonly now: import("effect/DateTime").Utc;
|
|
479
|
+
}) => Effect.Effect<StatefulSessionRecord<Claims>, SessionInvalid | SessionUnavailable, never>;
|
|
480
|
+
rotate: <A>(input: {
|
|
481
|
+
readonly sessionId: SessionId;
|
|
482
|
+
readonly expectedDigest: TokenDigest;
|
|
483
|
+
readonly expectedVersion: SecurityRevision;
|
|
484
|
+
readonly expectedSecurityRevision: SecurityRevision;
|
|
485
|
+
readonly nextDigest: TokenDigest;
|
|
486
|
+
readonly nextCredentialVersion: SessionCredentialVersion;
|
|
487
|
+
readonly nextExpiresAt: import("effect/DateTime").Utc;
|
|
488
|
+
readonly now: import("effect/DateTime").Utc;
|
|
489
|
+
}, prepare: PrepareSessionCommit<StatefulSessionRecord<Claims>, A>) => Effect.Effect<PreparedCommit<A>, SessionConflict | SessionUnavailable, never>;
|
|
490
|
+
revokeDigest: <A>(digest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">, prepare: PrepareSessionCommit<boolean, A>) => Effect.Effect<PreparedCommit<A>, SessionUnavailable, never>;
|
|
491
|
+
revoke: <A>(input: {
|
|
492
|
+
readonly subjectId: SubjectId;
|
|
493
|
+
readonly sessionId: SessionId;
|
|
494
|
+
readonly expectedSecurityRevision: SecurityRevision;
|
|
495
|
+
}, prepare: PrepareSessionCommit<void, A>) => Effect.Effect<PreparedCommit<A>, SessionUnavailable | StaleAuthentication, never>;
|
|
496
|
+
revokeAll: <A>(input: {
|
|
497
|
+
readonly subjectId: SubjectId;
|
|
498
|
+
readonly expectedSecurityRevision: SecurityRevision;
|
|
499
|
+
}, prepare: PrepareSessionCommit<void, A>) => Effect.Effect<PreparedCommit<A>, SessionUnavailable | StaleAuthentication, never>;
|
|
500
|
+
};
|
|
501
|
+
sessionRepository: {
|
|
502
|
+
list: (input: {
|
|
503
|
+
readonly subjectId: SubjectId;
|
|
504
|
+
readonly cursor?: string;
|
|
505
|
+
readonly limit: number;
|
|
506
|
+
readonly now: import("effect/DateTime").Utc;
|
|
507
|
+
}) => Effect.Effect<{
|
|
508
|
+
sessions: {
|
|
509
|
+
readonly sessionId: string & import("effect/Brand").Brand<"effect-auth/SessionId">;
|
|
510
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
511
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
512
|
+
readonly assurance: AuthenticationAssurance;
|
|
513
|
+
readonly issuedAt: import("effect/DateTime").Utc;
|
|
514
|
+
readonly expiresAt: import("effect/DateTime").Utc;
|
|
515
|
+
readonly absoluteExpiresAt: import("effect/DateTime").Utc;
|
|
516
|
+
}[];
|
|
517
|
+
nextCursor?: (string & import("effect/Brand").Brand<"effect-auth/SessionId">) | undefined;
|
|
518
|
+
}, SessionUnavailable, never>;
|
|
519
|
+
};
|
|
520
|
+
}, never, LifecycleHooks>;
|
|
521
|
+
declare const commitMode: "synchronous";
|
|
522
|
+
declare const makeAuthStoreServices: <C extends AnySQLiteTable, R extends AnySQLiteTable>(database: EffectSQLiteDoDatabase<AnyRelations>, mapping: AuthStoreTables<C, R>) => {
|
|
523
|
+
readonly authStore: {
|
|
524
|
+
readonly issueChallenge: (input: NewChallenge) => Effect.Effect<void, IssueChallengeError>;
|
|
525
|
+
readonly consumeChallenge: (input: ConsumeChallenge) => Effect.Effect<VerifiedEmail, EmailOtpRejected | AuthStoreError>;
|
|
526
|
+
readonly issueRegistration: (input: NewRegistration) => Effect.Effect<void, AuthStoreError>;
|
|
527
|
+
readonly inspectRegistration: (tokenDigest: TokenDigest) => Effect.Effect<PendingRegistration, InvalidRegistration | AuthStoreError>;
|
|
528
|
+
readonly consumeRegistration: (input: ConsumeRegistration) => Effect.Effect<void, InvalidRegistration | AuthStoreError>;
|
|
529
|
+
};
|
|
530
|
+
readonly decisions: {
|
|
531
|
+
readonly consumeChallenge: (input: ConsumeChallenge) => Effect.Effect<ChallengeConsumeDecision, AuthStoreError, never>;
|
|
532
|
+
readonly consumeRegistration: (input: ConsumeRegistration) => Effect.Effect<ConsumeDecision<void>, AuthStoreError, never>;
|
|
533
|
+
};
|
|
534
|
+
};
|
|
535
|
+
declare const makeOAuthStateServices: <S extends AnySQLiteTable>(database: EffectSQLiteDoDatabase<AnyRelations>, mapping: OAuthStateTables<S>) => {
|
|
536
|
+
readonly oauthStateStore: {
|
|
537
|
+
readonly issue: (state: OAuthState) => Effect.Effect<void, AuthStoreError>;
|
|
538
|
+
readonly consume: (stateDigest: TokenDigest) => Effect.Effect<OAuthState, InvalidOAuthState | AuthStoreError>;
|
|
539
|
+
};
|
|
540
|
+
readonly decisions: {
|
|
541
|
+
readonly consumeOAuthState: (digest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">) => Effect.Effect<ConsumeDecision<OAuthState>, AuthStoreError, never>;
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
declare const makeAuthServices: <C extends AnySQLiteTable, R extends AnySQLiteTable, S extends AnySQLiteTable>(database: EffectSQLiteDoDatabase<AnyRelations>, mapping: AuthTables<C, R, S>) => {
|
|
545
|
+
readonly authStore: {
|
|
546
|
+
readonly issueChallenge: (input: NewChallenge) => Effect.Effect<void, IssueChallengeError>;
|
|
547
|
+
readonly consumeChallenge: (input: ConsumeChallenge) => Effect.Effect<VerifiedEmail, EmailOtpRejected | AuthStoreError>;
|
|
548
|
+
readonly issueRegistration: (input: NewRegistration) => Effect.Effect<void, AuthStoreError>;
|
|
549
|
+
readonly inspectRegistration: (tokenDigest: TokenDigest) => Effect.Effect<PendingRegistration, InvalidRegistration | AuthStoreError>;
|
|
550
|
+
readonly consumeRegistration: (input: ConsumeRegistration) => Effect.Effect<void, InvalidRegistration | AuthStoreError>;
|
|
551
|
+
};
|
|
552
|
+
readonly oauthStateStore: {
|
|
553
|
+
readonly issue: (state: OAuthState) => Effect.Effect<void, AuthStoreError>;
|
|
554
|
+
readonly consume: (stateDigest: TokenDigest) => Effect.Effect<OAuthState, InvalidOAuthState | AuthStoreError>;
|
|
555
|
+
};
|
|
556
|
+
readonly decisions: {
|
|
557
|
+
readonly consumeChallenge: (input: ConsumeChallenge) => Effect.Effect<ChallengeConsumeDecision, AuthStoreError, never>;
|
|
558
|
+
readonly consumeRegistration: (input: ConsumeRegistration) => Effect.Effect<ConsumeDecision<void>, AuthStoreError, never>;
|
|
559
|
+
readonly consumeOAuthState: (digest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">) => Effect.Effect<ConsumeDecision<OAuthState>, AuthStoreError, never>;
|
|
560
|
+
};
|
|
561
|
+
};
|
|
562
|
+
type TransactionOf<D extends EffectSQLiteDoDatabase<AnyRelations>> = Parameters<Parameters<D["transaction"]>[0]>[0];
|
|
563
|
+
declare function coordinateAuthStoreTransaction<D extends EffectSQLiteDoDatabase<AnyRelations>, C extends AnySQLiteTable, R extends AnySQLiteTable, A, E, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<D, DatabaseError, DatabaseRequirements>, options: {
|
|
564
|
+
readonly mapping: AuthStoreTables<C, R>;
|
|
565
|
+
readonly transaction?: never;
|
|
566
|
+
}, body: Effect.Effect<A, E, NoInfer<AuthStoreDecisions>>): Effect.Effect<A, E | DatabaseError | SqlError, DatabaseRequirements>;
|
|
567
|
+
declare function coordinateAuthStoreTransaction<D extends EffectSQLiteDoDatabase<AnyRelations>, C extends AnySQLiteTable, R extends AnySQLiteTable, A, E, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<D, DatabaseError, DatabaseRequirements>, options: {
|
|
568
|
+
readonly mapping: AuthStoreTables<C, R>;
|
|
569
|
+
readonly transaction: SuppliedService<TxId, NoInfer<TransactionOf<D>>, TxShape>;
|
|
570
|
+
}, body: Effect.Effect<A, E, NoInfer<AuthStoreDecisions | TxId>>): Effect.Effect<A, E | DatabaseError | SqlError, DatabaseRequirements>;
|
|
571
|
+
declare function coordinateOAuthStateTransaction<D extends EffectSQLiteDoDatabase<AnyRelations>, S extends AnySQLiteTable, A, E, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<D, DatabaseError, DatabaseRequirements>, options: {
|
|
572
|
+
readonly mapping: OAuthStateTables<S>;
|
|
573
|
+
readonly transaction?: never;
|
|
574
|
+
}, body: Effect.Effect<A, E, NoInfer<OAuthStateDecisions>>): Effect.Effect<A, E | DatabaseError | SqlError, DatabaseRequirements>;
|
|
575
|
+
declare function coordinateOAuthStateTransaction<D extends EffectSQLiteDoDatabase<AnyRelations>, S extends AnySQLiteTable, A, E, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<D, DatabaseError, DatabaseRequirements>, options: {
|
|
576
|
+
readonly mapping: OAuthStateTables<S>;
|
|
577
|
+
readonly transaction: SuppliedService<TxId, NoInfer<TransactionOf<D>>, TxShape>;
|
|
578
|
+
}, body: Effect.Effect<A, E, NoInfer<OAuthStateDecisions | TxId>>): Effect.Effect<A, E | DatabaseError | SqlError, DatabaseRequirements>;
|
|
579
|
+
/**
|
|
580
|
+
* Supported composition boundary for Durable Objects. The owner must return
|
|
581
|
+
* decisions as values and translate rejection only after this root
|
|
582
|
+
* transactionSync commit. Its body may contain only runSync-compatible Effects;
|
|
583
|
+
* the installed driver rejects suspension and rolls back. Owner failure rolls
|
|
584
|
+
* back synchronously, so no retry is performed inside this boundary.
|
|
585
|
+
*/
|
|
586
|
+
declare function coordinateAuthTransaction<D extends EffectSQLiteDoDatabase<AnyRelations>, C extends AnySQLiteTable, R extends AnySQLiteTable, S extends AnySQLiteTable, A, E, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<D, DatabaseError, DatabaseRequirements>, options: {
|
|
587
|
+
readonly mapping: AuthTables<C, R, S>;
|
|
588
|
+
readonly transaction?: never;
|
|
589
|
+
}, body: Effect.Effect<A, E, NoInfer<AuthStoreDecisions | OAuthStateDecisions>>): Effect.Effect<A, E | DatabaseError | SqlError, DatabaseRequirements>;
|
|
590
|
+
declare function coordinateAuthTransaction<D extends EffectSQLiteDoDatabase<AnyRelations>, C extends AnySQLiteTable, R extends AnySQLiteTable, S extends AnySQLiteTable, A, E, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<D, DatabaseError, DatabaseRequirements>, options: {
|
|
591
|
+
readonly mapping: AuthTables<C, R, S>;
|
|
592
|
+
readonly transaction: SuppliedService<TxId, NoInfer<TransactionOf<D>>, TxShape>;
|
|
593
|
+
}, body: Effect.Effect<A, E, NoInfer<AuthStoreDecisions | OAuthStateDecisions | TxId>>): Effect.Effect<A, E | DatabaseError | SqlError, DatabaseRequirements>;
|
|
594
|
+
declare const makeIdentityServices: <Subject extends AnySQLiteTable, Identifier extends AnySQLiteTable, External extends AnySQLiteTable, Request extends AnySQLiteTable, NativeId>(database: EffectSQLiteDoDatabase<AnyRelations>, mapping: IdentityTables<Subject, Identifier, External, Request, NativeId>) => {
|
|
595
|
+
subjectProvisioner: {
|
|
596
|
+
readonly provision: (input: SubjectProvisioningInput) => Effect.Effect<ProvisioningResult, IdentityConflict | IdentityUnavailable>;
|
|
597
|
+
};
|
|
598
|
+
externalIdentityMutation: {
|
|
599
|
+
readonly bind: (subjectId: SubjectId, identity: ExternalIdentity) => Effect.Effect<void, IdentityConflict | IdentityUnavailable>;
|
|
600
|
+
};
|
|
601
|
+
};
|
|
602
|
+
declare const makeSubjectProvisioningServices: <Subject extends AnySQLiteTable, Identifier extends AnySQLiteTable, Request extends AnySQLiteTable, NativeId>(database: EffectSQLiteDoDatabase<AnyRelations>, mapping: SubjectProvisioningTables<Subject, Identifier, Request, NativeId>) => {
|
|
603
|
+
readonly subjectProvisioner: {
|
|
604
|
+
readonly provision: (input: SubjectProvisioningInput) => Effect.Effect<ProvisioningResult, IdentityConflict | IdentityUnavailable>;
|
|
605
|
+
};
|
|
606
|
+
};
|
|
607
|
+
declare const makeExternalIdentityServices: <Subject extends AnySQLiteTable, External extends AnySQLiteTable, NativeId>(database: EffectSQLiteDoDatabase<AnyRelations>, mapping: ExternalIdentityTables<Subject, External, NativeId>) => {
|
|
608
|
+
readonly externalIdentityMutation: {
|
|
609
|
+
readonly bind: (subjectId: SubjectId, identity: ExternalIdentity) => Effect.Effect<void, IdentityConflict | IdentityUnavailable>;
|
|
610
|
+
};
|
|
611
|
+
};
|
|
612
|
+
declare const makePasswordPreparedPersistenceServices: <S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, A extends AnySQLiteTable, RS extends AnySQLiteTable, CE extends AnySQLiteTable, M extends AnySQLiteTable, T extends AnySQLiteTable, B extends AnySQLiteTable, NativeId, PS extends AnySQLiteTable = AnySQLiteTable, PC extends AnySQLiteTable = AnySQLiteTable, PM extends AnySQLiteTable = AnySQLiteTable, PSub extends AnySQLiteTable = AnySQLiteTable, PI extends AnySQLiteTable = AnySQLiteTable, PCr extends AnySQLiteTable = AnySQLiteTable, PNativeId = unknown>(database: EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, mapping: PasswordPreparedPersistenceMapping<S, I, C, AC, A, RS, CE, M, T, B, NativeId>, proofMapping?: PasswordPreparedProofMapping<PS, PC, PM, PSub, PI, PCr, PNativeId> | undefined) => Effect.Effect<{
|
|
613
|
+
passwordPreparedPersistence: PasswordPreparedPersistence;
|
|
614
|
+
}, never, LifecycleHooks>, coordinatePasswordPreparedPersistence: {
|
|
615
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, TargetId, S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, A extends AnySQLiteTable, RS extends AnySQLiteTable, CE extends AnySQLiteTable, M extends AnySQLiteTable, T extends AnySQLiteTable, B extends AnySQLiteTable, NativeId, PS extends AnySQLiteTable, PC extends AnySQLiteTable, PM extends AnySQLiteTable, PSub extends AnySQLiteTable, PI extends AnySQLiteTable, PCr extends AnySQLiteTable, PNativeId, Out, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
616
|
+
readonly mapping: PasswordPreparedPersistenceMapping<S, I, C, AC, A, RS, CE, M, T, B, NativeId>;
|
|
617
|
+
readonly proofMapping?: PasswordPreparedProofMapping<PS, PC, PM, PSub, PI, PCr, PNativeId> | undefined;
|
|
618
|
+
readonly target: SuppliedService<TargetId, PasswordPreparedPersistence>;
|
|
619
|
+
readonly transaction?: never;
|
|
620
|
+
}, body: Effect.Effect<Out, E, NoInfer<TargetId>>): Effect.Effect<Out, DatabaseError | E | HookConfigurationError | PasswordUnavailable | SqlError, DatabaseRequirements | LifecycleHooks>;
|
|
621
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, TargetId, S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, A extends AnySQLiteTable, RS extends AnySQLiteTable, CE extends AnySQLiteTable, M extends AnySQLiteTable, T extends AnySQLiteTable, B extends AnySQLiteTable, NativeId, PS extends AnySQLiteTable, PC extends AnySQLiteTable, PM extends AnySQLiteTable, PSub extends AnySQLiteTable, PI extends AnySQLiteTable, PCr extends AnySQLiteTable, PNativeId, Out, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
622
|
+
readonly mapping: PasswordPreparedPersistenceMapping<S, I, C, AC, A, RS, CE, M, T, B, NativeId>;
|
|
623
|
+
readonly proofMapping?: PasswordPreparedProofMapping<PS, PC, PM, PSub, PI, PCr, PNativeId> | undefined;
|
|
624
|
+
readonly target: SuppliedService<TargetId, PasswordPreparedPersistence>;
|
|
625
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Parameters<Parameters<Database["transaction"]>[0]>[0]>, TxShape>;
|
|
626
|
+
}, body: Effect.Effect<Out, E, NoInfer<TargetId | TxId>>): Effect.Effect<Out, DatabaseError | E | HookConfigurationError | PasswordUnavailable | SqlError, DatabaseRequirements | LifecycleHooks>;
|
|
627
|
+
};
|
|
628
|
+
declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
629
|
+
dialect: "sqlite";
|
|
630
|
+
}>, O extends AnySQLiteTable<{
|
|
631
|
+
dialect: "sqlite";
|
|
632
|
+
}>, C extends AnySQLiteTable<{
|
|
633
|
+
dialect: "sqlite";
|
|
634
|
+
}>, AC extends AnySQLiteTable<{
|
|
635
|
+
dialect: "sqlite";
|
|
636
|
+
}>, F extends AnySQLiteTable<{
|
|
637
|
+
dialect: "sqlite";
|
|
638
|
+
}>, TA extends AnySQLiteTable<{
|
|
639
|
+
dialect: "sqlite";
|
|
640
|
+
}>, U extends AnySQLiteTable<{
|
|
641
|
+
dialect: "sqlite";
|
|
642
|
+
}>, N>(database: EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, mapping: OAuthAccountsMapping<S, O, C, AC, F, TA, U, N>) => Effect.Effect<{
|
|
643
|
+
oauthAccountsPersistence: {
|
|
644
|
+
readonly capture: (input: {
|
|
645
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
646
|
+
readonly subjectId: SubjectId;
|
|
647
|
+
}) => Effect.Effect<OAuthAccountRevision | undefined, OAuthUnavailable>;
|
|
648
|
+
readonly issue: <A>(input: {
|
|
649
|
+
readonly flow: OAuthLinkPendingFlow;
|
|
650
|
+
readonly authorization: OAuthActionAuthorization;
|
|
651
|
+
}, prepare: PrepareOAuthCommit<{
|
|
652
|
+
readonly _tag: "Rejected";
|
|
653
|
+
} | {
|
|
654
|
+
readonly _tag: "Issued";
|
|
655
|
+
readonly flow: {
|
|
656
|
+
readonly context: {
|
|
657
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
658
|
+
readonly protocol: "oauth" | "oidc";
|
|
659
|
+
readonly configurationGeneration: number;
|
|
660
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
661
|
+
readonly responseIssuerMode: "required" | "unsupported";
|
|
662
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
663
|
+
readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
|
|
664
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
665
|
+
readonly generation: number;
|
|
666
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
667
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
668
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
669
|
+
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
670
|
+
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
671
|
+
readonly requestBindingExpiresAtMillis: number;
|
|
672
|
+
readonly issuedAtMillis: number;
|
|
673
|
+
readonly expiresAtMillis: number;
|
|
674
|
+
readonly claimLifetimeMillis: number;
|
|
675
|
+
readonly namespace: "effect-auth/oauth-link-context/v1";
|
|
676
|
+
readonly revision: {
|
|
677
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
678
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
679
|
+
readonly credentials: readonly {
|
|
680
|
+
readonly credentialId: string;
|
|
681
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
682
|
+
}[];
|
|
683
|
+
};
|
|
684
|
+
readonly maximumEvidenceAgeMillis: number;
|
|
685
|
+
};
|
|
686
|
+
readonly sealed: {
|
|
687
|
+
readonly format: "oauth-xchacha20poly1305-v1";
|
|
688
|
+
readonly keyId: string;
|
|
689
|
+
readonly nonce: string;
|
|
690
|
+
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
691
|
+
};
|
|
692
|
+
readonly retentionUntilMillis: number;
|
|
693
|
+
};
|
|
694
|
+
}, A>) => Effect.Effect<PreparedCommit<A>, OAuthUnavailable>;
|
|
695
|
+
readonly preflight: (input: OAuthLinkAccess) => Effect.Effect<OAuthLinkPendingFlow | undefined, OAuthUnavailable>;
|
|
696
|
+
readonly claim: <A>(input: {
|
|
697
|
+
readonly access: OAuthLinkAccess;
|
|
698
|
+
readonly flow: OAuthLinkPendingFlow;
|
|
699
|
+
readonly claimId: OAuthLinkClaim["claimId"];
|
|
700
|
+
readonly authorization: OAuthActionAuthorization;
|
|
701
|
+
}, prepare: PrepareOAuthCommit<{
|
|
702
|
+
readonly _tag: "Rejected";
|
|
703
|
+
} | {
|
|
704
|
+
readonly _tag: "Claimed";
|
|
705
|
+
readonly claim: {
|
|
706
|
+
readonly flow: {
|
|
707
|
+
readonly context: {
|
|
708
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
709
|
+
readonly protocol: "oauth" | "oidc";
|
|
710
|
+
readonly configurationGeneration: number;
|
|
711
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
712
|
+
readonly responseIssuerMode: "required" | "unsupported";
|
|
713
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
714
|
+
readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
|
|
715
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
716
|
+
readonly generation: number;
|
|
717
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
718
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
719
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
720
|
+
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
721
|
+
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
722
|
+
readonly requestBindingExpiresAtMillis: number;
|
|
723
|
+
readonly issuedAtMillis: number;
|
|
724
|
+
readonly expiresAtMillis: number;
|
|
725
|
+
readonly claimLifetimeMillis: number;
|
|
726
|
+
readonly namespace: "effect-auth/oauth-link-context/v1";
|
|
727
|
+
readonly revision: {
|
|
728
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
729
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
730
|
+
readonly credentials: readonly {
|
|
731
|
+
readonly credentialId: string;
|
|
732
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
733
|
+
}[];
|
|
734
|
+
};
|
|
735
|
+
readonly maximumEvidenceAgeMillis: number;
|
|
736
|
+
};
|
|
737
|
+
readonly sealed: {
|
|
738
|
+
readonly format: "oauth-xchacha20poly1305-v1";
|
|
739
|
+
readonly keyId: string;
|
|
740
|
+
readonly nonce: string;
|
|
741
|
+
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
742
|
+
};
|
|
743
|
+
readonly retentionUntilMillis: number;
|
|
744
|
+
};
|
|
745
|
+
readonly claimId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
|
|
746
|
+
readonly claimedAtMillis: number;
|
|
747
|
+
readonly claimExpiresAtMillis: number;
|
|
748
|
+
};
|
|
749
|
+
}, A>) => Effect.Effect<PreparedCommit<A>, OAuthUnavailable>;
|
|
750
|
+
readonly settle: <A>(input: {
|
|
751
|
+
readonly claim: OAuthLinkClaim;
|
|
752
|
+
readonly outcome: OAuthLinkOutcome;
|
|
753
|
+
readonly authorization: OAuthActionAuthorization;
|
|
754
|
+
readonly invalidation: SessionInvalidationWindow;
|
|
755
|
+
readonly nowMillis: number;
|
|
756
|
+
}, prepare: PrepareOAuthCommit<{
|
|
757
|
+
readonly _tag: "Ambiguous";
|
|
758
|
+
} | {
|
|
759
|
+
readonly _tag: "Rejected";
|
|
760
|
+
} | {
|
|
761
|
+
readonly _tag: "Conflict";
|
|
762
|
+
} | {
|
|
763
|
+
readonly _tag: "Cancelled";
|
|
764
|
+
} | {
|
|
765
|
+
readonly _tag: "Linked";
|
|
766
|
+
readonly credential: {
|
|
767
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
768
|
+
readonly identity: {
|
|
769
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
770
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
771
|
+
readonly subject: string;
|
|
772
|
+
};
|
|
773
|
+
readonly credentialId: string;
|
|
774
|
+
readonly credentialRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
775
|
+
readonly revision: {
|
|
776
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
777
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
778
|
+
readonly credentials: readonly {
|
|
779
|
+
readonly credentialId: string;
|
|
780
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
781
|
+
}[];
|
|
782
|
+
};
|
|
783
|
+
};
|
|
784
|
+
readonly changed: boolean;
|
|
785
|
+
}, A>) => Effect.Effect<PreparedCommit<A>, OAuthUnavailable>;
|
|
786
|
+
readonly inspectUnlink: (input: {
|
|
787
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
788
|
+
readonly subjectId: SubjectId;
|
|
789
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
790
|
+
readonly credentialId: string;
|
|
791
|
+
}) => Effect.Effect<{
|
|
792
|
+
readonly _tag: "Rejected";
|
|
793
|
+
} | {
|
|
794
|
+
readonly _tag: "Conflict";
|
|
795
|
+
} | {
|
|
796
|
+
readonly _tag: "Target";
|
|
797
|
+
readonly credential: {
|
|
798
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
799
|
+
readonly identity: {
|
|
800
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
801
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
802
|
+
readonly subject: string;
|
|
803
|
+
};
|
|
804
|
+
readonly credentialId: string;
|
|
805
|
+
readonly credentialRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
806
|
+
readonly revision: {
|
|
807
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
808
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
809
|
+
readonly credentials: readonly {
|
|
810
|
+
readonly credentialId: string;
|
|
811
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
812
|
+
}[];
|
|
813
|
+
};
|
|
814
|
+
};
|
|
815
|
+
} | {
|
|
816
|
+
readonly _tag: "Replay";
|
|
817
|
+
readonly result: {
|
|
818
|
+
readonly _tag: "Unlinked";
|
|
819
|
+
readonly credentialId: string;
|
|
820
|
+
readonly invalidation: {
|
|
821
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
822
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
823
|
+
readonly maximumExposureMillis: number;
|
|
824
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
825
|
+
};
|
|
826
|
+
};
|
|
827
|
+
}, OAuthUnavailable>;
|
|
828
|
+
readonly unlink: <A>(input: {
|
|
829
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
830
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
831
|
+
readonly credential: OAuthCredentialSnapshot;
|
|
832
|
+
readonly authorization: OAuthActionAuthorization;
|
|
833
|
+
readonly invalidation: SessionInvalidationWindow;
|
|
834
|
+
readonly nowMillis: number;
|
|
835
|
+
readonly retentionUntilMillis: number;
|
|
836
|
+
}, prepare: PrepareOAuthCommit<{
|
|
837
|
+
readonly _tag: "Rejected";
|
|
838
|
+
} | {
|
|
839
|
+
readonly _tag: "LastSignInMethod";
|
|
840
|
+
} | {
|
|
841
|
+
readonly _tag: "Conflict";
|
|
842
|
+
} | {
|
|
843
|
+
readonly _tag: "Unlinked";
|
|
844
|
+
readonly result: {
|
|
845
|
+
readonly _tag: "Unlinked";
|
|
846
|
+
readonly credentialId: string;
|
|
847
|
+
readonly invalidation: {
|
|
848
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
849
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
850
|
+
readonly maximumExposureMillis: number;
|
|
851
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
852
|
+
};
|
|
853
|
+
};
|
|
854
|
+
readonly replayed: boolean;
|
|
855
|
+
}, A>) => Effect.Effect<PreparedCommit<A>, OAuthUnavailable>;
|
|
856
|
+
readonly cleanup: <A>(input: OAuthCleanupInput, prepare: PrepareOAuthCommit<{
|
|
857
|
+
readonly terminalized: number;
|
|
858
|
+
readonly removed: number;
|
|
859
|
+
readonly hasMore: boolean;
|
|
860
|
+
}, A>) => Effect.Effect<PreparedCommit<A>, OAuthUnavailable>;
|
|
861
|
+
};
|
|
862
|
+
}, never, LifecycleHooks>, makeOAuthSignInServices: <S extends AnySQLiteTable<{
|
|
863
|
+
dialect: "sqlite";
|
|
864
|
+
}>, O extends AnySQLiteTable<{
|
|
865
|
+
dialect: "sqlite";
|
|
866
|
+
}>, C extends AnySQLiteTable<{
|
|
867
|
+
dialect: "sqlite";
|
|
868
|
+
}>, AC extends AnySQLiteTable<{
|
|
869
|
+
dialect: "sqlite";
|
|
870
|
+
}>, F extends AnySQLiteTable<{
|
|
871
|
+
dialect: "sqlite";
|
|
872
|
+
}>, N>(database: EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, mapping: OAuthSignInMapping<S, O, C, AC, F, N>) => Effect.Effect<{
|
|
873
|
+
oauthSignInPersistence: {
|
|
874
|
+
readonly issue: <A>(input: OAuthPendingFlow, prepare: PrepareOAuthCommit<OAuthIssueDecision, A>) => Effect.Effect<PreparedCommit<A>, OAuthUnavailable>;
|
|
875
|
+
readonly claim: <A>(input: {
|
|
876
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
877
|
+
readonly generation: number;
|
|
878
|
+
readonly flowId: RequestBindingFlowId;
|
|
879
|
+
readonly provider: OAuthProviderKey;
|
|
880
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
881
|
+
readonly stateDigest: TokenDigest;
|
|
882
|
+
readonly requestBindingVerifier: TokenDigest;
|
|
883
|
+
readonly requestBindingExpiresAtMillis: number;
|
|
884
|
+
readonly responseIssuer?: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
885
|
+
readonly claimId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
|
|
886
|
+
readonly nowMillis: number;
|
|
887
|
+
}, prepare: PrepareOAuthCommit<OAuthClaimDecision, A>) => Effect.Effect<PreparedCommit<A>, OAuthUnavailable>;
|
|
888
|
+
readonly settle: <A>(input: {
|
|
889
|
+
readonly claim: OAuthClaim;
|
|
890
|
+
readonly outcome: {
|
|
891
|
+
readonly _tag: "Verified";
|
|
892
|
+
readonly identity: OAuthVerifiedExternalIdentity;
|
|
893
|
+
} | {
|
|
894
|
+
readonly _tag: "Cancelled" | "Rejected" | "Ambiguous";
|
|
895
|
+
};
|
|
896
|
+
readonly nowMillis: number;
|
|
897
|
+
}, prepare: PrepareOAuthCommit<OAuthSettlementDecision, A>) => Effect.Effect<PreparedCommit<A>, OAuthUnavailable>;
|
|
898
|
+
readonly cleanup: <A>(input: OAuthCleanupInput, prepare: PrepareOAuthCommit<{
|
|
899
|
+
readonly terminalized: number;
|
|
900
|
+
readonly removed: number;
|
|
901
|
+
readonly hasMore: boolean;
|
|
902
|
+
}, A>) => Effect.Effect<PreparedCommit<A>, OAuthUnavailable>;
|
|
903
|
+
};
|
|
904
|
+
}, never, LifecycleHooks>, makeOAuthRegistrationIntentServices: <S extends AnySQLiteTable<{
|
|
905
|
+
dialect: "sqlite";
|
|
906
|
+
}>, O extends AnySQLiteTable<{
|
|
907
|
+
dialect: "sqlite";
|
|
908
|
+
}>, C extends AnySQLiteTable<{
|
|
909
|
+
dialect: "sqlite";
|
|
910
|
+
}>, AC extends AnySQLiteTable<{
|
|
911
|
+
dialect: "sqlite";
|
|
912
|
+
}>, F extends AnySQLiteTable<{
|
|
913
|
+
dialect: "sqlite";
|
|
914
|
+
}>, TA extends AnySQLiteTable<{
|
|
915
|
+
dialect: "sqlite";
|
|
916
|
+
}>, I extends AnySQLiteTable<{
|
|
917
|
+
dialect: "sqlite";
|
|
918
|
+
}>, N>(database: EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, mapping: OAuthRegistrationIntentMapping<S, O, C, AC, F, TA, I, N>) => Effect.Effect<{
|
|
919
|
+
oauthRegistrationIntents: {
|
|
920
|
+
readonly settle: <A>(input: {
|
|
921
|
+
readonly claim: OAuthClaim;
|
|
922
|
+
readonly identity: OAuthVerifiedExternalIdentity;
|
|
923
|
+
readonly intent?: OAuthRegistrationIntent;
|
|
924
|
+
readonly nowMillis: number;
|
|
925
|
+
}, prepare: PrepareOAuthCommit<OAuthRegistrationSettlement, A>) => Effect.Effect<PreparedCommit<A>, OAuthUnavailable>;
|
|
926
|
+
};
|
|
927
|
+
}, never, LifecycleHooks>, makeOAuthRegistrationServices: <Registration, S extends AnySQLiteTable<{
|
|
928
|
+
dialect: "sqlite";
|
|
929
|
+
}>, O extends AnySQLiteTable<{
|
|
930
|
+
dialect: "sqlite";
|
|
931
|
+
}>, C extends AnySQLiteTable<{
|
|
932
|
+
dialect: "sqlite";
|
|
933
|
+
}>, AC extends AnySQLiteTable<{
|
|
934
|
+
dialect: "sqlite";
|
|
935
|
+
}>, TA extends AnySQLiteTable<{
|
|
936
|
+
dialect: "sqlite";
|
|
937
|
+
}>, I extends AnySQLiteTable<{
|
|
938
|
+
dialect: "sqlite";
|
|
939
|
+
}>, R extends AnySQLiteTable<{
|
|
940
|
+
dialect: "sqlite";
|
|
941
|
+
}>, N>(database: EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, mapping: OAuthRegistrationMapping<Registration, S, O, C, AC, TA, I, R, N>) => Effect.Effect<{
|
|
942
|
+
registrationAuthority: OAuthRegistrationAuthority<Registration>;
|
|
943
|
+
}, never, LifecycleHooks>, coordinateOAuthRegistration: {
|
|
944
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, TargetId, Registration, S extends AnySQLiteTable<{
|
|
945
|
+
dialect: "sqlite";
|
|
946
|
+
}>, O extends AnySQLiteTable<{
|
|
947
|
+
dialect: "sqlite";
|
|
948
|
+
}>, C extends AnySQLiteTable<{
|
|
949
|
+
dialect: "sqlite";
|
|
950
|
+
}>, AC extends AnySQLiteTable<{
|
|
951
|
+
dialect: "sqlite";
|
|
952
|
+
}>, TA extends AnySQLiteTable<{
|
|
953
|
+
dialect: "sqlite";
|
|
954
|
+
}>, I extends AnySQLiteTable<{
|
|
955
|
+
dialect: "sqlite";
|
|
956
|
+
}>, Rq extends AnySQLiteTable<{
|
|
957
|
+
dialect: "sqlite";
|
|
958
|
+
}>, N, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
959
|
+
readonly mapping: OAuthRegistrationMapping<NoInfer<Registration>, S, O, C, AC, TA, I, Rq, N>;
|
|
960
|
+
readonly target: SuppliedService<TargetId, OAuthRegistrationAuthority<Registration>>;
|
|
961
|
+
readonly transaction?: never;
|
|
962
|
+
}, body: Effect.Effect<A, E, NoInfer<TargetId>>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks>;
|
|
963
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, TargetId, Registration, S extends AnySQLiteTable<{
|
|
964
|
+
dialect: "sqlite";
|
|
965
|
+
}>, O extends AnySQLiteTable<{
|
|
966
|
+
dialect: "sqlite";
|
|
967
|
+
}>, C extends AnySQLiteTable<{
|
|
968
|
+
dialect: "sqlite";
|
|
969
|
+
}>, AC extends AnySQLiteTable<{
|
|
970
|
+
dialect: "sqlite";
|
|
971
|
+
}>, TA extends AnySQLiteTable<{
|
|
972
|
+
dialect: "sqlite";
|
|
973
|
+
}>, I extends AnySQLiteTable<{
|
|
974
|
+
dialect: "sqlite";
|
|
975
|
+
}>, Rq extends AnySQLiteTable<{
|
|
976
|
+
dialect: "sqlite";
|
|
977
|
+
}>, N, A, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
978
|
+
readonly mapping: OAuthRegistrationMapping<NoInfer<Registration>, S, O, C, AC, TA, I, Rq, N>;
|
|
979
|
+
readonly target: SuppliedService<TargetId, OAuthRegistrationAuthority<Registration>>;
|
|
980
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
981
|
+
readonly transaction: (...args: any[]) => any;
|
|
982
|
+
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
983
|
+
}, body: Effect.Effect<A, E, NoInfer<TargetId | TxId>>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks>;
|
|
984
|
+
}, coordinateOAuthSignIn: {
|
|
985
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
986
|
+
dialect: "sqlite";
|
|
987
|
+
}>, O extends AnySQLiteTable<{
|
|
988
|
+
dialect: "sqlite";
|
|
989
|
+
}>, C extends AnySQLiteTable<{
|
|
990
|
+
dialect: "sqlite";
|
|
991
|
+
}>, AC extends AnySQLiteTable<{
|
|
992
|
+
dialect: "sqlite";
|
|
993
|
+
}>, F extends AnySQLiteTable<{
|
|
994
|
+
dialect: "sqlite";
|
|
995
|
+
}>, N, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
996
|
+
readonly mapping: OAuthSignInMapping<S, O, C, AC, F, N>;
|
|
997
|
+
readonly transaction?: never;
|
|
998
|
+
}, body: Effect.Effect<A, E, NoInfer<OAuthSignInPersistence>>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks>;
|
|
999
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
1000
|
+
dialect: "sqlite";
|
|
1001
|
+
}>, O extends AnySQLiteTable<{
|
|
1002
|
+
dialect: "sqlite";
|
|
1003
|
+
}>, C extends AnySQLiteTable<{
|
|
1004
|
+
dialect: "sqlite";
|
|
1005
|
+
}>, AC extends AnySQLiteTable<{
|
|
1006
|
+
dialect: "sqlite";
|
|
1007
|
+
}>, F extends AnySQLiteTable<{
|
|
1008
|
+
dialect: "sqlite";
|
|
1009
|
+
}>, N, A, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
1010
|
+
readonly mapping: OAuthSignInMapping<S, O, C, AC, F, N>;
|
|
1011
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
1012
|
+
readonly transaction: (...args: any[]) => any;
|
|
1013
|
+
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
1014
|
+
}, body: Effect.Effect<A, E, NoInfer<TxId | OAuthSignInPersistence>>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks>;
|
|
1015
|
+
}, coordinateOAuthRegistrationIntents: {
|
|
1016
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
1017
|
+
dialect: "sqlite";
|
|
1018
|
+
}>, O extends AnySQLiteTable<{
|
|
1019
|
+
dialect: "sqlite";
|
|
1020
|
+
}>, C extends AnySQLiteTable<{
|
|
1021
|
+
dialect: "sqlite";
|
|
1022
|
+
}>, AC extends AnySQLiteTable<{
|
|
1023
|
+
dialect: "sqlite";
|
|
1024
|
+
}>, F extends AnySQLiteTable<{
|
|
1025
|
+
dialect: "sqlite";
|
|
1026
|
+
}>, TA extends AnySQLiteTable<{
|
|
1027
|
+
dialect: "sqlite";
|
|
1028
|
+
}>, I extends AnySQLiteTable<{
|
|
1029
|
+
dialect: "sqlite";
|
|
1030
|
+
}>, N, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
1031
|
+
readonly mapping: OAuthRegistrationIntentMapping<S, O, C, AC, F, TA, I, N>;
|
|
1032
|
+
readonly transaction?: never;
|
|
1033
|
+
}, body: Effect.Effect<A, E, NoInfer<OAuthRegistrationIntents>>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks>;
|
|
1034
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
1035
|
+
dialect: "sqlite";
|
|
1036
|
+
}>, O extends AnySQLiteTable<{
|
|
1037
|
+
dialect: "sqlite";
|
|
1038
|
+
}>, C extends AnySQLiteTable<{
|
|
1039
|
+
dialect: "sqlite";
|
|
1040
|
+
}>, AC extends AnySQLiteTable<{
|
|
1041
|
+
dialect: "sqlite";
|
|
1042
|
+
}>, F extends AnySQLiteTable<{
|
|
1043
|
+
dialect: "sqlite";
|
|
1044
|
+
}>, TA extends AnySQLiteTable<{
|
|
1045
|
+
dialect: "sqlite";
|
|
1046
|
+
}>, I extends AnySQLiteTable<{
|
|
1047
|
+
dialect: "sqlite";
|
|
1048
|
+
}>, N, A, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
1049
|
+
readonly mapping: OAuthRegistrationIntentMapping<S, O, C, AC, F, TA, I, N>;
|
|
1050
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
1051
|
+
readonly transaction: (...args: any[]) => any;
|
|
1052
|
+
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
1053
|
+
}, body: Effect.Effect<A, E, NoInfer<TxId | OAuthRegistrationIntents>>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks>;
|
|
1054
|
+
}, coordinateOAuthAccounts: {
|
|
1055
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
1056
|
+
dialect: "sqlite";
|
|
1057
|
+
}>, O extends AnySQLiteTable<{
|
|
1058
|
+
dialect: "sqlite";
|
|
1059
|
+
}>, C extends AnySQLiteTable<{
|
|
1060
|
+
dialect: "sqlite";
|
|
1061
|
+
}>, AC extends AnySQLiteTable<{
|
|
1062
|
+
dialect: "sqlite";
|
|
1063
|
+
}>, F extends AnySQLiteTable<{
|
|
1064
|
+
dialect: "sqlite";
|
|
1065
|
+
}>, TA extends AnySQLiteTable<{
|
|
1066
|
+
dialect: "sqlite";
|
|
1067
|
+
}>, U extends AnySQLiteTable<{
|
|
1068
|
+
dialect: "sqlite";
|
|
1069
|
+
}>, N, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
1070
|
+
readonly mapping: OAuthAccountsMapping<S, O, C, AC, F, TA, U, N>;
|
|
1071
|
+
readonly transaction?: never;
|
|
1072
|
+
}, body: Effect.Effect<A, E, NoInfer<OAuthAccountsPersistence>>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks>;
|
|
1073
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
1074
|
+
dialect: "sqlite";
|
|
1075
|
+
}>, O extends AnySQLiteTable<{
|
|
1076
|
+
dialect: "sqlite";
|
|
1077
|
+
}>, C extends AnySQLiteTable<{
|
|
1078
|
+
dialect: "sqlite";
|
|
1079
|
+
}>, AC extends AnySQLiteTable<{
|
|
1080
|
+
dialect: "sqlite";
|
|
1081
|
+
}>, F extends AnySQLiteTable<{
|
|
1082
|
+
dialect: "sqlite";
|
|
1083
|
+
}>, TA extends AnySQLiteTable<{
|
|
1084
|
+
dialect: "sqlite";
|
|
1085
|
+
}>, U extends AnySQLiteTable<{
|
|
1086
|
+
dialect: "sqlite";
|
|
1087
|
+
}>, N, A, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
1088
|
+
readonly mapping: OAuthAccountsMapping<S, O, C, AC, F, TA, U, N>;
|
|
1089
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
1090
|
+
readonly transaction: (...args: any[]) => any;
|
|
1091
|
+
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
1092
|
+
}, body: Effect.Effect<A, E, NoInfer<TxId | OAuthAccountsPersistence>>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks>;
|
|
1093
|
+
}, makeOAuthConnectedServices: <S extends AnySQLiteTable<{
|
|
1094
|
+
dialect: "sqlite";
|
|
1095
|
+
}>, AC extends AnySQLiteTable<{
|
|
1096
|
+
dialect: "sqlite";
|
|
1097
|
+
}>, T extends AnySQLiteTable<{
|
|
1098
|
+
dialect: "sqlite";
|
|
1099
|
+
}>, O extends AnySQLiteTable<{
|
|
1100
|
+
dialect: "sqlite";
|
|
1101
|
+
}>, F extends AnySQLiteTable<{
|
|
1102
|
+
dialect: "sqlite";
|
|
1103
|
+
}>, G extends AnySQLiteTable<{
|
|
1104
|
+
dialect: "sqlite";
|
|
1105
|
+
}>, C extends AnySQLiteTable<{
|
|
1106
|
+
dialect: "sqlite";
|
|
1107
|
+
}>, H extends AnySQLiteTable<{
|
|
1108
|
+
dialect: "sqlite";
|
|
1109
|
+
}>, UA extends AnySQLiteTable<{
|
|
1110
|
+
dialect: "sqlite";
|
|
1111
|
+
}>, DC extends AnySQLiteTable<{
|
|
1112
|
+
dialect: "sqlite";
|
|
1113
|
+
}>, N, J extends AnySQLiteTable<{
|
|
1114
|
+
dialect: "sqlite";
|
|
1115
|
+
}> = never>(database: EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, mapping: OAuthConnectedMapping<S, AC, T, O, F, G, C, H, UA, DC, N, J>) => Effect.Effect<{
|
|
1116
|
+
oauthConnectedPersistence: {
|
|
1117
|
+
readonly capture: (input: {
|
|
1118
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
1119
|
+
readonly subjectId: SubjectId;
|
|
1120
|
+
readonly grantId?: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1121
|
+
}) => Effect.Effect<{
|
|
1122
|
+
readonly revision: OAuthAccountRevision;
|
|
1123
|
+
readonly target?: OAuthConnectedTarget;
|
|
1124
|
+
} | undefined, OAuthUnavailable>;
|
|
1125
|
+
readonly issue: <A>(input: {
|
|
1126
|
+
readonly flow: OAuthConnectedPendingFlow;
|
|
1127
|
+
readonly authorization: OAuthConnectedActionAuthorization;
|
|
1128
|
+
}, prepare: PrepareOAuthCommit<{
|
|
1129
|
+
readonly _tag: "Rejected";
|
|
1130
|
+
} | {
|
|
1131
|
+
readonly _tag: "Issued";
|
|
1132
|
+
readonly flow: {
|
|
1133
|
+
readonly context: {
|
|
1134
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1135
|
+
readonly protocol: "oauth" | "oidc";
|
|
1136
|
+
readonly configurationGeneration: number;
|
|
1137
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
1138
|
+
readonly responseIssuerMode: "required" | "unsupported";
|
|
1139
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
1140
|
+
readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
|
|
1141
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
1142
|
+
readonly generation: number;
|
|
1143
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
1144
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
1145
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
1146
|
+
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1147
|
+
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1148
|
+
readonly requestBindingExpiresAtMillis: number;
|
|
1149
|
+
readonly issuedAtMillis: number;
|
|
1150
|
+
readonly expiresAtMillis: number;
|
|
1151
|
+
readonly claimLifetimeMillis: number;
|
|
1152
|
+
readonly namespace: "effect-auth/oauth-connected-context/v1";
|
|
1153
|
+
readonly revision: {
|
|
1154
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1155
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1156
|
+
readonly credentials: readonly {
|
|
1157
|
+
readonly credentialId: string;
|
|
1158
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1159
|
+
}[];
|
|
1160
|
+
};
|
|
1161
|
+
readonly profile: {
|
|
1162
|
+
readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
1163
|
+
readonly generation: number;
|
|
1164
|
+
readonly issuance: "active" | "retired";
|
|
1165
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1166
|
+
readonly clientRegistrationId: string;
|
|
1167
|
+
readonly scopes: readonly string[];
|
|
1168
|
+
readonly resources: readonly string[];
|
|
1169
|
+
readonly retention: "access-and-refresh" | "access-only";
|
|
1170
|
+
readonly maximumAccessLifetimeMillis: number;
|
|
1171
|
+
readonly maximumRefreshLifetimeMillis?: number | undefined;
|
|
1172
|
+
readonly refreshAheadMillis: number;
|
|
1173
|
+
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1174
|
+
readonly revocation: "cohort" | "unsupported";
|
|
1175
|
+
};
|
|
1176
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1177
|
+
readonly reconnect?: {
|
|
1178
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1179
|
+
readonly grantVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1180
|
+
readonly tokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1181
|
+
readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1182
|
+
readonly identity: {
|
|
1183
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1184
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
1185
|
+
readonly subject: string;
|
|
1186
|
+
};
|
|
1187
|
+
readonly configuration: {
|
|
1188
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1189
|
+
readonly protocol: "oauth" | "oidc";
|
|
1190
|
+
readonly configurationGeneration: number;
|
|
1191
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
1192
|
+
readonly responseIssuerMode: "required" | "unsupported";
|
|
1193
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
1194
|
+
readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
|
|
1195
|
+
readonly profile: {
|
|
1196
|
+
readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
1197
|
+
readonly generation: number;
|
|
1198
|
+
readonly issuance: "active" | "retired";
|
|
1199
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1200
|
+
readonly clientRegistrationId: string;
|
|
1201
|
+
readonly scopes: readonly string[];
|
|
1202
|
+
readonly resources: readonly string[];
|
|
1203
|
+
readonly retention: "access-and-refresh" | "access-only";
|
|
1204
|
+
readonly maximumAccessLifetimeMillis: number;
|
|
1205
|
+
readonly maximumRefreshLifetimeMillis?: number | undefined;
|
|
1206
|
+
readonly refreshAheadMillis: number;
|
|
1207
|
+
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1208
|
+
readonly revocation: "cohort" | "unsupported";
|
|
1209
|
+
};
|
|
1210
|
+
};
|
|
1211
|
+
} | undefined;
|
|
1212
|
+
readonly maximumEvidenceAgeMillis: number;
|
|
1213
|
+
};
|
|
1214
|
+
readonly sealed: {
|
|
1215
|
+
readonly format: "oauth-xchacha20poly1305-v1";
|
|
1216
|
+
readonly keyId: string;
|
|
1217
|
+
readonly nonce: string;
|
|
1218
|
+
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1219
|
+
};
|
|
1220
|
+
readonly retentionUntilMillis: number;
|
|
1221
|
+
};
|
|
1222
|
+
}, A>) => Effect.Effect<PreparedCommit<A>, OAuthUnavailable, never>;
|
|
1223
|
+
readonly preflight: (input: OAuthConnectedAccess) => Effect.Effect<OAuthConnectedPendingFlow | undefined, OAuthUnavailable>;
|
|
1224
|
+
readonly claim: <A>(input: {
|
|
1225
|
+
readonly access: OAuthConnectedAccess;
|
|
1226
|
+
readonly flow: OAuthConnectedPendingFlow;
|
|
1227
|
+
readonly claimId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
|
|
1228
|
+
readonly authorization: OAuthConnectedActionAuthorization;
|
|
1229
|
+
}, prepare: PrepareOAuthCommit<{
|
|
1230
|
+
readonly _tag: "Rejected";
|
|
1231
|
+
} | {
|
|
1232
|
+
readonly _tag: "Claimed";
|
|
1233
|
+
readonly claim: {
|
|
1234
|
+
readonly flow: {
|
|
1235
|
+
readonly context: {
|
|
1236
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1237
|
+
readonly protocol: "oauth" | "oidc";
|
|
1238
|
+
readonly configurationGeneration: number;
|
|
1239
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
1240
|
+
readonly responseIssuerMode: "required" | "unsupported";
|
|
1241
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
1242
|
+
readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
|
|
1243
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
1244
|
+
readonly generation: number;
|
|
1245
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
1246
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
1247
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
1248
|
+
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1249
|
+
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1250
|
+
readonly requestBindingExpiresAtMillis: number;
|
|
1251
|
+
readonly issuedAtMillis: number;
|
|
1252
|
+
readonly expiresAtMillis: number;
|
|
1253
|
+
readonly claimLifetimeMillis: number;
|
|
1254
|
+
readonly namespace: "effect-auth/oauth-connected-context/v1";
|
|
1255
|
+
readonly revision: {
|
|
1256
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1257
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1258
|
+
readonly credentials: readonly {
|
|
1259
|
+
readonly credentialId: string;
|
|
1260
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1261
|
+
}[];
|
|
1262
|
+
};
|
|
1263
|
+
readonly profile: {
|
|
1264
|
+
readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
1265
|
+
readonly generation: number;
|
|
1266
|
+
readonly issuance: "active" | "retired";
|
|
1267
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1268
|
+
readonly clientRegistrationId: string;
|
|
1269
|
+
readonly scopes: readonly string[];
|
|
1270
|
+
readonly resources: readonly string[];
|
|
1271
|
+
readonly retention: "access-and-refresh" | "access-only";
|
|
1272
|
+
readonly maximumAccessLifetimeMillis: number;
|
|
1273
|
+
readonly maximumRefreshLifetimeMillis?: number | undefined;
|
|
1274
|
+
readonly refreshAheadMillis: number;
|
|
1275
|
+
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1276
|
+
readonly revocation: "cohort" | "unsupported";
|
|
1277
|
+
};
|
|
1278
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1279
|
+
readonly reconnect?: {
|
|
1280
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1281
|
+
readonly grantVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1282
|
+
readonly tokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1283
|
+
readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1284
|
+
readonly identity: {
|
|
1285
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1286
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
1287
|
+
readonly subject: string;
|
|
1288
|
+
};
|
|
1289
|
+
readonly configuration: {
|
|
1290
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1291
|
+
readonly protocol: "oauth" | "oidc";
|
|
1292
|
+
readonly configurationGeneration: number;
|
|
1293
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
1294
|
+
readonly responseIssuerMode: "required" | "unsupported";
|
|
1295
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
1296
|
+
readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
|
|
1297
|
+
readonly profile: {
|
|
1298
|
+
readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
1299
|
+
readonly generation: number;
|
|
1300
|
+
readonly issuance: "active" | "retired";
|
|
1301
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1302
|
+
readonly clientRegistrationId: string;
|
|
1303
|
+
readonly scopes: readonly string[];
|
|
1304
|
+
readonly resources: readonly string[];
|
|
1305
|
+
readonly retention: "access-and-refresh" | "access-only";
|
|
1306
|
+
readonly maximumAccessLifetimeMillis: number;
|
|
1307
|
+
readonly maximumRefreshLifetimeMillis?: number | undefined;
|
|
1308
|
+
readonly refreshAheadMillis: number;
|
|
1309
|
+
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1310
|
+
readonly revocation: "cohort" | "unsupported";
|
|
1311
|
+
};
|
|
1312
|
+
};
|
|
1313
|
+
} | undefined;
|
|
1314
|
+
readonly maximumEvidenceAgeMillis: number;
|
|
1315
|
+
};
|
|
1316
|
+
readonly sealed: {
|
|
1317
|
+
readonly format: "oauth-xchacha20poly1305-v1";
|
|
1318
|
+
readonly keyId: string;
|
|
1319
|
+
readonly nonce: string;
|
|
1320
|
+
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1321
|
+
};
|
|
1322
|
+
readonly retentionUntilMillis: number;
|
|
1323
|
+
};
|
|
1324
|
+
readonly claimId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
|
|
1325
|
+
readonly claimedAtMillis: number;
|
|
1326
|
+
readonly claimExpiresAtMillis: number;
|
|
1327
|
+
readonly order: string;
|
|
1328
|
+
};
|
|
1329
|
+
}, A>) => Effect.Effect<PreparedCommit<A>, OAuthUnavailable, never>;
|
|
1330
|
+
readonly inspectGrant: (input: {
|
|
1331
|
+
readonly claim: OAuthConnectedClaim;
|
|
1332
|
+
readonly identity: {
|
|
1333
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1334
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
1335
|
+
readonly subject: string;
|
|
1336
|
+
};
|
|
1337
|
+
}) => Effect.Effect<{
|
|
1338
|
+
readonly _tag: "Rejected";
|
|
1339
|
+
} | {
|
|
1340
|
+
readonly _tag: "Target";
|
|
1341
|
+
readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1342
|
+
} | {
|
|
1343
|
+
readonly _tag: "Quarantine";
|
|
1344
|
+
readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1345
|
+
} | {
|
|
1346
|
+
readonly _tag: "Conflict";
|
|
1347
|
+
}, OAuthUnavailable>;
|
|
1348
|
+
readonly settle: <A>(input: {
|
|
1349
|
+
readonly claim: OAuthConnectedClaim;
|
|
1350
|
+
readonly outcome: OAuthConnectedOutcome;
|
|
1351
|
+
readonly authorization: OAuthConnectedActionAuthorization;
|
|
1352
|
+
readonly nowMillis: number;
|
|
1353
|
+
}, prepare: PrepareOAuthCommit<{
|
|
1354
|
+
readonly _tag: "Ambiguous";
|
|
1355
|
+
} | {
|
|
1356
|
+
readonly _tag: "Rejected";
|
|
1357
|
+
} | {
|
|
1358
|
+
readonly _tag: "Conflict";
|
|
1359
|
+
} | {
|
|
1360
|
+
readonly _tag: "Cancelled";
|
|
1361
|
+
} | {
|
|
1362
|
+
readonly _tag: "Connected";
|
|
1363
|
+
readonly grant: {
|
|
1364
|
+
readonly context: {
|
|
1365
|
+
readonly namespace: "effect-auth/oauth-connected-token-context/v1";
|
|
1366
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
1367
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1368
|
+
readonly identity: {
|
|
1369
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1370
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
1371
|
+
readonly subject: string;
|
|
1372
|
+
};
|
|
1373
|
+
readonly configuration: {
|
|
1374
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1375
|
+
readonly protocol: "oauth" | "oidc";
|
|
1376
|
+
readonly configurationGeneration: number;
|
|
1377
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
1378
|
+
readonly responseIssuerMode: "required" | "unsupported";
|
|
1379
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
1380
|
+
readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
|
|
1381
|
+
readonly profile: {
|
|
1382
|
+
readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
1383
|
+
readonly generation: number;
|
|
1384
|
+
readonly issuance: "active" | "retired";
|
|
1385
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1386
|
+
readonly clientRegistrationId: string;
|
|
1387
|
+
readonly scopes: readonly string[];
|
|
1388
|
+
readonly resources: readonly string[];
|
|
1389
|
+
readonly retention: "access-and-refresh" | "access-only";
|
|
1390
|
+
readonly maximumAccessLifetimeMillis: number;
|
|
1391
|
+
readonly maximumRefreshLifetimeMillis?: number | undefined;
|
|
1392
|
+
readonly refreshAheadMillis: number;
|
|
1393
|
+
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1394
|
+
readonly revocation: "cohort" | "unsupported";
|
|
1395
|
+
};
|
|
1396
|
+
};
|
|
1397
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1398
|
+
readonly grantVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1399
|
+
readonly tokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1400
|
+
readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1401
|
+
readonly metadata: {
|
|
1402
|
+
readonly scopes: readonly string[];
|
|
1403
|
+
readonly resources: readonly string[];
|
|
1404
|
+
readonly accessExpiresAtMillis?: number | undefined;
|
|
1405
|
+
readonly refreshExpiresAtMillis?: number | undefined;
|
|
1406
|
+
readonly useUntilMillis: number;
|
|
1407
|
+
readonly refreshUseUntilMillis?: number | undefined;
|
|
1408
|
+
readonly obtainedAtMillis: number;
|
|
1409
|
+
readonly profile?: {
|
|
1410
|
+
readonly displayName?: string | undefined;
|
|
1411
|
+
readonly handle?: string | undefined;
|
|
1412
|
+
} | undefined;
|
|
1413
|
+
};
|
|
1414
|
+
};
|
|
1415
|
+
readonly sealed: {
|
|
1416
|
+
readonly format: "oauth-connected-xchacha20poly1305-v1";
|
|
1417
|
+
readonly keyId: string;
|
|
1418
|
+
readonly nonce: string;
|
|
1419
|
+
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1420
|
+
};
|
|
1421
|
+
};
|
|
1422
|
+
} | {
|
|
1423
|
+
readonly _tag: "Busy";
|
|
1424
|
+
}, A>) => Effect.Effect<PreparedCommit<A>, OAuthUnavailable, never>;
|
|
1425
|
+
readonly list: (input: {
|
|
1426
|
+
readonly authorization: OAuthConnectedUseAuthorization;
|
|
1427
|
+
readonly limit: number;
|
|
1428
|
+
readonly cursor?: string;
|
|
1429
|
+
}) => Effect.Effect<{
|
|
1430
|
+
readonly items: readonly {
|
|
1431
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1432
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1433
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
1434
|
+
readonly profileKey: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
1435
|
+
readonly status: "Active" | "Disconnected" | "ReauthorizationRequired" | "Refreshing";
|
|
1436
|
+
readonly scopes: readonly string[];
|
|
1437
|
+
readonly accessExpiresAtMillis?: number | undefined;
|
|
1438
|
+
readonly useUntilMillis: number;
|
|
1439
|
+
readonly profile?: {
|
|
1440
|
+
readonly displayName?: string | undefined;
|
|
1441
|
+
readonly handle?: string | undefined;
|
|
1442
|
+
} | undefined;
|
|
1443
|
+
readonly remoteRevocation: "Confirmed" | "Pending" | "Unknown" | "Unsupported";
|
|
1444
|
+
}[];
|
|
1445
|
+
readonly cursor?: string | undefined;
|
|
1446
|
+
}, OAuthUnavailable>;
|
|
1447
|
+
readonly inspectDisconnect: (input: {
|
|
1448
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
1449
|
+
readonly subjectId: SubjectId;
|
|
1450
|
+
readonly authorization: OAuthConnectedUseAuthorization;
|
|
1451
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
1452
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1453
|
+
}) => Effect.Effect<{
|
|
1454
|
+
readonly _tag: "Rejected";
|
|
1455
|
+
} | {
|
|
1456
|
+
readonly _tag: "Conflict";
|
|
1457
|
+
} | {
|
|
1458
|
+
readonly _tag: "Target";
|
|
1459
|
+
readonly grant: {
|
|
1460
|
+
readonly context: {
|
|
1461
|
+
readonly namespace: "effect-auth/oauth-connected-token-context/v1";
|
|
1462
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
1463
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1464
|
+
readonly identity: {
|
|
1465
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1466
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
1467
|
+
readonly subject: string;
|
|
1468
|
+
};
|
|
1469
|
+
readonly configuration: {
|
|
1470
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1471
|
+
readonly protocol: "oauth" | "oidc";
|
|
1472
|
+
readonly configurationGeneration: number;
|
|
1473
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
1474
|
+
readonly responseIssuerMode: "required" | "unsupported";
|
|
1475
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
1476
|
+
readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
|
|
1477
|
+
readonly profile: {
|
|
1478
|
+
readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
1479
|
+
readonly generation: number;
|
|
1480
|
+
readonly issuance: "active" | "retired";
|
|
1481
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1482
|
+
readonly clientRegistrationId: string;
|
|
1483
|
+
readonly scopes: readonly string[];
|
|
1484
|
+
readonly resources: readonly string[];
|
|
1485
|
+
readonly retention: "access-and-refresh" | "access-only";
|
|
1486
|
+
readonly maximumAccessLifetimeMillis: number;
|
|
1487
|
+
readonly maximumRefreshLifetimeMillis?: number | undefined;
|
|
1488
|
+
readonly refreshAheadMillis: number;
|
|
1489
|
+
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1490
|
+
readonly revocation: "cohort" | "unsupported";
|
|
1491
|
+
};
|
|
1492
|
+
};
|
|
1493
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1494
|
+
readonly grantVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1495
|
+
readonly tokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1496
|
+
readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1497
|
+
readonly metadata: {
|
|
1498
|
+
readonly scopes: readonly string[];
|
|
1499
|
+
readonly resources: readonly string[];
|
|
1500
|
+
readonly accessExpiresAtMillis?: number | undefined;
|
|
1501
|
+
readonly refreshExpiresAtMillis?: number | undefined;
|
|
1502
|
+
readonly useUntilMillis: number;
|
|
1503
|
+
readonly refreshUseUntilMillis?: number | undefined;
|
|
1504
|
+
readonly obtainedAtMillis: number;
|
|
1505
|
+
readonly profile?: {
|
|
1506
|
+
readonly displayName?: string | undefined;
|
|
1507
|
+
readonly handle?: string | undefined;
|
|
1508
|
+
} | undefined;
|
|
1509
|
+
};
|
|
1510
|
+
};
|
|
1511
|
+
readonly sealed?: {
|
|
1512
|
+
readonly format: "oauth-connected-xchacha20poly1305-v1";
|
|
1513
|
+
readonly keyId: string;
|
|
1514
|
+
readonly nonce: string;
|
|
1515
|
+
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1516
|
+
} | undefined;
|
|
1517
|
+
};
|
|
1518
|
+
readonly revision: {
|
|
1519
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1520
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1521
|
+
readonly credentials: readonly {
|
|
1522
|
+
readonly credentialId: string;
|
|
1523
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1524
|
+
}[];
|
|
1525
|
+
};
|
|
1526
|
+
} | {
|
|
1527
|
+
readonly _tag: "Replay";
|
|
1528
|
+
readonly result: {
|
|
1529
|
+
readonly _tag: "Disconnected";
|
|
1530
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1531
|
+
readonly remoteRevocation: "Confirmed" | "Pending" | "Unknown" | "Unsupported";
|
|
1532
|
+
readonly affectedGrantCount: number;
|
|
1533
|
+
readonly replayed: boolean;
|
|
1534
|
+
};
|
|
1535
|
+
}, OAuthUnavailable>;
|
|
1536
|
+
readonly disconnect: <A>(input: {
|
|
1537
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
1538
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
1539
|
+
readonly grant: OAuthConnectedDisconnectGrant;
|
|
1540
|
+
readonly authorization: OAuthConnectedActionAuthorization;
|
|
1541
|
+
readonly revocation?: OAuthConnectedRevocationJob;
|
|
1542
|
+
readonly retentionUntilMillis: number;
|
|
1543
|
+
}, prepare: PrepareOAuthCommit<{
|
|
1544
|
+
readonly _tag: "Rejected";
|
|
1545
|
+
} | {
|
|
1546
|
+
readonly _tag: "Conflict";
|
|
1547
|
+
} | {
|
|
1548
|
+
readonly _tag: "Disconnected";
|
|
1549
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1550
|
+
readonly remoteRevocation: "Confirmed" | "Pending" | "Unknown" | "Unsupported";
|
|
1551
|
+
readonly affectedGrantCount: number;
|
|
1552
|
+
readonly replayed: boolean;
|
|
1553
|
+
}, A>) => Effect.Effect<PreparedCommit<A>, OAuthUnavailable, never>;
|
|
1554
|
+
readonly inspectAccess: (input: {
|
|
1555
|
+
readonly authorization: OAuthConnectedUseAuthorization;
|
|
1556
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1557
|
+
readonly profileKey: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
1558
|
+
}) => Effect.Effect<{
|
|
1559
|
+
readonly _tag: "Rejected";
|
|
1560
|
+
} | {
|
|
1561
|
+
readonly _tag: "Busy";
|
|
1562
|
+
} | {
|
|
1563
|
+
readonly _tag: "Target";
|
|
1564
|
+
readonly grant: {
|
|
1565
|
+
readonly context: {
|
|
1566
|
+
readonly namespace: "effect-auth/oauth-connected-token-context/v1";
|
|
1567
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
1568
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1569
|
+
readonly identity: {
|
|
1570
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1571
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
1572
|
+
readonly subject: string;
|
|
1573
|
+
};
|
|
1574
|
+
readonly configuration: {
|
|
1575
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1576
|
+
readonly protocol: "oauth" | "oidc";
|
|
1577
|
+
readonly configurationGeneration: number;
|
|
1578
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
1579
|
+
readonly responseIssuerMode: "required" | "unsupported";
|
|
1580
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
1581
|
+
readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
|
|
1582
|
+
readonly profile: {
|
|
1583
|
+
readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
1584
|
+
readonly generation: number;
|
|
1585
|
+
readonly issuance: "active" | "retired";
|
|
1586
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1587
|
+
readonly clientRegistrationId: string;
|
|
1588
|
+
readonly scopes: readonly string[];
|
|
1589
|
+
readonly resources: readonly string[];
|
|
1590
|
+
readonly retention: "access-and-refresh" | "access-only";
|
|
1591
|
+
readonly maximumAccessLifetimeMillis: number;
|
|
1592
|
+
readonly maximumRefreshLifetimeMillis?: number | undefined;
|
|
1593
|
+
readonly refreshAheadMillis: number;
|
|
1594
|
+
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1595
|
+
readonly revocation: "cohort" | "unsupported";
|
|
1596
|
+
};
|
|
1597
|
+
};
|
|
1598
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1599
|
+
readonly grantVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1600
|
+
readonly tokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1601
|
+
readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1602
|
+
readonly metadata: {
|
|
1603
|
+
readonly scopes: readonly string[];
|
|
1604
|
+
readonly resources: readonly string[];
|
|
1605
|
+
readonly accessExpiresAtMillis?: number | undefined;
|
|
1606
|
+
readonly refreshExpiresAtMillis?: number | undefined;
|
|
1607
|
+
readonly useUntilMillis: number;
|
|
1608
|
+
readonly refreshUseUntilMillis?: number | undefined;
|
|
1609
|
+
readonly obtainedAtMillis: number;
|
|
1610
|
+
readonly profile?: {
|
|
1611
|
+
readonly displayName?: string | undefined;
|
|
1612
|
+
readonly handle?: string | undefined;
|
|
1613
|
+
} | undefined;
|
|
1614
|
+
};
|
|
1615
|
+
};
|
|
1616
|
+
readonly sealed: {
|
|
1617
|
+
readonly format: "oauth-connected-xchacha20poly1305-v1";
|
|
1618
|
+
readonly keyId: string;
|
|
1619
|
+
readonly nonce: string;
|
|
1620
|
+
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1621
|
+
};
|
|
1622
|
+
};
|
|
1623
|
+
} | {
|
|
1624
|
+
readonly _tag: "ReauthorizationRequired";
|
|
1625
|
+
}, OAuthUnavailable>;
|
|
1626
|
+
readonly claimRefresh: <A>(input: {
|
|
1627
|
+
readonly grant: OAuthConnectedStoredGrant;
|
|
1628
|
+
readonly authorization: OAuthConnectedUseAuthorization;
|
|
1629
|
+
readonly claimId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
|
|
1630
|
+
readonly nextTokenVersion: OAuthConnectedRefreshClaim["nextTokenVersion"];
|
|
1631
|
+
readonly lifetimeMillis: number;
|
|
1632
|
+
}, prepare: PrepareOAuthCommit<{
|
|
1633
|
+
readonly _tag: "Rejected";
|
|
1634
|
+
} | {
|
|
1635
|
+
readonly _tag: "Busy";
|
|
1636
|
+
} | {
|
|
1637
|
+
readonly _tag: "ReauthorizationRequired";
|
|
1638
|
+
} | {
|
|
1639
|
+
readonly _tag: "Claimed";
|
|
1640
|
+
readonly claim: {
|
|
1641
|
+
readonly grant: {
|
|
1642
|
+
readonly context: {
|
|
1643
|
+
readonly namespace: "effect-auth/oauth-connected-token-context/v1";
|
|
1644
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
1645
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1646
|
+
readonly identity: {
|
|
1647
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1648
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
1649
|
+
readonly subject: string;
|
|
1650
|
+
};
|
|
1651
|
+
readonly configuration: {
|
|
1652
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1653
|
+
readonly protocol: "oauth" | "oidc";
|
|
1654
|
+
readonly configurationGeneration: number;
|
|
1655
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
1656
|
+
readonly responseIssuerMode: "required" | "unsupported";
|
|
1657
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
1658
|
+
readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
|
|
1659
|
+
readonly profile: {
|
|
1660
|
+
readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
1661
|
+
readonly generation: number;
|
|
1662
|
+
readonly issuance: "active" | "retired";
|
|
1663
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1664
|
+
readonly clientRegistrationId: string;
|
|
1665
|
+
readonly scopes: readonly string[];
|
|
1666
|
+
readonly resources: readonly string[];
|
|
1667
|
+
readonly retention: "access-and-refresh" | "access-only";
|
|
1668
|
+
readonly maximumAccessLifetimeMillis: number;
|
|
1669
|
+
readonly maximumRefreshLifetimeMillis?: number | undefined;
|
|
1670
|
+
readonly refreshAheadMillis: number;
|
|
1671
|
+
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1672
|
+
readonly revocation: "cohort" | "unsupported";
|
|
1673
|
+
};
|
|
1674
|
+
};
|
|
1675
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1676
|
+
readonly grantVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1677
|
+
readonly tokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1678
|
+
readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1679
|
+
readonly metadata: {
|
|
1680
|
+
readonly scopes: readonly string[];
|
|
1681
|
+
readonly resources: readonly string[];
|
|
1682
|
+
readonly accessExpiresAtMillis?: number | undefined;
|
|
1683
|
+
readonly refreshExpiresAtMillis?: number | undefined;
|
|
1684
|
+
readonly useUntilMillis: number;
|
|
1685
|
+
readonly refreshUseUntilMillis?: number | undefined;
|
|
1686
|
+
readonly obtainedAtMillis: number;
|
|
1687
|
+
readonly profile?: {
|
|
1688
|
+
readonly displayName?: string | undefined;
|
|
1689
|
+
readonly handle?: string | undefined;
|
|
1690
|
+
} | undefined;
|
|
1691
|
+
};
|
|
1692
|
+
};
|
|
1693
|
+
readonly sealed: {
|
|
1694
|
+
readonly format: "oauth-connected-xchacha20poly1305-v1";
|
|
1695
|
+
readonly keyId: string;
|
|
1696
|
+
readonly nonce: string;
|
|
1697
|
+
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1698
|
+
};
|
|
1699
|
+
};
|
|
1700
|
+
readonly claimId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
|
|
1701
|
+
readonly claimedAtMillis: number;
|
|
1702
|
+
readonly claimExpiresAtMillis: number;
|
|
1703
|
+
readonly nextTokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1704
|
+
};
|
|
1705
|
+
}, A>) => Effect.Effect<PreparedCommit<A>, OAuthUnavailable, never>;
|
|
1706
|
+
readonly settleRefresh: <A>(input: {
|
|
1707
|
+
readonly claim: OAuthConnectedRefreshClaim;
|
|
1708
|
+
readonly authorization: OAuthConnectedUseAuthorization;
|
|
1709
|
+
readonly outcome: OAuthConnectedRefreshOutcome;
|
|
1710
|
+
}, prepare: PrepareOAuthCommit<{
|
|
1711
|
+
readonly _tag: "Rejected";
|
|
1712
|
+
} | {
|
|
1713
|
+
readonly _tag: "ReauthorizationRequired";
|
|
1714
|
+
} | {
|
|
1715
|
+
readonly _tag: "Refreshed";
|
|
1716
|
+
readonly grant: {
|
|
1717
|
+
readonly context: {
|
|
1718
|
+
readonly namespace: "effect-auth/oauth-connected-token-context/v1";
|
|
1719
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
1720
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1721
|
+
readonly identity: {
|
|
1722
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1723
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
1724
|
+
readonly subject: string;
|
|
1725
|
+
};
|
|
1726
|
+
readonly configuration: {
|
|
1727
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1728
|
+
readonly protocol: "oauth" | "oidc";
|
|
1729
|
+
readonly configurationGeneration: number;
|
|
1730
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
1731
|
+
readonly responseIssuerMode: "required" | "unsupported";
|
|
1732
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
1733
|
+
readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
|
|
1734
|
+
readonly profile: {
|
|
1735
|
+
readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
1736
|
+
readonly generation: number;
|
|
1737
|
+
readonly issuance: "active" | "retired";
|
|
1738
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1739
|
+
readonly clientRegistrationId: string;
|
|
1740
|
+
readonly scopes: readonly string[];
|
|
1741
|
+
readonly resources: readonly string[];
|
|
1742
|
+
readonly retention: "access-and-refresh" | "access-only";
|
|
1743
|
+
readonly maximumAccessLifetimeMillis: number;
|
|
1744
|
+
readonly maximumRefreshLifetimeMillis?: number | undefined;
|
|
1745
|
+
readonly refreshAheadMillis: number;
|
|
1746
|
+
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1747
|
+
readonly revocation: "cohort" | "unsupported";
|
|
1748
|
+
};
|
|
1749
|
+
};
|
|
1750
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1751
|
+
readonly grantVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1752
|
+
readonly tokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1753
|
+
readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1754
|
+
readonly metadata: {
|
|
1755
|
+
readonly scopes: readonly string[];
|
|
1756
|
+
readonly resources: readonly string[];
|
|
1757
|
+
readonly accessExpiresAtMillis?: number | undefined;
|
|
1758
|
+
readonly refreshExpiresAtMillis?: number | undefined;
|
|
1759
|
+
readonly useUntilMillis: number;
|
|
1760
|
+
readonly refreshUseUntilMillis?: number | undefined;
|
|
1761
|
+
readonly obtainedAtMillis: number;
|
|
1762
|
+
readonly profile?: {
|
|
1763
|
+
readonly displayName?: string | undefined;
|
|
1764
|
+
readonly handle?: string | undefined;
|
|
1765
|
+
} | undefined;
|
|
1766
|
+
};
|
|
1767
|
+
};
|
|
1768
|
+
readonly sealed: {
|
|
1769
|
+
readonly format: "oauth-connected-xchacha20poly1305-v1";
|
|
1770
|
+
readonly keyId: string;
|
|
1771
|
+
readonly nonce: string;
|
|
1772
|
+
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1773
|
+
};
|
|
1774
|
+
};
|
|
1775
|
+
}, A>) => Effect.Effect<PreparedCommit<A>, OAuthUnavailable, never>;
|
|
1776
|
+
readonly admitUse: <A>(input: {
|
|
1777
|
+
readonly grant: OAuthConnectedStoredGrant;
|
|
1778
|
+
readonly authorization: OAuthConnectedUseAuthorization;
|
|
1779
|
+
readonly admissionId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
|
|
1780
|
+
readonly lifetimeMillis: number;
|
|
1781
|
+
}, prepare: PrepareOAuthCommit<{
|
|
1782
|
+
readonly _tag: "Rejected";
|
|
1783
|
+
} | {
|
|
1784
|
+
readonly _tag: "Busy";
|
|
1785
|
+
} | {
|
|
1786
|
+
readonly _tag: "ReauthorizationRequired";
|
|
1787
|
+
} | {
|
|
1788
|
+
readonly _tag: "Admitted";
|
|
1789
|
+
readonly admissionId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
|
|
1790
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1791
|
+
readonly tokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1792
|
+
readonly admittedAtMillis: number;
|
|
1793
|
+
readonly expiresAtMillis: number;
|
|
1794
|
+
}, A>) => Effect.Effect<PreparedCommit<A>, OAuthUnavailable, never>;
|
|
1795
|
+
readonly cleanup: <A>(input: OAuthCleanupInput, prepare: PrepareOAuthCommit<{
|
|
1796
|
+
readonly terminalized: number;
|
|
1797
|
+
readonly removed: number;
|
|
1798
|
+
readonly hasMore: boolean;
|
|
1799
|
+
}, A>) => Effect.Effect<PreparedCommit<A>, OAuthUnavailable, never>;
|
|
1800
|
+
};
|
|
1801
|
+
}, never, LifecycleHooks>, makeOAuthConnectedRevocationServices: <T extends AnySQLiteTable<{
|
|
1802
|
+
dialect: "sqlite";
|
|
1803
|
+
}>, O extends AnySQLiteTable<{
|
|
1804
|
+
dialect: "sqlite";
|
|
1805
|
+
}>, F extends AnySQLiteTable<{
|
|
1806
|
+
dialect: "sqlite";
|
|
1807
|
+
}>, G extends AnySQLiteTable<{
|
|
1808
|
+
dialect: "sqlite";
|
|
1809
|
+
}>, C extends AnySQLiteTable<{
|
|
1810
|
+
dialect: "sqlite";
|
|
1811
|
+
}>, H extends AnySQLiteTable<{
|
|
1812
|
+
dialect: "sqlite";
|
|
1813
|
+
}>, J extends AnySQLiteTable<{
|
|
1814
|
+
dialect: "sqlite";
|
|
1815
|
+
}>, N>(database: EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, mapping: OAuthConnectedRevocationMapping<T, O, F, G, C, H, J, N>) => Effect.Effect<{
|
|
1816
|
+
oauthConnectedRevocations: {
|
|
1817
|
+
readonly claim: <A>(input: {
|
|
1818
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
1819
|
+
readonly claimId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
|
|
1820
|
+
readonly lifetimeMillis: number;
|
|
1821
|
+
}, prepare: PrepareOAuthCommit<{
|
|
1822
|
+
readonly _tag: "Claimed";
|
|
1823
|
+
readonly claim: {
|
|
1824
|
+
readonly job: {
|
|
1825
|
+
readonly context: {
|
|
1826
|
+
readonly namespace: "effect-auth/oauth-connected-revocation-context/v1";
|
|
1827
|
+
readonly jobId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
|
|
1828
|
+
readonly token: {
|
|
1829
|
+
readonly namespace: "effect-auth/oauth-connected-token-context/v1";
|
|
1830
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
1831
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1832
|
+
readonly identity: {
|
|
1833
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1834
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
1835
|
+
readonly subject: string;
|
|
1836
|
+
};
|
|
1837
|
+
readonly configuration: {
|
|
1838
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1839
|
+
readonly protocol: "oauth" | "oidc";
|
|
1840
|
+
readonly configurationGeneration: number;
|
|
1841
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
1842
|
+
readonly responseIssuerMode: "required" | "unsupported";
|
|
1843
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
1844
|
+
readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
|
|
1845
|
+
readonly profile: {
|
|
1846
|
+
readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
1847
|
+
readonly generation: number;
|
|
1848
|
+
readonly issuance: "active" | "retired";
|
|
1849
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1850
|
+
readonly clientRegistrationId: string;
|
|
1851
|
+
readonly scopes: readonly string[];
|
|
1852
|
+
readonly resources: readonly string[];
|
|
1853
|
+
readonly retention: "access-and-refresh" | "access-only";
|
|
1854
|
+
readonly maximumAccessLifetimeMillis: number;
|
|
1855
|
+
readonly maximumRefreshLifetimeMillis?: number | undefined;
|
|
1856
|
+
readonly refreshAheadMillis: number;
|
|
1857
|
+
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1858
|
+
readonly revocation: "cohort" | "unsupported";
|
|
1859
|
+
};
|
|
1860
|
+
};
|
|
1861
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1862
|
+
readonly grantVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1863
|
+
readonly tokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1864
|
+
readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1865
|
+
readonly metadata: {
|
|
1866
|
+
readonly scopes: readonly string[];
|
|
1867
|
+
readonly resources: readonly string[];
|
|
1868
|
+
readonly accessExpiresAtMillis?: number | undefined;
|
|
1869
|
+
readonly refreshExpiresAtMillis?: number | undefined;
|
|
1870
|
+
readonly useUntilMillis: number;
|
|
1871
|
+
readonly refreshUseUntilMillis?: number | undefined;
|
|
1872
|
+
readonly obtainedAtMillis: number;
|
|
1873
|
+
readonly profile?: {
|
|
1874
|
+
readonly displayName?: string | undefined;
|
|
1875
|
+
readonly handle?: string | undefined;
|
|
1876
|
+
} | undefined;
|
|
1877
|
+
};
|
|
1878
|
+
};
|
|
1879
|
+
};
|
|
1880
|
+
readonly sealed: {
|
|
1881
|
+
readonly format: "oauth-connected-xchacha20poly1305-v1";
|
|
1882
|
+
readonly keyId: string;
|
|
1883
|
+
readonly nonce: string;
|
|
1884
|
+
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1885
|
+
};
|
|
1886
|
+
};
|
|
1887
|
+
readonly claimId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
|
|
1888
|
+
readonly claimedAtMillis: number;
|
|
1889
|
+
readonly claimExpiresAtMillis: number;
|
|
1890
|
+
};
|
|
1891
|
+
} | {
|
|
1892
|
+
readonly _tag: "Empty";
|
|
1893
|
+
}, A>) => Effect.Effect<PreparedCommit<A>, OAuthUnavailable>;
|
|
1894
|
+
readonly settle: <A>(input: {
|
|
1895
|
+
readonly claim: OAuthConnectedRevocationClaim;
|
|
1896
|
+
readonly outcome: "Confirmed" | "Unknown";
|
|
1897
|
+
}, prepare: PrepareOAuthCommit<{
|
|
1898
|
+
readonly settled: boolean;
|
|
1899
|
+
}, A>) => Effect.Effect<PreparedCommit<A>, OAuthUnavailable>;
|
|
1900
|
+
};
|
|
1901
|
+
}, never, LifecycleHooks>, coordinateOAuthConnected: {
|
|
1902
|
+
<D extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
1903
|
+
dialect: "sqlite";
|
|
1904
|
+
}>, AC extends AnySQLiteTable<{
|
|
1905
|
+
dialect: "sqlite";
|
|
1906
|
+
}>, T extends AnySQLiteTable<{
|
|
1907
|
+
dialect: "sqlite";
|
|
1908
|
+
}>, O extends AnySQLiteTable<{
|
|
1909
|
+
dialect: "sqlite";
|
|
1910
|
+
}>, F extends AnySQLiteTable<{
|
|
1911
|
+
dialect: "sqlite";
|
|
1912
|
+
}>, G extends AnySQLiteTable<{
|
|
1913
|
+
dialect: "sqlite";
|
|
1914
|
+
}>, C extends AnySQLiteTable<{
|
|
1915
|
+
dialect: "sqlite";
|
|
1916
|
+
}>, H extends AnySQLiteTable<{
|
|
1917
|
+
dialect: "sqlite";
|
|
1918
|
+
}>, UA extends AnySQLiteTable<{
|
|
1919
|
+
dialect: "sqlite";
|
|
1920
|
+
}>, DC extends AnySQLiteTable<{
|
|
1921
|
+
dialect: "sqlite";
|
|
1922
|
+
}>, N, J extends AnySQLiteTable<{
|
|
1923
|
+
dialect: "sqlite";
|
|
1924
|
+
}>, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<D, DatabaseError, DatabaseRequirements>, options: {
|
|
1925
|
+
readonly mapping: OAuthConnectedMapping<S, AC, T, O, F, G, C, H, UA, DC, N, J>;
|
|
1926
|
+
readonly transaction?: never;
|
|
1927
|
+
}, body: Effect.Effect<A, E, NoInfer<OAuthConnectedPersistence>>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks>;
|
|
1928
|
+
<D extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
1929
|
+
dialect: "sqlite";
|
|
1930
|
+
}>, AC extends AnySQLiteTable<{
|
|
1931
|
+
dialect: "sqlite";
|
|
1932
|
+
}>, T extends AnySQLiteTable<{
|
|
1933
|
+
dialect: "sqlite";
|
|
1934
|
+
}>, O extends AnySQLiteTable<{
|
|
1935
|
+
dialect: "sqlite";
|
|
1936
|
+
}>, F extends AnySQLiteTable<{
|
|
1937
|
+
dialect: "sqlite";
|
|
1938
|
+
}>, G extends AnySQLiteTable<{
|
|
1939
|
+
dialect: "sqlite";
|
|
1940
|
+
}>, C extends AnySQLiteTable<{
|
|
1941
|
+
dialect: "sqlite";
|
|
1942
|
+
}>, H extends AnySQLiteTable<{
|
|
1943
|
+
dialect: "sqlite";
|
|
1944
|
+
}>, UA extends AnySQLiteTable<{
|
|
1945
|
+
dialect: "sqlite";
|
|
1946
|
+
}>, DC extends AnySQLiteTable<{
|
|
1947
|
+
dialect: "sqlite";
|
|
1948
|
+
}>, N, J extends AnySQLiteTable<{
|
|
1949
|
+
dialect: "sqlite";
|
|
1950
|
+
}>, A, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<D, DatabaseError, DatabaseRequirements>, options: {
|
|
1951
|
+
readonly mapping: OAuthConnectedMapping<S, AC, T, O, F, G, C, H, UA, DC, N, J>;
|
|
1952
|
+
readonly transaction: SuppliedService<TxId, NoInfer<D extends {
|
|
1953
|
+
readonly transaction: (...args: any[]) => any;
|
|
1954
|
+
} ? Parameters<Parameters<D["transaction"]>[0]>[0] : never>, TxShape>;
|
|
1955
|
+
}, body: Effect.Effect<A, E, NoInfer<TxId | OAuthConnectedPersistence>>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks>;
|
|
1956
|
+
}, coordinateOAuthConnectedRevocations: {
|
|
1957
|
+
<D extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, T extends AnySQLiteTable<{
|
|
1958
|
+
dialect: "sqlite";
|
|
1959
|
+
}>, O extends AnySQLiteTable<{
|
|
1960
|
+
dialect: "sqlite";
|
|
1961
|
+
}>, F extends AnySQLiteTable<{
|
|
1962
|
+
dialect: "sqlite";
|
|
1963
|
+
}>, G extends AnySQLiteTable<{
|
|
1964
|
+
dialect: "sqlite";
|
|
1965
|
+
}>, C extends AnySQLiteTable<{
|
|
1966
|
+
dialect: "sqlite";
|
|
1967
|
+
}>, H extends AnySQLiteTable<{
|
|
1968
|
+
dialect: "sqlite";
|
|
1969
|
+
}>, J extends AnySQLiteTable<{
|
|
1970
|
+
dialect: "sqlite";
|
|
1971
|
+
}>, N, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<D, DatabaseError, DatabaseRequirements>, options: {
|
|
1972
|
+
readonly mapping: OAuthConnectedRevocationMapping<T, O, F, G, C, H, J, N>;
|
|
1973
|
+
readonly transaction?: never;
|
|
1974
|
+
}, body: Effect.Effect<A, E, NoInfer<OAuthConnectedRevocations>>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks>;
|
|
1975
|
+
<D extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, T extends AnySQLiteTable<{
|
|
1976
|
+
dialect: "sqlite";
|
|
1977
|
+
}>, O extends AnySQLiteTable<{
|
|
1978
|
+
dialect: "sqlite";
|
|
1979
|
+
}>, F extends AnySQLiteTable<{
|
|
1980
|
+
dialect: "sqlite";
|
|
1981
|
+
}>, G extends AnySQLiteTable<{
|
|
1982
|
+
dialect: "sqlite";
|
|
1983
|
+
}>, C extends AnySQLiteTable<{
|
|
1984
|
+
dialect: "sqlite";
|
|
1985
|
+
}>, H extends AnySQLiteTable<{
|
|
1986
|
+
dialect: "sqlite";
|
|
1987
|
+
}>, J extends AnySQLiteTable<{
|
|
1988
|
+
dialect: "sqlite";
|
|
1989
|
+
}>, N, A, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<D, DatabaseError, DatabaseRequirements>, options: {
|
|
1990
|
+
readonly mapping: OAuthConnectedRevocationMapping<T, O, F, G, C, H, J, N>;
|
|
1991
|
+
readonly transaction: SuppliedService<TxId, NoInfer<D extends {
|
|
1992
|
+
readonly transaction: (...args: any[]) => any;
|
|
1993
|
+
} ? Parameters<Parameters<D["transaction"]>[0]>[0] : never>, TxShape>;
|
|
1994
|
+
}, body: Effect.Effect<A, E, NoInfer<TxId | OAuthConnectedRevocations>>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks>;
|
|
1995
|
+
};
|
|
1996
|
+
declare const makePasskeyCredentialServices: <Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
1997
|
+
dialect: "sqlite";
|
|
1998
|
+
}>, C extends AnySQLiteTable<{
|
|
1999
|
+
dialect: "sqlite";
|
|
2000
|
+
}>, F extends AnySQLiteTable<{
|
|
2001
|
+
dialect: "sqlite";
|
|
2002
|
+
}>, O extends AnySQLiteTable<{
|
|
2003
|
+
dialect: "sqlite";
|
|
2004
|
+
}>, H extends AnySQLiteTable<{
|
|
2005
|
+
dialect: "sqlite";
|
|
2006
|
+
}>, N, RSetup = never>(database: Database, mapping: PasskeyMappingSource<PasskeyCredentialMapping<S, C, F, O, H, N>, RSetup>) => Effect.Effect<PasskeyCredentialServices, DrizzleMappingError | PasskeyConfigurationError, RSetup>, makePasskeyPersistenceServices: <Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2007
|
+
dialect: "sqlite";
|
|
2008
|
+
}>, C extends AnySQLiteTable<{
|
|
2009
|
+
dialect: "sqlite";
|
|
2010
|
+
}>, F extends AnySQLiteTable<{
|
|
2011
|
+
dialect: "sqlite";
|
|
2012
|
+
}>, O extends AnySQLiteTable<{
|
|
2013
|
+
dialect: "sqlite";
|
|
2014
|
+
}>, H extends AnySQLiteTable<{
|
|
2015
|
+
dialect: "sqlite";
|
|
2016
|
+
}>, M extends AnySQLiteTable<{
|
|
2017
|
+
dialect: "sqlite";
|
|
2018
|
+
}>, Flow extends AnySQLiteTable<{
|
|
2019
|
+
dialect: "sqlite";
|
|
2020
|
+
}>, Admission extends AnySQLiteTable<{
|
|
2021
|
+
dialect: "sqlite";
|
|
2022
|
+
}>, Charge extends AnySQLiteTable<{
|
|
2023
|
+
dialect: "sqlite";
|
|
2024
|
+
}>, N, RSetup = never>(database: Database, mapping: PasskeyMappingSource<PasskeyPersistenceMapping<PasskeyCredentialMapping<S, C, F, O, H, N>, M, Flow, Admission, Charge, N>, RSetup>) => Effect.Effect<PasskeyPersistenceServices, DrizzleMappingError | PasskeyConfigurationError, RSetup | LifecycleHooks>, makePasskeyEnrollmentContextServices: <Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2025
|
+
dialect: "sqlite";
|
|
2026
|
+
}>, C extends AnySQLiteTable<{
|
|
2027
|
+
dialect: "sqlite";
|
|
2028
|
+
}>, F extends AnySQLiteTable<{
|
|
2029
|
+
dialect: "sqlite";
|
|
2030
|
+
}>, O extends AnySQLiteTable<{
|
|
2031
|
+
dialect: "sqlite";
|
|
2032
|
+
}>, H extends AnySQLiteTable<{
|
|
2033
|
+
dialect: "sqlite";
|
|
2034
|
+
}>, M extends AnySQLiteTable<{
|
|
2035
|
+
dialect: "sqlite";
|
|
2036
|
+
}>, N, RSetup = never>(database: Database, mapping: PasskeyMappingSource<PasskeyEnrollmentContextMapping<PasskeyCredentialMapping<S, C, F, O, H, N>, M, N>, RSetup>) => Effect.Effect<PasskeyEnrollmentContextServices, DrizzleMappingError | PasskeyConfigurationError, RSetup>, makePasskeyRegistrationCeremonyServices: <Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, M extends AnySQLiteTable<{
|
|
2037
|
+
dialect: "sqlite";
|
|
2038
|
+
}>, Flow extends AnySQLiteTable<{
|
|
2039
|
+
dialect: "sqlite";
|
|
2040
|
+
}>, Admission extends AnySQLiteTable<{
|
|
2041
|
+
dialect: "sqlite";
|
|
2042
|
+
}>, Charge extends AnySQLiteTable<{
|
|
2043
|
+
dialect: "sqlite";
|
|
2044
|
+
}>, Intent extends AnySQLiteTable<{
|
|
2045
|
+
dialect: "sqlite";
|
|
2046
|
+
}>, H extends AnySQLiteTable<{
|
|
2047
|
+
dialect: "sqlite";
|
|
2048
|
+
}>, RSetup = never>(database: Database, mapping: PasskeyMappingSource<PasskeyRegistrationCeremonyMapping<M, Flow, Admission, Charge, Intent, H>, RSetup>) => Effect.Effect<PasskeyRegistrationCeremonyServices, DrizzleMappingError | PasskeyConfigurationError, RSetup | LifecycleHooks>, coordinatePasskeyPersistence: {
|
|
2049
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2050
|
+
dialect: "sqlite";
|
|
2051
|
+
}>, C extends AnySQLiteTable<{
|
|
2052
|
+
dialect: "sqlite";
|
|
2053
|
+
}>, F extends AnySQLiteTable<{
|
|
2054
|
+
dialect: "sqlite";
|
|
2055
|
+
}>, O extends AnySQLiteTable<{
|
|
2056
|
+
dialect: "sqlite";
|
|
2057
|
+
}>, H extends AnySQLiteTable<{
|
|
2058
|
+
dialect: "sqlite";
|
|
2059
|
+
}>, M extends AnySQLiteTable<{
|
|
2060
|
+
dialect: "sqlite";
|
|
2061
|
+
}>, Flow extends AnySQLiteTable<{
|
|
2062
|
+
dialect: "sqlite";
|
|
2063
|
+
}>, Admission extends AnySQLiteTable<{
|
|
2064
|
+
dialect: "sqlite";
|
|
2065
|
+
}>, Charge extends AnySQLiteTable<{
|
|
2066
|
+
dialect: "sqlite";
|
|
2067
|
+
}>, N, A, E, R, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
2068
|
+
readonly mapping: PasskeyMappingSource<PasskeyPersistenceMapping<PasskeyCredentialMapping<S, C, F, O, H, N>, M, Flow, Admission, Charge, N>, RSetup>;
|
|
2069
|
+
readonly transaction?: never;
|
|
2070
|
+
}, body: Effect.Effect<A, E, NoInfer<PasskeyPersistence>>): Effect.Effect<A, DatabaseError | PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks>;
|
|
2071
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2072
|
+
dialect: "sqlite";
|
|
2073
|
+
}>, C extends AnySQLiteTable<{
|
|
2074
|
+
dialect: "sqlite";
|
|
2075
|
+
}>, F extends AnySQLiteTable<{
|
|
2076
|
+
dialect: "sqlite";
|
|
2077
|
+
}>, O extends AnySQLiteTable<{
|
|
2078
|
+
dialect: "sqlite";
|
|
2079
|
+
}>, H extends AnySQLiteTable<{
|
|
2080
|
+
dialect: "sqlite";
|
|
2081
|
+
}>, M extends AnySQLiteTable<{
|
|
2082
|
+
dialect: "sqlite";
|
|
2083
|
+
}>, Flow extends AnySQLiteTable<{
|
|
2084
|
+
dialect: "sqlite";
|
|
2085
|
+
}>, Admission extends AnySQLiteTable<{
|
|
2086
|
+
dialect: "sqlite";
|
|
2087
|
+
}>, Charge extends AnySQLiteTable<{
|
|
2088
|
+
dialect: "sqlite";
|
|
2089
|
+
}>, N, A, E, R, TxId, TxShape, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
2090
|
+
readonly mapping: PasskeyMappingSource<PasskeyPersistenceMapping<PasskeyCredentialMapping<S, C, F, O, H, N>, M, Flow, Admission, Charge, N>, RSetup>;
|
|
2091
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
2092
|
+
readonly transaction: (...args: any[]) => any;
|
|
2093
|
+
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
2094
|
+
}, body: Effect.Effect<A, E, NoInfer<TxId | PasskeyPersistence>>): Effect.Effect<A, DatabaseError | PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks>;
|
|
2095
|
+
}, coordinatePasskeyRegistrationCeremony: {
|
|
2096
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, M extends AnySQLiteTable<{
|
|
2097
|
+
dialect: "sqlite";
|
|
2098
|
+
}>, Flow extends AnySQLiteTable<{
|
|
2099
|
+
dialect: "sqlite";
|
|
2100
|
+
}>, Admission extends AnySQLiteTable<{
|
|
2101
|
+
dialect: "sqlite";
|
|
2102
|
+
}>, Charge extends AnySQLiteTable<{
|
|
2103
|
+
dialect: "sqlite";
|
|
2104
|
+
}>, Intent extends AnySQLiteTable<{
|
|
2105
|
+
dialect: "sqlite";
|
|
2106
|
+
}>, H extends AnySQLiteTable<{
|
|
2107
|
+
dialect: "sqlite";
|
|
2108
|
+
}>, A, E, R, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
2109
|
+
readonly mapping: PasskeyMappingSource<PasskeyRegistrationCeremonyMapping<M, Flow, Admission, Charge, Intent, H>, RSetup>;
|
|
2110
|
+
readonly transaction?: never;
|
|
2111
|
+
}, body: Effect.Effect<A, E, NoInfer<PasskeyPersistence>>): Effect.Effect<A, DatabaseError | PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks>;
|
|
2112
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, M extends AnySQLiteTable<{
|
|
2113
|
+
dialect: "sqlite";
|
|
2114
|
+
}>, Flow extends AnySQLiteTable<{
|
|
2115
|
+
dialect: "sqlite";
|
|
2116
|
+
}>, Admission extends AnySQLiteTable<{
|
|
2117
|
+
dialect: "sqlite";
|
|
2118
|
+
}>, Charge extends AnySQLiteTable<{
|
|
2119
|
+
dialect: "sqlite";
|
|
2120
|
+
}>, Intent extends AnySQLiteTable<{
|
|
2121
|
+
dialect: "sqlite";
|
|
2122
|
+
}>, H extends AnySQLiteTable<{
|
|
2123
|
+
dialect: "sqlite";
|
|
2124
|
+
}>, A, E, R, TxId, TxShape, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
2125
|
+
readonly mapping: PasskeyMappingSource<PasskeyRegistrationCeremonyMapping<M, Flow, Admission, Charge, Intent, H>, RSetup>;
|
|
2126
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
2127
|
+
readonly transaction: (...args: any[]) => any;
|
|
2128
|
+
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
2129
|
+
}, body: Effect.Effect<A, E, NoInfer<TxId | PasskeyPersistence>>): Effect.Effect<A, DatabaseError | PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks>;
|
|
2130
|
+
}, makePasskeyManagementServices: <Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2131
|
+
dialect: "sqlite";
|
|
2132
|
+
}>, C extends AnySQLiteTable<{
|
|
2133
|
+
dialect: "sqlite";
|
|
2134
|
+
}>, F extends AnySQLiteTable<{
|
|
2135
|
+
dialect: "sqlite";
|
|
2136
|
+
}>, O extends AnySQLiteTable<{
|
|
2137
|
+
dialect: "sqlite";
|
|
2138
|
+
}>, H extends AnySQLiteTable<{
|
|
2139
|
+
dialect: "sqlite";
|
|
2140
|
+
}>, M extends AnySQLiteTable<{
|
|
2141
|
+
dialect: "sqlite";
|
|
2142
|
+
}>, Flow extends AnySQLiteTable<{
|
|
2143
|
+
dialect: "sqlite";
|
|
2144
|
+
}>, Admission extends AnySQLiteTable<{
|
|
2145
|
+
dialect: "sqlite";
|
|
2146
|
+
}>, Charge extends AnySQLiteTable<{
|
|
2147
|
+
dialect: "sqlite";
|
|
2148
|
+
}>, Command extends AnySQLiteTable<{
|
|
2149
|
+
dialect: "sqlite";
|
|
2150
|
+
}>, N, RSetup = never>(database: Database, mapping: PasskeyMappingSource<PasskeyManagementMapping<S, C, F, O, H, M, Flow, Admission, Charge, Command, N>, RSetup>) => Effect.Effect<PasskeyManagementServices, DrizzleMappingError | PasskeyConfigurationError, RSetup | LifecycleHooks>, makePasskeyRegistrationServices: <Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2151
|
+
dialect: "sqlite";
|
|
2152
|
+
}>, C extends AnySQLiteTable<{
|
|
2153
|
+
dialect: "sqlite";
|
|
2154
|
+
}>, F extends AnySQLiteTable<{
|
|
2155
|
+
dialect: "sqlite";
|
|
2156
|
+
}>, O extends AnySQLiteTable<{
|
|
2157
|
+
dialect: "sqlite";
|
|
2158
|
+
}>, H extends AnySQLiteTable<{
|
|
2159
|
+
dialect: "sqlite";
|
|
2160
|
+
}>, M extends AnySQLiteTable<{
|
|
2161
|
+
dialect: "sqlite";
|
|
2162
|
+
}>, Flow extends AnySQLiteTable<{
|
|
2163
|
+
dialect: "sqlite";
|
|
2164
|
+
}>, Admission extends AnySQLiteTable<{
|
|
2165
|
+
dialect: "sqlite";
|
|
2166
|
+
}>, Charge extends AnySQLiteTable<{
|
|
2167
|
+
dialect: "sqlite";
|
|
2168
|
+
}>, Intent extends AnySQLiteTable<{
|
|
2169
|
+
dialect: "sqlite";
|
|
2170
|
+
}>, N, Value, RSetup = never>(database: Database, mapping: PasskeyMappingSource<PasskeyRegistrationMapping<S, C, F, O, H, M, Flow, Admission, Charge, Intent, N, Value>, RSetup>) => Effect.Effect<PasskeyRegistrationServices<Value>, DrizzleMappingError | PasskeyConfigurationError, RSetup | LifecycleHooks>, coordinatePasskeyManagement: {
|
|
2171
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2172
|
+
dialect: "sqlite";
|
|
2173
|
+
}>, C extends AnySQLiteTable<{
|
|
2174
|
+
dialect: "sqlite";
|
|
2175
|
+
}>, F extends AnySQLiteTable<{
|
|
2176
|
+
dialect: "sqlite";
|
|
2177
|
+
}>, O extends AnySQLiteTable<{
|
|
2178
|
+
dialect: "sqlite";
|
|
2179
|
+
}>, H extends AnySQLiteTable<{
|
|
2180
|
+
dialect: "sqlite";
|
|
2181
|
+
}>, M extends AnySQLiteTable<{
|
|
2182
|
+
dialect: "sqlite";
|
|
2183
|
+
}>, Flow extends AnySQLiteTable<{
|
|
2184
|
+
dialect: "sqlite";
|
|
2185
|
+
}>, Admission extends AnySQLiteTable<{
|
|
2186
|
+
dialect: "sqlite";
|
|
2187
|
+
}>, Charge extends AnySQLiteTable<{
|
|
2188
|
+
dialect: "sqlite";
|
|
2189
|
+
}>, Command extends AnySQLiteTable<{
|
|
2190
|
+
dialect: "sqlite";
|
|
2191
|
+
}>, N, A, E, R, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
2192
|
+
readonly mapping: PasskeyMappingSource<PasskeyManagementMapping<S, C, F, O, H, M, Flow, Admission, Charge, Command, N>, RSetup>;
|
|
2193
|
+
readonly transaction?: never;
|
|
2194
|
+
}, body: Effect.Effect<A, E, NoInfer<PasskeyManagementPersistence | PasskeyPersistence>>): Effect.Effect<A, DatabaseError | PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks>;
|
|
2195
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2196
|
+
dialect: "sqlite";
|
|
2197
|
+
}>, C extends AnySQLiteTable<{
|
|
2198
|
+
dialect: "sqlite";
|
|
2199
|
+
}>, F extends AnySQLiteTable<{
|
|
2200
|
+
dialect: "sqlite";
|
|
2201
|
+
}>, O extends AnySQLiteTable<{
|
|
2202
|
+
dialect: "sqlite";
|
|
2203
|
+
}>, H extends AnySQLiteTable<{
|
|
2204
|
+
dialect: "sqlite";
|
|
2205
|
+
}>, M extends AnySQLiteTable<{
|
|
2206
|
+
dialect: "sqlite";
|
|
2207
|
+
}>, Flow extends AnySQLiteTable<{
|
|
2208
|
+
dialect: "sqlite";
|
|
2209
|
+
}>, Admission extends AnySQLiteTable<{
|
|
2210
|
+
dialect: "sqlite";
|
|
2211
|
+
}>, Charge extends AnySQLiteTable<{
|
|
2212
|
+
dialect: "sqlite";
|
|
2213
|
+
}>, Command extends AnySQLiteTable<{
|
|
2214
|
+
dialect: "sqlite";
|
|
2215
|
+
}>, N, A, E, R, TxId, TxShape, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
2216
|
+
readonly mapping: PasskeyMappingSource<PasskeyManagementMapping<S, C, F, O, H, M, Flow, Admission, Charge, Command, N>, RSetup>;
|
|
2217
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
2218
|
+
readonly transaction: (...args: any[]) => any;
|
|
2219
|
+
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
2220
|
+
}, body: Effect.Effect<A, E, NoInfer<TxId | PasskeyManagementPersistence | PasskeyPersistence>>): Effect.Effect<A, DatabaseError | PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks>;
|
|
2221
|
+
}, coordinatePasskeyRegistration: {
|
|
2222
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2223
|
+
dialect: "sqlite";
|
|
2224
|
+
}>, C extends AnySQLiteTable<{
|
|
2225
|
+
dialect: "sqlite";
|
|
2226
|
+
}>, F extends AnySQLiteTable<{
|
|
2227
|
+
dialect: "sqlite";
|
|
2228
|
+
}>, O extends AnySQLiteTable<{
|
|
2229
|
+
dialect: "sqlite";
|
|
2230
|
+
}>, H extends AnySQLiteTable<{
|
|
2231
|
+
dialect: "sqlite";
|
|
2232
|
+
}>, M extends AnySQLiteTable<{
|
|
2233
|
+
dialect: "sqlite";
|
|
2234
|
+
}>, Flow extends AnySQLiteTable<{
|
|
2235
|
+
dialect: "sqlite";
|
|
2236
|
+
}>, Admission extends AnySQLiteTable<{
|
|
2237
|
+
dialect: "sqlite";
|
|
2238
|
+
}>, Charge extends AnySQLiteTable<{
|
|
2239
|
+
dialect: "sqlite";
|
|
2240
|
+
}>, Intent extends AnySQLiteTable<{
|
|
2241
|
+
dialect: "sqlite";
|
|
2242
|
+
}>, N, Value, A, E, R, AuthorityId, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
2243
|
+
readonly mapping: PasskeyMappingSource<PasskeyRegistrationMapping<S, C, F, O, H, M, Flow, Admission, Charge, Intent, N, Value>, RSetup>;
|
|
2244
|
+
readonly authority: Context.Key<AuthorityId, PasskeyRegistrationWriter<Value>>;
|
|
2245
|
+
readonly transaction?: never;
|
|
2246
|
+
}, body: Effect.Effect<A, E, NoInfer<AuthorityId | PasskeyPersistence>>): Effect.Effect<A, DatabaseError | PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks>;
|
|
2247
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2248
|
+
dialect: "sqlite";
|
|
2249
|
+
}>, C extends AnySQLiteTable<{
|
|
2250
|
+
dialect: "sqlite";
|
|
2251
|
+
}>, F extends AnySQLiteTable<{
|
|
2252
|
+
dialect: "sqlite";
|
|
2253
|
+
}>, O extends AnySQLiteTable<{
|
|
2254
|
+
dialect: "sqlite";
|
|
2255
|
+
}>, H extends AnySQLiteTable<{
|
|
2256
|
+
dialect: "sqlite";
|
|
2257
|
+
}>, M extends AnySQLiteTable<{
|
|
2258
|
+
dialect: "sqlite";
|
|
2259
|
+
}>, Flow extends AnySQLiteTable<{
|
|
2260
|
+
dialect: "sqlite";
|
|
2261
|
+
}>, Admission extends AnySQLiteTable<{
|
|
2262
|
+
dialect: "sqlite";
|
|
2263
|
+
}>, Charge extends AnySQLiteTable<{
|
|
2264
|
+
dialect: "sqlite";
|
|
2265
|
+
}>, Intent extends AnySQLiteTable<{
|
|
2266
|
+
dialect: "sqlite";
|
|
2267
|
+
}>, N, Value, A, E, R, AuthorityId, TxId, TxShape, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
2268
|
+
readonly mapping: PasskeyMappingSource<PasskeyRegistrationMapping<S, C, F, O, H, M, Flow, Admission, Charge, Intent, N, Value>, RSetup>;
|
|
2269
|
+
readonly authority: Context.Key<AuthorityId, PasskeyRegistrationWriter<Value>>;
|
|
2270
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
2271
|
+
readonly transaction: (...args: any[]) => any;
|
|
2272
|
+
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
2273
|
+
}, body: Effect.Effect<A, E, NoInfer<AuthorityId | TxId | PasskeyPersistence>>): Effect.Effect<A, DatabaseError | PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks>;
|
|
2274
|
+
};
|
|
2275
|
+
declare const makeTotpPersistenceServices: <Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2276
|
+
dialect: "sqlite";
|
|
2277
|
+
}>, F extends AnySQLiteTable<{
|
|
2278
|
+
dialect: "sqlite";
|
|
2279
|
+
}>, C extends AnySQLiteTable<{
|
|
2280
|
+
dialect: "sqlite";
|
|
2281
|
+
}>, N, RSetup = never>(database: Database, mapping: TotpMappingSource<TotpMapping<S, F, C, N>, RSetup>) => Effect.Effect<TotpPersistenceServices, DrizzleMappingError | TotpConfigurationError, RSetup | LifecycleHooks>, coordinateTotpPersistence: {
|
|
2282
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2283
|
+
dialect: "sqlite";
|
|
2284
|
+
}>, F extends AnySQLiteTable<{
|
|
2285
|
+
dialect: "sqlite";
|
|
2286
|
+
}>, C extends AnySQLiteTable<{
|
|
2287
|
+
dialect: "sqlite";
|
|
2288
|
+
}>, N, A, E, R, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
2289
|
+
readonly mapping: TotpMappingSource<TotpMapping<S, F, C, N>, RSetup>;
|
|
2290
|
+
readonly transaction?: never;
|
|
2291
|
+
}, body: Effect.Effect<A, E, NoInfer<TotpPersistence>>): Effect.Effect<A, DatabaseError | TotpCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks>;
|
|
2292
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2293
|
+
dialect: "sqlite";
|
|
2294
|
+
}>, F extends AnySQLiteTable<{
|
|
2295
|
+
dialect: "sqlite";
|
|
2296
|
+
}>, C extends AnySQLiteTable<{
|
|
2297
|
+
dialect: "sqlite";
|
|
2298
|
+
}>, N, A, E, R, TxId, TxShape, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
2299
|
+
readonly mapping: TotpMappingSource<TotpMapping<S, F, C, N>, RSetup>;
|
|
2300
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
2301
|
+
readonly transaction: (...args: any[]) => any;
|
|
2302
|
+
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
2303
|
+
}, body: Effect.Effect<A, E, NoInfer<TxId | TotpPersistence>>): Effect.Effect<A, DatabaseError | TotpCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks>;
|
|
2304
|
+
};
|
|
2305
|
+
declare const makePhonePersistenceServices: <Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2306
|
+
dialect: "sqlite";
|
|
2307
|
+
}>, I extends AnySQLiteTable<{
|
|
2308
|
+
dialect: "sqlite";
|
|
2309
|
+
}>, F extends AnySQLiteTable<{
|
|
2310
|
+
dialect: "sqlite";
|
|
2311
|
+
}>, C extends AnySQLiteTable<{
|
|
2312
|
+
dialect: "sqlite";
|
|
2313
|
+
}>, N, RSetup = never>(database: Database, mapping: PhoneMappingSource<PhoneMapping<S, I, C, F, N>, RSetup>) => Effect.Effect<PhonePersistenceServices, DrizzleMappingError | PhoneConfigurationError, RSetup | LifecycleHooks>, coordinatePhonePersistence: {
|
|
2314
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2315
|
+
dialect: "sqlite";
|
|
2316
|
+
}>, I extends AnySQLiteTable<{
|
|
2317
|
+
dialect: "sqlite";
|
|
2318
|
+
}>, F extends AnySQLiteTable<{
|
|
2319
|
+
dialect: "sqlite";
|
|
2320
|
+
}>, C extends AnySQLiteTable<{
|
|
2321
|
+
dialect: "sqlite";
|
|
2322
|
+
}>, N, A, E, R, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
2323
|
+
readonly mapping: PhoneMappingSource<PhoneMapping<S, I, C, F, N>, RSetup>;
|
|
2324
|
+
readonly transaction?: never;
|
|
2325
|
+
}, body: Effect.Effect<A, E, NoInfer<PhoneAdmission | PhonePersistence | PhoneSignInTargets>>): Effect.Effect<A, DatabaseError | PhoneCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks>;
|
|
2326
|
+
<Database extends EffectSQLiteDoDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2327
|
+
dialect: "sqlite";
|
|
2328
|
+
}>, I extends AnySQLiteTable<{
|
|
2329
|
+
dialect: "sqlite";
|
|
2330
|
+
}>, F extends AnySQLiteTable<{
|
|
2331
|
+
dialect: "sqlite";
|
|
2332
|
+
}>, C extends AnySQLiteTable<{
|
|
2333
|
+
dialect: "sqlite";
|
|
2334
|
+
}>, N, A, E, R, TxId, TxShape, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
2335
|
+
readonly mapping: PhoneMappingSource<PhoneMapping<S, I, C, F, N>, RSetup>;
|
|
2336
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
2337
|
+
readonly transaction: (...args: any[]) => any;
|
|
2338
|
+
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
2339
|
+
}, body: Effect.Effect<A, E, NoInfer<TxId | PhoneAdmission | PhonePersistence | PhoneSignInTargets>>): Effect.Effect<A, DatabaseError | PhoneCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks>;
|
|
2340
|
+
};
|
|
2341
|
+
//#endregion
|
|
2342
|
+
export { commitMode, coordinateAuthStoreTransaction, coordinateAuthTransaction, coordinateAuthenticationAuthority, coordinateEmailAddress, coordinateEmailRegistration, coordinateOAuthAccounts, coordinateOAuthConnected, coordinateOAuthConnectedRevocations, coordinateOAuthRegistration, coordinateOAuthRegistrationIntents, coordinateOAuthSignIn, coordinateOAuthStateTransaction, coordinatePasskeyManagement, coordinatePasskeyPersistence, coordinatePasskeyRegistration, coordinatePasskeyRegistrationCeremony, coordinatePasswordPersistence, coordinatePasswordPreparedPersistence, coordinatePasswordRegistration, coordinatePendingAuthentication, coordinatePhonePersistence, coordinateProofPersistence, coordinateSessionStepUp, coordinateSignedSessionValidity, coordinateStatefulSessions, coordinateTotpPersistence, makeAuthServices, makeAuthStoreServices, makeAuthenticationAuthorityServices, makeEmailAddressServices, makeEmailRegistrationServices, makeEmailSignInServices, makeExternalIdentityServices, makeIdentityServices, makeOAuthAccountsServices, makeOAuthConnectedRevocationServices, makeOAuthConnectedServices, makeOAuthRegistrationIntentServices, makeOAuthRegistrationServices, makeOAuthSignInServices, makeOAuthStateServices, makePasskeyCredentialServices, makePasskeyEnrollmentContextServices, makePasskeyManagementServices, makePasskeyPersistenceServices, makePasskeyRegistrationCeremonyServices, makePasskeyRegistrationServices, makePasswordPersistenceServices, makePasswordPreparedPersistenceServices, makePasswordRegistrationServices, makePendingAuthenticationServices, makePhonePersistenceServices, makeProofPersistenceServices, makeSessionStepUpServices, makeSignedSessionValidityServices, makeStatefulSessionServices, makeSubjectProvisioningServices, makeTotpPersistenceServices, passwordPreparedPersistenceLayer };
|
|
2343
|
+
//# sourceMappingURL=DrizzleSqliteDo.d.mts.map
|