@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,1808 @@
|
|
|
1
|
+
import { ConsumeChallenge, ConsumeRegistration, NewChallenge, NewRegistration, PendingRegistration, SubjectId, TokenDigest, VerifiedEmail } from "./Schema.mjs";
|
|
2
|
+
import { ExternalIdentity, IdentityConflict, IdentityUnavailable, ProvisioningResult } from "./identity/models.mjs";
|
|
3
|
+
import { LifecycleHooks } from "./hooks/LifecycleHooks.mjs";
|
|
4
|
+
import { PreparedCommit } from "./hooks/commit.mjs";
|
|
5
|
+
import { RequestBindingFlowId } from "./operations/requestBindingModels.mjs";
|
|
6
|
+
import "./Operations.mjs";
|
|
7
|
+
import { SessionInvalidationWindow } from "./sessions/invalidation.mjs";
|
|
8
|
+
import "./Hooks.mjs";
|
|
9
|
+
import "./Sessions.mjs";
|
|
10
|
+
import { AuthStoreError, InvalidRegistration } from "./Errors.mjs";
|
|
11
|
+
import { ConsumeDecision } from "./auth/ConsumeDecision.mjs";
|
|
12
|
+
import { ChallengeConsumeDecision } from "./internal/AuthStoreDecisions.mjs";
|
|
13
|
+
import { EmailOtpRejected, IssueChallengeError } from "./AuthStore.mjs";
|
|
14
|
+
import { SubjectProvisioningInput } from "./identity/SubjectProvisioner.mjs";
|
|
15
|
+
import { InvalidOAuthState } from "./oauth/errors.mjs";
|
|
16
|
+
import { OAuthProviderKey, OAuthState } from "./oauth/schema.mjs";
|
|
17
|
+
import { AuthTables, DrizzleMappingError, IdentityTables } from "./drizzle/model.mjs";
|
|
18
|
+
import "./Identity.mjs";
|
|
19
|
+
import { PasskeyConfigurationError } from "./passkey/errors.mjs";
|
|
20
|
+
import { PasskeyPersistence } from "./passkey/PasskeyPersistence.mjs";
|
|
21
|
+
import { PasskeyCredentialMapping, PasskeyCredentialServices, PasskeyEnrollmentContextMapping, PasskeyEnrollmentContextServices, PasskeyMappingSource, PasskeyPersistenceMapping, PasskeyPersistenceServices } from "./drizzle/passkey-model.mjs";
|
|
22
|
+
import { OAuthRegistrationIntent } from "./oauth/registrationModels.mjs";
|
|
23
|
+
import { OAuthUnavailable } from "./oauth/signInErrors.mjs";
|
|
24
|
+
import { OAuthClaim, OAuthClaimDecision, OAuthCleanupInput, OAuthCredentialSnapshot, OAuthIssueDecision, OAuthPendingFlow, OAuthSettlementDecision, OAuthVerifiedExternalIdentity } from "./oauth/signInModels.mjs";
|
|
25
|
+
import { OAuthSignInPersistence, PrepareOAuthCommit } from "./oauth/OAuthSignInPersistence.mjs";
|
|
26
|
+
import { OAuthAccountRevision, OAuthActionAuthorization, OAuthLinkAccess, OAuthLinkClaim, OAuthLinkOutcome, OAuthLinkPendingFlow } from "./oauth/accountsModels.mjs";
|
|
27
|
+
import { OAuthAccountsMapping, OAuthRegistrationAuthority, OAuthRegistrationIntentMapping, OAuthRegistrationMapping, OAuthSignInMapping } from "./drizzle/oauth-model.mjs";
|
|
28
|
+
import { OAuthConnectedAccess, OAuthConnectedActionAuthorization, OAuthConnectedClaim, OAuthConnectedDisconnectGrant, OAuthConnectedOutcome, OAuthConnectedPendingFlow, OAuthConnectedRefreshClaim, OAuthConnectedRefreshOutcome, OAuthConnectedRevocationJob, OAuthConnectedStoredGrant, OAuthConnectedTarget, OAuthConnectedUseAuthorization } from "./oauth/connectedModels.mjs";
|
|
29
|
+
import { OAuthConnectedMapping, OAuthConnectedRevocationMapping } from "./drizzle/oauth-connected-model.mjs";
|
|
30
|
+
import { PasskeyRegistrationCeremonyMapping, PasskeyRegistrationCeremonyServices } from "./drizzle/passkey-registration-ceremony-model.mjs";
|
|
31
|
+
import { OAuthAccountsPersistence } from "./oauth/OAuthAccountsPersistence.mjs";
|
|
32
|
+
import { OAuthConnectedPersistence } from "./oauth/OAuthConnectedPersistence.mjs";
|
|
33
|
+
import { OAuthConnectedRevocationClaim, OAuthConnectedRevocations } from "./oauth/OAuthConnectedRevocations.mjs";
|
|
34
|
+
import { OAuthRegistrationIntents, OAuthRegistrationSettlement } from "./oauth/OAuthRegistrationIntents.mjs";
|
|
35
|
+
import "./OAuth.mjs";
|
|
36
|
+
import { OAuthCoordinatorError } from "./drizzle/oauth-target.mjs";
|
|
37
|
+
import { passwordPreparedPersistenceLayer } from "./drizzle/password-prepared-target.mjs";
|
|
38
|
+
import { TotpConfigurationError } from "./totp/errors.mjs";
|
|
39
|
+
import { TotpPersistence } from "./totp/TotpPersistence.mjs";
|
|
40
|
+
import { TotpMapping, TotpMappingSource, TotpPersistenceServices } from "./drizzle/totp-model.mjs";
|
|
41
|
+
import { PasskeyManagementPersistence } from "./passkey/PasskeyManagementPersistence.mjs";
|
|
42
|
+
import { PasskeyManagementMapping, PasskeyManagementServices, PasskeyRegistrationMapping, PasskeyRegistrationServices, PasskeyRegistrationWriter } from "./drizzle/passkey-write-model.mjs";
|
|
43
|
+
import { PasskeyCoordinatorError } from "./drizzle/passkey-target.mjs";
|
|
44
|
+
import { PhoneConfigurationError } from "./phone/lifecycleModels.mjs";
|
|
45
|
+
import { PhoneAdmission } from "./phone/PhoneAdmission.mjs";
|
|
46
|
+
import { PhonePersistence } from "./phone/PhonePersistence.mjs";
|
|
47
|
+
import { PhoneSignInTargets } from "./phone/PhoneSignInTargets.mjs";
|
|
48
|
+
import { PhoneMapping, PhoneMappingSource, PhonePersistenceServices } from "./drizzle/phone-model.mjs";
|
|
49
|
+
import "./Drizzle.mjs";
|
|
50
|
+
import "./Totp.mjs";
|
|
51
|
+
import { SuppliedService } from "./drizzle/SuppliedService.mjs";
|
|
52
|
+
import { TotpCoordinatorError } from "./drizzle/totp-target.mjs";
|
|
53
|
+
import "./Passkey.mjs";
|
|
54
|
+
import "./PhoneOtp.mjs";
|
|
55
|
+
import { PhoneCoordinatorError } from "./drizzle/phone-target.mjs";
|
|
56
|
+
import { coordinatePgAuthStoreTransaction, coordinatePgAuthTransaction, coordinatePgOAuthStateTransaction, makePgAuthStoreServices, makePgExternalIdentityServices, makePgOAuthStateServices, makePgSubjectProvisioningServices } from "./drizzle/pg.mjs";
|
|
57
|
+
import { coordinatePgAuthenticationAuthority, coordinatePgPendingAuthentication, coordinatePgSessionStepUp, coordinatePgSignedSessionValidity, coordinatePgStatefulSessions, makePgAuthenticationAuthorityServices, makePgPendingAuthenticationServices, makePgSessionStepUpServices, makePgSignedSessionValidityServices, makePgStatefulSessionServices } from "./drizzle/pg-sessions.mjs";
|
|
58
|
+
import { coordinatePgProofPersistence, makePgProofPersistenceServices } from "./drizzle/pg-proofs.mjs";
|
|
59
|
+
import { coordinatePgPasswordPersistence, coordinatePgPasswordRegistration, makePgPasswordPersistenceServices, makePgPasswordRegistrationServices } from "./drizzle/pg-passwords.mjs";
|
|
60
|
+
import { coordinatePgEmailAddress, coordinatePgEmailRegistration, makePgEmailAddressServices, makePgEmailRegistrationServices, makePgEmailSignInServices } from "./drizzle/pg-emails.mjs";
|
|
61
|
+
import { coordinatePgPasswordPreparedPersistence, makePgPasswordPreparedPersistenceServices } from "./drizzle/pg-password-prepared.mjs";
|
|
62
|
+
import { AnyRelations } from "drizzle-orm";
|
|
63
|
+
import { AnyPgTable } from "drizzle-orm/pg-core";
|
|
64
|
+
import { EffectPgDatabase } from "drizzle-orm/effect-pglite";
|
|
65
|
+
//#region src/DrizzlePglite.d.ts
|
|
66
|
+
declare const commitMode: "interactive";
|
|
67
|
+
declare const makeAuthServices: <C extends AnyPgTable, R extends AnyPgTable, S extends AnyPgTable>(database: EffectPgDatabase<AnyRelations>, mapping: AuthTables<C, R, S>) => {
|
|
68
|
+
readonly authStore: {
|
|
69
|
+
readonly issueChallenge: (input: NewChallenge) => import("effect/Effect").Effect<void, IssueChallengeError>;
|
|
70
|
+
readonly consumeChallenge: (input: ConsumeChallenge) => import("effect/Effect").Effect<VerifiedEmail, EmailOtpRejected | AuthStoreError>;
|
|
71
|
+
readonly issueRegistration: (input: NewRegistration) => import("effect/Effect").Effect<void, AuthStoreError>;
|
|
72
|
+
readonly inspectRegistration: (tokenDigest: TokenDigest) => import("effect/Effect").Effect<PendingRegistration, InvalidRegistration | AuthStoreError>;
|
|
73
|
+
readonly consumeRegistration: (input: ConsumeRegistration) => import("effect/Effect").Effect<void, InvalidRegistration | AuthStoreError>;
|
|
74
|
+
};
|
|
75
|
+
readonly oauthStateStore: {
|
|
76
|
+
readonly issue: (state: OAuthState) => import("effect/Effect").Effect<void, AuthStoreError>;
|
|
77
|
+
readonly consume: (stateDigest: TokenDigest) => import("effect/Effect").Effect<OAuthState, InvalidOAuthState | AuthStoreError>;
|
|
78
|
+
};
|
|
79
|
+
readonly decisions: {
|
|
80
|
+
readonly consumeChallenge: (input: ConsumeChallenge) => import("effect/Effect").Effect<ChallengeConsumeDecision, AuthStoreError, never>;
|
|
81
|
+
readonly consumeRegistration: (input: ConsumeRegistration) => import("effect/Effect").Effect<ConsumeDecision<void>, AuthStoreError, never>;
|
|
82
|
+
readonly consumeOAuthState: (digest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">) => import("effect/Effect").Effect<ConsumeDecision<OAuthState>, AuthStoreError, never>;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
declare const makeIdentityServices: <Subject extends AnyPgTable, Identifier extends AnyPgTable, External extends AnyPgTable, Request extends AnyPgTable, NativeId>(database: EffectPgDatabase<AnyRelations>, mapping: IdentityTables<Subject, Identifier, External, Request, NativeId>) => {
|
|
86
|
+
subjectProvisioner: {
|
|
87
|
+
readonly provision: (input: SubjectProvisioningInput) => import("effect/Effect").Effect<ProvisioningResult, IdentityConflict | IdentityUnavailable>;
|
|
88
|
+
};
|
|
89
|
+
externalIdentityMutation: {
|
|
90
|
+
readonly bind: (subjectId: SubjectId, identity: ExternalIdentity) => import("effect/Effect").Effect<void, IdentityConflict | IdentityUnavailable>;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
94
|
+
dialect: "pg";
|
|
95
|
+
}>, O extends AnyPgTable<{
|
|
96
|
+
dialect: "pg";
|
|
97
|
+
}>, C extends AnyPgTable<{
|
|
98
|
+
dialect: "pg";
|
|
99
|
+
}>, AC extends AnyPgTable<{
|
|
100
|
+
dialect: "pg";
|
|
101
|
+
}>, F extends AnyPgTable<{
|
|
102
|
+
dialect: "pg";
|
|
103
|
+
}>, TA extends AnyPgTable<{
|
|
104
|
+
dialect: "pg";
|
|
105
|
+
}>, U extends AnyPgTable<{
|
|
106
|
+
dialect: "pg";
|
|
107
|
+
}>, N>(database: EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, mapping: OAuthAccountsMapping<S, O, C, AC, F, TA, U, N>) => import("effect/Effect").Effect<{
|
|
108
|
+
oauthAccountsPersistence: {
|
|
109
|
+
readonly capture: (input: {
|
|
110
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
111
|
+
readonly subjectId: SubjectId;
|
|
112
|
+
}) => import("effect/Effect").Effect<OAuthAccountRevision | undefined, OAuthUnavailable>;
|
|
113
|
+
readonly issue: <A>(input: {
|
|
114
|
+
readonly flow: OAuthLinkPendingFlow;
|
|
115
|
+
readonly authorization: OAuthActionAuthorization;
|
|
116
|
+
}, prepare: PrepareOAuthCommit<{
|
|
117
|
+
readonly _tag: "Rejected";
|
|
118
|
+
} | {
|
|
119
|
+
readonly _tag: "Issued";
|
|
120
|
+
readonly flow: {
|
|
121
|
+
readonly context: {
|
|
122
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
123
|
+
readonly protocol: "oauth" | "oidc";
|
|
124
|
+
readonly configurationGeneration: number;
|
|
125
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
126
|
+
readonly responseIssuerMode: "required" | "unsupported";
|
|
127
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
128
|
+
readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
|
|
129
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
130
|
+
readonly generation: number;
|
|
131
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
132
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
133
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
134
|
+
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
135
|
+
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
136
|
+
readonly requestBindingExpiresAtMillis: number;
|
|
137
|
+
readonly issuedAtMillis: number;
|
|
138
|
+
readonly expiresAtMillis: number;
|
|
139
|
+
readonly claimLifetimeMillis: number;
|
|
140
|
+
readonly namespace: "effect-auth/oauth-link-context/v1";
|
|
141
|
+
readonly revision: {
|
|
142
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
143
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
144
|
+
readonly credentials: readonly {
|
|
145
|
+
readonly credentialId: string;
|
|
146
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
147
|
+
}[];
|
|
148
|
+
};
|
|
149
|
+
readonly maximumEvidenceAgeMillis: number;
|
|
150
|
+
};
|
|
151
|
+
readonly sealed: {
|
|
152
|
+
readonly format: "oauth-xchacha20poly1305-v1";
|
|
153
|
+
readonly keyId: string;
|
|
154
|
+
readonly nonce: string;
|
|
155
|
+
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
156
|
+
};
|
|
157
|
+
readonly retentionUntilMillis: number;
|
|
158
|
+
};
|
|
159
|
+
}, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable>;
|
|
160
|
+
readonly preflight: (input: OAuthLinkAccess) => import("effect/Effect").Effect<OAuthLinkPendingFlow | undefined, OAuthUnavailable>;
|
|
161
|
+
readonly claim: <A>(input: {
|
|
162
|
+
readonly access: OAuthLinkAccess;
|
|
163
|
+
readonly flow: OAuthLinkPendingFlow;
|
|
164
|
+
readonly claimId: OAuthLinkClaim["claimId"];
|
|
165
|
+
readonly authorization: OAuthActionAuthorization;
|
|
166
|
+
}, prepare: PrepareOAuthCommit<{
|
|
167
|
+
readonly _tag: "Rejected";
|
|
168
|
+
} | {
|
|
169
|
+
readonly _tag: "Claimed";
|
|
170
|
+
readonly claim: {
|
|
171
|
+
readonly flow: {
|
|
172
|
+
readonly context: {
|
|
173
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
174
|
+
readonly protocol: "oauth" | "oidc";
|
|
175
|
+
readonly configurationGeneration: number;
|
|
176
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
177
|
+
readonly responseIssuerMode: "required" | "unsupported";
|
|
178
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
179
|
+
readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
|
|
180
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
181
|
+
readonly generation: number;
|
|
182
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
183
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
184
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
185
|
+
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
186
|
+
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
187
|
+
readonly requestBindingExpiresAtMillis: number;
|
|
188
|
+
readonly issuedAtMillis: number;
|
|
189
|
+
readonly expiresAtMillis: number;
|
|
190
|
+
readonly claimLifetimeMillis: number;
|
|
191
|
+
readonly namespace: "effect-auth/oauth-link-context/v1";
|
|
192
|
+
readonly revision: {
|
|
193
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
194
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
195
|
+
readonly credentials: readonly {
|
|
196
|
+
readonly credentialId: string;
|
|
197
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
198
|
+
}[];
|
|
199
|
+
};
|
|
200
|
+
readonly maximumEvidenceAgeMillis: number;
|
|
201
|
+
};
|
|
202
|
+
readonly sealed: {
|
|
203
|
+
readonly format: "oauth-xchacha20poly1305-v1";
|
|
204
|
+
readonly keyId: string;
|
|
205
|
+
readonly nonce: string;
|
|
206
|
+
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
207
|
+
};
|
|
208
|
+
readonly retentionUntilMillis: number;
|
|
209
|
+
};
|
|
210
|
+
readonly claimId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
|
|
211
|
+
readonly claimedAtMillis: number;
|
|
212
|
+
readonly claimExpiresAtMillis: number;
|
|
213
|
+
};
|
|
214
|
+
}, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable>;
|
|
215
|
+
readonly settle: <A>(input: {
|
|
216
|
+
readonly claim: OAuthLinkClaim;
|
|
217
|
+
readonly outcome: OAuthLinkOutcome;
|
|
218
|
+
readonly authorization: OAuthActionAuthorization;
|
|
219
|
+
readonly invalidation: SessionInvalidationWindow;
|
|
220
|
+
readonly nowMillis: number;
|
|
221
|
+
}, prepare: PrepareOAuthCommit<{
|
|
222
|
+
readonly _tag: "Rejected";
|
|
223
|
+
} | {
|
|
224
|
+
readonly _tag: "Conflict";
|
|
225
|
+
} | {
|
|
226
|
+
readonly _tag: "Cancelled";
|
|
227
|
+
} | {
|
|
228
|
+
readonly _tag: "Ambiguous";
|
|
229
|
+
} | {
|
|
230
|
+
readonly _tag: "Linked";
|
|
231
|
+
readonly credential: {
|
|
232
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
233
|
+
readonly identity: {
|
|
234
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
235
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
236
|
+
readonly subject: string;
|
|
237
|
+
};
|
|
238
|
+
readonly credentialId: string;
|
|
239
|
+
readonly credentialRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
240
|
+
readonly revision: {
|
|
241
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
242
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
243
|
+
readonly credentials: readonly {
|
|
244
|
+
readonly credentialId: string;
|
|
245
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
246
|
+
}[];
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
readonly changed: boolean;
|
|
250
|
+
}, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable>;
|
|
251
|
+
readonly inspectUnlink: (input: {
|
|
252
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
253
|
+
readonly subjectId: SubjectId;
|
|
254
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
255
|
+
readonly credentialId: string;
|
|
256
|
+
}) => import("effect/Effect").Effect<{
|
|
257
|
+
readonly _tag: "Rejected";
|
|
258
|
+
} | {
|
|
259
|
+
readonly _tag: "Conflict";
|
|
260
|
+
} | {
|
|
261
|
+
readonly _tag: "Target";
|
|
262
|
+
readonly credential: {
|
|
263
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
264
|
+
readonly identity: {
|
|
265
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
266
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
267
|
+
readonly subject: string;
|
|
268
|
+
};
|
|
269
|
+
readonly credentialId: string;
|
|
270
|
+
readonly credentialRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
271
|
+
readonly revision: {
|
|
272
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
273
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
274
|
+
readonly credentials: readonly {
|
|
275
|
+
readonly credentialId: string;
|
|
276
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
277
|
+
}[];
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
} | {
|
|
281
|
+
readonly _tag: "Replay";
|
|
282
|
+
readonly result: {
|
|
283
|
+
readonly _tag: "Unlinked";
|
|
284
|
+
readonly credentialId: string;
|
|
285
|
+
readonly invalidation: {
|
|
286
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
287
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
288
|
+
readonly maximumExposureMillis: number;
|
|
289
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
}, OAuthUnavailable>;
|
|
293
|
+
readonly unlink: <A>(input: {
|
|
294
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
295
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
296
|
+
readonly credential: OAuthCredentialSnapshot;
|
|
297
|
+
readonly authorization: OAuthActionAuthorization;
|
|
298
|
+
readonly invalidation: SessionInvalidationWindow;
|
|
299
|
+
readonly nowMillis: number;
|
|
300
|
+
readonly retentionUntilMillis: number;
|
|
301
|
+
}, prepare: PrepareOAuthCommit<{
|
|
302
|
+
readonly _tag: "Rejected";
|
|
303
|
+
} | {
|
|
304
|
+
readonly _tag: "Conflict";
|
|
305
|
+
} | {
|
|
306
|
+
readonly _tag: "Unlinked";
|
|
307
|
+
readonly result: {
|
|
308
|
+
readonly _tag: "Unlinked";
|
|
309
|
+
readonly credentialId: string;
|
|
310
|
+
readonly invalidation: {
|
|
311
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
312
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
313
|
+
readonly maximumExposureMillis: number;
|
|
314
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
readonly replayed: boolean;
|
|
318
|
+
} | {
|
|
319
|
+
readonly _tag: "LastSignInMethod";
|
|
320
|
+
}, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable>;
|
|
321
|
+
readonly cleanup: <A>(input: OAuthCleanupInput, prepare: PrepareOAuthCommit<{
|
|
322
|
+
readonly terminalized: number;
|
|
323
|
+
readonly removed: number;
|
|
324
|
+
readonly hasMore: boolean;
|
|
325
|
+
}, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable>;
|
|
326
|
+
};
|
|
327
|
+
}, never, LifecycleHooks>, makeOAuthSignInServices: <S extends AnyPgTable<{
|
|
328
|
+
dialect: "pg";
|
|
329
|
+
}>, O extends AnyPgTable<{
|
|
330
|
+
dialect: "pg";
|
|
331
|
+
}>, C extends AnyPgTable<{
|
|
332
|
+
dialect: "pg";
|
|
333
|
+
}>, AC extends AnyPgTable<{
|
|
334
|
+
dialect: "pg";
|
|
335
|
+
}>, F extends AnyPgTable<{
|
|
336
|
+
dialect: "pg";
|
|
337
|
+
}>, N>(database: EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, mapping: OAuthSignInMapping<S, O, C, AC, F, N>) => import("effect/Effect").Effect<{
|
|
338
|
+
oauthSignInPersistence: {
|
|
339
|
+
readonly issue: <A>(input: OAuthPendingFlow, prepare: PrepareOAuthCommit<OAuthIssueDecision, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable>;
|
|
340
|
+
readonly claim: <A>(input: {
|
|
341
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
342
|
+
readonly generation: number;
|
|
343
|
+
readonly flowId: RequestBindingFlowId;
|
|
344
|
+
readonly provider: OAuthProviderKey;
|
|
345
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
346
|
+
readonly stateDigest: TokenDigest;
|
|
347
|
+
readonly requestBindingVerifier: TokenDigest;
|
|
348
|
+
readonly requestBindingExpiresAtMillis: number;
|
|
349
|
+
readonly responseIssuer?: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
350
|
+
readonly claimId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
|
|
351
|
+
readonly nowMillis: number;
|
|
352
|
+
}, prepare: PrepareOAuthCommit<OAuthClaimDecision, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable>;
|
|
353
|
+
readonly settle: <A>(input: {
|
|
354
|
+
readonly claim: OAuthClaim;
|
|
355
|
+
readonly outcome: {
|
|
356
|
+
readonly _tag: "Verified";
|
|
357
|
+
readonly identity: OAuthVerifiedExternalIdentity;
|
|
358
|
+
} | {
|
|
359
|
+
readonly _tag: "Cancelled" | "Rejected" | "Ambiguous";
|
|
360
|
+
};
|
|
361
|
+
readonly nowMillis: number;
|
|
362
|
+
}, prepare: PrepareOAuthCommit<OAuthSettlementDecision, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable>;
|
|
363
|
+
readonly cleanup: <A>(input: OAuthCleanupInput, prepare: PrepareOAuthCommit<{
|
|
364
|
+
readonly terminalized: number;
|
|
365
|
+
readonly removed: number;
|
|
366
|
+
readonly hasMore: boolean;
|
|
367
|
+
}, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable>;
|
|
368
|
+
};
|
|
369
|
+
}, never, LifecycleHooks>, makeOAuthRegistrationIntentServices: <S extends AnyPgTable<{
|
|
370
|
+
dialect: "pg";
|
|
371
|
+
}>, O extends AnyPgTable<{
|
|
372
|
+
dialect: "pg";
|
|
373
|
+
}>, C extends AnyPgTable<{
|
|
374
|
+
dialect: "pg";
|
|
375
|
+
}>, AC extends AnyPgTable<{
|
|
376
|
+
dialect: "pg";
|
|
377
|
+
}>, F extends AnyPgTable<{
|
|
378
|
+
dialect: "pg";
|
|
379
|
+
}>, TA extends AnyPgTable<{
|
|
380
|
+
dialect: "pg";
|
|
381
|
+
}>, I extends AnyPgTable<{
|
|
382
|
+
dialect: "pg";
|
|
383
|
+
}>, N>(database: EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, mapping: OAuthRegistrationIntentMapping<S, O, C, AC, F, TA, I, N>) => import("effect/Effect").Effect<{
|
|
384
|
+
oauthRegistrationIntents: {
|
|
385
|
+
readonly settle: <A>(input: {
|
|
386
|
+
readonly claim: OAuthClaim;
|
|
387
|
+
readonly identity: OAuthVerifiedExternalIdentity;
|
|
388
|
+
readonly intent?: OAuthRegistrationIntent;
|
|
389
|
+
readonly nowMillis: number;
|
|
390
|
+
}, prepare: PrepareOAuthCommit<OAuthRegistrationSettlement, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable>;
|
|
391
|
+
};
|
|
392
|
+
}, never, LifecycleHooks>, makeOAuthRegistrationServices: <Registration, S extends AnyPgTable<{
|
|
393
|
+
dialect: "pg";
|
|
394
|
+
}>, O extends AnyPgTable<{
|
|
395
|
+
dialect: "pg";
|
|
396
|
+
}>, C extends AnyPgTable<{
|
|
397
|
+
dialect: "pg";
|
|
398
|
+
}>, AC extends AnyPgTable<{
|
|
399
|
+
dialect: "pg";
|
|
400
|
+
}>, TA extends AnyPgTable<{
|
|
401
|
+
dialect: "pg";
|
|
402
|
+
}>, I extends AnyPgTable<{
|
|
403
|
+
dialect: "pg";
|
|
404
|
+
}>, R extends AnyPgTable<{
|
|
405
|
+
dialect: "pg";
|
|
406
|
+
}>, N>(database: EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, mapping: OAuthRegistrationMapping<Registration, S, O, C, AC, TA, I, R, N>) => import("effect/Effect").Effect<{
|
|
407
|
+
registrationAuthority: OAuthRegistrationAuthority<Registration>;
|
|
408
|
+
}, never, LifecycleHooks>, coordinateOAuthRegistration: {
|
|
409
|
+
<Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, TargetId, Registration, S extends AnyPgTable<{
|
|
410
|
+
dialect: "pg";
|
|
411
|
+
}>, O extends AnyPgTable<{
|
|
412
|
+
dialect: "pg";
|
|
413
|
+
}>, C extends AnyPgTable<{
|
|
414
|
+
dialect: "pg";
|
|
415
|
+
}>, AC extends AnyPgTable<{
|
|
416
|
+
dialect: "pg";
|
|
417
|
+
}>, TA extends AnyPgTable<{
|
|
418
|
+
dialect: "pg";
|
|
419
|
+
}>, I extends AnyPgTable<{
|
|
420
|
+
dialect: "pg";
|
|
421
|
+
}>, Rq extends AnyPgTable<{
|
|
422
|
+
dialect: "pg";
|
|
423
|
+
}>, N, A, E, R, DatabaseError, DatabaseRequirements>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
424
|
+
readonly mapping: OAuthRegistrationMapping<NoInfer<Registration>, S, O, C, AC, TA, I, Rq, N>;
|
|
425
|
+
readonly target: SuppliedService<TargetId, OAuthRegistrationAuthority<Registration>>;
|
|
426
|
+
readonly transaction?: never;
|
|
427
|
+
}, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks | Exclude<R, TargetId>>;
|
|
428
|
+
<Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, TargetId, Registration, S extends AnyPgTable<{
|
|
429
|
+
dialect: "pg";
|
|
430
|
+
}>, O extends AnyPgTable<{
|
|
431
|
+
dialect: "pg";
|
|
432
|
+
}>, C extends AnyPgTable<{
|
|
433
|
+
dialect: "pg";
|
|
434
|
+
}>, AC extends AnyPgTable<{
|
|
435
|
+
dialect: "pg";
|
|
436
|
+
}>, TA extends AnyPgTable<{
|
|
437
|
+
dialect: "pg";
|
|
438
|
+
}>, I extends AnyPgTable<{
|
|
439
|
+
dialect: "pg";
|
|
440
|
+
}>, Rq extends AnyPgTable<{
|
|
441
|
+
dialect: "pg";
|
|
442
|
+
}>, N, A, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
443
|
+
readonly mapping: OAuthRegistrationMapping<NoInfer<Registration>, S, O, C, AC, TA, I, Rq, N>;
|
|
444
|
+
readonly target: SuppliedService<TargetId, OAuthRegistrationAuthority<Registration>>;
|
|
445
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
446
|
+
readonly transaction: (...args: any[]) => any;
|
|
447
|
+
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
448
|
+
}, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks | Exclude<R, TargetId | TxId>>;
|
|
449
|
+
}, coordinateOAuthSignIn: {
|
|
450
|
+
<Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
451
|
+
dialect: "pg";
|
|
452
|
+
}>, O extends AnyPgTable<{
|
|
453
|
+
dialect: "pg";
|
|
454
|
+
}>, C extends AnyPgTable<{
|
|
455
|
+
dialect: "pg";
|
|
456
|
+
}>, AC extends AnyPgTable<{
|
|
457
|
+
dialect: "pg";
|
|
458
|
+
}>, F extends AnyPgTable<{
|
|
459
|
+
dialect: "pg";
|
|
460
|
+
}>, N, A, E, R, DatabaseError, DatabaseRequirements>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
461
|
+
readonly mapping: OAuthSignInMapping<S, O, C, AC, F, N>;
|
|
462
|
+
readonly transaction?: never;
|
|
463
|
+
}, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks | Exclude<R, OAuthSignInPersistence>>;
|
|
464
|
+
<Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
465
|
+
dialect: "pg";
|
|
466
|
+
}>, O extends AnyPgTable<{
|
|
467
|
+
dialect: "pg";
|
|
468
|
+
}>, C extends AnyPgTable<{
|
|
469
|
+
dialect: "pg";
|
|
470
|
+
}>, AC extends AnyPgTable<{
|
|
471
|
+
dialect: "pg";
|
|
472
|
+
}>, F extends AnyPgTable<{
|
|
473
|
+
dialect: "pg";
|
|
474
|
+
}>, N, A, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
475
|
+
readonly mapping: OAuthSignInMapping<S, O, C, AC, F, N>;
|
|
476
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
477
|
+
readonly transaction: (...args: any[]) => any;
|
|
478
|
+
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
479
|
+
}, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks | Exclude<R, TxId | OAuthSignInPersistence>>;
|
|
480
|
+
}, coordinateOAuthRegistrationIntents: {
|
|
481
|
+
<Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
482
|
+
dialect: "pg";
|
|
483
|
+
}>, O extends AnyPgTable<{
|
|
484
|
+
dialect: "pg";
|
|
485
|
+
}>, C extends AnyPgTable<{
|
|
486
|
+
dialect: "pg";
|
|
487
|
+
}>, AC extends AnyPgTable<{
|
|
488
|
+
dialect: "pg";
|
|
489
|
+
}>, F extends AnyPgTable<{
|
|
490
|
+
dialect: "pg";
|
|
491
|
+
}>, TA extends AnyPgTable<{
|
|
492
|
+
dialect: "pg";
|
|
493
|
+
}>, I extends AnyPgTable<{
|
|
494
|
+
dialect: "pg";
|
|
495
|
+
}>, N, A, E, R, DatabaseError, DatabaseRequirements>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
496
|
+
readonly mapping: OAuthRegistrationIntentMapping<S, O, C, AC, F, TA, I, N>;
|
|
497
|
+
readonly transaction?: never;
|
|
498
|
+
}, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks | Exclude<R, OAuthRegistrationIntents>>;
|
|
499
|
+
<Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
500
|
+
dialect: "pg";
|
|
501
|
+
}>, O extends AnyPgTable<{
|
|
502
|
+
dialect: "pg";
|
|
503
|
+
}>, C extends AnyPgTable<{
|
|
504
|
+
dialect: "pg";
|
|
505
|
+
}>, AC extends AnyPgTable<{
|
|
506
|
+
dialect: "pg";
|
|
507
|
+
}>, F extends AnyPgTable<{
|
|
508
|
+
dialect: "pg";
|
|
509
|
+
}>, TA extends AnyPgTable<{
|
|
510
|
+
dialect: "pg";
|
|
511
|
+
}>, I extends AnyPgTable<{
|
|
512
|
+
dialect: "pg";
|
|
513
|
+
}>, N, A, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
514
|
+
readonly mapping: OAuthRegistrationIntentMapping<S, O, C, AC, F, TA, I, N>;
|
|
515
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
516
|
+
readonly transaction: (...args: any[]) => any;
|
|
517
|
+
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
518
|
+
}, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks | Exclude<R, TxId | OAuthRegistrationIntents>>;
|
|
519
|
+
}, coordinateOAuthAccounts: {
|
|
520
|
+
<Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
521
|
+
dialect: "pg";
|
|
522
|
+
}>, O extends AnyPgTable<{
|
|
523
|
+
dialect: "pg";
|
|
524
|
+
}>, C extends AnyPgTable<{
|
|
525
|
+
dialect: "pg";
|
|
526
|
+
}>, AC extends AnyPgTable<{
|
|
527
|
+
dialect: "pg";
|
|
528
|
+
}>, F extends AnyPgTable<{
|
|
529
|
+
dialect: "pg";
|
|
530
|
+
}>, TA extends AnyPgTable<{
|
|
531
|
+
dialect: "pg";
|
|
532
|
+
}>, U extends AnyPgTable<{
|
|
533
|
+
dialect: "pg";
|
|
534
|
+
}>, N, A, E, R, DatabaseError, DatabaseRequirements>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
535
|
+
readonly mapping: OAuthAccountsMapping<S, O, C, AC, F, TA, U, N>;
|
|
536
|
+
readonly transaction?: never;
|
|
537
|
+
}, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks | Exclude<R, OAuthAccountsPersistence>>;
|
|
538
|
+
<Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
539
|
+
dialect: "pg";
|
|
540
|
+
}>, O extends AnyPgTable<{
|
|
541
|
+
dialect: "pg";
|
|
542
|
+
}>, C extends AnyPgTable<{
|
|
543
|
+
dialect: "pg";
|
|
544
|
+
}>, AC extends AnyPgTable<{
|
|
545
|
+
dialect: "pg";
|
|
546
|
+
}>, F extends AnyPgTable<{
|
|
547
|
+
dialect: "pg";
|
|
548
|
+
}>, TA extends AnyPgTable<{
|
|
549
|
+
dialect: "pg";
|
|
550
|
+
}>, U extends AnyPgTable<{
|
|
551
|
+
dialect: "pg";
|
|
552
|
+
}>, N, A, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
553
|
+
readonly mapping: OAuthAccountsMapping<S, O, C, AC, F, TA, U, N>;
|
|
554
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
555
|
+
readonly transaction: (...args: any[]) => any;
|
|
556
|
+
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
557
|
+
}, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks | Exclude<R, TxId | OAuthAccountsPersistence>>;
|
|
558
|
+
}, makeOAuthConnectedServices: <S extends AnyPgTable<{
|
|
559
|
+
dialect: "pg";
|
|
560
|
+
}>, AC extends AnyPgTable<{
|
|
561
|
+
dialect: "pg";
|
|
562
|
+
}>, T extends AnyPgTable<{
|
|
563
|
+
dialect: "pg";
|
|
564
|
+
}>, O extends AnyPgTable<{
|
|
565
|
+
dialect: "pg";
|
|
566
|
+
}>, F extends AnyPgTable<{
|
|
567
|
+
dialect: "pg";
|
|
568
|
+
}>, G extends AnyPgTable<{
|
|
569
|
+
dialect: "pg";
|
|
570
|
+
}>, C extends AnyPgTable<{
|
|
571
|
+
dialect: "pg";
|
|
572
|
+
}>, H extends AnyPgTable<{
|
|
573
|
+
dialect: "pg";
|
|
574
|
+
}>, UA extends AnyPgTable<{
|
|
575
|
+
dialect: "pg";
|
|
576
|
+
}>, DC extends AnyPgTable<{
|
|
577
|
+
dialect: "pg";
|
|
578
|
+
}>, N, J extends AnyPgTable<{
|
|
579
|
+
dialect: "pg";
|
|
580
|
+
}> = never>(database: EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, mapping: OAuthConnectedMapping<S, AC, T, O, F, G, C, H, UA, DC, N, J>) => import("effect/Effect").Effect<{
|
|
581
|
+
oauthConnectedPersistence: {
|
|
582
|
+
readonly capture: (input: {
|
|
583
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
584
|
+
readonly subjectId: SubjectId;
|
|
585
|
+
readonly grantId?: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
586
|
+
}) => import("effect/Effect").Effect<{
|
|
587
|
+
readonly revision: OAuthAccountRevision;
|
|
588
|
+
readonly target?: OAuthConnectedTarget;
|
|
589
|
+
} | undefined, OAuthUnavailable>;
|
|
590
|
+
readonly issue: <A>(input: {
|
|
591
|
+
readonly flow: OAuthConnectedPendingFlow;
|
|
592
|
+
readonly authorization: OAuthConnectedActionAuthorization;
|
|
593
|
+
}, prepare: PrepareOAuthCommit<{
|
|
594
|
+
readonly _tag: "Issued";
|
|
595
|
+
readonly flow: {
|
|
596
|
+
readonly context: {
|
|
597
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
598
|
+
readonly protocol: "oauth" | "oidc";
|
|
599
|
+
readonly configurationGeneration: number;
|
|
600
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
601
|
+
readonly responseIssuerMode: "required" | "unsupported";
|
|
602
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
603
|
+
readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
|
|
604
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
605
|
+
readonly generation: number;
|
|
606
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
607
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
608
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
609
|
+
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
610
|
+
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
611
|
+
readonly requestBindingExpiresAtMillis: number;
|
|
612
|
+
readonly issuedAtMillis: number;
|
|
613
|
+
readonly expiresAtMillis: number;
|
|
614
|
+
readonly claimLifetimeMillis: number;
|
|
615
|
+
readonly namespace: "effect-auth/oauth-connected-context/v1";
|
|
616
|
+
readonly revision: {
|
|
617
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
618
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
619
|
+
readonly credentials: readonly {
|
|
620
|
+
readonly credentialId: string;
|
|
621
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
622
|
+
}[];
|
|
623
|
+
};
|
|
624
|
+
readonly profile: {
|
|
625
|
+
readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
626
|
+
readonly generation: number;
|
|
627
|
+
readonly issuance: "active" | "retired";
|
|
628
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
629
|
+
readonly clientRegistrationId: string;
|
|
630
|
+
readonly scopes: readonly string[];
|
|
631
|
+
readonly resources: readonly string[];
|
|
632
|
+
readonly retention: "access-and-refresh" | "access-only";
|
|
633
|
+
readonly maximumAccessLifetimeMillis: number;
|
|
634
|
+
readonly maximumRefreshLifetimeMillis?: number | undefined;
|
|
635
|
+
readonly refreshAheadMillis: number;
|
|
636
|
+
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
637
|
+
readonly revocation: "cohort" | "unsupported";
|
|
638
|
+
};
|
|
639
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
640
|
+
readonly reconnect?: {
|
|
641
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
642
|
+
readonly grantVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
643
|
+
readonly tokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
644
|
+
readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
645
|
+
readonly identity: {
|
|
646
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
647
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
648
|
+
readonly subject: string;
|
|
649
|
+
};
|
|
650
|
+
readonly configuration: {
|
|
651
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
652
|
+
readonly protocol: "oauth" | "oidc";
|
|
653
|
+
readonly configurationGeneration: number;
|
|
654
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
655
|
+
readonly responseIssuerMode: "required" | "unsupported";
|
|
656
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
657
|
+
readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
|
|
658
|
+
readonly profile: {
|
|
659
|
+
readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
660
|
+
readonly generation: number;
|
|
661
|
+
readonly issuance: "active" | "retired";
|
|
662
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
663
|
+
readonly clientRegistrationId: string;
|
|
664
|
+
readonly scopes: readonly string[];
|
|
665
|
+
readonly resources: readonly string[];
|
|
666
|
+
readonly retention: "access-and-refresh" | "access-only";
|
|
667
|
+
readonly maximumAccessLifetimeMillis: number;
|
|
668
|
+
readonly maximumRefreshLifetimeMillis?: number | undefined;
|
|
669
|
+
readonly refreshAheadMillis: number;
|
|
670
|
+
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
671
|
+
readonly revocation: "cohort" | "unsupported";
|
|
672
|
+
};
|
|
673
|
+
};
|
|
674
|
+
} | undefined;
|
|
675
|
+
readonly maximumEvidenceAgeMillis: number;
|
|
676
|
+
};
|
|
677
|
+
readonly sealed: {
|
|
678
|
+
readonly format: "oauth-xchacha20poly1305-v1";
|
|
679
|
+
readonly keyId: string;
|
|
680
|
+
readonly nonce: string;
|
|
681
|
+
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
682
|
+
};
|
|
683
|
+
readonly retentionUntilMillis: number;
|
|
684
|
+
};
|
|
685
|
+
} | {
|
|
686
|
+
readonly _tag: "Rejected";
|
|
687
|
+
}, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable, never>;
|
|
688
|
+
readonly preflight: (input: OAuthConnectedAccess) => import("effect/Effect").Effect<OAuthConnectedPendingFlow | undefined, OAuthUnavailable>;
|
|
689
|
+
readonly claim: <A>(input: {
|
|
690
|
+
readonly access: OAuthConnectedAccess;
|
|
691
|
+
readonly flow: OAuthConnectedPendingFlow;
|
|
692
|
+
readonly claimId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
|
|
693
|
+
readonly authorization: OAuthConnectedActionAuthorization;
|
|
694
|
+
}, prepare: PrepareOAuthCommit<{
|
|
695
|
+
readonly _tag: "Rejected";
|
|
696
|
+
} | {
|
|
697
|
+
readonly _tag: "Claimed";
|
|
698
|
+
readonly claim: {
|
|
699
|
+
readonly flow: {
|
|
700
|
+
readonly context: {
|
|
701
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
702
|
+
readonly protocol: "oauth" | "oidc";
|
|
703
|
+
readonly configurationGeneration: number;
|
|
704
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
705
|
+
readonly responseIssuerMode: "required" | "unsupported";
|
|
706
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
707
|
+
readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
|
|
708
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
709
|
+
readonly generation: number;
|
|
710
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
711
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
712
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
713
|
+
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
714
|
+
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
715
|
+
readonly requestBindingExpiresAtMillis: number;
|
|
716
|
+
readonly issuedAtMillis: number;
|
|
717
|
+
readonly expiresAtMillis: number;
|
|
718
|
+
readonly claimLifetimeMillis: number;
|
|
719
|
+
readonly namespace: "effect-auth/oauth-connected-context/v1";
|
|
720
|
+
readonly revision: {
|
|
721
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
722
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
723
|
+
readonly credentials: readonly {
|
|
724
|
+
readonly credentialId: string;
|
|
725
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
726
|
+
}[];
|
|
727
|
+
};
|
|
728
|
+
readonly profile: {
|
|
729
|
+
readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
730
|
+
readonly generation: number;
|
|
731
|
+
readonly issuance: "active" | "retired";
|
|
732
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
733
|
+
readonly clientRegistrationId: string;
|
|
734
|
+
readonly scopes: readonly string[];
|
|
735
|
+
readonly resources: readonly string[];
|
|
736
|
+
readonly retention: "access-and-refresh" | "access-only";
|
|
737
|
+
readonly maximumAccessLifetimeMillis: number;
|
|
738
|
+
readonly maximumRefreshLifetimeMillis?: number | undefined;
|
|
739
|
+
readonly refreshAheadMillis: number;
|
|
740
|
+
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
741
|
+
readonly revocation: "cohort" | "unsupported";
|
|
742
|
+
};
|
|
743
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
744
|
+
readonly reconnect?: {
|
|
745
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
746
|
+
readonly grantVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
747
|
+
readonly tokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
748
|
+
readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
749
|
+
readonly identity: {
|
|
750
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
751
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
752
|
+
readonly subject: string;
|
|
753
|
+
};
|
|
754
|
+
readonly configuration: {
|
|
755
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
756
|
+
readonly protocol: "oauth" | "oidc";
|
|
757
|
+
readonly configurationGeneration: number;
|
|
758
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
759
|
+
readonly responseIssuerMode: "required" | "unsupported";
|
|
760
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
761
|
+
readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
|
|
762
|
+
readonly profile: {
|
|
763
|
+
readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
764
|
+
readonly generation: number;
|
|
765
|
+
readonly issuance: "active" | "retired";
|
|
766
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
767
|
+
readonly clientRegistrationId: string;
|
|
768
|
+
readonly scopes: readonly string[];
|
|
769
|
+
readonly resources: readonly string[];
|
|
770
|
+
readonly retention: "access-and-refresh" | "access-only";
|
|
771
|
+
readonly maximumAccessLifetimeMillis: number;
|
|
772
|
+
readonly maximumRefreshLifetimeMillis?: number | undefined;
|
|
773
|
+
readonly refreshAheadMillis: number;
|
|
774
|
+
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
775
|
+
readonly revocation: "cohort" | "unsupported";
|
|
776
|
+
};
|
|
777
|
+
};
|
|
778
|
+
} | undefined;
|
|
779
|
+
readonly maximumEvidenceAgeMillis: number;
|
|
780
|
+
};
|
|
781
|
+
readonly sealed: {
|
|
782
|
+
readonly format: "oauth-xchacha20poly1305-v1";
|
|
783
|
+
readonly keyId: string;
|
|
784
|
+
readonly nonce: string;
|
|
785
|
+
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
786
|
+
};
|
|
787
|
+
readonly retentionUntilMillis: number;
|
|
788
|
+
};
|
|
789
|
+
readonly claimId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
|
|
790
|
+
readonly claimedAtMillis: number;
|
|
791
|
+
readonly claimExpiresAtMillis: number;
|
|
792
|
+
readonly order: string;
|
|
793
|
+
};
|
|
794
|
+
}, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable, never>;
|
|
795
|
+
readonly inspectGrant: (input: {
|
|
796
|
+
readonly claim: OAuthConnectedClaim;
|
|
797
|
+
readonly identity: {
|
|
798
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
799
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
800
|
+
readonly subject: string;
|
|
801
|
+
};
|
|
802
|
+
}) => import("effect/Effect").Effect<{
|
|
803
|
+
readonly _tag: "Rejected";
|
|
804
|
+
} | {
|
|
805
|
+
readonly _tag: "Target";
|
|
806
|
+
readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
807
|
+
} | {
|
|
808
|
+
readonly _tag: "Quarantine";
|
|
809
|
+
readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
810
|
+
} | {
|
|
811
|
+
readonly _tag: "Conflict";
|
|
812
|
+
}, OAuthUnavailable>;
|
|
813
|
+
readonly settle: <A>(input: {
|
|
814
|
+
readonly claim: OAuthConnectedClaim;
|
|
815
|
+
readonly outcome: OAuthConnectedOutcome;
|
|
816
|
+
readonly authorization: OAuthConnectedActionAuthorization;
|
|
817
|
+
readonly nowMillis: number;
|
|
818
|
+
}, prepare: PrepareOAuthCommit<{
|
|
819
|
+
readonly _tag: "Rejected";
|
|
820
|
+
} | {
|
|
821
|
+
readonly _tag: "Conflict";
|
|
822
|
+
} | {
|
|
823
|
+
readonly _tag: "Cancelled";
|
|
824
|
+
} | {
|
|
825
|
+
readonly _tag: "Ambiguous";
|
|
826
|
+
} | {
|
|
827
|
+
readonly _tag: "Connected";
|
|
828
|
+
readonly grant: {
|
|
829
|
+
readonly context: {
|
|
830
|
+
readonly namespace: "effect-auth/oauth-connected-token-context/v1";
|
|
831
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
832
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
833
|
+
readonly identity: {
|
|
834
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
835
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
836
|
+
readonly subject: string;
|
|
837
|
+
};
|
|
838
|
+
readonly configuration: {
|
|
839
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
840
|
+
readonly protocol: "oauth" | "oidc";
|
|
841
|
+
readonly configurationGeneration: number;
|
|
842
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
843
|
+
readonly responseIssuerMode: "required" | "unsupported";
|
|
844
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
845
|
+
readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
|
|
846
|
+
readonly profile: {
|
|
847
|
+
readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
848
|
+
readonly generation: number;
|
|
849
|
+
readonly issuance: "active" | "retired";
|
|
850
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
851
|
+
readonly clientRegistrationId: string;
|
|
852
|
+
readonly scopes: readonly string[];
|
|
853
|
+
readonly resources: readonly string[];
|
|
854
|
+
readonly retention: "access-and-refresh" | "access-only";
|
|
855
|
+
readonly maximumAccessLifetimeMillis: number;
|
|
856
|
+
readonly maximumRefreshLifetimeMillis?: number | undefined;
|
|
857
|
+
readonly refreshAheadMillis: number;
|
|
858
|
+
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
859
|
+
readonly revocation: "cohort" | "unsupported";
|
|
860
|
+
};
|
|
861
|
+
};
|
|
862
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
863
|
+
readonly grantVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
864
|
+
readonly tokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
865
|
+
readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
866
|
+
readonly metadata: {
|
|
867
|
+
readonly scopes: readonly string[];
|
|
868
|
+
readonly resources: readonly string[];
|
|
869
|
+
readonly accessExpiresAtMillis?: number | undefined;
|
|
870
|
+
readonly refreshExpiresAtMillis?: number | undefined;
|
|
871
|
+
readonly useUntilMillis: number;
|
|
872
|
+
readonly refreshUseUntilMillis?: number | undefined;
|
|
873
|
+
readonly obtainedAtMillis: number;
|
|
874
|
+
readonly profile?: {
|
|
875
|
+
readonly displayName?: string | undefined;
|
|
876
|
+
readonly handle?: string | undefined;
|
|
877
|
+
} | undefined;
|
|
878
|
+
};
|
|
879
|
+
};
|
|
880
|
+
readonly sealed: {
|
|
881
|
+
readonly format: "oauth-connected-xchacha20poly1305-v1";
|
|
882
|
+
readonly keyId: string;
|
|
883
|
+
readonly nonce: string;
|
|
884
|
+
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
885
|
+
};
|
|
886
|
+
};
|
|
887
|
+
} | {
|
|
888
|
+
readonly _tag: "Busy";
|
|
889
|
+
}, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable, never>;
|
|
890
|
+
readonly list: (input: {
|
|
891
|
+
readonly authorization: OAuthConnectedUseAuthorization;
|
|
892
|
+
readonly limit: number;
|
|
893
|
+
readonly cursor?: string;
|
|
894
|
+
}) => import("effect/Effect").Effect<{
|
|
895
|
+
readonly items: readonly {
|
|
896
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
897
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
898
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
899
|
+
readonly profileKey: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
900
|
+
readonly status: "Active" | "Disconnected" | "ReauthorizationRequired" | "Refreshing";
|
|
901
|
+
readonly scopes: readonly string[];
|
|
902
|
+
readonly accessExpiresAtMillis?: number | undefined;
|
|
903
|
+
readonly useUntilMillis: number;
|
|
904
|
+
readonly profile?: {
|
|
905
|
+
readonly displayName?: string | undefined;
|
|
906
|
+
readonly handle?: string | undefined;
|
|
907
|
+
} | undefined;
|
|
908
|
+
readonly remoteRevocation: "Confirmed" | "Pending" | "Unknown" | "Unsupported";
|
|
909
|
+
}[];
|
|
910
|
+
readonly cursor?: string | undefined;
|
|
911
|
+
}, OAuthUnavailable>;
|
|
912
|
+
readonly inspectDisconnect: (input: {
|
|
913
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
914
|
+
readonly subjectId: SubjectId;
|
|
915
|
+
readonly authorization: OAuthConnectedUseAuthorization;
|
|
916
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
917
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
918
|
+
}) => import("effect/Effect").Effect<{
|
|
919
|
+
readonly _tag: "Rejected";
|
|
920
|
+
} | {
|
|
921
|
+
readonly _tag: "Conflict";
|
|
922
|
+
} | {
|
|
923
|
+
readonly _tag: "Target";
|
|
924
|
+
readonly grant: {
|
|
925
|
+
readonly context: {
|
|
926
|
+
readonly namespace: "effect-auth/oauth-connected-token-context/v1";
|
|
927
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
928
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
929
|
+
readonly identity: {
|
|
930
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
931
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
932
|
+
readonly subject: string;
|
|
933
|
+
};
|
|
934
|
+
readonly configuration: {
|
|
935
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
936
|
+
readonly protocol: "oauth" | "oidc";
|
|
937
|
+
readonly configurationGeneration: number;
|
|
938
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
939
|
+
readonly responseIssuerMode: "required" | "unsupported";
|
|
940
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
941
|
+
readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
|
|
942
|
+
readonly profile: {
|
|
943
|
+
readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
944
|
+
readonly generation: number;
|
|
945
|
+
readonly issuance: "active" | "retired";
|
|
946
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
947
|
+
readonly clientRegistrationId: string;
|
|
948
|
+
readonly scopes: readonly string[];
|
|
949
|
+
readonly resources: readonly string[];
|
|
950
|
+
readonly retention: "access-and-refresh" | "access-only";
|
|
951
|
+
readonly maximumAccessLifetimeMillis: number;
|
|
952
|
+
readonly maximumRefreshLifetimeMillis?: number | undefined;
|
|
953
|
+
readonly refreshAheadMillis: number;
|
|
954
|
+
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
955
|
+
readonly revocation: "cohort" | "unsupported";
|
|
956
|
+
};
|
|
957
|
+
};
|
|
958
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
959
|
+
readonly grantVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
960
|
+
readonly tokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
961
|
+
readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
962
|
+
readonly metadata: {
|
|
963
|
+
readonly scopes: readonly string[];
|
|
964
|
+
readonly resources: readonly string[];
|
|
965
|
+
readonly accessExpiresAtMillis?: number | undefined;
|
|
966
|
+
readonly refreshExpiresAtMillis?: number | undefined;
|
|
967
|
+
readonly useUntilMillis: number;
|
|
968
|
+
readonly refreshUseUntilMillis?: number | undefined;
|
|
969
|
+
readonly obtainedAtMillis: number;
|
|
970
|
+
readonly profile?: {
|
|
971
|
+
readonly displayName?: string | undefined;
|
|
972
|
+
readonly handle?: string | undefined;
|
|
973
|
+
} | undefined;
|
|
974
|
+
};
|
|
975
|
+
};
|
|
976
|
+
readonly sealed?: {
|
|
977
|
+
readonly format: "oauth-connected-xchacha20poly1305-v1";
|
|
978
|
+
readonly keyId: string;
|
|
979
|
+
readonly nonce: string;
|
|
980
|
+
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
981
|
+
} | undefined;
|
|
982
|
+
};
|
|
983
|
+
readonly revision: {
|
|
984
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
985
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
986
|
+
readonly credentials: readonly {
|
|
987
|
+
readonly credentialId: string;
|
|
988
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
989
|
+
}[];
|
|
990
|
+
};
|
|
991
|
+
} | {
|
|
992
|
+
readonly _tag: "Replay";
|
|
993
|
+
readonly result: {
|
|
994
|
+
readonly _tag: "Disconnected";
|
|
995
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
996
|
+
readonly remoteRevocation: "Confirmed" | "Pending" | "Unknown" | "Unsupported";
|
|
997
|
+
readonly affectedGrantCount: number;
|
|
998
|
+
readonly replayed: boolean;
|
|
999
|
+
};
|
|
1000
|
+
}, OAuthUnavailable>;
|
|
1001
|
+
readonly disconnect: <A>(input: {
|
|
1002
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
1003
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
1004
|
+
readonly grant: OAuthConnectedDisconnectGrant;
|
|
1005
|
+
readonly authorization: OAuthConnectedActionAuthorization;
|
|
1006
|
+
readonly revocation?: OAuthConnectedRevocationJob;
|
|
1007
|
+
readonly retentionUntilMillis: number;
|
|
1008
|
+
}, prepare: PrepareOAuthCommit<{
|
|
1009
|
+
readonly _tag: "Rejected";
|
|
1010
|
+
} | {
|
|
1011
|
+
readonly _tag: "Conflict";
|
|
1012
|
+
} | {
|
|
1013
|
+
readonly _tag: "Disconnected";
|
|
1014
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1015
|
+
readonly remoteRevocation: "Confirmed" | "Pending" | "Unknown" | "Unsupported";
|
|
1016
|
+
readonly affectedGrantCount: number;
|
|
1017
|
+
readonly replayed: boolean;
|
|
1018
|
+
}, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable, never>;
|
|
1019
|
+
readonly inspectAccess: (input: {
|
|
1020
|
+
readonly authorization: OAuthConnectedUseAuthorization;
|
|
1021
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1022
|
+
readonly profileKey: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
1023
|
+
}) => import("effect/Effect").Effect<{
|
|
1024
|
+
readonly _tag: "Rejected";
|
|
1025
|
+
} | {
|
|
1026
|
+
readonly _tag: "Busy";
|
|
1027
|
+
} | {
|
|
1028
|
+
readonly _tag: "Target";
|
|
1029
|
+
readonly grant: {
|
|
1030
|
+
readonly context: {
|
|
1031
|
+
readonly namespace: "effect-auth/oauth-connected-token-context/v1";
|
|
1032
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
1033
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1034
|
+
readonly identity: {
|
|
1035
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1036
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
1037
|
+
readonly subject: string;
|
|
1038
|
+
};
|
|
1039
|
+
readonly configuration: {
|
|
1040
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1041
|
+
readonly protocol: "oauth" | "oidc";
|
|
1042
|
+
readonly configurationGeneration: number;
|
|
1043
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
1044
|
+
readonly responseIssuerMode: "required" | "unsupported";
|
|
1045
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
1046
|
+
readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
|
|
1047
|
+
readonly profile: {
|
|
1048
|
+
readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
1049
|
+
readonly generation: number;
|
|
1050
|
+
readonly issuance: "active" | "retired";
|
|
1051
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1052
|
+
readonly clientRegistrationId: string;
|
|
1053
|
+
readonly scopes: readonly string[];
|
|
1054
|
+
readonly resources: readonly string[];
|
|
1055
|
+
readonly retention: "access-and-refresh" | "access-only";
|
|
1056
|
+
readonly maximumAccessLifetimeMillis: number;
|
|
1057
|
+
readonly maximumRefreshLifetimeMillis?: number | undefined;
|
|
1058
|
+
readonly refreshAheadMillis: number;
|
|
1059
|
+
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1060
|
+
readonly revocation: "cohort" | "unsupported";
|
|
1061
|
+
};
|
|
1062
|
+
};
|
|
1063
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1064
|
+
readonly grantVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1065
|
+
readonly tokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1066
|
+
readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1067
|
+
readonly metadata: {
|
|
1068
|
+
readonly scopes: readonly string[];
|
|
1069
|
+
readonly resources: readonly string[];
|
|
1070
|
+
readonly accessExpiresAtMillis?: number | undefined;
|
|
1071
|
+
readonly refreshExpiresAtMillis?: number | undefined;
|
|
1072
|
+
readonly useUntilMillis: number;
|
|
1073
|
+
readonly refreshUseUntilMillis?: number | undefined;
|
|
1074
|
+
readonly obtainedAtMillis: number;
|
|
1075
|
+
readonly profile?: {
|
|
1076
|
+
readonly displayName?: string | undefined;
|
|
1077
|
+
readonly handle?: string | undefined;
|
|
1078
|
+
} | undefined;
|
|
1079
|
+
};
|
|
1080
|
+
};
|
|
1081
|
+
readonly sealed: {
|
|
1082
|
+
readonly format: "oauth-connected-xchacha20poly1305-v1";
|
|
1083
|
+
readonly keyId: string;
|
|
1084
|
+
readonly nonce: string;
|
|
1085
|
+
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1086
|
+
};
|
|
1087
|
+
};
|
|
1088
|
+
} | {
|
|
1089
|
+
readonly _tag: "ReauthorizationRequired";
|
|
1090
|
+
}, OAuthUnavailable>;
|
|
1091
|
+
readonly claimRefresh: <A>(input: {
|
|
1092
|
+
readonly grant: OAuthConnectedStoredGrant;
|
|
1093
|
+
readonly authorization: OAuthConnectedUseAuthorization;
|
|
1094
|
+
readonly claimId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
|
|
1095
|
+
readonly nextTokenVersion: OAuthConnectedRefreshClaim["nextTokenVersion"];
|
|
1096
|
+
readonly lifetimeMillis: number;
|
|
1097
|
+
}, prepare: PrepareOAuthCommit<{
|
|
1098
|
+
readonly _tag: "Rejected";
|
|
1099
|
+
} | {
|
|
1100
|
+
readonly _tag: "Busy";
|
|
1101
|
+
} | {
|
|
1102
|
+
readonly _tag: "ReauthorizationRequired";
|
|
1103
|
+
} | {
|
|
1104
|
+
readonly _tag: "Claimed";
|
|
1105
|
+
readonly claim: {
|
|
1106
|
+
readonly grant: {
|
|
1107
|
+
readonly context: {
|
|
1108
|
+
readonly namespace: "effect-auth/oauth-connected-token-context/v1";
|
|
1109
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
1110
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1111
|
+
readonly identity: {
|
|
1112
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1113
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
1114
|
+
readonly subject: string;
|
|
1115
|
+
};
|
|
1116
|
+
readonly configuration: {
|
|
1117
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1118
|
+
readonly protocol: "oauth" | "oidc";
|
|
1119
|
+
readonly configurationGeneration: number;
|
|
1120
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
1121
|
+
readonly responseIssuerMode: "required" | "unsupported";
|
|
1122
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
1123
|
+
readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
|
|
1124
|
+
readonly profile: {
|
|
1125
|
+
readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
1126
|
+
readonly generation: number;
|
|
1127
|
+
readonly issuance: "active" | "retired";
|
|
1128
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1129
|
+
readonly clientRegistrationId: string;
|
|
1130
|
+
readonly scopes: readonly string[];
|
|
1131
|
+
readonly resources: readonly string[];
|
|
1132
|
+
readonly retention: "access-and-refresh" | "access-only";
|
|
1133
|
+
readonly maximumAccessLifetimeMillis: number;
|
|
1134
|
+
readonly maximumRefreshLifetimeMillis?: number | undefined;
|
|
1135
|
+
readonly refreshAheadMillis: number;
|
|
1136
|
+
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1137
|
+
readonly revocation: "cohort" | "unsupported";
|
|
1138
|
+
};
|
|
1139
|
+
};
|
|
1140
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1141
|
+
readonly grantVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1142
|
+
readonly tokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1143
|
+
readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1144
|
+
readonly metadata: {
|
|
1145
|
+
readonly scopes: readonly string[];
|
|
1146
|
+
readonly resources: readonly string[];
|
|
1147
|
+
readonly accessExpiresAtMillis?: number | undefined;
|
|
1148
|
+
readonly refreshExpiresAtMillis?: number | undefined;
|
|
1149
|
+
readonly useUntilMillis: number;
|
|
1150
|
+
readonly refreshUseUntilMillis?: number | undefined;
|
|
1151
|
+
readonly obtainedAtMillis: number;
|
|
1152
|
+
readonly profile?: {
|
|
1153
|
+
readonly displayName?: string | undefined;
|
|
1154
|
+
readonly handle?: string | undefined;
|
|
1155
|
+
} | undefined;
|
|
1156
|
+
};
|
|
1157
|
+
};
|
|
1158
|
+
readonly sealed: {
|
|
1159
|
+
readonly format: "oauth-connected-xchacha20poly1305-v1";
|
|
1160
|
+
readonly keyId: string;
|
|
1161
|
+
readonly nonce: string;
|
|
1162
|
+
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1163
|
+
};
|
|
1164
|
+
};
|
|
1165
|
+
readonly claimId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
|
|
1166
|
+
readonly claimedAtMillis: number;
|
|
1167
|
+
readonly claimExpiresAtMillis: number;
|
|
1168
|
+
readonly nextTokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1169
|
+
};
|
|
1170
|
+
}, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable, never>;
|
|
1171
|
+
readonly settleRefresh: <A>(input: {
|
|
1172
|
+
readonly claim: OAuthConnectedRefreshClaim;
|
|
1173
|
+
readonly authorization: OAuthConnectedUseAuthorization;
|
|
1174
|
+
readonly outcome: OAuthConnectedRefreshOutcome;
|
|
1175
|
+
}, prepare: PrepareOAuthCommit<{
|
|
1176
|
+
readonly _tag: "Rejected";
|
|
1177
|
+
} | {
|
|
1178
|
+
readonly _tag: "ReauthorizationRequired";
|
|
1179
|
+
} | {
|
|
1180
|
+
readonly _tag: "Refreshed";
|
|
1181
|
+
readonly grant: {
|
|
1182
|
+
readonly context: {
|
|
1183
|
+
readonly namespace: "effect-auth/oauth-connected-token-context/v1";
|
|
1184
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
1185
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1186
|
+
readonly identity: {
|
|
1187
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1188
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
1189
|
+
readonly subject: string;
|
|
1190
|
+
};
|
|
1191
|
+
readonly configuration: {
|
|
1192
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1193
|
+
readonly protocol: "oauth" | "oidc";
|
|
1194
|
+
readonly configurationGeneration: number;
|
|
1195
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
1196
|
+
readonly responseIssuerMode: "required" | "unsupported";
|
|
1197
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
1198
|
+
readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
|
|
1199
|
+
readonly profile: {
|
|
1200
|
+
readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
1201
|
+
readonly generation: number;
|
|
1202
|
+
readonly issuance: "active" | "retired";
|
|
1203
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1204
|
+
readonly clientRegistrationId: string;
|
|
1205
|
+
readonly scopes: readonly string[];
|
|
1206
|
+
readonly resources: readonly string[];
|
|
1207
|
+
readonly retention: "access-and-refresh" | "access-only";
|
|
1208
|
+
readonly maximumAccessLifetimeMillis: number;
|
|
1209
|
+
readonly maximumRefreshLifetimeMillis?: number | undefined;
|
|
1210
|
+
readonly refreshAheadMillis: number;
|
|
1211
|
+
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1212
|
+
readonly revocation: "cohort" | "unsupported";
|
|
1213
|
+
};
|
|
1214
|
+
};
|
|
1215
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1216
|
+
readonly grantVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1217
|
+
readonly tokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1218
|
+
readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1219
|
+
readonly metadata: {
|
|
1220
|
+
readonly scopes: readonly string[];
|
|
1221
|
+
readonly resources: readonly string[];
|
|
1222
|
+
readonly accessExpiresAtMillis?: number | undefined;
|
|
1223
|
+
readonly refreshExpiresAtMillis?: number | undefined;
|
|
1224
|
+
readonly useUntilMillis: number;
|
|
1225
|
+
readonly refreshUseUntilMillis?: number | undefined;
|
|
1226
|
+
readonly obtainedAtMillis: number;
|
|
1227
|
+
readonly profile?: {
|
|
1228
|
+
readonly displayName?: string | undefined;
|
|
1229
|
+
readonly handle?: string | undefined;
|
|
1230
|
+
} | undefined;
|
|
1231
|
+
};
|
|
1232
|
+
};
|
|
1233
|
+
readonly sealed: {
|
|
1234
|
+
readonly format: "oauth-connected-xchacha20poly1305-v1";
|
|
1235
|
+
readonly keyId: string;
|
|
1236
|
+
readonly nonce: string;
|
|
1237
|
+
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1238
|
+
};
|
|
1239
|
+
};
|
|
1240
|
+
}, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable, never>;
|
|
1241
|
+
readonly admitUse: <A>(input: {
|
|
1242
|
+
readonly grant: OAuthConnectedStoredGrant;
|
|
1243
|
+
readonly authorization: OAuthConnectedUseAuthorization;
|
|
1244
|
+
readonly admissionId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
|
|
1245
|
+
readonly lifetimeMillis: number;
|
|
1246
|
+
}, prepare: PrepareOAuthCommit<{
|
|
1247
|
+
readonly _tag: "Rejected";
|
|
1248
|
+
} | {
|
|
1249
|
+
readonly _tag: "Busy";
|
|
1250
|
+
} | {
|
|
1251
|
+
readonly _tag: "ReauthorizationRequired";
|
|
1252
|
+
} | {
|
|
1253
|
+
readonly _tag: "Admitted";
|
|
1254
|
+
readonly admissionId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
|
|
1255
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1256
|
+
readonly tokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1257
|
+
readonly admittedAtMillis: number;
|
|
1258
|
+
readonly expiresAtMillis: number;
|
|
1259
|
+
}, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable, never>;
|
|
1260
|
+
readonly cleanup: <A>(input: OAuthCleanupInput, prepare: PrepareOAuthCommit<{
|
|
1261
|
+
readonly terminalized: number;
|
|
1262
|
+
readonly removed: number;
|
|
1263
|
+
readonly hasMore: boolean;
|
|
1264
|
+
}, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable, never>;
|
|
1265
|
+
};
|
|
1266
|
+
}, never, LifecycleHooks>, makeOAuthConnectedRevocationServices: <T extends AnyPgTable<{
|
|
1267
|
+
dialect: "pg";
|
|
1268
|
+
}>, O extends AnyPgTable<{
|
|
1269
|
+
dialect: "pg";
|
|
1270
|
+
}>, F extends AnyPgTable<{
|
|
1271
|
+
dialect: "pg";
|
|
1272
|
+
}>, G extends AnyPgTable<{
|
|
1273
|
+
dialect: "pg";
|
|
1274
|
+
}>, C extends AnyPgTable<{
|
|
1275
|
+
dialect: "pg";
|
|
1276
|
+
}>, H extends AnyPgTable<{
|
|
1277
|
+
dialect: "pg";
|
|
1278
|
+
}>, J extends AnyPgTable<{
|
|
1279
|
+
dialect: "pg";
|
|
1280
|
+
}>, N>(database: EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, mapping: OAuthConnectedRevocationMapping<T, O, F, G, C, H, J, N>) => import("effect/Effect").Effect<{
|
|
1281
|
+
oauthConnectedRevocations: {
|
|
1282
|
+
readonly claim: <A>(input: {
|
|
1283
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
1284
|
+
readonly claimId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
|
|
1285
|
+
readonly lifetimeMillis: number;
|
|
1286
|
+
}, prepare: PrepareOAuthCommit<{
|
|
1287
|
+
readonly _tag: "Claimed";
|
|
1288
|
+
readonly claim: {
|
|
1289
|
+
readonly job: {
|
|
1290
|
+
readonly context: {
|
|
1291
|
+
readonly namespace: "effect-auth/oauth-connected-revocation-context/v1";
|
|
1292
|
+
readonly jobId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
|
|
1293
|
+
readonly token: {
|
|
1294
|
+
readonly namespace: "effect-auth/oauth-connected-token-context/v1";
|
|
1295
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
1296
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1297
|
+
readonly identity: {
|
|
1298
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1299
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
1300
|
+
readonly subject: string;
|
|
1301
|
+
};
|
|
1302
|
+
readonly configuration: {
|
|
1303
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1304
|
+
readonly protocol: "oauth" | "oidc";
|
|
1305
|
+
readonly configurationGeneration: number;
|
|
1306
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
1307
|
+
readonly responseIssuerMode: "required" | "unsupported";
|
|
1308
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
1309
|
+
readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
|
|
1310
|
+
readonly profile: {
|
|
1311
|
+
readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
1312
|
+
readonly generation: number;
|
|
1313
|
+
readonly issuance: "active" | "retired";
|
|
1314
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1315
|
+
readonly clientRegistrationId: string;
|
|
1316
|
+
readonly scopes: readonly string[];
|
|
1317
|
+
readonly resources: readonly string[];
|
|
1318
|
+
readonly retention: "access-and-refresh" | "access-only";
|
|
1319
|
+
readonly maximumAccessLifetimeMillis: number;
|
|
1320
|
+
readonly maximumRefreshLifetimeMillis?: number | undefined;
|
|
1321
|
+
readonly refreshAheadMillis: number;
|
|
1322
|
+
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1323
|
+
readonly revocation: "cohort" | "unsupported";
|
|
1324
|
+
};
|
|
1325
|
+
};
|
|
1326
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1327
|
+
readonly grantVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1328
|
+
readonly tokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1329
|
+
readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1330
|
+
readonly metadata: {
|
|
1331
|
+
readonly scopes: readonly string[];
|
|
1332
|
+
readonly resources: readonly string[];
|
|
1333
|
+
readonly accessExpiresAtMillis?: number | undefined;
|
|
1334
|
+
readonly refreshExpiresAtMillis?: number | undefined;
|
|
1335
|
+
readonly useUntilMillis: number;
|
|
1336
|
+
readonly refreshUseUntilMillis?: number | undefined;
|
|
1337
|
+
readonly obtainedAtMillis: number;
|
|
1338
|
+
readonly profile?: {
|
|
1339
|
+
readonly displayName?: string | undefined;
|
|
1340
|
+
readonly handle?: string | undefined;
|
|
1341
|
+
} | undefined;
|
|
1342
|
+
};
|
|
1343
|
+
};
|
|
1344
|
+
};
|
|
1345
|
+
readonly sealed: {
|
|
1346
|
+
readonly format: "oauth-connected-xchacha20poly1305-v1";
|
|
1347
|
+
readonly keyId: string;
|
|
1348
|
+
readonly nonce: string;
|
|
1349
|
+
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1350
|
+
};
|
|
1351
|
+
};
|
|
1352
|
+
readonly claimId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
|
|
1353
|
+
readonly claimedAtMillis: number;
|
|
1354
|
+
readonly claimExpiresAtMillis: number;
|
|
1355
|
+
};
|
|
1356
|
+
} | {
|
|
1357
|
+
readonly _tag: "Empty";
|
|
1358
|
+
}, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable>;
|
|
1359
|
+
readonly settle: <A>(input: {
|
|
1360
|
+
readonly claim: OAuthConnectedRevocationClaim;
|
|
1361
|
+
readonly outcome: "Confirmed" | "Unknown";
|
|
1362
|
+
}, prepare: PrepareOAuthCommit<{
|
|
1363
|
+
readonly settled: boolean;
|
|
1364
|
+
}, A>) => import("effect/Effect").Effect<PreparedCommit<A>, OAuthUnavailable>;
|
|
1365
|
+
};
|
|
1366
|
+
}, never, LifecycleHooks>, coordinateOAuthConnected: {
|
|
1367
|
+
<D extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
1368
|
+
dialect: "pg";
|
|
1369
|
+
}>, AC extends AnyPgTable<{
|
|
1370
|
+
dialect: "pg";
|
|
1371
|
+
}>, T extends AnyPgTable<{
|
|
1372
|
+
dialect: "pg";
|
|
1373
|
+
}>, O extends AnyPgTable<{
|
|
1374
|
+
dialect: "pg";
|
|
1375
|
+
}>, F extends AnyPgTable<{
|
|
1376
|
+
dialect: "pg";
|
|
1377
|
+
}>, G extends AnyPgTable<{
|
|
1378
|
+
dialect: "pg";
|
|
1379
|
+
}>, C extends AnyPgTable<{
|
|
1380
|
+
dialect: "pg";
|
|
1381
|
+
}>, H extends AnyPgTable<{
|
|
1382
|
+
dialect: "pg";
|
|
1383
|
+
}>, UA extends AnyPgTable<{
|
|
1384
|
+
dialect: "pg";
|
|
1385
|
+
}>, DC extends AnyPgTable<{
|
|
1386
|
+
dialect: "pg";
|
|
1387
|
+
}>, N, J extends AnyPgTable<{
|
|
1388
|
+
dialect: "pg";
|
|
1389
|
+
}>, A, E, R, DatabaseError, DatabaseRequirements>(acquire: import("effect/Effect").Effect<D, DatabaseError, DatabaseRequirements>, options: {
|
|
1390
|
+
readonly mapping: OAuthConnectedMapping<S, AC, T, O, F, G, C, H, UA, DC, N, J>;
|
|
1391
|
+
readonly transaction?: never;
|
|
1392
|
+
}, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks | Exclude<R, OAuthConnectedPersistence>>;
|
|
1393
|
+
<D extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
1394
|
+
dialect: "pg";
|
|
1395
|
+
}>, AC extends AnyPgTable<{
|
|
1396
|
+
dialect: "pg";
|
|
1397
|
+
}>, T extends AnyPgTable<{
|
|
1398
|
+
dialect: "pg";
|
|
1399
|
+
}>, O extends AnyPgTable<{
|
|
1400
|
+
dialect: "pg";
|
|
1401
|
+
}>, F extends AnyPgTable<{
|
|
1402
|
+
dialect: "pg";
|
|
1403
|
+
}>, G extends AnyPgTable<{
|
|
1404
|
+
dialect: "pg";
|
|
1405
|
+
}>, C extends AnyPgTable<{
|
|
1406
|
+
dialect: "pg";
|
|
1407
|
+
}>, H extends AnyPgTable<{
|
|
1408
|
+
dialect: "pg";
|
|
1409
|
+
}>, UA extends AnyPgTable<{
|
|
1410
|
+
dialect: "pg";
|
|
1411
|
+
}>, DC extends AnyPgTable<{
|
|
1412
|
+
dialect: "pg";
|
|
1413
|
+
}>, N, J extends AnyPgTable<{
|
|
1414
|
+
dialect: "pg";
|
|
1415
|
+
}>, A, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: import("effect/Effect").Effect<D, DatabaseError, DatabaseRequirements>, options: {
|
|
1416
|
+
readonly mapping: OAuthConnectedMapping<S, AC, T, O, F, G, C, H, UA, DC, N, J>;
|
|
1417
|
+
readonly transaction: SuppliedService<TxId, NoInfer<D extends {
|
|
1418
|
+
readonly transaction: (...args: any[]) => any;
|
|
1419
|
+
} ? Parameters<Parameters<D["transaction"]>[0]>[0] : never>, TxShape>;
|
|
1420
|
+
}, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks | Exclude<R, TxId | OAuthConnectedPersistence>>;
|
|
1421
|
+
}, coordinateOAuthConnectedRevocations: {
|
|
1422
|
+
<D extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, T extends AnyPgTable<{
|
|
1423
|
+
dialect: "pg";
|
|
1424
|
+
}>, O extends AnyPgTable<{
|
|
1425
|
+
dialect: "pg";
|
|
1426
|
+
}>, F extends AnyPgTable<{
|
|
1427
|
+
dialect: "pg";
|
|
1428
|
+
}>, G extends AnyPgTable<{
|
|
1429
|
+
dialect: "pg";
|
|
1430
|
+
}>, C extends AnyPgTable<{
|
|
1431
|
+
dialect: "pg";
|
|
1432
|
+
}>, H extends AnyPgTable<{
|
|
1433
|
+
dialect: "pg";
|
|
1434
|
+
}>, J extends AnyPgTable<{
|
|
1435
|
+
dialect: "pg";
|
|
1436
|
+
}>, N, A, E, R, DatabaseError, DatabaseRequirements>(acquire: import("effect/Effect").Effect<D, DatabaseError, DatabaseRequirements>, options: {
|
|
1437
|
+
readonly mapping: OAuthConnectedRevocationMapping<T, O, F, G, C, H, J, N>;
|
|
1438
|
+
readonly transaction?: never;
|
|
1439
|
+
}, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks | Exclude<R, OAuthConnectedRevocations>>;
|
|
1440
|
+
<D extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, T extends AnyPgTable<{
|
|
1441
|
+
dialect: "pg";
|
|
1442
|
+
}>, O extends AnyPgTable<{
|
|
1443
|
+
dialect: "pg";
|
|
1444
|
+
}>, F extends AnyPgTable<{
|
|
1445
|
+
dialect: "pg";
|
|
1446
|
+
}>, G extends AnyPgTable<{
|
|
1447
|
+
dialect: "pg";
|
|
1448
|
+
}>, C extends AnyPgTable<{
|
|
1449
|
+
dialect: "pg";
|
|
1450
|
+
}>, H extends AnyPgTable<{
|
|
1451
|
+
dialect: "pg";
|
|
1452
|
+
}>, J extends AnyPgTable<{
|
|
1453
|
+
dialect: "pg";
|
|
1454
|
+
}>, N, A, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: import("effect/Effect").Effect<D, DatabaseError, DatabaseRequirements>, options: {
|
|
1455
|
+
readonly mapping: OAuthConnectedRevocationMapping<T, O, F, G, C, H, J, N>;
|
|
1456
|
+
readonly transaction: SuppliedService<TxId, NoInfer<D extends {
|
|
1457
|
+
readonly transaction: (...args: any[]) => any;
|
|
1458
|
+
} ? Parameters<Parameters<D["transaction"]>[0]>[0] : never>, TxShape>;
|
|
1459
|
+
}, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | LifecycleHooks | Exclude<R, TxId | OAuthConnectedRevocations>>;
|
|
1460
|
+
};
|
|
1461
|
+
declare const makePasskeyCredentialServices: <Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
1462
|
+
dialect: "pg";
|
|
1463
|
+
}>, C extends AnyPgTable<{
|
|
1464
|
+
dialect: "pg";
|
|
1465
|
+
}>, F extends AnyPgTable<{
|
|
1466
|
+
dialect: "pg";
|
|
1467
|
+
}>, O extends AnyPgTable<{
|
|
1468
|
+
dialect: "pg";
|
|
1469
|
+
}>, H extends AnyPgTable<{
|
|
1470
|
+
dialect: "pg";
|
|
1471
|
+
}>, N, RSetup = never>(database: Database, mapping: PasskeyMappingSource<PasskeyCredentialMapping<S, C, F, O, H, N>, RSetup>) => import("effect/Effect").Effect<PasskeyCredentialServices, DrizzleMappingError | PasskeyConfigurationError, RSetup>, makePasskeyPersistenceServices: <Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
1472
|
+
dialect: "pg";
|
|
1473
|
+
}>, C extends AnyPgTable<{
|
|
1474
|
+
dialect: "pg";
|
|
1475
|
+
}>, F extends AnyPgTable<{
|
|
1476
|
+
dialect: "pg";
|
|
1477
|
+
}>, O extends AnyPgTable<{
|
|
1478
|
+
dialect: "pg";
|
|
1479
|
+
}>, H extends AnyPgTable<{
|
|
1480
|
+
dialect: "pg";
|
|
1481
|
+
}>, M extends AnyPgTable<{
|
|
1482
|
+
dialect: "pg";
|
|
1483
|
+
}>, Flow extends AnyPgTable<{
|
|
1484
|
+
dialect: "pg";
|
|
1485
|
+
}>, Admission extends AnyPgTable<{
|
|
1486
|
+
dialect: "pg";
|
|
1487
|
+
}>, Charge extends AnyPgTable<{
|
|
1488
|
+
dialect: "pg";
|
|
1489
|
+
}>, N, RSetup = never>(database: Database, mapping: PasskeyMappingSource<PasskeyPersistenceMapping<PasskeyCredentialMapping<S, C, F, O, H, N>, M, Flow, Admission, Charge, N>, RSetup>) => import("effect/Effect").Effect<PasskeyPersistenceServices, DrizzleMappingError | PasskeyConfigurationError, RSetup | LifecycleHooks>, makePasskeyEnrollmentContextServices: <Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
1490
|
+
dialect: "pg";
|
|
1491
|
+
}>, C extends AnyPgTable<{
|
|
1492
|
+
dialect: "pg";
|
|
1493
|
+
}>, F extends AnyPgTable<{
|
|
1494
|
+
dialect: "pg";
|
|
1495
|
+
}>, O extends AnyPgTable<{
|
|
1496
|
+
dialect: "pg";
|
|
1497
|
+
}>, H extends AnyPgTable<{
|
|
1498
|
+
dialect: "pg";
|
|
1499
|
+
}>, M extends AnyPgTable<{
|
|
1500
|
+
dialect: "pg";
|
|
1501
|
+
}>, N, RSetup = never>(database: Database, mapping: PasskeyMappingSource<PasskeyEnrollmentContextMapping<PasskeyCredentialMapping<S, C, F, O, H, N>, M, N>, RSetup>) => import("effect/Effect").Effect<PasskeyEnrollmentContextServices, DrizzleMappingError | PasskeyConfigurationError, RSetup>, makePasskeyRegistrationCeremonyServices: <Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, M extends AnyPgTable<{
|
|
1502
|
+
dialect: "pg";
|
|
1503
|
+
}>, Flow extends AnyPgTable<{
|
|
1504
|
+
dialect: "pg";
|
|
1505
|
+
}>, Admission extends AnyPgTable<{
|
|
1506
|
+
dialect: "pg";
|
|
1507
|
+
}>, Charge extends AnyPgTable<{
|
|
1508
|
+
dialect: "pg";
|
|
1509
|
+
}>, Intent extends AnyPgTable<{
|
|
1510
|
+
dialect: "pg";
|
|
1511
|
+
}>, H extends AnyPgTable<{
|
|
1512
|
+
dialect: "pg";
|
|
1513
|
+
}>, RSetup = never>(database: Database, mapping: PasskeyMappingSource<PasskeyRegistrationCeremonyMapping<M, Flow, Admission, Charge, Intent, H>, RSetup>) => import("effect/Effect").Effect<PasskeyRegistrationCeremonyServices, DrizzleMappingError | PasskeyConfigurationError, RSetup | LifecycleHooks>, coordinatePasskeyPersistence: {
|
|
1514
|
+
<Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
1515
|
+
dialect: "pg";
|
|
1516
|
+
}>, C extends AnyPgTable<{
|
|
1517
|
+
dialect: "pg";
|
|
1518
|
+
}>, F extends AnyPgTable<{
|
|
1519
|
+
dialect: "pg";
|
|
1520
|
+
}>, O extends AnyPgTable<{
|
|
1521
|
+
dialect: "pg";
|
|
1522
|
+
}>, H extends AnyPgTable<{
|
|
1523
|
+
dialect: "pg";
|
|
1524
|
+
}>, M extends AnyPgTable<{
|
|
1525
|
+
dialect: "pg";
|
|
1526
|
+
}>, Flow extends AnyPgTable<{
|
|
1527
|
+
dialect: "pg";
|
|
1528
|
+
}>, Admission extends AnyPgTable<{
|
|
1529
|
+
dialect: "pg";
|
|
1530
|
+
}>, Charge extends AnyPgTable<{
|
|
1531
|
+
dialect: "pg";
|
|
1532
|
+
}>, N, A, E, R, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
1533
|
+
readonly mapping: PasskeyMappingSource<PasskeyPersistenceMapping<PasskeyCredentialMapping<S, C, F, O, H, N>, M, Flow, Admission, Charge, N>, RSetup>;
|
|
1534
|
+
readonly transaction?: never;
|
|
1535
|
+
}, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks | Exclude<R, PasskeyPersistence>>;
|
|
1536
|
+
<Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
1537
|
+
dialect: "pg";
|
|
1538
|
+
}>, C extends AnyPgTable<{
|
|
1539
|
+
dialect: "pg";
|
|
1540
|
+
}>, F extends AnyPgTable<{
|
|
1541
|
+
dialect: "pg";
|
|
1542
|
+
}>, O extends AnyPgTable<{
|
|
1543
|
+
dialect: "pg";
|
|
1544
|
+
}>, H extends AnyPgTable<{
|
|
1545
|
+
dialect: "pg";
|
|
1546
|
+
}>, M extends AnyPgTable<{
|
|
1547
|
+
dialect: "pg";
|
|
1548
|
+
}>, Flow extends AnyPgTable<{
|
|
1549
|
+
dialect: "pg";
|
|
1550
|
+
}>, Admission extends AnyPgTable<{
|
|
1551
|
+
dialect: "pg";
|
|
1552
|
+
}>, Charge extends AnyPgTable<{
|
|
1553
|
+
dialect: "pg";
|
|
1554
|
+
}>, N, A, E, R, TxId, TxShape, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
1555
|
+
readonly mapping: PasskeyMappingSource<PasskeyPersistenceMapping<PasskeyCredentialMapping<S, C, F, O, H, N>, M, Flow, Admission, Charge, N>, RSetup>;
|
|
1556
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
1557
|
+
readonly transaction: (...args: any[]) => any;
|
|
1558
|
+
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
1559
|
+
}, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks | Exclude<R, TxId | PasskeyPersistence>>;
|
|
1560
|
+
}, coordinatePasskeyRegistrationCeremony: {
|
|
1561
|
+
<Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, M extends AnyPgTable<{
|
|
1562
|
+
dialect: "pg";
|
|
1563
|
+
}>, Flow extends AnyPgTable<{
|
|
1564
|
+
dialect: "pg";
|
|
1565
|
+
}>, Admission extends AnyPgTable<{
|
|
1566
|
+
dialect: "pg";
|
|
1567
|
+
}>, Charge extends AnyPgTable<{
|
|
1568
|
+
dialect: "pg";
|
|
1569
|
+
}>, Intent extends AnyPgTable<{
|
|
1570
|
+
dialect: "pg";
|
|
1571
|
+
}>, H extends AnyPgTable<{
|
|
1572
|
+
dialect: "pg";
|
|
1573
|
+
}>, A, E, R, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
1574
|
+
readonly mapping: PasskeyMappingSource<PasskeyRegistrationCeremonyMapping<M, Flow, Admission, Charge, Intent, H>, RSetup>;
|
|
1575
|
+
readonly transaction?: never;
|
|
1576
|
+
}, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks | Exclude<R, PasskeyPersistence>>;
|
|
1577
|
+
<Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, M extends AnyPgTable<{
|
|
1578
|
+
dialect: "pg";
|
|
1579
|
+
}>, Flow extends AnyPgTable<{
|
|
1580
|
+
dialect: "pg";
|
|
1581
|
+
}>, Admission extends AnyPgTable<{
|
|
1582
|
+
dialect: "pg";
|
|
1583
|
+
}>, Charge extends AnyPgTable<{
|
|
1584
|
+
dialect: "pg";
|
|
1585
|
+
}>, Intent extends AnyPgTable<{
|
|
1586
|
+
dialect: "pg";
|
|
1587
|
+
}>, H extends AnyPgTable<{
|
|
1588
|
+
dialect: "pg";
|
|
1589
|
+
}>, A, E, R, TxId, TxShape, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
1590
|
+
readonly mapping: PasskeyMappingSource<PasskeyRegistrationCeremonyMapping<M, Flow, Admission, Charge, Intent, H>, RSetup>;
|
|
1591
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
1592
|
+
readonly transaction: (...args: any[]) => any;
|
|
1593
|
+
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
1594
|
+
}, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks | Exclude<R, TxId | PasskeyPersistence>>;
|
|
1595
|
+
}, makePasskeyManagementServices: <Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
1596
|
+
dialect: "pg";
|
|
1597
|
+
}>, C extends AnyPgTable<{
|
|
1598
|
+
dialect: "pg";
|
|
1599
|
+
}>, F extends AnyPgTable<{
|
|
1600
|
+
dialect: "pg";
|
|
1601
|
+
}>, O extends AnyPgTable<{
|
|
1602
|
+
dialect: "pg";
|
|
1603
|
+
}>, H extends AnyPgTable<{
|
|
1604
|
+
dialect: "pg";
|
|
1605
|
+
}>, M extends AnyPgTable<{
|
|
1606
|
+
dialect: "pg";
|
|
1607
|
+
}>, Flow extends AnyPgTable<{
|
|
1608
|
+
dialect: "pg";
|
|
1609
|
+
}>, Admission extends AnyPgTable<{
|
|
1610
|
+
dialect: "pg";
|
|
1611
|
+
}>, Charge extends AnyPgTable<{
|
|
1612
|
+
dialect: "pg";
|
|
1613
|
+
}>, Command extends AnyPgTable<{
|
|
1614
|
+
dialect: "pg";
|
|
1615
|
+
}>, N, RSetup = never>(database: Database, mapping: PasskeyMappingSource<PasskeyManagementMapping<S, C, F, O, H, M, Flow, Admission, Charge, Command, N>, RSetup>) => import("effect/Effect").Effect<PasskeyManagementServices, DrizzleMappingError | PasskeyConfigurationError, RSetup | LifecycleHooks>, makePasskeyRegistrationServices: <Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
1616
|
+
dialect: "pg";
|
|
1617
|
+
}>, C extends AnyPgTable<{
|
|
1618
|
+
dialect: "pg";
|
|
1619
|
+
}>, F extends AnyPgTable<{
|
|
1620
|
+
dialect: "pg";
|
|
1621
|
+
}>, O extends AnyPgTable<{
|
|
1622
|
+
dialect: "pg";
|
|
1623
|
+
}>, H extends AnyPgTable<{
|
|
1624
|
+
dialect: "pg";
|
|
1625
|
+
}>, M extends AnyPgTable<{
|
|
1626
|
+
dialect: "pg";
|
|
1627
|
+
}>, Flow extends AnyPgTable<{
|
|
1628
|
+
dialect: "pg";
|
|
1629
|
+
}>, Admission extends AnyPgTable<{
|
|
1630
|
+
dialect: "pg";
|
|
1631
|
+
}>, Charge extends AnyPgTable<{
|
|
1632
|
+
dialect: "pg";
|
|
1633
|
+
}>, Intent extends AnyPgTable<{
|
|
1634
|
+
dialect: "pg";
|
|
1635
|
+
}>, N, Value, RSetup = never>(database: Database, mapping: PasskeyMappingSource<PasskeyRegistrationMapping<S, C, F, O, H, M, Flow, Admission, Charge, Intent, N, Value>, RSetup>) => import("effect/Effect").Effect<PasskeyRegistrationServices<Value>, DrizzleMappingError | PasskeyConfigurationError, RSetup | LifecycleHooks>, coordinatePasskeyManagement: {
|
|
1636
|
+
<Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
1637
|
+
dialect: "pg";
|
|
1638
|
+
}>, C extends AnyPgTable<{
|
|
1639
|
+
dialect: "pg";
|
|
1640
|
+
}>, F extends AnyPgTable<{
|
|
1641
|
+
dialect: "pg";
|
|
1642
|
+
}>, O extends AnyPgTable<{
|
|
1643
|
+
dialect: "pg";
|
|
1644
|
+
}>, H extends AnyPgTable<{
|
|
1645
|
+
dialect: "pg";
|
|
1646
|
+
}>, M extends AnyPgTable<{
|
|
1647
|
+
dialect: "pg";
|
|
1648
|
+
}>, Flow extends AnyPgTable<{
|
|
1649
|
+
dialect: "pg";
|
|
1650
|
+
}>, Admission extends AnyPgTable<{
|
|
1651
|
+
dialect: "pg";
|
|
1652
|
+
}>, Charge extends AnyPgTable<{
|
|
1653
|
+
dialect: "pg";
|
|
1654
|
+
}>, Command extends AnyPgTable<{
|
|
1655
|
+
dialect: "pg";
|
|
1656
|
+
}>, N, A, E, R, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
1657
|
+
readonly mapping: PasskeyMappingSource<PasskeyManagementMapping<S, C, F, O, H, M, Flow, Admission, Charge, Command, N>, RSetup>;
|
|
1658
|
+
readonly transaction?: never;
|
|
1659
|
+
}, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks | Exclude<R, PasskeyManagementPersistence | PasskeyPersistence>>;
|
|
1660
|
+
<Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
1661
|
+
dialect: "pg";
|
|
1662
|
+
}>, C extends AnyPgTable<{
|
|
1663
|
+
dialect: "pg";
|
|
1664
|
+
}>, F extends AnyPgTable<{
|
|
1665
|
+
dialect: "pg";
|
|
1666
|
+
}>, O extends AnyPgTable<{
|
|
1667
|
+
dialect: "pg";
|
|
1668
|
+
}>, H extends AnyPgTable<{
|
|
1669
|
+
dialect: "pg";
|
|
1670
|
+
}>, M extends AnyPgTable<{
|
|
1671
|
+
dialect: "pg";
|
|
1672
|
+
}>, Flow extends AnyPgTable<{
|
|
1673
|
+
dialect: "pg";
|
|
1674
|
+
}>, Admission extends AnyPgTable<{
|
|
1675
|
+
dialect: "pg";
|
|
1676
|
+
}>, Charge extends AnyPgTable<{
|
|
1677
|
+
dialect: "pg";
|
|
1678
|
+
}>, Command extends AnyPgTable<{
|
|
1679
|
+
dialect: "pg";
|
|
1680
|
+
}>, N, A, E, R, TxId, TxShape, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
1681
|
+
readonly mapping: PasskeyMappingSource<PasskeyManagementMapping<S, C, F, O, H, M, Flow, Admission, Charge, Command, N>, RSetup>;
|
|
1682
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
1683
|
+
readonly transaction: (...args: any[]) => any;
|
|
1684
|
+
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
1685
|
+
}, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks | Exclude<R, TxId | PasskeyManagementPersistence | PasskeyPersistence>>;
|
|
1686
|
+
}, coordinatePasskeyRegistration: {
|
|
1687
|
+
<Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
1688
|
+
dialect: "pg";
|
|
1689
|
+
}>, C extends AnyPgTable<{
|
|
1690
|
+
dialect: "pg";
|
|
1691
|
+
}>, F extends AnyPgTable<{
|
|
1692
|
+
dialect: "pg";
|
|
1693
|
+
}>, O extends AnyPgTable<{
|
|
1694
|
+
dialect: "pg";
|
|
1695
|
+
}>, H extends AnyPgTable<{
|
|
1696
|
+
dialect: "pg";
|
|
1697
|
+
}>, M extends AnyPgTable<{
|
|
1698
|
+
dialect: "pg";
|
|
1699
|
+
}>, Flow extends AnyPgTable<{
|
|
1700
|
+
dialect: "pg";
|
|
1701
|
+
}>, Admission extends AnyPgTable<{
|
|
1702
|
+
dialect: "pg";
|
|
1703
|
+
}>, Charge extends AnyPgTable<{
|
|
1704
|
+
dialect: "pg";
|
|
1705
|
+
}>, Intent extends AnyPgTable<{
|
|
1706
|
+
dialect: "pg";
|
|
1707
|
+
}>, N, Value, A, E, R, AuthorityId, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
1708
|
+
readonly mapping: PasskeyMappingSource<PasskeyRegistrationMapping<S, C, F, O, H, M, Flow, Admission, Charge, Intent, N, Value>, RSetup>;
|
|
1709
|
+
readonly authority: import("effect/Context").Key<AuthorityId, PasskeyRegistrationWriter<Value>>;
|
|
1710
|
+
readonly transaction?: never;
|
|
1711
|
+
}, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks | Exclude<R, AuthorityId | PasskeyPersistence>>;
|
|
1712
|
+
<Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
1713
|
+
dialect: "pg";
|
|
1714
|
+
}>, C extends AnyPgTable<{
|
|
1715
|
+
dialect: "pg";
|
|
1716
|
+
}>, F extends AnyPgTable<{
|
|
1717
|
+
dialect: "pg";
|
|
1718
|
+
}>, O extends AnyPgTable<{
|
|
1719
|
+
dialect: "pg";
|
|
1720
|
+
}>, H extends AnyPgTable<{
|
|
1721
|
+
dialect: "pg";
|
|
1722
|
+
}>, M extends AnyPgTable<{
|
|
1723
|
+
dialect: "pg";
|
|
1724
|
+
}>, Flow extends AnyPgTable<{
|
|
1725
|
+
dialect: "pg";
|
|
1726
|
+
}>, Admission extends AnyPgTable<{
|
|
1727
|
+
dialect: "pg";
|
|
1728
|
+
}>, Charge extends AnyPgTable<{
|
|
1729
|
+
dialect: "pg";
|
|
1730
|
+
}>, Intent extends AnyPgTable<{
|
|
1731
|
+
dialect: "pg";
|
|
1732
|
+
}>, N, Value, A, E, R, AuthorityId, TxId, TxShape, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
1733
|
+
readonly mapping: PasskeyMappingSource<PasskeyRegistrationMapping<S, C, F, O, H, M, Flow, Admission, Charge, Intent, N, Value>, RSetup>;
|
|
1734
|
+
readonly authority: import("effect/Context").Key<AuthorityId, PasskeyRegistrationWriter<Value>>;
|
|
1735
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
1736
|
+
readonly transaction: (...args: any[]) => any;
|
|
1737
|
+
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
1738
|
+
}, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks | Exclude<R, AuthorityId | TxId | PasskeyPersistence>>;
|
|
1739
|
+
};
|
|
1740
|
+
declare const makeTotpPersistenceServices: <Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
1741
|
+
dialect: "pg";
|
|
1742
|
+
}>, F extends AnyPgTable<{
|
|
1743
|
+
dialect: "pg";
|
|
1744
|
+
}>, C extends AnyPgTable<{
|
|
1745
|
+
dialect: "pg";
|
|
1746
|
+
}>, N, RSetup = never>(database: Database, mapping: TotpMappingSource<TotpMapping<S, F, C, N>, RSetup>) => import("effect/Effect").Effect<TotpPersistenceServices, DrizzleMappingError | TotpConfigurationError, RSetup | LifecycleHooks>, coordinateTotpPersistence: {
|
|
1747
|
+
<Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
1748
|
+
dialect: "pg";
|
|
1749
|
+
}>, F extends AnyPgTable<{
|
|
1750
|
+
dialect: "pg";
|
|
1751
|
+
}>, C extends AnyPgTable<{
|
|
1752
|
+
dialect: "pg";
|
|
1753
|
+
}>, N, A, E, R, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
1754
|
+
readonly mapping: TotpMappingSource<TotpMapping<S, F, C, N>, RSetup>;
|
|
1755
|
+
readonly transaction?: never;
|
|
1756
|
+
}, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | TotpCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks | Exclude<R, TotpPersistence>>;
|
|
1757
|
+
<Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
1758
|
+
dialect: "pg";
|
|
1759
|
+
}>, F extends AnyPgTable<{
|
|
1760
|
+
dialect: "pg";
|
|
1761
|
+
}>, C extends AnyPgTable<{
|
|
1762
|
+
dialect: "pg";
|
|
1763
|
+
}>, N, A, E, R, TxId, TxShape, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
1764
|
+
readonly mapping: TotpMappingSource<TotpMapping<S, F, C, N>, RSetup>;
|
|
1765
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
1766
|
+
readonly transaction: (...args: any[]) => any;
|
|
1767
|
+
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
1768
|
+
}, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | TotpCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks | Exclude<R, TxId | TotpPersistence>>;
|
|
1769
|
+
};
|
|
1770
|
+
declare const makePhonePersistenceServices: <Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
1771
|
+
dialect: "pg";
|
|
1772
|
+
}>, I extends AnyPgTable<{
|
|
1773
|
+
dialect: "pg";
|
|
1774
|
+
}>, F extends AnyPgTable<{
|
|
1775
|
+
dialect: "pg";
|
|
1776
|
+
}>, C extends AnyPgTable<{
|
|
1777
|
+
dialect: "pg";
|
|
1778
|
+
}>, N, RSetup = never>(database: Database, mapping: PhoneMappingSource<PhoneMapping<S, I, C, F, N>, RSetup>) => import("effect/Effect").Effect<PhonePersistenceServices, DrizzleMappingError | PhoneConfigurationError, RSetup | LifecycleHooks>, coordinatePhonePersistence: {
|
|
1779
|
+
<Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
1780
|
+
dialect: "pg";
|
|
1781
|
+
}>, I extends AnyPgTable<{
|
|
1782
|
+
dialect: "pg";
|
|
1783
|
+
}>, F extends AnyPgTable<{
|
|
1784
|
+
dialect: "pg";
|
|
1785
|
+
}>, C extends AnyPgTable<{
|
|
1786
|
+
dialect: "pg";
|
|
1787
|
+
}>, N, A, E, R, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
1788
|
+
readonly mapping: PhoneMappingSource<PhoneMapping<S, I, C, F, N>, RSetup>;
|
|
1789
|
+
readonly transaction?: never;
|
|
1790
|
+
}, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | PhoneCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks | Exclude<R, PhoneAdmission | PhonePersistence | PhoneSignInTargets>>;
|
|
1791
|
+
<Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
1792
|
+
dialect: "pg";
|
|
1793
|
+
}>, I extends AnyPgTable<{
|
|
1794
|
+
dialect: "pg";
|
|
1795
|
+
}>, F extends AnyPgTable<{
|
|
1796
|
+
dialect: "pg";
|
|
1797
|
+
}>, C extends AnyPgTable<{
|
|
1798
|
+
dialect: "pg";
|
|
1799
|
+
}>, N, A, E, R, TxId, TxShape, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: import("effect/Effect").Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
1800
|
+
readonly mapping: PhoneMappingSource<PhoneMapping<S, I, C, F, N>, RSetup>;
|
|
1801
|
+
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
1802
|
+
readonly transaction: (...args: any[]) => any;
|
|
1803
|
+
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
1804
|
+
}, body: import("effect/Effect").Effect<A, E, R>): import("effect/Effect").Effect<A, DatabaseError | PhoneCoordinatorError<E>, DatabaseRequirements | RSetup | LifecycleHooks | Exclude<R, TxId | PhoneAdmission | PhonePersistence | PhoneSignInTargets>>;
|
|
1805
|
+
};
|
|
1806
|
+
//#endregion
|
|
1807
|
+
export { commitMode, coordinatePgAuthStoreTransaction as coordinateAuthStoreTransaction, coordinatePgAuthTransaction as coordinateAuthTransaction, coordinatePgAuthenticationAuthority as coordinateAuthenticationAuthority, coordinatePgEmailAddress as coordinateEmailAddress, coordinatePgEmailRegistration as coordinateEmailRegistration, coordinateOAuthAccounts, coordinateOAuthConnected, coordinateOAuthConnectedRevocations, coordinateOAuthRegistration, coordinateOAuthRegistrationIntents, coordinateOAuthSignIn, coordinatePgOAuthStateTransaction as coordinateOAuthStateTransaction, coordinatePasskeyManagement, coordinatePasskeyPersistence, coordinatePasskeyRegistration, coordinatePasskeyRegistrationCeremony, coordinatePgPasswordPersistence as coordinatePasswordPersistence, coordinatePgPasswordPreparedPersistence as coordinatePasswordPreparedPersistence, coordinatePgPasswordRegistration as coordinatePasswordRegistration, coordinatePgPendingAuthentication as coordinatePendingAuthentication, coordinatePhonePersistence, coordinatePgProofPersistence as coordinateProofPersistence, coordinatePgSessionStepUp as coordinateSessionStepUp, coordinatePgSignedSessionValidity as coordinateSignedSessionValidity, coordinatePgStatefulSessions as coordinateStatefulSessions, coordinateTotpPersistence, makeAuthServices, makePgAuthStoreServices as makeAuthStoreServices, makePgAuthenticationAuthorityServices as makeAuthenticationAuthorityServices, makePgEmailAddressServices as makeEmailAddressServices, makePgEmailRegistrationServices as makeEmailRegistrationServices, makePgEmailSignInServices as makeEmailSignInServices, makePgExternalIdentityServices as makeExternalIdentityServices, makeIdentityServices, makeOAuthAccountsServices, makeOAuthConnectedRevocationServices, makeOAuthConnectedServices, makeOAuthRegistrationIntentServices, makeOAuthRegistrationServices, makeOAuthSignInServices, makePgOAuthStateServices as makeOAuthStateServices, makePasskeyCredentialServices, makePasskeyEnrollmentContextServices, makePasskeyManagementServices, makePasskeyPersistenceServices, makePasskeyRegistrationCeremonyServices, makePasskeyRegistrationServices, makePgPasswordPersistenceServices as makePasswordPersistenceServices, makePgPasswordPreparedPersistenceServices as makePasswordPreparedPersistenceServices, makePgPasswordRegistrationServices as makePasswordRegistrationServices, makePgPendingAuthenticationServices as makePendingAuthenticationServices, makePhonePersistenceServices, makePgProofPersistenceServices as makeProofPersistenceServices, makePgSessionStepUpServices as makeSessionStepUpServices, makePgSignedSessionValidityServices as makeSignedSessionValidityServices, makePgStatefulSessionServices as makeStatefulSessionServices, makePgSubjectProvisioningServices as makeSubjectProvisioningServices, makeTotpPersistenceServices, passwordPreparedPersistenceLayer };
|
|
1808
|
+
//# sourceMappingURL=DrizzlePglite.d.mts.map
|