@yielded/auth-persistence-drizzle 0.1.0-beta.13 → 0.1.0-beta.14

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/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>;
@@ -920,12 +920,10 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
920
920
  readonly nowMillis: number;
921
921
  }, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
922
922
  readonly _tag: "Rejected";
923
- } | {
924
- readonly _tag: "Ambiguous";
925
923
  } | {
926
924
  readonly _tag: "Cancelled";
927
925
  } | {
928
- readonly _tag: "Conflict";
926
+ readonly _tag: "Ambiguous";
929
927
  } | {
930
928
  readonly _tag: "Connected";
931
929
  readonly grant: {
@@ -995,6 +993,8 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
995
993
  readonly ciphertext: import("effect/Redacted").Redacted<string>;
996
994
  };
997
995
  };
996
+ } | {
997
+ readonly _tag: "Conflict";
998
998
  } | {
999
999
  readonly _tag: "Busy";
1000
1000
  }, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
@@ -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>;
@@ -1201,12 +1201,10 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
1201
1201
  readonly nowMillis: number;
1202
1202
  }, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
1203
1203
  readonly _tag: "Rejected";
1204
- } | {
1205
- readonly _tag: "Ambiguous";
1206
1204
  } | {
1207
1205
  readonly _tag: "Cancelled";
1208
1206
  } | {
1209
- readonly _tag: "Conflict";
1207
+ readonly _tag: "Ambiguous";
1210
1208
  } | {
1211
1209
  readonly _tag: "Connected";
1212
1210
  readonly grant: {
@@ -1276,6 +1274,8 @@ export declare const makeOAuthAccountsServices: <S extends AnySQLiteTable<{
1276
1274
  readonly ciphertext: import("effect/Redacted").Redacted<string>;
1277
1275
  };
1278
1276
  };
1277
+ } | {
1278
+ readonly _tag: "Conflict";
1279
1279
  } | {
1280
1280
  readonly _tag: "Busy";
1281
1281
  }, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@yielded/auth-persistence-drizzle","version":"0.1.0-beta.13","dependencies":{"@noble/hashes":"2.3.0","@yielded/auth":"0.1.0-beta.13","@yielded/auth-crypto":"0.1.0-beta.13","@yielded/auth-persistence":"0.1.0-beta.13"},"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}}}
1
+ {"name":"@yielded/auth-persistence-drizzle","version":"0.1.0-beta.14","dependencies":{"@noble/hashes":"2.3.0","@yielded/auth":"0.1.0-beta.14","@yielded/auth-crypto":"0.1.0-beta.14","@yielded/auth-persistence":"0.1.0-beta.14"},"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}}}