@cipherstash/stack 0.5.0 → 0.7.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 (40) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/bin/stash.js +13 -5
  3. package/dist/bin/stash.js.map +1 -1
  4. package/dist/{chunk-TGUELLJS.js → chunk-H7IHWDZI.js} +9 -1
  5. package/dist/chunk-H7IHWDZI.js.map +1 -0
  6. package/dist/{chunk-YLISU7FD.js → chunk-URZNWMOO.js} +2 -2
  7. package/dist/{client-BVQvgvdY.d.cts → client-DQMy1ux5.d.cts} +7 -1
  8. package/dist/{client-BFrHTgC6.d.ts → client-zxrOpegN.d.ts} +7 -1
  9. package/dist/client.d.cts +2 -2
  10. package/dist/client.d.ts +2 -2
  11. package/dist/drizzle/index.d.cts +2 -2
  12. package/dist/drizzle/index.d.ts +2 -2
  13. package/dist/dynamodb/index.d.cts +2 -2
  14. package/dist/dynamodb/index.d.ts +2 -2
  15. package/dist/encryption/index.cjs +8 -0
  16. package/dist/encryption/index.cjs.map +1 -1
  17. package/dist/encryption/index.d.cts +2 -2
  18. package/dist/encryption/index.d.ts +2 -2
  19. package/dist/encryption/index.js +1 -1
  20. package/dist/index.cjs +8 -0
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.cts +3 -3
  23. package/dist/index.d.ts +3 -3
  24. package/dist/index.js +2 -2
  25. package/dist/schema/index.d.cts +1 -1
  26. package/dist/schema/index.d.ts +1 -1
  27. package/dist/secrets/index.cjs +8 -0
  28. package/dist/secrets/index.cjs.map +1 -1
  29. package/dist/secrets/index.d.cts +1 -1
  30. package/dist/secrets/index.d.ts +1 -1
  31. package/dist/secrets/index.js +2 -2
  32. package/dist/supabase/index.d.cts +2 -2
  33. package/dist/supabase/index.d.ts +2 -2
  34. package/dist/{types-public-dKxDzTIL.d.ts → types-public-07ilcGY-.d.cts} +1 -1
  35. package/dist/{types-public-dKxDzTIL.d.cts → types-public-07ilcGY-.d.ts} +1 -1
  36. package/dist/types-public.d.cts +1 -1
  37. package/dist/types-public.d.ts +1 -1
  38. package/package.json +1 -1
  39. package/dist/chunk-TGUELLJS.js.map +0 -1
  40. /package/dist/{chunk-YLISU7FD.js.map → chunk-URZNWMOO.js.map} +0 -0
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import { E as Encrypted } from './types-public-dKxDzTIL.cjs';
2
- export { a as encryptedColumn, b as encryptedField, e as encryptedTable } from './types-public-dKxDzTIL.cjs';
3
- export { E as Encryption } from './client-BVQvgvdY.cjs';
1
+ import { E as Encrypted } from './types-public-07ilcGY-.cjs';
2
+ export { e as encryptedColumn, a as encryptedField, b as encryptedTable } from './types-public-07ilcGY-.cjs';
3
+ export { E as Encryption } from './client-DQMy1ux5.cjs';
4
4
  export { Secrets } from './secrets/index.cjs';
5
5
  import 'zod';
6
6
  import '@cipherstash/protect-ffi';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { E as Encrypted } from './types-public-dKxDzTIL.js';
2
- export { a as encryptedColumn, b as encryptedField, e as encryptedTable } from './types-public-dKxDzTIL.js';
3
- export { E as Encryption } from './client-BFrHTgC6.js';
1
+ import { E as Encrypted } from './types-public-07ilcGY-.js';
2
+ export { e as encryptedColumn, a as encryptedField, b as encryptedTable } from './types-public-07ilcGY-.js';
3
+ export { E as Encryption } from './client-zxrOpegN.js';
4
4
  export { Secrets } from './secrets/index.js';
5
5
  import 'zod';
6
6
  import '@cipherstash/protect-ffi';
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Secrets
3
- } from "./chunk-YLISU7FD.js";
3
+ } from "./chunk-URZNWMOO.js";
4
4
  import {
5
5
  Encryption
6
- } from "./chunk-TGUELLJS.js";
6
+ } from "./chunk-H7IHWDZI.js";
7
7
  import {
8
8
  encryptedToPgComposite,
9
9
  isEncryptedPayload
@@ -1,3 +1,3 @@
1
- export { C as CastAs, x as ColumnSchema, q as EncryptConfig, f as EncryptedColumn, n as EncryptedField, c as EncryptedTable, d as EncryptedTableColumn, t as InferEncrypted, I as InferPlaintext, M as MatchIndexOpts, O as OreIndexOpts, w as SteVecIndexOpts, T as TokenFilter, U as UniqueIndexOpts, y as buildEncryptConfig, u as castAsEnum, v as encryptConfigSchema, a as encryptedColumn, b as encryptedField, e as encryptedTable } from '../types-public-dKxDzTIL.cjs';
1
+ export { C as CastAs, u as ColumnSchema, q as EncryptConfig, f as EncryptedColumn, n as EncryptedField, c as EncryptedTable, d as EncryptedTableColumn, I as InferEncrypted, t as InferPlaintext, M as MatchIndexOpts, O as OreIndexOpts, v as SteVecIndexOpts, T as TokenFilter, U as UniqueIndexOpts, w as buildEncryptConfig, x as castAsEnum, y as encryptConfigSchema, e as encryptedColumn, a as encryptedField, b as encryptedTable } from '../types-public-07ilcGY-.cjs';
2
2
  import 'zod';
3
3
  import '@cipherstash/protect-ffi';
@@ -1,3 +1,3 @@
1
- export { C as CastAs, x as ColumnSchema, q as EncryptConfig, f as EncryptedColumn, n as EncryptedField, c as EncryptedTable, d as EncryptedTableColumn, t as InferEncrypted, I as InferPlaintext, M as MatchIndexOpts, O as OreIndexOpts, w as SteVecIndexOpts, T as TokenFilter, U as UniqueIndexOpts, y as buildEncryptConfig, u as castAsEnum, v as encryptConfigSchema, a as encryptedColumn, b as encryptedField, e as encryptedTable } from '../types-public-dKxDzTIL.js';
1
+ export { C as CastAs, u as ColumnSchema, q as EncryptConfig, f as EncryptedColumn, n as EncryptedField, c as EncryptedTable, d as EncryptedTableColumn, I as InferEncrypted, t as InferPlaintext, M as MatchIndexOpts, O as OreIndexOpts, v as SteVecIndexOpts, T as TokenFilter, U as UniqueIndexOpts, w as buildEncryptConfig, x as castAsEnum, y as encryptConfigSchema, e as encryptedColumn, a as encryptedField, b as encryptedTable } from '../types-public-07ilcGY-.js';
2
2
  import 'zod';
3
3
  import '@cipherstash/protect-ffi';
@@ -2809,6 +2809,14 @@ var EncryptionClient = class {
2809
2809
  workspaceId: this.workspaceId
2810
2810
  };
2811
2811
  }
2812
+ /**
2813
+ * Get the encrypt config object.
2814
+ *
2815
+ * @returns The encrypt config object.
2816
+ */
2817
+ getEncryptConfig() {
2818
+ return this.encryptConfig;
2819
+ }
2812
2820
  };
2813
2821
  var Encryption = async (config) => {
2814
2822
  const { schemas, config: clientConfig } = config;