@yielded/auth-persistence-drizzle 0.1.0-beta.0 → 0.1.0-beta.12
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/README.md +6 -1
- package/dist/D1.d.mts +155 -40
- package/dist/D1.mjs +10 -6
- package/dist/D1.mjs.map +1 -1
- package/dist/Libsql.d.mts +251 -129
- package/dist/Libsql.mjs +20 -21
- package/dist/Libsql.mjs.map +1 -1
- package/dist/Mysql2.d.mts +208 -56
- package/dist/Mysql2.mjs +13 -8
- package/dist/Mysql2.mjs.map +1 -1
- package/dist/Pglite.d.mts +209 -57
- package/dist/Pglite.mjs +13 -9
- package/dist/Pglite.mjs.map +1 -1
- package/dist/Postgres.d.mts +207 -55
- package/dist/Postgres.mjs +13 -9
- package/dist/Postgres.mjs.map +1 -1
- package/dist/SqliteBun.d.mts +249 -126
- package/dist/SqliteBun.mjs +20 -18
- package/dist/SqliteBun.mjs.map +1 -1
- package/dist/SqliteDo.d.mts +248 -158
- package/dist/SqliteDo.mjs +26 -44
- package/dist/SqliteDo.mjs.map +1 -1
- package/dist/SqliteNode.d.mts +247 -124
- package/dist/SqliteNode.mjs +20 -18
- package/dist/SqliteNode.mjs.map +1 -1
- package/dist/SqliteWasm.d.mts +251 -128
- package/dist/SqliteWasm.mjs +20 -18
- package/dist/SqliteWasm.mjs.map +1 -1
- package/dist/drizzle/D1BatchStatements.d.mts +1 -1
- package/dist/drizzle/D1BatchStatements.mjs.map +1 -1
- package/dist/drizzle/d1-database.d.mts +11 -0
- package/dist/drizzle/d1-database.mjs +8 -0
- package/dist/drizzle/d1-database.mjs.map +1 -0
- package/dist/drizzle/d1-emails.d.mts +8 -7
- package/dist/drizzle/d1-emails.mjs +7 -4
- package/dist/drizzle/d1-emails.mjs.map +1 -1
- package/dist/drizzle/d1-generated-statement.mjs.map +1 -1
- package/dist/drizzle/d1-identity.mjs +12 -9
- package/dist/drizzle/d1-identity.mjs.map +1 -1
- package/dist/drizzle/d1-oauth.d.mts +41 -10
- package/dist/drizzle/d1-oauth.mjs +8 -5
- package/dist/drizzle/d1-oauth.mjs.map +1 -1
- package/dist/drizzle/d1-passkey.d.mts +3 -14
- package/dist/drizzle/d1-passkey.mjs +2 -1
- package/dist/drizzle/d1-passkey.mjs.map +1 -1
- package/dist/drizzle/d1-password-prepared.d.mts +4 -3
- package/dist/drizzle/d1-password-prepared.mjs +3 -1
- package/dist/drizzle/d1-password-prepared.mjs.map +1 -1
- package/dist/drizzle/d1-passwords.d.mts +7 -6
- package/dist/drizzle/d1-passwords.mjs +5 -2
- package/dist/drizzle/d1-passwords.mjs.map +1 -1
- package/dist/drizzle/d1-phone.d.mts +3 -4
- package/dist/drizzle/d1-phone.mjs +2 -1
- package/dist/drizzle/d1-phone.mjs.map +1 -1
- package/dist/drizzle/d1-planning.d.mts +1 -1
- package/dist/drizzle/d1-proofs.d.mts +5 -4
- package/dist/drizzle/d1-proofs.mjs +3 -1
- package/dist/drizzle/d1-proofs.mjs.map +1 -1
- package/dist/drizzle/d1-sessions.d.mts +14 -13
- package/dist/drizzle/d1-sessions.mjs +15 -9
- package/dist/drizzle/d1-sessions.mjs.map +1 -1
- package/dist/drizzle/d1-totp.d.mts +3 -4
- package/dist/drizzle/d1-totp.mjs +2 -1
- package/dist/drizzle/d1-totp.mjs.map +1 -1
- package/dist/drizzle/email-registration.d.mts +1 -1
- package/dist/drizzle/email-registration.mjs +2 -1
- package/dist/drizzle/email-registration.mjs.map +1 -1
- package/dist/drizzle/email-target.d.mts +8 -7
- package/dist/drizzle/email-target.mjs +10 -10
- package/dist/drizzle/email-target.mjs.map +1 -1
- package/dist/drizzle/model.d.mts +2 -126
- package/dist/drizzle/model.mjs +2 -21
- package/dist/drizzle/model.mjs.map +1 -1
- package/dist/drizzle/mysql-database.d.mts +8 -0
- package/dist/drizzle/mysql-database.mjs +8 -0
- package/dist/drizzle/mysql-database.mjs.map +1 -0
- package/dist/drizzle/mysql-emails.d.mts +8 -7
- package/dist/drizzle/mysql-emails.mjs +12 -8
- package/dist/drizzle/mysql-emails.mjs.map +1 -1
- package/dist/drizzle/mysql-identity.mjs +12 -9
- package/dist/drizzle/mysql-identity.mjs.map +1 -1
- package/dist/drizzle/mysql-password-prepared.d.mts +4 -3
- package/dist/drizzle/mysql-password-prepared.mjs +6 -2
- package/dist/drizzle/mysql-password-prepared.mjs.map +1 -1
- package/dist/drizzle/mysql-passwords.d.mts +7 -5
- package/dist/drizzle/mysql-passwords.mjs +11 -7
- package/dist/drizzle/mysql-passwords.mjs.map +1 -1
- package/dist/drizzle/mysql-proofs.d.mts +4 -3
- package/dist/drizzle/mysql-proofs.mjs +8 -4
- package/dist/drizzle/mysql-proofs.mjs.map +1 -1
- package/dist/drizzle/mysql-sessions.d.mts +12 -11
- package/dist/drizzle/mysql-sessions.mjs +16 -12
- package/dist/drizzle/mysql-sessions.mjs.map +1 -1
- package/dist/drizzle/native-database.mjs +10 -0
- package/dist/drizzle/native-database.mjs.map +1 -0
- package/dist/drizzle/oauth-accounts.mjs +1 -1
- package/dist/drizzle/oauth-connected-access.mjs +14 -12
- package/dist/drizzle/oauth-connected-access.mjs.map +1 -1
- package/dist/drizzle/oauth-connected-custody.mjs +2 -2
- package/dist/drizzle/oauth-connected-drivers.mjs +11 -6
- package/dist/drizzle/oauth-connected-drivers.mjs.map +1 -1
- package/dist/drizzle/oauth-connected-flow.mjs +2 -2
- package/dist/drizzle/oauth-connected-input.mjs +14 -1
- package/dist/drizzle/oauth-connected-input.mjs.map +1 -1
- package/dist/drizzle/oauth-connected-maintenance.mjs +1 -1
- package/dist/drizzle/oauth-connected-management.mjs +2 -2
- package/dist/drizzle/oauth-connected-model.d.mts +17 -3
- package/dist/drizzle/oauth-connected-model.mjs.map +1 -1
- package/dist/drizzle/oauth-connected-settlement.mjs +51 -41
- package/dist/drizzle/oauth-connected-settlement.mjs.map +1 -1
- package/dist/drizzle/oauth-connected-sign-in.mjs +263 -0
- package/dist/drizzle/oauth-connected-sign-in.mjs.map +1 -0
- package/dist/drizzle/oauth-connected-state.d.mts +110 -2
- package/dist/drizzle/oauth-connected-state.mjs +9 -4
- package/dist/drizzle/oauth-connected-state.mjs.map +1 -1
- package/dist/drizzle/oauth-connected-target.d.mts +142 -15
- package/dist/drizzle/oauth-connected-target.mjs +9 -6
- package/dist/drizzle/oauth-connected-target.mjs.map +1 -1
- package/dist/drizzle/oauth-drivers.mjs +9 -7
- package/dist/drizzle/oauth-drivers.mjs.map +1 -1
- package/dist/drizzle/oauth-flow.d.mts +1 -1
- package/dist/drizzle/oauth-flow.mjs +1 -1
- package/dist/drizzle/oauth-input.mjs +1 -1
- package/dist/drizzle/oauth-model.d.mts +1 -1
- package/dist/drizzle/oauth-owner.d.mts +1 -1
- package/dist/drizzle/oauth-registration.d.mts +2 -2
- package/dist/drizzle/oauth-registration.mjs +1 -1
- package/dist/drizzle/oauth-state.mjs +5 -4
- package/dist/drizzle/oauth-state.mjs.map +1 -1
- package/dist/drizzle/oauth-target.d.mts +14 -13
- package/dist/drizzle/oauth-target.mjs +14 -13
- package/dist/drizzle/oauth-target.mjs.map +1 -1
- package/dist/drizzle/passkey-drivers.mjs +8 -6
- package/dist/drizzle/passkey-drivers.mjs.map +1 -1
- package/dist/drizzle/passkey-write-drivers.mjs +5 -3
- package/dist/drizzle/passkey-write-drivers.mjs.map +1 -1
- package/dist/drizzle/passkey-write-target.d.mts +1 -1
- package/dist/drizzle/password-prepared-sql.mjs +2 -1
- package/dist/drizzle/password-prepared-sql.mjs.map +1 -1
- package/dist/drizzle/password-prepared-state.mjs +1 -1
- package/dist/drizzle/password-prepared-target.d.mts +4 -3
- package/dist/drizzle/password-prepared-target.mjs +4 -3
- package/dist/drizzle/password-prepared-target.mjs.map +1 -1
- package/dist/drizzle/password-registration.mjs +2 -1
- package/dist/drizzle/password-registration.mjs.map +1 -1
- package/dist/drizzle/password-target.d.mts +6 -5
- package/dist/drizzle/password-target.mjs +8 -8
- package/dist/drizzle/password-target.mjs.map +1 -1
- package/dist/drizzle/pg-database.d.mts +9 -0
- package/dist/drizzle/pg-database.mjs +8 -0
- package/dist/drizzle/pg-database.mjs.map +1 -0
- package/dist/drizzle/pg-emails.d.mts +8 -7
- package/dist/drizzle/pg-emails.mjs +12 -8
- package/dist/drizzle/pg-emails.mjs.map +1 -1
- package/dist/drizzle/pg-identity.mjs +92 -0
- package/dist/drizzle/pg-identity.mjs.map +1 -0
- package/dist/drizzle/pg-password-prepared.d.mts +4 -3
- package/dist/drizzle/pg-password-prepared.mjs +6 -2
- package/dist/drizzle/pg-password-prepared.mjs.map +1 -1
- package/dist/drizzle/pg-passwords.d.mts +7 -5
- package/dist/drizzle/pg-passwords.mjs +11 -7
- package/dist/drizzle/pg-passwords.mjs.map +1 -1
- package/dist/drizzle/pg-proofs.d.mts +4 -3
- package/dist/drizzle/pg-proofs.mjs +8 -4
- package/dist/drizzle/pg-proofs.mjs.map +1 -1
- package/dist/drizzle/pg-sessions.d.mts +12 -11
- package/dist/drizzle/pg-sessions.mjs +16 -12
- package/dist/drizzle/pg-sessions.mjs.map +1 -1
- package/dist/drizzle/phone-model.d.mts +1 -1
- package/dist/drizzle/phone-target.d.mts +5 -4
- package/dist/drizzle/phone-target.mjs +12 -11
- package/dist/drizzle/phone-target.mjs.map +1 -1
- package/dist/drizzle/proof-target.d.mts +4 -3
- package/dist/drizzle/proof-target.mjs +5 -5
- package/dist/drizzle/proof-target.mjs.map +1 -1
- package/dist/drizzle/session-sql.d.mts +1 -0
- package/dist/drizzle/session-target.d.mts +11 -9
- package/dist/drizzle/session-target.mjs +11 -11
- package/dist/drizzle/session-target.mjs.map +1 -1
- package/dist/drizzle/sqlite-emails.mjs +9 -5
- package/dist/drizzle/sqlite-emails.mjs.map +1 -1
- package/dist/drizzle/sqlite-identity.mjs +14 -11
- package/dist/drizzle/sqlite-identity.mjs.map +1 -1
- package/dist/drizzle/sqlite-password-prepared.mjs +7 -3
- package/dist/drizzle/sqlite-password-prepared.mjs.map +1 -1
- package/dist/drizzle/sqlite-passwords.mjs +10 -6
- package/dist/drizzle/sqlite-passwords.mjs.map +1 -1
- package/dist/drizzle/sqlite-proofs.mjs +7 -3
- package/dist/drizzle/sqlite-proofs.mjs.map +1 -1
- package/dist/drizzle/sqlite-sessions.mjs +16 -12
- package/dist/drizzle/sqlite-sessions.mjs.map +1 -1
- package/dist/drizzle/standalone-guard.d.mts +2 -0
- package/dist/drizzle/standalone-guard.mjs +8 -4
- package/dist/drizzle/standalone-guard.mjs.map +1 -1
- package/dist/drizzle/totp-model.d.mts +1 -1
- package/dist/drizzle/totp-target.d.mts +5 -4
- package/dist/drizzle/totp-target.mjs +31 -28
- package/dist/drizzle/totp-target.mjs.map +1 -1
- package/dist/drizzle/transaction-mysql.mjs +1 -1
- package/dist/drizzle/transaction-mysql.mjs.map +1 -1
- package/dist/index.d.mts +2 -4
- package/dist/index.mjs +2 -4
- package/dist/internal/drizzle-postgres.mjs.map +1 -1
- package/dist/internal/drizzle-sqlite.mjs.map +1 -1
- package/package.json +1 -1
- package/src/D1.ts +37 -26
- package/src/Libsql.ts +45 -61
- package/src/Mysql2.ts +39 -35
- package/src/Pglite.ts +48 -30
- package/src/Postgres.ts +48 -30
- package/src/SqliteBun.ts +59 -68
- package/src/SqliteDo.ts +61 -274
- package/src/SqliteNode.ts +56 -66
- package/src/SqliteWasm.ts +56 -66
- package/src/drizzle/D1BatchStatements.ts +1 -1
- package/src/drizzle/d1-database.ts +10 -0
- package/src/drizzle/d1-emails.ts +86 -88
- package/src/drizzle/d1-generated-statement.ts +1 -1
- package/src/drizzle/d1-identity.ts +17 -20
- package/src/drizzle/d1-oauth.ts +19 -8
- package/src/drizzle/d1-passkey.ts +5 -1
- package/src/drizzle/d1-password-prepared.ts +40 -42
- package/src/drizzle/d1-passwords.ts +76 -80
- package/src/drizzle/d1-phone.ts +5 -1
- package/src/drizzle/d1-proofs.ts +31 -34
- package/src/drizzle/d1-sessions.ts +53 -40
- package/src/drizzle/d1-totp.ts +5 -1
- package/src/drizzle/email-registration.ts +6 -2
- package/src/drizzle/email-target.ts +18 -20
- package/src/drizzle/model.ts +1 -208
- package/src/drizzle/mysql-database.ts +8 -0
- package/src/drizzle/mysql-emails.ts +29 -17
- package/src/drizzle/mysql-identity.ts +18 -21
- package/src/drizzle/mysql-password-prepared.ts +11 -9
- package/src/drizzle/mysql-passwords.ts +22 -10
- package/src/drizzle/mysql-proofs.ts +17 -6
- package/src/drizzle/mysql-sessions.ts +41 -18
- package/src/drizzle/native-database.ts +22 -0
- package/src/drizzle/oauth-connected-access.ts +8 -1
- package/src/drizzle/oauth-connected-drivers.ts +21 -6
- package/src/drizzle/oauth-connected-input.ts +13 -0
- package/src/drizzle/oauth-connected-model.ts +17 -0
- package/src/drizzle/oauth-connected-settlement.ts +65 -42
- package/src/drizzle/oauth-connected-sign-in.ts +438 -0
- package/src/drizzle/oauth-connected-state.ts +19 -7
- package/src/drizzle/oauth-connected-target.ts +26 -18
- package/src/drizzle/oauth-drivers.ts +26 -10
- package/src/drizzle/oauth-state.ts +5 -4
- package/src/drizzle/oauth-target.ts +31 -43
- package/src/drizzle/passkey-drivers.ts +21 -13
- package/src/drizzle/passkey-write-drivers.ts +11 -6
- package/src/drizzle/password-prepared-sql.ts +2 -4
- package/src/drizzle/password-prepared-target.ts +10 -7
- package/src/drizzle/password-registration.ts +7 -8
- package/src/drizzle/password-target.ts +20 -19
- package/src/drizzle/pg-database.ts +10 -0
- package/src/drizzle/pg-emails.ts +29 -17
- package/src/drizzle/pg-identity.ts +297 -0
- package/src/drizzle/pg-password-prepared.ts +11 -9
- package/src/drizzle/pg-passwords.ts +22 -10
- package/src/drizzle/pg-proofs.ts +17 -6
- package/src/drizzle/pg-sessions.ts +41 -18
- package/src/drizzle/phone-target.ts +23 -18
- package/src/drizzle/proof-target.ts +10 -13
- package/src/drizzle/session-target.ts +33 -51
- package/src/drizzle/sqlite-emails.ts +31 -14
- package/src/drizzle/sqlite-identity.ts +22 -42
- package/src/drizzle/sqlite-password-prepared.ts +24 -10
- package/src/drizzle/sqlite-passwords.ts +30 -16
- package/src/drizzle/sqlite-proofs.ts +29 -6
- package/src/drizzle/sqlite-sessions.ts +50 -24
- package/src/drizzle/standalone-guard.ts +19 -7
- package/src/drizzle/totp-target.ts +62 -61
- package/src/drizzle/transaction-mysql.ts +1 -1
- package/src/index.ts +0 -24
- package/src/internal/drizzle-postgres.ts +1 -1
- package/src/internal/drizzle-sqlite.ts +1 -1
- package/dist/drizzle/d1-identity.d.mts +0 -30
- package/dist/drizzle/mysql-identity.d.mts +0 -21
- package/dist/drizzle/mysql.d.mts +0 -69
- package/dist/drizzle/mysql.mjs +0 -218
- package/dist/drizzle/mysql.mjs.map +0 -1
- package/dist/drizzle/pg.d.mts +0 -80
- package/dist/drizzle/pg.mjs +0 -289
- package/dist/drizzle/pg.mjs.map +0 -1
- package/dist/drizzle/sqlite.d.mts +0 -77
- package/dist/drizzle/sqlite.mjs +0 -217
- package/dist/drizzle/sqlite.mjs.map +0 -1
- package/src/drizzle/mysql.ts +0 -687
- package/src/drizzle/pg.ts +0 -984
- package/src/drizzle/sqlite.ts +0 -705
package/dist/Postgres.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExternalIdentityTables, IdentityTables, SubjectProvisioningTables } from "./drizzle/model.mjs";
|
|
2
2
|
import { PasskeyCredentialMapping, PasskeyEnrollmentContextMapping, PasskeyPersistenceMapping } from "./drizzle/passkey-model.mjs";
|
|
3
3
|
import { OAuthAccountsMapping, OAuthRegistrationAuthority, OAuthRegistrationIntentMapping, OAuthRegistrationMapping, OAuthSignInMapping } from "./drizzle/oauth-model.mjs";
|
|
4
4
|
import { OAuthConnectedMapping, OAuthConnectedRevocationMapping } from "./drizzle/oauth-connected-model.mjs";
|
|
@@ -12,44 +12,35 @@ import "./index.mjs";
|
|
|
12
12
|
import { SuppliedService } from "./drizzle/SuppliedService.mjs";
|
|
13
13
|
import { TotpCoordinatorError } from "./drizzle/totp-target.mjs";
|
|
14
14
|
import { PhoneCoordinatorError } from "./drizzle/phone-target.mjs";
|
|
15
|
-
import {
|
|
15
|
+
import { Database } from "./drizzle/pg-database.mjs";
|
|
16
16
|
import { coordinatePgAuthenticationAuthority, coordinatePgPendingAuthentication, coordinatePgSessionStepUp, coordinatePgSignedSessionValidity, coordinatePgStatefulSessions, makePgAuthenticationAuthorityServices, makePgPendingAuthenticationServices, makePgSessionStepUpServices, makePgSignedSessionValidityServices, makePgStatefulSessionServices } from "./drizzle/pg-sessions.mjs";
|
|
17
17
|
import { coordinatePgProofPersistence, makePgProofPersistenceServices } from "./drizzle/pg-proofs.mjs";
|
|
18
18
|
import { coordinatePgPasswordPersistence, coordinatePgPasswordRegistration, makePgPasswordPersistenceServices, makePgPasswordRegistrationServices } from "./drizzle/pg-passwords.mjs";
|
|
19
19
|
import { coordinatePgEmailAddress, coordinatePgEmailRegistration, makePgEmailAddressServices, makePgEmailRegistrationServices, makePgEmailSignInServices } from "./drizzle/pg-emails.mjs";
|
|
20
20
|
import { coordinatePgPasswordPreparedPersistence, makePgPasswordPreparedPersistenceServices } from "./drizzle/pg-password-prepared.mjs";
|
|
21
|
-
import {
|
|
22
|
-
import { Effect } from "effect";
|
|
21
|
+
import { Effect, Layer } from "effect";
|
|
23
22
|
import { AnyPgTable } from "drizzle-orm/pg-core";
|
|
24
23
|
import { EffectPgDatabase } from "drizzle-orm/effect-postgres";
|
|
25
24
|
//#region src/Postgres.d.ts
|
|
26
|
-
export declare const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
readonly issueChallenge: (input: import("@yielded/auth/Schema").NewChallenge) => Effect.Effect<void, import("@yielded/auth/AuthStore").IssueChallengeError>;
|
|
30
|
-
readonly consumeChallenge: (input: import("@yielded/auth/Schema").ConsumeChallenge) => Effect.Effect<import("@yielded/auth/Schema").VerifiedEmail, import("@yielded/auth/AuthStore").EmailOtpRejected | import("@yielded/auth/Errors").AuthStoreError>;
|
|
31
|
-
readonly issueRegistration: (input: import("@yielded/auth/Schema").NewRegistration) => Effect.Effect<void, import("@yielded/auth/Errors").AuthStoreError>;
|
|
32
|
-
readonly inspectRegistration: (tokenDigest: import("@yielded/auth/Schema").TokenDigest) => Effect.Effect<import("@yielded/auth/Schema").PendingRegistration, import("@yielded/auth/Errors").InvalidRegistration | import("@yielded/auth/Errors").AuthStoreError>;
|
|
33
|
-
readonly consumeRegistration: (input: import("@yielded/auth/Schema").ConsumeRegistration) => Effect.Effect<void, import("@yielded/auth/Errors").InvalidRegistration | import("@yielded/auth/Errors").AuthStoreError>;
|
|
34
|
-
};
|
|
35
|
-
readonly oauthStateStore: {
|
|
36
|
-
readonly issue: (state: import("@yielded/auth/OAuth").OAuthState) => Effect.Effect<void, import("@yielded/auth/Errors").AuthStoreError>;
|
|
37
|
-
readonly consume: (stateDigest: import("@yielded/auth/Schema").TokenDigest) => Effect.Effect<import("@yielded/auth/OAuth").OAuthState, import("@yielded/auth/OAuth").InvalidOAuthState | import("@yielded/auth/Errors").AuthStoreError>;
|
|
25
|
+
export declare const makeSubjectProvisioningServices: <Subject extends AnyPgTable, Identifier extends AnyPgTable, Request extends AnyPgTable, NativeId>(mapping: SubjectProvisioningTables<Subject, Identifier, Request, NativeId>) => Effect.Effect<{
|
|
26
|
+
readonly subjectProvisioner: {
|
|
27
|
+
readonly provision: (input: import("@yielded/auth/Identity").SubjectProvisioningInput) => Effect.Effect<import("@yielded/auth/Identity").ProvisioningResult, import("@yielded/auth/Identity").IdentityConflict | import("@yielded/auth/Identity").IdentityUnavailable>;
|
|
38
28
|
};
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
readonly
|
|
29
|
+
}, never, Database>;
|
|
30
|
+
export declare const makeExternalIdentityServices: <Subject extends AnyPgTable, External extends AnyPgTable, NativeId>(mapping: ExternalIdentityTables<Subject, External, NativeId>) => Effect.Effect<{
|
|
31
|
+
readonly externalIdentityMutation: {
|
|
32
|
+
readonly bind: (subjectId: import("@yielded/auth/Schema").SubjectId, identity: import("@yielded/auth/Identity").ExternalIdentity) => Effect.Effect<void, import("@yielded/auth/Identity").IdentityConflict | import("@yielded/auth/Identity").IdentityUnavailable>;
|
|
43
33
|
};
|
|
44
|
-
}
|
|
45
|
-
export declare const
|
|
34
|
+
}, never, Database>;
|
|
35
|
+
export declare const commitMode: "interactive";
|
|
36
|
+
export declare const makeIdentityServices: <Subject extends AnyPgTable, Identifier extends AnyPgTable, External extends AnyPgTable, Request extends AnyPgTable, NativeId>(mapping: IdentityTables<Subject, Identifier, External, Request, NativeId>) => Effect.Effect<{
|
|
46
37
|
subjectProvisioner: {
|
|
47
38
|
readonly provision: (input: import("@yielded/auth/Identity").SubjectProvisioningInput) => Effect.Effect<import("@yielded/auth/Identity").ProvisioningResult, import("@yielded/auth/Identity").IdentityConflict | import("@yielded/auth/Identity").IdentityUnavailable>;
|
|
48
39
|
};
|
|
49
40
|
externalIdentityMutation: {
|
|
50
41
|
readonly bind: (subjectId: import("@yielded/auth/Schema").SubjectId, identity: import("@yielded/auth/Identity").ExternalIdentity) => Effect.Effect<void, import("@yielded/auth/Identity").IdentityConflict | import("@yielded/auth/Identity").IdentityUnavailable>;
|
|
51
42
|
};
|
|
52
|
-
}
|
|
43
|
+
}, never, Database>;
|
|
53
44
|
export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
54
45
|
dialect: "pg";
|
|
55
46
|
}>, O extends AnyPgTable<{
|
|
@@ -64,7 +55,7 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
64
55
|
dialect: "pg";
|
|
65
56
|
}>, U extends AnyPgTable<{
|
|
66
57
|
dialect: "pg";
|
|
67
|
-
}>, N>(
|
|
58
|
+
}>, N>(mapping: OAuthAccountsMapping<S, O, C, AC, F, TA, U, N>) => Effect.Effect<{
|
|
68
59
|
oauthAccountsPersistence: {
|
|
69
60
|
readonly capture: (input: {
|
|
70
61
|
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
@@ -74,6 +65,8 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
74
65
|
readonly flow: import("@yielded/auth/OAuth").OAuthLinkPendingFlow;
|
|
75
66
|
readonly authorization: import("@yielded/auth/OAuth").OAuthActionAuthorization;
|
|
76
67
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
68
|
+
readonly _tag: "Rejected";
|
|
69
|
+
} | {
|
|
77
70
|
readonly _tag: "Issued";
|
|
78
71
|
readonly flow: {
|
|
79
72
|
readonly context: {
|
|
@@ -88,6 +81,21 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
88
81
|
readonly generation: number;
|
|
89
82
|
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
90
83
|
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
84
|
+
readonly access?: {
|
|
85
|
+
readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
86
|
+
readonly generation: number;
|
|
87
|
+
readonly issuance: "active" | "retired";
|
|
88
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
89
|
+
readonly clientRegistrationId: string;
|
|
90
|
+
readonly scopes: readonly string[];
|
|
91
|
+
readonly resources: readonly string[];
|
|
92
|
+
readonly retention: "access-and-refresh" | "access-only";
|
|
93
|
+
readonly maximumAccessLifetimeMillis: number;
|
|
94
|
+
readonly maximumRefreshLifetimeMillis?: number | undefined;
|
|
95
|
+
readonly refreshAheadMillis: number;
|
|
96
|
+
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
97
|
+
readonly revocation: "cohort" | "unsupported";
|
|
98
|
+
} | undefined;
|
|
91
99
|
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
92
100
|
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
93
101
|
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
@@ -114,8 +122,6 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
114
122
|
};
|
|
115
123
|
readonly retentionUntilMillis: number;
|
|
116
124
|
};
|
|
117
|
-
} | {
|
|
118
|
-
readonly _tag: "Rejected";
|
|
119
125
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
120
126
|
readonly preflight: (input: import("@yielded/auth/OAuth").OAuthLinkAccess) => Effect.Effect<import("@yielded/auth/OAuth").OAuthLinkPendingFlow | undefined, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
121
127
|
readonly claim: <A>(input: {
|
|
@@ -141,6 +147,21 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
141
147
|
readonly generation: number;
|
|
142
148
|
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
143
149
|
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
150
|
+
readonly access?: {
|
|
151
|
+
readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
152
|
+
readonly generation: number;
|
|
153
|
+
readonly issuance: "active" | "retired";
|
|
154
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
155
|
+
readonly clientRegistrationId: string;
|
|
156
|
+
readonly scopes: readonly string[];
|
|
157
|
+
readonly resources: readonly string[];
|
|
158
|
+
readonly retention: "access-and-refresh" | "access-only";
|
|
159
|
+
readonly maximumAccessLifetimeMillis: number;
|
|
160
|
+
readonly maximumRefreshLifetimeMillis?: number | undefined;
|
|
161
|
+
readonly refreshAheadMillis: number;
|
|
162
|
+
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
163
|
+
readonly revocation: "cohort" | "unsupported";
|
|
164
|
+
} | undefined;
|
|
144
165
|
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
145
166
|
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
146
167
|
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
@@ -184,6 +205,8 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
184
205
|
readonly _tag: "Cancelled";
|
|
185
206
|
} | {
|
|
186
207
|
readonly _tag: "Ambiguous";
|
|
208
|
+
} | {
|
|
209
|
+
readonly _tag: "Conflict";
|
|
187
210
|
} | {
|
|
188
211
|
readonly _tag: "Linked";
|
|
189
212
|
readonly credential: {
|
|
@@ -205,8 +228,6 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
205
228
|
};
|
|
206
229
|
};
|
|
207
230
|
readonly changed: boolean;
|
|
208
|
-
} | {
|
|
209
|
-
readonly _tag: "Conflict";
|
|
210
231
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
211
232
|
readonly inspectUnlink: (input: {
|
|
212
233
|
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
@@ -284,7 +305,7 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
284
305
|
readonly hasMore: boolean;
|
|
285
306
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
286
307
|
};
|
|
287
|
-
}, never, import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthSignInServices: <S extends AnyPgTable<{
|
|
308
|
+
}, never, Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthSignInServices: <S extends AnyPgTable<{
|
|
288
309
|
dialect: "pg";
|
|
289
310
|
}>, O extends AnyPgTable<{
|
|
290
311
|
dialect: "pg";
|
|
@@ -294,7 +315,7 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
294
315
|
dialect: "pg";
|
|
295
316
|
}>, F extends AnyPgTable<{
|
|
296
317
|
dialect: "pg";
|
|
297
|
-
}>, N>(
|
|
318
|
+
}>, N>(mapping: OAuthSignInMapping<S, O, C, AC, F, N>) => Effect.Effect<{
|
|
298
319
|
oauthSignInPersistence: {
|
|
299
320
|
readonly issue: <A>(input: import("@yielded/auth/OAuth").OAuthPendingFlow, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<import("@yielded/auth/OAuth").OAuthIssueDecision, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
300
321
|
readonly claim: <A>(input: {
|
|
@@ -326,7 +347,7 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
326
347
|
readonly hasMore: boolean;
|
|
327
348
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
328
349
|
};
|
|
329
|
-
}, never, import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthRegistrationIntentServices: <S extends AnyPgTable<{
|
|
350
|
+
}, never, Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthRegistrationIntentServices: <S extends AnyPgTable<{
|
|
330
351
|
dialect: "pg";
|
|
331
352
|
}>, O extends AnyPgTable<{
|
|
332
353
|
dialect: "pg";
|
|
@@ -340,7 +361,7 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
340
361
|
dialect: "pg";
|
|
341
362
|
}>, I extends AnyPgTable<{
|
|
342
363
|
dialect: "pg";
|
|
343
|
-
}>, N>(
|
|
364
|
+
}>, N>(mapping: OAuthRegistrationIntentMapping<S, O, C, AC, F, TA, I, N>) => Effect.Effect<{
|
|
344
365
|
oauthRegistrationIntents: {
|
|
345
366
|
readonly settle: <A>(input: {
|
|
346
367
|
readonly claim: import("@yielded/auth/OAuth").OAuthClaim;
|
|
@@ -349,7 +370,7 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
349
370
|
readonly nowMillis: number;
|
|
350
371
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<import("@yielded/auth/OAuth").OAuthRegistrationSettlement, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
351
372
|
};
|
|
352
|
-
}, never, import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthRegistrationServices: <Registration, S extends AnyPgTable<{
|
|
373
|
+
}, never, Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthRegistrationServices: <Registration, S extends AnyPgTable<{
|
|
353
374
|
dialect: "pg";
|
|
354
375
|
}>, O extends AnyPgTable<{
|
|
355
376
|
dialect: "pg";
|
|
@@ -363,9 +384,9 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
363
384
|
dialect: "pg";
|
|
364
385
|
}>, R extends AnyPgTable<{
|
|
365
386
|
dialect: "pg";
|
|
366
|
-
}>, N>(
|
|
387
|
+
}>, N>(mapping: OAuthRegistrationMapping<Registration, S, O, C, AC, TA, I, R, N>) => Effect.Effect<{
|
|
367
388
|
registrationAuthority: OAuthRegistrationAuthority<Registration>;
|
|
368
|
-
}, never, import("@yielded/auth/Hooks").LifecycleHooks>, coordinateOAuthRegistration: {
|
|
389
|
+
}, never, Database | import("@yielded/auth/Hooks").LifecycleHooks>, coordinateOAuthRegistration: {
|
|
369
390
|
<Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, TargetId, Registration, S extends AnyPgTable<{
|
|
370
391
|
dialect: "pg";
|
|
371
392
|
}>, O extends AnyPgTable<{
|
|
@@ -537,8 +558,100 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
537
558
|
dialect: "pg";
|
|
538
559
|
}>, N, J extends AnyPgTable<{
|
|
539
560
|
dialect: "pg";
|
|
540
|
-
}> = never>(
|
|
561
|
+
}> = never>(mapping: OAuthConnectedMapping<S, AC, T, O, F, G, C, H, UA, DC, N, J>) => Effect.Effect<{
|
|
541
562
|
oauthConnectedPersistence: {
|
|
563
|
+
readonly claimSignIn: <A>(input: {
|
|
564
|
+
readonly claim: import("@yielded/auth/OAuth").OAuthClaim;
|
|
565
|
+
readonly configuration: import("@yielded/auth/OAuth").OAuthConnectedConfiguration;
|
|
566
|
+
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<import("@yielded/auth/OAuth").OAuthSignInAccessClaim, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
|
|
567
|
+
readonly inspectSignIn: (input: {
|
|
568
|
+
readonly reservation: import("@yielded/auth/OAuth").OAuthSignInAccessClaim;
|
|
569
|
+
readonly credential: import("@yielded/auth/OAuth").OAuthCredentialSnapshot;
|
|
570
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
571
|
+
}) => Effect.Effect<import("@yielded/auth/OAuth").OAuthSignInAccessInspection, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
572
|
+
readonly settleSignIn: <A>(input: {
|
|
573
|
+
readonly reservation: import("@yielded/auth/OAuth").OAuthSignInAccessClaim;
|
|
574
|
+
readonly outcome: import("@yielded/auth/OAuth").OAuthSignInAccessOutcome;
|
|
575
|
+
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
576
|
+
readonly _tag: "Rejected";
|
|
577
|
+
} | {
|
|
578
|
+
readonly _tag: "Cancelled";
|
|
579
|
+
} | {
|
|
580
|
+
readonly _tag: "Ambiguous";
|
|
581
|
+
} | {
|
|
582
|
+
readonly _tag: "Connected";
|
|
583
|
+
readonly grant: {
|
|
584
|
+
readonly context: {
|
|
585
|
+
readonly namespace: "effect-auth/oauth-connected-token-context/v1";
|
|
586
|
+
readonly exchangeOrder: string;
|
|
587
|
+
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
588
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
589
|
+
readonly identity: {
|
|
590
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
591
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
592
|
+
readonly subject: string;
|
|
593
|
+
};
|
|
594
|
+
readonly configuration: {
|
|
595
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
596
|
+
readonly protocol: "oauth" | "oidc";
|
|
597
|
+
readonly configurationGeneration: number;
|
|
598
|
+
readonly issuer: string & import("effect/Brand").Brand<"effect-auth/OAuthIssuer">;
|
|
599
|
+
readonly responseIssuerMode: "required" | "unsupported";
|
|
600
|
+
readonly callbackId: string & import("effect/Brand").Brand<"effect-auth/OAuthCallbackId">;
|
|
601
|
+
readonly redirectUri: string & import("effect/Brand").Brand<"effect-auth/OAuthRedirectUri">;
|
|
602
|
+
readonly profile: {
|
|
603
|
+
readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
604
|
+
readonly generation: number;
|
|
605
|
+
readonly issuance: "active" | "retired";
|
|
606
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
607
|
+
readonly clientRegistrationId: string;
|
|
608
|
+
readonly scopes: readonly string[];
|
|
609
|
+
readonly resources: readonly string[];
|
|
610
|
+
readonly retention: "access-and-refresh" | "access-only";
|
|
611
|
+
readonly maximumAccessLifetimeMillis: number;
|
|
612
|
+
readonly maximumRefreshLifetimeMillis?: number | undefined;
|
|
613
|
+
readonly refreshAheadMillis: number;
|
|
614
|
+
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
615
|
+
readonly revocation: "cohort" | "unsupported";
|
|
616
|
+
};
|
|
617
|
+
};
|
|
618
|
+
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
619
|
+
readonly grantVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
620
|
+
readonly tokenVersion: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
621
|
+
readonly cohortGeneration: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
622
|
+
readonly metadata: {
|
|
623
|
+
readonly scopes: readonly string[];
|
|
624
|
+
readonly resources: readonly string[];
|
|
625
|
+
readonly accessExpiresAtMillis?: number | undefined;
|
|
626
|
+
readonly refreshExpiresAtMillis?: number | undefined;
|
|
627
|
+
readonly useUntilMillis: number;
|
|
628
|
+
readonly refreshUseUntilMillis?: number | undefined;
|
|
629
|
+
readonly obtainedAtMillis: number;
|
|
630
|
+
readonly profile?: {
|
|
631
|
+
readonly displayName?: string | undefined;
|
|
632
|
+
readonly handle?: string | undefined;
|
|
633
|
+
readonly avatarUrl?: string | undefined;
|
|
634
|
+
readonly profileUrl?: string | undefined;
|
|
635
|
+
readonly email?: string | undefined;
|
|
636
|
+
readonly emailVerified?: boolean | undefined;
|
|
637
|
+
readonly providerData?: {
|
|
638
|
+
readonly [x: string]: import("effect/Schema").Json;
|
|
639
|
+
} | undefined;
|
|
640
|
+
} | undefined;
|
|
641
|
+
};
|
|
642
|
+
};
|
|
643
|
+
readonly sealed: {
|
|
644
|
+
readonly format: "oauth-connected-xchacha20poly1305-v1";
|
|
645
|
+
readonly keyId: string;
|
|
646
|
+
readonly nonce: string;
|
|
647
|
+
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
648
|
+
};
|
|
649
|
+
};
|
|
650
|
+
} | {
|
|
651
|
+
readonly _tag: "Conflict";
|
|
652
|
+
} | {
|
|
653
|
+
readonly _tag: "Busy";
|
|
654
|
+
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
|
|
542
655
|
readonly capture: (input: {
|
|
543
656
|
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
544
657
|
readonly subjectId: import("@yielded/auth/Schema").SubjectId;
|
|
@@ -567,6 +680,21 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
567
680
|
readonly generation: number;
|
|
568
681
|
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
569
682
|
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
683
|
+
readonly access?: {
|
|
684
|
+
readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
685
|
+
readonly generation: number;
|
|
686
|
+
readonly issuance: "active" | "retired";
|
|
687
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
688
|
+
readonly clientRegistrationId: string;
|
|
689
|
+
readonly scopes: readonly string[];
|
|
690
|
+
readonly resources: readonly string[];
|
|
691
|
+
readonly retention: "access-and-refresh" | "access-only";
|
|
692
|
+
readonly maximumAccessLifetimeMillis: number;
|
|
693
|
+
readonly maximumRefreshLifetimeMillis?: number | undefined;
|
|
694
|
+
readonly refreshAheadMillis: number;
|
|
695
|
+
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
696
|
+
readonly revocation: "cohort" | "unsupported";
|
|
697
|
+
} | undefined;
|
|
570
698
|
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
571
699
|
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
572
700
|
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
@@ -669,6 +797,21 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
669
797
|
readonly generation: number;
|
|
670
798
|
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
671
799
|
readonly commandId: string & import("effect/Brand").Brand<"effect-auth/OAuthCommandId">;
|
|
800
|
+
readonly access?: {
|
|
801
|
+
readonly key: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
802
|
+
readonly generation: number;
|
|
803
|
+
readonly issuance: "active" | "retired";
|
|
804
|
+
readonly provider: string & import("effect/Brand").Brand<"effect-auth/OAuthProviderKey">;
|
|
805
|
+
readonly clientRegistrationId: string;
|
|
806
|
+
readonly scopes: readonly string[];
|
|
807
|
+
readonly resources: readonly string[];
|
|
808
|
+
readonly retention: "access-and-refresh" | "access-only";
|
|
809
|
+
readonly maximumAccessLifetimeMillis: number;
|
|
810
|
+
readonly maximumRefreshLifetimeMillis?: number | undefined;
|
|
811
|
+
readonly refreshAheadMillis: number;
|
|
812
|
+
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
813
|
+
readonly revocation: "cohort" | "unsupported";
|
|
814
|
+
} | undefined;
|
|
672
815
|
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
673
816
|
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
674
817
|
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
@@ -781,13 +924,12 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
781
924
|
readonly _tag: "Cancelled";
|
|
782
925
|
} | {
|
|
783
926
|
readonly _tag: "Ambiguous";
|
|
784
|
-
} | {
|
|
785
|
-
readonly _tag: "Conflict";
|
|
786
927
|
} | {
|
|
787
928
|
readonly _tag: "Connected";
|
|
788
929
|
readonly grant: {
|
|
789
930
|
readonly context: {
|
|
790
931
|
readonly namespace: "effect-auth/oauth-connected-token-context/v1";
|
|
932
|
+
readonly exchangeOrder: string;
|
|
791
933
|
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
792
934
|
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
793
935
|
readonly identity: {
|
|
@@ -851,6 +993,8 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
851
993
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
852
994
|
};
|
|
853
995
|
};
|
|
996
|
+
} | {
|
|
997
|
+
readonly _tag: "Conflict";
|
|
854
998
|
} | {
|
|
855
999
|
readonly _tag: "Busy";
|
|
856
1000
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
|
|
@@ -898,6 +1042,7 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
898
1042
|
readonly grant: {
|
|
899
1043
|
readonly context: {
|
|
900
1044
|
readonly namespace: "effect-auth/oauth-connected-token-context/v1";
|
|
1045
|
+
readonly exchangeOrder: string;
|
|
901
1046
|
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
902
1047
|
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
903
1048
|
readonly identity: {
|
|
@@ -1010,6 +1155,7 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
1010
1155
|
readonly grant: {
|
|
1011
1156
|
readonly context: {
|
|
1012
1157
|
readonly namespace: "effect-auth/oauth-connected-token-context/v1";
|
|
1158
|
+
readonly exchangeOrder: string;
|
|
1013
1159
|
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
1014
1160
|
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1015
1161
|
readonly identity: {
|
|
@@ -1094,6 +1240,7 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
1094
1240
|
readonly grant: {
|
|
1095
1241
|
readonly context: {
|
|
1096
1242
|
readonly namespace: "effect-auth/oauth-connected-token-context/v1";
|
|
1243
|
+
readonly exchangeOrder: string;
|
|
1097
1244
|
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
1098
1245
|
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1099
1246
|
readonly identity: {
|
|
@@ -1157,6 +1304,7 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
1157
1304
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1158
1305
|
};
|
|
1159
1306
|
};
|
|
1307
|
+
readonly order: string;
|
|
1160
1308
|
readonly claimId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
|
|
1161
1309
|
readonly claimedAtMillis: number;
|
|
1162
1310
|
readonly claimExpiresAtMillis: number;
|
|
@@ -1176,6 +1324,7 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
1176
1324
|
readonly grant: {
|
|
1177
1325
|
readonly context: {
|
|
1178
1326
|
readonly namespace: "effect-auth/oauth-connected-token-context/v1";
|
|
1327
|
+
readonly exchangeOrder: string;
|
|
1179
1328
|
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
1180
1329
|
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1181
1330
|
readonly identity: {
|
|
@@ -1265,7 +1414,7 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
1265
1414
|
readonly hasMore: boolean;
|
|
1266
1415
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
|
|
1267
1416
|
};
|
|
1268
|
-
}, never, import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthConnectedRevocationServices: <T extends AnyPgTable<{
|
|
1417
|
+
}, never, Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthConnectedRevocationServices: <T extends AnyPgTable<{
|
|
1269
1418
|
dialect: "pg";
|
|
1270
1419
|
}>, O extends AnyPgTable<{
|
|
1271
1420
|
dialect: "pg";
|
|
@@ -1279,7 +1428,7 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
1279
1428
|
dialect: "pg";
|
|
1280
1429
|
}>, J extends AnyPgTable<{
|
|
1281
1430
|
dialect: "pg";
|
|
1282
|
-
}>, N>(
|
|
1431
|
+
}>, N>(mapping: OAuthConnectedRevocationMapping<T, O, F, G, C, H, J, N>) => Effect.Effect<{
|
|
1283
1432
|
oauthConnectedRevocations: {
|
|
1284
1433
|
readonly claim: <A>(input: {
|
|
1285
1434
|
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
@@ -1294,6 +1443,7 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
1294
1443
|
readonly jobId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
|
|
1295
1444
|
readonly token: {
|
|
1296
1445
|
readonly namespace: "effect-auth/oauth-connected-token-context/v1";
|
|
1446
|
+
readonly exchangeOrder: string;
|
|
1297
1447
|
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
1298
1448
|
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1299
1449
|
readonly identity: {
|
|
@@ -1372,7 +1522,7 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
1372
1522
|
readonly settled: boolean;
|
|
1373
1523
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
1374
1524
|
};
|
|
1375
|
-
}, never, import("@yielded/auth/Hooks").LifecycleHooks>, coordinateOAuthConnected: {
|
|
1525
|
+
}, never, Database | import("@yielded/auth/Hooks").LifecycleHooks>, coordinateOAuthConnected: {
|
|
1376
1526
|
<D extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
1377
1527
|
dialect: "pg";
|
|
1378
1528
|
}>, AC extends AnyPgTable<{
|
|
@@ -1467,7 +1617,7 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
1467
1617
|
} ? Parameters<Parameters<D["transaction"]>[0]>[0] : never>, TxShape>;
|
|
1468
1618
|
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/OAuth").OAuthConnectedRevocations>>;
|
|
1469
1619
|
};
|
|
1470
|
-
export declare const makePasskeyCredentialServices: <
|
|
1620
|
+
export declare const makePasskeyCredentialServices: <S extends AnyPgTable<{
|
|
1471
1621
|
dialect: "pg";
|
|
1472
1622
|
}>, C extends AnyPgTable<{
|
|
1473
1623
|
dialect: "pg";
|
|
@@ -1477,7 +1627,7 @@ export declare const makePasskeyCredentialServices: <Database extends EffectPgDa
|
|
|
1477
1627
|
dialect: "pg";
|
|
1478
1628
|
}>, H extends AnyPgTable<{
|
|
1479
1629
|
dialect: "pg";
|
|
1480
|
-
}>, N, RSetup = never>(
|
|
1630
|
+
}>, N, RSetup = never>(mapping: import("@yielded/auth-persistence/Adapter").PasskeyMappingSource<PasskeyCredentialMapping<S, C, F, O, H, N>, RSetup>) => Effect.Effect<import("@yielded/auth-persistence/Adapter").PasskeyCredentialServices, import("@yielded/auth/Passkey").PasskeyConfigurationError | import("@yielded/auth-persistence/Adapter").PersistenceMappingError, Database | Exclude<RSetup, import("@yielded/auth-persistence/Adapter").NativeDatabase>>, makePasskeyPersistenceServices: <S extends AnyPgTable<{
|
|
1481
1631
|
dialect: "pg";
|
|
1482
1632
|
}>, C extends AnyPgTable<{
|
|
1483
1633
|
dialect: "pg";
|
|
@@ -1495,7 +1645,7 @@ export declare const makePasskeyCredentialServices: <Database extends EffectPgDa
|
|
|
1495
1645
|
dialect: "pg";
|
|
1496
1646
|
}>, Charge extends AnyPgTable<{
|
|
1497
1647
|
dialect: "pg";
|
|
1498
|
-
}>, N, RSetup = never>(
|
|
1648
|
+
}>, N, RSetup = never>(mapping: import("@yielded/auth-persistence/Adapter").PasskeyMappingSource<PasskeyPersistenceMapping<PasskeyCredentialMapping<S, C, F, O, H, N>, M, Flow, Admission, Charge, N>, RSetup>) => Effect.Effect<import("@yielded/auth-persistence/Adapter").PasskeyPersistenceServices, import("@yielded/auth/Passkey").PasskeyConfigurationError | import("@yielded/auth-persistence/Adapter").PersistenceMappingError, Database | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<RSetup, import("@yielded/auth-persistence/Adapter").NativeDatabase>>, makePasskeyEnrollmentContextServices: <S extends AnyPgTable<{
|
|
1499
1649
|
dialect: "pg";
|
|
1500
1650
|
}>, C extends AnyPgTable<{
|
|
1501
1651
|
dialect: "pg";
|
|
@@ -1507,7 +1657,7 @@ export declare const makePasskeyCredentialServices: <Database extends EffectPgDa
|
|
|
1507
1657
|
dialect: "pg";
|
|
1508
1658
|
}>, M extends AnyPgTable<{
|
|
1509
1659
|
dialect: "pg";
|
|
1510
|
-
}>, N, RSetup = never>(
|
|
1660
|
+
}>, N, RSetup = never>(mapping: import("@yielded/auth-persistence/Adapter").PasskeyMappingSource<PasskeyEnrollmentContextMapping<PasskeyCredentialMapping<S, C, F, O, H, N>, M, N>, RSetup>) => Effect.Effect<import("@yielded/auth-persistence/Adapter").PasskeyEnrollmentContextServices, import("@yielded/auth/Passkey").PasskeyConfigurationError | import("@yielded/auth-persistence/Adapter").PersistenceMappingError, Database | Exclude<RSetup, import("@yielded/auth-persistence/Adapter").NativeDatabase>>, makePasskeyRegistrationCeremonyServices: <M extends AnyPgTable<{
|
|
1511
1661
|
dialect: "pg";
|
|
1512
1662
|
}>, Flow extends AnyPgTable<{
|
|
1513
1663
|
dialect: "pg";
|
|
@@ -1519,7 +1669,7 @@ export declare const makePasskeyCredentialServices: <Database extends EffectPgDa
|
|
|
1519
1669
|
dialect: "pg";
|
|
1520
1670
|
}>, H extends AnyPgTable<{
|
|
1521
1671
|
dialect: "pg";
|
|
1522
|
-
}>, RSetup = never>(
|
|
1672
|
+
}>, RSetup = never>(mapping: import("@yielded/auth-persistence/Adapter").PasskeyMappingSource<PasskeyRegistrationCeremonyMapping<M, Flow, Admission, Charge, Intent, H>, RSetup>) => Effect.Effect<import("@yielded/auth-persistence/Adapter").PasskeyRegistrationCeremonyServices, import("@yielded/auth/Passkey").PasskeyConfigurationError | import("@yielded/auth-persistence/Adapter").PersistenceMappingError, Database | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<RSetup, import("@yielded/auth-persistence/Adapter").NativeDatabase>>, coordinatePasskeyPersistence: {
|
|
1523
1673
|
<Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
1524
1674
|
dialect: "pg";
|
|
1525
1675
|
}>, C extends AnyPgTable<{
|
|
@@ -1601,7 +1751,7 @@ export declare const makePasskeyCredentialServices: <Database extends EffectPgDa
|
|
|
1601
1751
|
readonly transaction: (...args: any[]) => any;
|
|
1602
1752
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
1603
1753
|
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | import("@yielded/auth-persistence/Adapter").PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/Passkey").PasskeyPersistence>>;
|
|
1604
|
-
}, makePasskeyManagementServices: <
|
|
1754
|
+
}, makePasskeyManagementServices: <S extends AnyPgTable<{
|
|
1605
1755
|
dialect: "pg";
|
|
1606
1756
|
}>, C extends AnyPgTable<{
|
|
1607
1757
|
dialect: "pg";
|
|
@@ -1621,7 +1771,7 @@ export declare const makePasskeyCredentialServices: <Database extends EffectPgDa
|
|
|
1621
1771
|
dialect: "pg";
|
|
1622
1772
|
}>, Command extends AnyPgTable<{
|
|
1623
1773
|
dialect: "pg";
|
|
1624
|
-
}>, N, RSetup = never>(
|
|
1774
|
+
}>, N, RSetup = never>(mapping: import("@yielded/auth-persistence/Adapter").PasskeyMappingSource<PasskeyManagementMapping<S, C, F, O, H, M, Flow, Admission, Charge, Command, N>, RSetup>) => Effect.Effect<import("@yielded/auth-persistence/Adapter").PasskeyManagementServices, import("@yielded/auth/Passkey").PasskeyConfigurationError | import("@yielded/auth-persistence/Adapter").PersistenceMappingError, Database | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<RSetup, import("@yielded/auth-persistence/Adapter").NativeDatabase>>, makePasskeyRegistrationServices: <S extends AnyPgTable<{
|
|
1625
1775
|
dialect: "pg";
|
|
1626
1776
|
}>, C extends AnyPgTable<{
|
|
1627
1777
|
dialect: "pg";
|
|
@@ -1641,7 +1791,7 @@ export declare const makePasskeyCredentialServices: <Database extends EffectPgDa
|
|
|
1641
1791
|
dialect: "pg";
|
|
1642
1792
|
}>, Intent extends AnyPgTable<{
|
|
1643
1793
|
dialect: "pg";
|
|
1644
|
-
}>, N, Value, RSetup = never>(
|
|
1794
|
+
}>, N, Value, RSetup = never>(mapping: import("@yielded/auth-persistence/Adapter").PasskeyMappingSource<PasskeyRegistrationMapping<S, C, F, O, H, M, Flow, Admission, Charge, Intent, N, Value>, RSetup>) => Effect.Effect<import("@yielded/auth-persistence/Adapter").PasskeyRegistrationServices<Value>, import("@yielded/auth/Passkey").PasskeyConfigurationError | import("@yielded/auth-persistence/Adapter").PersistenceMappingError, Database | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<RSetup, import("@yielded/auth-persistence/Adapter").NativeDatabase>>, coordinatePasskeyManagement: {
|
|
1645
1795
|
<Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
1646
1796
|
dialect: "pg";
|
|
1647
1797
|
}>, C extends AnyPgTable<{
|
|
@@ -1746,13 +1896,13 @@ export declare const makePasskeyCredentialServices: <Database extends EffectPgDa
|
|
|
1746
1896
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
1747
1897
|
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | import("@yielded/auth-persistence/Adapter").PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, AuthorityId | TxId | import("@yielded/auth/Passkey").PasskeyPersistence>>;
|
|
1748
1898
|
};
|
|
1749
|
-
export declare const makeTotpPersistenceServices: <
|
|
1899
|
+
export declare const makeTotpPersistenceServices: <S extends AnyPgTable<{
|
|
1750
1900
|
dialect: "pg";
|
|
1751
1901
|
}>, F extends AnyPgTable<{
|
|
1752
1902
|
dialect: "pg";
|
|
1753
1903
|
}>, C extends AnyPgTable<{
|
|
1754
1904
|
dialect: "pg";
|
|
1755
|
-
}>, N, RSetup = never>(
|
|
1905
|
+
}>, N, RSetup = never>(mapping: TotpMappingSource<TotpMapping<S, F, C, N>, RSetup>) => Effect.Effect<TotpPersistenceServices, import("@yielded/auth-persistence/Adapter").PersistenceMappingError | import("@yielded/auth/Totp").TotpConfigurationError, Database | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<RSetup, import("@yielded/auth-persistence/Adapter").NativeDatabase>>, coordinateTotpPersistence: {
|
|
1756
1906
|
<Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
1757
1907
|
dialect: "pg";
|
|
1758
1908
|
}>, F extends AnyPgTable<{
|
|
@@ -1776,7 +1926,7 @@ export declare const makeTotpPersistenceServices: <Database extends EffectPgData
|
|
|
1776
1926
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
1777
1927
|
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | TotpCoordinatorError<E>, DatabaseRequirements | RSetup | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/Totp").TotpPersistence>>;
|
|
1778
1928
|
};
|
|
1779
|
-
export declare const makePhonePersistenceServices: <
|
|
1929
|
+
export declare const makePhonePersistenceServices: <S extends AnyPgTable<{
|
|
1780
1930
|
dialect: "pg";
|
|
1781
1931
|
}>, I extends AnyPgTable<{
|
|
1782
1932
|
dialect: "pg";
|
|
@@ -1784,7 +1934,7 @@ export declare const makePhonePersistenceServices: <Database extends EffectPgDat
|
|
|
1784
1934
|
dialect: "pg";
|
|
1785
1935
|
}>, C extends AnyPgTable<{
|
|
1786
1936
|
dialect: "pg";
|
|
1787
|
-
}>, N, RSetup = never>(
|
|
1937
|
+
}>, N, RSetup = never>(mapping: PhoneMappingSource<PhoneMapping<S, I, C, F, N>, RSetup>) => Effect.Effect<PhonePersistenceServices, import("@yielded/auth-persistence/Adapter").PersistenceMappingError | import("@yielded/auth/PhoneOtp").PhoneConfigurationError, Database | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<RSetup, import("@yielded/auth-persistence/Adapter").NativeDatabase>>, coordinatePhonePersistence: {
|
|
1788
1938
|
<Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
1789
1939
|
dialect: "pg";
|
|
1790
1940
|
}>, I extends AnyPgTable<{
|
|
@@ -1814,8 +1964,10 @@ export declare const makePhonePersistenceServices: <Database extends EffectPgDat
|
|
|
1814
1964
|
};
|
|
1815
1965
|
export declare const AuthPersistence: {
|
|
1816
1966
|
make: <C extends import("@yielded/auth-persistence/Adapter").ClaimsCodec, const Id extends string, const A extends import("@yielded/auth-persistence/Adapter").Definition<C, Id>>(auth: A & import("@yielded/auth-persistence/Adapter").Definition<C, Id>) => import("@yielded/auth-persistence/Adapter").BoundPersistence<import("drizzle-orm/pg-core").PgTable<import("drizzle-orm/pg-core").TableConfig>, import("@effect/sql-pg/PgClient").PgClient, C, Id, A>;
|
|
1817
|
-
migrationsLayer: (options: import("drizzle-orm/migrator").MigrationConfig) =>
|
|
1967
|
+
migrationsLayer: (options: import("drizzle-orm/migrator").MigrationConfig) => Layer.Layer<never, import("drizzle-orm/effect-core").EffectDrizzleQueryError | import("drizzle-orm/effect-core").MigratorInitError | import("@yielded/auth-persistence/Adapter").PersistenceConfigurationError | import("effect/sql/SqlError").SqlError, import("@effect/sql-pg/PgClient").PgClient>;
|
|
1818
1968
|
};
|
|
1969
|
+
/** Construct Drizzle from the driver's SQL-client Layer. */
|
|
1970
|
+
export declare const databaseLayer: Layer.Layer<Database, never, import("@effect/sql-pg/PgClient").PgClient>;
|
|
1819
1971
|
//#endregion
|
|
1820
|
-
export {
|
|
1972
|
+
export { Database, coordinatePgAuthenticationAuthority as coordinateAuthenticationAuthority, coordinatePgEmailAddress as coordinateEmailAddress, coordinatePgEmailRegistration as coordinateEmailRegistration, coordinatePgPasswordPersistence as coordinatePasswordPersistence, coordinatePgPasswordPreparedPersistence as coordinatePasswordPreparedPersistence, coordinatePgPasswordRegistration as coordinatePasswordRegistration, coordinatePgPendingAuthentication as coordinatePendingAuthentication, coordinatePgProofPersistence as coordinateProofPersistence, coordinatePgSessionStepUp as coordinateSessionStepUp, coordinatePgSignedSessionValidity as coordinateSignedSessionValidity, coordinatePgStatefulSessions as coordinateStatefulSessions, makePgAuthenticationAuthorityServices as makeAuthenticationAuthorityServices, makePgEmailAddressServices as makeEmailAddressServices, makePgEmailRegistrationServices as makeEmailRegistrationServices, makePgEmailSignInServices as makeEmailSignInServices, makePgPasswordPersistenceServices as makePasswordPersistenceServices, makePgPasswordPreparedPersistenceServices as makePasswordPreparedPersistenceServices, makePgPasswordRegistrationServices as makePasswordRegistrationServices, makePgPendingAuthenticationServices as makePendingAuthenticationServices, makePgProofPersistenceServices as makeProofPersistenceServices, makePgSessionStepUpServices as makeSessionStepUpServices, makePgSignedSessionValidityServices as makeSignedSessionValidityServices, makePgStatefulSessionServices as makeStatefulSessionServices, passwordPreparedPersistenceLayer };
|
|
1821
1973
|
//# sourceMappingURL=Postgres.d.mts.map
|