@yielded/auth-persistence-drizzle 0.1.0-beta.20 → 0.1.0-beta.22
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 +6 -6
- package/dist/Mysql2.d.mts +13 -13
- package/dist/Pglite.d.mts +13 -13
- package/dist/Postgres.d.mts +6 -6
- package/dist/SqliteBun.d.mts +13 -13
- package/dist/SqliteDo.d.mts +9 -9
- package/dist/SqliteNode.d.mts +6 -6
- package/dist/SqliteWasm.d.mts +9 -9
- package/dist/drizzle/d1-oauth.d.mts +3 -3
- package/dist/drizzle/oauth-connected-target.d.mts +4 -4
- 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: "Ambiguous";
|
|
83
81
|
} | {
|
|
84
82
|
readonly _tag: "Cancelled";
|
|
85
83
|
} | {
|
|
86
|
-
readonly _tag: "
|
|
84
|
+
readonly _tag: "Ambiguous";
|
|
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: "Ambiguous";
|
|
543
541
|
} | {
|
|
544
542
|
readonly _tag: "Cancelled";
|
|
545
543
|
} | {
|
|
546
|
-
readonly _tag: "
|
|
544
|
+
readonly _tag: "Ambiguous";
|
|
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
|
@@ -486,10 +486,10 @@ 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: "Cancelled";
|
|
491
489
|
} | {
|
|
492
490
|
readonly _tag: "Ambiguous";
|
|
491
|
+
} | {
|
|
492
|
+
readonly _tag: "Cancelled";
|
|
493
493
|
} | {
|
|
494
494
|
readonly _tag: "Linked";
|
|
495
495
|
readonly credential: {
|
|
@@ -859,10 +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";
|
|
864
|
+
} | {
|
|
865
|
+
readonly _tag: "Cancelled";
|
|
866
866
|
} | {
|
|
867
867
|
readonly _tag: "Conflict";
|
|
868
868
|
} | {
|
|
@@ -1319,10 +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";
|
|
1324
|
+
} | {
|
|
1325
|
+
readonly _tag: "Cancelled";
|
|
1326
1326
|
} | {
|
|
1327
1327
|
readonly _tag: "Conflict";
|
|
1328
1328
|
} | {
|
package/dist/Mysql2.d.mts
CHANGED
|
@@ -200,13 +200,11 @@ export declare const makeOAuthAccountsServices: <S extends AnyMySqlTable<{
|
|
|
200
200
|
readonly invalidation: import("@yielded/auth/Sessions").SessionInvalidationWindow;
|
|
201
201
|
readonly nowMillis: number;
|
|
202
202
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
203
|
-
readonly _tag: "Cancelled";
|
|
204
|
-
} | {
|
|
205
203
|
readonly _tag: "Rejected";
|
|
206
204
|
} | {
|
|
207
205
|
readonly _tag: "Ambiguous";
|
|
208
206
|
} | {
|
|
209
|
-
readonly _tag: "
|
|
207
|
+
readonly _tag: "Cancelled";
|
|
210
208
|
} | {
|
|
211
209
|
readonly _tag: "Linked";
|
|
212
210
|
readonly credential: {
|
|
@@ -228,6 +226,8 @@ export declare const makeOAuthAccountsServices: <S extends AnyMySqlTable<{
|
|
|
228
226
|
};
|
|
229
227
|
};
|
|
230
228
|
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">;
|
|
@@ -573,11 +573,11 @@ export declare const makeOAuthAccountsServices: <S extends AnyMySqlTable<{
|
|
|
573
573
|
readonly reservation: import("@yielded/auth/OAuth").OAuthSignInAccessClaim;
|
|
574
574
|
readonly outcome: import("@yielded/auth/OAuth").OAuthSignInAccessOutcome;
|
|
575
575
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
576
|
-
readonly _tag: "Cancelled";
|
|
577
|
-
} | {
|
|
578
576
|
readonly _tag: "Rejected";
|
|
579
577
|
} | {
|
|
580
578
|
readonly _tag: "Ambiguous";
|
|
579
|
+
} | {
|
|
580
|
+
readonly _tag: "Cancelled";
|
|
581
581
|
} | {
|
|
582
582
|
readonly _tag: "Conflict";
|
|
583
583
|
} | {
|
|
@@ -1033,11 +1033,11 @@ export declare const makeOAuthAccountsServices: <S extends AnyMySqlTable<{
|
|
|
1033
1033
|
readonly authorization: import("@yielded/auth/OAuth").OAuthConnectedActionAuthorization;
|
|
1034
1034
|
readonly nowMillis: number;
|
|
1035
1035
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
1036
|
-
readonly _tag: "Cancelled";
|
|
1037
|
-
} | {
|
|
1038
1036
|
readonly _tag: "Rejected";
|
|
1039
1037
|
} | {
|
|
1040
1038
|
readonly _tag: "Ambiguous";
|
|
1039
|
+
} | {
|
|
1040
|
+
readonly _tag: "Cancelled";
|
|
1041
1041
|
} | {
|
|
1042
1042
|
readonly _tag: "Conflict";
|
|
1043
1043
|
} | {
|
|
@@ -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
|
@@ -200,13 +200,11 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
200
200
|
readonly invalidation: import("@yielded/auth/Sessions").SessionInvalidationWindow;
|
|
201
201
|
readonly nowMillis: number;
|
|
202
202
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
203
|
-
readonly _tag: "Cancelled";
|
|
204
|
-
} | {
|
|
205
203
|
readonly _tag: "Rejected";
|
|
206
204
|
} | {
|
|
207
205
|
readonly _tag: "Ambiguous";
|
|
208
206
|
} | {
|
|
209
|
-
readonly _tag: "
|
|
207
|
+
readonly _tag: "Cancelled";
|
|
210
208
|
} | {
|
|
211
209
|
readonly _tag: "Linked";
|
|
212
210
|
readonly credential: {
|
|
@@ -228,6 +226,8 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
228
226
|
};
|
|
229
227
|
};
|
|
230
228
|
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">;
|
|
@@ -573,11 +573,11 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
573
573
|
readonly reservation: import("@yielded/auth/OAuth").OAuthSignInAccessClaim;
|
|
574
574
|
readonly outcome: import("@yielded/auth/OAuth").OAuthSignInAccessOutcome;
|
|
575
575
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
576
|
-
readonly _tag: "Cancelled";
|
|
577
|
-
} | {
|
|
578
576
|
readonly _tag: "Rejected";
|
|
579
577
|
} | {
|
|
580
578
|
readonly _tag: "Ambiguous";
|
|
579
|
+
} | {
|
|
580
|
+
readonly _tag: "Cancelled";
|
|
581
581
|
} | {
|
|
582
582
|
readonly _tag: "Conflict";
|
|
583
583
|
} | {
|
|
@@ -1033,11 +1033,11 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
1033
1033
|
readonly authorization: import("@yielded/auth/OAuth").OAuthConnectedActionAuthorization;
|
|
1034
1034
|
readonly nowMillis: number;
|
|
1035
1035
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
1036
|
-
readonly _tag: "Cancelled";
|
|
1037
|
-
} | {
|
|
1038
1036
|
readonly _tag: "Rejected";
|
|
1039
1037
|
} | {
|
|
1040
1038
|
readonly _tag: "Ambiguous";
|
|
1039
|
+
} | {
|
|
1040
|
+
readonly _tag: "Cancelled";
|
|
1041
1041
|
} | {
|
|
1042
1042
|
readonly _tag: "Conflict";
|
|
1043
1043
|
} | {
|
|
@@ -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">;
|
package/dist/Postgres.d.mts
CHANGED
|
@@ -201,10 +201,10 @@ 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";
|
|
206
204
|
} | {
|
|
207
205
|
readonly _tag: "Ambiguous";
|
|
206
|
+
} | {
|
|
207
|
+
readonly _tag: "Cancelled";
|
|
208
208
|
} | {
|
|
209
209
|
readonly _tag: "Linked";
|
|
210
210
|
readonly credential: {
|
|
@@ -574,10 +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";
|
|
579
|
+
} | {
|
|
580
|
+
readonly _tag: "Cancelled";
|
|
581
581
|
} | {
|
|
582
582
|
readonly _tag: "Conflict";
|
|
583
583
|
} | {
|
|
@@ -1034,10 +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";
|
|
1039
|
+
} | {
|
|
1040
|
+
readonly _tag: "Cancelled";
|
|
1041
1041
|
} | {
|
|
1042
1042
|
readonly _tag: "Conflict";
|
|
1043
1043
|
} | {
|
package/dist/SqliteBun.d.mts
CHANGED
|
@@ -481,13 +481,11 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
481
481
|
readonly invalidation: import("@yielded/auth/Sessions").SessionInvalidationWindow;
|
|
482
482
|
readonly nowMillis: number;
|
|
483
483
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
484
|
-
readonly _tag: "Cancelled";
|
|
485
|
-
} | {
|
|
486
484
|
readonly _tag: "Rejected";
|
|
487
485
|
} | {
|
|
488
486
|
readonly _tag: "Ambiguous";
|
|
489
487
|
} | {
|
|
490
|
-
readonly _tag: "
|
|
488
|
+
readonly _tag: "Cancelled";
|
|
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">;
|
|
@@ -854,11 +854,11 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
854
854
|
readonly reservation: import("@yielded/auth/OAuth").OAuthSignInAccessClaim;
|
|
855
855
|
readonly outcome: import("@yielded/auth/OAuth").OAuthSignInAccessOutcome;
|
|
856
856
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
857
|
-
readonly _tag: "Cancelled";
|
|
858
|
-
} | {
|
|
859
857
|
readonly _tag: "Rejected";
|
|
860
858
|
} | {
|
|
861
859
|
readonly _tag: "Ambiguous";
|
|
860
|
+
} | {
|
|
861
|
+
readonly _tag: "Cancelled";
|
|
862
862
|
} | {
|
|
863
863
|
readonly _tag: "Conflict";
|
|
864
864
|
} | {
|
|
@@ -1314,11 +1314,11 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1314
1314
|
readonly authorization: import("@yielded/auth/OAuth").OAuthConnectedActionAuthorization;
|
|
1315
1315
|
readonly nowMillis: number;
|
|
1316
1316
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
1317
|
-
readonly _tag: "Cancelled";
|
|
1318
|
-
} | {
|
|
1319
1317
|
readonly _tag: "Rejected";
|
|
1320
1318
|
} | {
|
|
1321
1319
|
readonly _tag: "Ambiguous";
|
|
1320
|
+
} | {
|
|
1321
|
+
readonly _tag: "Cancelled";
|
|
1322
1322
|
} | {
|
|
1323
1323
|
readonly _tag: "Conflict";
|
|
1324
1324
|
} | {
|
|
@@ -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">;
|
package/dist/SqliteDo.d.mts
CHANGED
|
@@ -483,10 +483,12 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
483
483
|
readonly nowMillis: number;
|
|
484
484
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
485
485
|
readonly _tag: "Rejected";
|
|
486
|
+
} | {
|
|
487
|
+
readonly _tag: "Cancelled";
|
|
486
488
|
} | {
|
|
487
489
|
readonly _tag: "Ambiguous";
|
|
488
490
|
} | {
|
|
489
|
-
readonly _tag: "
|
|
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">;
|
|
@@ -856,12 +856,10 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
856
856
|
readonly outcome: import("@yielded/auth/OAuth").OAuthSignInAccessOutcome;
|
|
857
857
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
858
858
|
readonly _tag: "Rejected";
|
|
859
|
-
} | {
|
|
860
|
-
readonly _tag: "Ambiguous";
|
|
861
859
|
} | {
|
|
862
860
|
readonly _tag: "Cancelled";
|
|
863
861
|
} | {
|
|
864
|
-
readonly _tag: "
|
|
862
|
+
readonly _tag: "Ambiguous";
|
|
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>;
|
|
@@ -1316,12 +1316,10 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
|
|
|
1316
1316
|
readonly nowMillis: number;
|
|
1317
1317
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
1318
1318
|
readonly _tag: "Rejected";
|
|
1319
|
-
} | {
|
|
1320
|
-
readonly _tag: "Ambiguous";
|
|
1321
1319
|
} | {
|
|
1322
1320
|
readonly _tag: "Cancelled";
|
|
1323
1321
|
} | {
|
|
1324
|
-
readonly _tag: "
|
|
1322
|
+
readonly _tag: "Ambiguous";
|
|
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>;
|
package/dist/SqliteNode.d.mts
CHANGED
|
@@ -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: "Cancelled";
|
|
487
485
|
} | {
|
|
488
486
|
readonly _tag: "Ambiguous";
|
|
487
|
+
} | {
|
|
488
|
+
readonly _tag: "Cancelled";
|
|
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: "Cancelled";
|
|
860
858
|
} | {
|
|
861
859
|
readonly _tag: "Ambiguous";
|
|
860
|
+
} | {
|
|
861
|
+
readonly _tag: "Cancelled";
|
|
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: "Cancelled";
|
|
1320
1318
|
} | {
|
|
1321
1319
|
readonly _tag: "Ambiguous";
|
|
1320
|
+
} | {
|
|
1321
|
+
readonly _tag: "Cancelled";
|
|
1322
1322
|
} | {
|
|
1323
1323
|
readonly _tag: "Connected";
|
|
1324
1324
|
readonly grant: {
|
package/dist/SqliteWasm.d.mts
CHANGED
|
@@ -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: "
|
|
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: "
|
|
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: "
|
|
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>;
|
|
@@ -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: "Cancelled";
|
|
166
168
|
} | {
|
|
167
169
|
readonly _tag: "Ambiguous";
|
|
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">;
|
|
@@ -21,10 +21,10 @@ export declare const makeTargetOAuthConnectedServices: (mapping: Mapping, config
|
|
|
21
21
|
readonly outcome: M.OAuthSignInAccessOutcome;
|
|
22
22
|
}, prepare: PrepareOAuthCommit<{
|
|
23
23
|
readonly _tag: "Rejected";
|
|
24
|
-
} | {
|
|
25
|
-
readonly _tag: "Cancelled";
|
|
26
24
|
} | {
|
|
27
25
|
readonly _tag: "Ambiguous";
|
|
26
|
+
} | {
|
|
27
|
+
readonly _tag: "Cancelled";
|
|
28
28
|
} | {
|
|
29
29
|
readonly _tag: "Conflict";
|
|
30
30
|
} | {
|
|
@@ -477,10 +477,10 @@ export declare const makeTargetOAuthConnectedServices: (mapping: Mapping, config
|
|
|
477
477
|
readonly nowMillis: number;
|
|
478
478
|
}, prepare: PrepareOAuthCommit<{
|
|
479
479
|
readonly _tag: "Rejected";
|
|
480
|
-
} | {
|
|
481
|
-
readonly _tag: "Cancelled";
|
|
482
480
|
} | {
|
|
483
481
|
readonly _tag: "Ambiguous";
|
|
482
|
+
} | {
|
|
483
|
+
readonly _tag: "Cancelled";
|
|
484
484
|
} | {
|
|
485
485
|
readonly _tag: "Conflict";
|
|
486
486
|
} | {
|
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.22","dependencies":{"@yielded/auth":"0.1.0-beta.22","@yielded/auth-persistence":"0.1.0-beta.22"},"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.22","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}}}
|