@yielded/auth-persistence-drizzle 0.1.0-beta.19 → 0.1.0-beta.21

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 CHANGED
@@ -82,8 +82,6 @@ export declare const makeOAuthConnectedServices: <S extends AnySQLiteTable<{
82
82
  readonly _tag: "Ambiguous";
83
83
  } | {
84
84
  readonly _tag: "Cancelled";
85
- } | {
86
- readonly _tag: "Conflict";
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>;
@@ -542,8 +542,6 @@ export declare const makeOAuthConnectedServices: <S extends AnySQLiteTable<{
542
542
  readonly _tag: "Ambiguous";
543
543
  } | {
544
544
  readonly _tag: "Cancelled";
545
- } | {
546
- readonly _tag: "Conflict";
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/Mysql2.d.mts CHANGED
@@ -201,10 +201,12 @@ export declare const makeOAuthAccountsServices: <S extends AnyMySqlTable<{
201
201
  readonly nowMillis: number;
202
202
  }, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
203
203
  readonly _tag: "Rejected";
204
+ } | {
205
+ readonly _tag: "Cancelled";
204
206
  } | {
205
207
  readonly _tag: "Ambiguous";
206
208
  } | {
207
- readonly _tag: "Cancelled";
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">;
@@ -574,12 +574,10 @@ export declare const makeOAuthAccountsServices: <S extends AnyMySqlTable<{
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: "Ambiguous";
579
577
  } | {
580
578
  readonly _tag: "Cancelled";
581
579
  } | {
582
- readonly _tag: "Conflict";
580
+ readonly _tag: "Ambiguous";
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>;
@@ -1034,12 +1034,10 @@ export declare const makeOAuthAccountsServices: <S extends AnyMySqlTable<{
1034
1034
  readonly nowMillis: number;
1035
1035
  }, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
1036
1036
  readonly _tag: "Rejected";
1037
- } | {
1038
- readonly _tag: "Ambiguous";
1039
1037
  } | {
1040
1038
  readonly _tag: "Cancelled";
1041
1039
  } | {
1042
- readonly _tag: "Conflict";
1040
+ readonly _tag: "Ambiguous";
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>;
@@ -1262,8 +1262,6 @@ export declare const makeOAuthAccountsServices: <S extends AnyMySqlTable<{
1262
1262
  readonly profileKey: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
1263
1263
  }) => import("effect/Effect").Effect<{
1264
1264
  readonly _tag: "Rejected";
1265
- } | {
1266
- readonly _tag: "ReauthorizationRequired";
1267
1265
  } | {
1268
1266
  readonly _tag: "Busy";
1269
1267
  } | {
@@ -1335,6 +1333,8 @@ export declare const makeOAuthAccountsServices: <S extends AnyMySqlTable<{
1335
1333
  readonly ciphertext: import("effect/Redacted").Redacted<string>;
1336
1334
  };
1337
1335
  };
1336
+ } | {
1337
+ readonly _tag: "ReauthorizationRequired";
1338
1338
  }, import("@yielded/auth/OAuth").OAuthUnavailable>;
1339
1339
  readonly claimRefresh: <A>(input: {
1340
1340
  readonly grant: import("@yielded/auth/OAuth").OAuthConnectedStoredGrant;
@@ -1344,10 +1344,10 @@ export declare const makeOAuthAccountsServices: <S extends AnyMySqlTable<{
1344
1344
  readonly lifetimeMillis: number;
1345
1345
  }, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
1346
1346
  readonly _tag: "Rejected";
1347
- } | {
1348
- readonly _tag: "ReauthorizationRequired";
1349
1347
  } | {
1350
1348
  readonly _tag: "Busy";
1349
+ } | {
1350
+ readonly _tag: "ReauthorizationRequired";
1351
1351
  } | {
1352
1352
  readonly _tag: "Claimed";
1353
1353
  readonly claim: {
@@ -1510,10 +1510,10 @@ export declare const makeOAuthAccountsServices: <S extends AnyMySqlTable<{
1510
1510
  readonly lifetimeMillis: number;
1511
1511
  }, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
1512
1512
  readonly _tag: "Rejected";
1513
- } | {
1514
- readonly _tag: "ReauthorizationRequired";
1515
1513
  } | {
1516
1514
  readonly _tag: "Busy";
1515
+ } | {
1516
+ readonly _tag: "ReauthorizationRequired";
1517
1517
  } | {
1518
1518
  readonly _tag: "Admitted";
1519
1519
  readonly admissionId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
package/dist/Pglite.d.mts CHANGED
@@ -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: "Cancelled";
204
206
  } | {
205
207
  readonly _tag: "Ambiguous";
206
208
  } | {
207
- readonly _tag: "Cancelled";
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: "Ambiguous";
579
577
  } | {
580
578
  readonly _tag: "Cancelled";
581
579
  } | {
582
- readonly _tag: "Conflict";
580
+ readonly _tag: "Ambiguous";
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: "Ambiguous";
1039
1037
  } | {
1040
1038
  readonly _tag: "Cancelled";
1041
1039
  } | {
1042
- readonly _tag: "Conflict";
1040
+ readonly _tag: "Ambiguous";
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>;
@@ -1262,8 +1262,6 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
1262
1262
  readonly profileKey: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
1263
1263
  }) => Effect.Effect<{
1264
1264
  readonly _tag: "Rejected";
1265
- } | {
1266
- readonly _tag: "ReauthorizationRequired";
1267
1265
  } | {
1268
1266
  readonly _tag: "Busy";
1269
1267
  } | {
@@ -1335,6 +1333,8 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
1335
1333
  readonly ciphertext: import("effect/Redacted").Redacted<string>;
1336
1334
  };
1337
1335
  };
1336
+ } | {
1337
+ readonly _tag: "ReauthorizationRequired";
1338
1338
  }, import("@yielded/auth/OAuth").OAuthUnavailable>;
1339
1339
  readonly claimRefresh: <A>(input: {
1340
1340
  readonly grant: import("@yielded/auth/OAuth").OAuthConnectedStoredGrant;
@@ -1344,10 +1344,10 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
1344
1344
  readonly lifetimeMillis: number;
1345
1345
  }, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
1346
1346
  readonly _tag: "Rejected";
1347
- } | {
1348
- readonly _tag: "ReauthorizationRequired";
1349
1347
  } | {
1350
1348
  readonly _tag: "Busy";
1349
+ } | {
1350
+ readonly _tag: "ReauthorizationRequired";
1351
1351
  } | {
1352
1352
  readonly _tag: "Claimed";
1353
1353
  readonly claim: {
@@ -1510,10 +1510,10 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
1510
1510
  readonly lifetimeMillis: number;
1511
1511
  }, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
1512
1512
  readonly _tag: "Rejected";
1513
- } | {
1514
- readonly _tag: "ReauthorizationRequired";
1515
1513
  } | {
1516
1514
  readonly _tag: "Busy";
1515
+ } | {
1516
+ readonly _tag: "ReauthorizationRequired";
1517
1517
  } | {
1518
1518
  readonly _tag: "Admitted";
1519
1519
  readonly admissionId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
@@ -482,10 +482,12 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
482
482
  readonly nowMillis: number;
483
483
  }, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
484
484
  readonly _tag: "Rejected";
485
+ } | {
486
+ readonly _tag: "Cancelled";
485
487
  } | {
486
488
  readonly _tag: "Ambiguous";
487
489
  } | {
488
- readonly _tag: "Cancelled";
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">;
@@ -855,12 +855,10 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
855
855
  readonly outcome: import("@yielded/auth/OAuth").OAuthSignInAccessOutcome;
856
856
  }, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
857
857
  readonly _tag: "Rejected";
858
- } | {
859
- readonly _tag: "Ambiguous";
860
858
  } | {
861
859
  readonly _tag: "Cancelled";
862
860
  } | {
863
- readonly _tag: "Conflict";
861
+ readonly _tag: "Ambiguous";
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>;
@@ -1315,12 +1315,10 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
1315
1315
  readonly nowMillis: number;
1316
1316
  }, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
1317
1317
  readonly _tag: "Rejected";
1318
- } | {
1319
- readonly _tag: "Ambiguous";
1320
1318
  } | {
1321
1319
  readonly _tag: "Cancelled";
1322
1320
  } | {
1323
- readonly _tag: "Conflict";
1321
+ readonly _tag: "Ambiguous";
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">;
@@ -487,6 +487,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
487
487
  readonly _tag: "Ambiguous";
488
488
  } | {
489
489
  readonly _tag: "Cancelled";
490
+ } | {
491
+ readonly _tag: "Conflict";
490
492
  } | {
491
493
  readonly _tag: "Linked";
492
494
  readonly credential: {
@@ -508,8 +510,6 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
508
510
  };
509
511
  };
510
512
  readonly changed: boolean;
511
- } | {
512
- readonly _tag: "Conflict";
513
513
  }, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
514
514
  readonly inspectUnlink: (input: {
515
515
  readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
@@ -860,8 +860,6 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
860
860
  readonly _tag: "Ambiguous";
861
861
  } | {
862
862
  readonly _tag: "Cancelled";
863
- } | {
864
- readonly _tag: "Conflict";
865
863
  } | {
866
864
  readonly _tag: "Connected";
867
865
  readonly grant: {
@@ -931,6 +929,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
931
929
  readonly ciphertext: import("effect/Redacted").Redacted<string>;
932
930
  };
933
931
  };
932
+ } | {
933
+ readonly _tag: "Conflict";
934
934
  } | {
935
935
  readonly _tag: "Busy";
936
936
  }, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
@@ -1320,8 +1320,6 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
1320
1320
  readonly _tag: "Ambiguous";
1321
1321
  } | {
1322
1322
  readonly _tag: "Cancelled";
1323
- } | {
1324
- readonly _tag: "Conflict";
1325
1323
  } | {
1326
1324
  readonly _tag: "Connected";
1327
1325
  readonly grant: {
@@ -1391,6 +1389,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
1391
1389
  readonly ciphertext: import("effect/Redacted").Redacted<string>;
1392
1390
  };
1393
1391
  };
1392
+ } | {
1393
+ readonly _tag: "Conflict";
1394
1394
  } | {
1395
1395
  readonly _tag: "Busy";
1396
1396
  }, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
@@ -482,10 +482,10 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
482
482
  readonly nowMillis: number;
483
483
  }, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
484
484
  readonly _tag: "Rejected";
485
- } | {
486
- readonly _tag: "Ambiguous";
487
485
  } | {
488
486
  readonly _tag: "Cancelled";
487
+ } | {
488
+ readonly _tag: "Ambiguous";
489
489
  } | {
490
490
  readonly _tag: "Conflict";
491
491
  } | {
@@ -855,10 +855,10 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
855
855
  readonly outcome: import("@yielded/auth/OAuth").OAuthSignInAccessOutcome;
856
856
  }, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
857
857
  readonly _tag: "Rejected";
858
- } | {
859
- readonly _tag: "Ambiguous";
860
858
  } | {
861
859
  readonly _tag: "Cancelled";
860
+ } | {
861
+ readonly _tag: "Ambiguous";
862
862
  } | {
863
863
  readonly _tag: "Connected";
864
864
  readonly grant: {
@@ -1315,10 +1315,10 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
1315
1315
  readonly nowMillis: number;
1316
1316
  }, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
1317
1317
  readonly _tag: "Rejected";
1318
- } | {
1319
- readonly _tag: "Ambiguous";
1320
1318
  } | {
1321
1319
  readonly _tag: "Cancelled";
1320
+ } | {
1321
+ readonly _tag: "Ambiguous";
1322
1322
  } | {
1323
1323
  readonly _tag: "Connected";
1324
1324
  readonly grant: {
@@ -486,6 +486,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
486
486
  readonly _tag: "Ambiguous";
487
487
  } | {
488
488
  readonly _tag: "Cancelled";
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: "Ambiguous";
860
860
  } | {
861
861
  readonly _tag: "Cancelled";
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: "Ambiguous";
1320
1320
  } | {
1321
1321
  readonly _tag: "Cancelled";
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>;
@@ -167,6 +167,8 @@ export declare const makeD1OAuthAccountsServices: <S extends SQLiteTable, O exte
167
167
  readonly _tag: "Ambiguous";
168
168
  } | {
169
169
  readonly _tag: "Cancelled";
170
+ } | {
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.19","dependencies":{"@yielded/auth":"0.1.0-beta.19","@yielded/auth-persistence":"0.1.0-beta.19"},"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","@yielded/crypto":"0.1.0-beta.19","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}}}
1
+ {"name":"@yielded/auth-persistence-drizzle","version":"0.1.0-beta.21","dependencies":{"@yielded/auth":"0.1.0-beta.21","@yielded/auth-persistence":"0.1.0-beta.21"},"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","@yielded/crypto":"0.1.0-beta.21","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}}}