@yielded/auth-persistence-drizzle 0.1.0-beta.18 → 0.1.0-beta.20
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 +8 -8
- package/dist/Libsql.d.mts +38 -38
- package/dist/Mysql2.d.mts +51 -51
- package/dist/Pglite.d.mts +51 -51
- package/dist/Postgres.d.mts +38 -38
- package/dist/SqliteBun.d.mts +51 -51
- package/dist/SqliteDo.d.mts +112 -134
- package/dist/SqliteDo.mjs +30 -45
- package/dist/SqliteDo.mjs.map +1 -1
- package/dist/SqliteNode.d.mts +44 -44
- package/dist/SqliteWasm.d.mts +38 -38
- 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 +11 -11
- 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-passwords.d.mts +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-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 +13 -13
- 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 +9 -9
- 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-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-phone.ts +2 -1
- 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/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/SqliteBun.d.mts
CHANGED
|
@@ -481,11 +481,13 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
481
481
|
readonly invalidation: import("@yielded/auth/Sessions").SessionInvalidationWindow;
|
|
482
482
|
readonly nowMillis: number;
|
|
483
483
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
484
|
+
readonly _tag: "Cancelled";
|
|
485
|
+
} | {
|
|
484
486
|
readonly _tag: "Rejected";
|
|
485
487
|
} | {
|
|
486
488
|
readonly _tag: "Ambiguous";
|
|
487
489
|
} | {
|
|
488
|
-
readonly _tag: "
|
|
490
|
+
readonly _tag: "Conflict";
|
|
489
491
|
} | {
|
|
490
492
|
readonly _tag: "Linked";
|
|
491
493
|
readonly credential: {
|
|
@@ -507,8 +509,6 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
507
509
|
};
|
|
508
510
|
};
|
|
509
511
|
readonly changed: boolean;
|
|
510
|
-
} | {
|
|
511
|
-
readonly _tag: "Conflict";
|
|
512
512
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
513
513
|
readonly inspectUnlink: (input: {
|
|
514
514
|
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
@@ -586,7 +586,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
586
586
|
readonly hasMore: boolean;
|
|
587
587
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
588
588
|
};
|
|
589
|
-
}, import("@yielded/auth/OAuth").OAuthUnavailable, Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthSignInServices: <S extends AnySQLiteTable<{
|
|
589
|
+
}, import("@yielded/auth/OAuth").OAuthUnavailable, import("effect/Crypto").Crypto | Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthSignInServices: <S extends AnySQLiteTable<{
|
|
590
590
|
dialect: "sqlite";
|
|
591
591
|
}>, O extends AnySQLiteTable<{
|
|
592
592
|
dialect: "sqlite";
|
|
@@ -628,7 +628,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
628
628
|
readonly hasMore: boolean;
|
|
629
629
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
630
630
|
};
|
|
631
|
-
}, import("@yielded/auth/OAuth").OAuthUnavailable, Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthRegistrationIntentServices: <S extends AnySQLiteTable<{
|
|
631
|
+
}, import("@yielded/auth/OAuth").OAuthUnavailable, import("effect/Crypto").Crypto | Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthRegistrationIntentServices: <S extends AnySQLiteTable<{
|
|
632
632
|
dialect: "sqlite";
|
|
633
633
|
}>, O extends AnySQLiteTable<{
|
|
634
634
|
dialect: "sqlite";
|
|
@@ -651,7 +651,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
651
651
|
readonly nowMillis: number;
|
|
652
652
|
}, 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>;
|
|
653
653
|
};
|
|
654
|
-
}, import("@yielded/auth/OAuth").OAuthUnavailable, Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthRegistrationServices: <Registration, S extends AnySQLiteTable<{
|
|
654
|
+
}, import("@yielded/auth/OAuth").OAuthUnavailable, import("effect/Crypto").Crypto | Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthRegistrationServices: <Registration, S extends AnySQLiteTable<{
|
|
655
655
|
dialect: "sqlite";
|
|
656
656
|
}>, O extends AnySQLiteTable<{
|
|
657
657
|
dialect: "sqlite";
|
|
@@ -667,7 +667,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
667
667
|
dialect: "sqlite";
|
|
668
668
|
}>, N>(mapping: OAuthRegistrationMapping<Registration, S, O, C, AC, TA, I, R, N>) => Effect.Effect<{
|
|
669
669
|
registrationAuthority: OAuthRegistrationAuthority<Registration>;
|
|
670
|
-
}, import("@yielded/auth/OAuth").OAuthUnavailable, Database | import("@yielded/auth/Hooks").LifecycleHooks>, coordinateOAuthRegistration: {
|
|
670
|
+
}, import("@yielded/auth/OAuth").OAuthUnavailable, import("effect/Crypto").Crypto | Database | import("@yielded/auth/Hooks").LifecycleHooks>, coordinateOAuthRegistration: {
|
|
671
671
|
<Database extends EffectSQLiteBunDatabase<import("drizzle-orm").TablesRelationalConfig>, TargetId, Registration, S extends AnySQLiteTable<{
|
|
672
672
|
dialect: "sqlite";
|
|
673
673
|
}>, O extends AnySQLiteTable<{
|
|
@@ -686,7 +686,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
686
686
|
readonly mapping: OAuthRegistrationMapping<NoInfer<Registration>, S, O, C, AC, TA, I, Rq, N>;
|
|
687
687
|
readonly target: SuppliedService<TargetId, OAuthRegistrationAuthority<Registration>>;
|
|
688
688
|
readonly transaction?: never;
|
|
689
|
-
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TargetId>>;
|
|
689
|
+
}, 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>>;
|
|
690
690
|
<Database extends EffectSQLiteBunDatabase<import("drizzle-orm").TablesRelationalConfig>, TargetId, Registration, S extends AnySQLiteTable<{
|
|
691
691
|
dialect: "sqlite";
|
|
692
692
|
}>, O extends AnySQLiteTable<{
|
|
@@ -707,7 +707,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
707
707
|
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
708
708
|
readonly transaction: (...args: any[]) => any;
|
|
709
709
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
710
|
-
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TargetId | TxId>>;
|
|
710
|
+
}, 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>>;
|
|
711
711
|
}, coordinateOAuthSignIn: {
|
|
712
712
|
<Database extends EffectSQLiteBunDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
713
713
|
dialect: "sqlite";
|
|
@@ -722,7 +722,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
722
722
|
}>, N, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
723
723
|
readonly mapping: OAuthSignInMapping<S, O, C, AC, F, N>;
|
|
724
724
|
readonly transaction?: never;
|
|
725
|
-
}, 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>>;
|
|
725
|
+
}, 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>>;
|
|
726
726
|
<Database extends EffectSQLiteBunDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
727
727
|
dialect: "sqlite";
|
|
728
728
|
}>, O extends AnySQLiteTable<{
|
|
@@ -738,7 +738,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
738
738
|
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
739
739
|
readonly transaction: (...args: any[]) => any;
|
|
740
740
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
741
|
-
}, 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>>;
|
|
741
|
+
}, 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>>;
|
|
742
742
|
}, coordinateOAuthRegistrationIntents: {
|
|
743
743
|
<Database extends EffectSQLiteBunDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
744
744
|
dialect: "sqlite";
|
|
@@ -757,7 +757,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
757
757
|
}>, N, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
758
758
|
readonly mapping: OAuthRegistrationIntentMapping<S, O, C, AC, F, TA, I, N>;
|
|
759
759
|
readonly transaction?: never;
|
|
760
|
-
}, 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>>;
|
|
760
|
+
}, 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>>;
|
|
761
761
|
<Database extends EffectSQLiteBunDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
762
762
|
dialect: "sqlite";
|
|
763
763
|
}>, O extends AnySQLiteTable<{
|
|
@@ -777,7 +777,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
777
777
|
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
778
778
|
readonly transaction: (...args: any[]) => any;
|
|
779
779
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
780
|
-
}, 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>>;
|
|
780
|
+
}, 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>>;
|
|
781
781
|
}, coordinateOAuthAccounts: {
|
|
782
782
|
<Database extends EffectSQLiteBunDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
783
783
|
dialect: "sqlite";
|
|
@@ -796,7 +796,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
796
796
|
}>, N, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
797
797
|
readonly mapping: OAuthAccountsMapping<S, O, C, AC, F, TA, U, N>;
|
|
798
798
|
readonly transaction?: never;
|
|
799
|
-
}, 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>>;
|
|
799
|
+
}, 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>>;
|
|
800
800
|
<Database extends EffectSQLiteBunDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
801
801
|
dialect: "sqlite";
|
|
802
802
|
}>, O extends AnySQLiteTable<{
|
|
@@ -816,7 +816,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
816
816
|
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
817
817
|
readonly transaction: (...args: any[]) => any;
|
|
818
818
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
819
|
-
}, 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>>;
|
|
819
|
+
}, 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>>;
|
|
820
820
|
}, makeOAuthConnectedServices: <S extends AnySQLiteTable<{
|
|
821
821
|
dialect: "sqlite";
|
|
822
822
|
}>, AC extends AnySQLiteTable<{
|
|
@@ -854,11 +854,11 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
854
854
|
readonly reservation: import("@yielded/auth/OAuth").OAuthSignInAccessClaim;
|
|
855
855
|
readonly outcome: import("@yielded/auth/OAuth").OAuthSignInAccessOutcome;
|
|
856
856
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
857
|
+
readonly _tag: "Cancelled";
|
|
858
|
+
} | {
|
|
857
859
|
readonly _tag: "Rejected";
|
|
858
860
|
} | {
|
|
859
861
|
readonly _tag: "Ambiguous";
|
|
860
|
-
} | {
|
|
861
|
-
readonly _tag: "Cancelled";
|
|
862
862
|
} | {
|
|
863
863
|
readonly _tag: "Conflict";
|
|
864
864
|
} | {
|
|
@@ -1314,11 +1314,11 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1314
1314
|
readonly authorization: import("@yielded/auth/OAuth").OAuthConnectedActionAuthorization;
|
|
1315
1315
|
readonly nowMillis: number;
|
|
1316
1316
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
1317
|
+
readonly _tag: "Cancelled";
|
|
1318
|
+
} | {
|
|
1317
1319
|
readonly _tag: "Rejected";
|
|
1318
1320
|
} | {
|
|
1319
1321
|
readonly _tag: "Ambiguous";
|
|
1320
|
-
} | {
|
|
1321
|
-
readonly _tag: "Cancelled";
|
|
1322
1322
|
} | {
|
|
1323
1323
|
readonly _tag: "Conflict";
|
|
1324
1324
|
} | {
|
|
@@ -1543,6 +1543,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1543
1543
|
readonly profileKey: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
1544
1544
|
}) => Effect.Effect<{
|
|
1545
1545
|
readonly _tag: "Rejected";
|
|
1546
|
+
} | {
|
|
1547
|
+
readonly _tag: "ReauthorizationRequired";
|
|
1546
1548
|
} | {
|
|
1547
1549
|
readonly _tag: "Busy";
|
|
1548
1550
|
} | {
|
|
@@ -1614,8 +1616,6 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1614
1616
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1615
1617
|
};
|
|
1616
1618
|
};
|
|
1617
|
-
} | {
|
|
1618
|
-
readonly _tag: "ReauthorizationRequired";
|
|
1619
1619
|
}, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
1620
1620
|
readonly claimRefresh: <A>(input: {
|
|
1621
1621
|
readonly grant: import("@yielded/auth/OAuth").OAuthConnectedStoredGrant;
|
|
@@ -1625,10 +1625,10 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1625
1625
|
readonly lifetimeMillis: number;
|
|
1626
1626
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
1627
1627
|
readonly _tag: "Rejected";
|
|
1628
|
-
} | {
|
|
1629
|
-
readonly _tag: "Busy";
|
|
1630
1628
|
} | {
|
|
1631
1629
|
readonly _tag: "ReauthorizationRequired";
|
|
1630
|
+
} | {
|
|
1631
|
+
readonly _tag: "Busy";
|
|
1632
1632
|
} | {
|
|
1633
1633
|
readonly _tag: "Claimed";
|
|
1634
1634
|
readonly claim: {
|
|
@@ -1791,10 +1791,10 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1791
1791
|
readonly lifetimeMillis: number;
|
|
1792
1792
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
1793
1793
|
readonly _tag: "Rejected";
|
|
1794
|
-
} | {
|
|
1795
|
-
readonly _tag: "Busy";
|
|
1796
1794
|
} | {
|
|
1797
1795
|
readonly _tag: "ReauthorizationRequired";
|
|
1796
|
+
} | {
|
|
1797
|
+
readonly _tag: "Busy";
|
|
1798
1798
|
} | {
|
|
1799
1799
|
readonly _tag: "Admitted";
|
|
1800
1800
|
readonly admissionId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
|
|
@@ -1809,7 +1809,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1809
1809
|
readonly hasMore: boolean;
|
|
1810
1810
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
|
|
1811
1811
|
};
|
|
1812
|
-
}, import("@yielded/auth/OAuth").OAuthUnavailable, Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthConnectedRevocationServices: <T extends AnySQLiteTable<{
|
|
1812
|
+
}, import("@yielded/auth/OAuth").OAuthUnavailable, import("effect/Crypto").Crypto | Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthConnectedRevocationServices: <T extends AnySQLiteTable<{
|
|
1813
1813
|
dialect: "sqlite";
|
|
1814
1814
|
}>, O extends AnySQLiteTable<{
|
|
1815
1815
|
dialect: "sqlite";
|
|
@@ -1917,7 +1917,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1917
1917
|
readonly settled: boolean;
|
|
1918
1918
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
1919
1919
|
};
|
|
1920
|
-
}, import("@yielded/auth/OAuth").OAuthUnavailable, Database | import("@yielded/auth/Hooks").LifecycleHooks>, coordinateOAuthConnected: {
|
|
1920
|
+
}, import("@yielded/auth/OAuth").OAuthUnavailable, import("effect/Crypto").Crypto | Database | import("@yielded/auth/Hooks").LifecycleHooks>, coordinateOAuthConnected: {
|
|
1921
1921
|
<D extends EffectSQLiteBunDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
1922
1922
|
dialect: "sqlite";
|
|
1923
1923
|
}>, AC extends AnySQLiteTable<{
|
|
@@ -1943,7 +1943,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1943
1943
|
}>, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<D, DatabaseError, DatabaseRequirements>, options: {
|
|
1944
1944
|
readonly mapping: OAuthConnectedMapping<S, AC, T, O, F, G, C, H, UA, DC, N, J>;
|
|
1945
1945
|
readonly transaction?: never;
|
|
1946
|
-
}, 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>>;
|
|
1946
|
+
}, 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>>;
|
|
1947
1947
|
<D extends EffectSQLiteBunDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
1948
1948
|
dialect: "sqlite";
|
|
1949
1949
|
}>, AC extends AnySQLiteTable<{
|
|
@@ -1971,7 +1971,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1971
1971
|
readonly transaction: SuppliedService<TxId, NoInfer<D extends {
|
|
1972
1972
|
readonly transaction: (...args: any[]) => any;
|
|
1973
1973
|
} ? Parameters<Parameters<D["transaction"]>[0]>[0] : never>, TxShape>;
|
|
1974
|
-
}, 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>>;
|
|
1974
|
+
}, 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>>;
|
|
1975
1975
|
}, coordinateOAuthConnectedRevocations: {
|
|
1976
1976
|
<D extends EffectSQLiteBunDatabase<import("drizzle-orm").TablesRelationalConfig>, T extends AnySQLiteTable<{
|
|
1977
1977
|
dialect: "sqlite";
|
|
@@ -1990,7 +1990,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1990
1990
|
}>, N, A, E, R, DatabaseError, DatabaseRequirements>(acquire: Effect.Effect<D, DatabaseError, DatabaseRequirements>, options: {
|
|
1991
1991
|
readonly mapping: OAuthConnectedRevocationMapping<T, O, F, G, C, H, J, N>;
|
|
1992
1992
|
readonly transaction?: never;
|
|
1993
|
-
}, 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>>;
|
|
1993
|
+
}, 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>>;
|
|
1994
1994
|
<D extends EffectSQLiteBunDatabase<import("drizzle-orm").TablesRelationalConfig>, T extends AnySQLiteTable<{
|
|
1995
1995
|
dialect: "sqlite";
|
|
1996
1996
|
}>, O extends AnySQLiteTable<{
|
|
@@ -2010,7 +2010,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
2010
2010
|
readonly transaction: SuppliedService<TxId, NoInfer<D extends {
|
|
2011
2011
|
readonly transaction: (...args: any[]) => any;
|
|
2012
2012
|
} ? Parameters<Parameters<D["transaction"]>[0]>[0] : never>, TxShape>;
|
|
2013
|
-
}, 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>>;
|
|
2013
|
+
}, 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>>;
|
|
2014
2014
|
};
|
|
2015
2015
|
export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
2016
2016
|
dialect: "sqlite";
|
|
@@ -2022,7 +2022,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2022
2022
|
dialect: "sqlite";
|
|
2023
2023
|
}>, H extends AnySQLiteTable<{
|
|
2024
2024
|
dialect: "sqlite";
|
|
2025
|
-
}>, 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<{
|
|
2025
|
+
}>, 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<{
|
|
2026
2026
|
dialect: "sqlite";
|
|
2027
2027
|
}>, C extends AnySQLiteTable<{
|
|
2028
2028
|
dialect: "sqlite";
|
|
@@ -2040,7 +2040,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2040
2040
|
dialect: "sqlite";
|
|
2041
2041
|
}>, Charge extends AnySQLiteTable<{
|
|
2042
2042
|
dialect: "sqlite";
|
|
2043
|
-
}>, 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<{
|
|
2043
|
+
}>, 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<{
|
|
2044
2044
|
dialect: "sqlite";
|
|
2045
2045
|
}>, C extends AnySQLiteTable<{
|
|
2046
2046
|
dialect: "sqlite";
|
|
@@ -2052,7 +2052,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2052
2052
|
dialect: "sqlite";
|
|
2053
2053
|
}>, M extends AnySQLiteTable<{
|
|
2054
2054
|
dialect: "sqlite";
|
|
2055
|
-
}>, 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<{
|
|
2055
|
+
}>, 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<{
|
|
2056
2056
|
dialect: "sqlite";
|
|
2057
2057
|
}>, Flow extends AnySQLiteTable<{
|
|
2058
2058
|
dialect: "sqlite";
|
|
@@ -2064,7 +2064,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2064
2064
|
dialect: "sqlite";
|
|
2065
2065
|
}>, H extends AnySQLiteTable<{
|
|
2066
2066
|
dialect: "sqlite";
|
|
2067
|
-
}>, 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: {
|
|
2067
|
+
}>, 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: {
|
|
2068
2068
|
<Database extends EffectSQLiteBunDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2069
2069
|
dialect: "sqlite";
|
|
2070
2070
|
}>, C extends AnySQLiteTable<{
|
|
@@ -2086,7 +2086,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2086
2086
|
}>, N, A, E, R, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
2087
2087
|
readonly mapping: import("@yielded/auth-persistence/Adapter").PasskeyMappingSource<PasskeyPersistenceMapping<PasskeyCredentialMapping<S, C, F, O, H, N>, M, Flow, Admission, Charge, N>, RSetup>;
|
|
2088
2088
|
readonly transaction?: never;
|
|
2089
|
-
}, 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>>;
|
|
2089
|
+
}, 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>>;
|
|
2090
2090
|
<Database extends EffectSQLiteBunDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2091
2091
|
dialect: "sqlite";
|
|
2092
2092
|
}>, C extends AnySQLiteTable<{
|
|
@@ -2110,7 +2110,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2110
2110
|
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
2111
2111
|
readonly transaction: (...args: any[]) => any;
|
|
2112
2112
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
2113
|
-
}, 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>>;
|
|
2113
|
+
}, 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>>;
|
|
2114
2114
|
}, coordinatePasskeyRegistrationCeremony: {
|
|
2115
2115
|
<Database extends EffectSQLiteBunDatabase<import("drizzle-orm").TablesRelationalConfig>, M extends AnySQLiteTable<{
|
|
2116
2116
|
dialect: "sqlite";
|
|
@@ -2127,7 +2127,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2127
2127
|
}>, A, E, R, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
2128
2128
|
readonly mapping: import("@yielded/auth-persistence/Adapter").PasskeyMappingSource<PasskeyRegistrationCeremonyMapping<M, Flow, Admission, Charge, Intent, H>, RSetup>;
|
|
2129
2129
|
readonly transaction?: never;
|
|
2130
|
-
}, 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>>;
|
|
2130
|
+
}, 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>>;
|
|
2131
2131
|
<Database extends EffectSQLiteBunDatabase<import("drizzle-orm").TablesRelationalConfig>, M extends AnySQLiteTable<{
|
|
2132
2132
|
dialect: "sqlite";
|
|
2133
2133
|
}>, Flow extends AnySQLiteTable<{
|
|
@@ -2145,7 +2145,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2145
2145
|
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
2146
2146
|
readonly transaction: (...args: any[]) => any;
|
|
2147
2147
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
2148
|
-
}, 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>>;
|
|
2148
|
+
}, 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>>;
|
|
2149
2149
|
}, makePasskeyManagementServices: <S extends AnySQLiteTable<{
|
|
2150
2150
|
dialect: "sqlite";
|
|
2151
2151
|
}>, C extends AnySQLiteTable<{
|
|
@@ -2166,7 +2166,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2166
2166
|
dialect: "sqlite";
|
|
2167
2167
|
}>, Command extends AnySQLiteTable<{
|
|
2168
2168
|
dialect: "sqlite";
|
|
2169
|
-
}>, 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<{
|
|
2169
|
+
}>, 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<{
|
|
2170
2170
|
dialect: "sqlite";
|
|
2171
2171
|
}>, C extends AnySQLiteTable<{
|
|
2172
2172
|
dialect: "sqlite";
|
|
@@ -2186,7 +2186,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2186
2186
|
dialect: "sqlite";
|
|
2187
2187
|
}>, Intent extends AnySQLiteTable<{
|
|
2188
2188
|
dialect: "sqlite";
|
|
2189
|
-
}>, 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: {
|
|
2189
|
+
}>, 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: {
|
|
2190
2190
|
<Database extends EffectSQLiteBunDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2191
2191
|
dialect: "sqlite";
|
|
2192
2192
|
}>, C extends AnySQLiteTable<{
|
|
@@ -2210,7 +2210,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2210
2210
|
}>, N, A, E, R, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
2211
2211
|
readonly mapping: import("@yielded/auth-persistence/Adapter").PasskeyMappingSource<PasskeyManagementMapping<S, C, F, O, H, M, Flow, Admission, Charge, Command, N>, RSetup>;
|
|
2212
2212
|
readonly transaction?: never;
|
|
2213
|
-
}, 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>>;
|
|
2213
|
+
}, 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>>;
|
|
2214
2214
|
<Database extends EffectSQLiteBunDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2215
2215
|
dialect: "sqlite";
|
|
2216
2216
|
}>, C extends AnySQLiteTable<{
|
|
@@ -2236,7 +2236,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2236
2236
|
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
2237
2237
|
readonly transaction: (...args: any[]) => any;
|
|
2238
2238
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
2239
|
-
}, 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>>;
|
|
2239
|
+
}, 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>>;
|
|
2240
2240
|
}, coordinatePasskeyRegistration: {
|
|
2241
2241
|
<Database extends EffectSQLiteBunDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2242
2242
|
dialect: "sqlite";
|
|
@@ -2262,7 +2262,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2262
2262
|
readonly mapping: import("@yielded/auth-persistence/Adapter").PasskeyMappingSource<PasskeyRegistrationMapping<S, C, F, O, H, M, Flow, Admission, Charge, Intent, N, Value>, RSetup>;
|
|
2263
2263
|
readonly authority: Context.Key<AuthorityId, import("@yielded/auth-persistence/Adapter").PasskeyRegistrationWriter<Value>>;
|
|
2264
2264
|
readonly transaction?: never;
|
|
2265
|
-
}, 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>>;
|
|
2265
|
+
}, 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>>;
|
|
2266
2266
|
<Database extends EffectSQLiteBunDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2267
2267
|
dialect: "sqlite";
|
|
2268
2268
|
}>, C extends AnySQLiteTable<{
|
|
@@ -2289,7 +2289,7 @@ export declare const makePasskeyCredentialServices: <S extends AnySQLiteTable<{
|
|
|
2289
2289
|
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
2290
2290
|
readonly transaction: (...args: any[]) => any;
|
|
2291
2291
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
2292
|
-
}, 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>>;
|
|
2292
|
+
}, 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>>;
|
|
2293
2293
|
};
|
|
2294
2294
|
export declare const makeTotpPersistenceServices: <S extends AnySQLiteTable<{
|
|
2295
2295
|
dialect: "sqlite";
|
|
@@ -2297,7 +2297,7 @@ export declare const makeTotpPersistenceServices: <S extends AnySQLiteTable<{
|
|
|
2297
2297
|
dialect: "sqlite";
|
|
2298
2298
|
}>, C extends AnySQLiteTable<{
|
|
2299
2299
|
dialect: "sqlite";
|
|
2300
|
-
}>, 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: {
|
|
2300
|
+
}>, 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: {
|
|
2301
2301
|
<Database extends EffectSQLiteBunDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2302
2302
|
dialect: "sqlite";
|
|
2303
2303
|
}>, F extends AnySQLiteTable<{
|
|
@@ -2307,7 +2307,7 @@ export declare const makeTotpPersistenceServices: <S extends AnySQLiteTable<{
|
|
|
2307
2307
|
}>, N, A, E, R, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
2308
2308
|
readonly mapping: TotpMappingSource<TotpMapping<S, F, C, N>, RSetup>;
|
|
2309
2309
|
readonly transaction?: never;
|
|
2310
|
-
}, 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>>;
|
|
2310
|
+
}, 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>>;
|
|
2311
2311
|
<Database extends EffectSQLiteBunDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2312
2312
|
dialect: "sqlite";
|
|
2313
2313
|
}>, F extends AnySQLiteTable<{
|
|
@@ -2319,7 +2319,7 @@ export declare const makeTotpPersistenceServices: <S extends AnySQLiteTable<{
|
|
|
2319
2319
|
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
2320
2320
|
readonly transaction: (...args: any[]) => any;
|
|
2321
2321
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
2322
|
-
}, 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>>;
|
|
2322
|
+
}, 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>>;
|
|
2323
2323
|
};
|
|
2324
2324
|
export declare const makePhonePersistenceServices: <S extends AnySQLiteTable<{
|
|
2325
2325
|
dialect: "sqlite";
|
|
@@ -2329,7 +2329,7 @@ export declare const makePhonePersistenceServices: <S extends AnySQLiteTable<{
|
|
|
2329
2329
|
dialect: "sqlite";
|
|
2330
2330
|
}>, C extends AnySQLiteTable<{
|
|
2331
2331
|
dialect: "sqlite";
|
|
2332
|
-
}>, 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: {
|
|
2332
|
+
}>, 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: {
|
|
2333
2333
|
<Database extends EffectSQLiteBunDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2334
2334
|
dialect: "sqlite";
|
|
2335
2335
|
}>, I extends AnySQLiteTable<{
|
|
@@ -2341,7 +2341,7 @@ export declare const makePhonePersistenceServices: <S extends AnySQLiteTable<{
|
|
|
2341
2341
|
}>, N, A, E, R, RSetup = never, DatabaseError = never, DatabaseRequirements = never>(acquire: Effect.Effect<Database, DatabaseError, DatabaseRequirements>, options: {
|
|
2342
2342
|
readonly mapping: PhoneMappingSource<PhoneMapping<S, I, C, F, N>, RSetup>;
|
|
2343
2343
|
readonly transaction?: never;
|
|
2344
|
-
}, 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>>;
|
|
2344
|
+
}, 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>>;
|
|
2345
2345
|
<Database extends EffectSQLiteBunDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnySQLiteTable<{
|
|
2346
2346
|
dialect: "sqlite";
|
|
2347
2347
|
}>, I extends AnySQLiteTable<{
|
|
@@ -2355,7 +2355,7 @@ export declare const makePhonePersistenceServices: <S extends AnySQLiteTable<{
|
|
|
2355
2355
|
readonly transaction: SuppliedService<TxId, NoInfer<Database extends {
|
|
2356
2356
|
readonly transaction: (...args: any[]) => any;
|
|
2357
2357
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
2358
|
-
}, 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>>;
|
|
2358
|
+
}, 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>>;
|
|
2359
2359
|
};
|
|
2360
2360
|
export declare const AuthPersistence: {
|
|
2361
2361
|
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-sqlite-bun/SqliteClient").SqliteClient, C, Id, A>;
|