@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,335 @@
|
|
|
1
|
+
import { AssuranceRequired, AuthenticationRequired, InvalidOperationInput, OperationForbidden, OperationPrivateOutputUnsupported } from "../operations/errors.mjs";
|
|
2
|
+
import { AuthOperationResult } from "../operations/credentials.mjs";
|
|
3
|
+
import { AuthOperation, OperationHandler } from "../operations/operation.mjs";
|
|
4
|
+
import { HookDenied } from "../hooks/models.mjs";
|
|
5
|
+
import { LifecycleHooks } from "../hooks/LifecycleHooks.mjs";
|
|
6
|
+
import { PreparedCommit } from "../hooks/commit.mjs";
|
|
7
|
+
import { SubtleCrypto } from "../WebCrypto.mjs";
|
|
8
|
+
import "../Operations.mjs";
|
|
9
|
+
import "../Hooks.mjs";
|
|
10
|
+
import "../Auth.mjs";
|
|
11
|
+
import { ProofBinding, ProofCleanupResult, ProofCompletionDecision, ProofId } from "./models.mjs";
|
|
12
|
+
import { ProofCapabilityUnsupported, ProofConfigurationError, ProofIngressDenied, ProofInvalid, ProofRequestConflict, ProofUnavailable } from "./errors.mjs";
|
|
13
|
+
import { EmailProofDelivery } from "./EmailProofDelivery.mjs";
|
|
14
|
+
import { ProofPersistence } from "./ProofPersistence.mjs";
|
|
15
|
+
import { PreparedProofDispatch, ProofIssuePlan } from "./dispatch.mjs";
|
|
16
|
+
import { ProofCompletionPlan } from "./completion.mjs";
|
|
17
|
+
import { SmsProofDelivery } from "./SmsProofDelivery.mjs";
|
|
18
|
+
import { ProofModule, makeProofModule } from "./module.mjs";
|
|
19
|
+
import { Schema } from "effect";
|
|
20
|
+
//#region src/proofs/definition.d.ts
|
|
21
|
+
type Options<Binding extends Schema.Codec<ProofBinding, unknown, unknown, unknown>> = Parameters<typeof makeProofModule<string, Binding>>[1];
|
|
22
|
+
type NamespaceOf<Id> = Id extends string ? Id : "effect-auth/proofs";
|
|
23
|
+
declare const define: <Binding extends Schema.Codec<ProofBinding, unknown, unknown, unknown>, const Id extends string | undefined>(namespace: Id, options: Options<Binding>) => Readonly<{
|
|
24
|
+
Proofs: import("effect/Context").Service<ProofModule<NamespaceOf<Id>, Binding["Type"]>, {
|
|
25
|
+
readonly planIssue: (input: {
|
|
26
|
+
readonly requestId: string & import("effect/Brand").Brand<"effect-auth/ProofRequestId">;
|
|
27
|
+
readonly binding: Binding["Type"];
|
|
28
|
+
readonly locale: string;
|
|
29
|
+
readonly eligible: boolean;
|
|
30
|
+
} & {
|
|
31
|
+
readonly supersedes?: ProofId;
|
|
32
|
+
}) => import("effect/Effect").Effect<ProofIssuePlan, HookDenied | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable>;
|
|
33
|
+
readonly prepareIssue: (input: {
|
|
34
|
+
readonly requestId: string & import("effect/Brand").Brand<"effect-auth/ProofRequestId">;
|
|
35
|
+
readonly binding: Binding["Type"];
|
|
36
|
+
readonly locale: string;
|
|
37
|
+
readonly eligible: boolean;
|
|
38
|
+
} & {
|
|
39
|
+
readonly supersedes?: ProofId;
|
|
40
|
+
}) => import("effect/Effect").Effect<PreparedCommit<PreparedProofDispatch>, HookDenied | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable>;
|
|
41
|
+
readonly prepareAttempt: (input: {
|
|
42
|
+
readonly reference: {
|
|
43
|
+
readonly proofId: string & import("effect/Brand").Brand<"effect-auth/ProofId">;
|
|
44
|
+
readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
|
|
45
|
+
readonly keyId: string;
|
|
46
|
+
};
|
|
47
|
+
readonly binding: Binding["Type"];
|
|
48
|
+
readonly credential: import("effect/Redacted").Redacted<string>;
|
|
49
|
+
}) => import("effect/Effect").Effect<PreparedCommit<AuthOperationResult<{
|
|
50
|
+
readonly _tag: "Accepted";
|
|
51
|
+
readonly continuation: {
|
|
52
|
+
readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
|
|
53
|
+
readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
|
|
54
|
+
readonly expiresAtMillis: number;
|
|
55
|
+
};
|
|
56
|
+
}> | {
|
|
57
|
+
readonly value: {
|
|
58
|
+
readonly _tag: "Rejected";
|
|
59
|
+
};
|
|
60
|
+
readonly credentialCommands: readonly [];
|
|
61
|
+
}>, HookDenied | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable, never>;
|
|
62
|
+
readonly planComplete: (input: {
|
|
63
|
+
readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
|
|
64
|
+
readonly binding: Binding["Type"];
|
|
65
|
+
readonly credential: import("effect/Redacted").Redacted<string>;
|
|
66
|
+
}) => import("effect/Effect").Effect<ProofCompletionPlan, HookDenied | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable>;
|
|
67
|
+
readonly prepareComplete: (input: {
|
|
68
|
+
readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
|
|
69
|
+
readonly binding: Binding["Type"];
|
|
70
|
+
readonly credential: import("effect/Redacted").Redacted<string>;
|
|
71
|
+
}) => import("effect/Effect").Effect<PreparedCommit<ProofCompletionDecision>, HookDenied | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable>;
|
|
72
|
+
readonly cancel: (binding: Binding["Type"]) => import("effect/Effect").Effect<PreparedCommit<void>, HookDenied | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable>;
|
|
73
|
+
readonly cleanup: (limit: number) => import("effect/Effect").Effect<PreparedCommit<ProofCleanupResult>, HookDenied | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable>;
|
|
74
|
+
}>;
|
|
75
|
+
emailLayer: import("effect/Layer").Layer<ProofModule<NamespaceOf<Id>, Binding["Type"]>, ProofConfigurationError, import("effect/Crypto").Crypto | EmailProofDelivery | LifecycleHooks | ProofPersistence | SubtleCrypto | Exclude<Binding["DecodingServices"], import("effect/Scope").Scope> | Exclude<Binding["EncodingServices"], import("effect/Scope").Scope>>;
|
|
76
|
+
smsLayer: import("effect/Layer").Layer<ProofModule<NamespaceOf<Id>, Binding["Type"]>, ProofConfigurationError, import("effect/Crypto").Crypto | LifecycleHooks | ProofPersistence | SmsProofDelivery | SubtleCrypto | Exclude<Binding["DecodingServices"], import("effect/Scope").Scope> | Exclude<Binding["EncodingServices"], import("effect/Scope").Scope>>;
|
|
77
|
+
handlersLayer: import("effect/Layer").Layer<OperationHandler<`${NamespaceOf<Id>}/attempt`, {
|
|
78
|
+
readonly reference: {
|
|
79
|
+
readonly proofId: string & import("effect/Brand").Brand<"effect-auth/ProofId">;
|
|
80
|
+
readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
|
|
81
|
+
readonly keyId: string;
|
|
82
|
+
};
|
|
83
|
+
readonly binding: Binding["Type"];
|
|
84
|
+
readonly credential: import("effect/Redacted").Redacted<string>;
|
|
85
|
+
}, {
|
|
86
|
+
readonly _tag: "Accepted";
|
|
87
|
+
readonly continuation: {
|
|
88
|
+
readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
|
|
89
|
+
readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
|
|
90
|
+
readonly expiresAtMillis: number;
|
|
91
|
+
};
|
|
92
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | OperationForbidden | OperationPrivateOutputUnsupported | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable> | OperationHandler<`${NamespaceOf<Id>}/cancel`, {
|
|
93
|
+
readonly binding: Binding["Type"];
|
|
94
|
+
}, void, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | OperationForbidden | OperationPrivateOutputUnsupported | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable> | OperationHandler<`${NamespaceOf<Id>}/cleanup`, {
|
|
95
|
+
readonly limit: number;
|
|
96
|
+
}, {
|
|
97
|
+
readonly removed: number;
|
|
98
|
+
readonly hasMore: boolean;
|
|
99
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | OperationForbidden | OperationPrivateOutputUnsupported | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable> | OperationHandler<`${NamespaceOf<Id>}/complete`, {
|
|
100
|
+
readonly continuationId: string & import("effect/Brand").Brand<"effect-auth/ProofContinuationId">;
|
|
101
|
+
readonly binding: Binding["Type"];
|
|
102
|
+
readonly credential: import("effect/Redacted").Redacted<string>;
|
|
103
|
+
}, void, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | OperationForbidden | OperationPrivateOutputUnsupported | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable> | OperationHandler<`${NamespaceOf<Id>}/request`, {
|
|
104
|
+
readonly requestId: string & import("effect/Brand").Brand<"effect-auth/ProofRequestId">;
|
|
105
|
+
readonly binding: Binding["Type"];
|
|
106
|
+
readonly locale: string;
|
|
107
|
+
readonly eligible: boolean;
|
|
108
|
+
}, {
|
|
109
|
+
readonly requestId: string & import("effect/Brand").Brand<"effect-auth/ProofRequestId">;
|
|
110
|
+
readonly reference: {
|
|
111
|
+
readonly proofId: string & import("effect/Brand").Brand<"effect-auth/ProofId">;
|
|
112
|
+
readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
|
|
113
|
+
readonly keyId: string;
|
|
114
|
+
};
|
|
115
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | OperationForbidden | OperationPrivateOutputUnsupported | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable> | OperationHandler<`${NamespaceOf<Id>}/resend`, {
|
|
116
|
+
readonly requestId: string & import("effect/Brand").Brand<"effect-auth/ProofRequestId">;
|
|
117
|
+
readonly binding: Binding["Type"];
|
|
118
|
+
readonly locale: string;
|
|
119
|
+
readonly eligible: boolean;
|
|
120
|
+
readonly supersedes: string & import("effect/Brand").Brand<"effect-auth/ProofId">;
|
|
121
|
+
}, {
|
|
122
|
+
readonly requestId: string & import("effect/Brand").Brand<"effect-auth/ProofRequestId">;
|
|
123
|
+
readonly reference: {
|
|
124
|
+
readonly proofId: string & import("effect/Brand").Brand<"effect-auth/ProofId">;
|
|
125
|
+
readonly purpose: string & import("effect/Brand").Brand<"effect-auth/ProofPurpose">;
|
|
126
|
+
readonly keyId: string;
|
|
127
|
+
};
|
|
128
|
+
}, AssuranceRequired | AuthenticationRequired | HookDenied | InvalidOperationInput | OperationForbidden | OperationPrivateOutputUnsupported | ProofCapabilityUnsupported | ProofIngressDenied | ProofInvalid | ProofRequestConflict | ProofUnavailable>, never, ProofModule<NamespaceOf<Id>, Binding["Type"]>>;
|
|
129
|
+
operations: {
|
|
130
|
+
Request: AuthOperation<`${NamespaceOf<Id>}/request`, Schema.Struct<{
|
|
131
|
+
readonly requestId: Schema.brand<Schema.String, "effect-auth/ProofRequestId">;
|
|
132
|
+
readonly binding: Schema.Codec<Binding["Type"], Binding["Encoded"], Binding["DecodingServices"], Binding["EncodingServices"]>;
|
|
133
|
+
readonly locale: Schema.String;
|
|
134
|
+
readonly eligible: Schema.Boolean;
|
|
135
|
+
}>, Schema.Struct<{
|
|
136
|
+
readonly requestId: Schema.brand<Schema.String, "effect-auth/ProofRequestId">;
|
|
137
|
+
readonly reference: Schema.Struct<{
|
|
138
|
+
readonly proofId: Schema.brand<Schema.String, "effect-auth/ProofId">;
|
|
139
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
140
|
+
readonly keyId: Schema.String;
|
|
141
|
+
}>;
|
|
142
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, never, {
|
|
143
|
+
readonly payload: Schema.Struct<{
|
|
144
|
+
readonly requestId: Schema.brand<Schema.String, "effect-auth/ProofRequestId">;
|
|
145
|
+
readonly binding: Schema.Codec<Binding["Type"], Binding["Encoded"], Binding["DecodingServices"], Binding["EncodingServices"]>;
|
|
146
|
+
readonly locale: Schema.String;
|
|
147
|
+
readonly eligible: Schema.Boolean;
|
|
148
|
+
}>;
|
|
149
|
+
readonly success: Schema.Struct<{
|
|
150
|
+
readonly requestId: Schema.brand<Schema.String, "effect-auth/ProofRequestId">;
|
|
151
|
+
readonly reference: Schema.Struct<{
|
|
152
|
+
readonly proofId: Schema.brand<Schema.String, "effect-auth/ProofId">;
|
|
153
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
154
|
+
readonly keyId: Schema.String;
|
|
155
|
+
}>;
|
|
156
|
+
}>;
|
|
157
|
+
readonly error: Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>;
|
|
158
|
+
readonly access: "system";
|
|
159
|
+
readonly replay: "idempotent";
|
|
160
|
+
}>;
|
|
161
|
+
Resend: AuthOperation<`${NamespaceOf<Id>}/resend`, Schema.Struct<{
|
|
162
|
+
readonly requestId: Schema.brand<Schema.String, "effect-auth/ProofRequestId">;
|
|
163
|
+
readonly binding: Schema.Codec<Binding["Type"], Binding["Encoded"], Binding["DecodingServices"], Binding["EncodingServices"]>;
|
|
164
|
+
readonly locale: Schema.String;
|
|
165
|
+
readonly eligible: Schema.Boolean;
|
|
166
|
+
readonly supersedes: Schema.brand<Schema.String, "effect-auth/ProofId">;
|
|
167
|
+
}>, Schema.Struct<{
|
|
168
|
+
readonly requestId: Schema.brand<Schema.String, "effect-auth/ProofRequestId">;
|
|
169
|
+
readonly reference: Schema.Struct<{
|
|
170
|
+
readonly proofId: Schema.brand<Schema.String, "effect-auth/ProofId">;
|
|
171
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
172
|
+
readonly keyId: Schema.String;
|
|
173
|
+
}>;
|
|
174
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, never, {
|
|
175
|
+
readonly payload: Schema.Struct<{
|
|
176
|
+
readonly requestId: Schema.brand<Schema.String, "effect-auth/ProofRequestId">;
|
|
177
|
+
readonly binding: Schema.Codec<Binding["Type"], Binding["Encoded"], Binding["DecodingServices"], Binding["EncodingServices"]>;
|
|
178
|
+
readonly locale: Schema.String;
|
|
179
|
+
readonly eligible: Schema.Boolean;
|
|
180
|
+
readonly supersedes: Schema.brand<Schema.String, "effect-auth/ProofId">;
|
|
181
|
+
}>;
|
|
182
|
+
readonly success: Schema.Struct<{
|
|
183
|
+
readonly requestId: Schema.brand<Schema.String, "effect-auth/ProofRequestId">;
|
|
184
|
+
readonly reference: Schema.Struct<{
|
|
185
|
+
readonly proofId: Schema.brand<Schema.String, "effect-auth/ProofId">;
|
|
186
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
187
|
+
readonly keyId: Schema.String;
|
|
188
|
+
}>;
|
|
189
|
+
}>;
|
|
190
|
+
readonly error: Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>;
|
|
191
|
+
readonly access: "system";
|
|
192
|
+
readonly replay: "idempotent";
|
|
193
|
+
}>;
|
|
194
|
+
Attempt: AuthOperation<`${NamespaceOf<Id>}/attempt`, Schema.Struct<{
|
|
195
|
+
readonly reference: Schema.Struct<{
|
|
196
|
+
readonly proofId: Schema.brand<Schema.String, "effect-auth/ProofId">;
|
|
197
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
198
|
+
readonly keyId: Schema.String;
|
|
199
|
+
}>;
|
|
200
|
+
readonly binding: Schema.Codec<Binding["Type"], Binding["Encoded"], Binding["DecodingServices"], Binding["EncodingServices"]>;
|
|
201
|
+
readonly credential: Schema.RedactedFromValue<Schema.String>;
|
|
202
|
+
}>, Schema.TaggedStruct<"Accepted", {
|
|
203
|
+
readonly continuation: Schema.Struct<{
|
|
204
|
+
readonly continuationId: Schema.brand<Schema.String, "effect-auth/ProofContinuationId">;
|
|
205
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
206
|
+
readonly expiresAtMillis: Schema.Int;
|
|
207
|
+
}>;
|
|
208
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, never, {
|
|
209
|
+
readonly payload: Schema.Struct<{
|
|
210
|
+
readonly reference: Schema.Struct<{
|
|
211
|
+
readonly proofId: Schema.brand<Schema.String, "effect-auth/ProofId">;
|
|
212
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
213
|
+
readonly keyId: Schema.String;
|
|
214
|
+
}>;
|
|
215
|
+
readonly binding: Schema.Codec<Binding["Type"], Binding["Encoded"], Binding["DecodingServices"], Binding["EncodingServices"]>;
|
|
216
|
+
readonly credential: Schema.RedactedFromValue<Schema.String>;
|
|
217
|
+
}>;
|
|
218
|
+
readonly success: Schema.TaggedStruct<"Accepted", {
|
|
219
|
+
readonly continuation: Schema.Struct<{
|
|
220
|
+
readonly continuationId: Schema.brand<Schema.String, "effect-auth/ProofContinuationId">;
|
|
221
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
222
|
+
readonly expiresAtMillis: Schema.Int;
|
|
223
|
+
}>;
|
|
224
|
+
}>;
|
|
225
|
+
readonly error: Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>;
|
|
226
|
+
readonly access: "system";
|
|
227
|
+
readonly replay: "single-use";
|
|
228
|
+
readonly credentials: true;
|
|
229
|
+
}>;
|
|
230
|
+
Complete: AuthOperation<`${NamespaceOf<Id>}/complete`, Schema.Struct<{
|
|
231
|
+
readonly continuationId: Schema.brand<Schema.String, "effect-auth/ProofContinuationId">;
|
|
232
|
+
readonly binding: Schema.Codec<Binding["Type"], Binding["Encoded"], Binding["DecodingServices"], Binding["EncodingServices"]>;
|
|
233
|
+
readonly credential: Schema.RedactedFromValue<Schema.String>;
|
|
234
|
+
}>, Schema.Void, Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, never, {
|
|
235
|
+
readonly payload: Schema.Struct<{
|
|
236
|
+
readonly continuationId: Schema.brand<Schema.String, "effect-auth/ProofContinuationId">;
|
|
237
|
+
readonly binding: Schema.Codec<Binding["Type"], Binding["Encoded"], Binding["DecodingServices"], Binding["EncodingServices"]>;
|
|
238
|
+
readonly credential: Schema.RedactedFromValue<Schema.String>;
|
|
239
|
+
}>;
|
|
240
|
+
readonly success: Schema.Void;
|
|
241
|
+
readonly error: Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>;
|
|
242
|
+
readonly access: "system";
|
|
243
|
+
readonly replay: "single-use";
|
|
244
|
+
readonly credentials: true;
|
|
245
|
+
}>;
|
|
246
|
+
Cancel: AuthOperation<`${NamespaceOf<Id>}/cancel`, Schema.Struct<{
|
|
247
|
+
readonly binding: Schema.Codec<Binding["Type"], Binding["Encoded"], Binding["DecodingServices"], Binding["EncodingServices"]>;
|
|
248
|
+
}>, Schema.Void, Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, never, {
|
|
249
|
+
readonly payload: Schema.Struct<{
|
|
250
|
+
readonly binding: Schema.Codec<Binding["Type"], Binding["Encoded"], Binding["DecodingServices"], Binding["EncodingServices"]>;
|
|
251
|
+
}>;
|
|
252
|
+
readonly success: Schema.Void;
|
|
253
|
+
readonly error: Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>;
|
|
254
|
+
readonly access: "system";
|
|
255
|
+
readonly replay: "idempotent";
|
|
256
|
+
}>;
|
|
257
|
+
Cleanup: AuthOperation<`${NamespaceOf<Id>}/cleanup`, Schema.Struct<{
|
|
258
|
+
readonly limit: Schema.Int;
|
|
259
|
+
}>, Schema.Struct<{
|
|
260
|
+
readonly removed: Schema.Natural;
|
|
261
|
+
readonly hasMore: Schema.Boolean;
|
|
262
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, never, {
|
|
263
|
+
readonly payload: Schema.Struct<{
|
|
264
|
+
readonly limit: Schema.Int;
|
|
265
|
+
}>;
|
|
266
|
+
readonly success: Schema.Struct<{
|
|
267
|
+
readonly removed: Schema.Natural;
|
|
268
|
+
readonly hasMore: Schema.Boolean;
|
|
269
|
+
}>;
|
|
270
|
+
readonly error: Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>;
|
|
271
|
+
readonly access: "system";
|
|
272
|
+
readonly replay: "idempotent";
|
|
273
|
+
}>;
|
|
274
|
+
};
|
|
275
|
+
group: import("effect/unstable/rpc/RpcGroup").RpcGroup<import("effect/unstable/rpc/Rpc").Rpc<`${NamespaceOf<Id>}/attempt`, Schema.Struct<{
|
|
276
|
+
readonly reference: Schema.Struct<{
|
|
277
|
+
readonly proofId: Schema.brand<Schema.String, "effect-auth/ProofId">;
|
|
278
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
279
|
+
readonly keyId: Schema.String;
|
|
280
|
+
}>;
|
|
281
|
+
readonly binding: Schema.Codec<Binding["Type"], Binding["Encoded"], Binding["DecodingServices"], Binding["EncodingServices"]>;
|
|
282
|
+
readonly credential: Schema.RedactedFromValue<Schema.String>;
|
|
283
|
+
}>, Schema.TaggedStruct<"Accepted", {
|
|
284
|
+
readonly continuation: Schema.Struct<{
|
|
285
|
+
readonly continuationId: Schema.brand<Schema.String, "effect-auth/ProofContinuationId">;
|
|
286
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
287
|
+
readonly expiresAtMillis: Schema.Int;
|
|
288
|
+
}>;
|
|
289
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${NamespaceOf<Id>}/cancel`, Schema.Struct<{
|
|
290
|
+
readonly binding: Schema.Codec<Binding["Type"], Binding["Encoded"], Binding["DecodingServices"], Binding["EncodingServices"]>;
|
|
291
|
+
}>, Schema.Void, Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${NamespaceOf<Id>}/cleanup`, Schema.Struct<{
|
|
292
|
+
readonly limit: Schema.Int;
|
|
293
|
+
}>, Schema.Struct<{
|
|
294
|
+
readonly removed: Schema.Natural;
|
|
295
|
+
readonly hasMore: Schema.Boolean;
|
|
296
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${NamespaceOf<Id>}/complete`, Schema.Struct<{
|
|
297
|
+
readonly continuationId: Schema.brand<Schema.String, "effect-auth/ProofContinuationId">;
|
|
298
|
+
readonly binding: Schema.Codec<Binding["Type"], Binding["Encoded"], Binding["DecodingServices"], Binding["EncodingServices"]>;
|
|
299
|
+
readonly credential: Schema.RedactedFromValue<Schema.String>;
|
|
300
|
+
}>, Schema.Void, Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${NamespaceOf<Id>}/request`, Schema.Struct<{
|
|
301
|
+
readonly requestId: Schema.brand<Schema.String, "effect-auth/ProofRequestId">;
|
|
302
|
+
readonly binding: Schema.Codec<Binding["Type"], Binding["Encoded"], Binding["DecodingServices"], Binding["EncodingServices"]>;
|
|
303
|
+
readonly locale: Schema.String;
|
|
304
|
+
readonly eligible: Schema.Boolean;
|
|
305
|
+
}>, Schema.Struct<{
|
|
306
|
+
readonly requestId: Schema.brand<Schema.String, "effect-auth/ProofRequestId">;
|
|
307
|
+
readonly reference: Schema.Struct<{
|
|
308
|
+
readonly proofId: Schema.brand<Schema.String, "effect-auth/ProofId">;
|
|
309
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
310
|
+
readonly keyId: Schema.String;
|
|
311
|
+
}>;
|
|
312
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never> | import("effect/unstable/rpc/Rpc").Rpc<`${NamespaceOf<Id>}/resend`, Schema.Struct<{
|
|
313
|
+
readonly requestId: Schema.brand<Schema.String, "effect-auth/ProofRequestId">;
|
|
314
|
+
readonly binding: Schema.Codec<Binding["Type"], Binding["Encoded"], Binding["DecodingServices"], Binding["EncodingServices"]>;
|
|
315
|
+
readonly locale: Schema.String;
|
|
316
|
+
readonly eligible: Schema.Boolean;
|
|
317
|
+
readonly supersedes: Schema.brand<Schema.String, "effect-auth/ProofId">;
|
|
318
|
+
}>, Schema.Struct<{
|
|
319
|
+
readonly requestId: Schema.brand<Schema.String, "effect-auth/ProofRequestId">;
|
|
320
|
+
readonly reference: Schema.Struct<{
|
|
321
|
+
readonly proofId: Schema.brand<Schema.String, "effect-auth/ProofId">;
|
|
322
|
+
readonly purpose: Schema.brand<Schema.String, "effect-auth/ProofPurpose">;
|
|
323
|
+
readonly keyId: Schema.String;
|
|
324
|
+
}>;
|
|
325
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>, typeof HookDenied]>, Schema.Union<readonly [typeof InvalidOperationInput, typeof AuthenticationRequired, typeof OperationForbidden, typeof AssuranceRequired, typeof OperationPrivateOutputUnsupported]>]>, never, never>>;
|
|
326
|
+
}>;
|
|
327
|
+
declare function make<Binding extends Schema.Codec<ProofBinding, unknown, unknown, unknown>, const Id extends string>(options: Options<Binding> & {
|
|
328
|
+
readonly namespace: Id;
|
|
329
|
+
}): ReturnType<typeof define<Binding, Id>>;
|
|
330
|
+
declare function make<Binding extends Schema.Codec<ProofBinding, unknown, unknown, unknown>, const Id extends string | undefined = undefined>(options: Options<Binding> & {
|
|
331
|
+
readonly namespace?: Id;
|
|
332
|
+
}): ReturnType<typeof define<Binding, Id | undefined>>;
|
|
333
|
+
//#endregion
|
|
334
|
+
export { make };
|
|
335
|
+
//# sourceMappingURL=definition.d.mts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { makeProofModule } from "./module.mjs";
|
|
2
|
+
//#region src/proofs/definition.ts
|
|
3
|
+
const define = (namespace, options) => makeProofModule(namespace ?? "effect-auth/proofs", options);
|
|
4
|
+
function make(options) {
|
|
5
|
+
return define(options.namespace, options);
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { make };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=definition.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definition.mjs","names":[],"sources":["../../src/proofs/definition.ts"],"sourcesContent":["import type { Schema } from \"effect\";\n\nimport type { ProofBinding } from \"./models\";\nimport { makeProofModule } from \"./module\";\n\ntype Options<Binding extends Schema.Codec<ProofBinding, unknown, unknown, unknown>> = Parameters<\n typeof makeProofModule<string, Binding>\n>[1];\n\ntype NamespaceOf<Id> = Id extends string ? Id : \"effect-auth/proofs\";\n\nconst define = <\n Binding extends Schema.Codec<ProofBinding, unknown, unknown, unknown>,\n const Id extends string | undefined,\n>(\n namespace: Id,\n options: Options<Binding>,\n) =>\n // The required namespace argument preserves whether a default can be selected.\n makeProofModule((namespace ?? \"effect-auth/proofs\") as NamespaceOf<Id>, options);\n\nexport function make<\n Binding extends Schema.Codec<ProofBinding, unknown, unknown, unknown>,\n const Id extends string,\n>(options: Options<Binding> & { readonly namespace: Id }): ReturnType<typeof define<Binding, Id>>;\n\nexport function make<\n Binding extends Schema.Codec<ProofBinding, unknown, unknown, unknown>,\n const Id extends string | undefined = undefined,\n>(\n options: Options<Binding> & { readonly namespace?: Id },\n): ReturnType<typeof define<Binding, Id | undefined>>;\n\nexport function make<\n Binding extends Schema.Codec<ProofBinding, unknown, unknown, unknown>,\n const Id extends string | undefined,\n>(options: Options<Binding> & { readonly namespace?: Id }) {\n return define(options.namespace, options);\n}\n"],"mappings":";;AAWA,MAAM,UAIJ,WACA,YAGA,gBAAiB,aAAa,sBAA0C,OAAO;AAcjF,SAAgB,KAGd,SAAyD;CACzD,OAAO,OAAO,QAAQ,WAAW,OAAO;AAC1C"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { LoginIdentifier } from "../identity/models.mjs";
|
|
2
|
+
import { ProofDeliveryId, ProofDeliveryOutcome, ProofPurpose, ProofReference } from "./models.mjs";
|
|
3
|
+
import "./errors.mjs";
|
|
4
|
+
import { Context, Effect, Layer, Redacted, Schema } from "effect";
|
|
5
|
+
//#region src/proofs/delivery.d.ts
|
|
6
|
+
interface ProofDeliveryMessage {
|
|
7
|
+
readonly deliveryId: ProofDeliveryId;
|
|
8
|
+
readonly purpose: ProofPurpose;
|
|
9
|
+
readonly reference: ProofReference;
|
|
10
|
+
readonly recipient: LoginIdentifier;
|
|
11
|
+
readonly secret: Redacted.Redacted<string>;
|
|
12
|
+
readonly format: "token" | "numeric-code";
|
|
13
|
+
readonly expiresAtMillis: number;
|
|
14
|
+
readonly template: string;
|
|
15
|
+
readonly locale: string;
|
|
16
|
+
}
|
|
17
|
+
declare const ProofVendorPolicy: Schema.Struct<{
|
|
18
|
+
readonly vendorId: Schema.String;
|
|
19
|
+
/** A consumer asserts the vendor deduplicates identical delivery IDs for this horizon. */
|
|
20
|
+
readonly idempotencyMillis: Schema.Natural;
|
|
21
|
+
}>;
|
|
22
|
+
type ProofVendorPolicy = typeof ProofVendorPolicy.Type;
|
|
23
|
+
interface ProofDelivery {
|
|
24
|
+
readonly vendor: ProofVendorPolicy;
|
|
25
|
+
/** Acceptance by vendor is not delivery to the recipient. No diagnostic/body escapes this boundary. */
|
|
26
|
+
readonly send: (message: ProofDeliveryMessage) => Effect.Effect<ProofDeliveryOutcome>;
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { ProofDelivery, ProofDeliveryMessage, ProofVendorPolicy };
|
|
30
|
+
//# sourceMappingURL=delivery.d.mts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { reportAuthFailure } from "../internal/diagnostics.mjs";
|
|
2
|
+
import { ProofConfigurationError } from "./errors.mjs";
|
|
3
|
+
import { ProofDeliveryOutcome } from "./models.mjs";
|
|
4
|
+
import { Effect, Layer, Schema } from "effect";
|
|
5
|
+
//#region src/proofs/delivery.ts
|
|
6
|
+
const ProofVendorPolicy = Schema.Struct({
|
|
7
|
+
vendorId: Schema.String.check(Schema.isMinLength(1), Schema.isMaxLength(128)),
|
|
8
|
+
/** A consumer asserts the vendor deduplicates identical delivery IDs for this horizon. */
|
|
9
|
+
idempotencyMillis: Schema.Natural
|
|
10
|
+
});
|
|
11
|
+
const proofDeliveryLayer = (service, vendor, send) => {
|
|
12
|
+
const configuration = { ...vendor };
|
|
13
|
+
const callback = send;
|
|
14
|
+
return Layer.effect(service, Effect.gen(function* () {
|
|
15
|
+
const checked = Object.freeze(yield* Schema.decodeEffect(ProofVendorPolicy)(configuration).pipe(Effect.mapError(() => ProofConfigurationError.make({ reason: "delivery" }))));
|
|
16
|
+
const services = yield* Effect.context();
|
|
17
|
+
return {
|
|
18
|
+
vendor: checked,
|
|
19
|
+
send: (message) => Effect.suspend(() => callback(message)).pipe(Effect.provide(services), Effect.flatMap(Schema.decodeEffect(ProofDeliveryOutcome)), Effect.catchCause((cause) => reportAuthFailure("proof-delivery", cause).pipe(Effect.as({ _tag: "Ambiguous" }))))
|
|
20
|
+
};
|
|
21
|
+
}));
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
24
|
+
export { ProofVendorPolicy, proofDeliveryLayer };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=delivery.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delivery.mjs","names":[],"sources":["../../src/proofs/delivery.ts"],"sourcesContent":["import { Effect, Layer, type Context, type Redacted, Schema } from \"effect\";\n\nimport type { LoginIdentifier } from \"../identity/models\";\nimport { reportAuthFailure } from \"../internal/diagnostics\";\nimport { ProofConfigurationError } from \"./errors\";\nimport {\n ProofDeliveryOutcome,\n type ProofDeliveryId,\n type ProofPurpose,\n type ProofReference,\n} from \"./models\";\n\nexport interface ProofDeliveryMessage {\n readonly deliveryId: ProofDeliveryId;\n readonly purpose: ProofPurpose;\n readonly reference: ProofReference;\n readonly recipient: LoginIdentifier;\n readonly secret: Redacted.Redacted<string>;\n readonly format: \"token\" | \"numeric-code\";\n readonly expiresAtMillis: number;\n readonly template: string;\n readonly locale: string;\n}\n\nexport const ProofVendorPolicy = Schema.Struct({\n vendorId: Schema.String.check(Schema.isMinLength(1), Schema.isMaxLength(128)),\n /** A consumer asserts the vendor deduplicates identical delivery IDs for this horizon. */\n idempotencyMillis: Schema.Natural,\n});\n\nexport type ProofVendorPolicy = typeof ProofVendorPolicy.Type;\n\nexport interface ProofDelivery {\n readonly vendor: ProofVendorPolicy;\n /** Acceptance by vendor is not delivery to the recipient. No diagnostic/body escapes this boundary. */\n readonly send: (message: ProofDeliveryMessage) => Effect.Effect<ProofDeliveryOutcome>;\n}\n\nexport const proofDeliveryLayer = <Id, E, R>(\n service: Context.Key<Id, ProofDelivery>,\n vendor: ProofVendorPolicy,\n send: (message: ProofDeliveryMessage) => Effect.Effect<ProofDeliveryOutcome, E, R>,\n) => {\n const configuration = { ...vendor };\n const callback = send;\n\n return Layer.effect(\n service,\n Effect.gen(function* () {\n const checked = Object.freeze(\n yield* Schema.decodeEffect(ProofVendorPolicy)(configuration).pipe(\n Effect.mapError(() => ProofConfigurationError.make({ reason: \"delivery\" })),\n ),\n );\n\n const services = yield* Effect.context<R>();\n\n return {\n vendor: checked,\n send: (message: ProofDeliveryMessage) =>\n Effect.suspend(() => callback(message)).pipe(\n Effect.provide(services),\n Effect.flatMap(Schema.decodeEffect(ProofDeliveryOutcome)),\n Effect.catchCause((cause) =>\n reportAuthFailure(\"proof-delivery\", cause).pipe(\n Effect.as({ _tag: \"Ambiguous\" as const }),\n ),\n ),\n ),\n };\n }),\n );\n};\n"],"mappings":";;;;;AAwBA,MAAa,oBAAoB,OAAO,OAAO;CAC7C,UAAU,OAAO,OAAO,MAAM,OAAO,YAAY,CAAC,GAAG,OAAO,YAAY,GAAG,CAAC;;CAE5E,mBAAmB,OAAO;AAC5B,CAAC;AAUD,MAAa,sBACX,SACA,QACA,SACG;CACH,MAAM,gBAAgB,EAAE,GAAG,OAAO;CAClC,MAAM,WAAW;CAEjB,OAAO,MAAM,OACX,SACA,OAAO,IAAI,aAAa;EACtB,MAAM,UAAU,OAAO,OACrB,OAAO,OAAO,aAAa,iBAAiB,CAAC,CAAC,aAAa,CAAC,CAAC,KAC3D,OAAO,eAAe,wBAAwB,KAAK,EAAE,QAAQ,WAAW,CAAC,CAAC,CAC5E,CACF;EAEA,MAAM,WAAW,OAAO,OAAO,QAAW;EAE1C,OAAO;GACL,QAAQ;GACR,OAAO,YACL,OAAO,cAAc,SAAS,OAAO,CAAC,CAAC,CAAC,KACtC,OAAO,QAAQ,QAAQ,GACvB,OAAO,QAAQ,OAAO,aAAa,oBAAoB,CAAC,GACxD,OAAO,YAAY,UACjB,kBAAkB,kBAAkB,KAAK,CAAC,CAAC,KACzC,OAAO,GAAG,EAAE,MAAM,YAAqB,CAAC,CAC1C,CACF,CACF;EACJ;CACF,CAAC,CACH;AACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PreparedCommit } from "../hooks/commit.mjs";
|
|
2
|
+
import { ProofDeliveryStatus, ProofRequestReceipt } from "./models.mjs";
|
|
3
|
+
import { ProofCapabilityUnsupported, ProofRequestConflict, ProofUnavailable } from "./errors.mjs";
|
|
4
|
+
import "./delivery.mjs";
|
|
5
|
+
import "./policy.mjs";
|
|
6
|
+
import "./ProofPersistence.mjs";
|
|
7
|
+
import { Context, Effect } from "effect";
|
|
8
|
+
//#region src/proofs/dispatch.d.ts
|
|
9
|
+
/** Private process-local continuation. Its closure is neither an outbox nor an RPC value. */
|
|
10
|
+
interface PreparedProofDispatch<R = never> {
|
|
11
|
+
readonly receipt: ProofRequestReceipt;
|
|
12
|
+
readonly dispatch: Effect.Effect<ProofDeliveryStatus, ProofCapabilityUnsupported, R>;
|
|
13
|
+
}
|
|
14
|
+
interface ProofIssuePlan {
|
|
15
|
+
readonly commit: Effect.Effect<PreparedCommit<PreparedProofDispatch>, ProofUnavailable | ProofRequestConflict>;
|
|
16
|
+
}
|
|
17
|
+
declare const readProofCommit: <A>(receipt: PreparedCommit<A>) => Effect.Effect<A, ProofUnavailable, never>;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { PreparedProofDispatch, ProofIssuePlan, readProofCommit };
|
|
20
|
+
//# sourceMappingURL=dispatch.d.mts.map
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { LoginIdentifier } from "../identity/models.mjs";
|
|
2
|
+
import { hasCommitScope } from "../hooks/commit.mjs";
|
|
3
|
+
import { ProofCapabilityUnsupported, ProofUnavailable } from "./errors.mjs";
|
|
4
|
+
import { ProofPersistence } from "./ProofPersistence.mjs";
|
|
5
|
+
import { DateTime, Effect } from "effect";
|
|
6
|
+
//#region src/proofs/dispatch.ts
|
|
7
|
+
const readProofCommit = (receipt) => receipt.read.pipe(Effect.mapError(() => ProofUnavailable.make({})));
|
|
8
|
+
/** Call only from a prepared receipt, after its actual outer owner commits. */
|
|
9
|
+
const makeProofDispatch = (deliveryKey, record, message, policy) => {
|
|
10
|
+
message = Object.freeze({
|
|
11
|
+
...message,
|
|
12
|
+
recipient: Object.freeze(LoginIdentifier.make(message.recipient)),
|
|
13
|
+
reference: Object.freeze({ ...message.reference })
|
|
14
|
+
});
|
|
15
|
+
return Object.freeze({
|
|
16
|
+
receipt: {
|
|
17
|
+
requestId: record.requestId,
|
|
18
|
+
reference: message.reference
|
|
19
|
+
},
|
|
20
|
+
dispatch: Effect.uninterruptibleMask((restore) => Effect.gen(function* () {
|
|
21
|
+
if (yield* hasCommitScope) return yield* ProofCapabilityUnsupported.make({});
|
|
22
|
+
const store = yield* ProofPersistence;
|
|
23
|
+
const delivery = yield* deliveryKey;
|
|
24
|
+
const claimResult = yield* store.claimDelivery({
|
|
25
|
+
moduleId: record.moduleId,
|
|
26
|
+
proofId: record.proofId,
|
|
27
|
+
version: record.version,
|
|
28
|
+
deliveryId: record.deliveryId,
|
|
29
|
+
nowMillis: DateTime.toEpochMillis(yield* DateTime.now),
|
|
30
|
+
policy,
|
|
31
|
+
allowAmbiguousRetry: policy.maximumDeliveryAttempts > 1 && delivery.vendor.idempotencyMillis >= policy.lifetimeMillis
|
|
32
|
+
}, (decision, journal) => journal.prepare(decision)).pipe(Effect.flatMap(readProofCommit), Effect.result);
|
|
33
|
+
if (claimResult._tag === "Failure") return "unavailable";
|
|
34
|
+
if (claimResult.success._tag === "Declined") return "not-dispatched";
|
|
35
|
+
const claimed = claimResult.success;
|
|
36
|
+
const sent = yield* Effect.exit(restore(Effect.suspend(() => delivery.send(message))));
|
|
37
|
+
const outcome = sent._tag === "Success" ? sent.value : { _tag: "Ambiguous" };
|
|
38
|
+
if ((yield* store.settleDelivery({
|
|
39
|
+
moduleId: record.moduleId,
|
|
40
|
+
proofId: record.proofId,
|
|
41
|
+
version: record.version,
|
|
42
|
+
deliveryId: record.deliveryId,
|
|
43
|
+
claimVersion: claimed.claimVersion,
|
|
44
|
+
outcome,
|
|
45
|
+
nowMillis: DateTime.toEpochMillis(yield* DateTime.now)
|
|
46
|
+
}, (_, journal) => journal.prepare(void 0)).pipe(Effect.flatMap(readProofCommit), Effect.result))._tag === "Failure") return "ambiguous";
|
|
47
|
+
return outcome._tag === "Accepted" ? "accepted" : outcome._tag === "DefiniteFailure" ? "failed" : "ambiguous";
|
|
48
|
+
}))
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
//#endregion
|
|
52
|
+
export { makeProofDispatch, readProofCommit };
|
|
53
|
+
|
|
54
|
+
//# sourceMappingURL=dispatch.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dispatch.mjs","names":[],"sources":["../../src/proofs/dispatch.ts"],"sourcesContent":["import { type Context, DateTime, Effect } from \"effect\";\n\nimport { hasCommitScope, type PreparedCommit } from \"../hooks/commit\";\nimport { LoginIdentifier } from \"../identity/models\";\nimport type { ProofDelivery, ProofDeliveryMessage } from \"./delivery\";\nimport { ProofCapabilityUnsupported, ProofUnavailable } from \"./errors\";\nimport type { ProofDeliveryOutcome, ProofDeliveryStatus, ProofRequestReceipt } from \"./models\";\nimport type { ProofPolicy } from \"./policy\";\nimport { ProofPersistence, type ProofRecord } from \"./ProofPersistence\";\n\n/** Private process-local continuation. Its closure is neither an outbox nor an RPC value. */\nexport interface PreparedProofDispatch<R = never> {\n readonly receipt: ProofRequestReceipt;\n readonly dispatch: Effect.Effect<ProofDeliveryStatus, ProofCapabilityUnsupported, R>;\n}\n\nexport interface ProofIssuePlan {\n readonly commit: Effect.Effect<\n PreparedCommit<PreparedProofDispatch>,\n ProofUnavailable | import(\"./errors\").ProofRequestConflict\n >;\n}\n\nexport const readProofCommit = <A>(receipt: PreparedCommit<A>) =>\n receipt.read.pipe(Effect.mapError(() => ProofUnavailable.make({})));\n\n/** Call only from a prepared receipt, after its actual outer owner commits. */\nexport const makeProofDispatch = <DeliveryId>(\n deliveryKey: Context.Key<DeliveryId, ProofDelivery>,\n record: ProofRecord,\n message: ProofDeliveryMessage,\n policy: ProofPolicy,\n): PreparedProofDispatch<ProofPersistence | DeliveryId> => {\n message = Object.freeze({\n ...message,\n recipient: Object.freeze(LoginIdentifier.make(message.recipient)),\n reference: Object.freeze({ ...message.reference }),\n });\n\n return Object.freeze({\n receipt: { requestId: record.requestId, reference: message.reference },\n dispatch: Effect.uninterruptibleMask((restore) =>\n Effect.gen(function* () {\n if (yield* hasCommitScope) return yield* ProofCapabilityUnsupported.make({});\n const store = yield* ProofPersistence;\n const delivery = yield* deliveryKey;\n\n const claimResult = yield* store\n .claimDelivery(\n {\n moduleId: record.moduleId,\n proofId: record.proofId,\n version: record.version,\n deliveryId: record.deliveryId,\n nowMillis: DateTime.toEpochMillis(yield* DateTime.now),\n policy,\n allowAmbiguousRetry:\n policy.maximumDeliveryAttempts > 1 &&\n delivery.vendor.idempotencyMillis >= policy.lifetimeMillis,\n },\n (decision, journal) => journal.prepare(decision),\n )\n .pipe(Effect.flatMap(readProofCommit), Effect.result);\n\n if (claimResult._tag === \"Failure\") return \"unavailable\" as const;\n if (claimResult.success._tag === \"Declined\") return \"not-dispatched\" as const;\n const claimed = claimResult.success;\n // After a durable claim, interruption/defect is potentially delivered. Always settle.\n const sent = yield* Effect.exit(restore(Effect.suspend(() => delivery.send(message))));\n\n const outcome: ProofDeliveryOutcome =\n sent._tag === \"Success\" ? sent.value : { _tag: \"Ambiguous\" };\n\n const settled = yield* store\n .settleDelivery(\n {\n moduleId: record.moduleId,\n proofId: record.proofId,\n version: record.version,\n deliveryId: record.deliveryId,\n claimVersion: claimed.claimVersion,\n outcome,\n nowMillis: DateTime.toEpochMillis(yield* DateTime.now),\n },\n (_, journal) => journal.prepare(undefined),\n )\n .pipe(Effect.flatMap(readProofCommit), Effect.result);\n\n if (settled._tag === \"Failure\") return \"ambiguous\" as const;\n\n return outcome._tag === \"Accepted\"\n ? (\"accepted\" as const)\n : outcome._tag === \"DefiniteFailure\"\n ? (\"failed\" as const)\n : (\"ambiguous\" as const);\n }),\n ),\n });\n};\n"],"mappings":";;;;;;AAuBA,MAAa,mBAAsB,YACjC,QAAQ,KAAK,KAAK,OAAO,eAAe,iBAAiB,KAAK,CAAC,CAAC,CAAC,CAAC;;AAGpE,MAAa,qBACX,aACA,QACA,SACA,WACyD;CACzD,UAAU,OAAO,OAAO;EACtB,GAAG;EACH,WAAW,OAAO,OAAO,gBAAgB,KAAK,QAAQ,SAAS,CAAC;EAChE,WAAW,OAAO,OAAO,EAAE,GAAG,QAAQ,UAAU,CAAC;CACnD,CAAC;CAED,OAAO,OAAO,OAAO;EACnB,SAAS;GAAE,WAAW,OAAO;GAAW,WAAW,QAAQ;EAAU;EACrE,UAAU,OAAO,qBAAqB,YACpC,OAAO,IAAI,aAAa;GACtB,IAAI,OAAO,gBAAgB,OAAO,OAAO,2BAA2B,KAAK,CAAC,CAAC;GAC3E,MAAM,QAAQ,OAAO;GACrB,MAAM,WAAW,OAAO;GAExB,MAAM,cAAc,OAAO,MACxB,cACC;IACE,UAAU,OAAO;IACjB,SAAS,OAAO;IAChB,SAAS,OAAO;IAChB,YAAY,OAAO;IACnB,WAAW,SAAS,cAAc,OAAO,SAAS,GAAG;IACrD;IACA,qBACE,OAAO,0BAA0B,KACjC,SAAS,OAAO,qBAAqB,OAAO;GAChD,IACC,UAAU,YAAY,QAAQ,QAAQ,QAAQ,CACjD,CAAC,CACA,KAAK,OAAO,QAAQ,eAAe,GAAG,OAAO,MAAM;GAEtD,IAAI,YAAY,SAAS,WAAW,OAAO;GAC3C,IAAI,YAAY,QAAQ,SAAS,YAAY,OAAO;GACpD,MAAM,UAAU,YAAY;GAE5B,MAAM,OAAO,OAAO,OAAO,KAAK,QAAQ,OAAO,cAAc,SAAS,KAAK,OAAO,CAAC,CAAC,CAAC;GAErF,MAAM,UACJ,KAAK,SAAS,YAAY,KAAK,QAAQ,EAAE,MAAM,YAAY;GAiB7D,KAAI,OAfmB,MACpB,eACC;IACE,UAAU,OAAO;IACjB,SAAS,OAAO;IAChB,SAAS,OAAO;IAChB,YAAY,OAAO;IACnB,cAAc,QAAQ;IACtB;IACA,WAAW,SAAS,cAAc,OAAO,SAAS,GAAG;GACvD,IACC,GAAG,YAAY,QAAQ,QAAQ,KAAA,CAAS,CAC3C,CAAC,CACA,KAAK,OAAO,QAAQ,eAAe,GAAG,OAAO,MAAM,EAAA,CAE1C,SAAS,WAAW,OAAO;GAEvC,OAAO,QAAQ,SAAS,aACnB,aACD,QAAQ,SAAS,oBACd,WACA;EACT,CAAC,CACH;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
//#region src/proofs/errors.d.ts
|
|
3
|
+
declare const ProofInvalid_base: Schema.Class<ProofInvalid, Schema.TaggedStruct<"ProofInvalid", {}>, import("effect/Cause").YieldableError>;
|
|
4
|
+
declare class ProofInvalid extends ProofInvalid_base {}
|
|
5
|
+
declare const ProofUnavailable_base: Schema.Class<ProofUnavailable, Schema.TaggedStruct<"ProofUnavailable", {}>, import("effect/Cause").YieldableError>;
|
|
6
|
+
declare class ProofUnavailable extends ProofUnavailable_base {}
|
|
7
|
+
declare const ProofConfigurationError_base: Schema.Class<ProofConfigurationError, Schema.TaggedStruct<"ProofConfigurationError", {
|
|
8
|
+
readonly reason: Schema.Literals<readonly ["policy", "keyring", "binding", "delivery", "unsupported-transaction"]>;
|
|
9
|
+
}>, import("effect/Cause").YieldableError>;
|
|
10
|
+
declare class ProofConfigurationError extends ProofConfigurationError_base {}
|
|
11
|
+
declare const ProofRequestConflict_base: Schema.Class<ProofRequestConflict, Schema.TaggedStruct<"ProofRequestConflict", {}>, import("effect/Cause").YieldableError>;
|
|
12
|
+
declare class ProofRequestConflict extends ProofRequestConflict_base {}
|
|
13
|
+
declare const ProofCapabilityUnsupported_base: Schema.Class<ProofCapabilityUnsupported, Schema.TaggedStruct<"ProofCapabilityUnsupported", {}>, import("effect/Cause").YieldableError>;
|
|
14
|
+
declare class ProofCapabilityUnsupported extends ProofCapabilityUnsupported_base {}
|
|
15
|
+
declare const ProofIngressDenied_base: Schema.Class<ProofIngressDenied, Schema.TaggedStruct<"ProofIngressDenied", {}>, import("effect/Cause").YieldableError>;
|
|
16
|
+
declare class ProofIngressDenied extends ProofIngressDenied_base {}
|
|
17
|
+
declare const ProofError: Schema.Union<readonly [typeof ProofInvalid, typeof ProofUnavailable, typeof ProofRequestConflict, typeof ProofCapabilityUnsupported, typeof ProofIngressDenied]>;
|
|
18
|
+
type ProofError = typeof ProofError.Type;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { ProofCapabilityUnsupported, ProofConfigurationError, ProofError, ProofIngressDenied, ProofInvalid, ProofRequestConflict, ProofUnavailable };
|
|
21
|
+
//# sourceMappingURL=errors.d.mts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
//#region src/proofs/errors.ts
|
|
3
|
+
var ProofInvalid = class extends Schema.TaggedError()("ProofInvalid", {}) {};
|
|
4
|
+
var ProofUnavailable = class extends Schema.TaggedError()("ProofUnavailable", {}) {};
|
|
5
|
+
var ProofConfigurationError = class extends Schema.TaggedError()("ProofConfigurationError", { reason: Schema.Literals([
|
|
6
|
+
"policy",
|
|
7
|
+
"keyring",
|
|
8
|
+
"binding",
|
|
9
|
+
"delivery",
|
|
10
|
+
"unsupported-transaction"
|
|
11
|
+
]) }) {};
|
|
12
|
+
var ProofRequestConflict = class extends Schema.TaggedError()("ProofRequestConflict", {}) {};
|
|
13
|
+
var ProofCapabilityUnsupported = class extends Schema.TaggedError()("ProofCapabilityUnsupported", {}) {};
|
|
14
|
+
var ProofIngressDenied = class extends Schema.TaggedError()("ProofIngressDenied", {}) {};
|
|
15
|
+
const ProofError = Schema.Union([
|
|
16
|
+
ProofInvalid,
|
|
17
|
+
ProofUnavailable,
|
|
18
|
+
ProofRequestConflict,
|
|
19
|
+
ProofCapabilityUnsupported,
|
|
20
|
+
ProofIngressDenied
|
|
21
|
+
]);
|
|
22
|
+
//#endregion
|
|
23
|
+
export { ProofCapabilityUnsupported, ProofConfigurationError, ProofError, ProofIngressDenied, ProofInvalid, ProofRequestConflict, ProofUnavailable };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=errors.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.mjs","names":[],"sources":["../../src/proofs/errors.ts"],"sourcesContent":["import { Schema } from \"effect\";\n\nexport class ProofInvalid extends Schema.TaggedError<ProofInvalid>()(\"ProofInvalid\", {}) {}\n\nexport class ProofUnavailable extends Schema.TaggedError<ProofUnavailable>()(\n \"ProofUnavailable\",\n {},\n) {}\n\nexport class ProofConfigurationError extends Schema.TaggedError<ProofConfigurationError>()(\n \"ProofConfigurationError\",\n {\n reason: Schema.Literals([\n \"policy\",\n \"keyring\",\n \"binding\",\n \"delivery\",\n \"unsupported-transaction\",\n ]),\n },\n) {}\n\nexport class ProofRequestConflict extends Schema.TaggedError<ProofRequestConflict>()(\n \"ProofRequestConflict\",\n {},\n) {}\n\nexport class ProofCapabilityUnsupported extends Schema.TaggedError<ProofCapabilityUnsupported>()(\n \"ProofCapabilityUnsupported\",\n {},\n) {}\n\nexport class ProofIngressDenied extends Schema.TaggedError<ProofIngressDenied>()(\n \"ProofIngressDenied\",\n {},\n) {}\n\nexport const ProofError = Schema.Union([\n ProofInvalid,\n ProofUnavailable,\n ProofRequestConflict,\n ProofCapabilityUnsupported,\n ProofIngressDenied,\n]);\n\nexport type ProofError = typeof ProofError.Type;\n"],"mappings":";;AAEA,IAAa,eAAb,cAAkC,OAAO,YAA0B,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;AAE1F,IAAa,mBAAb,cAAsC,OAAO,YAA8B,CAAC,CAC1E,oBACA,CAAC,CACH,CAAC,CAAC,CAAC;AAEH,IAAa,0BAAb,cAA6C,OAAO,YAAqC,CAAC,CACxF,2BACA,EACE,QAAQ,OAAO,SAAS;CACtB;CACA;CACA;CACA;CACA;AACF,CAAC,EACH,CACF,CAAC,CAAC,CAAC;AAEH,IAAa,uBAAb,cAA0C,OAAO,YAAkC,CAAC,CAClF,wBACA,CAAC,CACH,CAAC,CAAC,CAAC;AAEH,IAAa,6BAAb,cAAgD,OAAO,YAAwC,CAAC,CAC9F,8BACA,CAAC,CACH,CAAC,CAAC,CAAC;AAEH,IAAa,qBAAb,cAAwC,OAAO,YAAgC,CAAC,CAC9E,sBACA,CAAC,CACH,CAAC,CAAC,CAAC;AAEH,MAAa,aAAa,OAAO,MAAM;CACrC;CACA;CACA;CACA;CACA;AACF,CAAC"}
|