@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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @cipherstash/stack
2
2
 
3
+ ## 0.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 1be8f81: Exposed a public method on the Encryption client to expose the build Encryption schema.
8
+
9
+ ## 0.6.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 0b9fd7a: Add notes to CLI about init in prototype phase.
14
+
3
15
  ## 0.5.0
4
16
 
5
17
  ### Minor Changes
package/dist/bin/stash.js CHANGED
@@ -1448,7 +1448,10 @@ function resolveProvider(flags) {
1448
1448
  }
1449
1449
  async function initCommand(flags) {
1450
1450
  const provider = resolveProvider(flags);
1451
- Ie(`CipherStash Stack Setup`);
1451
+ Ie("CipherStash Stack Setup");
1452
+ M2.warn(
1453
+ "This command is a prototype and a sneak peek at what's next. It doesn't perform any actual setup yet."
1454
+ );
1452
1455
  M2.info(provider.introMessage);
1453
1456
  let state = {};
1454
1457
  try {
@@ -4258,6 +4261,14 @@ var EncryptionClient = class {
4258
4261
  workspaceId: this.workspaceId
4259
4262
  };
4260
4263
  }
4264
+ /**
4265
+ * Get the encrypt config object.
4266
+ *
4267
+ * @returns The encrypt config object.
4268
+ */
4269
+ getEncryptConfig() {
4270
+ return this.encryptConfig;
4271
+ }
4261
4272
  };
4262
4273
  var Encryption = async (config3) => {
4263
4274
  const { schemas, config: clientConfig } = config3;
@@ -4646,13 +4657,11 @@ function getConfig(environment) {
4646
4657
  const workspaceCRN = process.env.CS_WORKSPACE_CRN;
4647
4658
  const clientId = process.env.CS_CLIENT_ID;
4648
4659
  const clientKey = process.env.CS_CLIENT_KEY;
4649
- const apiKey = process.env.CS_CLIENT_ACCESS_KEY;
4650
4660
  const accessKey = process.env.CS_ACCESS_KEY;
4651
4661
  const missing = [];
4652
4662
  if (!workspaceCRN) missing.push("CS_WORKSPACE_CRN");
4653
4663
  if (!clientId) missing.push("CS_CLIENT_ID");
4654
4664
  if (!clientKey) missing.push("CS_CLIENT_KEY");
4655
- if (!apiKey) missing.push("CS_CLIENT_ACCESS_KEY");
4656
4665
  if (missing.length > 0) {
4657
4666
  console.error(
4658
4667
  style.error(
@@ -4668,14 +4677,13 @@ ${style.info("Please set the following environment variables:")}`
4668
4677
  }
4669
4678
  process.exit(1);
4670
4679
  }
4671
- if (!workspaceCRN || !clientId || !clientKey || !apiKey) {
4680
+ if (!workspaceCRN || !clientId || !clientKey || !accessKey) {
4672
4681
  throw new Error("Missing required configuration");
4673
4682
  }
4674
4683
  return {
4675
4684
  workspaceCRN,
4676
4685
  clientId,
4677
4686
  clientKey,
4678
- apiKey,
4679
4687
  accessKey,
4680
4688
  environment
4681
4689
  };