@cipherstash/stack 0.7.0 → 0.9.0

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.
Files changed (56) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +33 -3
  3. package/dist/bin/stash.js +419 -204
  4. package/dist/bin/stash.js.map +1 -1
  5. package/dist/{chunk-URZNWMOO.js → chunk-3BOJHROP.js} +3 -3
  6. package/dist/{chunk-H7IHWDZI.js → chunk-4C52Q5R6.js} +2 -2
  7. package/dist/{chunk-Y35W4WFN.js → chunk-Y3KSTOVR.js} +35 -4
  8. package/dist/chunk-Y3KSTOVR.js.map +1 -0
  9. package/dist/{client-DQMy1ux5.d.cts → client-CV7X5Hrt.d.cts} +1 -1
  10. package/dist/{client-zxrOpegN.d.ts → client-_63nbmO7.d.ts} +1 -1
  11. package/dist/client.cjs +14 -3
  12. package/dist/client.cjs.map +1 -1
  13. package/dist/client.d.cts +2 -2
  14. package/dist/client.d.ts +2 -2
  15. package/dist/client.js +1 -1
  16. package/dist/drizzle/index.cjs +14 -3
  17. package/dist/drizzle/index.cjs.map +1 -1
  18. package/dist/drizzle/index.d.cts +2 -2
  19. package/dist/drizzle/index.d.ts +2 -2
  20. package/dist/drizzle/index.js +1 -1
  21. package/dist/dynamodb/index.d.cts +2 -2
  22. package/dist/dynamodb/index.d.ts +2 -2
  23. package/dist/encryption/index.cjs +11 -0
  24. package/dist/encryption/index.cjs.map +1 -1
  25. package/dist/encryption/index.d.cts +2 -2
  26. package/dist/encryption/index.d.ts +2 -2
  27. package/dist/encryption/index.js +2 -2
  28. package/dist/index.cjs +14 -3
  29. package/dist/index.cjs.map +1 -1
  30. package/dist/index.d.cts +3 -3
  31. package/dist/index.d.ts +3 -3
  32. package/dist/index.js +3 -3
  33. package/dist/schema/index.cjs +38 -5
  34. package/dist/schema/index.cjs.map +1 -1
  35. package/dist/schema/index.d.cts +1 -1
  36. package/dist/schema/index.d.ts +1 -1
  37. package/dist/schema/index.js +7 -3
  38. package/dist/secrets/index.cjs +14 -3
  39. package/dist/secrets/index.cjs.map +1 -1
  40. package/dist/secrets/index.d.cts +1 -1
  41. package/dist/secrets/index.d.ts +1 -1
  42. package/dist/secrets/index.js +3 -3
  43. package/dist/supabase/index.cjs +28 -5
  44. package/dist/supabase/index.cjs.map +1 -1
  45. package/dist/supabase/index.d.cts +2 -2
  46. package/dist/supabase/index.d.ts +2 -2
  47. package/dist/supabase/index.js +17 -5
  48. package/dist/supabase/index.js.map +1 -1
  49. package/dist/{types-public-07ilcGY-.d.ts → types-public-B5YxQhR6.d.cts} +25 -9
  50. package/dist/{types-public-07ilcGY-.d.cts → types-public-B5YxQhR6.d.ts} +25 -9
  51. package/dist/types-public.d.cts +1 -1
  52. package/dist/types-public.d.ts +1 -1
  53. package/package.json +1 -1
  54. package/dist/chunk-Y35W4WFN.js.map +0 -1
  55. /package/dist/{chunk-URZNWMOO.js.map → chunk-3BOJHROP.js.map} +0 -0
  56. /package/dist/{chunk-H7IHWDZI.js.map → chunk-4C52Q5R6.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
2
2
  import { PgTable, PgCustomColumn } from 'drizzle-orm/pg-core';
3
- import { c as EncryptedTable, f as EncryptedColumn, C as CastAs, M as MatchIndexOpts, T as TokenFilter } from '../types-public-07ilcGY-.cjs';
4
- import { a as EncryptionClient } from '../client-DQMy1ux5.cjs';
3
+ import { c as EncryptedTable, f as EncryptedColumn, C as CastAs, M as MatchIndexOpts, T as TokenFilter } from '../types-public-B5YxQhR6.cjs';
4
+ import { a as EncryptionClient } from '../client-CV7X5Hrt.cjs';
5
5
  import { SQLWrapper, SQL, exists, notExists, isNull, isNotNull, not, arrayContains, arrayContained, arrayOverlaps } from 'drizzle-orm';
6
6
  import 'zod';
7
7
  import '@cipherstash/protect-ffi';
@@ -1,7 +1,7 @@
1
1
  import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
2
2
  import { PgTable, PgCustomColumn } from 'drizzle-orm/pg-core';
3
- import { c as EncryptedTable, f as EncryptedColumn, C as CastAs, M as MatchIndexOpts, T as TokenFilter } from '../types-public-07ilcGY-.js';
4
- import { a as EncryptionClient } from '../client-zxrOpegN.js';
3
+ import { c as EncryptedTable, f as EncryptedColumn, C as CastAs, M as MatchIndexOpts, T as TokenFilter } from '../types-public-B5YxQhR6.js';
4
+ import { a as EncryptionClient } from '../client-_63nbmO7.js';
5
5
  import { SQLWrapper, SQL, exists, notExists, isNull, isNotNull, not, arrayContains, arrayContained, arrayOverlaps } from 'drizzle-orm';
6
6
  import 'zod';
7
7
  import '@cipherstash/protect-ffi';
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  encryptedColumn,
3
3
  encryptedTable
4
- } from "../chunk-Y35W4WFN.js";
4
+ } from "../chunk-Y3KSTOVR.js";
5
5
  import {
6
6
  queryTypes
7
7
  } from "../chunk-HCL75LXQ.js";
@@ -1,5 +1,5 @@
1
- import { a as EncryptionClient } from '../client-DQMy1ux5.cjs';
2
- import { D as Decrypted, g as EncryptedValue, c as EncryptedTable, d as EncryptedTableColumn } from '../types-public-07ilcGY-.cjs';
1
+ import { a as EncryptionClient } from '../client-CV7X5Hrt.cjs';
2
+ import { D as Decrypted, g as EncryptedValue, c as EncryptedTable, d as EncryptedTableColumn } from '../types-public-B5YxQhR6.cjs';
3
3
  import { ProtectErrorCode } from '@cipherstash/protect-ffi';
4
4
  import { Result } from '@byteslice/result';
5
5
  import '../errors/index.cjs';
@@ -1,5 +1,5 @@
1
- import { a as EncryptionClient } from '../client-zxrOpegN.js';
2
- import { D as Decrypted, g as EncryptedValue, c as EncryptedTable, d as EncryptedTableColumn } from '../types-public-07ilcGY-.js';
1
+ import { a as EncryptionClient } from '../client-_63nbmO7.js';
2
+ import { D as Decrypted, g as EncryptedValue, c as EncryptedTable, d as EncryptedTableColumn } from '../types-public-B5YxQhR6.js';
3
3
  import { ProtectErrorCode } from '@cipherstash/protect-ffi';
4
4
  import { Result } from '@byteslice/result';
5
5
  import '../errors/index.js';
@@ -47,6 +47,17 @@ var EncryptionErrorTypes = {
47
47
 
48
48
  // src/schema/index.ts
49
49
  var import_zod = require("zod");
50
+ var eqlCastAsEnum = import_zod.z.enum([
51
+ "text",
52
+ "int",
53
+ "small_int",
54
+ "big_int",
55
+ "real",
56
+ "double",
57
+ "boolean",
58
+ "date",
59
+ "jsonb"
60
+ ]).default("text");
50
61
  var castAsEnum = import_zod.z.enum(["bigint", "boolean", "date", "number", "string", "json", "text"]).default("text");
51
62
  var tokenFilterSchema = import_zod.z.object({
52
63
  kind: import_zod.z.literal("downcase")