@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,1546 @@
|
|
|
1
|
+
import { TokenDigest } from "../Schema.mjs";
|
|
2
|
+
import { AssuranceRequired, AuthenticationRequired, InvalidOperationInput, OperationForbidden, OperationPrivateOutputUnsupported } from "../operations/errors.mjs";
|
|
3
|
+
import { AuthInvocation, AuthenticationAssurance } from "../operations/context.mjs";
|
|
4
|
+
import { AuthCredentialCommandCollector, AuthOperationResult, AuthRevealCommandCollectorService } from "../operations/credentials.mjs";
|
|
5
|
+
import { AuthOperation, CredentialCollectorProvenance, OperationHandler, RevealCollectorProvenance } from "../operations/operation.mjs";
|
|
6
|
+
import { IdentityConflict, LastSignInMethod } from "../identity/models.mjs";
|
|
7
|
+
import { HookDenied } from "../hooks/models.mjs";
|
|
8
|
+
import { LifecycleHooks } from "../hooks/LifecycleHooks.mjs";
|
|
9
|
+
import { PreparedCommit } from "../hooks/commit.mjs";
|
|
10
|
+
import { SubtleCrypto } from "../WebCrypto.mjs";
|
|
11
|
+
import { RequestBindingConfig } from "../operations/RequestBindingConfig.mjs";
|
|
12
|
+
import { RequestBindingFlowId, RequestBindingPublic } from "../operations/requestBindingModels.mjs";
|
|
13
|
+
import { BindingModule, RequestBindingConfiguration, RequestBindingConfigurationError, RequestBindingInvalid, RequestBindingUnavailable, VerifiedRequestBinding } from "../operations/requestBinding.mjs";
|
|
14
|
+
import "../Operations.mjs";
|
|
15
|
+
import "../Hooks.mjs";
|
|
16
|
+
import { SessionApiError } from "../auth/session.mjs";
|
|
17
|
+
import { AuthRequest } from "../auth/AuthRequest.mjs";
|
|
18
|
+
import { AuthConfigurationError } from "../auth/AuthConfigurationError.mjs";
|
|
19
|
+
import "../Auth.mjs";
|
|
20
|
+
import { ModuleService, makeSessionModule } from "../sessions/module.mjs";
|
|
21
|
+
import "../Identity.mjs";
|
|
22
|
+
import { OAuthRegistrationAccess, OAuthRegistrationInspection, OAuthRegistrationIntent, OAuthRegistrationPolicy } from "./registrationModels.mjs";
|
|
23
|
+
import { OAuthConfigurationError, OAuthMethodUnsupported, OAuthRejected, OAuthUnavailable } from "./signInErrors.mjs";
|
|
24
|
+
import { OAuthCleanupInput, OAuthCredentialSnapshot, OAuthSignInAuthorization, OAuthSignInBegin, OAuthSignInComplete, OAuthSignInPolicy } from "./signInModels.mjs";
|
|
25
|
+
import { OAuthSignInPersistence, PrepareOAuthCommit } from "./OAuthSignInPersistence.mjs";
|
|
26
|
+
import { OAuthAccountsPolicy, OAuthActionRequired } from "./accountsModels.mjs";
|
|
27
|
+
import { OAuthConnectedActionRequired, OAuthConnectedBusy, OAuthConnectedPolicy, OAuthConnectedReauthorizationRequired } from "./connectedModels.mjs";
|
|
28
|
+
import { OAuthAccountsPersistence } from "./OAuthAccountsPersistence.mjs";
|
|
29
|
+
import { OAuthActionEvidence } from "./OAuthActionEvidence.mjs";
|
|
30
|
+
import { OAuthConnectedPersistence } from "./OAuthConnectedPersistence.mjs";
|
|
31
|
+
import { OAuthConnectedProtocol } from "./OAuthConnectedProtocol.mjs";
|
|
32
|
+
import { OAuthConnectedTokenProtector } from "./OAuthConnectedTokenProtector.mjs";
|
|
33
|
+
import { OAuthConnectedUseAuthority } from "./OAuthConnectedUseAuthority.mjs";
|
|
34
|
+
import { AccessModule } from "./connectedAccess.mjs";
|
|
35
|
+
import { OAuthConnectedActionEvidence } from "./OAuthConnectedActionEvidence.mjs";
|
|
36
|
+
import { OAuthConnectedTransactionProtector } from "./OAuthConnectedTransactionProtector.mjs";
|
|
37
|
+
import { OAuthLinkTransactionProtector } from "./OAuthLinkTransactionProtector.mjs";
|
|
38
|
+
import { OAuthProtocol } from "./OAuthProtocol.mjs";
|
|
39
|
+
import { OAuthRegistrationIntents } from "./OAuthRegistrationIntents.mjs";
|
|
40
|
+
import { OAuthReturnTargets } from "./OAuthReturnTargets.mjs";
|
|
41
|
+
import { OAuthTransactionProtector } from "./OAuthTransactionProtector.mjs";
|
|
42
|
+
import { MaintenanceModule } from "./connectedMaintenance.mjs";
|
|
43
|
+
import { ConnectedModule } from "./connected.mjs";
|
|
44
|
+
import { RegistrationModule } from "./registration.mjs";
|
|
45
|
+
import { AccountsModule } from "./accounts.mjs";
|
|
46
|
+
import { Context, Crypto, DateTime, Effect, Layer, Redacted, Schema, Types } from "effect";
|
|
47
|
+
//#region src/oauth/signInModule.d.ts
|
|
48
|
+
declare const Failure: Schema.Union<readonly [typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof HookDenied]>;
|
|
49
|
+
type Failure = typeof Failure.Type;
|
|
50
|
+
interface OAuthModule<Id extends string, Kind extends string, Claims> {
|
|
51
|
+
readonly moduleId: Id;
|
|
52
|
+
readonly kind: Kind;
|
|
53
|
+
readonly claims: Types.Invariant<Claims>;
|
|
54
|
+
}
|
|
55
|
+
/** Guest sign-in only. Durable flow/identity authority, configured protocol,
|
|
56
|
+
* separate transaction encryption and request-binding signing are explicit Layers.
|
|
57
|
+
* This installs no provider, database, registration or connected-token capability.
|
|
58
|
+
*/
|
|
59
|
+
declare const makeOAuthMethod: <const Id extends string, const SessionId extends string, Claims extends Schema.Codec<unknown, unknown, unknown, unknown>>(moduleId: Id, options: {
|
|
60
|
+
readonly sessions: ReturnType<typeof makeSessionModule<SessionId, Claims>>;
|
|
61
|
+
}) => Readonly<{
|
|
62
|
+
binding: Readonly<{
|
|
63
|
+
RequestBinding: Context.Service<BindingModule<Id, "oauth-entry">, {
|
|
64
|
+
readonly issue: (flowId: RequestBindingFlowId) => Effect.Effect<AuthOperationResult<RequestBindingPublic>, RequestBindingUnavailable | RequestBindingInvalid>;
|
|
65
|
+
readonly verify: (flowId: RequestBindingFlowId, credential: Redacted.Redacted<string>) => Effect.Effect<VerifiedRequestBinding, RequestBindingInvalid | RequestBindingUnavailable>;
|
|
66
|
+
}>;
|
|
67
|
+
signedLayer: (configuration: RequestBindingConfiguration) => Layer.Layer<BindingModule<Id, "oauth-entry">, RequestBindingConfigurationError, Crypto.Crypto | SubtleCrypto>;
|
|
68
|
+
layer: Layer.Layer<BindingModule<Id, "oauth-entry">, RequestBindingConfigurationError, Crypto.Crypto | RequestBindingConfig | SubtleCrypto>;
|
|
69
|
+
}>;
|
|
70
|
+
ClaimsForOAuth: Context.Service<OAuthModule<Id, "claims", Claims["Type"]>, {
|
|
71
|
+
readonly resolve: (credential: OAuthCredentialSnapshot) => Effect.Effect<Claims["Type"], OAuthUnavailable>;
|
|
72
|
+
}>;
|
|
73
|
+
SignIn: Context.Service<OAuthModule<Id, "sign-in", Claims["Type"]>, {
|
|
74
|
+
readonly begin: (input: typeof OAuthSignInBegin.Type) => Effect.Effect<AuthOperationResult<typeof OAuthSignInAuthorization.Type>, Failure>;
|
|
75
|
+
readonly complete: (input: typeof OAuthSignInComplete.Type) => Effect.Effect<AuthOperationResult<{
|
|
76
|
+
readonly completion: {
|
|
77
|
+
readonly _tag: "Authenticated";
|
|
78
|
+
readonly session: {
|
|
79
|
+
readonly sessionId: string & import("effect/Brand").Brand<"effect-auth/SessionId">;
|
|
80
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
81
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
82
|
+
readonly assurance: AuthenticationAssurance;
|
|
83
|
+
readonly issuedAt: DateTime.Utc;
|
|
84
|
+
readonly expiresAt: DateTime.Utc;
|
|
85
|
+
readonly absoluteExpiresAt: DateTime.Utc;
|
|
86
|
+
readonly claims: Claims["Type"];
|
|
87
|
+
};
|
|
88
|
+
} | {
|
|
89
|
+
readonly _tag: "PendingAuthentication";
|
|
90
|
+
readonly expiresAt: DateTime.Utc;
|
|
91
|
+
};
|
|
92
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
93
|
+
} | {
|
|
94
|
+
readonly _tag: "Cancelled";
|
|
95
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
96
|
+
} | {
|
|
97
|
+
readonly _tag: "RegistrationRequired";
|
|
98
|
+
readonly reference: string & import("effect/Brand").Brand<"effect-auth/OAuthRegistrationReference">;
|
|
99
|
+
readonly expiresAtMillis: number;
|
|
100
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
101
|
+
}>, Failure>;
|
|
102
|
+
}>;
|
|
103
|
+
signInLayer: (configuration: OAuthSignInPolicy) => Layer.Layer<OAuthModule<Id, "sign-in", Claims["Type"]>, OAuthConfigurationError, BindingModule<Id, "oauth-entry"> | Crypto.Crypto | ModuleService<SessionId, "completion", Claims["Type"]> | OAuthModule<Id, "claims", Claims["Type"]> | OAuthProtocol | OAuthReturnTargets | OAuthSignInPersistence | OAuthTransactionProtector>;
|
|
104
|
+
layer: (policy: OAuthSignInPolicy) => Layer.Layer<OperationHandler<`${Id}/sign-in/begin`, {
|
|
105
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
106
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
107
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
108
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
109
|
+
readonly returnTarget: string;
|
|
110
|
+
}, {
|
|
111
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
112
|
+
readonly authorizationUrl: Redacted.Redacted<string>;
|
|
113
|
+
readonly expiresAtMillis: number;
|
|
114
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable | OperationForbidden | OperationPrivateOutputUnsupported> | OperationHandler<`${Id}/sign-in/complete`, {
|
|
115
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
116
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
117
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
118
|
+
readonly requestBinding: Redacted.Redacted<string>;
|
|
119
|
+
readonly response: {
|
|
120
|
+
readonly _tag: "Code";
|
|
121
|
+
readonly state: Redacted.Redacted<string>;
|
|
122
|
+
readonly issuer?: (string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">) | undefined;
|
|
123
|
+
readonly code: Redacted.Redacted<string>;
|
|
124
|
+
readonly error?: undefined;
|
|
125
|
+
} | {
|
|
126
|
+
readonly _tag: "Error";
|
|
127
|
+
readonly state: Redacted.Redacted<string>;
|
|
128
|
+
readonly issuer?: (string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">) | undefined;
|
|
129
|
+
readonly error: "access-denied" | "rejected";
|
|
130
|
+
readonly code?: undefined;
|
|
131
|
+
};
|
|
132
|
+
}, {
|
|
133
|
+
readonly completion: {
|
|
134
|
+
readonly _tag: "Authenticated";
|
|
135
|
+
readonly session: {
|
|
136
|
+
readonly sessionId: string & import("effect/Brand").Brand<"effect-auth/SessionId">;
|
|
137
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
138
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
139
|
+
readonly assurance: AuthenticationAssurance;
|
|
140
|
+
readonly issuedAt: DateTime.Utc;
|
|
141
|
+
readonly expiresAt: DateTime.Utc;
|
|
142
|
+
readonly absoluteExpiresAt: DateTime.Utc;
|
|
143
|
+
readonly claims: Claims["Type"];
|
|
144
|
+
};
|
|
145
|
+
} | {
|
|
146
|
+
readonly _tag: "PendingAuthentication";
|
|
147
|
+
readonly expiresAt: DateTime.Utc;
|
|
148
|
+
};
|
|
149
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
150
|
+
} | {
|
|
151
|
+
readonly _tag: "Cancelled";
|
|
152
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
153
|
+
} | {
|
|
154
|
+
readonly _tag: "RegistrationRequired";
|
|
155
|
+
readonly reference: string & import("effect/Brand").Brand<"effect-auth/OAuthRegistrationReference">;
|
|
156
|
+
readonly expiresAtMillis: number;
|
|
157
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
158
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable | OperationForbidden | OperationPrivateOutputUnsupported>, OAuthConfigurationError | RequestBindingConfigurationError, ModuleService<SessionId, "completion", Claims["Type"]> | OAuthModule<Id, "claims", Claims["Type"]> | OAuthProtocol | OAuthReturnTargets | OAuthSignInPersistence | OAuthTransactionProtector | RequestBindingConfig>;
|
|
159
|
+
registration: <Registration extends Schema.Codec<unknown, unknown, unknown, unknown>>(codec: Registration) => Readonly<{
|
|
160
|
+
RegistrationCodec: Schema.Codec<Registration["Type"], Registration["Encoded"], Registration["DecodingServices"], Registration["EncodingServices"]>;
|
|
161
|
+
CompleteInput: Schema.Struct<{
|
|
162
|
+
readonly reference: Schema.brand<Schema.String, "effect-auth/OAuthRegistrationReference">;
|
|
163
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
164
|
+
readonly requestBinding: Schema.RedactedFromValue<Schema.String>;
|
|
165
|
+
readonly credential: Schema.RedactedFromValue<Schema.String>;
|
|
166
|
+
readonly commandId: Schema.brand<Schema.String, "effect-auth/OAuthCommandId">;
|
|
167
|
+
readonly registration: Schema.Codec<Registration["Type"], Registration["Encoded"], Registration["DecodingServices"], Registration["EncodingServices"]>;
|
|
168
|
+
}>;
|
|
169
|
+
RegistrationAuthority: Context.Service<RegistrationModule<Id, "authority", Registration>, {
|
|
170
|
+
readonly read: (access: OAuthRegistrationAccess) => Effect.Effect<OAuthRegistrationInspection | undefined, OAuthUnavailable>;
|
|
171
|
+
readonly inspect: (input: {
|
|
172
|
+
readonly intent: OAuthRegistrationIntent;
|
|
173
|
+
readonly registration: Registration["Type"];
|
|
174
|
+
}) => Effect.Effect<{
|
|
175
|
+
readonly fingerprint: TokenDigest;
|
|
176
|
+
readonly eligible: boolean;
|
|
177
|
+
}, OAuthUnavailable, never>;
|
|
178
|
+
readonly register: <A>(input: {
|
|
179
|
+
readonly access: OAuthRegistrationAccess;
|
|
180
|
+
readonly intent: OAuthRegistrationIntent;
|
|
181
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
182
|
+
readonly registration: Registration["Type"];
|
|
183
|
+
readonly fingerprint: TokenDigest;
|
|
184
|
+
}, prepare: PrepareOAuthCommit<{
|
|
185
|
+
readonly _tag: "Rejected";
|
|
186
|
+
} | {
|
|
187
|
+
readonly _tag: "Conflict";
|
|
188
|
+
} | {
|
|
189
|
+
readonly _tag: "Registered";
|
|
190
|
+
readonly replayed: boolean;
|
|
191
|
+
} | {
|
|
192
|
+
readonly _tag: "ProvisioningPending";
|
|
193
|
+
readonly reference: string;
|
|
194
|
+
readonly replayed: boolean;
|
|
195
|
+
}, A>) => Effect.Effect<PreparedCommit<A>, OAuthUnavailable, never>;
|
|
196
|
+
readonly cleanup: <A>(input: OAuthCleanupInput, prepare: PrepareOAuthCommit<{
|
|
197
|
+
readonly removed: number;
|
|
198
|
+
readonly hasMore: boolean;
|
|
199
|
+
}, A>) => Effect.Effect<PreparedCommit<A>, OAuthUnavailable, never>;
|
|
200
|
+
}>;
|
|
201
|
+
Registrations: Context.Service<RegistrationModule<Id, "registrations", Registration>, {
|
|
202
|
+
readonly planComplete: (input: {
|
|
203
|
+
readonly reference: string & import("effect/Brand").Brand<"effect-auth/OAuthRegistrationReference">;
|
|
204
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
205
|
+
readonly requestBinding: Redacted.Redacted<string>;
|
|
206
|
+
readonly credential: Redacted.Redacted<string>;
|
|
207
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
208
|
+
readonly registration: Registration["Type"];
|
|
209
|
+
}) => Effect.Effect<{
|
|
210
|
+
readonly commit: Effect.Effect<PreparedCommit<AuthOperationResult<{
|
|
211
|
+
readonly _tag: "RegistrationAccepted";
|
|
212
|
+
} | {
|
|
213
|
+
readonly _tag: "ProvisioningPending";
|
|
214
|
+
readonly reference: string;
|
|
215
|
+
} | {
|
|
216
|
+
readonly _tag: "Rejected";
|
|
217
|
+
} | {
|
|
218
|
+
readonly _tag: "Conflict";
|
|
219
|
+
}>>, OAuthUnavailable, RegistrationModule<Id, "authority", Registration>>;
|
|
220
|
+
}, HookDenied | IdentityConflict | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable, never>;
|
|
221
|
+
readonly cleanup: (limit: number) => Effect.Effect<{
|
|
222
|
+
readonly removed: number;
|
|
223
|
+
readonly hasMore: boolean;
|
|
224
|
+
}, HookDenied | IdentityConflict | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable, never>;
|
|
225
|
+
}>;
|
|
226
|
+
layer: Layer.Layer<RegistrationModule<Id, "registrations", Registration>, OAuthUnavailable, BindingModule<Id, "oauth-entry"> | Crypto.Crypto | LifecycleHooks | RegistrationModule<Id, "authority", Registration> | Exclude<Registration["DecodingServices"], import("effect/Scope").Scope> | Exclude<Registration["EncodingServices"], import("effect/Scope").Scope>>;
|
|
227
|
+
operations: Readonly<{
|
|
228
|
+
Complete: AuthOperation<`${Id}/registration/complete`, Schema.Struct<{
|
|
229
|
+
readonly reference: Schema.brand<Schema.String, "effect-auth/OAuthRegistrationReference">;
|
|
230
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
231
|
+
readonly requestBinding: Schema.RedactedFromValue<Schema.String>;
|
|
232
|
+
readonly credential: Schema.RedactedFromValue<Schema.String>;
|
|
233
|
+
readonly commandId: Schema.brand<Schema.String, "effect-auth/OAuthCommandId">;
|
|
234
|
+
readonly registration: Schema.Codec<Registration["Type"], Registration["Encoded"], Registration["DecodingServices"], Registration["EncodingServices"]>;
|
|
235
|
+
}>, Schema.Union<readonly [Schema.TaggedStruct<"RegistrationAccepted", {}>, Schema.TaggedStruct<"ProvisioningPending", {
|
|
236
|
+
readonly reference: Schema.String;
|
|
237
|
+
}>]>, Schema.Union<readonly [typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof IdentityConflict, typeof HookDenied]>, never, {
|
|
238
|
+
readonly payload: Schema.Struct<{
|
|
239
|
+
readonly reference: Schema.brand<Schema.String, "effect-auth/OAuthRegistrationReference">;
|
|
240
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
241
|
+
readonly requestBinding: Schema.RedactedFromValue<Schema.String>;
|
|
242
|
+
readonly credential: Schema.RedactedFromValue<Schema.String>;
|
|
243
|
+
readonly commandId: Schema.brand<Schema.String, "effect-auth/OAuthCommandId">;
|
|
244
|
+
readonly registration: Schema.Codec<Registration["Type"], Registration["Encoded"], Registration["DecodingServices"], Registration["EncodingServices"]>;
|
|
245
|
+
}>;
|
|
246
|
+
readonly success: Schema.Union<readonly [Schema.TaggedStruct<"RegistrationAccepted", {}>, Schema.TaggedStruct<"ProvisioningPending", {
|
|
247
|
+
readonly reference: Schema.String;
|
|
248
|
+
}>]>;
|
|
249
|
+
readonly error: Schema.Union<readonly [typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof IdentityConflict, typeof HookDenied]>;
|
|
250
|
+
readonly access: "any";
|
|
251
|
+
readonly exposure: "public";
|
|
252
|
+
readonly replay: "single-use";
|
|
253
|
+
readonly credentials: true;
|
|
254
|
+
}>;
|
|
255
|
+
}>;
|
|
256
|
+
handlersLayer: Layer.Layer<OperationHandler<`${Id}/registration/complete`, {
|
|
257
|
+
readonly reference: string & import("effect/Brand").Brand<"effect-auth/OAuthRegistrationReference">;
|
|
258
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
259
|
+
readonly requestBinding: Redacted.Redacted<string>;
|
|
260
|
+
readonly credential: Redacted.Redacted<string>;
|
|
261
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
262
|
+
readonly registration: Registration["Type"];
|
|
263
|
+
}, {
|
|
264
|
+
readonly _tag: "RegistrationAccepted";
|
|
265
|
+
} | {
|
|
266
|
+
readonly _tag: "ProvisioningPending";
|
|
267
|
+
readonly reference: string;
|
|
268
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | IdentityConflict | InvalidOperationInput | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable | OperationForbidden | OperationPrivateOutputUnsupported>, never, RegistrationModule<Id, "authority", Registration> | RegistrationModule<Id, "registrations", Registration>>;
|
|
269
|
+
group: import("effect/unstable/rpc/RpcGroup").RpcGroup<import("effect/unstable/rpc/Rpc").Rpc<`${Id}/registration/complete`, Schema.Struct<{
|
|
270
|
+
readonly reference: Schema.brand<Schema.String, "effect-auth/OAuthRegistrationReference">;
|
|
271
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
272
|
+
readonly requestBinding: Schema.RedactedFromValue<Schema.String>;
|
|
273
|
+
readonly credential: Schema.RedactedFromValue<Schema.String>;
|
|
274
|
+
readonly commandId: Schema.brand<Schema.String, "effect-auth/OAuthCommandId">;
|
|
275
|
+
readonly registration: Schema.Codec<Registration["Type"], Registration["Encoded"], Registration["DecodingServices"], Registration["EncodingServices"]>;
|
|
276
|
+
}>, Schema.Union<readonly [Schema.TaggedStruct<"RegistrationAccepted", {}>, Schema.TaggedStruct<"ProvisioningPending", {
|
|
277
|
+
readonly reference: Schema.String;
|
|
278
|
+
}>]>, Schema.Union<readonly [Schema.Union<readonly [typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof IdentityConflict, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never>>;
|
|
279
|
+
signInLayer: (configuration: OAuthSignInPolicy, registrationConfiguration: OAuthRegistrationPolicy) => Layer.Layer<OAuthModule<Id, "sign-in", Claims["Type"]>, OAuthConfigurationError, BindingModule<Id, "oauth-entry"> | Crypto.Crypto | ModuleService<SessionId, "completion", Claims["Type"]> | OAuthModule<Id, "claims", Claims["Type"]> | OAuthProtocol | OAuthRegistrationIntents | OAuthReturnTargets | OAuthSignInPersistence | OAuthTransactionProtector>;
|
|
280
|
+
strategy: Readonly<{
|
|
281
|
+
completion: false;
|
|
282
|
+
make: Effect.Effect<{
|
|
283
|
+
readonly register: (input: {
|
|
284
|
+
readonly reference: string;
|
|
285
|
+
readonly flowId: string;
|
|
286
|
+
readonly requestBinding: string;
|
|
287
|
+
readonly credential: string;
|
|
288
|
+
readonly commandId: string;
|
|
289
|
+
readonly registration: Registration["Encoded"];
|
|
290
|
+
}) => Effect.Effect<{
|
|
291
|
+
readonly _tag: "RegistrationAccepted";
|
|
292
|
+
} | {
|
|
293
|
+
readonly _tag: "ProvisioningPending";
|
|
294
|
+
readonly reference: string;
|
|
295
|
+
}, IdentityConflict | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable | SessionApiError, AuthRequest | Exclude<Exclude<Registration["DecodingServices"], CredentialCollectorProvenance | RevealCollectorProvenance>, OperationHandler<`${Id}/registration/complete`, {
|
|
296
|
+
readonly reference: string & import("effect/Brand").Brand<"effect-auth/OAuthRegistrationReference">;
|
|
297
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
298
|
+
readonly requestBinding: Redacted.Redacted<string>;
|
|
299
|
+
readonly credential: Redacted.Redacted<string>;
|
|
300
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
301
|
+
readonly registration: Registration["Type"];
|
|
302
|
+
}, {
|
|
303
|
+
readonly _tag: "RegistrationAccepted";
|
|
304
|
+
} | {
|
|
305
|
+
readonly _tag: "ProvisioningPending";
|
|
306
|
+
readonly reference: string;
|
|
307
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | IdentityConflict | InvalidOperationInput | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable | OperationForbidden | OperationPrivateOutputUnsupported> | (AuthCredentialCommandCollector | AuthRevealCommandCollectorService)>>;
|
|
308
|
+
}, AuthConfigurationError | OAuthUnavailable | RequestBindingConfigurationError, Layer.CurrentMemoMap | RegistrationModule<Id, "authority", Registration> | RequestBindingConfig | import("effect/Scope").Scope | Exclude<Exclude<Exclude<Registration["DecodingServices"], import("effect/Scope").Scope>, BindingModule<Id, "oauth-entry">>, Crypto.Crypto | LifecycleHooks | SubtleCrypto> | Exclude<Exclude<Exclude<Registration["EncodingServices"], import("effect/Scope").Scope>, BindingModule<Id, "oauth-entry">>, Crypto.Crypto | LifecycleHooks | SubtleCrypto>>;
|
|
309
|
+
}>;
|
|
310
|
+
}>;
|
|
311
|
+
accounts: (policy: OAuthAccountsPolicy) => Readonly<{
|
|
312
|
+
Accounts: Context.Service<AccountsModule<Id>, {
|
|
313
|
+
readonly begin: (invocation: AuthInvocation, input: {
|
|
314
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
315
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
316
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
317
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
318
|
+
readonly returnTarget: string;
|
|
319
|
+
readonly actionProof?: Redacted.Redacted<string> | undefined;
|
|
320
|
+
}) => Effect.Effect<AuthOperationResult<typeof OAuthSignInAuthorization.Type>, AuthenticationRequired | HookDenied | IdentityConflict | LastSignInMethod | OAuthActionRequired | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable>;
|
|
321
|
+
readonly complete: (invocation: AuthInvocation, input: {
|
|
322
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
323
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
324
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
325
|
+
readonly requestBinding: Redacted.Redacted<string>;
|
|
326
|
+
readonly response: {
|
|
327
|
+
readonly _tag: "Code";
|
|
328
|
+
readonly state: Redacted.Redacted<string>;
|
|
329
|
+
readonly issuer?: (string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">) | undefined;
|
|
330
|
+
readonly code: Redacted.Redacted<string>;
|
|
331
|
+
readonly error?: undefined;
|
|
332
|
+
} | {
|
|
333
|
+
readonly _tag: "Error";
|
|
334
|
+
readonly state: Redacted.Redacted<string>;
|
|
335
|
+
readonly issuer?: (string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">) | undefined;
|
|
336
|
+
readonly error: "access-denied" | "rejected";
|
|
337
|
+
readonly code?: undefined;
|
|
338
|
+
};
|
|
339
|
+
readonly actionProof?: Redacted.Redacted<string> | undefined;
|
|
340
|
+
}) => Effect.Effect<AuthOperationResult<{
|
|
341
|
+
readonly _tag: "Linked";
|
|
342
|
+
readonly credentialId: string;
|
|
343
|
+
readonly changed: true;
|
|
344
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
345
|
+
readonly invalidation: {
|
|
346
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
347
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
348
|
+
readonly maximumExposureMillis: number;
|
|
349
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
350
|
+
};
|
|
351
|
+
} | {
|
|
352
|
+
readonly _tag: "Linked";
|
|
353
|
+
readonly credentialId: string;
|
|
354
|
+
readonly changed: false;
|
|
355
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
356
|
+
readonly invalidation?: undefined;
|
|
357
|
+
} | {
|
|
358
|
+
readonly _tag: "Cancelled";
|
|
359
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
360
|
+
}>, AuthenticationRequired | HookDenied | IdentityConflict | LastSignInMethod | OAuthActionRequired | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable>;
|
|
361
|
+
readonly unlink: (invocation: AuthInvocation, input: {
|
|
362
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
363
|
+
readonly credentialId: string;
|
|
364
|
+
readonly actionProof?: Redacted.Redacted<string> | undefined;
|
|
365
|
+
}) => Effect.Effect<AuthOperationResult<{
|
|
366
|
+
readonly _tag: "Unlinked";
|
|
367
|
+
readonly credentialId: string;
|
|
368
|
+
readonly invalidation: {
|
|
369
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
370
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
371
|
+
readonly maximumExposureMillis: number;
|
|
372
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
373
|
+
};
|
|
374
|
+
}>, AuthenticationRequired | HookDenied | IdentityConflict | LastSignInMethod | OAuthActionRequired | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable>;
|
|
375
|
+
readonly cleanup: (limit: number) => Effect.Effect<{
|
|
376
|
+
readonly terminalized: number;
|
|
377
|
+
readonly removed: number;
|
|
378
|
+
readonly hasMore: boolean;
|
|
379
|
+
}, AuthenticationRequired | HookDenied | IdentityConflict | LastSignInMethod | OAuthActionRequired | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable, never>;
|
|
380
|
+
}>;
|
|
381
|
+
binding: Readonly<{
|
|
382
|
+
RequestBinding: Context.Service<BindingModule<Id, "oauth-link">, {
|
|
383
|
+
readonly issue: (flowId: RequestBindingFlowId) => Effect.Effect<AuthOperationResult<RequestBindingPublic>, RequestBindingUnavailable | RequestBindingInvalid>;
|
|
384
|
+
readonly verify: (flowId: RequestBindingFlowId, credential: Redacted.Redacted<string>) => Effect.Effect<VerifiedRequestBinding, RequestBindingInvalid | RequestBindingUnavailable>;
|
|
385
|
+
}>;
|
|
386
|
+
signedLayer: (configuration: RequestBindingConfiguration) => Layer.Layer<BindingModule<Id, "oauth-link">, RequestBindingConfigurationError, Crypto.Crypto | SubtleCrypto>;
|
|
387
|
+
layer: Layer.Layer<BindingModule<Id, "oauth-link">, RequestBindingConfigurationError, Crypto.Crypto | RequestBindingConfig | SubtleCrypto>;
|
|
388
|
+
}>;
|
|
389
|
+
layer: Layer.Layer<AccountsModule<Id>, OAuthConfigurationError, BindingModule<Id, "oauth-link"> | Crypto.Crypto | LifecycleHooks | ModuleService<SessionId, "strategy", Claims["Type"]> | OAuthAccountsPersistence | OAuthActionEvidence | OAuthLinkTransactionProtector | OAuthProtocol | OAuthReturnTargets>;
|
|
390
|
+
operations: Readonly<{
|
|
391
|
+
Link: Readonly<{
|
|
392
|
+
Begin: AuthOperation<`${Id}/accounts/link/begin`, Schema.Struct<{
|
|
393
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
394
|
+
readonly commandId: Schema.brand<Schema.String, "effect-auth/OAuthCommandId">;
|
|
395
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
396
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
397
|
+
readonly returnTarget: Schema.String;
|
|
398
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
399
|
+
}>, Schema.Struct<{
|
|
400
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
401
|
+
readonly authorizationUrl: Schema.RedactedFromValue<Schema.String>;
|
|
402
|
+
readonly expiresAtMillis: Schema.Int;
|
|
403
|
+
}>, Schema.Union<readonly [typeof AuthenticationRequired, typeof OAuthActionRequired, typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof IdentityConflict, typeof LastSignInMethod, typeof HookDenied]>, never, {
|
|
404
|
+
readonly payload: Schema.Struct<{
|
|
405
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
406
|
+
readonly commandId: Schema.brand<Schema.String, "effect-auth/OAuthCommandId">;
|
|
407
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
408
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
409
|
+
readonly returnTarget: Schema.String;
|
|
410
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
411
|
+
}>;
|
|
412
|
+
readonly success: Schema.Struct<{
|
|
413
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
414
|
+
readonly authorizationUrl: Schema.RedactedFromValue<Schema.String>;
|
|
415
|
+
readonly expiresAtMillis: Schema.Int;
|
|
416
|
+
}>;
|
|
417
|
+
readonly error: Schema.Union<readonly [typeof AuthenticationRequired, typeof OAuthActionRequired, typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof IdentityConflict, typeof LastSignInMethod, typeof HookDenied]>;
|
|
418
|
+
readonly access: "authenticated";
|
|
419
|
+
readonly exposure: "public";
|
|
420
|
+
readonly replay: "non-idempotent";
|
|
421
|
+
readonly credentials: true;
|
|
422
|
+
}>;
|
|
423
|
+
Complete: AuthOperation<`${Id}/accounts/link/complete`, Schema.Struct<{
|
|
424
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
425
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
426
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
427
|
+
readonly requestBinding: Schema.RedactedFromValue<Schema.String>;
|
|
428
|
+
readonly response: Schema.Union<readonly [Schema.TaggedStruct<"Code", {
|
|
429
|
+
readonly state: Schema.RedactedFromValue<Schema.String>;
|
|
430
|
+
readonly issuer: Schema.optionalKey<Schema.brand<Schema.String, "effect-auth/OAuthIssuer">>;
|
|
431
|
+
readonly code: Schema.RedactedFromValue<Schema.String>;
|
|
432
|
+
readonly error: Schema.optionalKey<Schema.Never>;
|
|
433
|
+
}>, Schema.TaggedStruct<"Error", {
|
|
434
|
+
readonly state: Schema.RedactedFromValue<Schema.String>;
|
|
435
|
+
readonly issuer: Schema.optionalKey<Schema.brand<Schema.String, "effect-auth/OAuthIssuer">>;
|
|
436
|
+
readonly error: Schema.Literals<readonly ["access-denied", "rejected"]>;
|
|
437
|
+
readonly code: Schema.optionalKey<Schema.Never>;
|
|
438
|
+
}>]>;
|
|
439
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
440
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [Schema.TaggedStruct<"Linked", {
|
|
441
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
442
|
+
readonly changed: Schema.Literal<true>;
|
|
443
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
444
|
+
readonly invalidation: Schema.Struct<{
|
|
445
|
+
readonly trigger: Schema.Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
|
|
446
|
+
readonly existingSessions: Schema.Literals<readonly ["immediate", "original-absolute-expiry"]>;
|
|
447
|
+
readonly maximumExposureMillis: Schema.Natural;
|
|
448
|
+
readonly oldAuthenticationEvidence: Schema.Literal<"rejected">;
|
|
449
|
+
}>;
|
|
450
|
+
}>, Schema.TaggedStruct<"Linked", {
|
|
451
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
452
|
+
readonly changed: Schema.Literal<false>;
|
|
453
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
454
|
+
readonly invalidation: Schema.optionalKey<Schema.Never>;
|
|
455
|
+
}>]>, Schema.TaggedStruct<"Cancelled", {
|
|
456
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
457
|
+
}>]>, Schema.Union<readonly [typeof AuthenticationRequired, typeof OAuthActionRequired, typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof IdentityConflict, typeof LastSignInMethod, typeof HookDenied]>, never, {
|
|
458
|
+
readonly payload: Schema.Struct<{
|
|
459
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
460
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
461
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
462
|
+
readonly requestBinding: Schema.RedactedFromValue<Schema.String>;
|
|
463
|
+
readonly response: Schema.Union<readonly [Schema.TaggedStruct<"Code", {
|
|
464
|
+
readonly state: Schema.RedactedFromValue<Schema.String>;
|
|
465
|
+
readonly issuer: Schema.optionalKey<Schema.brand<Schema.String, "effect-auth/OAuthIssuer">>;
|
|
466
|
+
readonly code: Schema.RedactedFromValue<Schema.String>;
|
|
467
|
+
readonly error: Schema.optionalKey<Schema.Never>;
|
|
468
|
+
}>, Schema.TaggedStruct<"Error", {
|
|
469
|
+
readonly state: Schema.RedactedFromValue<Schema.String>;
|
|
470
|
+
readonly issuer: Schema.optionalKey<Schema.brand<Schema.String, "effect-auth/OAuthIssuer">>;
|
|
471
|
+
readonly error: Schema.Literals<readonly ["access-denied", "rejected"]>;
|
|
472
|
+
readonly code: Schema.optionalKey<Schema.Never>;
|
|
473
|
+
}>]>;
|
|
474
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
475
|
+
}>;
|
|
476
|
+
readonly success: Schema.Union<readonly [Schema.Union<readonly [Schema.TaggedStruct<"Linked", {
|
|
477
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
478
|
+
readonly changed: Schema.Literal<true>;
|
|
479
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
480
|
+
readonly invalidation: Schema.Struct<{
|
|
481
|
+
readonly trigger: Schema.Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
|
|
482
|
+
readonly existingSessions: Schema.Literals<readonly ["immediate", "original-absolute-expiry"]>;
|
|
483
|
+
readonly maximumExposureMillis: Schema.Natural;
|
|
484
|
+
readonly oldAuthenticationEvidence: Schema.Literal<"rejected">;
|
|
485
|
+
}>;
|
|
486
|
+
}>, Schema.TaggedStruct<"Linked", {
|
|
487
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
488
|
+
readonly changed: Schema.Literal<false>;
|
|
489
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
490
|
+
readonly invalidation: Schema.optionalKey<Schema.Never>;
|
|
491
|
+
}>]>, Schema.TaggedStruct<"Cancelled", {
|
|
492
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
493
|
+
}>]>;
|
|
494
|
+
readonly error: Schema.Union<readonly [typeof AuthenticationRequired, typeof OAuthActionRequired, typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof IdentityConflict, typeof LastSignInMethod, typeof HookDenied]>;
|
|
495
|
+
readonly access: "authenticated";
|
|
496
|
+
readonly exposure: "public";
|
|
497
|
+
readonly replay: "single-use";
|
|
498
|
+
readonly credentials: true;
|
|
499
|
+
}>;
|
|
500
|
+
}>;
|
|
501
|
+
Unlink: AuthOperation<`${Id}/accounts/unlink`, Schema.Struct<{
|
|
502
|
+
readonly commandId: Schema.brand<Schema.String, "effect-auth/OAuthCommandId">;
|
|
503
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
504
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
505
|
+
}>, Schema.TaggedStruct<"Unlinked", {
|
|
506
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
507
|
+
readonly invalidation: Schema.Struct<{
|
|
508
|
+
readonly trigger: Schema.Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
|
|
509
|
+
readonly existingSessions: Schema.Literals<readonly ["immediate", "original-absolute-expiry"]>;
|
|
510
|
+
readonly maximumExposureMillis: Schema.Natural;
|
|
511
|
+
readonly oldAuthenticationEvidence: Schema.Literal<"rejected">;
|
|
512
|
+
}>;
|
|
513
|
+
}>, Schema.Union<readonly [typeof AuthenticationRequired, typeof OAuthActionRequired, typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof IdentityConflict, typeof LastSignInMethod, typeof HookDenied]>, never, {
|
|
514
|
+
readonly payload: Schema.Struct<{
|
|
515
|
+
readonly commandId: Schema.brand<Schema.String, "effect-auth/OAuthCommandId">;
|
|
516
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
517
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
518
|
+
}>;
|
|
519
|
+
readonly success: Schema.TaggedStruct<"Unlinked", {
|
|
520
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
521
|
+
readonly invalidation: Schema.Struct<{
|
|
522
|
+
readonly trigger: Schema.Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
|
|
523
|
+
readonly existingSessions: Schema.Literals<readonly ["immediate", "original-absolute-expiry"]>;
|
|
524
|
+
readonly maximumExposureMillis: Schema.Natural;
|
|
525
|
+
readonly oldAuthenticationEvidence: Schema.Literal<"rejected">;
|
|
526
|
+
}>;
|
|
527
|
+
}>;
|
|
528
|
+
readonly error: Schema.Union<readonly [typeof AuthenticationRequired, typeof OAuthActionRequired, typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof IdentityConflict, typeof LastSignInMethod, typeof HookDenied]>;
|
|
529
|
+
readonly access: "authenticated";
|
|
530
|
+
readonly exposure: "public";
|
|
531
|
+
readonly replay: "idempotent";
|
|
532
|
+
readonly credentials: true;
|
|
533
|
+
}>;
|
|
534
|
+
}>;
|
|
535
|
+
handlersLayer: Layer.Layer<OperationHandler<`${Id}/accounts/link/begin`, {
|
|
536
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
537
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
538
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
539
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
540
|
+
readonly returnTarget: string;
|
|
541
|
+
readonly actionProof?: Redacted.Redacted<string> | undefined;
|
|
542
|
+
}, {
|
|
543
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
544
|
+
readonly authorizationUrl: Redacted.Redacted<string>;
|
|
545
|
+
readonly expiresAtMillis: number;
|
|
546
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | IdentityConflict | InvalidOperationInput | LastSignInMethod | OAuthActionRequired | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable | OperationForbidden | OperationPrivateOutputUnsupported> | OperationHandler<`${Id}/accounts/link/complete`, {
|
|
547
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
548
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
549
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
550
|
+
readonly requestBinding: Redacted.Redacted<string>;
|
|
551
|
+
readonly response: {
|
|
552
|
+
readonly _tag: "Code";
|
|
553
|
+
readonly state: Redacted.Redacted<string>;
|
|
554
|
+
readonly issuer?: (string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">) | undefined;
|
|
555
|
+
readonly code: Redacted.Redacted<string>;
|
|
556
|
+
readonly error?: undefined;
|
|
557
|
+
} | {
|
|
558
|
+
readonly _tag: "Error";
|
|
559
|
+
readonly state: Redacted.Redacted<string>;
|
|
560
|
+
readonly issuer?: (string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">) | undefined;
|
|
561
|
+
readonly error: "access-denied" | "rejected";
|
|
562
|
+
readonly code?: undefined;
|
|
563
|
+
};
|
|
564
|
+
readonly actionProof?: Redacted.Redacted<string> | undefined;
|
|
565
|
+
}, {
|
|
566
|
+
readonly _tag: "Linked";
|
|
567
|
+
readonly credentialId: string;
|
|
568
|
+
readonly changed: true;
|
|
569
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
570
|
+
readonly invalidation: {
|
|
571
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
572
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
573
|
+
readonly maximumExposureMillis: number;
|
|
574
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
575
|
+
};
|
|
576
|
+
} | {
|
|
577
|
+
readonly _tag: "Linked";
|
|
578
|
+
readonly credentialId: string;
|
|
579
|
+
readonly changed: false;
|
|
580
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
581
|
+
readonly invalidation?: undefined;
|
|
582
|
+
} | {
|
|
583
|
+
readonly _tag: "Cancelled";
|
|
584
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
585
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | IdentityConflict | InvalidOperationInput | LastSignInMethod | OAuthActionRequired | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable | OperationForbidden | OperationPrivateOutputUnsupported> | OperationHandler<`${Id}/accounts/unlink`, {
|
|
586
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
587
|
+
readonly credentialId: string;
|
|
588
|
+
readonly actionProof?: Redacted.Redacted<string> | undefined;
|
|
589
|
+
}, {
|
|
590
|
+
readonly _tag: "Unlinked";
|
|
591
|
+
readonly credentialId: string;
|
|
592
|
+
readonly invalidation: {
|
|
593
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
594
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
595
|
+
readonly maximumExposureMillis: number;
|
|
596
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
597
|
+
};
|
|
598
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | IdentityConflict | InvalidOperationInput | LastSignInMethod | OAuthActionRequired | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable | OperationForbidden | OperationPrivateOutputUnsupported>, never, AccountsModule<Id>>;
|
|
599
|
+
group: import("effect/unstable/rpc/RpcGroup").RpcGroup<import("effect/unstable/rpc/Rpc").Rpc<`${Id}/accounts/link/begin`, Schema.Struct<{
|
|
600
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
601
|
+
readonly commandId: Schema.brand<Schema.String, "effect-auth/OAuthCommandId">;
|
|
602
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
603
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
604
|
+
readonly returnTarget: Schema.String;
|
|
605
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
606
|
+
}>, Schema.Struct<{
|
|
607
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
608
|
+
readonly authorizationUrl: Schema.RedactedFromValue<Schema.String>;
|
|
609
|
+
readonly expiresAtMillis: Schema.Int;
|
|
610
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [typeof AuthenticationRequired, typeof OAuthActionRequired, typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof IdentityConflict, typeof LastSignInMethod, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/accounts/link/complete`, Schema.Struct<{
|
|
611
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
612
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
613
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
614
|
+
readonly requestBinding: Schema.RedactedFromValue<Schema.String>;
|
|
615
|
+
readonly response: Schema.Union<readonly [Schema.TaggedStruct<"Code", {
|
|
616
|
+
readonly state: Schema.RedactedFromValue<Schema.String>;
|
|
617
|
+
readonly issuer: Schema.optionalKey<Schema.brand<Schema.String, "effect-auth/OAuthIssuer">>;
|
|
618
|
+
readonly code: Schema.RedactedFromValue<Schema.String>;
|
|
619
|
+
readonly error: Schema.optionalKey<Schema.Never>;
|
|
620
|
+
}>, Schema.TaggedStruct<"Error", {
|
|
621
|
+
readonly state: Schema.RedactedFromValue<Schema.String>;
|
|
622
|
+
readonly issuer: Schema.optionalKey<Schema.brand<Schema.String, "effect-auth/OAuthIssuer">>;
|
|
623
|
+
readonly error: Schema.Literals<readonly ["access-denied", "rejected"]>;
|
|
624
|
+
readonly code: Schema.optionalKey<Schema.Never>;
|
|
625
|
+
}>]>;
|
|
626
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
627
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [Schema.TaggedStruct<"Linked", {
|
|
628
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
629
|
+
readonly changed: Schema.Literal<true>;
|
|
630
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
631
|
+
readonly invalidation: Schema.Struct<{
|
|
632
|
+
readonly trigger: Schema.Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
|
|
633
|
+
readonly existingSessions: Schema.Literals<readonly ["immediate", "original-absolute-expiry"]>;
|
|
634
|
+
readonly maximumExposureMillis: Schema.Natural;
|
|
635
|
+
readonly oldAuthenticationEvidence: Schema.Literal<"rejected">;
|
|
636
|
+
}>;
|
|
637
|
+
}>, Schema.TaggedStruct<"Linked", {
|
|
638
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
639
|
+
readonly changed: Schema.Literal<false>;
|
|
640
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
641
|
+
readonly invalidation: Schema.optionalKey<Schema.Never>;
|
|
642
|
+
}>]>, Schema.TaggedStruct<"Cancelled", {
|
|
643
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
644
|
+
}>]>, Schema.Union<readonly [Schema.Union<readonly [typeof AuthenticationRequired, typeof OAuthActionRequired, typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof IdentityConflict, typeof LastSignInMethod, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/accounts/unlink`, Schema.Struct<{
|
|
645
|
+
readonly commandId: Schema.brand<Schema.String, "effect-auth/OAuthCommandId">;
|
|
646
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
647
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
648
|
+
}>, Schema.TaggedStruct<"Unlinked", {
|
|
649
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
650
|
+
readonly invalidation: Schema.Struct<{
|
|
651
|
+
readonly trigger: Schema.Literals<readonly ["password-reset", "factor-reset", "credential-change", "subject-disable", "subject-delete", "identifier-change", "all-session-revocation"]>;
|
|
652
|
+
readonly existingSessions: Schema.Literals<readonly ["immediate", "original-absolute-expiry"]>;
|
|
653
|
+
readonly maximumExposureMillis: Schema.Natural;
|
|
654
|
+
readonly oldAuthenticationEvidence: Schema.Literal<"rejected">;
|
|
655
|
+
}>;
|
|
656
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [typeof AuthenticationRequired, typeof OAuthActionRequired, typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof IdentityConflict, typeof LastSignInMethod, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never>>;
|
|
657
|
+
strategy: Readonly<{
|
|
658
|
+
completion: false;
|
|
659
|
+
make: Effect.Effect<{
|
|
660
|
+
readonly linkAccount: (input: {
|
|
661
|
+
readonly flowId: string;
|
|
662
|
+
readonly commandId: string;
|
|
663
|
+
readonly provider: string;
|
|
664
|
+
readonly callbackId: string;
|
|
665
|
+
readonly returnTarget: string;
|
|
666
|
+
readonly actionProof?: string | undefined;
|
|
667
|
+
}) => Effect.Effect<{
|
|
668
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
669
|
+
readonly authorizationUrl: Redacted.Redacted<string>;
|
|
670
|
+
readonly expiresAtMillis: number;
|
|
671
|
+
}, IdentityConflict | LastSignInMethod | OAuthActionRequired | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable | SessionApiError, AuthRequest>;
|
|
672
|
+
readonly completeAccountLink: (input: {
|
|
673
|
+
readonly flowId: string;
|
|
674
|
+
readonly provider: string;
|
|
675
|
+
readonly callbackId: string;
|
|
676
|
+
readonly requestBinding: string;
|
|
677
|
+
readonly response: {
|
|
678
|
+
readonly _tag: "Code";
|
|
679
|
+
readonly state: string;
|
|
680
|
+
readonly issuer?: string | undefined;
|
|
681
|
+
readonly code: string;
|
|
682
|
+
readonly error?: undefined;
|
|
683
|
+
} | {
|
|
684
|
+
readonly _tag: "Error";
|
|
685
|
+
readonly state: string;
|
|
686
|
+
readonly issuer?: string | undefined;
|
|
687
|
+
readonly error: "access-denied" | "rejected";
|
|
688
|
+
readonly code?: undefined;
|
|
689
|
+
};
|
|
690
|
+
readonly actionProof?: string | undefined;
|
|
691
|
+
}) => Effect.Effect<{
|
|
692
|
+
readonly _tag: "Linked";
|
|
693
|
+
readonly credentialId: string;
|
|
694
|
+
readonly changed: true;
|
|
695
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
696
|
+
readonly invalidation: {
|
|
697
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
698
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
699
|
+
readonly maximumExposureMillis: number;
|
|
700
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
701
|
+
};
|
|
702
|
+
} | {
|
|
703
|
+
readonly _tag: "Linked";
|
|
704
|
+
readonly credentialId: string;
|
|
705
|
+
readonly changed: false;
|
|
706
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
707
|
+
readonly invalidation?: undefined;
|
|
708
|
+
} | {
|
|
709
|
+
readonly _tag: "Cancelled";
|
|
710
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
711
|
+
}, IdentityConflict | LastSignInMethod | OAuthActionRequired | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable | SessionApiError, AuthRequest>;
|
|
712
|
+
readonly unlinkAccount: (input: {
|
|
713
|
+
readonly commandId: string;
|
|
714
|
+
readonly credentialId: string;
|
|
715
|
+
readonly actionProof?: string | undefined;
|
|
716
|
+
}) => Effect.Effect<{
|
|
717
|
+
readonly _tag: "Unlinked";
|
|
718
|
+
readonly credentialId: string;
|
|
719
|
+
readonly invalidation: {
|
|
720
|
+
readonly trigger: "all-session-revocation" | "credential-change" | "factor-reset" | "identifier-change" | "password-reset" | "subject-delete" | "subject-disable";
|
|
721
|
+
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
722
|
+
readonly maximumExposureMillis: number;
|
|
723
|
+
readonly oldAuthenticationEvidence: "rejected";
|
|
724
|
+
};
|
|
725
|
+
}, IdentityConflict | LastSignInMethod | OAuthActionRequired | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable | SessionApiError, AuthRequest>;
|
|
726
|
+
}, AuthConfigurationError | OAuthConfigurationError | RequestBindingConfigurationError, Layer.CurrentMemoMap | ModuleService<SessionId, "strategy", Claims["Type"]> | OAuthAccountsPersistence | OAuthActionEvidence | OAuthLinkTransactionProtector | OAuthProtocol | OAuthReturnTargets | RequestBindingConfig | import("effect/Scope").Scope>;
|
|
727
|
+
}>;
|
|
728
|
+
}>;
|
|
729
|
+
connected: (policy: OAuthConnectedPolicy) => Readonly<{
|
|
730
|
+
ConnectedAccess: Context.ServiceClass<AccessModule<Id>, string, {
|
|
731
|
+
readonly withAccessToken: <A, E, R>(invocation: AuthInvocation, input: {
|
|
732
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
733
|
+
readonly profileKey: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
734
|
+
}, use: (accessToken: Redacted.Redacted<string>) => Effect.Effect<A, E, R>) => Effect.Effect<A, E | AuthenticationRequired | OAuthConnectedBusy | OAuthConnectedReauthorizationRequired | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable, R>;
|
|
735
|
+
}>;
|
|
736
|
+
accessLayer: Layer.Layer<AccessModule<Id>, OAuthConfigurationError, Crypto.Crypto | OAuthConnectedPersistence | OAuthConnectedProtocol | OAuthConnectedTokenProtector | OAuthConnectedUseAuthority>;
|
|
737
|
+
ConnectedMaintenance: Context.ServiceClass<MaintenanceModule<Id>, string, {
|
|
738
|
+
readonly cleanup: (invocation: AuthInvocation, limit: number) => Effect.Effect<{
|
|
739
|
+
readonly terminalized: number;
|
|
740
|
+
readonly removed: number;
|
|
741
|
+
readonly hasMore: boolean;
|
|
742
|
+
}, OAuthMethodUnsupported | OAuthUnavailable | OperationForbidden>;
|
|
743
|
+
readonly runRevocation: (invocation: AuthInvocation) => Effect.Effect<{
|
|
744
|
+
readonly outcome: "Confirmed" | "Empty" | "Unknown";
|
|
745
|
+
}, OAuthMethodUnsupported | OAuthUnavailable | OperationForbidden>;
|
|
746
|
+
}>;
|
|
747
|
+
maintenanceLayer: Layer.Layer<MaintenanceModule<Id>, OAuthConfigurationError, Crypto.Crypto | OAuthConnectedPersistence | OAuthConnectedProtocol | OAuthConnectedTokenProtector>;
|
|
748
|
+
maintenanceHandlersLayer: Layer.Layer<OperationHandler<`${Id}/connected/maintenance/cleanup`, {
|
|
749
|
+
readonly limit: number;
|
|
750
|
+
}, {
|
|
751
|
+
readonly terminalized: number;
|
|
752
|
+
readonly removed: number;
|
|
753
|
+
readonly hasMore: boolean;
|
|
754
|
+
}, AssuranceRequired | AuthenticationRequired | InvalidOperationInput | OAuthMethodUnsupported | OAuthUnavailable | OperationForbidden | OperationPrivateOutputUnsupported> | OperationHandler<`${Id}/connected/maintenance/revocation`, {}, {
|
|
755
|
+
readonly outcome: "Confirmed" | "Empty" | "Unknown";
|
|
756
|
+
}, AssuranceRequired | AuthenticationRequired | InvalidOperationInput | OAuthMethodUnsupported | OAuthUnavailable | OperationForbidden | OperationPrivateOutputUnsupported>, never, MaintenanceModule<Id>>;
|
|
757
|
+
maintenanceOperations: Readonly<{
|
|
758
|
+
Cleanup: AuthOperation<`${Id}/connected/maintenance/cleanup`, Schema.Struct<{
|
|
759
|
+
readonly limit: Schema.Int;
|
|
760
|
+
}>, Schema.Struct<{
|
|
761
|
+
readonly terminalized: Schema.Int;
|
|
762
|
+
readonly removed: Schema.Int;
|
|
763
|
+
readonly hasMore: Schema.Boolean;
|
|
764
|
+
}>, Schema.Union<readonly [typeof OperationForbidden, typeof OAuthMethodUnsupported, typeof OAuthUnavailable]>, never, {
|
|
765
|
+
readonly payload: Schema.Struct<{
|
|
766
|
+
readonly limit: Schema.Int;
|
|
767
|
+
}>;
|
|
768
|
+
readonly success: Schema.Struct<{
|
|
769
|
+
readonly terminalized: Schema.Int;
|
|
770
|
+
readonly removed: Schema.Int;
|
|
771
|
+
readonly hasMore: Schema.Boolean;
|
|
772
|
+
}>;
|
|
773
|
+
readonly error: Schema.Union<readonly [typeof OperationForbidden, typeof OAuthMethodUnsupported, typeof OAuthUnavailable]>;
|
|
774
|
+
readonly access: "system";
|
|
775
|
+
readonly exposure: "internal";
|
|
776
|
+
readonly replay: "idempotent";
|
|
777
|
+
}>;
|
|
778
|
+
RunRevocation: AuthOperation<`${Id}/connected/maintenance/revocation`, Schema.Struct<{}>, Schema.Struct<{
|
|
779
|
+
readonly outcome: Schema.Literals<readonly ["Empty", "Confirmed", "Unknown"]>;
|
|
780
|
+
}>, Schema.Union<readonly [typeof OperationForbidden, typeof OAuthMethodUnsupported, typeof OAuthUnavailable]>, never, {
|
|
781
|
+
readonly payload: Schema.Struct<{}>;
|
|
782
|
+
readonly success: Schema.Struct<{
|
|
783
|
+
readonly outcome: Schema.Literals<readonly ["Empty", "Confirmed", "Unknown"]>;
|
|
784
|
+
}>;
|
|
785
|
+
readonly error: Schema.Union<readonly [typeof OperationForbidden, typeof OAuthMethodUnsupported, typeof OAuthUnavailable]>;
|
|
786
|
+
readonly access: "system";
|
|
787
|
+
readonly exposure: "internal";
|
|
788
|
+
readonly replay: "non-idempotent";
|
|
789
|
+
}>;
|
|
790
|
+
}>;
|
|
791
|
+
maintenanceGroup: import("effect/unstable/rpc/RpcGroup").RpcGroup<import("effect/unstable/rpc/Rpc").Rpc<`${Id}/connected/maintenance/cleanup`, Schema.Struct<{
|
|
792
|
+
readonly limit: Schema.Int;
|
|
793
|
+
}>, Schema.Struct<{
|
|
794
|
+
readonly terminalized: Schema.Int;
|
|
795
|
+
readonly removed: Schema.Int;
|
|
796
|
+
readonly hasMore: Schema.Boolean;
|
|
797
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [typeof OperationForbidden, typeof OAuthMethodUnsupported, typeof OAuthUnavailable]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/connected/maintenance/revocation`, Schema.Struct<{}>, Schema.Struct<{
|
|
798
|
+
readonly outcome: Schema.Literals<readonly ["Empty", "Confirmed", "Unknown"]>;
|
|
799
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [typeof OperationForbidden, typeof OAuthMethodUnsupported, typeof OAuthUnavailable]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never>>;
|
|
800
|
+
Connected: Context.ServiceClass<ConnectedModule<Id>, string, {
|
|
801
|
+
readonly begin: (invocation: AuthInvocation, input: {
|
|
802
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
803
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
804
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
805
|
+
readonly intent: {
|
|
806
|
+
readonly _tag: "Connect";
|
|
807
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
808
|
+
readonly profileKey: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
809
|
+
} | {
|
|
810
|
+
readonly _tag: "Reconnect";
|
|
811
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
812
|
+
readonly profileKey: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
813
|
+
};
|
|
814
|
+
readonly returnTarget: string;
|
|
815
|
+
readonly actionProof?: Redacted.Redacted<string> | undefined;
|
|
816
|
+
}) => Effect.Effect<AuthOperationResult<typeof OAuthSignInAuthorization.Type>, AuthenticationRequired | HookDenied | IdentityConflict | OAuthConnectedActionRequired | OAuthConnectedBusy | OAuthConnectedReauthorizationRequired | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable>;
|
|
817
|
+
readonly complete: (invocation: AuthInvocation, input: {
|
|
818
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
819
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
820
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
821
|
+
readonly requestBinding: Redacted.Redacted<string>;
|
|
822
|
+
readonly response: {
|
|
823
|
+
readonly _tag: "Code";
|
|
824
|
+
readonly state: Redacted.Redacted<string>;
|
|
825
|
+
readonly issuer?: (string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">) | undefined;
|
|
826
|
+
readonly code: Redacted.Redacted<string>;
|
|
827
|
+
readonly error?: undefined;
|
|
828
|
+
} | {
|
|
829
|
+
readonly _tag: "Error";
|
|
830
|
+
readonly state: Redacted.Redacted<string>;
|
|
831
|
+
readonly issuer?: (string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">) | undefined;
|
|
832
|
+
readonly error: "access-denied" | "rejected";
|
|
833
|
+
readonly code?: undefined;
|
|
834
|
+
};
|
|
835
|
+
readonly actionProof?: Redacted.Redacted<string> | undefined;
|
|
836
|
+
}) => Effect.Effect<AuthOperationResult<{
|
|
837
|
+
readonly _tag: "Connected";
|
|
838
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
839
|
+
readonly profileKey: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
840
|
+
readonly status: "Active";
|
|
841
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
842
|
+
} | {
|
|
843
|
+
readonly _tag: "Cancelled";
|
|
844
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
845
|
+
}>, AuthenticationRequired | HookDenied | IdentityConflict | OAuthConnectedActionRequired | OAuthConnectedBusy | OAuthConnectedReauthorizationRequired | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable>;
|
|
846
|
+
readonly list: (invocation: AuthInvocation, input: {
|
|
847
|
+
readonly limit: number;
|
|
848
|
+
readonly cursor?: string | undefined;
|
|
849
|
+
}) => Effect.Effect<{
|
|
850
|
+
readonly items: readonly {
|
|
851
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
852
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
853
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
854
|
+
readonly profileKey: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
855
|
+
readonly status: "Active" | "Disconnected" | "ReauthorizationRequired" | "Refreshing";
|
|
856
|
+
readonly scopes: readonly string[];
|
|
857
|
+
readonly accessExpiresAtMillis?: number | undefined;
|
|
858
|
+
readonly useUntilMillis: number;
|
|
859
|
+
readonly profile?: {
|
|
860
|
+
readonly displayName?: string | undefined;
|
|
861
|
+
readonly handle?: string | undefined;
|
|
862
|
+
} | undefined;
|
|
863
|
+
readonly remoteRevocation: "Confirmed" | "Pending" | "Unknown" | "Unsupported";
|
|
864
|
+
}[];
|
|
865
|
+
readonly cursor?: string | undefined;
|
|
866
|
+
}, AuthenticationRequired | HookDenied | IdentityConflict | OAuthConnectedActionRequired | OAuthConnectedBusy | OAuthConnectedReauthorizationRequired | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable>;
|
|
867
|
+
readonly disconnect: (invocation: AuthInvocation, input: {
|
|
868
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
869
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
870
|
+
readonly actionProof?: Redacted.Redacted<string> | undefined;
|
|
871
|
+
}) => Effect.Effect<{
|
|
872
|
+
readonly _tag: "Disconnected";
|
|
873
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
874
|
+
readonly remoteRevocation: "Confirmed" | "Pending" | "Unknown" | "Unsupported";
|
|
875
|
+
readonly affectedGrantCount: number;
|
|
876
|
+
readonly replayed: boolean;
|
|
877
|
+
}, AuthenticationRequired | HookDenied | IdentityConflict | OAuthConnectedActionRequired | OAuthConnectedBusy | OAuthConnectedReauthorizationRequired | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable>;
|
|
878
|
+
}>;
|
|
879
|
+
binding: Readonly<{
|
|
880
|
+
RequestBinding: Context.Service<BindingModule<Id, "oauth-connected">, {
|
|
881
|
+
readonly issue: (flowId: RequestBindingFlowId) => Effect.Effect<AuthOperationResult<RequestBindingPublic>, RequestBindingUnavailable | RequestBindingInvalid>;
|
|
882
|
+
readonly verify: (flowId: RequestBindingFlowId, credential: Redacted.Redacted<string>) => Effect.Effect<VerifiedRequestBinding, RequestBindingInvalid | RequestBindingUnavailable>;
|
|
883
|
+
}>;
|
|
884
|
+
signedLayer: (configuration: RequestBindingConfiguration) => Layer.Layer<BindingModule<Id, "oauth-connected">, RequestBindingConfigurationError, Crypto.Crypto | SubtleCrypto>;
|
|
885
|
+
layer: Layer.Layer<BindingModule<Id, "oauth-connected">, RequestBindingConfigurationError, Crypto.Crypto | RequestBindingConfig | SubtleCrypto>;
|
|
886
|
+
}>;
|
|
887
|
+
layer: Layer.Layer<ConnectedModule<Id>, OAuthConfigurationError, BindingModule<Id, "oauth-connected"> | Crypto.Crypto | LifecycleHooks | OAuthConnectedActionEvidence | OAuthConnectedPersistence | OAuthConnectedProtocol | OAuthConnectedTokenProtector | OAuthConnectedTransactionProtector | OAuthConnectedUseAuthority | OAuthReturnTargets>;
|
|
888
|
+
operations: Readonly<{
|
|
889
|
+
Begin: AuthOperation<`${Id}/connected/begin`, Schema.Struct<{
|
|
890
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
891
|
+
readonly commandId: Schema.brand<Schema.String, "effect-auth/OAuthCommandId">;
|
|
892
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
893
|
+
readonly intent: Schema.Union<readonly [Schema.TaggedStruct<"Connect", {
|
|
894
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
895
|
+
readonly profileKey: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
896
|
+
}>, Schema.TaggedStruct<"Reconnect", {
|
|
897
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
898
|
+
readonly profileKey: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
899
|
+
}>]>;
|
|
900
|
+
readonly returnTarget: Schema.String;
|
|
901
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.NonEmptyString>>;
|
|
902
|
+
}>, Schema.Struct<{
|
|
903
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
904
|
+
readonly authorizationUrl: Schema.RedactedFromValue<Schema.String>;
|
|
905
|
+
readonly expiresAtMillis: Schema.Int;
|
|
906
|
+
}>, Schema.Union<readonly [typeof AuthenticationRequired, typeof OAuthConnectedActionRequired, typeof OAuthConnectedBusy, typeof OAuthConnectedReauthorizationRequired, typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof IdentityConflict, typeof HookDenied]>, never, {
|
|
907
|
+
readonly payload: Schema.Struct<{
|
|
908
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
909
|
+
readonly commandId: Schema.brand<Schema.String, "effect-auth/OAuthCommandId">;
|
|
910
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
911
|
+
readonly intent: Schema.Union<readonly [Schema.TaggedStruct<"Connect", {
|
|
912
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
913
|
+
readonly profileKey: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
914
|
+
}>, Schema.TaggedStruct<"Reconnect", {
|
|
915
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
916
|
+
readonly profileKey: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
917
|
+
}>]>;
|
|
918
|
+
readonly returnTarget: Schema.String;
|
|
919
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.NonEmptyString>>;
|
|
920
|
+
}>;
|
|
921
|
+
readonly success: Schema.Struct<{
|
|
922
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
923
|
+
readonly authorizationUrl: Schema.RedactedFromValue<Schema.String>;
|
|
924
|
+
readonly expiresAtMillis: Schema.Int;
|
|
925
|
+
}>;
|
|
926
|
+
readonly error: Schema.Union<readonly [typeof AuthenticationRequired, typeof OAuthConnectedActionRequired, typeof OAuthConnectedBusy, typeof OAuthConnectedReauthorizationRequired, typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof IdentityConflict, typeof HookDenied]>;
|
|
927
|
+
readonly access: "authenticated";
|
|
928
|
+
readonly exposure: "public";
|
|
929
|
+
readonly replay: "non-idempotent";
|
|
930
|
+
readonly credentials: true;
|
|
931
|
+
}>;
|
|
932
|
+
Complete: AuthOperation<`${Id}/connected/complete`, Schema.Struct<{
|
|
933
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
934
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
935
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
936
|
+
readonly requestBinding: Schema.RedactedFromValue<Schema.String>;
|
|
937
|
+
readonly response: Schema.Union<readonly [Schema.TaggedStruct<"Code", {
|
|
938
|
+
readonly state: Schema.RedactedFromValue<Schema.String>;
|
|
939
|
+
readonly issuer: Schema.optionalKey<Schema.brand<Schema.String, "effect-auth/OAuthIssuer">>;
|
|
940
|
+
readonly code: Schema.RedactedFromValue<Schema.String>;
|
|
941
|
+
readonly error: Schema.optionalKey<Schema.Never>;
|
|
942
|
+
}>, Schema.TaggedStruct<"Error", {
|
|
943
|
+
readonly state: Schema.RedactedFromValue<Schema.String>;
|
|
944
|
+
readonly issuer: Schema.optionalKey<Schema.brand<Schema.String, "effect-auth/OAuthIssuer">>;
|
|
945
|
+
readonly error: Schema.Literals<readonly ["access-denied", "rejected"]>;
|
|
946
|
+
readonly code: Schema.optionalKey<Schema.Never>;
|
|
947
|
+
}>]>;
|
|
948
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.NonEmptyString>>;
|
|
949
|
+
}>, Schema.Union<readonly [Schema.TaggedStruct<"Connected", {
|
|
950
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
951
|
+
readonly profileKey: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
952
|
+
readonly status: Schema.Literal<"Active">;
|
|
953
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
954
|
+
}>, Schema.TaggedStruct<"Cancelled", {
|
|
955
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
956
|
+
}>]>, Schema.Union<readonly [typeof AuthenticationRequired, typeof OAuthConnectedActionRequired, typeof OAuthConnectedBusy, typeof OAuthConnectedReauthorizationRequired, typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof IdentityConflict, typeof HookDenied]>, never, {
|
|
957
|
+
readonly payload: Schema.Struct<{
|
|
958
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
959
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
960
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
961
|
+
readonly requestBinding: Schema.RedactedFromValue<Schema.String>;
|
|
962
|
+
readonly response: Schema.Union<readonly [Schema.TaggedStruct<"Code", {
|
|
963
|
+
readonly state: Schema.RedactedFromValue<Schema.String>;
|
|
964
|
+
readonly issuer: Schema.optionalKey<Schema.brand<Schema.String, "effect-auth/OAuthIssuer">>;
|
|
965
|
+
readonly code: Schema.RedactedFromValue<Schema.String>;
|
|
966
|
+
readonly error: Schema.optionalKey<Schema.Never>;
|
|
967
|
+
}>, Schema.TaggedStruct<"Error", {
|
|
968
|
+
readonly state: Schema.RedactedFromValue<Schema.String>;
|
|
969
|
+
readonly issuer: Schema.optionalKey<Schema.brand<Schema.String, "effect-auth/OAuthIssuer">>;
|
|
970
|
+
readonly error: Schema.Literals<readonly ["access-denied", "rejected"]>;
|
|
971
|
+
readonly code: Schema.optionalKey<Schema.Never>;
|
|
972
|
+
}>]>;
|
|
973
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.NonEmptyString>>;
|
|
974
|
+
}>;
|
|
975
|
+
readonly success: Schema.Union<readonly [Schema.TaggedStruct<"Connected", {
|
|
976
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
977
|
+
readonly profileKey: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
978
|
+
readonly status: Schema.Literal<"Active">;
|
|
979
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
980
|
+
}>, Schema.TaggedStruct<"Cancelled", {
|
|
981
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
982
|
+
}>]>;
|
|
983
|
+
readonly error: Schema.Union<readonly [typeof AuthenticationRequired, typeof OAuthConnectedActionRequired, typeof OAuthConnectedBusy, typeof OAuthConnectedReauthorizationRequired, typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof IdentityConflict, typeof HookDenied]>;
|
|
984
|
+
readonly access: "authenticated";
|
|
985
|
+
readonly exposure: "public";
|
|
986
|
+
readonly replay: "single-use";
|
|
987
|
+
readonly credentials: true;
|
|
988
|
+
}>;
|
|
989
|
+
List: AuthOperation<`${Id}/connected/list`, Schema.Struct<{
|
|
990
|
+
readonly limit: Schema.Int;
|
|
991
|
+
readonly cursor: Schema.optionalKey<Schema.NonEmptyString>;
|
|
992
|
+
}>, Schema.Struct<{
|
|
993
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
994
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
995
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
996
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
997
|
+
readonly profileKey: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
998
|
+
readonly status: Schema.Literals<readonly ["Active", "Refreshing", "ReauthorizationRequired", "Disconnected"]>;
|
|
999
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1000
|
+
readonly accessExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
1001
|
+
readonly useUntilMillis: Schema.Int;
|
|
1002
|
+
readonly profile: Schema.optionalKey<Schema.Struct<{
|
|
1003
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
1004
|
+
readonly handle: Schema.optionalKey<Schema.String>;
|
|
1005
|
+
}>>;
|
|
1006
|
+
readonly remoteRevocation: Schema.Literals<readonly ["Pending", "Confirmed", "Unsupported", "Unknown"]>;
|
|
1007
|
+
}>>;
|
|
1008
|
+
readonly cursor: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1009
|
+
}>, Schema.Union<readonly [typeof AuthenticationRequired, typeof OAuthConnectedActionRequired, typeof OAuthConnectedBusy, typeof OAuthConnectedReauthorizationRequired, typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof IdentityConflict, typeof HookDenied]>, never, {
|
|
1010
|
+
readonly payload: Schema.Struct<{
|
|
1011
|
+
readonly limit: Schema.Int;
|
|
1012
|
+
readonly cursor: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1013
|
+
}>;
|
|
1014
|
+
readonly success: Schema.Struct<{
|
|
1015
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
1016
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1017
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1018
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1019
|
+
readonly profileKey: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
1020
|
+
readonly status: Schema.Literals<readonly ["Active", "Refreshing", "ReauthorizationRequired", "Disconnected"]>;
|
|
1021
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1022
|
+
readonly accessExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
1023
|
+
readonly useUntilMillis: Schema.Int;
|
|
1024
|
+
readonly profile: Schema.optionalKey<Schema.Struct<{
|
|
1025
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
1026
|
+
readonly handle: Schema.optionalKey<Schema.String>;
|
|
1027
|
+
}>>;
|
|
1028
|
+
readonly remoteRevocation: Schema.Literals<readonly ["Pending", "Confirmed", "Unsupported", "Unknown"]>;
|
|
1029
|
+
}>>;
|
|
1030
|
+
readonly cursor: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1031
|
+
}>;
|
|
1032
|
+
readonly error: Schema.Union<readonly [typeof AuthenticationRequired, typeof OAuthConnectedActionRequired, typeof OAuthConnectedBusy, typeof OAuthConnectedReauthorizationRequired, typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof IdentityConflict, typeof HookDenied]>;
|
|
1033
|
+
readonly access: "authenticated";
|
|
1034
|
+
readonly exposure: "public";
|
|
1035
|
+
readonly replay: "read-only";
|
|
1036
|
+
}>;
|
|
1037
|
+
Disconnect: AuthOperation<`${Id}/connected/disconnect`, Schema.Struct<{
|
|
1038
|
+
readonly commandId: Schema.brand<Schema.String, "effect-auth/OAuthCommandId">;
|
|
1039
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1040
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.NonEmptyString>>;
|
|
1041
|
+
}>, Schema.TaggedStruct<"Disconnected", {
|
|
1042
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1043
|
+
readonly remoteRevocation: Schema.Literals<readonly ["Pending", "Confirmed", "Unsupported", "Unknown"]>;
|
|
1044
|
+
readonly affectedGrantCount: Schema.Int;
|
|
1045
|
+
readonly replayed: Schema.Boolean;
|
|
1046
|
+
}>, Schema.Union<readonly [typeof AuthenticationRequired, typeof OAuthConnectedActionRequired, typeof OAuthConnectedBusy, typeof OAuthConnectedReauthorizationRequired, typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof IdentityConflict, typeof HookDenied]>, never, {
|
|
1047
|
+
readonly payload: Schema.Struct<{
|
|
1048
|
+
readonly commandId: Schema.brand<Schema.String, "effect-auth/OAuthCommandId">;
|
|
1049
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1050
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.NonEmptyString>>;
|
|
1051
|
+
}>;
|
|
1052
|
+
readonly success: Schema.TaggedStruct<"Disconnected", {
|
|
1053
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1054
|
+
readonly remoteRevocation: Schema.Literals<readonly ["Pending", "Confirmed", "Unsupported", "Unknown"]>;
|
|
1055
|
+
readonly affectedGrantCount: Schema.Int;
|
|
1056
|
+
readonly replayed: Schema.Boolean;
|
|
1057
|
+
}>;
|
|
1058
|
+
readonly error: Schema.Union<readonly [typeof AuthenticationRequired, typeof OAuthConnectedActionRequired, typeof OAuthConnectedBusy, typeof OAuthConnectedReauthorizationRequired, typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof IdentityConflict, typeof HookDenied]>;
|
|
1059
|
+
readonly access: "authenticated";
|
|
1060
|
+
readonly exposure: "public";
|
|
1061
|
+
readonly replay: "idempotent";
|
|
1062
|
+
}>;
|
|
1063
|
+
}>;
|
|
1064
|
+
handlersLayer: Layer.Layer<OperationHandler<`${Id}/connected/begin`, {
|
|
1065
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
1066
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
1067
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
1068
|
+
readonly intent: {
|
|
1069
|
+
readonly _tag: "Connect";
|
|
1070
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1071
|
+
readonly profileKey: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
1072
|
+
} | {
|
|
1073
|
+
readonly _tag: "Reconnect";
|
|
1074
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1075
|
+
readonly profileKey: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
1076
|
+
};
|
|
1077
|
+
readonly returnTarget: string;
|
|
1078
|
+
readonly actionProof?: Redacted.Redacted<string> | undefined;
|
|
1079
|
+
}, {
|
|
1080
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
1081
|
+
readonly authorizationUrl: Redacted.Redacted<string>;
|
|
1082
|
+
readonly expiresAtMillis: number;
|
|
1083
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | IdentityConflict | InvalidOperationInput | OAuthConnectedActionRequired | OAuthConnectedBusy | OAuthConnectedReauthorizationRequired | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable | OperationForbidden | OperationPrivateOutputUnsupported> | OperationHandler<`${Id}/connected/complete`, {
|
|
1084
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
1085
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1086
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
1087
|
+
readonly requestBinding: Redacted.Redacted<string>;
|
|
1088
|
+
readonly response: {
|
|
1089
|
+
readonly _tag: "Code";
|
|
1090
|
+
readonly state: Redacted.Redacted<string>;
|
|
1091
|
+
readonly issuer?: (string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">) | undefined;
|
|
1092
|
+
readonly code: Redacted.Redacted<string>;
|
|
1093
|
+
readonly error?: undefined;
|
|
1094
|
+
} | {
|
|
1095
|
+
readonly _tag: "Error";
|
|
1096
|
+
readonly state: Redacted.Redacted<string>;
|
|
1097
|
+
readonly issuer?: (string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">) | undefined;
|
|
1098
|
+
readonly error: "access-denied" | "rejected";
|
|
1099
|
+
readonly code?: undefined;
|
|
1100
|
+
};
|
|
1101
|
+
readonly actionProof?: Redacted.Redacted<string> | undefined;
|
|
1102
|
+
}, {
|
|
1103
|
+
readonly _tag: "Connected";
|
|
1104
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1105
|
+
readonly profileKey: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
1106
|
+
readonly status: "Active";
|
|
1107
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
1108
|
+
} | {
|
|
1109
|
+
readonly _tag: "Cancelled";
|
|
1110
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
1111
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | IdentityConflict | InvalidOperationInput | OAuthConnectedActionRequired | OAuthConnectedBusy | OAuthConnectedReauthorizationRequired | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable | OperationForbidden | OperationPrivateOutputUnsupported> | OperationHandler<`${Id}/connected/disconnect`, {
|
|
1112
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
1113
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1114
|
+
readonly actionProof?: Redacted.Redacted<string> | undefined;
|
|
1115
|
+
}, {
|
|
1116
|
+
readonly _tag: "Disconnected";
|
|
1117
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1118
|
+
readonly remoteRevocation: "Confirmed" | "Pending" | "Unknown" | "Unsupported";
|
|
1119
|
+
readonly affectedGrantCount: number;
|
|
1120
|
+
readonly replayed: boolean;
|
|
1121
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | IdentityConflict | InvalidOperationInput | OAuthConnectedActionRequired | OAuthConnectedBusy | OAuthConnectedReauthorizationRequired | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable | OperationForbidden | OperationPrivateOutputUnsupported> | OperationHandler<`${Id}/connected/list`, {
|
|
1122
|
+
readonly limit: number;
|
|
1123
|
+
readonly cursor?: string | undefined;
|
|
1124
|
+
}, {
|
|
1125
|
+
readonly items: readonly {
|
|
1126
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1127
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1128
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
1129
|
+
readonly profileKey: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
1130
|
+
readonly status: "Active" | "Disconnected" | "ReauthorizationRequired" | "Refreshing";
|
|
1131
|
+
readonly scopes: readonly string[];
|
|
1132
|
+
readonly accessExpiresAtMillis?: number | undefined;
|
|
1133
|
+
readonly useUntilMillis: number;
|
|
1134
|
+
readonly profile?: {
|
|
1135
|
+
readonly displayName?: string | undefined;
|
|
1136
|
+
readonly handle?: string | undefined;
|
|
1137
|
+
} | undefined;
|
|
1138
|
+
readonly remoteRevocation: "Confirmed" | "Pending" | "Unknown" | "Unsupported";
|
|
1139
|
+
}[];
|
|
1140
|
+
readonly cursor?: string | undefined;
|
|
1141
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | IdentityConflict | InvalidOperationInput | OAuthConnectedActionRequired | OAuthConnectedBusy | OAuthConnectedReauthorizationRequired | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable | OperationForbidden | OperationPrivateOutputUnsupported>, never, ConnectedModule<Id>>;
|
|
1142
|
+
group: import("effect/unstable/rpc/RpcGroup").RpcGroup<import("effect/unstable/rpc/Rpc").Rpc<`${Id}/connected/begin`, Schema.Struct<{
|
|
1143
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
1144
|
+
readonly commandId: Schema.brand<Schema.String, "effect-auth/OAuthCommandId">;
|
|
1145
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
1146
|
+
readonly intent: Schema.Union<readonly [Schema.TaggedStruct<"Connect", {
|
|
1147
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1148
|
+
readonly profileKey: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
1149
|
+
}>, Schema.TaggedStruct<"Reconnect", {
|
|
1150
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1151
|
+
readonly profileKey: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
1152
|
+
}>]>;
|
|
1153
|
+
readonly returnTarget: Schema.String;
|
|
1154
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.NonEmptyString>>;
|
|
1155
|
+
}>, Schema.Struct<{
|
|
1156
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
1157
|
+
readonly authorizationUrl: Schema.RedactedFromValue<Schema.String>;
|
|
1158
|
+
readonly expiresAtMillis: Schema.Int;
|
|
1159
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [typeof AuthenticationRequired, typeof OAuthConnectedActionRequired, typeof OAuthConnectedBusy, typeof OAuthConnectedReauthorizationRequired, typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof IdentityConflict, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/connected/complete`, Schema.Struct<{
|
|
1160
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
1161
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1162
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
1163
|
+
readonly requestBinding: Schema.RedactedFromValue<Schema.String>;
|
|
1164
|
+
readonly response: Schema.Union<readonly [Schema.TaggedStruct<"Code", {
|
|
1165
|
+
readonly state: Schema.RedactedFromValue<Schema.String>;
|
|
1166
|
+
readonly issuer: Schema.optionalKey<Schema.brand<Schema.String, "effect-auth/OAuthIssuer">>;
|
|
1167
|
+
readonly code: Schema.RedactedFromValue<Schema.String>;
|
|
1168
|
+
readonly error: Schema.optionalKey<Schema.Never>;
|
|
1169
|
+
}>, Schema.TaggedStruct<"Error", {
|
|
1170
|
+
readonly state: Schema.RedactedFromValue<Schema.String>;
|
|
1171
|
+
readonly issuer: Schema.optionalKey<Schema.brand<Schema.String, "effect-auth/OAuthIssuer">>;
|
|
1172
|
+
readonly error: Schema.Literals<readonly ["access-denied", "rejected"]>;
|
|
1173
|
+
readonly code: Schema.optionalKey<Schema.Never>;
|
|
1174
|
+
}>]>;
|
|
1175
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.NonEmptyString>>;
|
|
1176
|
+
}>, Schema.Union<readonly [Schema.TaggedStruct<"Connected", {
|
|
1177
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1178
|
+
readonly profileKey: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
1179
|
+
readonly status: Schema.Literal<"Active">;
|
|
1180
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
1181
|
+
}>, Schema.TaggedStruct<"Cancelled", {
|
|
1182
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
1183
|
+
}>]>, Schema.Union<readonly [Schema.Union<readonly [typeof AuthenticationRequired, typeof OAuthConnectedActionRequired, typeof OAuthConnectedBusy, typeof OAuthConnectedReauthorizationRequired, typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof IdentityConflict, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/connected/disconnect`, Schema.Struct<{
|
|
1184
|
+
readonly commandId: Schema.brand<Schema.String, "effect-auth/OAuthCommandId">;
|
|
1185
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1186
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.NonEmptyString>>;
|
|
1187
|
+
}>, Schema.TaggedStruct<"Disconnected", {
|
|
1188
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1189
|
+
readonly remoteRevocation: Schema.Literals<readonly ["Pending", "Confirmed", "Unsupported", "Unknown"]>;
|
|
1190
|
+
readonly affectedGrantCount: Schema.Int;
|
|
1191
|
+
readonly replayed: Schema.Boolean;
|
|
1192
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [typeof AuthenticationRequired, typeof OAuthConnectedActionRequired, typeof OAuthConnectedBusy, typeof OAuthConnectedReauthorizationRequired, typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof IdentityConflict, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/connected/list`, Schema.Struct<{
|
|
1193
|
+
readonly limit: Schema.Int;
|
|
1194
|
+
readonly cursor: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1195
|
+
}>, Schema.Struct<{
|
|
1196
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
1197
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1198
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1199
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1200
|
+
readonly profileKey: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
1201
|
+
readonly status: Schema.Literals<readonly ["Active", "Refreshing", "ReauthorizationRequired", "Disconnected"]>;
|
|
1202
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1203
|
+
readonly accessExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
1204
|
+
readonly useUntilMillis: Schema.Int;
|
|
1205
|
+
readonly profile: Schema.optionalKey<Schema.Struct<{
|
|
1206
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
1207
|
+
readonly handle: Schema.optionalKey<Schema.String>;
|
|
1208
|
+
}>>;
|
|
1209
|
+
readonly remoteRevocation: Schema.Literals<readonly ["Pending", "Confirmed", "Unsupported", "Unknown"]>;
|
|
1210
|
+
}>>;
|
|
1211
|
+
readonly cursor: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1212
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [typeof AuthenticationRequired, typeof OAuthConnectedActionRequired, typeof OAuthConnectedBusy, typeof OAuthConnectedReauthorizationRequired, typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof IdentityConflict, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never>>;
|
|
1213
|
+
strategy: Readonly<{
|
|
1214
|
+
completion: false;
|
|
1215
|
+
make: Effect.Effect<{
|
|
1216
|
+
readonly connectAccount: (input: {
|
|
1217
|
+
readonly flowId: string;
|
|
1218
|
+
readonly commandId: string;
|
|
1219
|
+
readonly callbackId: string;
|
|
1220
|
+
readonly intent: {
|
|
1221
|
+
readonly _tag: "Connect";
|
|
1222
|
+
readonly provider: string;
|
|
1223
|
+
readonly profileKey: string;
|
|
1224
|
+
} | {
|
|
1225
|
+
readonly _tag: "Reconnect";
|
|
1226
|
+
readonly grantId: string;
|
|
1227
|
+
readonly profileKey: string;
|
|
1228
|
+
};
|
|
1229
|
+
readonly returnTarget: string;
|
|
1230
|
+
readonly actionProof?: string | undefined;
|
|
1231
|
+
}) => Effect.Effect<{
|
|
1232
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
1233
|
+
readonly authorizationUrl: Redacted.Redacted<string>;
|
|
1234
|
+
readonly expiresAtMillis: number;
|
|
1235
|
+
}, IdentityConflict | OAuthConnectedActionRequired | OAuthConnectedBusy | OAuthConnectedReauthorizationRequired | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable | SessionApiError, AuthRequest>;
|
|
1236
|
+
readonly completeAccountConnection: (input: {
|
|
1237
|
+
readonly flowId: string;
|
|
1238
|
+
readonly provider: string;
|
|
1239
|
+
readonly callbackId: string;
|
|
1240
|
+
readonly requestBinding: string;
|
|
1241
|
+
readonly response: {
|
|
1242
|
+
readonly _tag: "Code";
|
|
1243
|
+
readonly state: string;
|
|
1244
|
+
readonly issuer?: string | undefined;
|
|
1245
|
+
readonly code: string;
|
|
1246
|
+
readonly error?: undefined;
|
|
1247
|
+
} | {
|
|
1248
|
+
readonly _tag: "Error";
|
|
1249
|
+
readonly state: string;
|
|
1250
|
+
readonly issuer?: string | undefined;
|
|
1251
|
+
readonly error: "access-denied" | "rejected";
|
|
1252
|
+
readonly code?: undefined;
|
|
1253
|
+
};
|
|
1254
|
+
readonly actionProof?: string | undefined;
|
|
1255
|
+
}) => Effect.Effect<{
|
|
1256
|
+
readonly _tag: "Connected";
|
|
1257
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1258
|
+
readonly profileKey: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
1259
|
+
readonly status: "Active";
|
|
1260
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
1261
|
+
} | {
|
|
1262
|
+
readonly _tag: "Cancelled";
|
|
1263
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
1264
|
+
}, IdentityConflict | OAuthConnectedActionRequired | OAuthConnectedBusy | OAuthConnectedReauthorizationRequired | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable | SessionApiError, AuthRequest>;
|
|
1265
|
+
readonly listAccountConnections: (input: {
|
|
1266
|
+
readonly limit: number;
|
|
1267
|
+
readonly cursor?: string | undefined;
|
|
1268
|
+
}) => Effect.Effect<{
|
|
1269
|
+
readonly items: readonly {
|
|
1270
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1271
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1272
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
1273
|
+
readonly profileKey: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
1274
|
+
readonly status: "Active" | "Disconnected" | "ReauthorizationRequired" | "Refreshing";
|
|
1275
|
+
readonly scopes: readonly string[];
|
|
1276
|
+
readonly accessExpiresAtMillis?: number | undefined;
|
|
1277
|
+
readonly useUntilMillis: number;
|
|
1278
|
+
readonly profile?: {
|
|
1279
|
+
readonly displayName?: string | undefined;
|
|
1280
|
+
readonly handle?: string | undefined;
|
|
1281
|
+
} | undefined;
|
|
1282
|
+
readonly remoteRevocation: "Confirmed" | "Pending" | "Unknown" | "Unsupported";
|
|
1283
|
+
}[];
|
|
1284
|
+
readonly cursor?: string | undefined;
|
|
1285
|
+
}, IdentityConflict | OAuthConnectedActionRequired | OAuthConnectedBusy | OAuthConnectedReauthorizationRequired | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable | SessionApiError, AuthRequest>;
|
|
1286
|
+
readonly disconnectAccount: (input: {
|
|
1287
|
+
readonly commandId: string;
|
|
1288
|
+
readonly grantId: string;
|
|
1289
|
+
readonly actionProof?: string | undefined;
|
|
1290
|
+
}) => Effect.Effect<{
|
|
1291
|
+
readonly _tag: "Disconnected";
|
|
1292
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1293
|
+
readonly remoteRevocation: "Confirmed" | "Pending" | "Unknown" | "Unsupported";
|
|
1294
|
+
readonly affectedGrantCount: number;
|
|
1295
|
+
readonly replayed: boolean;
|
|
1296
|
+
}, IdentityConflict | OAuthConnectedActionRequired | OAuthConnectedBusy | OAuthConnectedReauthorizationRequired | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable | SessionApiError, AuthRequest>;
|
|
1297
|
+
}, AuthConfigurationError | OAuthConfigurationError | RequestBindingConfigurationError, Layer.CurrentMemoMap | OAuthConnectedActionEvidence | OAuthConnectedPersistence | OAuthConnectedProtocol | OAuthConnectedTokenProtector | OAuthConnectedTransactionProtector | OAuthConnectedUseAuthority | OAuthReturnTargets | RequestBindingConfig | import("effect/Scope").Scope>;
|
|
1298
|
+
}>;
|
|
1299
|
+
}>;
|
|
1300
|
+
CompletionResult: Schema.Union<readonly [Schema.Struct<{
|
|
1301
|
+
readonly completion: Schema.Union<readonly [Schema.TaggedStruct<"Authenticated", {
|
|
1302
|
+
readonly session: Schema.Struct<{
|
|
1303
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "effect-auth/SessionId">;
|
|
1304
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
1305
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1306
|
+
readonly assurance: typeof AuthenticationAssurance;
|
|
1307
|
+
readonly issuedAt: Schema.DateTimeUtcFromMillis;
|
|
1308
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
1309
|
+
readonly absoluteExpiresAt: Schema.DateTimeUtcFromMillis;
|
|
1310
|
+
readonly claims: Schema.Codec<Claims["Type"], Claims["Encoded"], Claims["DecodingServices"], Claims["EncodingServices"]>;
|
|
1311
|
+
}>;
|
|
1312
|
+
}>, Schema.TaggedStruct<"PendingAuthentication", {
|
|
1313
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
1314
|
+
}>]>;
|
|
1315
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
1316
|
+
}>, Schema.TaggedStruct<"Cancelled", {
|
|
1317
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
1318
|
+
}>, Schema.TaggedStruct<"RegistrationRequired", {
|
|
1319
|
+
readonly reference: Schema.brand<Schema.String, "effect-auth/OAuthRegistrationReference">;
|
|
1320
|
+
readonly expiresAtMillis: Schema.Int;
|
|
1321
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
1322
|
+
}>]>;
|
|
1323
|
+
operations: Readonly<{
|
|
1324
|
+
Begin: AuthOperation<`${Id}/sign-in/begin`, Schema.Struct<{
|
|
1325
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
1326
|
+
readonly commandId: Schema.brand<Schema.String, "effect-auth/OAuthCommandId">;
|
|
1327
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1328
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
1329
|
+
readonly returnTarget: Schema.String;
|
|
1330
|
+
}>, Schema.Struct<{
|
|
1331
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
1332
|
+
readonly authorizationUrl: Schema.RedactedFromValue<Schema.String>;
|
|
1333
|
+
readonly expiresAtMillis: Schema.Int;
|
|
1334
|
+
}>, Schema.Union<readonly [typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof HookDenied]>, never, {
|
|
1335
|
+
readonly payload: Schema.Struct<{
|
|
1336
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
1337
|
+
readonly commandId: Schema.brand<Schema.String, "effect-auth/OAuthCommandId">;
|
|
1338
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1339
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
1340
|
+
readonly returnTarget: Schema.String;
|
|
1341
|
+
}>;
|
|
1342
|
+
readonly success: Schema.Struct<{
|
|
1343
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
1344
|
+
readonly authorizationUrl: Schema.RedactedFromValue<Schema.String>;
|
|
1345
|
+
readonly expiresAtMillis: Schema.Int;
|
|
1346
|
+
}>;
|
|
1347
|
+
readonly error: Schema.Union<readonly [typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof HookDenied]>;
|
|
1348
|
+
readonly access: "any";
|
|
1349
|
+
readonly exposure: "public";
|
|
1350
|
+
readonly replay: "non-idempotent";
|
|
1351
|
+
readonly credentials: true;
|
|
1352
|
+
}>;
|
|
1353
|
+
Complete: AuthOperation<`${Id}/sign-in/complete`, Schema.Struct<{
|
|
1354
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
1355
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1356
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
1357
|
+
readonly requestBinding: Schema.RedactedFromValue<Schema.String>;
|
|
1358
|
+
readonly response: Schema.Union<readonly [Schema.TaggedStruct<"Code", {
|
|
1359
|
+
readonly state: Schema.RedactedFromValue<Schema.String>;
|
|
1360
|
+
readonly issuer: Schema.optionalKey<Schema.brand<Schema.String, "effect-auth/OAuthIssuer">>;
|
|
1361
|
+
readonly code: Schema.RedactedFromValue<Schema.String>;
|
|
1362
|
+
readonly error: Schema.optionalKey<Schema.Never>;
|
|
1363
|
+
}>, Schema.TaggedStruct<"Error", {
|
|
1364
|
+
readonly state: Schema.RedactedFromValue<Schema.String>;
|
|
1365
|
+
readonly issuer: Schema.optionalKey<Schema.brand<Schema.String, "effect-auth/OAuthIssuer">>;
|
|
1366
|
+
readonly error: Schema.Literals<readonly ["access-denied", "rejected"]>;
|
|
1367
|
+
readonly code: Schema.optionalKey<Schema.Never>;
|
|
1368
|
+
}>]>;
|
|
1369
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
1370
|
+
readonly completion: Schema.Union<readonly [Schema.TaggedStruct<"Authenticated", {
|
|
1371
|
+
readonly session: Schema.Struct<{
|
|
1372
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "effect-auth/SessionId">;
|
|
1373
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
1374
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1375
|
+
readonly assurance: typeof AuthenticationAssurance;
|
|
1376
|
+
readonly issuedAt: Schema.DateTimeUtcFromMillis;
|
|
1377
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
1378
|
+
readonly absoluteExpiresAt: Schema.DateTimeUtcFromMillis;
|
|
1379
|
+
readonly claims: Schema.Codec<Claims["Type"], Claims["Encoded"], Claims["DecodingServices"], Claims["EncodingServices"]>;
|
|
1380
|
+
}>;
|
|
1381
|
+
}>, Schema.TaggedStruct<"PendingAuthentication", {
|
|
1382
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
1383
|
+
}>]>;
|
|
1384
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
1385
|
+
}>, Schema.TaggedStruct<"Cancelled", {
|
|
1386
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
1387
|
+
}>, Schema.TaggedStruct<"RegistrationRequired", {
|
|
1388
|
+
readonly reference: Schema.brand<Schema.String, "effect-auth/OAuthRegistrationReference">;
|
|
1389
|
+
readonly expiresAtMillis: Schema.Int;
|
|
1390
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
1391
|
+
}>]>, Schema.Union<readonly [typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof HookDenied]>, never, {
|
|
1392
|
+
readonly payload: Schema.Struct<{
|
|
1393
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
1394
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1395
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
1396
|
+
readonly requestBinding: Schema.RedactedFromValue<Schema.String>;
|
|
1397
|
+
readonly response: Schema.Union<readonly [Schema.TaggedStruct<"Code", {
|
|
1398
|
+
readonly state: Schema.RedactedFromValue<Schema.String>;
|
|
1399
|
+
readonly issuer: Schema.optionalKey<Schema.brand<Schema.String, "effect-auth/OAuthIssuer">>;
|
|
1400
|
+
readonly code: Schema.RedactedFromValue<Schema.String>;
|
|
1401
|
+
readonly error: Schema.optionalKey<Schema.Never>;
|
|
1402
|
+
}>, Schema.TaggedStruct<"Error", {
|
|
1403
|
+
readonly state: Schema.RedactedFromValue<Schema.String>;
|
|
1404
|
+
readonly issuer: Schema.optionalKey<Schema.brand<Schema.String, "effect-auth/OAuthIssuer">>;
|
|
1405
|
+
readonly error: Schema.Literals<readonly ["access-denied", "rejected"]>;
|
|
1406
|
+
readonly code: Schema.optionalKey<Schema.Never>;
|
|
1407
|
+
}>]>;
|
|
1408
|
+
}>;
|
|
1409
|
+
readonly success: Schema.Union<readonly [Schema.Struct<{
|
|
1410
|
+
readonly completion: Schema.Union<readonly [Schema.TaggedStruct<"Authenticated", {
|
|
1411
|
+
readonly session: Schema.Struct<{
|
|
1412
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "effect-auth/SessionId">;
|
|
1413
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
1414
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1415
|
+
readonly assurance: typeof AuthenticationAssurance;
|
|
1416
|
+
readonly issuedAt: Schema.DateTimeUtcFromMillis;
|
|
1417
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
1418
|
+
readonly absoluteExpiresAt: Schema.DateTimeUtcFromMillis;
|
|
1419
|
+
readonly claims: Schema.Codec<Claims["Type"], Claims["Encoded"], Claims["DecodingServices"], Claims["EncodingServices"]>;
|
|
1420
|
+
}>;
|
|
1421
|
+
}>, Schema.TaggedStruct<"PendingAuthentication", {
|
|
1422
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
1423
|
+
}>]>;
|
|
1424
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
1425
|
+
}>, Schema.TaggedStruct<"Cancelled", {
|
|
1426
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
1427
|
+
}>, Schema.TaggedStruct<"RegistrationRequired", {
|
|
1428
|
+
readonly reference: Schema.brand<Schema.String, "effect-auth/OAuthRegistrationReference">;
|
|
1429
|
+
readonly expiresAtMillis: Schema.Int;
|
|
1430
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
1431
|
+
}>]>;
|
|
1432
|
+
readonly error: Schema.Union<readonly [typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof HookDenied]>;
|
|
1433
|
+
readonly access: "any";
|
|
1434
|
+
readonly exposure: "public";
|
|
1435
|
+
readonly replay: "single-use";
|
|
1436
|
+
readonly credentials: true;
|
|
1437
|
+
}>;
|
|
1438
|
+
}>;
|
|
1439
|
+
handlersLayer: Layer.Layer<OperationHandler<`${Id}/sign-in/begin`, {
|
|
1440
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
1441
|
+
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
1442
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1443
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
1444
|
+
readonly returnTarget: string;
|
|
1445
|
+
}, {
|
|
1446
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
1447
|
+
readonly authorizationUrl: Redacted.Redacted<string>;
|
|
1448
|
+
readonly expiresAtMillis: number;
|
|
1449
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable | OperationForbidden | OperationPrivateOutputUnsupported> | OperationHandler<`${Id}/sign-in/complete`, {
|
|
1450
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
1451
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
1452
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
1453
|
+
readonly requestBinding: Redacted.Redacted<string>;
|
|
1454
|
+
readonly response: {
|
|
1455
|
+
readonly _tag: "Code";
|
|
1456
|
+
readonly state: Redacted.Redacted<string>;
|
|
1457
|
+
readonly issuer?: (string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">) | undefined;
|
|
1458
|
+
readonly code: Redacted.Redacted<string>;
|
|
1459
|
+
readonly error?: undefined;
|
|
1460
|
+
} | {
|
|
1461
|
+
readonly _tag: "Error";
|
|
1462
|
+
readonly state: Redacted.Redacted<string>;
|
|
1463
|
+
readonly issuer?: (string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">) | undefined;
|
|
1464
|
+
readonly error: "access-denied" | "rejected";
|
|
1465
|
+
readonly code?: undefined;
|
|
1466
|
+
};
|
|
1467
|
+
}, {
|
|
1468
|
+
readonly completion: {
|
|
1469
|
+
readonly _tag: "Authenticated";
|
|
1470
|
+
readonly session: {
|
|
1471
|
+
readonly sessionId: string & import("effect/Brand").Brand<"effect-auth/SessionId">;
|
|
1472
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1473
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1474
|
+
readonly assurance: AuthenticationAssurance;
|
|
1475
|
+
readonly issuedAt: DateTime.Utc;
|
|
1476
|
+
readonly expiresAt: DateTime.Utc;
|
|
1477
|
+
readonly absoluteExpiresAt: DateTime.Utc;
|
|
1478
|
+
readonly claims: Claims["Type"];
|
|
1479
|
+
};
|
|
1480
|
+
} | {
|
|
1481
|
+
readonly _tag: "PendingAuthentication";
|
|
1482
|
+
readonly expiresAt: DateTime.Utc;
|
|
1483
|
+
};
|
|
1484
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
1485
|
+
} | {
|
|
1486
|
+
readonly _tag: "Cancelled";
|
|
1487
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
1488
|
+
} | {
|
|
1489
|
+
readonly _tag: "RegistrationRequired";
|
|
1490
|
+
readonly reference: string & import("effect/Brand").Brand<"effect-auth/OAuthRegistrationReference">;
|
|
1491
|
+
readonly expiresAtMillis: number;
|
|
1492
|
+
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
1493
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | OAuthMethodUnsupported | OAuthRejected | OAuthUnavailable | OperationForbidden | OperationPrivateOutputUnsupported>, never, OAuthModule<Id, "sign-in", Claims["Type"]>>;
|
|
1494
|
+
group: import("effect/unstable/rpc/RpcGroup").RpcGroup<import("effect/unstable/rpc/Rpc").Rpc<`${Id}/sign-in/begin`, Schema.Struct<{
|
|
1495
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
1496
|
+
readonly commandId: Schema.brand<Schema.String, "effect-auth/OAuthCommandId">;
|
|
1497
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1498
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
1499
|
+
readonly returnTarget: Schema.String;
|
|
1500
|
+
}>, Schema.Struct<{
|
|
1501
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
1502
|
+
readonly authorizationUrl: Schema.RedactedFromValue<Schema.String>;
|
|
1503
|
+
readonly expiresAtMillis: Schema.Int;
|
|
1504
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${Id}/sign-in/complete`, Schema.Struct<{
|
|
1505
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
1506
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1507
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
1508
|
+
readonly requestBinding: Schema.RedactedFromValue<Schema.String>;
|
|
1509
|
+
readonly response: Schema.Union<readonly [Schema.TaggedStruct<"Code", {
|
|
1510
|
+
readonly state: Schema.RedactedFromValue<Schema.String>;
|
|
1511
|
+
readonly issuer: Schema.optionalKey<Schema.brand<Schema.String, "effect-auth/OAuthIssuer">>;
|
|
1512
|
+
readonly code: Schema.RedactedFromValue<Schema.String>;
|
|
1513
|
+
readonly error: Schema.optionalKey<Schema.Never>;
|
|
1514
|
+
}>, Schema.TaggedStruct<"Error", {
|
|
1515
|
+
readonly state: Schema.RedactedFromValue<Schema.String>;
|
|
1516
|
+
readonly issuer: Schema.optionalKey<Schema.brand<Schema.String, "effect-auth/OAuthIssuer">>;
|
|
1517
|
+
readonly error: Schema.Literals<readonly ["access-denied", "rejected"]>;
|
|
1518
|
+
readonly code: Schema.optionalKey<Schema.Never>;
|
|
1519
|
+
}>]>;
|
|
1520
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
1521
|
+
readonly completion: Schema.Union<readonly [Schema.TaggedStruct<"Authenticated", {
|
|
1522
|
+
readonly session: Schema.Struct<{
|
|
1523
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "effect-auth/SessionId">;
|
|
1524
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
1525
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1526
|
+
readonly assurance: typeof AuthenticationAssurance;
|
|
1527
|
+
readonly issuedAt: Schema.DateTimeUtcFromMillis;
|
|
1528
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
1529
|
+
readonly absoluteExpiresAt: Schema.DateTimeUtcFromMillis;
|
|
1530
|
+
readonly claims: Schema.Codec<Claims["Type"], Claims["Encoded"], Claims["DecodingServices"], Claims["EncodingServices"]>;
|
|
1531
|
+
}>;
|
|
1532
|
+
}>, Schema.TaggedStruct<"PendingAuthentication", {
|
|
1533
|
+
readonly expiresAt: Schema.DateTimeUtcFromMillis;
|
|
1534
|
+
}>]>;
|
|
1535
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
1536
|
+
}>, Schema.TaggedStruct<"Cancelled", {
|
|
1537
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
1538
|
+
}>, Schema.TaggedStruct<"RegistrationRequired", {
|
|
1539
|
+
readonly reference: Schema.brand<Schema.String, "effect-auth/OAuthRegistrationReference">;
|
|
1540
|
+
readonly expiresAtMillis: Schema.Int;
|
|
1541
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
1542
|
+
}>]>, Schema.Union<readonly [Schema.Union<readonly [typeof OAuthRejected, typeof OAuthUnavailable, typeof OAuthMethodUnsupported, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never>>;
|
|
1543
|
+
}>;
|
|
1544
|
+
//#endregion
|
|
1545
|
+
export { OAuthModule, makeOAuthMethod };
|
|
1546
|
+
//# sourceMappingURL=signInModule.d.mts.map
|