@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,2023 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
//#region src/oauth/connectedModels.d.ts
|
|
3
|
+
declare const OAuthGrantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
4
|
+
declare const OAuthPermissionProfileKey: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
5
|
+
/** Durable authority-issued total order, comparable with cohort cutoffs. Never caller time. */
|
|
6
|
+
declare const OAuthConnectedOrder: Schema.String;
|
|
7
|
+
declare const OAuthConnectedScopes: Schema.$Array<Schema.String>;
|
|
8
|
+
declare const OAuthConnectedResources: Schema.$Array<Schema.NonEmptyString>;
|
|
9
|
+
declare const OAuthConnectedProfile: Schema.Struct<{
|
|
10
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
11
|
+
readonly generation: Schema.Int;
|
|
12
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
13
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
14
|
+
readonly clientRegistrationId: Schema.String;
|
|
15
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
16
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
17
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
18
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
19
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
20
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
21
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
22
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
23
|
+
}>;
|
|
24
|
+
type OAuthConnectedProfile = typeof OAuthConnectedProfile.Type;
|
|
25
|
+
declare const OAuthConnectedPolicy: Schema.Struct<{
|
|
26
|
+
readonly generation: Schema.Int;
|
|
27
|
+
readonly lifetimeMillis: Schema.Int;
|
|
28
|
+
readonly claimLifetimeMillis: Schema.Int;
|
|
29
|
+
readonly settlementTimeoutMillis: Schema.Int;
|
|
30
|
+
readonly retentionMillis: Schema.Int;
|
|
31
|
+
readonly maximumEvidenceAgeMillis: Schema.Int;
|
|
32
|
+
readonly refreshClaimLifetimeMillis: Schema.Int;
|
|
33
|
+
readonly useAdmissionLifetimeMillis: Schema.Int;
|
|
34
|
+
readonly profiles: Schema.NonEmptyArray<Schema.Struct<{
|
|
35
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
36
|
+
readonly generation: Schema.Int;
|
|
37
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
38
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
39
|
+
readonly clientRegistrationId: Schema.String;
|
|
40
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
41
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
42
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
43
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
44
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
45
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
46
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
47
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
48
|
+
}>>;
|
|
49
|
+
}>;
|
|
50
|
+
type OAuthConnectedPolicy = typeof OAuthConnectedPolicy.Type;
|
|
51
|
+
declare const OAuthConnectedBusy_base: Schema.Class<OAuthConnectedBusy, Schema.TaggedStruct<"OAuthConnectedBusy", {}>, import("effect/Cause").YieldableError>;
|
|
52
|
+
declare class OAuthConnectedBusy extends OAuthConnectedBusy_base {}
|
|
53
|
+
declare const OAuthConnectedReauthorizationRequired_base: Schema.Class<OAuthConnectedReauthorizationRequired, Schema.TaggedStruct<"OAuthConnectedReauthorizationRequired", {}>, import("effect/Cause").YieldableError>;
|
|
54
|
+
declare class OAuthConnectedReauthorizationRequired extends OAuthConnectedReauthorizationRequired_base {}
|
|
55
|
+
declare const OAuthConnectedActionRequired_base: Schema.Class<OAuthConnectedActionRequired, Schema.TaggedStruct<"OAuthConnectedActionRequired", {}>, import("effect/Cause").YieldableError>;
|
|
56
|
+
declare class OAuthConnectedActionRequired extends OAuthConnectedActionRequired_base {}
|
|
57
|
+
declare const OAuthConnectedConfiguration: Schema.Struct<{
|
|
58
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
59
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
60
|
+
readonly configurationGeneration: Schema.Int;
|
|
61
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
62
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
63
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
64
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
65
|
+
readonly profile: Schema.Struct<{
|
|
66
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
67
|
+
readonly generation: Schema.Int;
|
|
68
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
69
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
70
|
+
readonly clientRegistrationId: Schema.String;
|
|
71
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
72
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
73
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
74
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
75
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
76
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
77
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
78
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
79
|
+
}>;
|
|
80
|
+
}>;
|
|
81
|
+
type OAuthConnectedConfiguration = typeof OAuthConnectedConfiguration.Type;
|
|
82
|
+
declare const OAuthConnectedIntent: Schema.Union<readonly [Schema.TaggedStruct<"Connect", {
|
|
83
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
84
|
+
readonly profileKey: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
85
|
+
}>, Schema.TaggedStruct<"Reconnect", {
|
|
86
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
87
|
+
readonly profileKey: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
88
|
+
}>]>;
|
|
89
|
+
declare const OAuthConnectedBegin: Schema.Struct<{
|
|
90
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
91
|
+
readonly commandId: Schema.brand<Schema.String, "effect-auth/OAuthCommandId">;
|
|
92
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
93
|
+
readonly intent: Schema.Union<readonly [Schema.TaggedStruct<"Connect", {
|
|
94
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
95
|
+
readonly profileKey: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
96
|
+
}>, Schema.TaggedStruct<"Reconnect", {
|
|
97
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
98
|
+
readonly profileKey: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
99
|
+
}>]>;
|
|
100
|
+
readonly returnTarget: Schema.String;
|
|
101
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.NonEmptyString>>;
|
|
102
|
+
}>;
|
|
103
|
+
declare const OAuthConnectedComplete: Schema.Struct<{
|
|
104
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
105
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
106
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
107
|
+
readonly requestBinding: Schema.RedactedFromValue<Schema.String>;
|
|
108
|
+
readonly response: Schema.Union<readonly [Schema.TaggedStruct<"Code", {
|
|
109
|
+
readonly state: Schema.RedactedFromValue<Schema.String>;
|
|
110
|
+
readonly issuer: Schema.optionalKey<Schema.brand<Schema.String, "effect-auth/OAuthIssuer">>;
|
|
111
|
+
readonly code: Schema.RedactedFromValue<Schema.String>;
|
|
112
|
+
readonly error: Schema.optionalKey<Schema.Never>;
|
|
113
|
+
}>, Schema.TaggedStruct<"Error", {
|
|
114
|
+
readonly state: Schema.RedactedFromValue<Schema.String>;
|
|
115
|
+
readonly issuer: Schema.optionalKey<Schema.brand<Schema.String, "effect-auth/OAuthIssuer">>;
|
|
116
|
+
readonly error: Schema.Literals<readonly ["access-denied", "rejected"]>;
|
|
117
|
+
readonly code: Schema.optionalKey<Schema.Never>;
|
|
118
|
+
}>]>;
|
|
119
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.NonEmptyString>>;
|
|
120
|
+
}>;
|
|
121
|
+
declare const OAuthConnectedDisconnect: Schema.Struct<{
|
|
122
|
+
readonly commandId: Schema.brand<Schema.String, "effect-auth/OAuthCommandId">;
|
|
123
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
124
|
+
readonly actionProof: Schema.optionalKey<Schema.RedactedFromValue<Schema.NonEmptyString>>;
|
|
125
|
+
}>;
|
|
126
|
+
declare const OAuthConnectedList: Schema.Struct<{
|
|
127
|
+
readonly limit: Schema.Int;
|
|
128
|
+
readonly cursor: Schema.optionalKey<Schema.NonEmptyString>;
|
|
129
|
+
}>;
|
|
130
|
+
declare const OAuthConnectedUse: Schema.Struct<{
|
|
131
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
132
|
+
readonly profileKey: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
133
|
+
}>;
|
|
134
|
+
declare const OAuthConnectedTarget: Schema.Struct<{
|
|
135
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
136
|
+
readonly grantVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
137
|
+
readonly tokenVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
138
|
+
readonly cohortGeneration: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
139
|
+
readonly identity: Schema.Struct<{
|
|
140
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
141
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
142
|
+
readonly subject: Schema.NonEmptyString;
|
|
143
|
+
}>;
|
|
144
|
+
readonly configuration: Schema.Struct<{
|
|
145
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
146
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
147
|
+
readonly configurationGeneration: Schema.Int;
|
|
148
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
149
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
150
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
151
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
152
|
+
readonly profile: Schema.Struct<{
|
|
153
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
154
|
+
readonly generation: Schema.Int;
|
|
155
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
156
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
157
|
+
readonly clientRegistrationId: Schema.String;
|
|
158
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
159
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
160
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
161
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
162
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
163
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
164
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
165
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
166
|
+
}>;
|
|
167
|
+
}>;
|
|
168
|
+
}>;
|
|
169
|
+
type OAuthConnectedTarget = typeof OAuthConnectedTarget.Type;
|
|
170
|
+
declare const OAuthConnectedTransactionContext: Schema.Struct<{
|
|
171
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
172
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
173
|
+
readonly configurationGeneration: Schema.Int;
|
|
174
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
175
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
176
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
177
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
178
|
+
readonly moduleId: Schema.brand<Schema.String, "effect-auth/OAuthModuleId">;
|
|
179
|
+
readonly generation: Schema.Int;
|
|
180
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
181
|
+
readonly commandId: Schema.brand<Schema.String, "effect-auth/OAuthCommandId">;
|
|
182
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
183
|
+
readonly stateDigest: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
184
|
+
readonly requestBindingVerifier: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
185
|
+
readonly requestBindingExpiresAtMillis: Schema.Int;
|
|
186
|
+
readonly issuedAtMillis: Schema.Int;
|
|
187
|
+
readonly expiresAtMillis: Schema.Int;
|
|
188
|
+
readonly claimLifetimeMillis: Schema.Int;
|
|
189
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-context/v1">;
|
|
190
|
+
readonly revision: Schema.Struct<{
|
|
191
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
192
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
193
|
+
readonly credentials: Schema.$Array<Schema.Struct<{
|
|
194
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
195
|
+
readonly revision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
196
|
+
}>>;
|
|
197
|
+
}>;
|
|
198
|
+
readonly profile: Schema.Struct<{
|
|
199
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
200
|
+
readonly generation: Schema.Int;
|
|
201
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
202
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
203
|
+
readonly clientRegistrationId: Schema.String;
|
|
204
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
205
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
206
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
207
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
208
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
209
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
210
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
211
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
212
|
+
}>;
|
|
213
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
214
|
+
readonly reconnect: Schema.optionalKey<Schema.Struct<{
|
|
215
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
216
|
+
readonly grantVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
217
|
+
readonly tokenVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
218
|
+
readonly cohortGeneration: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
219
|
+
readonly identity: Schema.Struct<{
|
|
220
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
221
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
222
|
+
readonly subject: Schema.NonEmptyString;
|
|
223
|
+
}>;
|
|
224
|
+
readonly configuration: Schema.Struct<{
|
|
225
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
226
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
227
|
+
readonly configurationGeneration: Schema.Int;
|
|
228
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
229
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
230
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
231
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
232
|
+
readonly profile: Schema.Struct<{
|
|
233
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
234
|
+
readonly generation: Schema.Int;
|
|
235
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
236
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
237
|
+
readonly clientRegistrationId: Schema.String;
|
|
238
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
239
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
240
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
241
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
242
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
243
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
244
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
245
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
246
|
+
}>;
|
|
247
|
+
}>;
|
|
248
|
+
}>>;
|
|
249
|
+
readonly maximumEvidenceAgeMillis: Schema.Int;
|
|
250
|
+
}>;
|
|
251
|
+
type OAuthConnectedTransactionContext = typeof OAuthConnectedTransactionContext.Type;
|
|
252
|
+
declare const OAuthConnectedPendingFlow: Schema.Struct<{
|
|
253
|
+
readonly context: Schema.Struct<{
|
|
254
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
255
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
256
|
+
readonly configurationGeneration: Schema.Int;
|
|
257
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
258
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
259
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
260
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
261
|
+
readonly moduleId: Schema.brand<Schema.String, "effect-auth/OAuthModuleId">;
|
|
262
|
+
readonly generation: Schema.Int;
|
|
263
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
264
|
+
readonly commandId: Schema.brand<Schema.String, "effect-auth/OAuthCommandId">;
|
|
265
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
266
|
+
readonly stateDigest: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
267
|
+
readonly requestBindingVerifier: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
268
|
+
readonly requestBindingExpiresAtMillis: Schema.Int;
|
|
269
|
+
readonly issuedAtMillis: Schema.Int;
|
|
270
|
+
readonly expiresAtMillis: Schema.Int;
|
|
271
|
+
readonly claimLifetimeMillis: Schema.Int;
|
|
272
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-context/v1">;
|
|
273
|
+
readonly revision: Schema.Struct<{
|
|
274
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
275
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
276
|
+
readonly credentials: Schema.$Array<Schema.Struct<{
|
|
277
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
278
|
+
readonly revision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
279
|
+
}>>;
|
|
280
|
+
}>;
|
|
281
|
+
readonly profile: Schema.Struct<{
|
|
282
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
283
|
+
readonly generation: Schema.Int;
|
|
284
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
285
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
286
|
+
readonly clientRegistrationId: Schema.String;
|
|
287
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
288
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
289
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
290
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
291
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
292
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
293
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
294
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
295
|
+
}>;
|
|
296
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
297
|
+
readonly reconnect: Schema.optionalKey<Schema.Struct<{
|
|
298
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
299
|
+
readonly grantVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
300
|
+
readonly tokenVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
301
|
+
readonly cohortGeneration: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
302
|
+
readonly identity: Schema.Struct<{
|
|
303
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
304
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
305
|
+
readonly subject: Schema.NonEmptyString;
|
|
306
|
+
}>;
|
|
307
|
+
readonly configuration: Schema.Struct<{
|
|
308
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
309
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
310
|
+
readonly configurationGeneration: Schema.Int;
|
|
311
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
312
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
313
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
314
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
315
|
+
readonly profile: Schema.Struct<{
|
|
316
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
317
|
+
readonly generation: Schema.Int;
|
|
318
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
319
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
320
|
+
readonly clientRegistrationId: Schema.String;
|
|
321
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
322
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
323
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
324
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
325
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
326
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
327
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
328
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
329
|
+
}>;
|
|
330
|
+
}>;
|
|
331
|
+
}>>;
|
|
332
|
+
readonly maximumEvidenceAgeMillis: Schema.Int;
|
|
333
|
+
}>;
|
|
334
|
+
readonly sealed: Schema.Struct<{
|
|
335
|
+
readonly format: Schema.Literal<"oauth-xchacha20poly1305-v1">;
|
|
336
|
+
readonly keyId: Schema.String;
|
|
337
|
+
readonly nonce: Schema.String;
|
|
338
|
+
readonly ciphertext: Schema.RedactedFromValue<Schema.String>;
|
|
339
|
+
}>;
|
|
340
|
+
readonly retentionUntilMillis: Schema.Int;
|
|
341
|
+
}>;
|
|
342
|
+
type OAuthConnectedPendingFlow = typeof OAuthConnectedPendingFlow.Type;
|
|
343
|
+
declare const OAuthConnectedClaim: Schema.Struct<{
|
|
344
|
+
readonly flow: Schema.Struct<{
|
|
345
|
+
readonly context: Schema.Struct<{
|
|
346
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
347
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
348
|
+
readonly configurationGeneration: Schema.Int;
|
|
349
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
350
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
351
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
352
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
353
|
+
readonly moduleId: Schema.brand<Schema.String, "effect-auth/OAuthModuleId">;
|
|
354
|
+
readonly generation: Schema.Int;
|
|
355
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
356
|
+
readonly commandId: Schema.brand<Schema.String, "effect-auth/OAuthCommandId">;
|
|
357
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
358
|
+
readonly stateDigest: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
359
|
+
readonly requestBindingVerifier: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
360
|
+
readonly requestBindingExpiresAtMillis: Schema.Int;
|
|
361
|
+
readonly issuedAtMillis: Schema.Int;
|
|
362
|
+
readonly expiresAtMillis: Schema.Int;
|
|
363
|
+
readonly claimLifetimeMillis: Schema.Int;
|
|
364
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-context/v1">;
|
|
365
|
+
readonly revision: Schema.Struct<{
|
|
366
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
367
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
368
|
+
readonly credentials: Schema.$Array<Schema.Struct<{
|
|
369
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
370
|
+
readonly revision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
371
|
+
}>>;
|
|
372
|
+
}>;
|
|
373
|
+
readonly profile: Schema.Struct<{
|
|
374
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
375
|
+
readonly generation: Schema.Int;
|
|
376
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
377
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
378
|
+
readonly clientRegistrationId: Schema.String;
|
|
379
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
380
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
381
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
382
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
383
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
384
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
385
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
386
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
387
|
+
}>;
|
|
388
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
389
|
+
readonly reconnect: Schema.optionalKey<Schema.Struct<{
|
|
390
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
391
|
+
readonly grantVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
392
|
+
readonly tokenVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
393
|
+
readonly cohortGeneration: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
394
|
+
readonly identity: Schema.Struct<{
|
|
395
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
396
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
397
|
+
readonly subject: Schema.NonEmptyString;
|
|
398
|
+
}>;
|
|
399
|
+
readonly configuration: Schema.Struct<{
|
|
400
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
401
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
402
|
+
readonly configurationGeneration: Schema.Int;
|
|
403
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
404
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
405
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
406
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
407
|
+
readonly profile: Schema.Struct<{
|
|
408
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
409
|
+
readonly generation: Schema.Int;
|
|
410
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
411
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
412
|
+
readonly clientRegistrationId: Schema.String;
|
|
413
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
414
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
415
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
416
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
417
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
418
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
419
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
420
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
421
|
+
}>;
|
|
422
|
+
}>;
|
|
423
|
+
}>>;
|
|
424
|
+
readonly maximumEvidenceAgeMillis: Schema.Int;
|
|
425
|
+
}>;
|
|
426
|
+
readonly sealed: Schema.Struct<{
|
|
427
|
+
readonly format: Schema.Literal<"oauth-xchacha20poly1305-v1">;
|
|
428
|
+
readonly keyId: Schema.String;
|
|
429
|
+
readonly nonce: Schema.String;
|
|
430
|
+
readonly ciphertext: Schema.RedactedFromValue<Schema.String>;
|
|
431
|
+
}>;
|
|
432
|
+
readonly retentionUntilMillis: Schema.Int;
|
|
433
|
+
}>;
|
|
434
|
+
readonly claimId: Schema.brand<Schema.String, "effect-auth/OAuthClaimId">;
|
|
435
|
+
readonly claimedAtMillis: Schema.Int;
|
|
436
|
+
readonly claimExpiresAtMillis: Schema.Int;
|
|
437
|
+
readonly order: Schema.String;
|
|
438
|
+
}>;
|
|
439
|
+
type OAuthConnectedClaim = typeof OAuthConnectedClaim.Type;
|
|
440
|
+
declare const OAuthConnectedActionChallenge: Schema.Struct<{
|
|
441
|
+
readonly moduleId: Schema.brand<Schema.String, "effect-auth/OAuthModuleId">;
|
|
442
|
+
readonly action: Schema.Literals<readonly ["connected-begin", "connected-complete", "connected-disconnect"]>;
|
|
443
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
444
|
+
readonly commandId: Schema.brand<Schema.String, "effect-auth/OAuthCommandId">;
|
|
445
|
+
readonly revision: Schema.Struct<{
|
|
446
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
447
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
448
|
+
readonly credentials: Schema.$Array<Schema.Struct<{
|
|
449
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
450
|
+
readonly revision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
451
|
+
}>>;
|
|
452
|
+
}>;
|
|
453
|
+
readonly intentDigest: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
454
|
+
readonly bindingDigest: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
455
|
+
}>;
|
|
456
|
+
type OAuthConnectedActionChallenge = typeof OAuthConnectedActionChallenge.Type;
|
|
457
|
+
declare const OAuthConnectedActionAuthorization: Schema.Struct<{
|
|
458
|
+
readonly evidence: Schema.Struct<{
|
|
459
|
+
readonly revision: Schema.Struct<{
|
|
460
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
461
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
462
|
+
readonly credentials: Schema.$Array<Schema.Struct<{
|
|
463
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
464
|
+
readonly revision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
465
|
+
}>>;
|
|
466
|
+
}>;
|
|
467
|
+
readonly flowId: Schema.brand<Schema.NonEmptyString, "effect-auth/AuthenticationFlowId">;
|
|
468
|
+
readonly bindingDigest: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
469
|
+
readonly proofs: Schema.NonEmptyArray<Schema.Struct<{
|
|
470
|
+
readonly userVerified: Schema.Boolean;
|
|
471
|
+
readonly phishingResistant: Schema.Boolean;
|
|
472
|
+
readonly verifiedAt: Schema.DateTimeUtcFromMillis;
|
|
473
|
+
readonly method: Schema.NonEmptyString;
|
|
474
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
475
|
+
readonly factors: Schema.$Array<Schema.Literals<readonly ["knowledge", "possession", "inherence"]>>;
|
|
476
|
+
}>>;
|
|
477
|
+
}>;
|
|
478
|
+
readonly requirement: Schema.Struct<{
|
|
479
|
+
readonly maximumAgeMillis: Schema.Int;
|
|
480
|
+
readonly alternatives: Schema.NonEmptyArray<Schema.Struct<{
|
|
481
|
+
readonly userVerified: Schema.Boolean;
|
|
482
|
+
readonly phishingResistant: Schema.Boolean;
|
|
483
|
+
readonly factors: Schema.$Array<Schema.Literals<readonly ["knowledge", "possession", "inherence"]>>;
|
|
484
|
+
readonly minimumCredentials: Schema.Int;
|
|
485
|
+
}>>;
|
|
486
|
+
}>;
|
|
487
|
+
readonly challenge: Schema.Struct<{
|
|
488
|
+
readonly moduleId: Schema.brand<Schema.String, "effect-auth/OAuthModuleId">;
|
|
489
|
+
readonly action: Schema.Literals<readonly ["connected-begin", "connected-complete", "connected-disconnect"]>;
|
|
490
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
491
|
+
readonly commandId: Schema.brand<Schema.String, "effect-auth/OAuthCommandId">;
|
|
492
|
+
readonly revision: Schema.Struct<{
|
|
493
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
494
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
495
|
+
readonly credentials: Schema.$Array<Schema.Struct<{
|
|
496
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
497
|
+
readonly revision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
498
|
+
}>>;
|
|
499
|
+
}>;
|
|
500
|
+
readonly intentDigest: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
501
|
+
readonly bindingDigest: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
502
|
+
}>;
|
|
503
|
+
}>;
|
|
504
|
+
type OAuthConnectedActionAuthorization = typeof OAuthConnectedActionAuthorization.Type;
|
|
505
|
+
declare const OAuthConnectedUseAuthorization: Schema.Struct<{
|
|
506
|
+
readonly moduleId: Schema.brand<Schema.String, "effect-auth/OAuthModuleId">;
|
|
507
|
+
readonly revision: Schema.Struct<{
|
|
508
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
509
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
510
|
+
readonly credentials: Schema.$Array<Schema.Struct<{
|
|
511
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
512
|
+
readonly revision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
513
|
+
}>>;
|
|
514
|
+
}>;
|
|
515
|
+
readonly policyRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
516
|
+
readonly expiresAtMillis: Schema.Int;
|
|
517
|
+
readonly purpose: Schema.Literals<readonly ["metadata", "use"]>;
|
|
518
|
+
readonly grantId: Schema.optionalKey<Schema.brand<Schema.String, "effect-auth/OAuthGrantId">>;
|
|
519
|
+
readonly profileKey: Schema.optionalKey<Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">>;
|
|
520
|
+
}>;
|
|
521
|
+
type OAuthConnectedUseAuthorization = typeof OAuthConnectedUseAuthorization.Type;
|
|
522
|
+
declare const OAuthConnectedContinuation: Schema.Union<readonly [Schema.TaggedStruct<"Oidc", {
|
|
523
|
+
readonly clientId: Schema.NonEmptyString;
|
|
524
|
+
readonly nonce: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
525
|
+
readonly authTime: Schema.optionalKey<Schema.Finite>;
|
|
526
|
+
}>, Schema.TaggedStruct<"OAuth", {}>]>;
|
|
527
|
+
declare const OAuthConnectedTokenMaterial: Schema.Struct<{
|
|
528
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-token-material/v1">;
|
|
529
|
+
readonly accessToken: Schema.RedactedFromValue<Schema.NonEmptyString>;
|
|
530
|
+
readonly refreshToken: Schema.optionalKey<Schema.RedactedFromValue<Schema.NonEmptyString>>;
|
|
531
|
+
readonly continuation: Schema.Union<readonly [Schema.TaggedStruct<"Oidc", {
|
|
532
|
+
readonly clientId: Schema.NonEmptyString;
|
|
533
|
+
readonly nonce: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
534
|
+
readonly authTime: Schema.optionalKey<Schema.Finite>;
|
|
535
|
+
}>, Schema.TaggedStruct<"OAuth", {}>]>;
|
|
536
|
+
}>;
|
|
537
|
+
type OAuthConnectedTokenMaterial = typeof OAuthConnectedTokenMaterial.Type;
|
|
538
|
+
declare const OAuthConnectedGrantResponse: Schema.Struct<{
|
|
539
|
+
readonly identity: Schema.Struct<{
|
|
540
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
541
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
542
|
+
readonly subject: Schema.NonEmptyString;
|
|
543
|
+
}>;
|
|
544
|
+
readonly profile: Schema.optionalKey<Schema.Struct<{
|
|
545
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
546
|
+
readonly handle: Schema.optionalKey<Schema.String>;
|
|
547
|
+
}>>;
|
|
548
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
549
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
550
|
+
readonly accessExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
551
|
+
readonly refreshExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
552
|
+
readonly material: Schema.Struct<{
|
|
553
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-token-material/v1">;
|
|
554
|
+
readonly accessToken: Schema.RedactedFromValue<Schema.NonEmptyString>;
|
|
555
|
+
readonly refreshToken: Schema.optionalKey<Schema.RedactedFromValue<Schema.NonEmptyString>>;
|
|
556
|
+
readonly continuation: Schema.Union<readonly [Schema.TaggedStruct<"Oidc", {
|
|
557
|
+
readonly clientId: Schema.NonEmptyString;
|
|
558
|
+
readonly nonce: Schema.optionalKey<Schema.RedactedFromValue<Schema.String>>;
|
|
559
|
+
readonly authTime: Schema.optionalKey<Schema.Finite>;
|
|
560
|
+
}>, Schema.TaggedStruct<"OAuth", {}>]>;
|
|
561
|
+
}>;
|
|
562
|
+
}>;
|
|
563
|
+
type OAuthConnectedGrantResponse = typeof OAuthConnectedGrantResponse.Type;
|
|
564
|
+
declare const OAuthConnectedTokenMetadata: Schema.Struct<{
|
|
565
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
566
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
567
|
+
readonly accessExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
568
|
+
readonly refreshExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
569
|
+
readonly useUntilMillis: Schema.Int;
|
|
570
|
+
readonly refreshUseUntilMillis: Schema.optionalKey<Schema.Int>;
|
|
571
|
+
readonly obtainedAtMillis: Schema.Int;
|
|
572
|
+
readonly profile: Schema.optionalKey<Schema.Struct<{
|
|
573
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
574
|
+
readonly handle: Schema.optionalKey<Schema.String>;
|
|
575
|
+
}>>;
|
|
576
|
+
}>;
|
|
577
|
+
declare const OAuthConnectedTokenContext: Schema.Struct<{
|
|
578
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-token-context/v1">;
|
|
579
|
+
readonly moduleId: Schema.brand<Schema.String, "effect-auth/OAuthModuleId">;
|
|
580
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
581
|
+
readonly identity: Schema.Struct<{
|
|
582
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
583
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
584
|
+
readonly subject: Schema.NonEmptyString;
|
|
585
|
+
}>;
|
|
586
|
+
readonly configuration: Schema.Struct<{
|
|
587
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
588
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
589
|
+
readonly configurationGeneration: Schema.Int;
|
|
590
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
591
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
592
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
593
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
594
|
+
readonly profile: Schema.Struct<{
|
|
595
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
596
|
+
readonly generation: Schema.Int;
|
|
597
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
598
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
599
|
+
readonly clientRegistrationId: Schema.String;
|
|
600
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
601
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
602
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
603
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
604
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
605
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
606
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
607
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
608
|
+
}>;
|
|
609
|
+
}>;
|
|
610
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
611
|
+
readonly grantVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
612
|
+
readonly tokenVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
613
|
+
readonly cohortGeneration: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
614
|
+
readonly metadata: Schema.Struct<{
|
|
615
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
616
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
617
|
+
readonly accessExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
618
|
+
readonly refreshExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
619
|
+
readonly useUntilMillis: Schema.Int;
|
|
620
|
+
readonly refreshUseUntilMillis: Schema.optionalKey<Schema.Int>;
|
|
621
|
+
readonly obtainedAtMillis: Schema.Int;
|
|
622
|
+
readonly profile: Schema.optionalKey<Schema.Struct<{
|
|
623
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
624
|
+
readonly handle: Schema.optionalKey<Schema.String>;
|
|
625
|
+
}>>;
|
|
626
|
+
}>;
|
|
627
|
+
}>;
|
|
628
|
+
type OAuthConnectedTokenContext = typeof OAuthConnectedTokenContext.Type;
|
|
629
|
+
declare const OAuthConnectedRevocationContext: Schema.Struct<{
|
|
630
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-revocation-context/v1">;
|
|
631
|
+
readonly jobId: Schema.brand<Schema.String, "effect-auth/OAuthClaimId">;
|
|
632
|
+
readonly token: Schema.Struct<{
|
|
633
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-token-context/v1">;
|
|
634
|
+
readonly moduleId: Schema.brand<Schema.String, "effect-auth/OAuthModuleId">;
|
|
635
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
636
|
+
readonly identity: Schema.Struct<{
|
|
637
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
638
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
639
|
+
readonly subject: Schema.NonEmptyString;
|
|
640
|
+
}>;
|
|
641
|
+
readonly configuration: Schema.Struct<{
|
|
642
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
643
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
644
|
+
readonly configurationGeneration: Schema.Int;
|
|
645
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
646
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
647
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
648
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
649
|
+
readonly profile: Schema.Struct<{
|
|
650
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
651
|
+
readonly generation: Schema.Int;
|
|
652
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
653
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
654
|
+
readonly clientRegistrationId: Schema.String;
|
|
655
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
656
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
657
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
658
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
659
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
660
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
661
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
662
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
663
|
+
}>;
|
|
664
|
+
}>;
|
|
665
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
666
|
+
readonly grantVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
667
|
+
readonly tokenVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
668
|
+
readonly cohortGeneration: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
669
|
+
readonly metadata: Schema.Struct<{
|
|
670
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
671
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
672
|
+
readonly accessExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
673
|
+
readonly refreshExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
674
|
+
readonly useUntilMillis: Schema.Int;
|
|
675
|
+
readonly refreshUseUntilMillis: Schema.optionalKey<Schema.Int>;
|
|
676
|
+
readonly obtainedAtMillis: Schema.Int;
|
|
677
|
+
readonly profile: Schema.optionalKey<Schema.Struct<{
|
|
678
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
679
|
+
readonly handle: Schema.optionalKey<Schema.String>;
|
|
680
|
+
}>>;
|
|
681
|
+
}>;
|
|
682
|
+
}>;
|
|
683
|
+
}>;
|
|
684
|
+
type OAuthConnectedRevocationContext = typeof OAuthConnectedRevocationContext.Type;
|
|
685
|
+
declare const OAuthConnectedProtectionContext: Schema.Union<readonly [Schema.Struct<{
|
|
686
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-token-context/v1">;
|
|
687
|
+
readonly moduleId: Schema.brand<Schema.String, "effect-auth/OAuthModuleId">;
|
|
688
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
689
|
+
readonly identity: Schema.Struct<{
|
|
690
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
691
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
692
|
+
readonly subject: Schema.NonEmptyString;
|
|
693
|
+
}>;
|
|
694
|
+
readonly configuration: Schema.Struct<{
|
|
695
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
696
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
697
|
+
readonly configurationGeneration: Schema.Int;
|
|
698
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
699
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
700
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
701
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
702
|
+
readonly profile: Schema.Struct<{
|
|
703
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
704
|
+
readonly generation: Schema.Int;
|
|
705
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
706
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
707
|
+
readonly clientRegistrationId: Schema.String;
|
|
708
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
709
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
710
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
711
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
712
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
713
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
714
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
715
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
716
|
+
}>;
|
|
717
|
+
}>;
|
|
718
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
719
|
+
readonly grantVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
720
|
+
readonly tokenVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
721
|
+
readonly cohortGeneration: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
722
|
+
readonly metadata: Schema.Struct<{
|
|
723
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
724
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
725
|
+
readonly accessExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
726
|
+
readonly refreshExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
727
|
+
readonly useUntilMillis: Schema.Int;
|
|
728
|
+
readonly refreshUseUntilMillis: Schema.optionalKey<Schema.Int>;
|
|
729
|
+
readonly obtainedAtMillis: Schema.Int;
|
|
730
|
+
readonly profile: Schema.optionalKey<Schema.Struct<{
|
|
731
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
732
|
+
readonly handle: Schema.optionalKey<Schema.String>;
|
|
733
|
+
}>>;
|
|
734
|
+
}>;
|
|
735
|
+
}>, Schema.Struct<{
|
|
736
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-revocation-context/v1">;
|
|
737
|
+
readonly jobId: Schema.brand<Schema.String, "effect-auth/OAuthClaimId">;
|
|
738
|
+
readonly token: Schema.Struct<{
|
|
739
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-token-context/v1">;
|
|
740
|
+
readonly moduleId: Schema.brand<Schema.String, "effect-auth/OAuthModuleId">;
|
|
741
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
742
|
+
readonly identity: Schema.Struct<{
|
|
743
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
744
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
745
|
+
readonly subject: Schema.NonEmptyString;
|
|
746
|
+
}>;
|
|
747
|
+
readonly configuration: Schema.Struct<{
|
|
748
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
749
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
750
|
+
readonly configurationGeneration: Schema.Int;
|
|
751
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
752
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
753
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
754
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
755
|
+
readonly profile: Schema.Struct<{
|
|
756
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
757
|
+
readonly generation: Schema.Int;
|
|
758
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
759
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
760
|
+
readonly clientRegistrationId: Schema.String;
|
|
761
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
762
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
763
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
764
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
765
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
766
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
767
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
768
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
769
|
+
}>;
|
|
770
|
+
}>;
|
|
771
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
772
|
+
readonly grantVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
773
|
+
readonly tokenVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
774
|
+
readonly cohortGeneration: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
775
|
+
readonly metadata: Schema.Struct<{
|
|
776
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
777
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
778
|
+
readonly accessExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
779
|
+
readonly refreshExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
780
|
+
readonly useUntilMillis: Schema.Int;
|
|
781
|
+
readonly refreshUseUntilMillis: Schema.optionalKey<Schema.Int>;
|
|
782
|
+
readonly obtainedAtMillis: Schema.Int;
|
|
783
|
+
readonly profile: Schema.optionalKey<Schema.Struct<{
|
|
784
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
785
|
+
readonly handle: Schema.optionalKey<Schema.String>;
|
|
786
|
+
}>>;
|
|
787
|
+
}>;
|
|
788
|
+
}>;
|
|
789
|
+
}>]>;
|
|
790
|
+
type OAuthConnectedProtectionContext = typeof OAuthConnectedProtectionContext.Type;
|
|
791
|
+
declare const OAuthConnectedSealedTokens: Schema.Struct<{
|
|
792
|
+
readonly format: Schema.Literal<"oauth-connected-xchacha20poly1305-v1">;
|
|
793
|
+
readonly keyId: Schema.String;
|
|
794
|
+
readonly nonce: Schema.String;
|
|
795
|
+
readonly ciphertext: Schema.RedactedFromValue<Schema.String>;
|
|
796
|
+
}>;
|
|
797
|
+
type OAuthConnectedSealedTokens = typeof OAuthConnectedSealedTokens.Type;
|
|
798
|
+
declare const OAuthConnectedStoredGrant: Schema.Struct<{
|
|
799
|
+
readonly context: Schema.Struct<{
|
|
800
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-token-context/v1">;
|
|
801
|
+
readonly moduleId: Schema.brand<Schema.String, "effect-auth/OAuthModuleId">;
|
|
802
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
803
|
+
readonly identity: Schema.Struct<{
|
|
804
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
805
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
806
|
+
readonly subject: Schema.NonEmptyString;
|
|
807
|
+
}>;
|
|
808
|
+
readonly configuration: Schema.Struct<{
|
|
809
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
810
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
811
|
+
readonly configurationGeneration: Schema.Int;
|
|
812
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
813
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
814
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
815
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
816
|
+
readonly profile: Schema.Struct<{
|
|
817
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
818
|
+
readonly generation: Schema.Int;
|
|
819
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
820
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
821
|
+
readonly clientRegistrationId: Schema.String;
|
|
822
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
823
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
824
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
825
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
826
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
827
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
828
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
829
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
830
|
+
}>;
|
|
831
|
+
}>;
|
|
832
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
833
|
+
readonly grantVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
834
|
+
readonly tokenVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
835
|
+
readonly cohortGeneration: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
836
|
+
readonly metadata: Schema.Struct<{
|
|
837
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
838
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
839
|
+
readonly accessExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
840
|
+
readonly refreshExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
841
|
+
readonly useUntilMillis: Schema.Int;
|
|
842
|
+
readonly refreshUseUntilMillis: Schema.optionalKey<Schema.Int>;
|
|
843
|
+
readonly obtainedAtMillis: Schema.Int;
|
|
844
|
+
readonly profile: Schema.optionalKey<Schema.Struct<{
|
|
845
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
846
|
+
readonly handle: Schema.optionalKey<Schema.String>;
|
|
847
|
+
}>>;
|
|
848
|
+
}>;
|
|
849
|
+
}>;
|
|
850
|
+
readonly sealed: Schema.Struct<{
|
|
851
|
+
readonly format: Schema.Literal<"oauth-connected-xchacha20poly1305-v1">;
|
|
852
|
+
readonly keyId: Schema.String;
|
|
853
|
+
readonly nonce: Schema.String;
|
|
854
|
+
readonly ciphertext: Schema.RedactedFromValue<Schema.String>;
|
|
855
|
+
}>;
|
|
856
|
+
}>;
|
|
857
|
+
type OAuthConnectedStoredGrant = typeof OAuthConnectedStoredGrant.Type;
|
|
858
|
+
declare const OAuthConnectedDisconnectGrant: Schema.Struct<{
|
|
859
|
+
readonly context: Schema.Struct<{
|
|
860
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-token-context/v1">;
|
|
861
|
+
readonly moduleId: Schema.brand<Schema.String, "effect-auth/OAuthModuleId">;
|
|
862
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
863
|
+
readonly identity: Schema.Struct<{
|
|
864
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
865
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
866
|
+
readonly subject: Schema.NonEmptyString;
|
|
867
|
+
}>;
|
|
868
|
+
readonly configuration: Schema.Struct<{
|
|
869
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
870
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
871
|
+
readonly configurationGeneration: Schema.Int;
|
|
872
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
873
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
874
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
875
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
876
|
+
readonly profile: Schema.Struct<{
|
|
877
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
878
|
+
readonly generation: Schema.Int;
|
|
879
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
880
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
881
|
+
readonly clientRegistrationId: Schema.String;
|
|
882
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
883
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
884
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
885
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
886
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
887
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
888
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
889
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
890
|
+
}>;
|
|
891
|
+
}>;
|
|
892
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
893
|
+
readonly grantVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
894
|
+
readonly tokenVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
895
|
+
readonly cohortGeneration: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
896
|
+
readonly metadata: Schema.Struct<{
|
|
897
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
898
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
899
|
+
readonly accessExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
900
|
+
readonly refreshExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
901
|
+
readonly useUntilMillis: Schema.Int;
|
|
902
|
+
readonly refreshUseUntilMillis: Schema.optionalKey<Schema.Int>;
|
|
903
|
+
readonly obtainedAtMillis: Schema.Int;
|
|
904
|
+
readonly profile: Schema.optionalKey<Schema.Struct<{
|
|
905
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
906
|
+
readonly handle: Schema.optionalKey<Schema.String>;
|
|
907
|
+
}>>;
|
|
908
|
+
}>;
|
|
909
|
+
}>;
|
|
910
|
+
readonly sealed: Schema.optionalKey<Schema.Struct<{
|
|
911
|
+
readonly format: Schema.Literal<"oauth-connected-xchacha20poly1305-v1">;
|
|
912
|
+
readonly keyId: Schema.String;
|
|
913
|
+
readonly nonce: Schema.String;
|
|
914
|
+
readonly ciphertext: Schema.RedactedFromValue<Schema.String>;
|
|
915
|
+
}>>;
|
|
916
|
+
}>;
|
|
917
|
+
type OAuthConnectedDisconnectGrant = typeof OAuthConnectedDisconnectGrant.Type;
|
|
918
|
+
declare const OAuthConnectedRevocationJob: Schema.Struct<{
|
|
919
|
+
readonly context: Schema.Struct<{
|
|
920
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-revocation-context/v1">;
|
|
921
|
+
readonly jobId: Schema.brand<Schema.String, "effect-auth/OAuthClaimId">;
|
|
922
|
+
readonly token: Schema.Struct<{
|
|
923
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-token-context/v1">;
|
|
924
|
+
readonly moduleId: Schema.brand<Schema.String, "effect-auth/OAuthModuleId">;
|
|
925
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
926
|
+
readonly identity: Schema.Struct<{
|
|
927
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
928
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
929
|
+
readonly subject: Schema.NonEmptyString;
|
|
930
|
+
}>;
|
|
931
|
+
readonly configuration: Schema.Struct<{
|
|
932
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
933
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
934
|
+
readonly configurationGeneration: Schema.Int;
|
|
935
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
936
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
937
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
938
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
939
|
+
readonly profile: Schema.Struct<{
|
|
940
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
941
|
+
readonly generation: Schema.Int;
|
|
942
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
943
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
944
|
+
readonly clientRegistrationId: Schema.String;
|
|
945
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
946
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
947
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
948
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
949
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
950
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
951
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
952
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
953
|
+
}>;
|
|
954
|
+
}>;
|
|
955
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
956
|
+
readonly grantVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
957
|
+
readonly tokenVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
958
|
+
readonly cohortGeneration: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
959
|
+
readonly metadata: Schema.Struct<{
|
|
960
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
961
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
962
|
+
readonly accessExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
963
|
+
readonly refreshExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
964
|
+
readonly useUntilMillis: Schema.Int;
|
|
965
|
+
readonly refreshUseUntilMillis: Schema.optionalKey<Schema.Int>;
|
|
966
|
+
readonly obtainedAtMillis: Schema.Int;
|
|
967
|
+
readonly profile: Schema.optionalKey<Schema.Struct<{
|
|
968
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
969
|
+
readonly handle: Schema.optionalKey<Schema.String>;
|
|
970
|
+
}>>;
|
|
971
|
+
}>;
|
|
972
|
+
}>;
|
|
973
|
+
}>;
|
|
974
|
+
readonly sealed: Schema.Struct<{
|
|
975
|
+
readonly format: Schema.Literal<"oauth-connected-xchacha20poly1305-v1">;
|
|
976
|
+
readonly keyId: Schema.String;
|
|
977
|
+
readonly nonce: Schema.String;
|
|
978
|
+
readonly ciphertext: Schema.RedactedFromValue<Schema.String>;
|
|
979
|
+
}>;
|
|
980
|
+
}>;
|
|
981
|
+
type OAuthConnectedRevocationJob = typeof OAuthConnectedRevocationJob.Type;
|
|
982
|
+
declare const OAuthConnectedRefreshClaim: Schema.Struct<{
|
|
983
|
+
readonly grant: Schema.Struct<{
|
|
984
|
+
readonly context: Schema.Struct<{
|
|
985
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-token-context/v1">;
|
|
986
|
+
readonly moduleId: Schema.brand<Schema.String, "effect-auth/OAuthModuleId">;
|
|
987
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
988
|
+
readonly identity: Schema.Struct<{
|
|
989
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
990
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
991
|
+
readonly subject: Schema.NonEmptyString;
|
|
992
|
+
}>;
|
|
993
|
+
readonly configuration: Schema.Struct<{
|
|
994
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
995
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
996
|
+
readonly configurationGeneration: Schema.Int;
|
|
997
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
998
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
999
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
1000
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
1001
|
+
readonly profile: Schema.Struct<{
|
|
1002
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
1003
|
+
readonly generation: Schema.Int;
|
|
1004
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
1005
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1006
|
+
readonly clientRegistrationId: Schema.String;
|
|
1007
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1008
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
1009
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
1010
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
1011
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
1012
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
1013
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
1014
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
1015
|
+
}>;
|
|
1016
|
+
}>;
|
|
1017
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1018
|
+
readonly grantVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1019
|
+
readonly tokenVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1020
|
+
readonly cohortGeneration: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1021
|
+
readonly metadata: Schema.Struct<{
|
|
1022
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1023
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
1024
|
+
readonly accessExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
1025
|
+
readonly refreshExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
1026
|
+
readonly useUntilMillis: Schema.Int;
|
|
1027
|
+
readonly refreshUseUntilMillis: Schema.optionalKey<Schema.Int>;
|
|
1028
|
+
readonly obtainedAtMillis: Schema.Int;
|
|
1029
|
+
readonly profile: Schema.optionalKey<Schema.Struct<{
|
|
1030
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
1031
|
+
readonly handle: Schema.optionalKey<Schema.String>;
|
|
1032
|
+
}>>;
|
|
1033
|
+
}>;
|
|
1034
|
+
}>;
|
|
1035
|
+
readonly sealed: Schema.Struct<{
|
|
1036
|
+
readonly format: Schema.Literal<"oauth-connected-xchacha20poly1305-v1">;
|
|
1037
|
+
readonly keyId: Schema.String;
|
|
1038
|
+
readonly nonce: Schema.String;
|
|
1039
|
+
readonly ciphertext: Schema.RedactedFromValue<Schema.String>;
|
|
1040
|
+
}>;
|
|
1041
|
+
}>;
|
|
1042
|
+
readonly claimId: Schema.brand<Schema.String, "effect-auth/OAuthClaimId">;
|
|
1043
|
+
readonly claimedAtMillis: Schema.Int;
|
|
1044
|
+
readonly claimExpiresAtMillis: Schema.Int;
|
|
1045
|
+
readonly nextTokenVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1046
|
+
}>;
|
|
1047
|
+
type OAuthConnectedRefreshClaim = typeof OAuthConnectedRefreshClaim.Type;
|
|
1048
|
+
declare const OAuthConnectedSummary: Schema.Struct<{
|
|
1049
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1050
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1051
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1052
|
+
readonly profileKey: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
1053
|
+
readonly status: Schema.Literals<readonly ["Active", "Refreshing", "ReauthorizationRequired", "Disconnected"]>;
|
|
1054
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1055
|
+
readonly accessExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
1056
|
+
readonly useUntilMillis: Schema.Int;
|
|
1057
|
+
readonly profile: Schema.optionalKey<Schema.Struct<{
|
|
1058
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
1059
|
+
readonly handle: Schema.optionalKey<Schema.String>;
|
|
1060
|
+
}>>;
|
|
1061
|
+
readonly remoteRevocation: Schema.Literals<readonly ["Pending", "Confirmed", "Unsupported", "Unknown"]>;
|
|
1062
|
+
}>;
|
|
1063
|
+
declare const OAuthConnectedListResult: Schema.Struct<{
|
|
1064
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
1065
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1066
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1067
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1068
|
+
readonly profileKey: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
1069
|
+
readonly status: Schema.Literals<readonly ["Active", "Refreshing", "ReauthorizationRequired", "Disconnected"]>;
|
|
1070
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1071
|
+
readonly accessExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
1072
|
+
readonly useUntilMillis: Schema.Int;
|
|
1073
|
+
readonly profile: Schema.optionalKey<Schema.Struct<{
|
|
1074
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
1075
|
+
readonly handle: Schema.optionalKey<Schema.String>;
|
|
1076
|
+
}>>;
|
|
1077
|
+
readonly remoteRevocation: Schema.Literals<readonly ["Pending", "Confirmed", "Unsupported", "Unknown"]>;
|
|
1078
|
+
}>>;
|
|
1079
|
+
readonly cursor: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1080
|
+
}>;
|
|
1081
|
+
declare const OAuthConnectedResult: Schema.Union<readonly [Schema.TaggedStruct<"Connected", {
|
|
1082
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1083
|
+
readonly profileKey: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
1084
|
+
readonly status: Schema.Literal<"Active">;
|
|
1085
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
1086
|
+
}>, Schema.TaggedStruct<"Cancelled", {
|
|
1087
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
1088
|
+
}>]>;
|
|
1089
|
+
declare const OAuthConnectedDisconnected: Schema.TaggedStruct<"Disconnected", {
|
|
1090
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1091
|
+
readonly remoteRevocation: Schema.Literals<readonly ["Pending", "Confirmed", "Unsupported", "Unknown"]>;
|
|
1092
|
+
readonly affectedGrantCount: Schema.Int;
|
|
1093
|
+
readonly replayed: Schema.Boolean;
|
|
1094
|
+
}>;
|
|
1095
|
+
declare const OAuthConnectedAccess: Schema.Struct<{
|
|
1096
|
+
readonly moduleId: Schema.brand<Schema.String, "effect-auth/OAuthModuleId">;
|
|
1097
|
+
readonly generation: Schema.Int;
|
|
1098
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
1099
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
1100
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1101
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
1102
|
+
readonly stateDigest: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
1103
|
+
readonly requestBindingVerifier: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
1104
|
+
readonly requestBindingExpiresAtMillis: Schema.Int;
|
|
1105
|
+
readonly responseIssuer: Schema.optionalKey<Schema.brand<Schema.String, "effect-auth/OAuthIssuer">>;
|
|
1106
|
+
readonly nowMillis: Schema.Int;
|
|
1107
|
+
}>;
|
|
1108
|
+
type OAuthConnectedAccess = typeof OAuthConnectedAccess.Type;
|
|
1109
|
+
declare const OAuthConnectedIssueDecision: Schema.Union<readonly [Schema.TaggedStruct<"Issued", {
|
|
1110
|
+
readonly flow: Schema.Struct<{
|
|
1111
|
+
readonly context: Schema.Struct<{
|
|
1112
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1113
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
1114
|
+
readonly configurationGeneration: Schema.Int;
|
|
1115
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1116
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
1117
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
1118
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
1119
|
+
readonly moduleId: Schema.brand<Schema.String, "effect-auth/OAuthModuleId">;
|
|
1120
|
+
readonly generation: Schema.Int;
|
|
1121
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
1122
|
+
readonly commandId: Schema.brand<Schema.String, "effect-auth/OAuthCommandId">;
|
|
1123
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
1124
|
+
readonly stateDigest: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
1125
|
+
readonly requestBindingVerifier: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
1126
|
+
readonly requestBindingExpiresAtMillis: Schema.Int;
|
|
1127
|
+
readonly issuedAtMillis: Schema.Int;
|
|
1128
|
+
readonly expiresAtMillis: Schema.Int;
|
|
1129
|
+
readonly claimLifetimeMillis: Schema.Int;
|
|
1130
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-context/v1">;
|
|
1131
|
+
readonly revision: Schema.Struct<{
|
|
1132
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
1133
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1134
|
+
readonly credentials: Schema.$Array<Schema.Struct<{
|
|
1135
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
1136
|
+
readonly revision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1137
|
+
}>>;
|
|
1138
|
+
}>;
|
|
1139
|
+
readonly profile: Schema.Struct<{
|
|
1140
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
1141
|
+
readonly generation: Schema.Int;
|
|
1142
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
1143
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1144
|
+
readonly clientRegistrationId: Schema.String;
|
|
1145
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1146
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
1147
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
1148
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
1149
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
1150
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
1151
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
1152
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
1153
|
+
}>;
|
|
1154
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1155
|
+
readonly reconnect: Schema.optionalKey<Schema.Struct<{
|
|
1156
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1157
|
+
readonly grantVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1158
|
+
readonly tokenVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1159
|
+
readonly cohortGeneration: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1160
|
+
readonly identity: Schema.Struct<{
|
|
1161
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1162
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1163
|
+
readonly subject: Schema.NonEmptyString;
|
|
1164
|
+
}>;
|
|
1165
|
+
readonly configuration: Schema.Struct<{
|
|
1166
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1167
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
1168
|
+
readonly configurationGeneration: Schema.Int;
|
|
1169
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1170
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
1171
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
1172
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
1173
|
+
readonly profile: Schema.Struct<{
|
|
1174
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
1175
|
+
readonly generation: Schema.Int;
|
|
1176
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
1177
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1178
|
+
readonly clientRegistrationId: Schema.String;
|
|
1179
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1180
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
1181
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
1182
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
1183
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
1184
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
1185
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
1186
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
1187
|
+
}>;
|
|
1188
|
+
}>;
|
|
1189
|
+
}>>;
|
|
1190
|
+
readonly maximumEvidenceAgeMillis: Schema.Int;
|
|
1191
|
+
}>;
|
|
1192
|
+
readonly sealed: Schema.Struct<{
|
|
1193
|
+
readonly format: Schema.Literal<"oauth-xchacha20poly1305-v1">;
|
|
1194
|
+
readonly keyId: Schema.String;
|
|
1195
|
+
readonly nonce: Schema.String;
|
|
1196
|
+
readonly ciphertext: Schema.RedactedFromValue<Schema.String>;
|
|
1197
|
+
}>;
|
|
1198
|
+
readonly retentionUntilMillis: Schema.Int;
|
|
1199
|
+
}>;
|
|
1200
|
+
}>, Schema.TaggedStruct<"Rejected", {}>]>;
|
|
1201
|
+
declare const OAuthConnectedClaimDecision: Schema.Union<readonly [Schema.TaggedStruct<"Claimed", {
|
|
1202
|
+
readonly claim: Schema.Struct<{
|
|
1203
|
+
readonly flow: Schema.Struct<{
|
|
1204
|
+
readonly context: Schema.Struct<{
|
|
1205
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1206
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
1207
|
+
readonly configurationGeneration: Schema.Int;
|
|
1208
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1209
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
1210
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
1211
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
1212
|
+
readonly moduleId: Schema.brand<Schema.String, "effect-auth/OAuthModuleId">;
|
|
1213
|
+
readonly generation: Schema.Int;
|
|
1214
|
+
readonly flowId: Schema.brand<Schema.String, "effect-auth/RequestBindingFlowId">;
|
|
1215
|
+
readonly commandId: Schema.brand<Schema.String, "effect-auth/OAuthCommandId">;
|
|
1216
|
+
readonly returnTarget: Schema.brand<Schema.String, "effect-auth/OAuthReturnTarget">;
|
|
1217
|
+
readonly stateDigest: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
1218
|
+
readonly requestBindingVerifier: Schema.brand<Schema.NonEmptyString, "effect-auth/TokenDigest">;
|
|
1219
|
+
readonly requestBindingExpiresAtMillis: Schema.Int;
|
|
1220
|
+
readonly issuedAtMillis: Schema.Int;
|
|
1221
|
+
readonly expiresAtMillis: Schema.Int;
|
|
1222
|
+
readonly claimLifetimeMillis: Schema.Int;
|
|
1223
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-context/v1">;
|
|
1224
|
+
readonly revision: Schema.Struct<{
|
|
1225
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
1226
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1227
|
+
readonly credentials: Schema.$Array<Schema.Struct<{
|
|
1228
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
1229
|
+
readonly revision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1230
|
+
}>>;
|
|
1231
|
+
}>;
|
|
1232
|
+
readonly profile: Schema.Struct<{
|
|
1233
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
1234
|
+
readonly generation: Schema.Int;
|
|
1235
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
1236
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1237
|
+
readonly clientRegistrationId: Schema.String;
|
|
1238
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1239
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
1240
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
1241
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
1242
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
1243
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
1244
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
1245
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
1246
|
+
}>;
|
|
1247
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1248
|
+
readonly reconnect: Schema.optionalKey<Schema.Struct<{
|
|
1249
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1250
|
+
readonly grantVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1251
|
+
readonly tokenVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1252
|
+
readonly cohortGeneration: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1253
|
+
readonly identity: Schema.Struct<{
|
|
1254
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1255
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1256
|
+
readonly subject: Schema.NonEmptyString;
|
|
1257
|
+
}>;
|
|
1258
|
+
readonly configuration: Schema.Struct<{
|
|
1259
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1260
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
1261
|
+
readonly configurationGeneration: Schema.Int;
|
|
1262
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1263
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
1264
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
1265
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
1266
|
+
readonly profile: Schema.Struct<{
|
|
1267
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
1268
|
+
readonly generation: Schema.Int;
|
|
1269
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
1270
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1271
|
+
readonly clientRegistrationId: Schema.String;
|
|
1272
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1273
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
1274
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
1275
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
1276
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
1277
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
1278
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
1279
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
1280
|
+
}>;
|
|
1281
|
+
}>;
|
|
1282
|
+
}>>;
|
|
1283
|
+
readonly maximumEvidenceAgeMillis: Schema.Int;
|
|
1284
|
+
}>;
|
|
1285
|
+
readonly sealed: Schema.Struct<{
|
|
1286
|
+
readonly format: Schema.Literal<"oauth-xchacha20poly1305-v1">;
|
|
1287
|
+
readonly keyId: Schema.String;
|
|
1288
|
+
readonly nonce: Schema.String;
|
|
1289
|
+
readonly ciphertext: Schema.RedactedFromValue<Schema.String>;
|
|
1290
|
+
}>;
|
|
1291
|
+
readonly retentionUntilMillis: Schema.Int;
|
|
1292
|
+
}>;
|
|
1293
|
+
readonly claimId: Schema.brand<Schema.String, "effect-auth/OAuthClaimId">;
|
|
1294
|
+
readonly claimedAtMillis: Schema.Int;
|
|
1295
|
+
readonly claimExpiresAtMillis: Schema.Int;
|
|
1296
|
+
readonly order: Schema.String;
|
|
1297
|
+
}>;
|
|
1298
|
+
}>, Schema.TaggedStruct<"Rejected", {}>]>;
|
|
1299
|
+
declare const OAuthConnectedGrantInspection: Schema.Union<readonly [Schema.TaggedStruct<"Target", {
|
|
1300
|
+
readonly cohortGeneration: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1301
|
+
}>, Schema.TaggedStruct<"Quarantine", {
|
|
1302
|
+
readonly cohortGeneration: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1303
|
+
}>, Schema.TaggedStruct<"Rejected", {}>, Schema.TaggedStruct<"Conflict", {}>]>;
|
|
1304
|
+
declare const OAuthConnectedOutcome: Schema.Union<readonly [Schema.TaggedStruct<"Verified", {
|
|
1305
|
+
readonly grant: Schema.Struct<{
|
|
1306
|
+
readonly context: Schema.Struct<{
|
|
1307
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-token-context/v1">;
|
|
1308
|
+
readonly moduleId: Schema.brand<Schema.String, "effect-auth/OAuthModuleId">;
|
|
1309
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
1310
|
+
readonly identity: Schema.Struct<{
|
|
1311
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1312
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1313
|
+
readonly subject: Schema.NonEmptyString;
|
|
1314
|
+
}>;
|
|
1315
|
+
readonly configuration: Schema.Struct<{
|
|
1316
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1317
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
1318
|
+
readonly configurationGeneration: Schema.Int;
|
|
1319
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1320
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
1321
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
1322
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
1323
|
+
readonly profile: Schema.Struct<{
|
|
1324
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
1325
|
+
readonly generation: Schema.Int;
|
|
1326
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
1327
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1328
|
+
readonly clientRegistrationId: Schema.String;
|
|
1329
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1330
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
1331
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
1332
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
1333
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
1334
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
1335
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
1336
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
1337
|
+
}>;
|
|
1338
|
+
}>;
|
|
1339
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1340
|
+
readonly grantVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1341
|
+
readonly tokenVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1342
|
+
readonly cohortGeneration: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1343
|
+
readonly metadata: Schema.Struct<{
|
|
1344
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1345
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
1346
|
+
readonly accessExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
1347
|
+
readonly refreshExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
1348
|
+
readonly useUntilMillis: Schema.Int;
|
|
1349
|
+
readonly refreshUseUntilMillis: Schema.optionalKey<Schema.Int>;
|
|
1350
|
+
readonly obtainedAtMillis: Schema.Int;
|
|
1351
|
+
readonly profile: Schema.optionalKey<Schema.Struct<{
|
|
1352
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
1353
|
+
readonly handle: Schema.optionalKey<Schema.String>;
|
|
1354
|
+
}>>;
|
|
1355
|
+
}>;
|
|
1356
|
+
}>;
|
|
1357
|
+
readonly sealed: Schema.Struct<{
|
|
1358
|
+
readonly format: Schema.Literal<"oauth-connected-xchacha20poly1305-v1">;
|
|
1359
|
+
readonly keyId: Schema.String;
|
|
1360
|
+
readonly nonce: Schema.String;
|
|
1361
|
+
readonly ciphertext: Schema.RedactedFromValue<Schema.String>;
|
|
1362
|
+
}>;
|
|
1363
|
+
}>;
|
|
1364
|
+
readonly cleanup: Schema.optionalKey<Schema.Struct<{
|
|
1365
|
+
readonly context: Schema.Struct<{
|
|
1366
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-revocation-context/v1">;
|
|
1367
|
+
readonly jobId: Schema.brand<Schema.String, "effect-auth/OAuthClaimId">;
|
|
1368
|
+
readonly token: Schema.Struct<{
|
|
1369
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-token-context/v1">;
|
|
1370
|
+
readonly moduleId: Schema.brand<Schema.String, "effect-auth/OAuthModuleId">;
|
|
1371
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
1372
|
+
readonly identity: Schema.Struct<{
|
|
1373
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1374
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1375
|
+
readonly subject: Schema.NonEmptyString;
|
|
1376
|
+
}>;
|
|
1377
|
+
readonly configuration: Schema.Struct<{
|
|
1378
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1379
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
1380
|
+
readonly configurationGeneration: Schema.Int;
|
|
1381
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1382
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
1383
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
1384
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
1385
|
+
readonly profile: Schema.Struct<{
|
|
1386
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
1387
|
+
readonly generation: Schema.Int;
|
|
1388
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
1389
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1390
|
+
readonly clientRegistrationId: Schema.String;
|
|
1391
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1392
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
1393
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
1394
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
1395
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
1396
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
1397
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
1398
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
1399
|
+
}>;
|
|
1400
|
+
}>;
|
|
1401
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1402
|
+
readonly grantVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1403
|
+
readonly tokenVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1404
|
+
readonly cohortGeneration: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1405
|
+
readonly metadata: Schema.Struct<{
|
|
1406
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1407
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
1408
|
+
readonly accessExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
1409
|
+
readonly refreshExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
1410
|
+
readonly useUntilMillis: Schema.Int;
|
|
1411
|
+
readonly refreshUseUntilMillis: Schema.optionalKey<Schema.Int>;
|
|
1412
|
+
readonly obtainedAtMillis: Schema.Int;
|
|
1413
|
+
readonly profile: Schema.optionalKey<Schema.Struct<{
|
|
1414
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
1415
|
+
readonly handle: Schema.optionalKey<Schema.String>;
|
|
1416
|
+
}>>;
|
|
1417
|
+
}>;
|
|
1418
|
+
}>;
|
|
1419
|
+
}>;
|
|
1420
|
+
readonly sealed: Schema.Struct<{
|
|
1421
|
+
readonly format: Schema.Literal<"oauth-connected-xchacha20poly1305-v1">;
|
|
1422
|
+
readonly keyId: Schema.String;
|
|
1423
|
+
readonly nonce: Schema.String;
|
|
1424
|
+
readonly ciphertext: Schema.RedactedFromValue<Schema.String>;
|
|
1425
|
+
}>;
|
|
1426
|
+
}>>;
|
|
1427
|
+
}>, Schema.TaggedStruct<"Quarantined", {
|
|
1428
|
+
readonly grant: Schema.Struct<{
|
|
1429
|
+
readonly context: Schema.Struct<{
|
|
1430
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-token-context/v1">;
|
|
1431
|
+
readonly moduleId: Schema.brand<Schema.String, "effect-auth/OAuthModuleId">;
|
|
1432
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
1433
|
+
readonly identity: Schema.Struct<{
|
|
1434
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1435
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1436
|
+
readonly subject: Schema.NonEmptyString;
|
|
1437
|
+
}>;
|
|
1438
|
+
readonly configuration: Schema.Struct<{
|
|
1439
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1440
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
1441
|
+
readonly configurationGeneration: Schema.Int;
|
|
1442
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1443
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
1444
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
1445
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
1446
|
+
readonly profile: Schema.Struct<{
|
|
1447
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
1448
|
+
readonly generation: Schema.Int;
|
|
1449
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
1450
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1451
|
+
readonly clientRegistrationId: Schema.String;
|
|
1452
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1453
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
1454
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
1455
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
1456
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
1457
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
1458
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
1459
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
1460
|
+
}>;
|
|
1461
|
+
}>;
|
|
1462
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1463
|
+
readonly grantVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1464
|
+
readonly tokenVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1465
|
+
readonly cohortGeneration: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1466
|
+
readonly metadata: Schema.Struct<{
|
|
1467
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1468
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
1469
|
+
readonly accessExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
1470
|
+
readonly refreshExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
1471
|
+
readonly useUntilMillis: Schema.Int;
|
|
1472
|
+
readonly refreshUseUntilMillis: Schema.optionalKey<Schema.Int>;
|
|
1473
|
+
readonly obtainedAtMillis: Schema.Int;
|
|
1474
|
+
readonly profile: Schema.optionalKey<Schema.Struct<{
|
|
1475
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
1476
|
+
readonly handle: Schema.optionalKey<Schema.String>;
|
|
1477
|
+
}>>;
|
|
1478
|
+
}>;
|
|
1479
|
+
}>;
|
|
1480
|
+
readonly sealed: Schema.Struct<{
|
|
1481
|
+
readonly format: Schema.Literal<"oauth-connected-xchacha20poly1305-v1">;
|
|
1482
|
+
readonly keyId: Schema.String;
|
|
1483
|
+
readonly nonce: Schema.String;
|
|
1484
|
+
readonly ciphertext: Schema.RedactedFromValue<Schema.String>;
|
|
1485
|
+
}>;
|
|
1486
|
+
}>;
|
|
1487
|
+
readonly cleanup: Schema.optionalKey<Schema.Struct<{
|
|
1488
|
+
readonly context: Schema.Struct<{
|
|
1489
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-revocation-context/v1">;
|
|
1490
|
+
readonly jobId: Schema.brand<Schema.String, "effect-auth/OAuthClaimId">;
|
|
1491
|
+
readonly token: Schema.Struct<{
|
|
1492
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-token-context/v1">;
|
|
1493
|
+
readonly moduleId: Schema.brand<Schema.String, "effect-auth/OAuthModuleId">;
|
|
1494
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
1495
|
+
readonly identity: Schema.Struct<{
|
|
1496
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1497
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1498
|
+
readonly subject: Schema.NonEmptyString;
|
|
1499
|
+
}>;
|
|
1500
|
+
readonly configuration: Schema.Struct<{
|
|
1501
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1502
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
1503
|
+
readonly configurationGeneration: Schema.Int;
|
|
1504
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1505
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
1506
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
1507
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
1508
|
+
readonly profile: Schema.Struct<{
|
|
1509
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
1510
|
+
readonly generation: Schema.Int;
|
|
1511
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
1512
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1513
|
+
readonly clientRegistrationId: Schema.String;
|
|
1514
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1515
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
1516
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
1517
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
1518
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
1519
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
1520
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
1521
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
1522
|
+
}>;
|
|
1523
|
+
}>;
|
|
1524
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1525
|
+
readonly grantVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1526
|
+
readonly tokenVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1527
|
+
readonly cohortGeneration: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1528
|
+
readonly metadata: Schema.Struct<{
|
|
1529
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1530
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
1531
|
+
readonly accessExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
1532
|
+
readonly refreshExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
1533
|
+
readonly useUntilMillis: Schema.Int;
|
|
1534
|
+
readonly refreshUseUntilMillis: Schema.optionalKey<Schema.Int>;
|
|
1535
|
+
readonly obtainedAtMillis: Schema.Int;
|
|
1536
|
+
readonly profile: Schema.optionalKey<Schema.Struct<{
|
|
1537
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
1538
|
+
readonly handle: Schema.optionalKey<Schema.String>;
|
|
1539
|
+
}>>;
|
|
1540
|
+
}>;
|
|
1541
|
+
}>;
|
|
1542
|
+
}>;
|
|
1543
|
+
readonly sealed: Schema.Struct<{
|
|
1544
|
+
readonly format: Schema.Literal<"oauth-connected-xchacha20poly1305-v1">;
|
|
1545
|
+
readonly keyId: Schema.String;
|
|
1546
|
+
readonly nonce: Schema.String;
|
|
1547
|
+
readonly ciphertext: Schema.RedactedFromValue<Schema.String>;
|
|
1548
|
+
}>;
|
|
1549
|
+
}>>;
|
|
1550
|
+
}>, Schema.TaggedStruct<"Cancelled", {}>, Schema.TaggedStruct<"Rejected", {}>, Schema.TaggedStruct<"Conflict", {}>, Schema.TaggedStruct<"Ambiguous", {}>]>;
|
|
1551
|
+
type OAuthConnectedOutcome = typeof OAuthConnectedOutcome.Type;
|
|
1552
|
+
declare const OAuthConnectedSettlementDecision: Schema.Union<readonly [Schema.TaggedStruct<"Connected", {
|
|
1553
|
+
readonly grant: Schema.Struct<{
|
|
1554
|
+
readonly context: Schema.Struct<{
|
|
1555
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-token-context/v1">;
|
|
1556
|
+
readonly moduleId: Schema.brand<Schema.String, "effect-auth/OAuthModuleId">;
|
|
1557
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
1558
|
+
readonly identity: Schema.Struct<{
|
|
1559
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1560
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1561
|
+
readonly subject: Schema.NonEmptyString;
|
|
1562
|
+
}>;
|
|
1563
|
+
readonly configuration: Schema.Struct<{
|
|
1564
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1565
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
1566
|
+
readonly configurationGeneration: Schema.Int;
|
|
1567
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1568
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
1569
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
1570
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
1571
|
+
readonly profile: Schema.Struct<{
|
|
1572
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
1573
|
+
readonly generation: Schema.Int;
|
|
1574
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
1575
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1576
|
+
readonly clientRegistrationId: Schema.String;
|
|
1577
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1578
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
1579
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
1580
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
1581
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
1582
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
1583
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
1584
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
1585
|
+
}>;
|
|
1586
|
+
}>;
|
|
1587
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1588
|
+
readonly grantVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1589
|
+
readonly tokenVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1590
|
+
readonly cohortGeneration: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1591
|
+
readonly metadata: Schema.Struct<{
|
|
1592
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1593
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
1594
|
+
readonly accessExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
1595
|
+
readonly refreshExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
1596
|
+
readonly useUntilMillis: Schema.Int;
|
|
1597
|
+
readonly refreshUseUntilMillis: Schema.optionalKey<Schema.Int>;
|
|
1598
|
+
readonly obtainedAtMillis: Schema.Int;
|
|
1599
|
+
readonly profile: Schema.optionalKey<Schema.Struct<{
|
|
1600
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
1601
|
+
readonly handle: Schema.optionalKey<Schema.String>;
|
|
1602
|
+
}>>;
|
|
1603
|
+
}>;
|
|
1604
|
+
}>;
|
|
1605
|
+
readonly sealed: Schema.Struct<{
|
|
1606
|
+
readonly format: Schema.Literal<"oauth-connected-xchacha20poly1305-v1">;
|
|
1607
|
+
readonly keyId: Schema.String;
|
|
1608
|
+
readonly nonce: Schema.String;
|
|
1609
|
+
readonly ciphertext: Schema.RedactedFromValue<Schema.String>;
|
|
1610
|
+
}>;
|
|
1611
|
+
}>;
|
|
1612
|
+
}>, Schema.TaggedStruct<"Cancelled", {}>, Schema.TaggedStruct<"Rejected", {}>, Schema.TaggedStruct<"Conflict", {}>, Schema.TaggedStruct<"Busy", {}>, Schema.TaggedStruct<"Ambiguous", {}>]>;
|
|
1613
|
+
declare const OAuthConnectedDisconnectInspection: Schema.Union<readonly [Schema.TaggedStruct<"Target", {
|
|
1614
|
+
readonly grant: Schema.Struct<{
|
|
1615
|
+
readonly context: Schema.Struct<{
|
|
1616
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-token-context/v1">;
|
|
1617
|
+
readonly moduleId: Schema.brand<Schema.String, "effect-auth/OAuthModuleId">;
|
|
1618
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
1619
|
+
readonly identity: Schema.Struct<{
|
|
1620
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1621
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1622
|
+
readonly subject: Schema.NonEmptyString;
|
|
1623
|
+
}>;
|
|
1624
|
+
readonly configuration: Schema.Struct<{
|
|
1625
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1626
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
1627
|
+
readonly configurationGeneration: Schema.Int;
|
|
1628
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1629
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
1630
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
1631
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
1632
|
+
readonly profile: Schema.Struct<{
|
|
1633
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
1634
|
+
readonly generation: Schema.Int;
|
|
1635
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
1636
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1637
|
+
readonly clientRegistrationId: Schema.String;
|
|
1638
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1639
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
1640
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
1641
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
1642
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
1643
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
1644
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
1645
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
1646
|
+
}>;
|
|
1647
|
+
}>;
|
|
1648
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1649
|
+
readonly grantVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1650
|
+
readonly tokenVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1651
|
+
readonly cohortGeneration: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1652
|
+
readonly metadata: Schema.Struct<{
|
|
1653
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1654
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
1655
|
+
readonly accessExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
1656
|
+
readonly refreshExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
1657
|
+
readonly useUntilMillis: Schema.Int;
|
|
1658
|
+
readonly refreshUseUntilMillis: Schema.optionalKey<Schema.Int>;
|
|
1659
|
+
readonly obtainedAtMillis: Schema.Int;
|
|
1660
|
+
readonly profile: Schema.optionalKey<Schema.Struct<{
|
|
1661
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
1662
|
+
readonly handle: Schema.optionalKey<Schema.String>;
|
|
1663
|
+
}>>;
|
|
1664
|
+
}>;
|
|
1665
|
+
}>;
|
|
1666
|
+
readonly sealed: Schema.optionalKey<Schema.Struct<{
|
|
1667
|
+
readonly format: Schema.Literal<"oauth-connected-xchacha20poly1305-v1">;
|
|
1668
|
+
readonly keyId: Schema.String;
|
|
1669
|
+
readonly nonce: Schema.String;
|
|
1670
|
+
readonly ciphertext: Schema.RedactedFromValue<Schema.String>;
|
|
1671
|
+
}>>;
|
|
1672
|
+
}>;
|
|
1673
|
+
readonly revision: Schema.Struct<{
|
|
1674
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
1675
|
+
readonly securityRevision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1676
|
+
readonly credentials: Schema.$Array<Schema.Struct<{
|
|
1677
|
+
readonly credentialId: Schema.NonEmptyString;
|
|
1678
|
+
readonly revision: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1679
|
+
}>>;
|
|
1680
|
+
}>;
|
|
1681
|
+
}>, Schema.TaggedStruct<"Replay", {
|
|
1682
|
+
readonly result: Schema.TaggedStruct<"Disconnected", {
|
|
1683
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1684
|
+
readonly remoteRevocation: Schema.Literals<readonly ["Pending", "Confirmed", "Unsupported", "Unknown"]>;
|
|
1685
|
+
readonly affectedGrantCount: Schema.Int;
|
|
1686
|
+
readonly replayed: Schema.Boolean;
|
|
1687
|
+
}>;
|
|
1688
|
+
}>, Schema.TaggedStruct<"Rejected", {}>, Schema.TaggedStruct<"Conflict", {}>]>;
|
|
1689
|
+
declare const OAuthConnectedDisconnectDecision: Schema.Union<readonly [Schema.TaggedStruct<"Disconnected", {
|
|
1690
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1691
|
+
readonly remoteRevocation: Schema.Literals<readonly ["Pending", "Confirmed", "Unsupported", "Unknown"]>;
|
|
1692
|
+
readonly affectedGrantCount: Schema.Int;
|
|
1693
|
+
readonly replayed: Schema.Boolean;
|
|
1694
|
+
}>, Schema.TaggedStruct<"Rejected", {}>, Schema.TaggedStruct<"Conflict", {}>]>;
|
|
1695
|
+
declare const OAuthConnectedAccessInspection: Schema.Union<readonly [Schema.TaggedStruct<"Target", {
|
|
1696
|
+
readonly grant: Schema.Struct<{
|
|
1697
|
+
readonly context: Schema.Struct<{
|
|
1698
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-token-context/v1">;
|
|
1699
|
+
readonly moduleId: Schema.brand<Schema.String, "effect-auth/OAuthModuleId">;
|
|
1700
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
1701
|
+
readonly identity: Schema.Struct<{
|
|
1702
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1703
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1704
|
+
readonly subject: Schema.NonEmptyString;
|
|
1705
|
+
}>;
|
|
1706
|
+
readonly configuration: Schema.Struct<{
|
|
1707
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1708
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
1709
|
+
readonly configurationGeneration: Schema.Int;
|
|
1710
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1711
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
1712
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
1713
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
1714
|
+
readonly profile: Schema.Struct<{
|
|
1715
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
1716
|
+
readonly generation: Schema.Int;
|
|
1717
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
1718
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1719
|
+
readonly clientRegistrationId: Schema.String;
|
|
1720
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1721
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
1722
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
1723
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
1724
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
1725
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
1726
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
1727
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
1728
|
+
}>;
|
|
1729
|
+
}>;
|
|
1730
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1731
|
+
readonly grantVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1732
|
+
readonly tokenVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1733
|
+
readonly cohortGeneration: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1734
|
+
readonly metadata: Schema.Struct<{
|
|
1735
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1736
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
1737
|
+
readonly accessExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
1738
|
+
readonly refreshExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
1739
|
+
readonly useUntilMillis: Schema.Int;
|
|
1740
|
+
readonly refreshUseUntilMillis: Schema.optionalKey<Schema.Int>;
|
|
1741
|
+
readonly obtainedAtMillis: Schema.Int;
|
|
1742
|
+
readonly profile: Schema.optionalKey<Schema.Struct<{
|
|
1743
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
1744
|
+
readonly handle: Schema.optionalKey<Schema.String>;
|
|
1745
|
+
}>>;
|
|
1746
|
+
}>;
|
|
1747
|
+
}>;
|
|
1748
|
+
readonly sealed: Schema.Struct<{
|
|
1749
|
+
readonly format: Schema.Literal<"oauth-connected-xchacha20poly1305-v1">;
|
|
1750
|
+
readonly keyId: Schema.String;
|
|
1751
|
+
readonly nonce: Schema.String;
|
|
1752
|
+
readonly ciphertext: Schema.RedactedFromValue<Schema.String>;
|
|
1753
|
+
}>;
|
|
1754
|
+
}>;
|
|
1755
|
+
}>, Schema.TaggedStruct<"Busy", {}>, Schema.TaggedStruct<"ReauthorizationRequired", {}>, Schema.TaggedStruct<"Rejected", {}>]>;
|
|
1756
|
+
declare const OAuthConnectedRefreshDecision: Schema.Union<readonly [Schema.TaggedStruct<"Claimed", {
|
|
1757
|
+
readonly claim: Schema.Struct<{
|
|
1758
|
+
readonly grant: Schema.Struct<{
|
|
1759
|
+
readonly context: Schema.Struct<{
|
|
1760
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-token-context/v1">;
|
|
1761
|
+
readonly moduleId: Schema.brand<Schema.String, "effect-auth/OAuthModuleId">;
|
|
1762
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
1763
|
+
readonly identity: Schema.Struct<{
|
|
1764
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1765
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1766
|
+
readonly subject: Schema.NonEmptyString;
|
|
1767
|
+
}>;
|
|
1768
|
+
readonly configuration: Schema.Struct<{
|
|
1769
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1770
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
1771
|
+
readonly configurationGeneration: Schema.Int;
|
|
1772
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1773
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
1774
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
1775
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
1776
|
+
readonly profile: Schema.Struct<{
|
|
1777
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
1778
|
+
readonly generation: Schema.Int;
|
|
1779
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
1780
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1781
|
+
readonly clientRegistrationId: Schema.String;
|
|
1782
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1783
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
1784
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
1785
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
1786
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
1787
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
1788
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
1789
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
1790
|
+
}>;
|
|
1791
|
+
}>;
|
|
1792
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1793
|
+
readonly grantVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1794
|
+
readonly tokenVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1795
|
+
readonly cohortGeneration: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1796
|
+
readonly metadata: Schema.Struct<{
|
|
1797
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1798
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
1799
|
+
readonly accessExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
1800
|
+
readonly refreshExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
1801
|
+
readonly useUntilMillis: Schema.Int;
|
|
1802
|
+
readonly refreshUseUntilMillis: Schema.optionalKey<Schema.Int>;
|
|
1803
|
+
readonly obtainedAtMillis: Schema.Int;
|
|
1804
|
+
readonly profile: Schema.optionalKey<Schema.Struct<{
|
|
1805
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
1806
|
+
readonly handle: Schema.optionalKey<Schema.String>;
|
|
1807
|
+
}>>;
|
|
1808
|
+
}>;
|
|
1809
|
+
}>;
|
|
1810
|
+
readonly sealed: Schema.Struct<{
|
|
1811
|
+
readonly format: Schema.Literal<"oauth-connected-xchacha20poly1305-v1">;
|
|
1812
|
+
readonly keyId: Schema.String;
|
|
1813
|
+
readonly nonce: Schema.String;
|
|
1814
|
+
readonly ciphertext: Schema.RedactedFromValue<Schema.String>;
|
|
1815
|
+
}>;
|
|
1816
|
+
}>;
|
|
1817
|
+
readonly claimId: Schema.brand<Schema.String, "effect-auth/OAuthClaimId">;
|
|
1818
|
+
readonly claimedAtMillis: Schema.Int;
|
|
1819
|
+
readonly claimExpiresAtMillis: Schema.Int;
|
|
1820
|
+
readonly nextTokenVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1821
|
+
}>;
|
|
1822
|
+
}>, Schema.TaggedStruct<"Busy", {}>, Schema.TaggedStruct<"ReauthorizationRequired", {}>, Schema.TaggedStruct<"Rejected", {}>]>;
|
|
1823
|
+
declare const OAuthConnectedRefreshOutcome: Schema.Union<readonly [Schema.TaggedStruct<"Refreshed", {
|
|
1824
|
+
readonly grant: Schema.Struct<{
|
|
1825
|
+
readonly context: Schema.Struct<{
|
|
1826
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-token-context/v1">;
|
|
1827
|
+
readonly moduleId: Schema.brand<Schema.String, "effect-auth/OAuthModuleId">;
|
|
1828
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
1829
|
+
readonly identity: Schema.Struct<{
|
|
1830
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1831
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1832
|
+
readonly subject: Schema.NonEmptyString;
|
|
1833
|
+
}>;
|
|
1834
|
+
readonly configuration: Schema.Struct<{
|
|
1835
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1836
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
1837
|
+
readonly configurationGeneration: Schema.Int;
|
|
1838
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1839
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
1840
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
1841
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
1842
|
+
readonly profile: Schema.Struct<{
|
|
1843
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
1844
|
+
readonly generation: Schema.Int;
|
|
1845
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
1846
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1847
|
+
readonly clientRegistrationId: Schema.String;
|
|
1848
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1849
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
1850
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
1851
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
1852
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
1853
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
1854
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
1855
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
1856
|
+
}>;
|
|
1857
|
+
}>;
|
|
1858
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1859
|
+
readonly grantVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1860
|
+
readonly tokenVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1861
|
+
readonly cohortGeneration: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1862
|
+
readonly metadata: Schema.Struct<{
|
|
1863
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1864
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
1865
|
+
readonly accessExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
1866
|
+
readonly refreshExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
1867
|
+
readonly useUntilMillis: Schema.Int;
|
|
1868
|
+
readonly refreshUseUntilMillis: Schema.optionalKey<Schema.Int>;
|
|
1869
|
+
readonly obtainedAtMillis: Schema.Int;
|
|
1870
|
+
readonly profile: Schema.optionalKey<Schema.Struct<{
|
|
1871
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
1872
|
+
readonly handle: Schema.optionalKey<Schema.String>;
|
|
1873
|
+
}>>;
|
|
1874
|
+
}>;
|
|
1875
|
+
}>;
|
|
1876
|
+
readonly sealed: Schema.Struct<{
|
|
1877
|
+
readonly format: Schema.Literal<"oauth-connected-xchacha20poly1305-v1">;
|
|
1878
|
+
readonly keyId: Schema.String;
|
|
1879
|
+
readonly nonce: Schema.String;
|
|
1880
|
+
readonly ciphertext: Schema.RedactedFromValue<Schema.String>;
|
|
1881
|
+
}>;
|
|
1882
|
+
}>;
|
|
1883
|
+
readonly cleanup: Schema.optionalKey<Schema.Struct<{
|
|
1884
|
+
readonly context: Schema.Struct<{
|
|
1885
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-revocation-context/v1">;
|
|
1886
|
+
readonly jobId: Schema.brand<Schema.String, "effect-auth/OAuthClaimId">;
|
|
1887
|
+
readonly token: Schema.Struct<{
|
|
1888
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-token-context/v1">;
|
|
1889
|
+
readonly moduleId: Schema.brand<Schema.String, "effect-auth/OAuthModuleId">;
|
|
1890
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
1891
|
+
readonly identity: Schema.Struct<{
|
|
1892
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1893
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1894
|
+
readonly subject: Schema.NonEmptyString;
|
|
1895
|
+
}>;
|
|
1896
|
+
readonly configuration: Schema.Struct<{
|
|
1897
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1898
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
1899
|
+
readonly configurationGeneration: Schema.Int;
|
|
1900
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1901
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
1902
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
1903
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
1904
|
+
readonly profile: Schema.Struct<{
|
|
1905
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
1906
|
+
readonly generation: Schema.Int;
|
|
1907
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
1908
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1909
|
+
readonly clientRegistrationId: Schema.String;
|
|
1910
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1911
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
1912
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
1913
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
1914
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
1915
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
1916
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
1917
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
1918
|
+
}>;
|
|
1919
|
+
}>;
|
|
1920
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1921
|
+
readonly grantVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1922
|
+
readonly tokenVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1923
|
+
readonly cohortGeneration: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1924
|
+
readonly metadata: Schema.Struct<{
|
|
1925
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1926
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
1927
|
+
readonly accessExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
1928
|
+
readonly refreshExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
1929
|
+
readonly useUntilMillis: Schema.Int;
|
|
1930
|
+
readonly refreshUseUntilMillis: Schema.optionalKey<Schema.Int>;
|
|
1931
|
+
readonly obtainedAtMillis: Schema.Int;
|
|
1932
|
+
readonly profile: Schema.optionalKey<Schema.Struct<{
|
|
1933
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
1934
|
+
readonly handle: Schema.optionalKey<Schema.String>;
|
|
1935
|
+
}>>;
|
|
1936
|
+
}>;
|
|
1937
|
+
}>;
|
|
1938
|
+
}>;
|
|
1939
|
+
readonly sealed: Schema.Struct<{
|
|
1940
|
+
readonly format: Schema.Literal<"oauth-connected-xchacha20poly1305-v1">;
|
|
1941
|
+
readonly keyId: Schema.String;
|
|
1942
|
+
readonly nonce: Schema.String;
|
|
1943
|
+
readonly ciphertext: Schema.RedactedFromValue<Schema.String>;
|
|
1944
|
+
}>;
|
|
1945
|
+
}>>;
|
|
1946
|
+
}>, Schema.TaggedStruct<"ReauthorizationRequired", {}>]>;
|
|
1947
|
+
type OAuthConnectedRefreshOutcome = typeof OAuthConnectedRefreshOutcome.Type;
|
|
1948
|
+
declare const OAuthConnectedRefreshSettlement: Schema.Union<readonly [Schema.TaggedStruct<"Refreshed", {
|
|
1949
|
+
readonly grant: Schema.Struct<{
|
|
1950
|
+
readonly context: Schema.Struct<{
|
|
1951
|
+
readonly namespace: Schema.Literal<"effect-auth/oauth-connected-token-context/v1">;
|
|
1952
|
+
readonly moduleId: Schema.brand<Schema.String, "effect-auth/OAuthModuleId">;
|
|
1953
|
+
readonly subjectId: Schema.brand<Schema.NonEmptyString, "effect-auth/SubjectId">;
|
|
1954
|
+
readonly identity: Schema.Struct<{
|
|
1955
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1956
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1957
|
+
readonly subject: Schema.NonEmptyString;
|
|
1958
|
+
}>;
|
|
1959
|
+
readonly configuration: Schema.Struct<{
|
|
1960
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1961
|
+
readonly protocol: Schema.Literals<readonly ["oidc", "oauth"]>;
|
|
1962
|
+
readonly configurationGeneration: Schema.Int;
|
|
1963
|
+
readonly issuer: Schema.brand<Schema.String, "effect-auth/OAuthIssuer">;
|
|
1964
|
+
readonly responseIssuerMode: Schema.Literals<readonly ["required", "unsupported"]>;
|
|
1965
|
+
readonly callbackId: Schema.brand<Schema.String, "effect-auth/OAuthCallbackId">;
|
|
1966
|
+
readonly redirectUri: Schema.brand<Schema.String, "effect-auth/OAuthRedirectUri">;
|
|
1967
|
+
readonly profile: Schema.Struct<{
|
|
1968
|
+
readonly key: Schema.brand<Schema.String, "effect-auth/OAuthPermissionProfileKey">;
|
|
1969
|
+
readonly generation: Schema.Int;
|
|
1970
|
+
readonly issuance: Schema.Literals<readonly ["active", "retired"]>;
|
|
1971
|
+
readonly provider: Schema.brand<Schema.String, "effect-auth/OAuthProviderKey">;
|
|
1972
|
+
readonly clientRegistrationId: Schema.String;
|
|
1973
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1974
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
1975
|
+
readonly retention: Schema.Literals<readonly ["access-only", "access-and-refresh"]>;
|
|
1976
|
+
readonly maximumAccessLifetimeMillis: Schema.Int;
|
|
1977
|
+
readonly maximumRefreshLifetimeMillis: Schema.optionalKey<Schema.Int>;
|
|
1978
|
+
readonly refreshAheadMillis: Schema.Int;
|
|
1979
|
+
readonly refresh: Schema.Literals<readonly ["unsupported", "confidential", "rotating"]>;
|
|
1980
|
+
readonly revocation: Schema.Literals<readonly ["unsupported", "cohort"]>;
|
|
1981
|
+
}>;
|
|
1982
|
+
}>;
|
|
1983
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
1984
|
+
readonly grantVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1985
|
+
readonly tokenVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1986
|
+
readonly cohortGeneration: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
1987
|
+
readonly metadata: Schema.Struct<{
|
|
1988
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1989
|
+
readonly resources: Schema.$Array<Schema.NonEmptyString>;
|
|
1990
|
+
readonly accessExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
1991
|
+
readonly refreshExpiresAtMillis: Schema.optionalKey<Schema.Int>;
|
|
1992
|
+
readonly useUntilMillis: Schema.Int;
|
|
1993
|
+
readonly refreshUseUntilMillis: Schema.optionalKey<Schema.Int>;
|
|
1994
|
+
readonly obtainedAtMillis: Schema.Int;
|
|
1995
|
+
readonly profile: Schema.optionalKey<Schema.Struct<{
|
|
1996
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
1997
|
+
readonly handle: Schema.optionalKey<Schema.String>;
|
|
1998
|
+
}>>;
|
|
1999
|
+
}>;
|
|
2000
|
+
}>;
|
|
2001
|
+
readonly sealed: Schema.Struct<{
|
|
2002
|
+
readonly format: Schema.Literal<"oauth-connected-xchacha20poly1305-v1">;
|
|
2003
|
+
readonly keyId: Schema.String;
|
|
2004
|
+
readonly nonce: Schema.String;
|
|
2005
|
+
readonly ciphertext: Schema.RedactedFromValue<Schema.String>;
|
|
2006
|
+
}>;
|
|
2007
|
+
}>;
|
|
2008
|
+
}>, Schema.TaggedStruct<"ReauthorizationRequired", {}>, Schema.TaggedStruct<"Rejected", {}>]>;
|
|
2009
|
+
declare const OAuthConnectedUseAdmission: Schema.Union<readonly [Schema.TaggedStruct<"Admitted", {
|
|
2010
|
+
readonly admissionId: Schema.brand<Schema.String, "effect-auth/OAuthClaimId">;
|
|
2011
|
+
readonly grantId: Schema.brand<Schema.String, "effect-auth/OAuthGrantId">;
|
|
2012
|
+
readonly tokenVersion: Schema.brand<Schema.NonEmptyString, "effect-auth/SecurityRevision">;
|
|
2013
|
+
readonly admittedAtMillis: Schema.Int;
|
|
2014
|
+
readonly expiresAtMillis: Schema.Int;
|
|
2015
|
+
}>, Schema.TaggedStruct<"Rejected", {}>, Schema.TaggedStruct<"Busy", {}>, Schema.TaggedStruct<"ReauthorizationRequired", {}>]>;
|
|
2016
|
+
declare const OAuthConnectedCleanupResult: Schema.Struct<{
|
|
2017
|
+
readonly terminalized: Schema.Int;
|
|
2018
|
+
readonly removed: Schema.Int;
|
|
2019
|
+
readonly hasMore: Schema.Boolean;
|
|
2020
|
+
}>;
|
|
2021
|
+
//#endregion
|
|
2022
|
+
export { OAuthConnectedAccess, OAuthConnectedAccessInspection, OAuthConnectedActionAuthorization, OAuthConnectedActionChallenge, OAuthConnectedActionRequired, OAuthConnectedBegin, OAuthConnectedBusy, OAuthConnectedClaim, OAuthConnectedClaimDecision, OAuthConnectedCleanupResult, OAuthConnectedComplete, OAuthConnectedConfiguration, OAuthConnectedContinuation, OAuthConnectedDisconnect, OAuthConnectedDisconnectDecision, OAuthConnectedDisconnectGrant, OAuthConnectedDisconnectInspection, OAuthConnectedDisconnected, OAuthConnectedGrantInspection, OAuthConnectedGrantResponse, OAuthConnectedIntent, OAuthConnectedIssueDecision, OAuthConnectedList, OAuthConnectedListResult, OAuthConnectedOrder, OAuthConnectedOutcome, OAuthConnectedPendingFlow, OAuthConnectedPolicy, OAuthConnectedProfile, OAuthConnectedProtectionContext, OAuthConnectedReauthorizationRequired, OAuthConnectedRefreshClaim, OAuthConnectedRefreshDecision, OAuthConnectedRefreshOutcome, OAuthConnectedRefreshSettlement, OAuthConnectedResources, OAuthConnectedResult, OAuthConnectedRevocationContext, OAuthConnectedRevocationJob, OAuthConnectedScopes, OAuthConnectedSealedTokens, OAuthConnectedSettlementDecision, OAuthConnectedStoredGrant, OAuthConnectedSummary, OAuthConnectedTarget, OAuthConnectedTokenContext, OAuthConnectedTokenMaterial, OAuthConnectedTokenMetadata, OAuthConnectedTransactionContext, OAuthConnectedUse, OAuthConnectedUseAdmission, OAuthConnectedUseAuthorization, OAuthGrantId, OAuthPermissionProfileKey };
|
|
2023
|
+
//# sourceMappingURL=connectedModels.d.mts.map
|