@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/SqliteBun.d.mts
CHANGED
|
@@ -86,12 +86,12 @@ export declare const coordinateEmailAddress: {
|
|
|
86
86
|
export declare const coordinatePasswordPersistence: {
|
|
87
87
|
<Database extends EffectSQLiteBunDatabase<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: {
|
|
88
88
|
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>>;
|
|
89
|
-
readonly proofMapping?: PM
|
|
89
|
+
readonly proofMapping?: PM;
|
|
90
90
|
readonly transaction?: never;
|
|
91
91
|
}, body: Effect.Effect<Out, E, R>): Effect.Effect<Out, DatabaseError | E | import("@yielded/auth/Hooks").HookConfigurationError | import("@yielded/auth/Password").PasswordUnavailable | import("effect/sql/SqlError").SqlError, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, import("@yielded/auth/Password").PasswordPersistence>>;
|
|
92
92
|
<Database extends EffectSQLiteBunDatabase<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: {
|
|
93
93
|
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>>;
|
|
94
|
-
readonly proofMapping?: PM
|
|
94
|
+
readonly proofMapping?: PM;
|
|
95
95
|
readonly transaction: SuppliedService<TxId, NoInfer<Parameters<Parameters<Database["transaction"]>[0]>[0]>, TxShape>;
|
|
96
96
|
}, body: Effect.Effect<Out, E, R>): Effect.Effect<Out, DatabaseError | E | import("@yielded/auth/Hooks").HookConfigurationError | import("@yielded/auth/Password").PasswordUnavailable | import("effect/sql/SqlError").SqlError, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/Password").PasswordPersistence>>;
|
|
97
97
|
}, coordinatePasswordRegistration: {
|
|
@@ -372,11 +372,11 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
372
372
|
readonly resources: readonly string[];
|
|
373
373
|
readonly retention: "access-and-refresh" | "access-only";
|
|
374
374
|
readonly maximumAccessLifetimeMillis: number;
|
|
375
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
375
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
376
376
|
readonly refreshAheadMillis: number;
|
|
377
377
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
378
378
|
readonly revocation: "cohort" | "unsupported";
|
|
379
|
-
}
|
|
379
|
+
};
|
|
380
380
|
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
381
381
|
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
382
382
|
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
@@ -438,11 +438,11 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
438
438
|
readonly resources: readonly string[];
|
|
439
439
|
readonly retention: "access-and-refresh" | "access-only";
|
|
440
440
|
readonly maximumAccessLifetimeMillis: number;
|
|
441
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
441
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
442
442
|
readonly refreshAheadMillis: number;
|
|
443
443
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
444
444
|
readonly revocation: "cohort" | "unsupported";
|
|
445
|
-
}
|
|
445
|
+
};
|
|
446
446
|
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
447
447
|
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
448
448
|
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
@@ -486,8 +486,6 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
486
486
|
readonly _tag: "Ambiguous";
|
|
487
487
|
} | {
|
|
488
488
|
readonly _tag: "Cancelled";
|
|
489
|
-
} | {
|
|
490
|
-
readonly _tag: "Conflict";
|
|
491
489
|
} | {
|
|
492
490
|
readonly _tag: "Linked";
|
|
493
491
|
readonly credential: {
|
|
@@ -509,6 +507,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
509
507
|
};
|
|
510
508
|
};
|
|
511
509
|
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<{
|
|
@@ -859,6 +859,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
859
859
|
readonly _tag: "Ambiguous";
|
|
860
860
|
} | {
|
|
861
861
|
readonly _tag: "Cancelled";
|
|
862
|
+
} | {
|
|
863
|
+
readonly _tag: "Conflict";
|
|
862
864
|
} | {
|
|
863
865
|
readonly _tag: "Connected";
|
|
864
866
|
readonly grant: {
|
|
@@ -890,7 +892,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
890
892
|
readonly resources: readonly string[];
|
|
891
893
|
readonly retention: "access-and-refresh" | "access-only";
|
|
892
894
|
readonly maximumAccessLifetimeMillis: number;
|
|
893
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
895
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
894
896
|
readonly refreshAheadMillis: number;
|
|
895
897
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
896
898
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -903,22 +905,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
903
905
|
readonly metadata: {
|
|
904
906
|
readonly scopes: readonly string[];
|
|
905
907
|
readonly resources: readonly string[];
|
|
906
|
-
readonly accessExpiresAtMillis?: number
|
|
907
|
-
readonly refreshExpiresAtMillis?: number
|
|
908
|
+
readonly accessExpiresAtMillis?: number;
|
|
909
|
+
readonly refreshExpiresAtMillis?: number;
|
|
908
910
|
readonly useUntilMillis: number;
|
|
909
|
-
readonly refreshUseUntilMillis?: number
|
|
911
|
+
readonly refreshUseUntilMillis?: number;
|
|
910
912
|
readonly obtainedAtMillis: number;
|
|
911
913
|
readonly profile?: {
|
|
912
|
-
readonly displayName?: string
|
|
913
|
-
readonly handle?: string
|
|
914
|
-
readonly avatarUrl?: string
|
|
915
|
-
readonly profileUrl?: string
|
|
916
|
-
readonly email?: string
|
|
917
|
-
readonly emailVerified?: boolean
|
|
914
|
+
readonly displayName?: string;
|
|
915
|
+
readonly handle?: string;
|
|
916
|
+
readonly avatarUrl?: string;
|
|
917
|
+
readonly profileUrl?: string;
|
|
918
|
+
readonly email?: string;
|
|
919
|
+
readonly emailVerified?: boolean;
|
|
918
920
|
readonly providerData?: {
|
|
919
921
|
readonly [x: string]: import("effect/Schema").Json;
|
|
920
|
-
}
|
|
921
|
-
}
|
|
922
|
+
};
|
|
923
|
+
};
|
|
922
924
|
};
|
|
923
925
|
};
|
|
924
926
|
readonly sealed: {
|
|
@@ -928,8 +930,6 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
928
930
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
929
931
|
};
|
|
930
932
|
};
|
|
931
|
-
} | {
|
|
932
|
-
readonly _tag: "Conflict";
|
|
933
933
|
} | {
|
|
934
934
|
readonly _tag: "Busy";
|
|
935
935
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
|
|
@@ -971,11 +971,11 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
971
971
|
readonly resources: readonly string[];
|
|
972
972
|
readonly retention: "access-and-refresh" | "access-only";
|
|
973
973
|
readonly maximumAccessLifetimeMillis: number;
|
|
974
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
974
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
975
975
|
readonly refreshAheadMillis: number;
|
|
976
976
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
977
977
|
readonly revocation: "cohort" | "unsupported";
|
|
978
|
-
}
|
|
978
|
+
};
|
|
979
979
|
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
980
980
|
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
981
981
|
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
@@ -1002,7 +1002,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1002
1002
|
readonly resources: readonly string[];
|
|
1003
1003
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1004
1004
|
readonly maximumAccessLifetimeMillis: number;
|
|
1005
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1005
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1006
1006
|
readonly refreshAheadMillis: number;
|
|
1007
1007
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1008
1008
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1036,13 +1036,13 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1036
1036
|
readonly resources: readonly string[];
|
|
1037
1037
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1038
1038
|
readonly maximumAccessLifetimeMillis: number;
|
|
1039
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1039
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1040
1040
|
readonly refreshAheadMillis: number;
|
|
1041
1041
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1042
1042
|
readonly revocation: "cohort" | "unsupported";
|
|
1043
1043
|
};
|
|
1044
1044
|
};
|
|
1045
|
-
}
|
|
1045
|
+
};
|
|
1046
1046
|
readonly maximumEvidenceAgeMillis: number;
|
|
1047
1047
|
};
|
|
1048
1048
|
readonly sealed: {
|
|
@@ -1084,11 +1084,11 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1084
1084
|
readonly resources: readonly string[];
|
|
1085
1085
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1086
1086
|
readonly maximumAccessLifetimeMillis: number;
|
|
1087
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1087
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1088
1088
|
readonly refreshAheadMillis: number;
|
|
1089
1089
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1090
1090
|
readonly revocation: "cohort" | "unsupported";
|
|
1091
|
-
}
|
|
1091
|
+
};
|
|
1092
1092
|
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
1093
1093
|
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1094
1094
|
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
@@ -1115,7 +1115,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1115
1115
|
readonly resources: readonly string[];
|
|
1116
1116
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1117
1117
|
readonly maximumAccessLifetimeMillis: number;
|
|
1118
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1118
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1119
1119
|
readonly refreshAheadMillis: number;
|
|
1120
1120
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1121
1121
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1149,13 +1149,13 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1149
1149
|
readonly resources: readonly string[];
|
|
1150
1150
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1151
1151
|
readonly maximumAccessLifetimeMillis: number;
|
|
1152
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1152
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1153
1153
|
readonly refreshAheadMillis: number;
|
|
1154
1154
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1155
1155
|
readonly revocation: "cohort" | "unsupported";
|
|
1156
1156
|
};
|
|
1157
1157
|
};
|
|
1158
|
-
}
|
|
1158
|
+
};
|
|
1159
1159
|
readonly maximumEvidenceAgeMillis: number;
|
|
1160
1160
|
};
|
|
1161
1161
|
readonly sealed: {
|
|
@@ -1202,11 +1202,11 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1202
1202
|
readonly resources: readonly string[];
|
|
1203
1203
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1204
1204
|
readonly maximumAccessLifetimeMillis: number;
|
|
1205
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1205
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1206
1206
|
readonly refreshAheadMillis: number;
|
|
1207
1207
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1208
1208
|
readonly revocation: "cohort" | "unsupported";
|
|
1209
|
-
}
|
|
1209
|
+
};
|
|
1210
1210
|
readonly returnTarget: string & import("effect/Brand").Brand<"effect-auth/OAuthReturnTarget">;
|
|
1211
1211
|
readonly stateDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1212
1212
|
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
@@ -1233,7 +1233,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1233
1233
|
readonly resources: readonly string[];
|
|
1234
1234
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1235
1235
|
readonly maximumAccessLifetimeMillis: number;
|
|
1236
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1236
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1237
1237
|
readonly refreshAheadMillis: number;
|
|
1238
1238
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1239
1239
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1267,13 +1267,13 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1267
1267
|
readonly resources: readonly string[];
|
|
1268
1268
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1269
1269
|
readonly maximumAccessLifetimeMillis: number;
|
|
1270
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1270
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1271
1271
|
readonly refreshAheadMillis: number;
|
|
1272
1272
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1273
1273
|
readonly revocation: "cohort" | "unsupported";
|
|
1274
1274
|
};
|
|
1275
1275
|
};
|
|
1276
|
-
}
|
|
1276
|
+
};
|
|
1277
1277
|
readonly maximumEvidenceAgeMillis: number;
|
|
1278
1278
|
};
|
|
1279
1279
|
readonly sealed: {
|
|
@@ -1319,6 +1319,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1319
1319
|
readonly _tag: "Ambiguous";
|
|
1320
1320
|
} | {
|
|
1321
1321
|
readonly _tag: "Cancelled";
|
|
1322
|
+
} | {
|
|
1323
|
+
readonly _tag: "Conflict";
|
|
1322
1324
|
} | {
|
|
1323
1325
|
readonly _tag: "Connected";
|
|
1324
1326
|
readonly grant: {
|
|
@@ -1350,7 +1352,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1350
1352
|
readonly resources: readonly string[];
|
|
1351
1353
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1352
1354
|
readonly maximumAccessLifetimeMillis: number;
|
|
1353
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1355
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1354
1356
|
readonly refreshAheadMillis: number;
|
|
1355
1357
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1356
1358
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1363,22 +1365,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1363
1365
|
readonly metadata: {
|
|
1364
1366
|
readonly scopes: readonly string[];
|
|
1365
1367
|
readonly resources: readonly string[];
|
|
1366
|
-
readonly accessExpiresAtMillis?: number
|
|
1367
|
-
readonly refreshExpiresAtMillis?: number
|
|
1368
|
+
readonly accessExpiresAtMillis?: number;
|
|
1369
|
+
readonly refreshExpiresAtMillis?: number;
|
|
1368
1370
|
readonly useUntilMillis: number;
|
|
1369
|
-
readonly refreshUseUntilMillis?: number
|
|
1371
|
+
readonly refreshUseUntilMillis?: number;
|
|
1370
1372
|
readonly obtainedAtMillis: number;
|
|
1371
1373
|
readonly profile?: {
|
|
1372
|
-
readonly displayName?: string
|
|
1373
|
-
readonly handle?: string
|
|
1374
|
-
readonly avatarUrl?: string
|
|
1375
|
-
readonly profileUrl?: string
|
|
1376
|
-
readonly email?: string
|
|
1377
|
-
readonly emailVerified?: boolean
|
|
1374
|
+
readonly displayName?: string;
|
|
1375
|
+
readonly handle?: string;
|
|
1376
|
+
readonly avatarUrl?: string;
|
|
1377
|
+
readonly profileUrl?: string;
|
|
1378
|
+
readonly email?: string;
|
|
1379
|
+
readonly emailVerified?: boolean;
|
|
1378
1380
|
readonly providerData?: {
|
|
1379
1381
|
readonly [x: string]: import("effect/Schema").Json;
|
|
1380
|
-
}
|
|
1381
|
-
}
|
|
1382
|
+
};
|
|
1383
|
+
};
|
|
1382
1384
|
};
|
|
1383
1385
|
};
|
|
1384
1386
|
readonly sealed: {
|
|
@@ -1388,8 +1390,6 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1388
1390
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1389
1391
|
};
|
|
1390
1392
|
};
|
|
1391
|
-
} | {
|
|
1392
|
-
readonly _tag: "Conflict";
|
|
1393
1393
|
} | {
|
|
1394
1394
|
readonly _tag: "Busy";
|
|
1395
1395
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
|
|
@@ -1405,22 +1405,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1405
1405
|
readonly profileKey: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
1406
1406
|
readonly status: "Active" | "Disconnected" | "ReauthorizationRequired" | "Refreshing";
|
|
1407
1407
|
readonly scopes: readonly string[];
|
|
1408
|
-
readonly accessExpiresAtMillis?: number
|
|
1408
|
+
readonly accessExpiresAtMillis?: number;
|
|
1409
1409
|
readonly useUntilMillis: number;
|
|
1410
1410
|
readonly profile?: {
|
|
1411
|
-
readonly displayName?: string
|
|
1412
|
-
readonly handle?: string
|
|
1413
|
-
readonly avatarUrl?: string
|
|
1414
|
-
readonly profileUrl?: string
|
|
1415
|
-
readonly email?: string
|
|
1416
|
-
readonly emailVerified?: boolean
|
|
1411
|
+
readonly displayName?: string;
|
|
1412
|
+
readonly handle?: string;
|
|
1413
|
+
readonly avatarUrl?: string;
|
|
1414
|
+
readonly profileUrl?: string;
|
|
1415
|
+
readonly email?: string;
|
|
1416
|
+
readonly emailVerified?: boolean;
|
|
1417
1417
|
readonly providerData?: {
|
|
1418
1418
|
readonly [x: string]: import("effect/Schema").Json;
|
|
1419
|
-
}
|
|
1420
|
-
}
|
|
1419
|
+
};
|
|
1420
|
+
};
|
|
1421
1421
|
readonly remoteRevocation: "Confirmed" | "Pending" | "Unknown" | "Unsupported";
|
|
1422
1422
|
}[];
|
|
1423
|
-
readonly cursor?: string
|
|
1423
|
+
readonly cursor?: string;
|
|
1424
1424
|
}, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
1425
1425
|
readonly inspectDisconnect: (input: {
|
|
1426
1426
|
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
@@ -1463,7 +1463,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1463
1463
|
readonly resources: readonly string[];
|
|
1464
1464
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1465
1465
|
readonly maximumAccessLifetimeMillis: number;
|
|
1466
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1466
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1467
1467
|
readonly refreshAheadMillis: number;
|
|
1468
1468
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1469
1469
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1476,22 +1476,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1476
1476
|
readonly metadata: {
|
|
1477
1477
|
readonly scopes: readonly string[];
|
|
1478
1478
|
readonly resources: readonly string[];
|
|
1479
|
-
readonly accessExpiresAtMillis?: number
|
|
1480
|
-
readonly refreshExpiresAtMillis?: number
|
|
1479
|
+
readonly accessExpiresAtMillis?: number;
|
|
1480
|
+
readonly refreshExpiresAtMillis?: number;
|
|
1481
1481
|
readonly useUntilMillis: number;
|
|
1482
|
-
readonly refreshUseUntilMillis?: number
|
|
1482
|
+
readonly refreshUseUntilMillis?: number;
|
|
1483
1483
|
readonly obtainedAtMillis: number;
|
|
1484
1484
|
readonly profile?: {
|
|
1485
|
-
readonly displayName?: string
|
|
1486
|
-
readonly handle?: string
|
|
1487
|
-
readonly avatarUrl?: string
|
|
1488
|
-
readonly profileUrl?: string
|
|
1489
|
-
readonly email?: string
|
|
1490
|
-
readonly emailVerified?: boolean
|
|
1485
|
+
readonly displayName?: string;
|
|
1486
|
+
readonly handle?: string;
|
|
1487
|
+
readonly avatarUrl?: string;
|
|
1488
|
+
readonly profileUrl?: string;
|
|
1489
|
+
readonly email?: string;
|
|
1490
|
+
readonly emailVerified?: boolean;
|
|
1491
1491
|
readonly providerData?: {
|
|
1492
1492
|
readonly [x: string]: import("effect/Schema").Json;
|
|
1493
|
-
}
|
|
1494
|
-
}
|
|
1493
|
+
};
|
|
1494
|
+
};
|
|
1495
1495
|
};
|
|
1496
1496
|
};
|
|
1497
1497
|
readonly sealed?: {
|
|
@@ -1499,7 +1499,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1499
1499
|
readonly keyId: string;
|
|
1500
1500
|
readonly nonce: string;
|
|
1501
1501
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1502
|
-
}
|
|
1502
|
+
};
|
|
1503
1503
|
};
|
|
1504
1504
|
readonly revision: {
|
|
1505
1505
|
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
@@ -1528,14 +1528,14 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1528
1528
|
readonly retentionUntilMillis: number;
|
|
1529
1529
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
1530
1530
|
readonly _tag: "Rejected";
|
|
1531
|
+
} | {
|
|
1532
|
+
readonly _tag: "Conflict";
|
|
1531
1533
|
} | {
|
|
1532
1534
|
readonly _tag: "Disconnected";
|
|
1533
1535
|
readonly grantId: string & import("effect/Brand").Brand<"effect-auth/OAuthGrantId">;
|
|
1534
1536
|
readonly remoteRevocation: "Confirmed" | "Pending" | "Unknown" | "Unsupported";
|
|
1535
1537
|
readonly affectedGrantCount: number;
|
|
1536
1538
|
readonly replayed: boolean;
|
|
1537
|
-
} | {
|
|
1538
|
-
readonly _tag: "Conflict";
|
|
1539
1539
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
|
|
1540
1540
|
readonly inspectAccess: (input: {
|
|
1541
1541
|
readonly authorization: import("@yielded/auth/OAuth").OAuthConnectedUseAuthorization;
|
|
@@ -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
|
} | {
|
|
@@ -1576,7 +1578,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1576
1578
|
readonly resources: readonly string[];
|
|
1577
1579
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1578
1580
|
readonly maximumAccessLifetimeMillis: number;
|
|
1579
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1581
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1580
1582
|
readonly refreshAheadMillis: number;
|
|
1581
1583
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1582
1584
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1589,22 +1591,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1589
1591
|
readonly metadata: {
|
|
1590
1592
|
readonly scopes: readonly string[];
|
|
1591
1593
|
readonly resources: readonly string[];
|
|
1592
|
-
readonly accessExpiresAtMillis?: number
|
|
1593
|
-
readonly refreshExpiresAtMillis?: number
|
|
1594
|
+
readonly accessExpiresAtMillis?: number;
|
|
1595
|
+
readonly refreshExpiresAtMillis?: number;
|
|
1594
1596
|
readonly useUntilMillis: number;
|
|
1595
|
-
readonly refreshUseUntilMillis?: number
|
|
1597
|
+
readonly refreshUseUntilMillis?: number;
|
|
1596
1598
|
readonly obtainedAtMillis: number;
|
|
1597
1599
|
readonly profile?: {
|
|
1598
|
-
readonly displayName?: string
|
|
1599
|
-
readonly handle?: string
|
|
1600
|
-
readonly avatarUrl?: string
|
|
1601
|
-
readonly profileUrl?: string
|
|
1602
|
-
readonly email?: string
|
|
1603
|
-
readonly emailVerified?: boolean
|
|
1600
|
+
readonly displayName?: string;
|
|
1601
|
+
readonly handle?: string;
|
|
1602
|
+
readonly avatarUrl?: string;
|
|
1603
|
+
readonly profileUrl?: string;
|
|
1604
|
+
readonly email?: string;
|
|
1605
|
+
readonly emailVerified?: boolean;
|
|
1604
1606
|
readonly providerData?: {
|
|
1605
1607
|
readonly [x: string]: import("effect/Schema").Json;
|
|
1606
|
-
}
|
|
1607
|
-
}
|
|
1608
|
+
};
|
|
1609
|
+
};
|
|
1608
1610
|
};
|
|
1609
1611
|
};
|
|
1610
1612
|
readonly sealed: {
|
|
@@ -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: {
|
|
@@ -1661,7 +1661,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1661
1661
|
readonly resources: readonly string[];
|
|
1662
1662
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1663
1663
|
readonly maximumAccessLifetimeMillis: number;
|
|
1664
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1664
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1665
1665
|
readonly refreshAheadMillis: number;
|
|
1666
1666
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1667
1667
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1674,22 +1674,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1674
1674
|
readonly metadata: {
|
|
1675
1675
|
readonly scopes: readonly string[];
|
|
1676
1676
|
readonly resources: readonly string[];
|
|
1677
|
-
readonly accessExpiresAtMillis?: number
|
|
1678
|
-
readonly refreshExpiresAtMillis?: number
|
|
1677
|
+
readonly accessExpiresAtMillis?: number;
|
|
1678
|
+
readonly refreshExpiresAtMillis?: number;
|
|
1679
1679
|
readonly useUntilMillis: number;
|
|
1680
|
-
readonly refreshUseUntilMillis?: number
|
|
1680
|
+
readonly refreshUseUntilMillis?: number;
|
|
1681
1681
|
readonly obtainedAtMillis: number;
|
|
1682
1682
|
readonly profile?: {
|
|
1683
|
-
readonly displayName?: string
|
|
1684
|
-
readonly handle?: string
|
|
1685
|
-
readonly avatarUrl?: string
|
|
1686
|
-
readonly profileUrl?: string
|
|
1687
|
-
readonly email?: string
|
|
1688
|
-
readonly emailVerified?: boolean
|
|
1683
|
+
readonly displayName?: string;
|
|
1684
|
+
readonly handle?: string;
|
|
1685
|
+
readonly avatarUrl?: string;
|
|
1686
|
+
readonly profileUrl?: string;
|
|
1687
|
+
readonly email?: string;
|
|
1688
|
+
readonly emailVerified?: boolean;
|
|
1689
1689
|
readonly providerData?: {
|
|
1690
1690
|
readonly [x: string]: import("effect/Schema").Json;
|
|
1691
|
-
}
|
|
1692
|
-
}
|
|
1691
|
+
};
|
|
1692
|
+
};
|
|
1693
1693
|
};
|
|
1694
1694
|
};
|
|
1695
1695
|
readonly sealed: {
|
|
@@ -1745,7 +1745,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1745
1745
|
readonly resources: readonly string[];
|
|
1746
1746
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1747
1747
|
readonly maximumAccessLifetimeMillis: number;
|
|
1748
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1748
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1749
1749
|
readonly refreshAheadMillis: number;
|
|
1750
1750
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1751
1751
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1758,22 +1758,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1758
1758
|
readonly metadata: {
|
|
1759
1759
|
readonly scopes: readonly string[];
|
|
1760
1760
|
readonly resources: readonly string[];
|
|
1761
|
-
readonly accessExpiresAtMillis?: number
|
|
1762
|
-
readonly refreshExpiresAtMillis?: number
|
|
1761
|
+
readonly accessExpiresAtMillis?: number;
|
|
1762
|
+
readonly refreshExpiresAtMillis?: number;
|
|
1763
1763
|
readonly useUntilMillis: number;
|
|
1764
|
-
readonly refreshUseUntilMillis?: number
|
|
1764
|
+
readonly refreshUseUntilMillis?: number;
|
|
1765
1765
|
readonly obtainedAtMillis: number;
|
|
1766
1766
|
readonly profile?: {
|
|
1767
|
-
readonly displayName?: string
|
|
1768
|
-
readonly handle?: string
|
|
1769
|
-
readonly avatarUrl?: string
|
|
1770
|
-
readonly profileUrl?: string
|
|
1771
|
-
readonly email?: string
|
|
1772
|
-
readonly emailVerified?: boolean
|
|
1767
|
+
readonly displayName?: string;
|
|
1768
|
+
readonly handle?: string;
|
|
1769
|
+
readonly avatarUrl?: string;
|
|
1770
|
+
readonly profileUrl?: string;
|
|
1771
|
+
readonly email?: string;
|
|
1772
|
+
readonly emailVerified?: boolean;
|
|
1773
1773
|
readonly providerData?: {
|
|
1774
1774
|
readonly [x: string]: import("effect/Schema").Json;
|
|
1775
|
-
}
|
|
1776
|
-
}
|
|
1775
|
+
};
|
|
1776
|
+
};
|
|
1777
1777
|
};
|
|
1778
1778
|
};
|
|
1779
1779
|
readonly sealed: {
|
|
@@ -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";
|
|
@@ -1864,7 +1864,7 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1864
1864
|
readonly resources: readonly string[];
|
|
1865
1865
|
readonly retention: "access-and-refresh" | "access-only";
|
|
1866
1866
|
readonly maximumAccessLifetimeMillis: number;
|
|
1867
|
-
readonly maximumRefreshLifetimeMillis?: number
|
|
1867
|
+
readonly maximumRefreshLifetimeMillis?: number;
|
|
1868
1868
|
readonly refreshAheadMillis: number;
|
|
1869
1869
|
readonly refresh: "confidential" | "rotating" | "unsupported";
|
|
1870
1870
|
readonly revocation: "cohort" | "unsupported";
|
|
@@ -1877,22 +1877,22 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1877
1877
|
readonly metadata: {
|
|
1878
1878
|
readonly scopes: readonly string[];
|
|
1879
1879
|
readonly resources: readonly string[];
|
|
1880
|
-
readonly accessExpiresAtMillis?: number
|
|
1881
|
-
readonly refreshExpiresAtMillis?: number
|
|
1880
|
+
readonly accessExpiresAtMillis?: number;
|
|
1881
|
+
readonly refreshExpiresAtMillis?: number;
|
|
1882
1882
|
readonly useUntilMillis: number;
|
|
1883
|
-
readonly refreshUseUntilMillis?: number
|
|
1883
|
+
readonly refreshUseUntilMillis?: number;
|
|
1884
1884
|
readonly obtainedAtMillis: number;
|
|
1885
1885
|
readonly profile?: {
|
|
1886
|
-
readonly displayName?: string
|
|
1887
|
-
readonly handle?: string
|
|
1888
|
-
readonly avatarUrl?: string
|
|
1889
|
-
readonly profileUrl?: string
|
|
1890
|
-
readonly email?: string
|
|
1891
|
-
readonly emailVerified?: boolean
|
|
1886
|
+
readonly displayName?: string;
|
|
1887
|
+
readonly handle?: string;
|
|
1888
|
+
readonly avatarUrl?: string;
|
|
1889
|
+
readonly profileUrl?: string;
|
|
1890
|
+
readonly email?: string;
|
|
1891
|
+
readonly emailVerified?: boolean;
|
|
1892
1892
|
readonly providerData?: {
|
|
1893
1893
|
readonly [x: string]: import("effect/Schema").Json;
|
|
1894
|
-
}
|
|
1895
|
-
}
|
|
1894
|
+
};
|
|
1895
|
+
};
|
|
1896
1896
|
};
|
|
1897
1897
|
};
|
|
1898
1898
|
};
|
|
@@ -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>;
|