@yielded/auth-persistence-drizzle 0.1.0-beta.17 → 0.1.0-beta.19
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 +8 -1
- package/dist/D1.d.mts +120 -120
- package/dist/Libsql.d.mts +154 -154
- package/dist/Mysql2.d.mts +166 -166
- package/dist/Pglite.d.mts +166 -166
- package/dist/Postgres.d.mts +152 -152
- package/dist/SqliteBun.d.mts +168 -168
- package/dist/SqliteDo.d.mts +237 -259
- package/dist/SqliteDo.mjs +30 -45
- package/dist/SqliteDo.mjs.map +1 -1
- package/dist/SqliteNode.d.mts +154 -154
- package/dist/SqliteWasm.d.mts +163 -163
- package/dist/drizzle/crypto.mjs +11 -0
- package/dist/drizzle/crypto.mjs.map +1 -0
- package/dist/drizzle/d1-identity.mjs +2 -2
- package/dist/drizzle/d1-identity.mjs.map +1 -1
- package/dist/drizzle/d1-oauth.d.mts +16 -16
- package/dist/drizzle/d1-oauth.mjs.map +1 -1
- package/dist/drizzle/d1-passkey.d.mts +6 -6
- package/dist/drizzle/d1-passkey.mjs.map +1 -1
- package/dist/drizzle/d1-password-prepared.mjs +3 -3
- package/dist/drizzle/d1-password-prepared.mjs.map +1 -1
- package/dist/drizzle/d1-passwords.d.mts +1 -1
- package/dist/drizzle/d1-passwords.mjs +1 -1
- package/dist/drizzle/d1-passwords.mjs.map +1 -1
- package/dist/drizzle/d1-phone.d.mts +3 -3
- package/dist/drizzle/d1-phone.mjs.map +1 -1
- package/dist/drizzle/d1-proofs.d.mts +1 -1
- package/dist/drizzle/d1-sessions.d.mts +1 -1
- package/dist/drizzle/d1-sessions.mjs +4 -3
- package/dist/drizzle/d1-sessions.mjs.map +1 -1
- package/dist/drizzle/d1-totp.d.mts +3 -3
- package/dist/drizzle/d1-totp.mjs.map +1 -1
- package/dist/drizzle/mysql-identity.mjs +2 -2
- package/dist/drizzle/mysql-identity.mjs.map +1 -1
- package/dist/drizzle/oauth-accounts.mjs +9 -8
- package/dist/drizzle/oauth-accounts.mjs.map +1 -1
- package/dist/drizzle/oauth-connected-collection.mjs +1 -1
- package/dist/drizzle/oauth-connected-collection.mjs.map +1 -1
- package/dist/drizzle/oauth-connected-custody.mjs +5 -4
- package/dist/drizzle/oauth-connected-custody.mjs.map +1 -1
- package/dist/drizzle/oauth-connected-drivers.mjs.map +1 -1
- package/dist/drizzle/oauth-connected-flow.mjs +8 -7
- package/dist/drizzle/oauth-connected-flow.mjs.map +1 -1
- package/dist/drizzle/oauth-connected-management.mjs +3 -2
- package/dist/drizzle/oauth-connected-management.mjs.map +1 -1
- package/dist/drizzle/oauth-connected-reference.mjs +8 -4
- package/dist/drizzle/oauth-connected-reference.mjs.map +1 -1
- package/dist/drizzle/oauth-connected-settlement.mjs +4 -4
- package/dist/drizzle/oauth-connected-settlement.mjs.map +1 -1
- package/dist/drizzle/oauth-connected-sign-in.mjs +11 -10
- package/dist/drizzle/oauth-connected-sign-in.mjs.map +1 -1
- package/dist/drizzle/oauth-connected-state.d.mts +265 -265
- package/dist/drizzle/oauth-connected-state.mjs +23 -20
- package/dist/drizzle/oauth-connected-state.mjs.map +1 -1
- package/dist/drizzle/oauth-connected-target.d.mts +105 -105
- package/dist/drizzle/oauth-connected-target.mjs.map +1 -1
- package/dist/drizzle/oauth-drivers.mjs.map +1 -1
- package/dist/drizzle/oauth-flow.mjs +1 -1
- package/dist/drizzle/oauth-flow.mjs.map +1 -1
- package/dist/drizzle/oauth-model.d.mts +4 -4
- package/dist/drizzle/oauth-model.mjs.map +1 -1
- package/dist/drizzle/oauth-registration.mjs +2 -2
- package/dist/drizzle/oauth-registration.mjs.map +1 -1
- package/dist/drizzle/oauth-state.mjs +11 -12
- package/dist/drizzle/oauth-state.mjs.map +1 -1
- package/dist/drizzle/oauth-target.d.mts +4 -4
- package/dist/drizzle/oauth-target.mjs.map +1 -1
- package/dist/drizzle/passkey-drivers.mjs.map +1 -1
- 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 +1 -1
- package/dist/drizzle/password-prepared-sql.mjs.map +1 -1
- package/dist/drizzle/password-prepared-state.mjs +1 -1
- package/dist/drizzle/pg-identity.mjs +2 -2
- package/dist/drizzle/pg-identity.mjs.map +1 -1
- package/dist/drizzle/phone-model.d.mts +2 -2
- package/dist/drizzle/phone-model.mjs +3 -3
- package/dist/drizzle/phone-model.mjs.map +1 -1
- package/dist/drizzle/phone-target.d.mts +1 -1
- package/dist/drizzle/phone-target.mjs +2 -2
- package/dist/drizzle/phone-target.mjs.map +1 -1
- package/dist/drizzle/sqlite-do-database.d.mts +29 -0
- package/dist/drizzle/sqlite-do-database.mjs +45 -0
- package/dist/drizzle/sqlite-do-database.mjs.map +1 -0
- package/dist/drizzle/sqlite-emails.mjs.map +1 -1
- package/dist/drizzle/sqlite-identity.mjs +2 -2
- package/dist/drizzle/sqlite-identity.mjs.map +1 -1
- package/dist/drizzle/sqlite-passwords.mjs.map +1 -1
- package/dist/drizzle/sqlite-proofs.mjs.map +1 -1
- package/dist/drizzle/sqlite-sessions.mjs.map +1 -1
- package/dist/drizzle/storage-validation.mjs +17 -9
- package/dist/drizzle/storage-validation.mjs.map +1 -1
- package/dist/drizzle/totp-state.mjs +8 -8
- package/dist/drizzle/totp-state.mjs.map +1 -1
- package/dist/drizzle/totp-target.d.mts +1 -1
- package/dist/drizzle/totp-target.mjs +2 -2
- package/dist/drizzle/totp-target.mjs.map +1 -1
- package/package.json +1 -1
- package/src/SqliteDo.ts +63 -70
- package/src/drizzle/crypto.ts +14 -0
- package/src/drizzle/d1-identity.ts +2 -2
- package/src/drizzle/d1-oauth.ts +14 -5
- package/src/drizzle/d1-passkey.ts +5 -1
- package/src/drizzle/d1-password-prepared.ts +11 -5
- package/src/drizzle/d1-passwords.ts +1 -1
- package/src/drizzle/d1-phone.ts +2 -1
- package/src/drizzle/d1-sessions.ts +8 -2
- package/src/drizzle/d1-totp.ts +6 -2
- package/src/drizzle/mysql-identity.ts +2 -2
- package/src/drizzle/oauth-accounts.ts +14 -13
- package/src/drizzle/oauth-connected-collection.ts +1 -1
- package/src/drizzle/oauth-connected-custody.ts +8 -6
- package/src/drizzle/oauth-connected-drivers.ts +9 -3
- package/src/drizzle/oauth-connected-flow.ts +6 -6
- package/src/drizzle/oauth-connected-management.ts +1 -1
- package/src/drizzle/oauth-connected-reference.ts +14 -9
- package/src/drizzle/oauth-connected-settlement.ts +4 -4
- package/src/drizzle/oauth-connected-sign-in.ts +11 -10
- package/src/drizzle/oauth-connected-state.ts +40 -25
- package/src/drizzle/oauth-connected-target.ts +9 -5
- package/src/drizzle/oauth-drivers.ts +13 -5
- package/src/drizzle/oauth-flow.ts +1 -1
- package/src/drizzle/oauth-model.ts +4 -4
- package/src/drizzle/oauth-registration.ts +2 -2
- package/src/drizzle/oauth-state.ts +17 -15
- package/src/drizzle/oauth-target.ts +11 -3
- package/src/drizzle/passkey-drivers.ts +7 -3
- package/src/drizzle/passkey-write-drivers.ts +11 -2
- package/src/drizzle/password-prepared-sql.ts +1 -1
- package/src/drizzle/pg-identity.ts +2 -2
- package/src/drizzle/phone-model.ts +3 -3
- package/src/drizzle/phone-target.ts +11 -4
- package/src/drizzle/sqlite-do-database.ts +87 -0
- package/src/drizzle/sqlite-emails.ts +1 -1
- package/src/drizzle/sqlite-identity.ts +2 -2
- package/src/drizzle/sqlite-passwords.ts +1 -1
- package/src/drizzle/sqlite-proofs.ts +2 -2
- package/src/drizzle/sqlite-sessions.ts +2 -2
- package/src/drizzle/storage-validation.ts +15 -6
- package/src/drizzle/totp-state.ts +8 -8
- package/src/drizzle/totp-target.ts +11 -5
package/dist/SqliteDo.d.mts
CHANGED
|
@@ -20,45 +20,41 @@ import "./index.mjs";
|
|
|
20
20
|
import { SuppliedService } from "./drizzle/SuppliedService.mjs";
|
|
21
21
|
import { TotpCoordinatorError } from "./drizzle/totp-target.mjs";
|
|
22
22
|
import { PhoneCoordinatorError } from "./drizzle/phone-target.mjs";
|
|
23
|
+
import { DatabaseValue, Transaction, makeDatabase } from "./drizzle/sqlite-do-database.mjs";
|
|
23
24
|
import { NativeDatabase, PersistenceConfigurationError } from "@yielded/auth-persistence/Adapter";
|
|
24
25
|
import { Context, Effect, Layer } from "effect";
|
|
25
26
|
import { AnySQLiteTable } from "drizzle-orm/sqlite-core";
|
|
26
27
|
import { SqliteClient } from "@effect/sql-sqlite-do/SqliteClient";
|
|
27
|
-
import { EffectSQLiteDoDatabase } from "drizzle-orm/effect-sqlite-do";
|
|
28
28
|
//#region src/SqliteDo.d.ts
|
|
29
|
-
declare const Database_base: Context.ServiceClass<Database, "effect-auth/persistence-drizzle/SqliteDo/Database",
|
|
30
|
-
/** The application-owned Drizzle
|
|
29
|
+
declare const Database_base: Context.ServiceClass<Database, "effect-auth/persistence-drizzle/SqliteDo/Database", DatabaseValue<import("drizzle-orm").TablesRelationalConfig>>;
|
|
30
|
+
/** The application-owned Drizzle queries with Effect SQL transaction ownership. */
|
|
31
31
|
export declare class Database extends Database_base {}
|
|
32
|
-
/**
|
|
32
|
+
/** Construct Drizzle with asynchronous transactions owned by Effect SQL. */
|
|
33
33
|
export declare const databaseLayer: Layer.Layer<Database, PersistenceConfigurationError, SqliteClient>;
|
|
34
|
-
/**
|
|
35
|
-
* Email mutations must own their outer transactionSync. Arbitrary raw Drizzle
|
|
36
|
-
* nesting is not detectable; owner bodies and mapping allocators stay runSync-compatible.
|
|
37
|
-
*/
|
|
38
34
|
export declare const coordinateEmailAddress: {
|
|
39
|
-
<Database extends
|
|
35
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, M extends AnySQLiteTable, NativeId, Out, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
40
36
|
readonly mapping: EmailAddressMapping<S, I, C, AC, M, NativeId>;
|
|
41
37
|
readonly proofMapping: import("@yielded/auth-persistence/Adapter").ProofPersistenceMapping<DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, any, import("drizzle-orm").SQL<unknown>>;
|
|
42
38
|
readonly transaction?: never;
|
|
43
|
-
}, body: Effect.Effect<Out, E,
|
|
44
|
-
<Database extends
|
|
39
|
+
}, body: Effect.Effect<Out, E, R>): Effect.Effect<Out, DatabaseError | E | import("@yielded/auth/Email").EmailUnavailable | import("@yielded/auth/Hooks").HookConfigurationError | import("effect/sql/SqlError").SqlError, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, import("@yielded/auth/Email").EmailAddressPersistence>>;
|
|
40
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, M extends AnySQLiteTable, NativeId, Out, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
45
41
|
readonly mapping: EmailAddressMapping<S, I, C, AC, M, NativeId>;
|
|
46
42
|
readonly proofMapping: import("@yielded/auth-persistence/Adapter").ProofPersistenceMapping<DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, any, import("drizzle-orm").SQL<unknown>>;
|
|
47
43
|
readonly transaction: SuppliedService<TxId, NoInfer<Parameters<Parameters<Database["transaction"]>[0]>[0]>, TxShape>;
|
|
48
|
-
}, body: Effect.Effect<Out, E,
|
|
44
|
+
}, body: Effect.Effect<Out, E, R>): Effect.Effect<Out, DatabaseError | E | import("@yielded/auth/Email").EmailUnavailable | import("@yielded/auth/Hooks").HookConfigurationError | import("effect/sql/SqlError").SqlError, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/Email").EmailAddressPersistence>>;
|
|
49
45
|
}, coordinateEmailRegistration: {
|
|
50
|
-
<Database extends
|
|
46
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, TargetId, Registration, S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, Rq extends AnySQLiteTable, NativeId, Out, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
51
47
|
readonly mapping: EmailRegistrationMapping<NoInfer<Registration>, S, I, C, AC, Rq, NativeId>;
|
|
52
48
|
readonly proofMapping: import("@yielded/auth-persistence/Adapter").ProofPersistenceMapping<DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, any, import("drizzle-orm").SQL<unknown>>;
|
|
53
49
|
readonly target: SuppliedService<TargetId, EmailRegistrationAuthority<Registration>>;
|
|
54
50
|
readonly transaction?: never;
|
|
55
|
-
}, body: Effect.Effect<Out, E,
|
|
56
|
-
<Database extends
|
|
51
|
+
}, body: Effect.Effect<Out, E, R>): Effect.Effect<Out, DatabaseError | E | import("@yielded/auth/Email").EmailUnavailable | import("@yielded/auth/Hooks").HookConfigurationError | import("effect/sql/SqlError").SqlError, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TargetId>>;
|
|
52
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, TargetId, Registration, S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, Rq extends AnySQLiteTable, NativeId, Out, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
57
53
|
readonly mapping: EmailRegistrationMapping<NoInfer<Registration>, S, I, C, AC, Rq, NativeId>;
|
|
58
54
|
readonly proofMapping: import("@yielded/auth-persistence/Adapter").ProofPersistenceMapping<DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, any, import("drizzle-orm").SQL<unknown>>;
|
|
59
55
|
readonly target: SuppliedService<TargetId, EmailRegistrationAuthority<Registration>>;
|
|
60
56
|
readonly transaction: SuppliedService<TxId, NoInfer<Parameters<Parameters<Database["transaction"]>[0]>[0]>, TxShape>;
|
|
61
|
-
}, body: Effect.Effect<Out, E,
|
|
57
|
+
}, body: Effect.Effect<Out, E, R>): Effect.Effect<Out, DatabaseError | E | import("@yielded/auth/Email").EmailUnavailable | import("@yielded/auth/Hooks").HookConfigurationError | import("effect/sql/SqlError").SqlError, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TargetId | TxId>>;
|
|
62
58
|
}, makeEmailAddressServices: <S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, M extends AnySQLiteTable, NativeId>(mapping: EmailAddressMapping<S, I, C, AC, M, NativeId>, proofMapping: import("@yielded/auth-persistence/Adapter").ProofPersistenceMapping<DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, DrizzleTableModel<any>, any, import("drizzle-orm").SQL<unknown>>) => Effect.Effect<{
|
|
63
59
|
emailAddressPersistence: {
|
|
64
60
|
readonly target: (input: {
|
|
@@ -88,33 +84,28 @@ export declare const coordinateEmailAddress: {
|
|
|
88
84
|
}) => Effect.Effect<import("effect/Option").Option<import("@yielded/auth/Email").EmailCredentialSnapshot>, import("@yielded/auth/Email").EmailUnavailable>;
|
|
89
85
|
};
|
|
90
86
|
}, import("@yielded/auth/Email").EmailUnavailable, Database>;
|
|
91
|
-
/**
|
|
92
|
-
* Password mutations and registration must own their outer transactionSync.
|
|
93
|
-
* Arbitrary raw Drizzle nesting is not detectable; owner bodies must remain
|
|
94
|
-
* runSync-compatible. Detectable Effect commit scopes are rejected pre-write.
|
|
95
|
-
*/
|
|
96
87
|
export declare const coordinatePasswordPersistence: {
|
|
97
|
-
<Database extends
|
|
88
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, A extends AnySQLiteTable, RS extends AnySQLiteTable, CE extends AnySQLiteTable, M extends AnySQLiteTable, NativeId, PM extends ProofPersistenceMapping<any, any, any, any, any, any, any, any, any, any, any, any> | undefined, Out, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
98
89
|
readonly mapping: import("@yielded/auth-persistence/Adapter").PasswordPersistenceMapping<DrizzleTableModel<S>, DrizzleTableModel<I>, DrizzleTableModel<C>, DrizzleTableModel<AC>, DrizzleTableModel<A>, DrizzleTableModel<RS>, DrizzleTableModel<CE>, DrizzleTableModel<M>, NativeId, import("drizzle-orm").SQL<unknown>>;
|
|
99
|
-
readonly proofMapping?: PM
|
|
90
|
+
readonly proofMapping?: PM;
|
|
100
91
|
readonly transaction?: never;
|
|
101
|
-
}, body: Effect.Effect<Out, E,
|
|
102
|
-
<Database extends
|
|
92
|
+
}, body: Effect.Effect<Out, E, R>): Effect.Effect<Out, DatabaseError | E | import("@yielded/auth/Hooks").HookConfigurationError | import("@yielded/auth/Password").PasswordUnavailable | import("effect/sql/SqlError").SqlError, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, import("@yielded/auth/Password").PasswordPersistence>>;
|
|
93
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, A extends AnySQLiteTable, RS extends AnySQLiteTable, CE extends AnySQLiteTable, M extends AnySQLiteTable, NativeId, PM extends ProofPersistenceMapping<any, any, any, any, any, any, any, any, any, any, any, any> | undefined, Out, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
103
94
|
readonly mapping: import("@yielded/auth-persistence/Adapter").PasswordPersistenceMapping<DrizzleTableModel<S>, DrizzleTableModel<I>, DrizzleTableModel<C>, DrizzleTableModel<AC>, DrizzleTableModel<A>, DrizzleTableModel<RS>, DrizzleTableModel<CE>, DrizzleTableModel<M>, NativeId, import("drizzle-orm").SQL<unknown>>;
|
|
104
|
-
readonly proofMapping?: PM
|
|
95
|
+
readonly proofMapping?: PM;
|
|
105
96
|
readonly transaction: SuppliedService<TxId, NoInfer<Parameters<Parameters<Database["transaction"]>[0]>[0]>, TxShape>;
|
|
106
|
-
}, body: Effect.Effect<Out, E,
|
|
97
|
+
}, body: Effect.Effect<Out, E, R>): Effect.Effect<Out, DatabaseError | E | import("@yielded/auth/Hooks").HookConfigurationError | import("@yielded/auth/Password").PasswordUnavailable | import("effect/sql/SqlError").SqlError, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/Password").PasswordPersistence>>;
|
|
107
98
|
}, coordinatePasswordRegistration: {
|
|
108
|
-
<Database extends
|
|
99
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, TargetId, Registration, S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, Rq extends AnySQLiteTable, NativeId, Out, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
109
100
|
readonly mapping: PasswordRegistrationMapping<NoInfer<Registration>, S, I, C, AC, Rq, NativeId>;
|
|
110
101
|
readonly target: SuppliedService<TargetId, import("@yielded/auth-persistence/Adapter").PasswordRegistrationAuthority<Registration>>;
|
|
111
102
|
readonly transaction?: never;
|
|
112
|
-
}, body: Effect.Effect<Out, E,
|
|
113
|
-
<Database extends
|
|
103
|
+
}, body: Effect.Effect<Out, E, R>): Effect.Effect<Out, DatabaseError | E | import("@yielded/auth/Hooks").HookConfigurationError | import("@yielded/auth/Password").PasswordUnavailable | import("effect/sql/SqlError").SqlError, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TargetId>>;
|
|
104
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, TargetId, Registration, S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, Rq extends AnySQLiteTable, NativeId, Out, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
114
105
|
readonly mapping: PasswordRegistrationMapping<NoInfer<Registration>, S, I, C, AC, Rq, NativeId>;
|
|
115
106
|
readonly target: SuppliedService<TargetId, import("@yielded/auth-persistence/Adapter").PasswordRegistrationAuthority<Registration>>;
|
|
116
107
|
readonly transaction: SuppliedService<TxId, NoInfer<Parameters<Parameters<Database["transaction"]>[0]>[0]>, TxShape>;
|
|
117
|
-
}, body: Effect.Effect<Out, E,
|
|
108
|
+
}, body: Effect.Effect<Out, E, R>): Effect.Effect<Out, DatabaseError | E | import("@yielded/auth/Hooks").HookConfigurationError | import("@yielded/auth/Password").PasswordUnavailable | import("effect/sql/SqlError").SqlError, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TargetId | TxId>>;
|
|
118
109
|
}, makePasswordPersistenceServices: <S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, A extends AnySQLiteTable, RS extends AnySQLiteTable, CE extends AnySQLiteTable, M extends AnySQLiteTable, NativeId>(mapping: import("@yielded/auth-persistence/Adapter").PasswordPersistenceMapping<DrizzleTableModel<S>, DrizzleTableModel<I>, DrizzleTableModel<C>, DrizzleTableModel<AC>, DrizzleTableModel<A>, DrizzleTableModel<RS>, DrizzleTableModel<CE>, DrizzleTableModel<M>, NativeId, import("drizzle-orm").SQL<unknown>>, proofMapping?: ProofPersistenceMapping<any, any, any, any, any, any, any, any, any, any, any, any>) => Effect.Effect<{
|
|
119
110
|
passwordPersistence: {
|
|
120
111
|
readonly admitAttempt: <A_1>(input: {
|
|
@@ -160,21 +151,15 @@ export declare const coordinatePasswordPersistence: {
|
|
|
160
151
|
}, import("@yielded/auth/Password").PasswordUnavailable, Database | import("@yielded/auth/Hooks").LifecycleHooks>, makePasswordRegistrationServices: <Registration, S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, Rq extends AnySQLiteTable, NativeId>(mapping: PasswordRegistrationMapping<Registration, S, I, C, AC, Rq, NativeId>) => Effect.Effect<{
|
|
161
152
|
registrationAuthority: import("@yielded/auth-persistence/Adapter").PasswordRegistrationAuthority<Registration>;
|
|
162
153
|
}, import("@yielded/auth/Password").PasswordUnavailable, Database | import("@yielded/auth/Hooks").LifecycleHooks>;
|
|
163
|
-
/**
|
|
164
|
-
* Proof mutations and coordinateProofPersistence must own their outermost
|
|
165
|
-
* transactionSync call. The installed driver cannot detect an arbitrary raw
|
|
166
|
-
* Drizzle outer transaction; calling either boundary from one is unsupported.
|
|
167
|
-
* The owner body must remain runSync-compatible.
|
|
168
|
-
*/
|
|
169
154
|
export declare const coordinateProofPersistence: {
|
|
170
|
-
<Database extends
|
|
155
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, Rq extends AnySQLiteTable, S extends AnySQLiteTable, G extends AnySQLiteTable, Cn extends AnySQLiteTable, Rs extends AnySQLiteTable, Aev extends AnySQLiteTable, F extends AnySQLiteTable, C extends AnySQLiteTable, Sub extends AnySQLiteTable, I extends AnySQLiteTable, Cr extends AnySQLiteTable, NativeId, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
171
156
|
readonly mapping: import("@yielded/auth-persistence/Adapter").ProofPersistenceMapping<DrizzleTableModel<Rq>, DrizzleTableModel<S>, DrizzleTableModel<G>, DrizzleTableModel<Cn>, DrizzleTableModel<Rs>, DrizzleTableModel<Aev>, DrizzleTableModel<F>, DrizzleTableModel<C>, DrizzleTableModel<Sub>, DrizzleTableModel<I>, DrizzleTableModel<Cr>, NativeId, import("drizzle-orm").SQL<unknown>>;
|
|
172
157
|
readonly transaction?: never;
|
|
173
|
-
}, body: Effect.Effect<A, E,
|
|
174
|
-
<Database extends
|
|
158
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | E | import("@yielded/auth/Hooks").HookConfigurationError | import("@yielded/auth/Proofs").ProofUnavailable | import("effect/sql/SqlError").SqlError, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, import("@yielded/auth/Proofs").ProofPersistence>>;
|
|
159
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, Rq extends AnySQLiteTable, S extends AnySQLiteTable, G extends AnySQLiteTable, Cn extends AnySQLiteTable, Rs extends AnySQLiteTable, Aev extends AnySQLiteTable, F extends AnySQLiteTable, C extends AnySQLiteTable, Sub extends AnySQLiteTable, I extends AnySQLiteTable, Cr extends AnySQLiteTable, NativeId, A, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
175
160
|
readonly mapping: import("@yielded/auth-persistence/Adapter").ProofPersistenceMapping<DrizzleTableModel<Rq>, DrizzleTableModel<S>, DrizzleTableModel<G>, DrizzleTableModel<Cn>, DrizzleTableModel<Rs>, DrizzleTableModel<Aev>, DrizzleTableModel<F>, DrizzleTableModel<C>, DrizzleTableModel<Sub>, DrizzleTableModel<I>, DrizzleTableModel<Cr>, NativeId, import("drizzle-orm").SQL<unknown>>;
|
|
176
161
|
readonly transaction: SuppliedService<TxId, NoInfer<Parameters<Parameters<Database["transaction"]>[0]>[0]>, TxShape>;
|
|
177
|
-
}, body: Effect.Effect<A, E,
|
|
162
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | E | import("@yielded/auth/Hooks").HookConfigurationError | import("@yielded/auth/Proofs").ProofUnavailable | import("effect/sql/SqlError").SqlError, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/Proofs").ProofPersistence>>;
|
|
178
163
|
}, makeProofPersistenceServices: <Rq extends AnySQLiteTable, S extends AnySQLiteTable, G extends AnySQLiteTable, Cn extends AnySQLiteTable, Rs extends AnySQLiteTable, A extends AnySQLiteTable, F extends AnySQLiteTable, C extends AnySQLiteTable, Sub extends AnySQLiteTable, I extends AnySQLiteTable, Cr extends AnySQLiteTable, NativeId>(mapping: import("@yielded/auth-persistence/Adapter").ProofPersistenceMapping<DrizzleTableModel<Rq>, DrizzleTableModel<S>, DrizzleTableModel<G>, DrizzleTableModel<Cn>, DrizzleTableModel<Rs>, DrizzleTableModel<A>, DrizzleTableModel<F>, DrizzleTableModel<C>, DrizzleTableModel<Sub>, DrizzleTableModel<I>, DrizzleTableModel<Cr>, NativeId, import("drizzle-orm").SQL<unknown>>) => Effect.Effect<{
|
|
179
164
|
proofPersistence: {
|
|
180
165
|
readonly issue: <A_1>(input: {
|
|
@@ -226,57 +211,50 @@ export declare const coordinateProofPersistence: {
|
|
|
226
211
|
}, prepare: import("@yielded/auth/Proofs").PrepareProofCommit<import("@yielded/auth/Proofs").ProofCleanupResult, A_1>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A_1>, import("@yielded/auth/Proofs").ProofUnavailable>;
|
|
227
212
|
};
|
|
228
213
|
}, import("@yielded/auth/Proofs").ProofUnavailable, Database | import("@yielded/auth/Hooks").LifecycleHooks>;
|
|
229
|
-
/**
|
|
230
|
-
* Session mutation methods and coordinate* functions must own their outermost
|
|
231
|
-
* transactionSync call. The installed Drizzle driver exposes no context marker
|
|
232
|
-
* for an arbitrary raw outer database.transaction call, so invoking either
|
|
233
|
-
* boundary from one is unsupported and cannot be detected. Detectable Effect
|
|
234
|
-
* commit scopes are rejected before writes.
|
|
235
|
-
*/
|
|
236
214
|
export declare const coordinateAuthenticationAuthority: {
|
|
237
|
-
<Database extends
|
|
215
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, Claims, S extends AnySQLiteTable, C extends AnySQLiteTable, F extends AnySQLiteTable, P extends AnySQLiteTable, NativeId, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
238
216
|
readonly mapping: AuthenticationAuthorityMapping<Claims, S, C, F, P, NativeId>;
|
|
239
217
|
readonly transaction?: never;
|
|
240
|
-
}, body: Effect.Effect<A, E,
|
|
241
|
-
<Database extends
|
|
218
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | E | import("@yielded/auth/Hooks").HookConfigurationError | import("@yielded/auth/Sessions").SessionUnavailable | import("effect/sql/SqlError").SqlError, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, import("@yielded/auth/Sessions").AuthenticationAuthority>>;
|
|
219
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, Claims, S extends AnySQLiteTable, C extends AnySQLiteTable, F extends AnySQLiteTable, P extends AnySQLiteTable, NativeId, A, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
242
220
|
readonly mapping: AuthenticationAuthorityMapping<Claims, S, C, F, P, NativeId>;
|
|
243
221
|
readonly transaction: SuppliedService<TxId, NoInfer<Parameters<Parameters<Database["transaction"]>[0]>[0]>, TxShape>;
|
|
244
|
-
}, body: Effect.Effect<A, E,
|
|
222
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | E | import("@yielded/auth/Hooks").HookConfigurationError | import("@yielded/auth/Sessions").SessionUnavailable | import("effect/sql/SqlError").SqlError, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/Sessions").AuthenticationAuthority>>;
|
|
245
223
|
}, coordinatePendingAuthentication: {
|
|
246
|
-
<Database extends
|
|
224
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, TargetId, Claims, S extends AnySQLiteTable, C extends AnySQLiteTable, P extends AnySQLiteTable, F extends AnySQLiteTable, NativeId, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
247
225
|
readonly mapping: PendingAuthenticationMapping<NoInfer<Claims>, S, C, P, F, NativeId>;
|
|
248
226
|
readonly target: SuppliedService<TargetId, import("@yielded/auth/Sessions").PendingAuthentication<Claims>>;
|
|
249
227
|
readonly transaction?: never;
|
|
250
|
-
}, body: Effect.Effect<A, E,
|
|
251
|
-
<Database extends
|
|
228
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | E | import("@yielded/auth/Hooks").HookConfigurationError | import("@yielded/auth/Sessions").SessionUnavailable | import("effect/sql/SqlError").SqlError, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TargetId>>;
|
|
229
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, TargetId, Claims, S extends AnySQLiteTable, C extends AnySQLiteTable, P extends AnySQLiteTable, F extends AnySQLiteTable, NativeId, A, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
252
230
|
readonly mapping: PendingAuthenticationMapping<NoInfer<Claims>, S, C, P, F, NativeId>;
|
|
253
231
|
readonly target: SuppliedService<TargetId, import("@yielded/auth/Sessions").PendingAuthentication<Claims>>;
|
|
254
232
|
readonly transaction: SuppliedService<TxId, NoInfer<Parameters<Parameters<Database["transaction"]>[0]>[0]>, TxShape>;
|
|
255
|
-
}, body: Effect.Effect<A, E,
|
|
233
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | E | import("@yielded/auth/Hooks").HookConfigurationError | import("@yielded/auth/Sessions").SessionUnavailable | import("effect/sql/SqlError").SqlError, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TargetId | TxId>>;
|
|
256
234
|
}, coordinateSignedSessionValidity: {
|
|
257
|
-
<Database extends
|
|
235
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, TargetId, S extends AnySQLiteTable, T extends AnySQLiteTable, NativeId, NativeSessionId, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
258
236
|
readonly mapping: SignedSessionValidityMapping<S, T, NativeId, NativeSessionId>;
|
|
259
237
|
readonly target: SuppliedService<TargetId, import("@yielded/auth/Sessions").SignedSessionValidity>;
|
|
260
238
|
readonly transaction?: never;
|
|
261
|
-
}, body: Effect.Effect<A, E,
|
|
262
|
-
<Database extends
|
|
239
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | E | import("@yielded/auth/Hooks").HookConfigurationError | import("@yielded/auth/Sessions").SessionUnavailable | import("effect/sql/SqlError").SqlError, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TargetId>>;
|
|
240
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, TargetId, S extends AnySQLiteTable, T extends AnySQLiteTable, NativeId, NativeSessionId, A, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
263
241
|
readonly mapping: SignedSessionValidityMapping<S, T, NativeId, NativeSessionId>;
|
|
264
242
|
readonly target: SuppliedService<TargetId, import("@yielded/auth/Sessions").SignedSessionValidity>;
|
|
265
243
|
readonly transaction: SuppliedService<TxId, NoInfer<Parameters<Parameters<Database["transaction"]>[0]>[0]>, TxShape>;
|
|
266
|
-
}, body: Effect.Effect<A, E,
|
|
244
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | E | import("@yielded/auth/Hooks").HookConfigurationError | import("@yielded/auth/Sessions").SessionUnavailable | import("effect/sql/SqlError").SqlError, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TargetId | TxId>>;
|
|
267
245
|
}, coordinateStatefulSessions: {
|
|
268
|
-
<Database extends
|
|
246
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, PersistenceId, RepositoryId, Claims, S extends AnySQLiteTable, C extends AnySQLiteTable, Session extends AnySQLiteTable, F extends AnySQLiteTable, P extends AnySQLiteTable, NativeId, NativeSessionId, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
269
247
|
readonly mapping: StatefulSessionMapping<NoInfer<Claims>, S, C, Session, F, P, NativeId, NativeSessionId>;
|
|
270
248
|
readonly persistence: SuppliedService<PersistenceId, import("@yielded/auth/Sessions").StatefulSessionPersistence<Claims>>;
|
|
271
249
|
readonly repository: SuppliedService<RepositoryId, import("@yielded/auth/Sessions").SessionRepository>;
|
|
272
250
|
readonly transaction?: never;
|
|
273
|
-
}, body: Effect.Effect<A, E,
|
|
274
|
-
<Database extends
|
|
251
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | E | import("@yielded/auth/Hooks").HookConfigurationError | import("@yielded/auth/Sessions").SessionUnavailable | import("effect/sql/SqlError").SqlError, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, PersistenceId | RepositoryId>>;
|
|
252
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, PersistenceId, RepositoryId, Claims, S extends AnySQLiteTable, C extends AnySQLiteTable, Session extends AnySQLiteTable, F extends AnySQLiteTable, P extends AnySQLiteTable, NativeId, NativeSessionId, A, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
275
253
|
readonly mapping: StatefulSessionMapping<NoInfer<Claims>, S, C, Session, F, P, NativeId, NativeSessionId>;
|
|
276
254
|
readonly persistence: SuppliedService<PersistenceId, import("@yielded/auth/Sessions").StatefulSessionPersistence<Claims>>;
|
|
277
255
|
readonly repository: SuppliedService<RepositoryId, import("@yielded/auth/Sessions").SessionRepository>;
|
|
278
256
|
readonly transaction: SuppliedService<TxId, NoInfer<Parameters<Parameters<Database["transaction"]>[0]>[0]>, TxShape>;
|
|
279
|
-
}, body: Effect.Effect<A, E,
|
|
257
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | E | import("@yielded/auth/Hooks").HookConfigurationError | import("@yielded/auth/Sessions").SessionUnavailable | import("effect/sql/SqlError").SqlError, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, PersistenceId | RepositoryId | TxId>>;
|
|
280
258
|
}, makeAuthenticationAuthorityServices: <Claims, S extends AnySQLiteTable, C extends AnySQLiteTable, F extends AnySQLiteTable, P extends AnySQLiteTable, NativeId>(mapping: AuthenticationAuthorityMapping<Claims, S, C, F, P, NativeId>) => Effect.Effect<{
|
|
281
259
|
authenticationAuthority: {
|
|
282
260
|
readonly capture: (subjectId: import("@yielded/auth/Schema").SubjectId, credentialIds: ReadonlyArray<string>) => Effect.Effect<import("@yielded/auth/Sessions").AuthenticationRevision, import("@yielded/auth/Sessions").StaleAuthentication | import("@yielded/auth/Sessions").SessionUnavailable>;
|
|
@@ -294,23 +272,23 @@ export declare const coordinateAuthenticationAuthority: {
|
|
|
294
272
|
}, import("@yielded/auth/Sessions").SessionUnavailable, Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeSessionStepUpServices: <Claims, Id, S extends AnySQLiteTable, C extends AnySQLiteTable, I extends AnySQLiteTable, Session extends AnySQLiteTable, T extends AnySQLiteTable, NativeId, NativeSessionId>(mapping: SessionStepUpMapping<NoInfer<Claims>, S, C, I, Session, T, NativeId, NativeSessionId>, target: Context.Service<Id, import("@yielded/auth/Sessions").SessionStepUpPersistence<Claims>>) => Effect.Effect<{
|
|
295
273
|
sessionStepUpPersistence: import("@yielded/auth/Sessions").SessionStepUpPersistence<Claims>;
|
|
296
274
|
}, import("@yielded/auth/Sessions").SessionUnavailable, Database | import("@yielded/auth/Hooks").LifecycleHooks>, coordinateSessionStepUp: {
|
|
297
|
-
<Database extends
|
|
275
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, Claims, Id, S extends AnySQLiteTable, C extends AnySQLiteTable, I extends AnySQLiteTable, Session extends AnySQLiteTable, T extends AnySQLiteTable, NativeId, NativeSessionId, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
298
276
|
readonly mapping: SessionStepUpMapping<NoInfer<Claims>, S, C, I, Session, T, NativeId, NativeSessionId>;
|
|
299
277
|
readonly target: SuppliedService<Id, import("@yielded/auth/Sessions").SessionStepUpPersistence<Claims>>;
|
|
300
278
|
readonly transaction?: never;
|
|
301
|
-
}, body: Effect.Effect<A, E,
|
|
302
|
-
<Database extends
|
|
279
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | E | import("@yielded/auth/Hooks").HookConfigurationError | import("@yielded/auth/Sessions").SessionUnavailable | import("effect/sql/SqlError").SqlError, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, Id>>;
|
|
280
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, Claims, Id, S extends AnySQLiteTable, C extends AnySQLiteTable, I extends AnySQLiteTable, Session extends AnySQLiteTable, T extends AnySQLiteTable, NativeId, NativeSessionId, A, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
303
281
|
readonly mapping: SessionStepUpMapping<NoInfer<Claims>, S, C, I, Session, T, NativeId, NativeSessionId>;
|
|
304
282
|
readonly target: SuppliedService<Id, import("@yielded/auth/Sessions").SessionStepUpPersistence<Claims>>;
|
|
305
283
|
readonly transaction: SuppliedService<TxId, NoInfer<Parameters<Parameters<Database["transaction"]>[0]>[0]>, TxShape>;
|
|
306
|
-
}, body: Effect.Effect<A, E,
|
|
284
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | E | import("@yielded/auth/Hooks").HookConfigurationError | import("@yielded/auth/Sessions").SessionUnavailable | import("effect/sql/SqlError").SqlError, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, Id | TxId>>;
|
|
307
285
|
}, makeSignedSessionValidityServices: <S extends AnySQLiteTable, T extends AnySQLiteTable, NativeId, NativeSessionId>(mapping: SignedSessionValidityMapping<S, T, NativeId, NativeSessionId>) => Effect.Effect<{
|
|
308
286
|
signedSessionValidity: import("@yielded/auth/Sessions").SignedSessionValidity;
|
|
309
287
|
}, import("@yielded/auth/Sessions").SessionUnavailable, Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeStatefulSessionServices: <Claims, S extends AnySQLiteTable, C extends AnySQLiteTable, Session extends AnySQLiteTable, F extends AnySQLiteTable, P extends AnySQLiteTable, NativeId, NativeSessionId>(mapping: StatefulSessionMapping<Claims, S, C, Session, F, P, NativeId, NativeSessionId>) => Effect.Effect<{
|
|
310
288
|
readonly statefulSessionPersistence: import("@yielded/auth/Sessions").StatefulSessionPersistence<Claims>;
|
|
311
289
|
readonly sessionRepository: import("@yielded/auth/Sessions").SessionRepository;
|
|
312
290
|
}, import("@yielded/auth/Sessions").SessionUnavailable, Database | import("@yielded/auth/Hooks").LifecycleHooks>;
|
|
313
|
-
export declare const commitMode: "
|
|
291
|
+
export declare const commitMode: "interactive";
|
|
314
292
|
export declare const makeIdentityServices: <Subject extends AnySQLiteTable, Identifier extends AnySQLiteTable, External extends AnySQLiteTable, Request extends AnySQLiteTable, NativeId>(mapping: IdentityTables<Subject, Identifier, External, Request, NativeId>) => Effect.Effect<{
|
|
315
293
|
subjectProvisioner: {
|
|
316
294
|
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>;
|
|
@@ -332,18 +310,18 @@ export declare const makeExternalIdentityServices: <Subject extends AnySQLiteTab
|
|
|
332
310
|
export declare const makePasswordPreparedPersistenceServices: <S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, A extends AnySQLiteTable, RS extends AnySQLiteTable, CE extends AnySQLiteTable, M extends AnySQLiteTable, T extends AnySQLiteTable, B extends AnySQLiteTable, NativeId, PS extends AnySQLiteTable = AnySQLiteTable, PC extends AnySQLiteTable = AnySQLiteTable, PM extends AnySQLiteTable = AnySQLiteTable, PSub extends AnySQLiteTable = AnySQLiteTable, PI extends AnySQLiteTable = AnySQLiteTable, PCr extends AnySQLiteTable = AnySQLiteTable, PNativeId = unknown>(mapping: PasswordPreparedPersistenceMapping<S, I, C, AC, A, RS, CE, M, T, B, NativeId>, proofMapping?: PasswordPreparedProofMapping<PS, PC, PM, PSub, PI, PCr, PNativeId> | undefined) => Effect.Effect<{
|
|
333
311
|
passwordPreparedPersistence: import("@yielded/auth/Password").PasswordPreparedPersistence;
|
|
334
312
|
}, import("@yielded/auth/Password").PasswordUnavailable, Database | import("@yielded/auth/Hooks").LifecycleHooks>, coordinatePasswordPreparedPersistence: {
|
|
335
|
-
<Database extends
|
|
313
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, TargetId, S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, A extends AnySQLiteTable, RS extends AnySQLiteTable, CE extends AnySQLiteTable, M extends AnySQLiteTable, T extends AnySQLiteTable, B extends AnySQLiteTable, NativeId, PS extends AnySQLiteTable, PC extends AnySQLiteTable, PM extends AnySQLiteTable, PSub extends AnySQLiteTable, PI extends AnySQLiteTable, PCr extends AnySQLiteTable, PNativeId, Out, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
336
314
|
readonly mapping: PasswordPreparedPersistenceMapping<S, I, C, AC, A, RS, CE, M, T, B, NativeId>;
|
|
337
315
|
readonly proofMapping?: PasswordPreparedProofMapping<PS, PC, PM, PSub, PI, PCr, PNativeId> | undefined;
|
|
338
316
|
readonly target: SuppliedService<TargetId, import("@yielded/auth/Password").PasswordPreparedPersistence>;
|
|
339
317
|
readonly transaction?: never;
|
|
340
|
-
}, body: Effect.Effect<Out, E,
|
|
341
|
-
<Database extends
|
|
318
|
+
}, body: Effect.Effect<Out, E, R>): Effect.Effect<Out, DatabaseError | E | import("@yielded/auth/Hooks").HookConfigurationError | import("@yielded/auth/Password").PasswordUnavailable | import("effect/sql/SqlError").SqlError, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TargetId>>;
|
|
319
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, TargetId, S extends AnySQLiteTable, I extends AnySQLiteTable, C extends AnySQLiteTable, AC extends AnySQLiteTable, A extends AnySQLiteTable, RS extends AnySQLiteTable, CE extends AnySQLiteTable, M extends AnySQLiteTable, T extends AnySQLiteTable, B extends AnySQLiteTable, NativeId, PS extends AnySQLiteTable, PC extends AnySQLiteTable, PM extends AnySQLiteTable, PSub extends AnySQLiteTable, PI extends AnySQLiteTable, PCr extends AnySQLiteTable, PNativeId, Out, E, R, DatabaseError, DatabaseRequirements, TxId, TxShape>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
342
320
|
readonly mapping: PasswordPreparedPersistenceMapping<S, I, C, AC, A, RS, CE, M, T, B, NativeId>;
|
|
343
321
|
readonly proofMapping?: PasswordPreparedProofMapping<PS, PC, PM, PSub, PI, PCr, PNativeId> | undefined;
|
|
344
322
|
readonly target: SuppliedService<TargetId, import("@yielded/auth/Password").PasswordPreparedPersistence>;
|
|
345
323
|
readonly transaction: SuppliedService<TxId, NoInfer<Parameters<Parameters<Database["transaction"]>[0]>[0]>, TxShape>;
|
|
346
|
-
}, body: Effect.Effect<Out, E,
|
|
324
|
+
}, body: Effect.Effect<Out, E, R>): Effect.Effect<Out, DatabaseError | E | import("@yielded/auth/Hooks").HookConfigurationError | import("@yielded/auth/Password").PasswordUnavailable | import("effect/sql/SqlError").SqlError, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TargetId | TxId>>;
|
|
347
325
|
};
|
|
348
326
|
export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
349
327
|
dialect: "sqlite";
|
|
@@ -395,11 +373,11 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
395
373
|
readonly resources: readonly string[];
|
|
396
374
|
readonly retention: "access-and-refresh" | "access-only";
|
|
397
375
|
readonly maximumAccessLifetimeMillis: number;
|
|
398
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
376
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
399
377
|
readonly refreshAheadMillis: number;
|
|
400
378
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
401
379
|
readonly revocation: "cohort" | "unsupported";
|
|
402
|
-
}
|
|
380
|
+
};
|
|
403
381
|
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
404
382
|
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
405
383
|
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
@@ -461,11 +439,11 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
461
439
|
readonly resources: readonly string[];
|
|
462
440
|
readonly retention: "access-and-refresh" | "access-only";
|
|
463
441
|
readonly maximumAccessLifetimeMillis: number;
|
|
464
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
442
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
465
443
|
readonly refreshAheadMillis: number;
|
|
466
444
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
467
445
|
readonly revocation: "cohort" | "unsupported";
|
|
468
|
-
}
|
|
446
|
+
};
|
|
469
447
|
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
470
448
|
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
471
449
|
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
@@ -505,12 +483,10 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
505
483
|
readonly nowMillis: number;
|
|
506
484
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
507
485
|
readonly _tag: "Rejected";
|
|
508
|
-
} | {
|
|
509
|
-
readonly _tag: "Cancelled";
|
|
510
486
|
} | {
|
|
511
487
|
readonly _tag: "Ambiguous";
|
|
512
488
|
} | {
|
|
513
|
-
readonly _tag: "
|
|
489
|
+
readonly _tag: "Cancelled";
|
|
514
490
|
} | {
|
|
515
491
|
readonly _tag: "Linked";
|
|
516
492
|
readonly credential: {
|
|
@@ -532,6 +508,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
532
508
|
};
|
|
533
509
|
};
|
|
534
510
|
readonly changed: boolean;
|
|
511
|
+
} | {
|
|
512
|
+
readonly _tag: "Conflict";
|
|
535
513
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
536
514
|
readonly inspectUnlink: (input: {
|
|
537
515
|
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
@@ -609,7 +587,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
609
587
|
readonly hasMore: boolean;
|
|
610
588
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
611
589
|
};
|
|
612
|
-
}, import("@yielded/auth/OAuth").OAuthUnavailable, Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthSignInServices: <S extends AnySQLiteTable<{
|
|
590
|
+
}, import("@yielded/auth/OAuth").OAuthUnavailable, import("effect/Crypto").Crypto | Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthSignInServices: <S extends AnySQLiteTable<{
|
|
613
591
|
dialect: "sqlite";
|
|
614
592
|
}>, O extends AnySQLiteTable<{
|
|
615
593
|
dialect: "sqlite";
|
|
@@ -651,7 +629,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
651
629
|
readonly hasMore: boolean;
|
|
652
630
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
653
631
|
};
|
|
654
|
-
}, import("@yielded/auth/OAuth").OAuthUnavailable, Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthRegistrationIntentServices: <S extends AnySQLiteTable<{
|
|
632
|
+
}, import("@yielded/auth/OAuth").OAuthUnavailable, import("effect/Crypto").Crypto | Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthRegistrationIntentServices: <S extends AnySQLiteTable<{
|
|
655
633
|
dialect: "sqlite";
|
|
656
634
|
}>, O extends AnySQLiteTable<{
|
|
657
635
|
dialect: "sqlite";
|
|
@@ -674,7 +652,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
674
652
|
readonly nowMillis: number;
|
|
675
653
|
}, 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>;
|
|
676
654
|
};
|
|
677
|
-
}, import("@yielded/auth/OAuth").OAuthUnavailable, Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthRegistrationServices: <Registration, S extends AnySQLiteTable<{
|
|
655
|
+
}, import("@yielded/auth/OAuth").OAuthUnavailable, import("effect/Crypto").Crypto | Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthRegistrationServices: <Registration, S extends AnySQLiteTable<{
|
|
678
656
|
dialect: "sqlite";
|
|
679
657
|
}>, O extends AnySQLiteTable<{
|
|
680
658
|
dialect: "sqlite";
|
|
@@ -690,8 +668,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
690
668
|
dialect: "sqlite";
|
|
691
669
|
}>, N>(mapping: OAuthRegistrationMapping<Registration, S, O, C, AC, TA, I, R, N>) => Effect.Effect<{
|
|
692
670
|
registrationAuthority: OAuthRegistrationAuthority<Registration>;
|
|
693
|
-
}, import("@yielded/auth/OAuth").OAuthUnavailable, Database | import("@yielded/auth/Hooks").LifecycleHooks>, coordinateOAuthRegistration: {
|
|
694
|
-
<Database extends
|
|
671
|
+
}, import("@yielded/auth/OAuth").OAuthUnavailable, import("effect/Crypto").Crypto | Database | import("@yielded/auth/Hooks").LifecycleHooks>, coordinateOAuthRegistration: {
|
|
672
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, TargetId, Registration, S extends AnySQLiteTable<{
|
|
695
673
|
dialect: "sqlite";
|
|
696
674
|
}>, O extends AnySQLiteTable<{
|
|
697
675
|
dialect: "sqlite";
|
|
@@ -709,8 +687,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
709
687
|
readonly mapping: OAuthRegistrationMapping<NoInfer<Registration>, S, O, C, AC, TA, I, Rq, N>;
|
|
710
688
|
readonly target: SuppliedService<TargetId, OAuthRegistrationAuthority<Registration>>;
|
|
711
689
|
readonly transaction?: never;
|
|
712
|
-
}, body: Effect.Effect<A, E,
|
|
713
|
-
<Database extends
|
|
690
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | import("effect/Crypto").Crypto | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TargetId>>;
|
|
691
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, TargetId, Registration, S extends AnySQLiteTable<{
|
|
714
692
|
dialect: "sqlite";
|
|
715
693
|
}>, O extends AnySQLiteTable<{
|
|
716
694
|
dialect: "sqlite";
|
|
@@ -730,9 +708,9 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
730
708
|
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
731
709
|
readonly transaction: (...args: any[]) => any;
|
|
732
710
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
733
|
-
}, body: Effect.Effect<A, E,
|
|
711
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | import("effect/Crypto").Crypto | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TargetId | TxId>>;
|
|
734
712
|
}, coordinateOAuthSignIn: {
|
|
735
|
-
<Database extends
|
|
713
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
736
714
|
dialect: "sqlite";
|
|
737
715
|
}>, O extends AnySQLiteTable<{
|
|
738
716
|
dialect: "sqlite";
|
|
@@ -745,8 +723,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
745
723
|
}>, N, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
746
724
|
readonly mapping: OAuthSignInMapping<S, O, C, AC, F, N>;
|
|
747
725
|
readonly transaction?: never;
|
|
748
|
-
}, body: Effect.Effect<A, E,
|
|
749
|
-
<Database extends
|
|
726
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | import("effect/Crypto").Crypto | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, import("@yielded/auth/OAuth").OAuthSignInPersistence>>;
|
|
727
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
750
728
|
dialect: "sqlite";
|
|
751
729
|
}>, O extends AnySQLiteTable<{
|
|
752
730
|
dialect: "sqlite";
|
|
@@ -761,9 +739,9 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
761
739
|
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
762
740
|
readonly transaction: (...args: any[]) => any;
|
|
763
741
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
764
|
-
}, body: Effect.Effect<A, E,
|
|
742
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | import("effect/Crypto").Crypto | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/OAuth").OAuthSignInPersistence>>;
|
|
765
743
|
}, coordinateOAuthRegistrationIntents: {
|
|
766
|
-
<Database extends
|
|
744
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
767
745
|
dialect: "sqlite";
|
|
768
746
|
}>, O extends AnySQLiteTable<{
|
|
769
747
|
dialect: "sqlite";
|
|
@@ -780,8 +758,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
780
758
|
}>, N, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
781
759
|
readonly mapping: OAuthRegistrationIntentMapping<S, O, C, AC, F, TA, I, N>;
|
|
782
760
|
readonly transaction?: never;
|
|
783
|
-
}, body: Effect.Effect<A, E,
|
|
784
|
-
<Database extends
|
|
761
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | import("effect/Crypto").Crypto | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, import("@yielded/auth/OAuth").OAuthRegistrationIntents>>;
|
|
762
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
785
763
|
dialect: "sqlite";
|
|
786
764
|
}>, O extends AnySQLiteTable<{
|
|
787
765
|
dialect: "sqlite";
|
|
@@ -800,9 +778,9 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
800
778
|
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
801
779
|
readonly transaction: (...args: any[]) => any;
|
|
802
780
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
803
|
-
}, body: Effect.Effect<A, E,
|
|
781
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | import("effect/Crypto").Crypto | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/OAuth").OAuthRegistrationIntents>>;
|
|
804
782
|
}, coordinateOAuthAccounts: {
|
|
805
|
-
<Database extends
|
|
783
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
806
784
|
dialect: "sqlite";
|
|
807
785
|
}>, O extends AnySQLiteTable<{
|
|
808
786
|
dialect: "sqlite";
|
|
@@ -819,8 +797,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
819
797
|
}>, N, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
820
798
|
readonly mapping: OAuthAccountsMapping<S, O, C, AC, F, TA, U, N>;
|
|
821
799
|
readonly transaction?: never;
|
|
822
|
-
}, body: Effect.Effect<A, E,
|
|
823
|
-
<Database extends
|
|
800
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | import("effect/Crypto").Crypto | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, import("@yielded/auth/OAuth").OAuthAccountsPersistence>>;
|
|
801
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
824
802
|
dialect: "sqlite";
|
|
825
803
|
}>, O extends AnySQLiteTable<{
|
|
826
804
|
dialect: "sqlite";
|
|
@@ -839,7 +817,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
839
817
|
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
840
818
|
readonly transaction: (...args: any[]) => any;
|
|
841
819
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
842
|
-
}, body: Effect.Effect<A, E,
|
|
820
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | import("effect/Crypto").Crypto | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/OAuth").OAuthAccountsPersistence>>;
|
|
843
821
|
}, makeOAuthConnectedServices: <S extends AnySQLiteTable<{
|
|
844
822
|
dialect: "sqlite";
|
|
845
823
|
}>, AC extends AnySQLiteTable<{
|
|
@@ -878,10 +856,12 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
878
856
|
readonly outcome: import("@yielded/auth/OAuth").OAuthSignInAccessOutcome;
|
|
879
857
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
880
858
|
readonly _tag: "Rejected";
|
|
859
|
+
} | {
|
|
860
|
+
readonly _tag: "Ambiguous";
|
|
881
861
|
} | {
|
|
882
862
|
readonly _tag: "Cancelled";
|
|
883
863
|
} | {
|
|
884
|
-
readonly _tag: "
|
|
864
|
+
readonly _tag: "Conflict";
|
|
885
865
|
} | {
|
|
886
866
|
readonly _tag: "Connected";
|
|
887
867
|
readonly grant: {
|
|
@@ -913,7 +893,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
913
893
|
readonly resources: readonly string[];
|
|
914
894
|
readonly retention: "access-and-refresh" | "access-only";
|
|
915
895
|
readonly maximumAccessLifetimeMillis: number;
|
|
916
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
896
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
917
897
|
readonly refreshAheadMillis: number;
|
|
918
898
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
919
899
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -926,22 +906,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
926
906
|
readonly metadata: {
|
|
927
907
|
readonly scopes: readonly string[];
|
|
928
908
|
readonly resources: readonly string[];
|
|
929
|
-
readonly accessExpiresAtMillis?: number
|
|
930
|
-
readonly refreshExpiresAtMillis?: number
|
|
909
|
+
readonly accessExpiresAtMillis?: number;
|
|
910
|
+
readonly refreshExpiresAtMillis?: number;
|
|
931
911
|
readonly useUntilMillis: number;
|
|
932
|
-
readonly refreshUseUntilMillis?: number
|
|
912
|
+
readonly refreshUseUntilMillis?: number;
|
|
933
913
|
readonly obtainedAtMillis: number;
|
|
934
914
|
readonly profile?: {
|
|
935
|
-
readonly displayName?: string
|
|
936
|
-
readonly handle?: string
|
|
937
|
-
readonly avatarUrl?: string
|
|
938
|
-
readonly profileUrl?: string
|
|
939
|
-
readonly email?: string
|
|
940
|
-
readonly emailVerified?: boolean
|
|
915
|
+
readonly displayName?: string;
|
|
916
|
+
readonly handle?: string;
|
|
917
|
+
readonly avatarUrl?: string;
|
|
918
|
+
readonly profileUrl?: string;
|
|
919
|
+
readonly email?: string;
|
|
920
|
+
readonly emailVerified?: boolean;
|
|
941
921
|
readonly providerData?: {
|
|
942
922
|
readonly [x: string]: import("effect/Schema").Json;
|
|
943
|
-
}
|
|
944
|
-
}
|
|
923
|
+
};
|
|
924
|
+
};
|
|
945
925
|
};
|
|
946
926
|
};
|
|
947
927
|
readonly sealed: {
|
|
@@ -951,8 +931,6 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
951
931
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
952
932
|
};
|
|
953
933
|
};
|
|
954
|
-
} | {
|
|
955
|
-
readonly _tag: "Conflict";
|
|
956
934
|
} | {
|
|
957
935
|
readonly _tag: "Busy";
|
|
958
936
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
|
|
@@ -994,11 +972,11 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
994
972
|
readonly resources: readonly string[];
|
|
995
973
|
readonly retention: "access-and-refresh" | "access-only";
|
|
996
974
|
readonly maximumAccessLifetimeMillis: number;
|
|
997
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
975
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
998
976
|
readonly refreshAheadMillis: number;
|
|
999
977
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1000
978
|
readonly revocation: "cohort" | "unsupported";
|
|
1001
|
-
}
|
|
979
|
+
};
|
|
1002
980
|
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
1003
981
|
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1004
982
|
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
@@ -1025,7 +1003,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1025
1003
|
readonly resources: readonly string[];
|
|
1026
1004
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1027
1005
|
readonly maximumAccessLifetimeMillis: number;
|
|
1028
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1006
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1029
1007
|
readonly refreshAheadMillis: number;
|
|
1030
1008
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1031
1009
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1059,13 +1037,13 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1059
1037
|
readonly resources: readonly string[];
|
|
1060
1038
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1061
1039
|
readonly maximumAccessLifetimeMillis: number;
|
|
1062
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1040
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1063
1041
|
readonly refreshAheadMillis: number;
|
|
1064
1042
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1065
1043
|
readonly revocation: "cohort" | "unsupported";
|
|
1066
1044
|
};
|
|
1067
1045
|
};
|
|
1068
|
-
}
|
|
1046
|
+
};
|
|
1069
1047
|
readonly maximumEvidenceAgeMillis: number;
|
|
1070
1048
|
};
|
|
1071
1049
|
readonly sealed: {
|
|
@@ -1107,11 +1085,11 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1107
1085
|
readonly resources: readonly string[];
|
|
1108
1086
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1109
1087
|
readonly maximumAccessLifetimeMillis: number;
|
|
1110
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1088
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1111
1089
|
readonly refreshAheadMillis: number;
|
|
1112
1090
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1113
1091
|
readonly revocation: "cohort" | "unsupported";
|
|
1114
|
-
}
|
|
1092
|
+
};
|
|
1115
1093
|
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
1116
1094
|
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1117
1095
|
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
@@ -1138,7 +1116,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1138
1116
|
readonly resources: readonly string[];
|
|
1139
1117
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1140
1118
|
readonly maximumAccessLifetimeMillis: number;
|
|
1141
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1119
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1142
1120
|
readonly refreshAheadMillis: number;
|
|
1143
1121
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1144
1122
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1172,13 +1150,13 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1172
1150
|
readonly resources: readonly string[];
|
|
1173
1151
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1174
1152
|
readonly maximumAccessLifetimeMillis: number;
|
|
1175
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1153
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1176
1154
|
readonly refreshAheadMillis: number;
|
|
1177
1155
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1178
1156
|
readonly revocation: "cohort" | "unsupported";
|
|
1179
1157
|
};
|
|
1180
1158
|
};
|
|
1181
|
-
}
|
|
1159
|
+
};
|
|
1182
1160
|
readonly maximumEvidenceAgeMillis: number;
|
|
1183
1161
|
};
|
|
1184
1162
|
readonly sealed: {
|
|
@@ -1225,11 +1203,11 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1225
1203
|
readonly resources: readonly string[];
|
|
1226
1204
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1227
1205
|
readonly maximumAccessLifetimeMillis: number;
|
|
1228
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1206
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1229
1207
|
readonly refreshAheadMillis: number;
|
|
1230
1208
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1231
1209
|
readonly revocation: "cohort" | "unsupported";
|
|
1232
|
-
}
|
|
1210
|
+
};
|
|
1233
1211
|
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
1234
1212
|
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1235
1213
|
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
@@ -1256,7 +1234,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1256
1234
|
readonly resources: readonly string[];
|
|
1257
1235
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1258
1236
|
readonly maximumAccessLifetimeMillis: number;
|
|
1259
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1237
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1260
1238
|
readonly refreshAheadMillis: number;
|
|
1261
1239
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1262
1240
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1290,13 +1268,13 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1290
1268
|
readonly resources: readonly string[];
|
|
1291
1269
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1292
1270
|
readonly maximumAccessLifetimeMillis: number;
|
|
1293
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1271
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1294
1272
|
readonly refreshAheadMillis: number;
|
|
1295
1273
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1296
1274
|
readonly revocation: "cohort" | "unsupported";
|
|
1297
1275
|
};
|
|
1298
1276
|
};
|
|
1299
|
-
}
|
|
1277
|
+
};
|
|
1300
1278
|
readonly maximumEvidenceAgeMillis: number;
|
|
1301
1279
|
};
|
|
1302
1280
|
readonly sealed: {
|
|
@@ -1338,10 +1316,12 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1338
1316
|
readonly nowMillis: number;
|
|
1339
1317
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
1340
1318
|
readonly _tag: "Rejected";
|
|
1319
|
+
} | {
|
|
1320
|
+
readonly _tag: "Ambiguous";
|
|
1341
1321
|
} | {
|
|
1342
1322
|
readonly _tag: "Cancelled";
|
|
1343
1323
|
} | {
|
|
1344
|
-
readonly _tag: "
|
|
1324
|
+
readonly _tag: "Conflict";
|
|
1345
1325
|
} | {
|
|
1346
1326
|
readonly _tag: "Connected";
|
|
1347
1327
|
readonly grant: {
|
|
@@ -1373,7 +1353,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1373
1353
|
readonly resources: readonly string[];
|
|
1374
1354
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1375
1355
|
readonly maximumAccessLifetimeMillis: number;
|
|
1376
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1356
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1377
1357
|
readonly refreshAheadMillis: number;
|
|
1378
1358
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1379
1359
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1386,22 +1366,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1386
1366
|
readonly metadata: {
|
|
1387
1367
|
readonly scopes: readonly string[];
|
|
1388
1368
|
readonly resources: readonly string[];
|
|
1389
|
-
readonly accessExpiresAtMillis?: number
|
|
1390
|
-
readonly refreshExpiresAtMillis?: number
|
|
1369
|
+
readonly accessExpiresAtMillis?: number;
|
|
1370
|
+
readonly refreshExpiresAtMillis?: number;
|
|
1391
1371
|
readonly useUntilMillis: number;
|
|
1392
|
-
readonly refreshUseUntilMillis?: number
|
|
1372
|
+
readonly refreshUseUntilMillis?: number;
|
|
1393
1373
|
readonly obtainedAtMillis: number;
|
|
1394
1374
|
readonly profile?: {
|
|
1395
|
-
readonly displayName?: string
|
|
1396
|
-
readonly handle?: string
|
|
1397
|
-
readonly avatarUrl?: string
|
|
1398
|
-
readonly profileUrl?: string
|
|
1399
|
-
readonly email?: string
|
|
1400
|
-
readonly emailVerified?: boolean
|
|
1375
|
+
readonly displayName?: string;
|
|
1376
|
+
readonly handle?: string;
|
|
1377
|
+
readonly avatarUrl?: string;
|
|
1378
|
+
readonly profileUrl?: string;
|
|
1379
|
+
readonly email?: string;
|
|
1380
|
+
readonly emailVerified?: boolean;
|
|
1401
1381
|
readonly providerData?: {
|
|
1402
1382
|
readonly [x: string]: import("effect/Schema").Json;
|
|
1403
|
-
}
|
|
1404
|
-
}
|
|
1383
|
+
};
|
|
1384
|
+
};
|
|
1405
1385
|
};
|
|
1406
1386
|
};
|
|
1407
1387
|
readonly sealed: {
|
|
@@ -1411,8 +1391,6 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1411
1391
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1412
1392
|
};
|
|
1413
1393
|
};
|
|
1414
|
-
} | {
|
|
1415
|
-
readonly _tag: "Conflict";
|
|
1416
1394
|
} | {
|
|
1417
1395
|
readonly _tag: "Busy";
|
|
1418
1396
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
|
|
@@ -1428,22 +1406,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1428
1406
|
readonly profileKey: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
1429
1407
|
readonly status: "Active" | "Disconnected" | "ReauthorizationRequired" | "Refreshing";
|
|
1430
1408
|
readonly scopes: readonly string[];
|
|
1431
|
-
readonly accessExpiresAtMillis?: number
|
|
1409
|
+
readonly accessExpiresAtMillis?: number;
|
|
1432
1410
|
readonly useUntilMillis: number;
|
|
1433
1411
|
readonly profile?: {
|
|
1434
|
-
readonly displayName?: string
|
|
1435
|
-
readonly handle?: string
|
|
1436
|
-
readonly avatarUrl?: string
|
|
1437
|
-
readonly profileUrl?: string
|
|
1438
|
-
readonly email?: string
|
|
1439
|
-
readonly emailVerified?: boolean
|
|
1412
|
+
readonly displayName?: string;
|
|
1413
|
+
readonly handle?: string;
|
|
1414
|
+
readonly avatarUrl?: string;
|
|
1415
|
+
readonly profileUrl?: string;
|
|
1416
|
+
readonly email?: string;
|
|
1417
|
+
readonly emailVerified?: boolean;
|
|
1440
1418
|
readonly providerData?: {
|
|
1441
1419
|
readonly [x: string]: import("effect/Schema").Json;
|
|
1442
|
-
}
|
|
1443
|
-
}
|
|
1420
|
+
};
|
|
1421
|
+
};
|
|
1444
1422
|
readonly remoteRevocation: "Confirmed" | "Pending" | "Unknown" | "Unsupported";
|
|
1445
1423
|
}[];
|
|
1446
|
-
readonly cursor?: string
|
|
1424
|
+
readonly cursor?: string;
|
|
1447
1425
|
}, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
1448
1426
|
readonly inspectDisconnect: (input: {
|
|
1449
1427
|
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
@@ -1486,7 +1464,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1486
1464
|
readonly resources: readonly string[];
|
|
1487
1465
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1488
1466
|
readonly maximumAccessLifetimeMillis: number;
|
|
1489
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1467
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1490
1468
|
readonly refreshAheadMillis: number;
|
|
1491
1469
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1492
1470
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1499,22 +1477,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1499
1477
|
readonly metadata: {
|
|
1500
1478
|
readonly scopes: readonly string[];
|
|
1501
1479
|
readonly resources: readonly string[];
|
|
1502
|
-
readonly accessExpiresAtMillis?: number
|
|
1503
|
-
readonly refreshExpiresAtMillis?: number
|
|
1480
|
+
readonly accessExpiresAtMillis?: number;
|
|
1481
|
+
readonly refreshExpiresAtMillis?: number;
|
|
1504
1482
|
readonly useUntilMillis: number;
|
|
1505
|
-
readonly refreshUseUntilMillis?: number
|
|
1483
|
+
readonly refreshUseUntilMillis?: number;
|
|
1506
1484
|
readonly obtainedAtMillis: number;
|
|
1507
1485
|
readonly profile?: {
|
|
1508
|
-
readonly displayName?: string
|
|
1509
|
-
readonly handle?: string
|
|
1510
|
-
readonly avatarUrl?: string
|
|
1511
|
-
readonly profileUrl?: string
|
|
1512
|
-
readonly email?: string
|
|
1513
|
-
readonly emailVerified?: boolean
|
|
1486
|
+
readonly displayName?: string;
|
|
1487
|
+
readonly handle?: string;
|
|
1488
|
+
readonly avatarUrl?: string;
|
|
1489
|
+
readonly profileUrl?: string;
|
|
1490
|
+
readonly email?: string;
|
|
1491
|
+
readonly emailVerified?: boolean;
|
|
1514
1492
|
readonly providerData?: {
|
|
1515
1493
|
readonly [x: string]: import("effect/Schema").Json;
|
|
1516
|
-
}
|
|
1517
|
-
}
|
|
1494
|
+
};
|
|
1495
|
+
};
|
|
1518
1496
|
};
|
|
1519
1497
|
};
|
|
1520
1498
|
readonly sealed?: {
|
|
@@ -1522,7 +1500,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1522
1500
|
readonly keyId: string;
|
|
1523
1501
|
readonly nonce: string;
|
|
1524
1502
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1525
|
-
}
|
|
1503
|
+
};
|
|
1526
1504
|
};
|
|
1527
1505
|
readonly revision: {
|
|
1528
1506
|
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
@@ -1599,7 +1577,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1599
1577
|
readonly resources: readonly string[];
|
|
1600
1578
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1601
1579
|
readonly maximumAccessLifetimeMillis: number;
|
|
1602
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1580
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1603
1581
|
readonly refreshAheadMillis: number;
|
|
1604
1582
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1605
1583
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1612,22 +1590,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1612
1590
|
readonly metadata: {
|
|
1613
1591
|
readonly scopes: readonly string[];
|
|
1614
1592
|
readonly resources: readonly string[];
|
|
1615
|
-
readonly accessExpiresAtMillis?: number
|
|
1616
|
-
readonly refreshExpiresAtMillis?: number
|
|
1593
|
+
readonly accessExpiresAtMillis?: number;
|
|
1594
|
+
readonly refreshExpiresAtMillis?: number;
|
|
1617
1595
|
readonly useUntilMillis: number;
|
|
1618
|
-
readonly refreshUseUntilMillis?: number
|
|
1596
|
+
readonly refreshUseUntilMillis?: number;
|
|
1619
1597
|
readonly obtainedAtMillis: number;
|
|
1620
1598
|
readonly profile?: {
|
|
1621
|
-
readonly displayName?: string
|
|
1622
|
-
readonly handle?: string
|
|
1623
|
-
readonly avatarUrl?: string
|
|
1624
|
-
readonly profileUrl?: string
|
|
1625
|
-
readonly email?: string
|
|
1626
|
-
readonly emailVerified?: boolean
|
|
1599
|
+
readonly displayName?: string;
|
|
1600
|
+
readonly handle?: string;
|
|
1601
|
+
readonly avatarUrl?: string;
|
|
1602
|
+
readonly profileUrl?: string;
|
|
1603
|
+
readonly email?: string;
|
|
1604
|
+
readonly emailVerified?: boolean;
|
|
1627
1605
|
readonly providerData?: {
|
|
1628
1606
|
readonly [x: string]: import("effect/Schema").Json;
|
|
1629
|
-
}
|
|
1630
|
-
}
|
|
1607
|
+
};
|
|
1608
|
+
};
|
|
1631
1609
|
};
|
|
1632
1610
|
};
|
|
1633
1611
|
readonly sealed: {
|
|
@@ -1684,7 +1662,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1684
1662
|
readonly resources: readonly string[];
|
|
1685
1663
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1686
1664
|
readonly maximumAccessLifetimeMillis: number;
|
|
1687
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1665
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1688
1666
|
readonly refreshAheadMillis: number;
|
|
1689
1667
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1690
1668
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1697,22 +1675,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1697
1675
|
readonly metadata: {
|
|
1698
1676
|
readonly scopes: readonly string[];
|
|
1699
1677
|
readonly resources: readonly string[];
|
|
1700
|
-
readonly accessExpiresAtMillis?: number
|
|
1701
|
-
readonly refreshExpiresAtMillis?: number
|
|
1678
|
+
readonly accessExpiresAtMillis?: number;
|
|
1679
|
+
readonly refreshExpiresAtMillis?: number;
|
|
1702
1680
|
readonly useUntilMillis: number;
|
|
1703
|
-
readonly refreshUseUntilMillis?: number
|
|
1681
|
+
readonly refreshUseUntilMillis?: number;
|
|
1704
1682
|
readonly obtainedAtMillis: number;
|
|
1705
1683
|
readonly profile?: {
|
|
1706
|
-
readonly displayName?: string
|
|
1707
|
-
readonly handle?: string
|
|
1708
|
-
readonly avatarUrl?: string
|
|
1709
|
-
readonly profileUrl?: string
|
|
1710
|
-
readonly email?: string
|
|
1711
|
-
readonly emailVerified?: boolean
|
|
1684
|
+
readonly displayName?: string;
|
|
1685
|
+
readonly handle?: string;
|
|
1686
|
+
readonly avatarUrl?: string;
|
|
1687
|
+
readonly profileUrl?: string;
|
|
1688
|
+
readonly email?: string;
|
|
1689
|
+
readonly emailVerified?: boolean;
|
|
1712
1690
|
readonly providerData?: {
|
|
1713
1691
|
readonly [x: string]: import("effect/Schema").Json;
|
|
1714
|
-
}
|
|
1715
|
-
}
|
|
1692
|
+
};
|
|
1693
|
+
};
|
|
1716
1694
|
};
|
|
1717
1695
|
};
|
|
1718
1696
|
readonly sealed: {
|
|
@@ -1768,7 +1746,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1768
1746
|
readonly resources: readonly string[];
|
|
1769
1747
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1770
1748
|
readonly maximumAccessLifetimeMillis: number;
|
|
1771
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1749
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1772
1750
|
readonly refreshAheadMillis: number;
|
|
1773
1751
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1774
1752
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1781,22 +1759,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1781
1759
|
readonly metadata: {
|
|
1782
1760
|
readonly scopes: readonly string[];
|
|
1783
1761
|
readonly resources: readonly string[];
|
|
1784
|
-
readonly accessExpiresAtMillis?: number
|
|
1785
|
-
readonly refreshExpiresAtMillis?: number
|
|
1762
|
+
readonly accessExpiresAtMillis?: number;
|
|
1763
|
+
readonly refreshExpiresAtMillis?: number;
|
|
1786
1764
|
readonly useUntilMillis: number;
|
|
1787
|
-
readonly refreshUseUntilMillis?: number
|
|
1765
|
+
readonly refreshUseUntilMillis?: number;
|
|
1788
1766
|
readonly obtainedAtMillis: number;
|
|
1789
1767
|
readonly profile?: {
|
|
1790
|
-
readonly displayName?: string
|
|
1791
|
-
readonly handle?: string
|
|
1792
|
-
readonly avatarUrl?: string
|
|
1793
|
-
readonly profileUrl?: string
|
|
1794
|
-
readonly email?: string
|
|
1795
|
-
readonly emailVerified?: boolean
|
|
1768
|
+
readonly displayName?: string;
|
|
1769
|
+
readonly handle?: string;
|
|
1770
|
+
readonly avatarUrl?: string;
|
|
1771
|
+
readonly profileUrl?: string;
|
|
1772
|
+
readonly email?: string;
|
|
1773
|
+
readonly emailVerified?: boolean;
|
|
1796
1774
|
readonly providerData?: {
|
|
1797
1775
|
readonly [x: string]: import("effect/Schema").Json;
|
|
1798
|
-
}
|
|
1799
|
-
}
|
|
1776
|
+
};
|
|
1777
|
+
};
|
|
1800
1778
|
};
|
|
1801
1779
|
};
|
|
1802
1780
|
readonly sealed: {
|
|
@@ -1832,7 +1810,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1832
1810
|
readonly hasMore: boolean;
|
|
1833
1811
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
|
|
1834
1812
|
};
|
|
1835
|
-
}, import("@yielded/auth/OAuth").OAuthUnavailable, Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthConnectedRevocationServices: <T extends AnySQLiteTable<{
|
|
1813
|
+
}, import("@yielded/auth/OAuth").OAuthUnavailable, import("effect/Crypto").Crypto | Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthConnectedRevocationServices: <T extends AnySQLiteTable<{
|
|
1836
1814
|
dialect: "sqlite";
|
|
1837
1815
|
}>, O extends AnySQLiteTable<{
|
|
1838
1816
|
dialect: "sqlite";
|
|
@@ -1887,7 +1865,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1887
1865
|
readonly resources: readonly string[];
|
|
1888
1866
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1889
1867
|
readonly maximumAccessLifetimeMillis: number;
|
|
1890
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1868
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1891
1869
|
readonly refreshAheadMillis: number;
|
|
1892
1870
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1893
1871
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1900,22 +1878,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1900
1878
|
readonly metadata: {
|
|
1901
1879
|
readonly scopes: readonly string[];
|
|
1902
1880
|
readonly resources: readonly string[];
|
|
1903
|
-
readonly accessExpiresAtMillis?: number
|
|
1904
|
-
readonly refreshExpiresAtMillis?: number
|
|
1881
|
+
readonly accessExpiresAtMillis?: number;
|
|
1882
|
+
readonly refreshExpiresAtMillis?: number;
|
|
1905
1883
|
readonly useUntilMillis: number;
|
|
1906
|
-
readonly refreshUseUntilMillis?: number
|
|
1884
|
+
readonly refreshUseUntilMillis?: number;
|
|
1907
1885
|
readonly obtainedAtMillis: number;
|
|
1908
1886
|
readonly profile?: {
|
|
1909
|
-
readonly displayName?: string
|
|
1910
|
-
readonly handle?: string
|
|
1911
|
-
readonly avatarUrl?: string
|
|
1912
|
-
readonly profileUrl?: string
|
|
1913
|
-
readonly email?: string
|
|
1914
|
-
readonly emailVerified?: boolean
|
|
1887
|
+
readonly displayName?: string;
|
|
1888
|
+
readonly handle?: string;
|
|
1889
|
+
readonly avatarUrl?: string;
|
|
1890
|
+
readonly profileUrl?: string;
|
|
1891
|
+
readonly email?: string;
|
|
1892
|
+
readonly emailVerified?: boolean;
|
|
1915
1893
|
readonly providerData?: {
|
|
1916
1894
|
readonly [x: string]: import("effect/Schema").Json;
|
|
1917
|
-
}
|
|
1918
|
-
}
|
|
1895
|
+
};
|
|
1896
|
+
};
|
|
1919
1897
|
};
|
|
1920
1898
|
};
|
|
1921
1899
|
};
|
|
@@ -1940,8 +1918,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1940
1918
|
readonly settled: boolean;
|
|
1941
1919
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
1942
1920
|
};
|
|
1943
|
-
}, import("@yielded/auth/OAuth").OAuthUnavailable, Database | import("@yielded/auth/Hooks").LifecycleHooks>, coordinateOAuthConnected: {
|
|
1944
|
-
<D extends
|
|
1921
|
+
}, import("@yielded/auth/OAuth").OAuthUnavailable, import("effect/Crypto").Crypto | Database | import("@yielded/auth/Hooks").LifecycleHooks>, coordinateOAuthConnected: {
|
|
1922
|
+
<D extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
1945
1923
|
dialect: "sqlite";
|
|
1946
1924
|
}>, AC extends AnySQLiteTable<{
|
|
1947
1925
|
dialect: "sqlite";
|
|
@@ -1966,8 +1944,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1966
1944
|
}>, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<D, DatabaseError, DatabaseRequirements>, options: {
|
|
1967
1945
|
readonly mapping: OAuthConnectedMapping<S, AC, T, O, F, G, C, H, UA, DC, N, J>;
|
|
1968
1946
|
readonly transaction?: never;
|
|
1969
|
-
}, body: Effect.Effect<A, E,
|
|
1970
|
-
<D extends
|
|
1947
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | import("effect/Crypto").Crypto | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, import("@yielded/auth/OAuth").OAuthConnectedPersistence>>;
|
|
1948
|
+
<D extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
1971
1949
|
dialect: "sqlite";
|
|
1972
1950
|
}>, AC extends AnySQLiteTable<{
|
|
1973
1951
|
dialect: "sqlite";
|
|
@@ -1994,9 +1972,9 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1994
1972
|
readonly transaction: SuppliedService<TxId, NoInfer<D extends {
|
|
1995
1973
|
readonly transaction: (...args: any[]) => any;
|
|
1996
1974
|
} ? Parameters<Parameters<D["transaction"]>[0]>[0] : never>, TxShape>;
|
|
1997
|
-
}, body: Effect.Effect<A, E,
|
|
1975
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | import("effect/Crypto").Crypto | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/OAuth").OAuthConnectedPersistence>>;
|
|
1998
1976
|
}, coordinateOAuthConnectedRevocations: {
|
|
1999
|
-
<D extends
|
|
1977
|
+
<D extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, T extends AnySQLiteTable<{
|
|
2000
1978
|
dialect: "sqlite";
|
|
2001
1979
|
}>, O extends AnySQLiteTable<{
|
|
2002
1980
|
dialect: "sqlite";
|
|
@@ -2013,8 +1991,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
2013
1991
|
}>, N, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<D, DatabaseError, DatabaseRequirements>, options: {
|
|
2014
1992
|
readonly mapping: OAuthConnectedRevocationMapping<T, O, F, G, C, H, J, N>;
|
|
2015
1993
|
readonly transaction?: never;
|
|
2016
|
-
}, body: Effect.Effect<A, E,
|
|
2017
|
-
<D extends
|
|
1994
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | import("effect/Crypto").Crypto | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, import("@yielded/auth/OAuth").OAuthConnectedRevocations>>;
|
|
1995
|
+
<D extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, T extends AnySQLiteTable<{
|
|
2018
1996
|
dialect: "sqlite";
|
|
2019
1997
|
}>, O extends AnySQLiteTable<{
|
|
2020
1998
|
dialect: "sqlite";
|
|
@@ -2033,7 +2011,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
2033
2011
|
readonly transaction: SuppliedService<TxId, NoInfer<D extends {
|
|
2034
2012
|
readonly transaction: (...args: any[]) => any;
|
|
2035
2013
|
} ? Parameters<Parameters<D["transaction"]>[0]>[0] : never>, TxShape>;
|
|
2036
|
-
}, body: Effect.Effect<A, E,
|
|
2014
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | import("effect/Crypto").Crypto | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/OAuth").OAuthConnectedRevocations>>;
|
|
2037
2015
|
};
|
|
2038
2016
|
export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
2039
2017
|
dialect: "sqlite";
|
|
@@ -2045,7 +2023,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2045
2023
|
dialect: "sqlite";
|
|
2046
2024
|
}>, H extends AnySQLiteTable<{
|
|
2047
2025
|
dialect: "sqlite";
|
|
2048
|
-
}>, 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, NativeDatabase>>, makePasskeyPersistenceServices: <S extends AnySQLiteTable<{
|
|
2026
|
+
}>, 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, import("effect/Crypto").Crypto | Database | Exclude<RSetup, NativeDatabase>>, makePasskeyPersistenceServices: <S extends AnySQLiteTable<{
|
|
2049
2027
|
dialect: "sqlite";
|
|
2050
2028
|
}>, C extends AnySQLiteTable<{
|
|
2051
2029
|
dialect: "sqlite";
|
|
@@ -2063,7 +2041,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2063
2041
|
dialect: "sqlite";
|
|
2064
2042
|
}>, Charge extends AnySQLiteTable<{
|
|
2065
2043
|
dialect: "sqlite";
|
|
2066
|
-
}>, 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, NativeDatabase>>, makePasskeyEnrollmentContextServices: <S extends AnySQLiteTable<{
|
|
2044
|
+
}>, 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, import("effect/Crypto").Crypto | Database | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<RSetup, NativeDatabase>>, makePasskeyEnrollmentContextServices: <S extends AnySQLiteTable<{
|
|
2067
2045
|
dialect: "sqlite";
|
|
2068
2046
|
}>, C extends AnySQLiteTable<{
|
|
2069
2047
|
dialect: "sqlite";
|
|
@@ -2075,7 +2053,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2075
2053
|
dialect: "sqlite";
|
|
2076
2054
|
}>, M extends AnySQLiteTable<{
|
|
2077
2055
|
dialect: "sqlite";
|
|
2078
|
-
}>, 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, NativeDatabase>>, makePasskeyRegistrationCeremonyServices: <M extends AnySQLiteTable<{
|
|
2056
|
+
}>, 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, import("effect/Crypto").Crypto | Database | Exclude<RSetup, NativeDatabase>>, makePasskeyRegistrationCeremonyServices: <M extends AnySQLiteTable<{
|
|
2079
2057
|
dialect: "sqlite";
|
|
2080
2058
|
}>, Flow extends AnySQLiteTable<{
|
|
2081
2059
|
dialect: "sqlite";
|
|
@@ -2087,8 +2065,8 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2087
2065
|
dialect: "sqlite";
|
|
2088
2066
|
}>, H extends AnySQLiteTable<{
|
|
2089
2067
|
dialect: "sqlite";
|
|
2090
|
-
}>, 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, NativeDatabase>>, coordinatePasskeyPersistence: {
|
|
2091
|
-
<Database extends
|
|
2068
|
+
}>, 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, import("effect/Crypto").Crypto | Database | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<RSetup, NativeDatabase>>, coordinatePasskeyPersistence: {
|
|
2069
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2092
2070
|
dialect: "sqlite";
|
|
2093
2071
|
}>, C extends AnySQLiteTable<{
|
|
2094
2072
|
dialect: "sqlite";
|
|
@@ -2109,8 +2087,8 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2109
2087
|
}>, N, A, E, R, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
2110
2088
|
readonly mapping: import("@yielded/auth-persistence/Adapter").PasskeyMappingSource<PasskeyPersistenceMapping<PasskeyCredentialMapping<S, C, F, O, H, N>, M, Flow, Admission, Charge, N>, RSetup>;
|
|
2111
2089
|
readonly transaction?: never;
|
|
2112
|
-
}, body: Effect.Effect<A, E,
|
|
2113
|
-
<Database extends
|
|
2090
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | import("@yielded/auth-persistence/Adapter").PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | import("effect/Crypto").Crypto | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, import("@yielded/auth/Passkey").PasskeyPersistence>>;
|
|
2091
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2114
2092
|
dialect: "sqlite";
|
|
2115
2093
|
}>, C extends AnySQLiteTable<{
|
|
2116
2094
|
dialect: "sqlite";
|
|
@@ -2133,9 +2111,9 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2133
2111
|
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
2134
2112
|
readonly transaction: (...args: any[]) => any;
|
|
2135
2113
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
2136
|
-
}, body: Effect.Effect<A, E,
|
|
2114
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | import("@yielded/auth-persistence/Adapter").PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | import("effect/Crypto").Crypto | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/Passkey").PasskeyPersistence>>;
|
|
2137
2115
|
}, coordinatePasskeyRegistrationCeremony: {
|
|
2138
|
-
<Database extends
|
|
2116
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, M extends AnySQLiteTable<{
|
|
2139
2117
|
dialect: "sqlite";
|
|
2140
2118
|
}>, Flow extends AnySQLiteTable<{
|
|
2141
2119
|
dialect: "sqlite";
|
|
@@ -2150,8 +2128,8 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2150
2128
|
}>, A, E, R, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
2151
2129
|
readonly mapping: import("@yielded/auth-persistence/Adapter").PasskeyMappingSource<PasskeyRegistrationCeremonyMapping<M, Flow, Admission, Charge, Intent, H>, RSetup>;
|
|
2152
2130
|
readonly transaction?: never;
|
|
2153
|
-
}, body: Effect.Effect<A, E,
|
|
2154
|
-
<Database extends
|
|
2131
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | import("@yielded/auth-persistence/Adapter").PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | import("effect/Crypto").Crypto | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, import("@yielded/auth/Passkey").PasskeyPersistence>>;
|
|
2132
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, M extends AnySQLiteTable<{
|
|
2155
2133
|
dialect: "sqlite";
|
|
2156
2134
|
}>, Flow extends AnySQLiteTable<{
|
|
2157
2135
|
dialect: "sqlite";
|
|
@@ -2168,7 +2146,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2168
2146
|
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
2169
2147
|
readonly transaction: (...args: any[]) => any;
|
|
2170
2148
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
2171
|
-
}, body: Effect.Effect<A, E,
|
|
2149
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | import("@yielded/auth-persistence/Adapter").PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | import("effect/Crypto").Crypto | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/Passkey").PasskeyPersistence>>;
|
|
2172
2150
|
}, makePasskeyManagementServices: <S extends AnySQLiteTable<{
|
|
2173
2151
|
dialect: "sqlite";
|
|
2174
2152
|
}>, C extends AnySQLiteTable<{
|
|
@@ -2189,7 +2167,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2189
2167
|
dialect: "sqlite";
|
|
2190
2168
|
}>, Command extends AnySQLiteTable<{
|
|
2191
2169
|
dialect: "sqlite";
|
|
2192
|
-
}>, 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, NativeDatabase>>, makePasskeyRegistrationServices: <S extends AnySQLiteTable<{
|
|
2170
|
+
}>, 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, import("effect/Crypto").Crypto | Database | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<RSetup, NativeDatabase>>, makePasskeyRegistrationServices: <S extends AnySQLiteTable<{
|
|
2193
2171
|
dialect: "sqlite";
|
|
2194
2172
|
}>, C extends AnySQLiteTable<{
|
|
2195
2173
|
dialect: "sqlite";
|
|
@@ -2209,8 +2187,8 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2209
2187
|
dialect: "sqlite";
|
|
2210
2188
|
}>, Intent extends AnySQLiteTable<{
|
|
2211
2189
|
dialect: "sqlite";
|
|
2212
|
-
}>, 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, NativeDatabase>>, coordinatePasskeyManagement: {
|
|
2213
|
-
<Database extends
|
|
2190
|
+
}>, 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, import("effect/Crypto").Crypto | Database | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<RSetup, NativeDatabase>>, coordinatePasskeyManagement: {
|
|
2191
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2214
2192
|
dialect: "sqlite";
|
|
2215
2193
|
}>, C extends AnySQLiteTable<{
|
|
2216
2194
|
dialect: "sqlite";
|
|
@@ -2233,8 +2211,8 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2233
2211
|
}>, N, A, E, R, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
2234
2212
|
readonly mapping: import("@yielded/auth-persistence/Adapter").PasskeyMappingSource<PasskeyManagementMapping<S, C, F, O, H, M, Flow, Admission, Charge, Command, N>, RSetup>;
|
|
2235
2213
|
readonly transaction?: never;
|
|
2236
|
-
}, body: Effect.Effect<A, E,
|
|
2237
|
-
<Database extends
|
|
2214
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | import("@yielded/auth-persistence/Adapter").PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | import("effect/Crypto").Crypto | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, import("@yielded/auth/Passkey").PasskeyManagementPersistence | import("@yielded/auth/Passkey").PasskeyPersistence>>;
|
|
2215
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2238
2216
|
dialect: "sqlite";
|
|
2239
2217
|
}>, C extends AnySQLiteTable<{
|
|
2240
2218
|
dialect: "sqlite";
|
|
@@ -2259,9 +2237,9 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2259
2237
|
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
2260
2238
|
readonly transaction: (...args: any[]) => any;
|
|
2261
2239
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
2262
|
-
}, body: Effect.Effect<A, E,
|
|
2240
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | import("@yielded/auth-persistence/Adapter").PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | import("effect/Crypto").Crypto | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/Passkey").PasskeyManagementPersistence | import("@yielded/auth/Passkey").PasskeyPersistence>>;
|
|
2263
2241
|
}, coordinatePasskeyRegistration: {
|
|
2264
|
-
<Database extends
|
|
2242
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2265
2243
|
dialect: "sqlite";
|
|
2266
2244
|
}>, C extends AnySQLiteTable<{
|
|
2267
2245
|
dialect: "sqlite";
|
|
@@ -2285,8 +2263,8 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2285
2263
|
readonly mapping: import("@yielded/auth-persistence/Adapter").PasskeyMappingSource<PasskeyRegistrationMapping<S, C, F, O, H, M, Flow, Admission, Charge, Intent, N, Value>, RSetup>;
|
|
2286
2264
|
readonly authority: Context.Key<AuthorityId, import("@yielded/auth-persistence/Adapter").PasskeyRegistrationWriter<Value>>;
|
|
2287
2265
|
readonly transaction?: never;
|
|
2288
|
-
}, body: Effect.Effect<A, E,
|
|
2289
|
-
<Database extends
|
|
2266
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | import("@yielded/auth-persistence/Adapter").PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | import("effect/Crypto").Crypto | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, AuthorityId | import("@yielded/auth/Passkey").PasskeyPersistence>>;
|
|
2267
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2290
2268
|
dialect: "sqlite";
|
|
2291
2269
|
}>, C extends AnySQLiteTable<{
|
|
2292
2270
|
dialect: "sqlite";
|
|
@@ -2312,7 +2290,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2312
2290
|
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
2313
2291
|
readonly transaction: (...args: any[]) => any;
|
|
2314
2292
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
2315
|
-
}, body: Effect.Effect<A, E,
|
|
2293
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | import("@yielded/auth-persistence/Adapter").PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | import("effect/Crypto").Crypto | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, AuthorityId | TxId | import("@yielded/auth/Passkey").PasskeyPersistence>>;
|
|
2316
2294
|
};
|
|
2317
2295
|
export declare const makeTotpPersistenceServices: <S extends AnySQLiteTable<{
|
|
2318
2296
|
dialect: "sqlite";
|
|
@@ -2320,8 +2298,8 @@ export declare const makeTotpPersistenceServices: <S extends AnySQLiteTable<{
|
|
|
2320
2298
|
dialect: "sqlite";
|
|
2321
2299
|
}>, C extends AnySQLiteTable<{
|
|
2322
2300
|
dialect: "sqlite";
|
|
2323
|
-
}>, 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, NativeDatabase>>, coordinateTotpPersistence: {
|
|
2324
|
-
<Database extends
|
|
2301
|
+
}>, 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, import("effect/Crypto").Crypto | Database | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<RSetup, NativeDatabase>>, coordinateTotpPersistence: {
|
|
2302
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2325
2303
|
dialect: "sqlite";
|
|
2326
2304
|
}>, F extends AnySQLiteTable<{
|
|
2327
2305
|
dialect: "sqlite";
|
|
@@ -2330,8 +2308,8 @@ export declare const makeTotpPersistenceServices: <S extends AnySQLiteTable<{
|
|
|
2330
2308
|
}>, N, A, E, R, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
2331
2309
|
readonly mapping: TotpMappingSource<TotpMapping<S, F, C, N>, RSetup>;
|
|
2332
2310
|
readonly transaction?: never;
|
|
2333
|
-
}, body: Effect.Effect<A, E,
|
|
2334
|
-
<Database extends
|
|
2311
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | TotpCoordinatorError<E>, DatabaseRequirements | RSetup | import("effect/Crypto").Crypto | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, import("@yielded/auth/Totp").TotpPersistence>>;
|
|
2312
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2335
2313
|
dialect: "sqlite";
|
|
2336
2314
|
}>, F extends AnySQLiteTable<{
|
|
2337
2315
|
dialect: "sqlite";
|
|
@@ -2342,7 +2320,7 @@ export declare const makeTotpPersistenceServices: <S extends AnySQLiteTable<{
|
|
|
2342
2320
|
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
2343
2321
|
readonly transaction: (...args: any[]) => any;
|
|
2344
2322
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
2345
|
-
}, body: Effect.Effect<A, E,
|
|
2323
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | TotpCoordinatorError<E>, DatabaseRequirements | RSetup | import("effect/Crypto").Crypto | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/Totp").TotpPersistence>>;
|
|
2346
2324
|
};
|
|
2347
2325
|
export declare const makePhonePersistenceServices: <S extends AnySQLiteTable<{
|
|
2348
2326
|
dialect: "sqlite";
|
|
@@ -2352,8 +2330,8 @@ export declare const makePhonePersistenceServices: <S extends AnySQLiteTable<{
|
|
|
2352
2330
|
dialect: "sqlite";
|
|
2353
2331
|
}>, C extends AnySQLiteTable<{
|
|
2354
2332
|
dialect: "sqlite";
|
|
2355
|
-
}>, 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, NativeDatabase>>, coordinatePhonePersistence: {
|
|
2356
|
-
<Database extends
|
|
2333
|
+
}>, 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, import("effect/Crypto").Crypto | Database | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<RSetup, NativeDatabase>>, coordinatePhonePersistence: {
|
|
2334
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2357
2335
|
dialect: "sqlite";
|
|
2358
2336
|
}>, I extends AnySQLiteTable<{
|
|
2359
2337
|
dialect: "sqlite";
|
|
@@ -2364,8 +2342,8 @@ export declare const makePhonePersistenceServices: <S extends AnySQLiteTable<{
|
|
|
2364
2342
|
}>, N, A, E, R, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
2365
2343
|
readonly mapping: PhoneMappingSource<PhoneMapping<S, I, C, F, N>, RSetup>;
|
|
2366
2344
|
readonly transaction?: never;
|
|
2367
|
-
}, body: Effect.Effect<A, E,
|
|
2368
|
-
<Database extends
|
|
2345
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | PhoneCoordinatorError<E>, DatabaseRequirements | RSetup | import("effect/Crypto").Crypto | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, import("@yielded/auth/PhoneOtp").PhoneAdmission | import("@yielded/auth/PhoneOtp").PhonePersistence | import("@yielded/auth/PhoneOtp").PhoneSignInTargets>>;
|
|
2346
|
+
<Database extends DatabaseValue<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2369
2347
|
dialect: "sqlite";
|
|
2370
2348
|
}>, I extends AnySQLiteTable<{
|
|
2371
2349
|
dialect: "sqlite";
|
|
@@ -2378,8 +2356,8 @@ export declare const makePhonePersistenceServices: <S extends AnySQLiteTable<{
|
|
|
2378
2356
|
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
2379
2357
|
readonly transaction: (...args: any[]) => any;
|
|
2380
2358
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
2381
|
-
}, body: Effect.Effect<A, E,
|
|
2359
|
+
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | PhoneCoordinatorError<E>, DatabaseRequirements | RSetup | import("effect/Crypto").Crypto | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/PhoneOtp").PhoneAdmission | import("@yielded/auth/PhoneOtp").PhonePersistence | import("@yielded/auth/PhoneOtp").PhoneSignInTargets>>;
|
|
2382
2360
|
};
|
|
2383
2361
|
//#endregion
|
|
2384
|
-
export { passwordPreparedPersistenceLayer };
|
|
2362
|
+
export { type DatabaseValue, type Transaction, makeDatabase, passwordPreparedPersistenceLayer };
|
|
2385
2363
|
//# sourceMappingURL=SqliteDo.d.mts.map
|