@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/Libsql.d.mts
CHANGED
|
@@ -90,12 +90,12 @@ export declare const coordinateEmailAddress: {
|
|
|
90
90
|
export declare const coordinatePasswordPersistence: {
|
|
91
91
|
<Database extends EffectLibsqlDatabase<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: {
|
|
92
92
|
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>>;
|
|
93
|
-
readonly proofMapping?: PM
|
|
93
|
+
readonly proofMapping?: PM;
|
|
94
94
|
readonly transaction?: never;
|
|
95
95
|
}, body: Effect.Effect<Out, E, R>): Effect.Effect<Out, DatabaseError | E | import("@yielded/auth/Hooks").HookConfigurationError | PasswordUnavailable | import("effect/sql/SqlError").SqlError, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, import("@yielded/auth/Password").PasswordPersistence>>;
|
|
96
96
|
<Database extends EffectLibsqlDatabase<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: {
|
|
97
97
|
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>>;
|
|
98
|
-
readonly proofMapping?: PM
|
|
98
|
+
readonly proofMapping?: PM;
|
|
99
99
|
readonly transaction: SuppliedService<TxId, NoInfer<Parameters<Parameters<Database["transaction"]>[0]>[0]>, TxShape>;
|
|
100
100
|
}, body: Effect.Effect<Out, E, R>): Effect.Effect<Out, DatabaseError | E | import("@yielded/auth/Hooks").HookConfigurationError | PasswordUnavailable | import("effect/sql/SqlError").SqlError, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/Password").PasswordPersistence>>;
|
|
101
101
|
}, coordinatePasswordRegistration: {
|
|
@@ -376,11 +376,11 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
376
376
|
readonly resources: readonly string[];
|
|
377
377
|
readonly retention: "access-and-refresh" | "access-only";
|
|
378
378
|
readonly maximumAccessLifetimeMillis: number;
|
|
379
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
379
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
380
380
|
readonly refreshAheadMillis: number;
|
|
381
381
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
382
382
|
readonly revocation: "cohort" | "unsupported";
|
|
383
|
-
}
|
|
383
|
+
};
|
|
384
384
|
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
385
385
|
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
386
386
|
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
@@ -442,11 +442,11 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
442
442
|
readonly resources: readonly string[];
|
|
443
443
|
readonly retention: "access-and-refresh" | "access-only";
|
|
444
444
|
readonly maximumAccessLifetimeMillis: number;
|
|
445
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
445
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
446
446
|
readonly refreshAheadMillis: number;
|
|
447
447
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
448
448
|
readonly revocation: "cohort" | "unsupported";
|
|
449
|
-
}
|
|
449
|
+
};
|
|
450
450
|
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
451
451
|
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
452
452
|
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
@@ -590,7 +590,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
590
590
|
readonly hasMore: boolean;
|
|
591
591
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
592
592
|
};
|
|
593
|
-
}, import("@yielded/auth/OAuth").OAuthUnavailable, Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthSignInServices: <S extends AnySQLiteTable<{
|
|
593
|
+
}, import("@yielded/auth/OAuth").OAuthUnavailable, import("effect/Crypto").Crypto | Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthSignInServices: <S extends AnySQLiteTable<{
|
|
594
594
|
dialect: "sqlite";
|
|
595
595
|
}>, O extends AnySQLiteTable<{
|
|
596
596
|
dialect: "sqlite";
|
|
@@ -632,7 +632,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
632
632
|
readonly hasMore: boolean;
|
|
633
633
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
634
634
|
};
|
|
635
|
-
}, import("@yielded/auth/OAuth").OAuthUnavailable, Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthRegistrationIntentServices: <S extends AnySQLiteTable<{
|
|
635
|
+
}, import("@yielded/auth/OAuth").OAuthUnavailable, import("effect/Crypto").Crypto | Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthRegistrationIntentServices: <S extends AnySQLiteTable<{
|
|
636
636
|
dialect: "sqlite";
|
|
637
637
|
}>, O extends AnySQLiteTable<{
|
|
638
638
|
dialect: "sqlite";
|
|
@@ -655,7 +655,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
655
655
|
readonly nowMillis: number;
|
|
656
656
|
}, 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>;
|
|
657
657
|
};
|
|
658
|
-
}, import("@yielded/auth/OAuth").OAuthUnavailable, Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthRegistrationServices: <Registration, S extends AnySQLiteTable<{
|
|
658
|
+
}, import("@yielded/auth/OAuth").OAuthUnavailable, import("effect/Crypto").Crypto | Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthRegistrationServices: <Registration, S extends AnySQLiteTable<{
|
|
659
659
|
dialect: "sqlite";
|
|
660
660
|
}>, O extends AnySQLiteTable<{
|
|
661
661
|
dialect: "sqlite";
|
|
@@ -671,7 +671,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
671
671
|
dialect: "sqlite";
|
|
672
672
|
}>, N>(mapping: OAuthRegistrationMapping<Registration, S, O, C, AC, TA, I, R, N>) => Effect.Effect<{
|
|
673
673
|
registrationAuthority: OAuthRegistrationAuthority<Registration>;
|
|
674
|
-
}, import("@yielded/auth/OAuth").OAuthUnavailable, Database | import("@yielded/auth/Hooks").LifecycleHooks>, coordinateOAuthRegistration: {
|
|
674
|
+
}, import("@yielded/auth/OAuth").OAuthUnavailable, import("effect/Crypto").Crypto | Database | import("@yielded/auth/Hooks").LifecycleHooks>, coordinateOAuthRegistration: {
|
|
675
675
|
<Database extends EffectLibsqlDatabase<import("drizzle-orm").TablesRelationalConfig>, TargetId, Registration, S extends AnySQLiteTable<{
|
|
676
676
|
dialect: "sqlite";
|
|
677
677
|
}>, O extends AnySQLiteTable<{
|
|
@@ -690,7 +690,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
690
690
|
readonly mapping: OAuthRegistrationMapping<NoInfer<Registration>, S, O, C, AC, TA, I, Rq, N>;
|
|
691
691
|
readonly target: SuppliedService<TargetId, OAuthRegistrationAuthority<Registration>>;
|
|
692
692
|
readonly transaction?: never;
|
|
693
|
-
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TargetId>>;
|
|
693
|
+
}, 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>>;
|
|
694
694
|
<Database extends EffectLibsqlDatabase<import("drizzle-orm").TablesRelationalConfig>, TargetId, Registration, S extends AnySQLiteTable<{
|
|
695
695
|
dialect: "sqlite";
|
|
696
696
|
}>, O extends AnySQLiteTable<{
|
|
@@ -711,7 +711,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
711
711
|
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
712
712
|
readonly transaction: (...args: any[]) => any;
|
|
713
713
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
714
|
-
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TargetId | TxId>>;
|
|
714
|
+
}, 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>>;
|
|
715
715
|
}, coordinateOAuthSignIn: {
|
|
716
716
|
<Database extends EffectLibsqlDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
717
717
|
dialect: "sqlite";
|
|
@@ -726,7 +726,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
726
726
|
}>, N, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
727
727
|
readonly mapping: OAuthSignInMapping<S, O, C, AC, F, N>;
|
|
728
728
|
readonly transaction?: never;
|
|
729
|
-
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, import("@yielded/auth/OAuth").OAuthSignInPersistence>>;
|
|
729
|
+
}, 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>>;
|
|
730
730
|
<Database extends EffectLibsqlDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
731
731
|
dialect: "sqlite";
|
|
732
732
|
}>, O extends AnySQLiteTable<{
|
|
@@ -742,7 +742,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
742
742
|
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
743
743
|
readonly transaction: (...args: any[]) => any;
|
|
744
744
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
745
|
-
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/OAuth").OAuthSignInPersistence>>;
|
|
745
|
+
}, 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>>;
|
|
746
746
|
}, coordinateOAuthRegistrationIntents: {
|
|
747
747
|
<Database extends EffectLibsqlDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
748
748
|
dialect: "sqlite";
|
|
@@ -761,7 +761,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
761
761
|
}>, N, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
762
762
|
readonly mapping: OAuthRegistrationIntentMapping<S, O, C, AC, F, TA, I, N>;
|
|
763
763
|
readonly transaction?: never;
|
|
764
|
-
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, import("@yielded/auth/OAuth").OAuthRegistrationIntents>>;
|
|
764
|
+
}, 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>>;
|
|
765
765
|
<Database extends EffectLibsqlDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
766
766
|
dialect: "sqlite";
|
|
767
767
|
}>, O extends AnySQLiteTable<{
|
|
@@ -781,7 +781,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
781
781
|
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
782
782
|
readonly transaction: (...args: any[]) => any;
|
|
783
783
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
784
|
-
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/OAuth").OAuthRegistrationIntents>>;
|
|
784
|
+
}, 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>>;
|
|
785
785
|
}, coordinateOAuthAccounts: {
|
|
786
786
|
<Database extends EffectLibsqlDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
787
787
|
dialect: "sqlite";
|
|
@@ -800,7 +800,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
800
800
|
}>, N, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
801
801
|
readonly mapping: OAuthAccountsMapping<S, O, C, AC, F, TA, U, N>;
|
|
802
802
|
readonly transaction?: never;
|
|
803
|
-
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, import("@yielded/auth/OAuth").OAuthAccountsPersistence>>;
|
|
803
|
+
}, 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>>;
|
|
804
804
|
<Database extends EffectLibsqlDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
805
805
|
dialect: "sqlite";
|
|
806
806
|
}>, O extends AnySQLiteTable<{
|
|
@@ -820,7 +820,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
820
820
|
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
821
821
|
readonly transaction: (...args: any[]) => any;
|
|
822
822
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
823
|
-
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/OAuth").OAuthAccountsPersistence>>;
|
|
823
|
+
}, 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>>;
|
|
824
824
|
}, makeOAuthConnectedServices: <S extends AnySQLiteTable<{
|
|
825
825
|
dialect: "sqlite";
|
|
826
826
|
}>, AC extends AnySQLiteTable<{
|
|
@@ -894,7 +894,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
894
894
|
readonly resources: readonly string[];
|
|
895
895
|
readonly retention: "access-and-refresh" | "access-only";
|
|
896
896
|
readonly maximumAccessLifetimeMillis: number;
|
|
897
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
897
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
898
898
|
readonly refreshAheadMillis: number;
|
|
899
899
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
900
900
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -907,22 +907,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
907
907
|
readonly metadata: {
|
|
908
908
|
readonly scopes: readonly string[];
|
|
909
909
|
readonly resources: readonly string[];
|
|
910
|
-
readonly accessExpiresAtMillis?: number
|
|
911
|
-
readonly refreshExpiresAtMillis?: number
|
|
910
|
+
readonly accessExpiresAtMillis?: number;
|
|
911
|
+
readonly refreshExpiresAtMillis?: number;
|
|
912
912
|
readonly useUntilMillis: number;
|
|
913
|
-
readonly refreshUseUntilMillis?: number
|
|
913
|
+
readonly refreshUseUntilMillis?: number;
|
|
914
914
|
readonly obtainedAtMillis: number;
|
|
915
915
|
readonly profile?: {
|
|
916
|
-
readonly displayName?: string
|
|
917
|
-
readonly handle?: string
|
|
918
|
-
readonly avatarUrl?: string
|
|
919
|
-
readonly profileUrl?: string
|
|
920
|
-
readonly email?: string
|
|
921
|
-
readonly emailVerified?: boolean
|
|
916
|
+
readonly displayName?: string;
|
|
917
|
+
readonly handle?: string;
|
|
918
|
+
readonly avatarUrl?: string;
|
|
919
|
+
readonly profileUrl?: string;
|
|
920
|
+
readonly email?: string;
|
|
921
|
+
readonly emailVerified?: boolean;
|
|
922
922
|
readonly providerData?: {
|
|
923
923
|
readonly [x: string]: import("effect/Schema").Json;
|
|
924
|
-
}
|
|
925
|
-
}
|
|
924
|
+
};
|
|
925
|
+
};
|
|
926
926
|
};
|
|
927
927
|
};
|
|
928
928
|
readonly sealed: {
|
|
@@ -975,11 +975,11 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
975
975
|
readonly resources: readonly string[];
|
|
976
976
|
readonly retention: "access-and-refresh" | "access-only";
|
|
977
977
|
readonly maximumAccessLifetimeMillis: number;
|
|
978
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
978
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
979
979
|
readonly refreshAheadMillis: number;
|
|
980
980
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
981
981
|
readonly revocation: "cohort" | "unsupported";
|
|
982
|
-
}
|
|
982
|
+
};
|
|
983
983
|
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
984
984
|
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
985
985
|
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
@@ -1006,7 +1006,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1006
1006
|
readonly resources: readonly string[];
|
|
1007
1007
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1008
1008
|
readonly maximumAccessLifetimeMillis: number;
|
|
1009
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1009
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1010
1010
|
readonly refreshAheadMillis: number;
|
|
1011
1011
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1012
1012
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1040,13 +1040,13 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1040
1040
|
readonly resources: readonly string[];
|
|
1041
1041
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1042
1042
|
readonly maximumAccessLifetimeMillis: number;
|
|
1043
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1043
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1044
1044
|
readonly refreshAheadMillis: number;
|
|
1045
1045
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1046
1046
|
readonly revocation: "cohort" | "unsupported";
|
|
1047
1047
|
};
|
|
1048
1048
|
};
|
|
1049
|
-
}
|
|
1049
|
+
};
|
|
1050
1050
|
readonly maximumEvidenceAgeMillis: number;
|
|
1051
1051
|
};
|
|
1052
1052
|
readonly sealed: {
|
|
@@ -1088,11 +1088,11 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1088
1088
|
readonly resources: readonly string[];
|
|
1089
1089
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1090
1090
|
readonly maximumAccessLifetimeMillis: number;
|
|
1091
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1091
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1092
1092
|
readonly refreshAheadMillis: number;
|
|
1093
1093
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1094
1094
|
readonly revocation: "cohort" | "unsupported";
|
|
1095
|
-
}
|
|
1095
|
+
};
|
|
1096
1096
|
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
1097
1097
|
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1098
1098
|
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
@@ -1119,7 +1119,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1119
1119
|
readonly resources: readonly string[];
|
|
1120
1120
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1121
1121
|
readonly maximumAccessLifetimeMillis: number;
|
|
1122
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1122
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1123
1123
|
readonly refreshAheadMillis: number;
|
|
1124
1124
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1125
1125
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1153,13 +1153,13 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1153
1153
|
readonly resources: readonly string[];
|
|
1154
1154
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1155
1155
|
readonly maximumAccessLifetimeMillis: number;
|
|
1156
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1156
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1157
1157
|
readonly refreshAheadMillis: number;
|
|
1158
1158
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1159
1159
|
readonly revocation: "cohort" | "unsupported";
|
|
1160
1160
|
};
|
|
1161
1161
|
};
|
|
1162
|
-
}
|
|
1162
|
+
};
|
|
1163
1163
|
readonly maximumEvidenceAgeMillis: number;
|
|
1164
1164
|
};
|
|
1165
1165
|
readonly sealed: {
|
|
@@ -1206,11 +1206,11 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1206
1206
|
readonly resources: readonly string[];
|
|
1207
1207
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1208
1208
|
readonly maximumAccessLifetimeMillis: number;
|
|
1209
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1209
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1210
1210
|
readonly refreshAheadMillis: number;
|
|
1211
1211
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1212
1212
|
readonly revocation: "cohort" | "unsupported";
|
|
1213
|
-
}
|
|
1213
|
+
};
|
|
1214
1214
|
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
1215
1215
|
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1216
1216
|
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
@@ -1237,7 +1237,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1237
1237
|
readonly resources: readonly string[];
|
|
1238
1238
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1239
1239
|
readonly maximumAccessLifetimeMillis: number;
|
|
1240
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1240
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1241
1241
|
readonly refreshAheadMillis: number;
|
|
1242
1242
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1243
1243
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1271,13 +1271,13 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1271
1271
|
readonly resources: readonly string[];
|
|
1272
1272
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1273
1273
|
readonly maximumAccessLifetimeMillis: number;
|
|
1274
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1274
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1275
1275
|
readonly refreshAheadMillis: number;
|
|
1276
1276
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1277
1277
|
readonly revocation: "cohort" | "unsupported";
|
|
1278
1278
|
};
|
|
1279
1279
|
};
|
|
1280
|
-
}
|
|
1280
|
+
};
|
|
1281
1281
|
readonly maximumEvidenceAgeMillis: number;
|
|
1282
1282
|
};
|
|
1283
1283
|
readonly sealed: {
|
|
@@ -1354,7 +1354,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1354
1354
|
readonly resources: readonly string[];
|
|
1355
1355
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1356
1356
|
readonly maximumAccessLifetimeMillis: number;
|
|
1357
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1357
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1358
1358
|
readonly refreshAheadMillis: number;
|
|
1359
1359
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1360
1360
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1367,22 +1367,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1367
1367
|
readonly metadata: {
|
|
1368
1368
|
readonly scopes: readonly string[];
|
|
1369
1369
|
readonly resources: readonly string[];
|
|
1370
|
-
readonly accessExpiresAtMillis?: number
|
|
1371
|
-
readonly refreshExpiresAtMillis?: number
|
|
1370
|
+
readonly accessExpiresAtMillis?: number;
|
|
1371
|
+
readonly refreshExpiresAtMillis?: number;
|
|
1372
1372
|
readonly useUntilMillis: number;
|
|
1373
|
-
readonly refreshUseUntilMillis?: number
|
|
1373
|
+
readonly refreshUseUntilMillis?: number;
|
|
1374
1374
|
readonly obtainedAtMillis: number;
|
|
1375
1375
|
readonly profile?: {
|
|
1376
|
-
readonly displayName?: string
|
|
1377
|
-
readonly handle?: string
|
|
1378
|
-
readonly avatarUrl?: string
|
|
1379
|
-
readonly profileUrl?: string
|
|
1380
|
-
readonly email?: string
|
|
1381
|
-
readonly emailVerified?: boolean
|
|
1376
|
+
readonly displayName?: string;
|
|
1377
|
+
readonly handle?: string;
|
|
1378
|
+
readonly avatarUrl?: string;
|
|
1379
|
+
readonly profileUrl?: string;
|
|
1380
|
+
readonly email?: string;
|
|
1381
|
+
readonly emailVerified?: boolean;
|
|
1382
1382
|
readonly providerData?: {
|
|
1383
1383
|
readonly [x: string]: import("effect/Schema").Json;
|
|
1384
|
-
}
|
|
1385
|
-
}
|
|
1384
|
+
};
|
|
1385
|
+
};
|
|
1386
1386
|
};
|
|
1387
1387
|
};
|
|
1388
1388
|
readonly sealed: {
|
|
@@ -1409,22 +1409,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1409
1409
|
readonly profileKey: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
1410
1410
|
readonly status: "Active" | "Disconnected" | "ReauthorizationRequired" | "Refreshing";
|
|
1411
1411
|
readonly scopes: readonly string[];
|
|
1412
|
-
readonly accessExpiresAtMillis?: number
|
|
1412
|
+
readonly accessExpiresAtMillis?: number;
|
|
1413
1413
|
readonly useUntilMillis: number;
|
|
1414
1414
|
readonly profile?: {
|
|
1415
|
-
readonly displayName?: string
|
|
1416
|
-
readonly handle?: string
|
|
1417
|
-
readonly avatarUrl?: string
|
|
1418
|
-
readonly profileUrl?: string
|
|
1419
|
-
readonly email?: string
|
|
1420
|
-
readonly emailVerified?: boolean
|
|
1415
|
+
readonly displayName?: string;
|
|
1416
|
+
readonly handle?: string;
|
|
1417
|
+
readonly avatarUrl?: string;
|
|
1418
|
+
readonly profileUrl?: string;
|
|
1419
|
+
readonly email?: string;
|
|
1420
|
+
readonly emailVerified?: boolean;
|
|
1421
1421
|
readonly providerData?: {
|
|
1422
1422
|
readonly [x: string]: import("effect/Schema").Json;
|
|
1423
|
-
}
|
|
1424
|
-
}
|
|
1423
|
+
};
|
|
1424
|
+
};
|
|
1425
1425
|
readonly remoteRevocation: "Confirmed" | "Pending" | "Unknown" | "Unsupported";
|
|
1426
1426
|
}[];
|
|
1427
|
-
readonly cursor?: string
|
|
1427
|
+
readonly cursor?: string;
|
|
1428
1428
|
}, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
1429
1429
|
readonly inspectDisconnect: (input: {
|
|
1430
1430
|
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
@@ -1467,7 +1467,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1467
1467
|
readonly resources: readonly string[];
|
|
1468
1468
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1469
1469
|
readonly maximumAccessLifetimeMillis: number;
|
|
1470
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1470
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1471
1471
|
readonly refreshAheadMillis: number;
|
|
1472
1472
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1473
1473
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1480,22 +1480,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1480
1480
|
readonly metadata: {
|
|
1481
1481
|
readonly scopes: readonly string[];
|
|
1482
1482
|
readonly resources: readonly string[];
|
|
1483
|
-
readonly accessExpiresAtMillis?: number
|
|
1484
|
-
readonly refreshExpiresAtMillis?: number
|
|
1483
|
+
readonly accessExpiresAtMillis?: number;
|
|
1484
|
+
readonly refreshExpiresAtMillis?: number;
|
|
1485
1485
|
readonly useUntilMillis: number;
|
|
1486
|
-
readonly refreshUseUntilMillis?: number
|
|
1486
|
+
readonly refreshUseUntilMillis?: number;
|
|
1487
1487
|
readonly obtainedAtMillis: number;
|
|
1488
1488
|
readonly profile?: {
|
|
1489
|
-
readonly displayName?: string
|
|
1490
|
-
readonly handle?: string
|
|
1491
|
-
readonly avatarUrl?: string
|
|
1492
|
-
readonly profileUrl?: string
|
|
1493
|
-
readonly email?: string
|
|
1494
|
-
readonly emailVerified?: boolean
|
|
1489
|
+
readonly displayName?: string;
|
|
1490
|
+
readonly handle?: string;
|
|
1491
|
+
readonly avatarUrl?: string;
|
|
1492
|
+
readonly profileUrl?: string;
|
|
1493
|
+
readonly email?: string;
|
|
1494
|
+
readonly emailVerified?: boolean;
|
|
1495
1495
|
readonly providerData?: {
|
|
1496
1496
|
readonly [x: string]: import("effect/Schema").Json;
|
|
1497
|
-
}
|
|
1498
|
-
}
|
|
1497
|
+
};
|
|
1498
|
+
};
|
|
1499
1499
|
};
|
|
1500
1500
|
};
|
|
1501
1501
|
readonly sealed?: {
|
|
@@ -1503,7 +1503,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1503
1503
|
readonly keyId: string;
|
|
1504
1504
|
readonly nonce: string;
|
|
1505
1505
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1506
|
-
}
|
|
1506
|
+
};
|
|
1507
1507
|
};
|
|
1508
1508
|
readonly revision: {
|
|
1509
1509
|
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
@@ -1580,7 +1580,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1580
1580
|
readonly resources: readonly string[];
|
|
1581
1581
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1582
1582
|
readonly maximumAccessLifetimeMillis: number;
|
|
1583
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1583
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1584
1584
|
readonly refreshAheadMillis: number;
|
|
1585
1585
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1586
1586
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1593,22 +1593,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1593
1593
|
readonly metadata: {
|
|
1594
1594
|
readonly scopes: readonly string[];
|
|
1595
1595
|
readonly resources: readonly string[];
|
|
1596
|
-
readonly accessExpiresAtMillis?: number
|
|
1597
|
-
readonly refreshExpiresAtMillis?: number
|
|
1596
|
+
readonly accessExpiresAtMillis?: number;
|
|
1597
|
+
readonly refreshExpiresAtMillis?: number;
|
|
1598
1598
|
readonly useUntilMillis: number;
|
|
1599
|
-
readonly refreshUseUntilMillis?: number
|
|
1599
|
+
readonly refreshUseUntilMillis?: number;
|
|
1600
1600
|
readonly obtainedAtMillis: number;
|
|
1601
1601
|
readonly profile?: {
|
|
1602
|
-
readonly displayName?: string
|
|
1603
|
-
readonly handle?: string
|
|
1604
|
-
readonly avatarUrl?: string
|
|
1605
|
-
readonly profileUrl?: string
|
|
1606
|
-
readonly email?: string
|
|
1607
|
-
readonly emailVerified?: boolean
|
|
1602
|
+
readonly displayName?: string;
|
|
1603
|
+
readonly handle?: string;
|
|
1604
|
+
readonly avatarUrl?: string;
|
|
1605
|
+
readonly profileUrl?: string;
|
|
1606
|
+
readonly email?: string;
|
|
1607
|
+
readonly emailVerified?: boolean;
|
|
1608
1608
|
readonly providerData?: {
|
|
1609
1609
|
readonly [x: string]: import("effect/Schema").Json;
|
|
1610
|
-
}
|
|
1611
|
-
}
|
|
1610
|
+
};
|
|
1611
|
+
};
|
|
1612
1612
|
};
|
|
1613
1613
|
};
|
|
1614
1614
|
readonly sealed: {
|
|
@@ -1665,7 +1665,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1665
1665
|
readonly resources: readonly string[];
|
|
1666
1666
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1667
1667
|
readonly maximumAccessLifetimeMillis: number;
|
|
1668
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1668
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1669
1669
|
readonly refreshAheadMillis: number;
|
|
1670
1670
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1671
1671
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1678,22 +1678,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1678
1678
|
readonly metadata: {
|
|
1679
1679
|
readonly scopes: readonly string[];
|
|
1680
1680
|
readonly resources: readonly string[];
|
|
1681
|
-
readonly accessExpiresAtMillis?: number
|
|
1682
|
-
readonly refreshExpiresAtMillis?: number
|
|
1681
|
+
readonly accessExpiresAtMillis?: number;
|
|
1682
|
+
readonly refreshExpiresAtMillis?: number;
|
|
1683
1683
|
readonly useUntilMillis: number;
|
|
1684
|
-
readonly refreshUseUntilMillis?: number
|
|
1684
|
+
readonly refreshUseUntilMillis?: number;
|
|
1685
1685
|
readonly obtainedAtMillis: number;
|
|
1686
1686
|
readonly profile?: {
|
|
1687
|
-
readonly displayName?: string
|
|
1688
|
-
readonly handle?: string
|
|
1689
|
-
readonly avatarUrl?: string
|
|
1690
|
-
readonly profileUrl?: string
|
|
1691
|
-
readonly email?: string
|
|
1692
|
-
readonly emailVerified?: boolean
|
|
1687
|
+
readonly displayName?: string;
|
|
1688
|
+
readonly handle?: string;
|
|
1689
|
+
readonly avatarUrl?: string;
|
|
1690
|
+
readonly profileUrl?: string;
|
|
1691
|
+
readonly email?: string;
|
|
1692
|
+
readonly emailVerified?: boolean;
|
|
1693
1693
|
readonly providerData?: {
|
|
1694
1694
|
readonly [x: string]: import("effect/Schema").Json;
|
|
1695
|
-
}
|
|
1696
|
-
}
|
|
1695
|
+
};
|
|
1696
|
+
};
|
|
1697
1697
|
};
|
|
1698
1698
|
};
|
|
1699
1699
|
readonly sealed: {
|
|
@@ -1749,7 +1749,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1749
1749
|
readonly resources: readonly string[];
|
|
1750
1750
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1751
1751
|
readonly maximumAccessLifetimeMillis: number;
|
|
1752
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1752
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1753
1753
|
readonly refreshAheadMillis: number;
|
|
1754
1754
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1755
1755
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1762,22 +1762,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1762
1762
|
readonly metadata: {
|
|
1763
1763
|
readonly scopes: readonly string[];
|
|
1764
1764
|
readonly resources: readonly string[];
|
|
1765
|
-
readonly accessExpiresAtMillis?: number
|
|
1766
|
-
readonly refreshExpiresAtMillis?: number
|
|
1765
|
+
readonly accessExpiresAtMillis?: number;
|
|
1766
|
+
readonly refreshExpiresAtMillis?: number;
|
|
1767
1767
|
readonly useUntilMillis: number;
|
|
1768
|
-
readonly refreshUseUntilMillis?: number
|
|
1768
|
+
readonly refreshUseUntilMillis?: number;
|
|
1769
1769
|
readonly obtainedAtMillis: number;
|
|
1770
1770
|
readonly profile?: {
|
|
1771
|
-
readonly displayName?: string
|
|
1772
|
-
readonly handle?: string
|
|
1773
|
-
readonly avatarUrl?: string
|
|
1774
|
-
readonly profileUrl?: string
|
|
1775
|
-
readonly email?: string
|
|
1776
|
-
readonly emailVerified?: boolean
|
|
1771
|
+
readonly displayName?: string;
|
|
1772
|
+
readonly handle?: string;
|
|
1773
|
+
readonly avatarUrl?: string;
|
|
1774
|
+
readonly profileUrl?: string;
|
|
1775
|
+
readonly email?: string;
|
|
1776
|
+
readonly emailVerified?: boolean;
|
|
1777
1777
|
readonly providerData?: {
|
|
1778
1778
|
readonly [x: string]: import("effect/Schema").Json;
|
|
1779
|
-
}
|
|
1780
|
-
}
|
|
1779
|
+
};
|
|
1780
|
+
};
|
|
1781
1781
|
};
|
|
1782
1782
|
};
|
|
1783
1783
|
readonly sealed: {
|
|
@@ -1813,7 +1813,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1813
1813
|
readonly hasMore: boolean;
|
|
1814
1814
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
|
|
1815
1815
|
};
|
|
1816
|
-
}, import("@yielded/auth/OAuth").OAuthUnavailable, Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthConnectedRevocationServices: <T extends AnySQLiteTable<{
|
|
1816
|
+
}, import("@yielded/auth/OAuth").OAuthUnavailable, import("effect/Crypto").Crypto | Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthConnectedRevocationServices: <T extends AnySQLiteTable<{
|
|
1817
1817
|
dialect: "sqlite";
|
|
1818
1818
|
}>, O extends AnySQLiteTable<{
|
|
1819
1819
|
dialect: "sqlite";
|
|
@@ -1868,7 +1868,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1868
1868
|
readonly resources: readonly string[];
|
|
1869
1869
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1870
1870
|
readonly maximumAccessLifetimeMillis: number;
|
|
1871
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1871
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1872
1872
|
readonly refreshAheadMillis: number;
|
|
1873
1873
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1874
1874
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1881,22 +1881,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1881
1881
|
readonly metadata: {
|
|
1882
1882
|
readonly scopes: readonly string[];
|
|
1883
1883
|
readonly resources: readonly string[];
|
|
1884
|
-
readonly accessExpiresAtMillis?: number
|
|
1885
|
-
readonly refreshExpiresAtMillis?: number
|
|
1884
|
+
readonly accessExpiresAtMillis?: number;
|
|
1885
|
+
readonly refreshExpiresAtMillis?: number;
|
|
1886
1886
|
readonly useUntilMillis: number;
|
|
1887
|
-
readonly refreshUseUntilMillis?: number
|
|
1887
|
+
readonly refreshUseUntilMillis?: number;
|
|
1888
1888
|
readonly obtainedAtMillis: number;
|
|
1889
1889
|
readonly profile?: {
|
|
1890
|
-
readonly displayName?: string
|
|
1891
|
-
readonly handle?: string
|
|
1892
|
-
readonly avatarUrl?: string
|
|
1893
|
-
readonly profileUrl?: string
|
|
1894
|
-
readonly email?: string
|
|
1895
|
-
readonly emailVerified?: boolean
|
|
1890
|
+
readonly displayName?: string;
|
|
1891
|
+
readonly handle?: string;
|
|
1892
|
+
readonly avatarUrl?: string;
|
|
1893
|
+
readonly profileUrl?: string;
|
|
1894
|
+
readonly email?: string;
|
|
1895
|
+
readonly emailVerified?: boolean;
|
|
1896
1896
|
readonly providerData?: {
|
|
1897
1897
|
readonly [x: string]: import("effect/Schema").Json;
|
|
1898
|
-
}
|
|
1899
|
-
}
|
|
1898
|
+
};
|
|
1899
|
+
};
|
|
1900
1900
|
};
|
|
1901
1901
|
};
|
|
1902
1902
|
};
|
|
@@ -1921,7 +1921,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1921
1921
|
readonly settled: boolean;
|
|
1922
1922
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
1923
1923
|
};
|
|
1924
|
-
}, import("@yielded/auth/OAuth").OAuthUnavailable, Database | import("@yielded/auth/Hooks").LifecycleHooks>, coordinateOAuthConnected: {
|
|
1924
|
+
}, import("@yielded/auth/OAuth").OAuthUnavailable, import("effect/Crypto").Crypto | Database | import("@yielded/auth/Hooks").LifecycleHooks>, coordinateOAuthConnected: {
|
|
1925
1925
|
<D extends EffectLibsqlDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
1926
1926
|
dialect: "sqlite";
|
|
1927
1927
|
}>, AC extends AnySQLiteTable<{
|
|
@@ -1947,7 +1947,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1947
1947
|
}>, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<D, DatabaseError, DatabaseRequirements>, options: {
|
|
1948
1948
|
readonly mapping: OAuthConnectedMapping<S, AC, T, O, F, G, C, H, UA, DC, N, J>;
|
|
1949
1949
|
readonly transaction?: never;
|
|
1950
|
-
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, import("@yielded/auth/OAuth").OAuthConnectedPersistence>>;
|
|
1950
|
+
}, 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>>;
|
|
1951
1951
|
<D extends EffectLibsqlDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
1952
1952
|
dialect: "sqlite";
|
|
1953
1953
|
}>, AC extends AnySQLiteTable<{
|
|
@@ -1975,7 +1975,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1975
1975
|
readonly transaction: SuppliedService<TxId, NoInfer<D extends {
|
|
1976
1976
|
readonly transaction: (...args: any[]) => any;
|
|
1977
1977
|
} ? Parameters<Parameters<D["transaction"]>[0]>[0] : never>, TxShape>;
|
|
1978
|
-
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/OAuth").OAuthConnectedPersistence>>;
|
|
1978
|
+
}, 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>>;
|
|
1979
1979
|
}, coordinateOAuthConnectedRevocations: {
|
|
1980
1980
|
<D extends EffectLibsqlDatabase<import("drizzle-orm").TablesRelationalConfig>, T extends AnySQLiteTable<{
|
|
1981
1981
|
dialect: "sqlite";
|
|
@@ -1994,7 +1994,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1994
1994
|
}>, N, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<D, DatabaseError, DatabaseRequirements>, options: {
|
|
1995
1995
|
readonly mapping: OAuthConnectedRevocationMapping<T, O, F, G, C, H, J, N>;
|
|
1996
1996
|
readonly transaction?: never;
|
|
1997
|
-
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, import("@yielded/auth/OAuth").OAuthConnectedRevocations>>;
|
|
1997
|
+
}, 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>>;
|
|
1998
1998
|
<D extends EffectLibsqlDatabase<import("drizzle-orm").TablesRelationalConfig>, T extends AnySQLiteTable<{
|
|
1999
1999
|
dialect: "sqlite";
|
|
2000
2000
|
}>, O extends AnySQLiteTable<{
|
|
@@ -2014,7 +2014,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
2014
2014
|
readonly transaction: SuppliedService<TxId, NoInfer<D extends {
|
|
2015
2015
|
readonly transaction: (...args: any[]) => any;
|
|
2016
2016
|
} ? Parameters<Parameters<D["transaction"]>[0]>[0] : never>, TxShape>;
|
|
2017
|
-
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/OAuth").OAuthConnectedRevocations>>;
|
|
2017
|
+
}, 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>>;
|
|
2018
2018
|
};
|
|
2019
2019
|
export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
2020
2020
|
dialect: "sqlite";
|
|
@@ -2026,7 +2026,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2026
2026
|
dialect: "sqlite";
|
|
2027
2027
|
}>, H extends AnySQLiteTable<{
|
|
2028
2028
|
dialect: "sqlite";
|
|
2029
|
-
}>, 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<{
|
|
2029
|
+
}>, 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<{
|
|
2030
2030
|
dialect: "sqlite";
|
|
2031
2031
|
}>, C extends AnySQLiteTable<{
|
|
2032
2032
|
dialect: "sqlite";
|
|
@@ -2044,7 +2044,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2044
2044
|
dialect: "sqlite";
|
|
2045
2045
|
}>, Charge extends AnySQLiteTable<{
|
|
2046
2046
|
dialect: "sqlite";
|
|
2047
|
-
}>, 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<{
|
|
2047
|
+
}>, 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<{
|
|
2048
2048
|
dialect: "sqlite";
|
|
2049
2049
|
}>, C extends AnySQLiteTable<{
|
|
2050
2050
|
dialect: "sqlite";
|
|
@@ -2056,7 +2056,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2056
2056
|
dialect: "sqlite";
|
|
2057
2057
|
}>, M extends AnySQLiteTable<{
|
|
2058
2058
|
dialect: "sqlite";
|
|
2059
|
-
}>, 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<{
|
|
2059
|
+
}>, 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<{
|
|
2060
2060
|
dialect: "sqlite";
|
|
2061
2061
|
}>, Flow extends AnySQLiteTable<{
|
|
2062
2062
|
dialect: "sqlite";
|
|
@@ -2068,7 +2068,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2068
2068
|
dialect: "sqlite";
|
|
2069
2069
|
}>, H extends AnySQLiteTable<{
|
|
2070
2070
|
dialect: "sqlite";
|
|
2071
|
-
}>, 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: {
|
|
2071
|
+
}>, 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: {
|
|
2072
2072
|
<Database extends EffectLibsqlDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2073
2073
|
dialect: "sqlite";
|
|
2074
2074
|
}>, C extends AnySQLiteTable<{
|
|
@@ -2090,7 +2090,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2090
2090
|
}>, N, A, E, R, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
2091
2091
|
readonly mapping: import("@yielded/auth-persistence/Adapter").PasskeyMappingSource<PasskeyPersistenceMapping<PasskeyCredentialMapping<S, C, F, O, H, N>, M, Flow, Admission, Charge, N>, RSetup>;
|
|
2092
2092
|
readonly transaction?: never;
|
|
2093
|
-
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | import("@yielded/auth-persistence/Adapter").PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, import("@yielded/auth/Passkey").PasskeyPersistence>>;
|
|
2093
|
+
}, 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>>;
|
|
2094
2094
|
<Database extends EffectLibsqlDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2095
2095
|
dialect: "sqlite";
|
|
2096
2096
|
}>, C extends AnySQLiteTable<{
|
|
@@ -2114,7 +2114,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2114
2114
|
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
2115
2115
|
readonly transaction: (...args: any[]) => any;
|
|
2116
2116
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
2117
|
-
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | import("@yielded/auth-persistence/Adapter").PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/Passkey").PasskeyPersistence>>;
|
|
2117
|
+
}, 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>>;
|
|
2118
2118
|
}, coordinatePasskeyRegistrationCeremony: {
|
|
2119
2119
|
<Database extends EffectLibsqlDatabase<import("drizzle-orm").TablesRelationalConfig>, M extends AnySQLiteTable<{
|
|
2120
2120
|
dialect: "sqlite";
|
|
@@ -2131,7 +2131,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2131
2131
|
}>, A, E, R, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
2132
2132
|
readonly mapping: import("@yielded/auth-persistence/Adapter").PasskeyMappingSource<PasskeyRegistrationCeremonyMapping<M, Flow, Admission, Charge, Intent, H>, RSetup>;
|
|
2133
2133
|
readonly transaction?: never;
|
|
2134
|
-
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | import("@yielded/auth-persistence/Adapter").PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, import("@yielded/auth/Passkey").PasskeyPersistence>>;
|
|
2134
|
+
}, 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>>;
|
|
2135
2135
|
<Database extends EffectLibsqlDatabase<import("drizzle-orm").TablesRelationalConfig>, M extends AnySQLiteTable<{
|
|
2136
2136
|
dialect: "sqlite";
|
|
2137
2137
|
}>, Flow extends AnySQLiteTable<{
|
|
@@ -2149,7 +2149,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2149
2149
|
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
2150
2150
|
readonly transaction: (...args: any[]) => any;
|
|
2151
2151
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
2152
|
-
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | import("@yielded/auth-persistence/Adapter").PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/Passkey").PasskeyPersistence>>;
|
|
2152
|
+
}, 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>>;
|
|
2153
2153
|
}, makePasskeyManagementServices: <S extends AnySQLiteTable<{
|
|
2154
2154
|
dialect: "sqlite";
|
|
2155
2155
|
}>, C extends AnySQLiteTable<{
|
|
@@ -2170,7 +2170,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2170
2170
|
dialect: "sqlite";
|
|
2171
2171
|
}>, Command extends AnySQLiteTable<{
|
|
2172
2172
|
dialect: "sqlite";
|
|
2173
|
-
}>, 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<{
|
|
2173
|
+
}>, 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<{
|
|
2174
2174
|
dialect: "sqlite";
|
|
2175
2175
|
}>, C extends AnySQLiteTable<{
|
|
2176
2176
|
dialect: "sqlite";
|
|
@@ -2190,7 +2190,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2190
2190
|
dialect: "sqlite";
|
|
2191
2191
|
}>, Intent extends AnySQLiteTable<{
|
|
2192
2192
|
dialect: "sqlite";
|
|
2193
|
-
}>, 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: {
|
|
2193
|
+
}>, 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: {
|
|
2194
2194
|
<Database extends EffectLibsqlDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2195
2195
|
dialect: "sqlite";
|
|
2196
2196
|
}>, C extends AnySQLiteTable<{
|
|
@@ -2214,7 +2214,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2214
2214
|
}>, N, A, E, R, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
2215
2215
|
readonly mapping: import("@yielded/auth-persistence/Adapter").PasskeyMappingSource<PasskeyManagementMapping<S, C, F, O, H, M, Flow, Admission, Charge, Command, N>, RSetup>;
|
|
2216
2216
|
readonly transaction?: never;
|
|
2217
|
-
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | import("@yielded/auth-persistence/Adapter").PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, import("@yielded/auth/Passkey").PasskeyManagementPersistence | import("@yielded/auth/Passkey").PasskeyPersistence>>;
|
|
2217
|
+
}, 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>>;
|
|
2218
2218
|
<Database extends EffectLibsqlDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2219
2219
|
dialect: "sqlite";
|
|
2220
2220
|
}>, C extends AnySQLiteTable<{
|
|
@@ -2240,7 +2240,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2240
2240
|
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
2241
2241
|
readonly transaction: (...args: any[]) => any;
|
|
2242
2242
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
2243
|
-
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | import("@yielded/auth-persistence/Adapter").PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/Passkey").PasskeyManagementPersistence | import("@yielded/auth/Passkey").PasskeyPersistence>>;
|
|
2243
|
+
}, 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>>;
|
|
2244
2244
|
}, coordinatePasskeyRegistration: {
|
|
2245
2245
|
<Database extends EffectLibsqlDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2246
2246
|
dialect: "sqlite";
|
|
@@ -2266,7 +2266,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2266
2266
|
readonly mapping: import("@yielded/auth-persistence/Adapter").PasskeyMappingSource<PasskeyRegistrationMapping<S, C, F, O, H, M, Flow, Admission, Charge, Intent, N, Value>, RSetup>;
|
|
2267
2267
|
readonly authority: Context.Key<AuthorityId, import("@yielded/auth-persistence/Adapter").PasskeyRegistrationWriter<Value>>;
|
|
2268
2268
|
readonly transaction?: never;
|
|
2269
|
-
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | import("@yielded/auth-persistence/Adapter").PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, AuthorityId | import("@yielded/auth/Passkey").PasskeyPersistence>>;
|
|
2269
|
+
}, 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>>;
|
|
2270
2270
|
<Database extends EffectLibsqlDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2271
2271
|
dialect: "sqlite";
|
|
2272
2272
|
}>, C extends AnySQLiteTable<{
|
|
@@ -2293,7 +2293,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2293
2293
|
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
2294
2294
|
readonly transaction: (...args: any[]) => any;
|
|
2295
2295
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
2296
|
-
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | import("@yielded/auth-persistence/Adapter").PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, AuthorityId | TxId | import("@yielded/auth/Passkey").PasskeyPersistence>>;
|
|
2296
|
+
}, 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>>;
|
|
2297
2297
|
};
|
|
2298
2298
|
export declare const makeTotpPersistenceServices: <S extends AnySQLiteTable<{
|
|
2299
2299
|
dialect: "sqlite";
|
|
@@ -2301,7 +2301,7 @@ export declare const makeTotpPersistenceServices: <S extends AnySQLiteTable<{
|
|
|
2301
2301
|
dialect: "sqlite";
|
|
2302
2302
|
}>, C extends AnySQLiteTable<{
|
|
2303
2303
|
dialect: "sqlite";
|
|
2304
|
-
}>, 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: {
|
|
2304
|
+
}>, 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: {
|
|
2305
2305
|
<Database extends EffectLibsqlDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2306
2306
|
dialect: "sqlite";
|
|
2307
2307
|
}>, F extends AnySQLiteTable<{
|
|
@@ -2311,7 +2311,7 @@ export declare const makeTotpPersistenceServices: <S extends AnySQLiteTable<{
|
|
|
2311
2311
|
}>, N, A, E, R, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
2312
2312
|
readonly mapping: TotpMappingSource<TotpMapping<S, F, C, N>, RSetup>;
|
|
2313
2313
|
readonly transaction?: never;
|
|
2314
|
-
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | TotpCoordinatorError<E>, DatabaseRequirements | RSetup | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, import("@yielded/auth/Totp").TotpPersistence>>;
|
|
2314
|
+
}, 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>>;
|
|
2315
2315
|
<Database extends EffectLibsqlDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2316
2316
|
dialect: "sqlite";
|
|
2317
2317
|
}>, F extends AnySQLiteTable<{
|
|
@@ -2323,7 +2323,7 @@ export declare const makeTotpPersistenceServices: <S extends AnySQLiteTable<{
|
|
|
2323
2323
|
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
2324
2324
|
readonly transaction: (...args: any[]) => any;
|
|
2325
2325
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
2326
|
-
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | TotpCoordinatorError<E>, DatabaseRequirements | RSetup | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/Totp").TotpPersistence>>;
|
|
2326
|
+
}, 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>>;
|
|
2327
2327
|
};
|
|
2328
2328
|
export declare const makePhonePersistenceServices: <S extends AnySQLiteTable<{
|
|
2329
2329
|
dialect: "sqlite";
|
|
@@ -2333,7 +2333,7 @@ export declare const makePhonePersistenceServices: <S extends AnySQLiteTable<{
|
|
|
2333
2333
|
dialect: "sqlite";
|
|
2334
2334
|
}>, C extends AnySQLiteTable<{
|
|
2335
2335
|
dialect: "sqlite";
|
|
2336
|
-
}>, 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: {
|
|
2336
|
+
}>, 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: {
|
|
2337
2337
|
<Database extends EffectLibsqlDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2338
2338
|
dialect: "sqlite";
|
|
2339
2339
|
}>, I extends AnySQLiteTable<{
|
|
@@ -2345,7 +2345,7 @@ export declare const makePhonePersistenceServices: <S extends AnySQLiteTable<{
|
|
|
2345
2345
|
}>, N, A, E, R, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
2346
2346
|
readonly mapping: PhoneMappingSource<PhoneMapping<S, I, C, F, N>, RSetup>;
|
|
2347
2347
|
readonly transaction?: never;
|
|
2348
|
-
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | PhoneCoordinatorError<E>, DatabaseRequirements | RSetup | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, import("@yielded/auth/PhoneOtp").PhoneAdmission | import("@yielded/auth/PhoneOtp").PhonePersistence | import("@yielded/auth/PhoneOtp").PhoneSignInTargets>>;
|
|
2348
|
+
}, 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>>;
|
|
2349
2349
|
<Database extends EffectLibsqlDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2350
2350
|
dialect: "sqlite";
|
|
2351
2351
|
}>, I extends AnySQLiteTable<{
|
|
@@ -2359,7 +2359,7 @@ export declare const makePhonePersistenceServices: <S extends AnySQLiteTable<{
|
|
|
2359
2359
|
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
2360
2360
|
readonly transaction: (...args: any[]) => any;
|
|
2361
2361
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
2362
|
-
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | PhoneCoordinatorError<E>, DatabaseRequirements | RSetup | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/PhoneOtp").PhoneAdmission | import("@yielded/auth/PhoneOtp").PhonePersistence | import("@yielded/auth/PhoneOtp").PhoneSignInTargets>>;
|
|
2362
|
+
}, 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>>;
|
|
2363
2363
|
};
|
|
2364
2364
|
export declare const AuthPersistence: {
|
|
2365
2365
|
make: <C extends import("@yielded/auth-persistence/Adapter").ClaimsCodec, const Id extends string, const A extends import("@yielded/auth-persistence/Adapter").Definition<C, Id>>(auth: A & import("@yielded/auth-persistence/Adapter").Definition<C, Id>) => import("@yielded/auth-persistence/Adapter").BoundPersistence<import("drizzle-orm/sqlite-core").SQLiteTable<import("drizzle-orm/sqlite-core").TableConfig>, import("@effect/sql-libsql/LibsqlClient").LibsqlClient, C, Id, A>;
|