@yielded/auth-persistence-drizzle 0.1.0-beta.15 → 0.1.0-beta.16
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/dist/D1.d.mts +6 -6
- package/dist/Libsql.d.mts +11 -11
- package/dist/Mysql2.d.mts +6 -6
- package/dist/Pglite.d.mts +6 -6
- package/dist/Postgres.d.mts +11 -11
- package/dist/SqliteBun.d.mts +6 -6
- package/dist/SqliteDo.d.mts +10 -10
- package/dist/SqliteWasm.d.mts +10 -10
- package/dist/drizzle/d1-oauth.d.mts +5 -5
- package/package.json +1 -1
package/dist/D1.d.mts
CHANGED
|
@@ -78,12 +78,10 @@ export declare const makeOAuthConnectedServices: <S extends AnySQLiteTable<{
|
|
|
78
78
|
readonly outcome: import("@yielded/auth/OAuth").OAuthSignInAccessOutcome;
|
|
79
79
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
80
80
|
readonly _tag: "Rejected";
|
|
81
|
-
} | {
|
|
82
|
-
readonly _tag: "Cancelled";
|
|
83
81
|
} | {
|
|
84
82
|
readonly _tag: "Ambiguous";
|
|
85
83
|
} | {
|
|
86
|
-
readonly _tag: "
|
|
84
|
+
readonly _tag: "Cancelled";
|
|
87
85
|
} | {
|
|
88
86
|
readonly _tag: "Connected";
|
|
89
87
|
readonly grant: {
|
|
@@ -153,6 +151,8 @@ export declare const makeOAuthConnectedServices: <S extends AnySQLiteTable<{
|
|
|
153
151
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
154
152
|
};
|
|
155
153
|
};
|
|
154
|
+
} | {
|
|
155
|
+
readonly _tag: "Conflict";
|
|
156
156
|
} | {
|
|
157
157
|
readonly _tag: "Busy";
|
|
158
158
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
|
|
@@ -538,12 +538,10 @@ export declare const makeOAuthConnectedServices: <S extends AnySQLiteTable<{
|
|
|
538
538
|
readonly nowMillis: number;
|
|
539
539
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
540
540
|
readonly _tag: "Rejected";
|
|
541
|
-
} | {
|
|
542
|
-
readonly _tag: "Cancelled";
|
|
543
541
|
} | {
|
|
544
542
|
readonly _tag: "Ambiguous";
|
|
545
543
|
} | {
|
|
546
|
-
readonly _tag: "
|
|
544
|
+
readonly _tag: "Cancelled";
|
|
547
545
|
} | {
|
|
548
546
|
readonly _tag: "Connected";
|
|
549
547
|
readonly grant: {
|
|
@@ -613,6 +611,8 @@ export declare const makeOAuthConnectedServices: <S extends AnySQLiteTable<{
|
|
|
613
611
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
614
612
|
};
|
|
615
613
|
};
|
|
614
|
+
} | {
|
|
615
|
+
readonly _tag: "Conflict";
|
|
616
616
|
} | {
|
|
617
617
|
readonly _tag: "Busy";
|
|
618
618
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
|
package/dist/Libsql.d.mts
CHANGED
|
@@ -350,6 +350,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
350
350
|
readonly flow: import("@yielded/auth/OAuth").OAuthLinkPendingFlow;
|
|
351
351
|
readonly authorization: import("@yielded/auth/OAuth").OAuthActionAuthorization;
|
|
352
352
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
353
|
+
readonly _tag: "Rejected";
|
|
354
|
+
} | {
|
|
353
355
|
readonly _tag: "Issued";
|
|
354
356
|
readonly flow: {
|
|
355
357
|
readonly context: {
|
|
@@ -405,8 +407,6 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
405
407
|
};
|
|
406
408
|
readonly retentionUntilMillis: number;
|
|
407
409
|
};
|
|
408
|
-
} | {
|
|
409
|
-
readonly _tag: "Rejected";
|
|
410
410
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
411
411
|
readonly preflight: (input: import("@yielded/auth/OAuth").OAuthLinkAccess) => Effect.Effect<import("@yielded/auth/OAuth").OAuthLinkPendingFlow | undefined, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
412
412
|
readonly claim: <A>(input: {
|
|
@@ -486,10 +486,12 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
486
486
|
readonly nowMillis: number;
|
|
487
487
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
488
488
|
readonly _tag: "Rejected";
|
|
489
|
+
} | {
|
|
490
|
+
readonly _tag: "Ambiguous";
|
|
489
491
|
} | {
|
|
490
492
|
readonly _tag: "Cancelled";
|
|
491
493
|
} | {
|
|
492
|
-
readonly _tag: "
|
|
494
|
+
readonly _tag: "Conflict";
|
|
493
495
|
} | {
|
|
494
496
|
readonly _tag: "Linked";
|
|
495
497
|
readonly credential: {
|
|
@@ -511,8 +513,6 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
511
513
|
};
|
|
512
514
|
};
|
|
513
515
|
readonly changed: boolean;
|
|
514
|
-
} | {
|
|
515
|
-
readonly _tag: "Conflict";
|
|
516
516
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
517
517
|
readonly inspectUnlink: (input: {
|
|
518
518
|
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
@@ -859,12 +859,10 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
859
859
|
readonly outcome: import("@yielded/auth/OAuth").OAuthSignInAccessOutcome;
|
|
860
860
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
861
861
|
readonly _tag: "Rejected";
|
|
862
|
-
} | {
|
|
863
|
-
readonly _tag: "Cancelled";
|
|
864
862
|
} | {
|
|
865
863
|
readonly _tag: "Ambiguous";
|
|
866
864
|
} | {
|
|
867
|
-
readonly _tag: "
|
|
865
|
+
readonly _tag: "Cancelled";
|
|
868
866
|
} | {
|
|
869
867
|
readonly _tag: "Connected";
|
|
870
868
|
readonly grant: {
|
|
@@ -934,6 +932,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
934
932
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
935
933
|
};
|
|
936
934
|
};
|
|
935
|
+
} | {
|
|
936
|
+
readonly _tag: "Conflict";
|
|
937
937
|
} | {
|
|
938
938
|
readonly _tag: "Busy";
|
|
939
939
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
|
|
@@ -1319,12 +1319,10 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1319
1319
|
readonly nowMillis: number;
|
|
1320
1320
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
1321
1321
|
readonly _tag: "Rejected";
|
|
1322
|
-
} | {
|
|
1323
|
-
readonly _tag: "Cancelled";
|
|
1324
1322
|
} | {
|
|
1325
1323
|
readonly _tag: "Ambiguous";
|
|
1326
1324
|
} | {
|
|
1327
|
-
readonly _tag: "
|
|
1325
|
+
readonly _tag: "Cancelled";
|
|
1328
1326
|
} | {
|
|
1329
1327
|
readonly _tag: "Connected";
|
|
1330
1328
|
readonly grant: {
|
|
@@ -1394,6 +1392,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1394
1392
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1395
1393
|
};
|
|
1396
1394
|
};
|
|
1395
|
+
} | {
|
|
1396
|
+
readonly _tag: "Conflict";
|
|
1397
1397
|
} | {
|
|
1398
1398
|
readonly _tag: "Busy";
|
|
1399
1399
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
|
package/dist/Mysql2.d.mts
CHANGED
|
@@ -205,6 +205,8 @@ export declare const makeOAuthAccountsServices: <S extends AnyMySqlTable<{
|
|
|
205
205
|
readonly _tag: "Cancelled";
|
|
206
206
|
} | {
|
|
207
207
|
readonly _tag: "Ambiguous";
|
|
208
|
+
} | {
|
|
209
|
+
readonly _tag: "Conflict";
|
|
208
210
|
} | {
|
|
209
211
|
readonly _tag: "Linked";
|
|
210
212
|
readonly credential: {
|
|
@@ -226,8 +228,6 @@ export declare const makeOAuthAccountsServices: <S extends AnyMySqlTable<{
|
|
|
226
228
|
};
|
|
227
229
|
};
|
|
228
230
|
readonly changed: boolean;
|
|
229
|
-
} | {
|
|
230
|
-
readonly _tag: "Conflict";
|
|
231
231
|
}, A>) => import("effect/Effect").Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
232
232
|
readonly inspectUnlink: (input: {
|
|
233
233
|
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
@@ -578,8 +578,6 @@ export declare const makeOAuthAccountsServices: <S extends AnyMySqlTable<{
|
|
|
578
578
|
readonly _tag: "Cancelled";
|
|
579
579
|
} | {
|
|
580
580
|
readonly _tag: "Ambiguous";
|
|
581
|
-
} | {
|
|
582
|
-
readonly _tag: "Conflict";
|
|
583
581
|
} | {
|
|
584
582
|
readonly _tag: "Connected";
|
|
585
583
|
readonly grant: {
|
|
@@ -649,6 +647,8 @@ export declare const makeOAuthAccountsServices: <S extends AnyMySqlTable<{
|
|
|
649
647
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
650
648
|
};
|
|
651
649
|
};
|
|
650
|
+
} | {
|
|
651
|
+
readonly _tag: "Conflict";
|
|
652
652
|
} | {
|
|
653
653
|
readonly _tag: "Busy";
|
|
654
654
|
}, A>) => import("effect/Effect").Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
|
|
@@ -1038,8 +1038,6 @@ export declare const makeOAuthAccountsServices: <S extends AnyMySqlTable<{
|
|
|
1038
1038
|
readonly _tag: "Cancelled";
|
|
1039
1039
|
} | {
|
|
1040
1040
|
readonly _tag: "Ambiguous";
|
|
1041
|
-
} | {
|
|
1042
|
-
readonly _tag: "Conflict";
|
|
1043
1041
|
} | {
|
|
1044
1042
|
readonly _tag: "Connected";
|
|
1045
1043
|
readonly grant: {
|
|
@@ -1109,6 +1107,8 @@ export declare const makeOAuthAccountsServices: <S extends AnyMySqlTable<{
|
|
|
1109
1107
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1110
1108
|
};
|
|
1111
1109
|
};
|
|
1110
|
+
} | {
|
|
1111
|
+
readonly _tag: "Conflict";
|
|
1112
1112
|
} | {
|
|
1113
1113
|
readonly _tag: "Busy";
|
|
1114
1114
|
}, A>) => import("effect/Effect").Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
|
package/dist/Pglite.d.mts
CHANGED
|
@@ -205,6 +205,8 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
205
205
|
readonly _tag: "Cancelled";
|
|
206
206
|
} | {
|
|
207
207
|
readonly _tag: "Ambiguous";
|
|
208
|
+
} | {
|
|
209
|
+
readonly _tag: "Conflict";
|
|
208
210
|
} | {
|
|
209
211
|
readonly _tag: "Linked";
|
|
210
212
|
readonly credential: {
|
|
@@ -226,8 +228,6 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
226
228
|
};
|
|
227
229
|
};
|
|
228
230
|
readonly changed: boolean;
|
|
229
|
-
} | {
|
|
230
|
-
readonly _tag: "Conflict";
|
|
231
231
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
232
232
|
readonly inspectUnlink: (input: {
|
|
233
233
|
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
@@ -578,8 +578,6 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
578
578
|
readonly _tag: "Cancelled";
|
|
579
579
|
} | {
|
|
580
580
|
readonly _tag: "Ambiguous";
|
|
581
|
-
} | {
|
|
582
|
-
readonly _tag: "Conflict";
|
|
583
581
|
} | {
|
|
584
582
|
readonly _tag: "Connected";
|
|
585
583
|
readonly grant: {
|
|
@@ -649,6 +647,8 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
649
647
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
650
648
|
};
|
|
651
649
|
};
|
|
650
|
+
} | {
|
|
651
|
+
readonly _tag: "Conflict";
|
|
652
652
|
} | {
|
|
653
653
|
readonly _tag: "Busy";
|
|
654
654
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
|
|
@@ -1038,8 +1038,6 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
1038
1038
|
readonly _tag: "Cancelled";
|
|
1039
1039
|
} | {
|
|
1040
1040
|
readonly _tag: "Ambiguous";
|
|
1041
|
-
} | {
|
|
1042
|
-
readonly _tag: "Conflict";
|
|
1043
1041
|
} | {
|
|
1044
1042
|
readonly _tag: "Connected";
|
|
1045
1043
|
readonly grant: {
|
|
@@ -1109,6 +1107,8 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
1109
1107
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1110
1108
|
};
|
|
1111
1109
|
};
|
|
1110
|
+
} | {
|
|
1111
|
+
readonly _tag: "Conflict";
|
|
1112
1112
|
} | {
|
|
1113
1113
|
readonly _tag: "Busy";
|
|
1114
1114
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
|
package/dist/Postgres.d.mts
CHANGED
|
@@ -65,6 +65,8 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
65
65
|
readonly flow: import("@yielded/auth/OAuth").OAuthLinkPendingFlow;
|
|
66
66
|
readonly authorization: import("@yielded/auth/OAuth").OAuthActionAuthorization;
|
|
67
67
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
68
|
+
readonly _tag: "Rejected";
|
|
69
|
+
} | {
|
|
68
70
|
readonly _tag: "Issued";
|
|
69
71
|
readonly flow: {
|
|
70
72
|
readonly context: {
|
|
@@ -120,8 +122,6 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
120
122
|
};
|
|
121
123
|
readonly retentionUntilMillis: number;
|
|
122
124
|
};
|
|
123
|
-
} | {
|
|
124
|
-
readonly _tag: "Rejected";
|
|
125
125
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
126
126
|
readonly preflight: (input: import("@yielded/auth/OAuth").OAuthLinkAccess) => Effect.Effect<import("@yielded/auth/OAuth").OAuthLinkPendingFlow | undefined, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
127
127
|
readonly claim: <A>(input: {
|
|
@@ -201,10 +201,12 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
201
201
|
readonly nowMillis: number;
|
|
202
202
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
203
203
|
readonly _tag: "Rejected";
|
|
204
|
+
} | {
|
|
205
|
+
readonly _tag: "Ambiguous";
|
|
204
206
|
} | {
|
|
205
207
|
readonly _tag: "Cancelled";
|
|
206
208
|
} | {
|
|
207
|
-
readonly _tag: "
|
|
209
|
+
readonly _tag: "Conflict";
|
|
208
210
|
} | {
|
|
209
211
|
readonly _tag: "Linked";
|
|
210
212
|
readonly credential: {
|
|
@@ -226,8 +228,6 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
226
228
|
};
|
|
227
229
|
};
|
|
228
230
|
readonly changed: boolean;
|
|
229
|
-
} | {
|
|
230
|
-
readonly _tag: "Conflict";
|
|
231
231
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
232
232
|
readonly inspectUnlink: (input: {
|
|
233
233
|
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
@@ -574,12 +574,10 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
574
574
|
readonly outcome: import("@yielded/auth/OAuth").OAuthSignInAccessOutcome;
|
|
575
575
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
576
576
|
readonly _tag: "Rejected";
|
|
577
|
-
} | {
|
|
578
|
-
readonly _tag: "Cancelled";
|
|
579
577
|
} | {
|
|
580
578
|
readonly _tag: "Ambiguous";
|
|
581
579
|
} | {
|
|
582
|
-
readonly _tag: "
|
|
580
|
+
readonly _tag: "Cancelled";
|
|
583
581
|
} | {
|
|
584
582
|
readonly _tag: "Connected";
|
|
585
583
|
readonly grant: {
|
|
@@ -649,6 +647,8 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
649
647
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
650
648
|
};
|
|
651
649
|
};
|
|
650
|
+
} | {
|
|
651
|
+
readonly _tag: "Conflict";
|
|
652
652
|
} | {
|
|
653
653
|
readonly _tag: "Busy";
|
|
654
654
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
|
|
@@ -1034,12 +1034,10 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
1034
1034
|
readonly nowMillis: number;
|
|
1035
1035
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
1036
1036
|
readonly _tag: "Rejected";
|
|
1037
|
-
} | {
|
|
1038
|
-
readonly _tag: "Cancelled";
|
|
1039
1037
|
} | {
|
|
1040
1038
|
readonly _tag: "Ambiguous";
|
|
1041
1039
|
} | {
|
|
1042
|
-
readonly _tag: "
|
|
1040
|
+
readonly _tag: "Cancelled";
|
|
1043
1041
|
} | {
|
|
1044
1042
|
readonly _tag: "Connected";
|
|
1045
1043
|
readonly grant: {
|
|
@@ -1109,6 +1107,8 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
1109
1107
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1110
1108
|
};
|
|
1111
1109
|
};
|
|
1110
|
+
} | {
|
|
1111
|
+
readonly _tag: "Conflict";
|
|
1112
1112
|
} | {
|
|
1113
1113
|
readonly _tag: "Busy";
|
|
1114
1114
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
|
package/dist/SqliteBun.d.mts
CHANGED
|
@@ -486,6 +486,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
486
486
|
readonly _tag: "Cancelled";
|
|
487
487
|
} | {
|
|
488
488
|
readonly _tag: "Ambiguous";
|
|
489
|
+
} | {
|
|
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">;
|
|
@@ -859,8 +859,6 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
859
859
|
readonly _tag: "Cancelled";
|
|
860
860
|
} | {
|
|
861
861
|
readonly _tag: "Ambiguous";
|
|
862
|
-
} | {
|
|
863
|
-
readonly _tag: "Conflict";
|
|
864
862
|
} | {
|
|
865
863
|
readonly _tag: "Connected";
|
|
866
864
|
readonly grant: {
|
|
@@ -930,6 +928,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
930
928
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
931
929
|
};
|
|
932
930
|
};
|
|
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>;
|
|
@@ -1319,8 +1319,6 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1319
1319
|
readonly _tag: "Cancelled";
|
|
1320
1320
|
} | {
|
|
1321
1321
|
readonly _tag: "Ambiguous";
|
|
1322
|
-
} | {
|
|
1323
|
-
readonly _tag: "Conflict";
|
|
1324
1322
|
} | {
|
|
1325
1323
|
readonly _tag: "Connected";
|
|
1326
1324
|
readonly grant: {
|
|
@@ -1390,6 +1388,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1390
1388
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1391
1389
|
};
|
|
1392
1390
|
};
|
|
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>;
|
package/dist/SqliteDo.d.mts
CHANGED
|
@@ -882,8 +882,6 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
882
882
|
readonly _tag: "Cancelled";
|
|
883
883
|
} | {
|
|
884
884
|
readonly _tag: "Ambiguous";
|
|
885
|
-
} | {
|
|
886
|
-
readonly _tag: "Conflict";
|
|
887
885
|
} | {
|
|
888
886
|
readonly _tag: "Connected";
|
|
889
887
|
readonly grant: {
|
|
@@ -953,6 +951,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
953
951
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
954
952
|
};
|
|
955
953
|
};
|
|
954
|
+
} | {
|
|
955
|
+
readonly _tag: "Conflict";
|
|
956
956
|
} | {
|
|
957
957
|
readonly _tag: "Busy";
|
|
958
958
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
|
|
@@ -1342,8 +1342,6 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1342
1342
|
readonly _tag: "Cancelled";
|
|
1343
1343
|
} | {
|
|
1344
1344
|
readonly _tag: "Ambiguous";
|
|
1345
|
-
} | {
|
|
1346
|
-
readonly _tag: "Conflict";
|
|
1347
1345
|
} | {
|
|
1348
1346
|
readonly _tag: "Connected";
|
|
1349
1347
|
readonly grant: {
|
|
@@ -1413,6 +1411,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1413
1411
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1414
1412
|
};
|
|
1415
1413
|
};
|
|
1414
|
+
} | {
|
|
1415
|
+
readonly _tag: "Conflict";
|
|
1416
1416
|
} | {
|
|
1417
1417
|
readonly _tag: "Busy";
|
|
1418
1418
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
|
|
@@ -1566,8 +1566,6 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1566
1566
|
readonly profileKey: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
1567
1567
|
}) => Effect.Effect<{
|
|
1568
1568
|
readonly _tag: "Rejected";
|
|
1569
|
-
} | {
|
|
1570
|
-
readonly _tag: "ReauthorizationRequired";
|
|
1571
1569
|
} | {
|
|
1572
1570
|
readonly _tag: "Busy";
|
|
1573
1571
|
} | {
|
|
@@ -1639,6 +1637,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1639
1637
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1640
1638
|
};
|
|
1641
1639
|
};
|
|
1640
|
+
} | {
|
|
1641
|
+
readonly _tag: "ReauthorizationRequired";
|
|
1642
1642
|
}, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
1643
1643
|
readonly claimRefresh: <A>(input: {
|
|
1644
1644
|
readonly grant: import("@yielded/auth/OAuth").OAuthConnectedStoredGrant;
|
|
@@ -1648,10 +1648,10 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1648
1648
|
readonly lifetimeMillis: number;
|
|
1649
1649
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
1650
1650
|
readonly _tag: "Rejected";
|
|
1651
|
-
} | {
|
|
1652
|
-
readonly _tag: "ReauthorizationRequired";
|
|
1653
1651
|
} | {
|
|
1654
1652
|
readonly _tag: "Busy";
|
|
1653
|
+
} | {
|
|
1654
|
+
readonly _tag: "ReauthorizationRequired";
|
|
1655
1655
|
} | {
|
|
1656
1656
|
readonly _tag: "Claimed";
|
|
1657
1657
|
readonly claim: {
|
|
@@ -1814,10 +1814,10 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1814
1814
|
readonly lifetimeMillis: number;
|
|
1815
1815
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
1816
1816
|
readonly _tag: "Rejected";
|
|
1817
|
-
} | {
|
|
1818
|
-
readonly _tag: "ReauthorizationRequired";
|
|
1819
1817
|
} | {
|
|
1820
1818
|
readonly _tag: "Busy";
|
|
1819
|
+
} | {
|
|
1820
|
+
readonly _tag: "ReauthorizationRequired";
|
|
1821
1821
|
} | {
|
|
1822
1822
|
readonly _tag: "Admitted";
|
|
1823
1823
|
readonly admissionId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
|
package/dist/SqliteWasm.d.mts
CHANGED
|
@@ -859,8 +859,6 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
859
859
|
readonly _tag: "Cancelled";
|
|
860
860
|
} | {
|
|
861
861
|
readonly _tag: "Ambiguous";
|
|
862
|
-
} | {
|
|
863
|
-
readonly _tag: "Conflict";
|
|
864
862
|
} | {
|
|
865
863
|
readonly _tag: "Connected";
|
|
866
864
|
readonly grant: {
|
|
@@ -930,6 +928,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
930
928
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
931
929
|
};
|
|
932
930
|
};
|
|
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>;
|
|
@@ -1319,8 +1319,6 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1319
1319
|
readonly _tag: "Cancelled";
|
|
1320
1320
|
} | {
|
|
1321
1321
|
readonly _tag: "Ambiguous";
|
|
1322
|
-
} | {
|
|
1323
|
-
readonly _tag: "Conflict";
|
|
1324
1322
|
} | {
|
|
1325
1323
|
readonly _tag: "Connected";
|
|
1326
1324
|
readonly grant: {
|
|
@@ -1390,6 +1388,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1390
1388
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1391
1389
|
};
|
|
1392
1390
|
};
|
|
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>;
|
|
@@ -1543,8 +1543,6 @@ 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";
|
|
1548
1546
|
} | {
|
|
1549
1547
|
readonly _tag: "Busy";
|
|
1550
1548
|
} | {
|
|
@@ -1616,6 +1614,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1616
1614
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1617
1615
|
};
|
|
1618
1616
|
};
|
|
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: "ReauthorizationRequired";
|
|
1630
1628
|
} | {
|
|
1631
1629
|
readonly _tag: "Busy";
|
|
1630
|
+
} | {
|
|
1631
|
+
readonly _tag: "ReauthorizationRequired";
|
|
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: "ReauthorizationRequired";
|
|
1796
1794
|
} | {
|
|
1797
1795
|
readonly _tag: "Busy";
|
|
1796
|
+
} | {
|
|
1797
|
+
readonly _tag: "ReauthorizationRequired";
|
|
1798
1798
|
} | {
|
|
1799
1799
|
readonly _tag: "Admitted";
|
|
1800
1800
|
readonly admissionId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
|
|
@@ -27,6 +27,8 @@ export declare const makeD1OAuthAccountsServices: <S extends SQLiteTable, O exte
|
|
|
27
27
|
readonly flow: import("@yielded/auth/OAuth").OAuthLinkPendingFlow;
|
|
28
28
|
readonly authorization: import("@yielded/auth/OAuth").OAuthActionAuthorization;
|
|
29
29
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
30
|
+
readonly _tag: "Rejected";
|
|
31
|
+
} | {
|
|
30
32
|
readonly _tag: "Issued";
|
|
31
33
|
readonly flow: {
|
|
32
34
|
readonly context: {
|
|
@@ -82,8 +84,6 @@ export declare const makeD1OAuthAccountsServices: <S extends SQLiteTable, O exte
|
|
|
82
84
|
};
|
|
83
85
|
readonly retentionUntilMillis: number;
|
|
84
86
|
};
|
|
85
|
-
} | {
|
|
86
|
-
readonly _tag: "Rejected";
|
|
87
87
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, OAuthUnavailable>;
|
|
88
88
|
readonly preflight: (input: import("@yielded/auth/OAuth").OAuthLinkAccess) => Effect.Effect<import("@yielded/auth/OAuth").OAuthLinkPendingFlow | undefined, OAuthUnavailable>;
|
|
89
89
|
readonly claim: <A>(input: {
|
|
@@ -163,10 +163,12 @@ export declare const makeD1OAuthAccountsServices: <S extends SQLiteTable, O exte
|
|
|
163
163
|
readonly nowMillis: number;
|
|
164
164
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
165
165
|
readonly _tag: "Rejected";
|
|
166
|
+
} | {
|
|
167
|
+
readonly _tag: "Ambiguous";
|
|
166
168
|
} | {
|
|
167
169
|
readonly _tag: "Cancelled";
|
|
168
170
|
} | {
|
|
169
|
-
readonly _tag: "
|
|
171
|
+
readonly _tag: "Conflict";
|
|
170
172
|
} | {
|
|
171
173
|
readonly _tag: "Linked";
|
|
172
174
|
readonly credential: {
|
|
@@ -188,8 +190,6 @@ export declare const makeD1OAuthAccountsServices: <S extends SQLiteTable, O exte
|
|
|
188
190
|
};
|
|
189
191
|
};
|
|
190
192
|
readonly changed: boolean;
|
|
191
|
-
} | {
|
|
192
|
-
readonly _tag: "Conflict";
|
|
193
193
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, OAuthUnavailable>;
|
|
194
194
|
readonly inspectUnlink: (input: {
|
|
195
195
|
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@yielded/auth-persistence-drizzle","version":"0.1.0-beta.
|
|
1
|
+
{"name":"@yielded/auth-persistence-drizzle","version":"0.1.0-beta.16","dependencies":{"@noble/hashes":"2.3.0","@yielded/auth":"0.1.0-beta.16","@yielded/auth-crypto":"0.1.0-beta.16","@yielded/auth-persistence":"0.1.0-beta.16"},"devDependencies":{"@effect/platform-bun":"4.0.0","@effect/platform-node":"4.0.0","@effect/sql-d1":"4.0.0","@effect/sql-libsql":"4.0.0","@effect/sql-mysql2":"4.0.0","@effect/sql-pg":"4.0.0","@effect/sql-pglite":"4.0.0","@effect/sql-sqlite-bun":"4.0.0","@effect/sql-sqlite-do":"4.0.0","@effect/sql-sqlite-node":"4.0.0","@effect/sql-sqlite-wasm":"4.0.0","@effect/vitest":"4.0.0","drizzle-orm":"1.0.0-rc.4","effect":"4.0.0","typescript":"7.0.2","vite-plus":"0.3.3"},"peerDependencies":{"@effect/sql-d1":">=4.0.0","@effect/sql-libsql":">=4.0.0","@effect/sql-mysql2":">=4.0.0","@effect/sql-pg":">=4.0.0","@effect/sql-pglite":">=4.0.0","@effect/sql-sqlite-bun":">=4.0.0","@effect/sql-sqlite-do":">=4.0.0","@effect/sql-sqlite-node":">=4.0.0","@effect/sql-sqlite-wasm":">=4.0.0","drizzle-orm":">=1.0.0-rc.4","effect":"^4.0.0"},"exports":{".":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"./D1":{"types":"./dist/D1.d.mts","default":"./dist/D1.mjs"},"./Libsql":{"types":"./dist/Libsql.d.mts","default":"./dist/Libsql.mjs"},"./Mysql2":{"types":"./dist/Mysql2.d.mts","default":"./dist/Mysql2.mjs"},"./Pglite":{"types":"./dist/Pglite.d.mts","default":"./dist/Pglite.mjs"},"./Postgres":{"types":"./dist/Postgres.d.mts","default":"./dist/Postgres.mjs"},"./SqliteBun":{"types":"./dist/SqliteBun.d.mts","default":"./dist/SqliteBun.mjs"},"./SqliteDo":{"types":"./dist/SqliteDo.d.mts","default":"./dist/SqliteDo.mjs"},"./SqliteNode":{"types":"./dist/SqliteNode.d.mts","default":"./dist/SqliteNode.mjs"},"./SqliteWasm":{"types":"./dist/SqliteWasm.d.mts","default":"./dist/SqliteWasm.mjs"}},"description":"Drizzle persistence, table mappings, and migration adapters for Yielded Auth.","homepage":"https://yielded.dev/auth/","bugs":{"url":"https://github.com/yielded-dev/auth/issues"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/yielded-dev/auth.git","directory":"packages/auth-persistence-drizzle"},"files":["dist","src"],"type":"module","sideEffects":[],"publishConfig":{"access":"public"},"scripts":{"build":"vp pack","check":"tsc --noEmit -p tsconfig.json","test":"vp test --passWithNoTests","example:totp":"bun test/fixtures/totp-sqlite-bun.ts"},"peerDependenciesMeta":{"@effect/sql-d1":{"optional":true},"@effect/sql-libsql":{"optional":true},"@effect/sql-mysql2":{"optional":true},"@effect/sql-pg":{"optional":true},"@effect/sql-pglite":{"optional":true},"@effect/sql-sqlite-bun":{"optional":true},"@effect/sql-sqlite-do":{"optional":true},"@effect/sql-sqlite-node":{"optional":true},"@effect/sql-sqlite-wasm":{"optional":true}}}
|