@fragment-dev/cli 2026.10.1-8 → 2026.10.1

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 (74) hide show
  1. package/README.md +4 -16
  2. package/dist/{chunk-THGEB6PT.js → chunk-2DFNUYYB.js} +3 -3
  3. package/dist/{chunk-E7ZKZZP4.js → chunk-3QIKHVTA.js} +2 -2
  4. package/dist/{chunk-SU5G5HM2.js → chunk-4IMXVHLX.js} +2 -2
  5. package/dist/{chunk-NJSYUXAC.js → chunk-5JTGKU4S.js} +2 -2
  6. package/dist/{chunk-LDS5IWT5.js → chunk-5VGUS75G.js} +6 -6
  7. package/dist/{chunk-RML6NQHP.js → chunk-76JJLPFT.js} +1 -1
  8. package/dist/{chunk-DT372IG6.js → chunk-7LEHQFLL.js} +1 -1
  9. package/dist/{chunk-HK327LQP.js → chunk-B3OMOGVU.js} +3 -3
  10. package/dist/{chunk-JO6OQM5C.js → chunk-BMPSZNHE.js} +1 -1
  11. package/dist/{chunk-F4DGB2QI.js → chunk-C67WHN2H.js} +2 -2
  12. package/dist/{chunk-5NKCOZCW.js → chunk-D65TXRLZ.js} +2 -2
  13. package/dist/{chunk-XJ2TNWI7.js → chunk-DKAEBT2M.js} +0 -8
  14. package/dist/{chunk-KVBNKJBH.js → chunk-DURV4GOT.js} +2 -2
  15. package/dist/{chunk-WRUBCN4G.js → chunk-DVQMZBTY.js} +2 -2
  16. package/dist/{chunk-QGFJ5H4G.js → chunk-E4TL7SOK.js} +2 -2
  17. package/dist/{chunk-QBQANVTD.js → chunk-EIF4FTEI.js} +2 -2
  18. package/dist/{chunk-6PRTPBP7.js → chunk-F6IDBMXZ.js} +1 -1
  19. package/dist/{chunk-3IGRQ6LL.js → chunk-GZF5GHBV.js} +3 -3
  20. package/dist/{chunk-UJP55YSW.js → chunk-I65PNYBQ.js} +25 -25
  21. package/dist/{chunk-DYIB3NZM.js → chunk-I7HWZUNL.js} +12 -59
  22. package/dist/{chunk-2LDAYJQR.js → chunk-JMFDKBJW.js} +2 -2
  23. package/dist/{chunk-IQIFAKDJ.js → chunk-JV34IPXX.js} +3 -3
  24. package/dist/{chunk-V3NABYUX.js → chunk-JXIMFTTA.js} +2 -2
  25. package/dist/{chunk-Q3JFAZ3A.js → chunk-KP7MQPVO.js} +1 -1
  26. package/dist/{chunk-3IA6BI6A.js → chunk-LINOTI5E.js} +1 -1
  27. package/dist/{chunk-V4IQY3DF.js → chunk-MOBC7AAW.js} +1 -1
  28. package/dist/{chunk-3K6ERQYV.js → chunk-MUN6P2HN.js} +1 -1
  29. package/dist/{chunk-QZNZYG2G.js → chunk-PU52GTGB.js} +14 -24
  30. package/dist/{chunk-2QR6NGWG.js → chunk-Q62TGFNL.js} +1 -1
  31. package/dist/{chunk-M7BM6YC2.js → chunk-SWVXV42Y.js} +1 -1
  32. package/dist/{chunk-23KWDUJZ.js → chunk-T7PAZDQ2.js} +1 -7
  33. package/dist/{chunk-H3ZCVAW3.js → chunk-TXPR56T5.js} +1 -1
  34. package/dist/{chunk-5UOYY7GS.js → chunk-VZA2YKI6.js} +2 -2
  35. package/dist/{chunk-Q6ZKCAYH.js → chunk-WCXDVPWC.js} +2 -2
  36. package/dist/{chunk-PHWV3NOP.js → chunk-WUKDB7IX.js} +51 -162
  37. package/dist/{chunk-D45KVQKB.js → chunk-XUOVQRQH.js} +1 -1
  38. package/dist/commands/add-ledger-entry.js +4 -4
  39. package/dist/commands/api-client/create.js +3 -3
  40. package/dist/commands/create-custom-link.js +4 -4
  41. package/dist/commands/create-ledger.js +4 -4
  42. package/dist/commands/delete-custom-txs.js +4 -4
  43. package/dist/commands/delete-ledger.js +4 -4
  44. package/dist/commands/delete-schema.js +4 -4
  45. package/dist/commands/gen-graphql.js +8 -8
  46. package/dist/commands/get-schema.js +5 -5
  47. package/dist/commands/init.js +3 -3
  48. package/dist/commands/login.js +4 -4
  49. package/dist/commands/migrate-ledger-entry.js +4 -4
  50. package/dist/commands/query/ledgerAccounts.js +4 -4
  51. package/dist/commands/query/ledgers.js +4 -4
  52. package/dist/commands/query/schema.js +4 -4
  53. package/dist/commands/query/schemas.js +4 -4
  54. package/dist/commands/reverse-ledger-entry.js +4 -4
  55. package/dist/commands/start.js +3 -3
  56. package/dist/commands/store-schema.js +4 -4
  57. package/dist/commands/token.js +4 -4
  58. package/dist/commands/update-ledger-account.js +4 -4
  59. package/dist/commands/update.js +4 -4
  60. package/dist/commands/verify-schema.js +8 -9
  61. package/dist/commands/version.js +3 -3
  62. package/dist/commands/workspace.js +4 -4
  63. package/dist/commands.js +36 -37
  64. package/dist/graphql.js +3 -3
  65. package/dist/index.js +36 -37
  66. package/dist/lib/authenticatedCommand.js +3 -3
  67. package/dist/lib/baseCommand.js +2 -2
  68. package/dist/utils/formatValidationErrors.js +2 -2
  69. package/dist/utils/schemaValidation.js +5 -5
  70. package/dist/utils.js +3 -5
  71. package/oclif.manifest.json +2 -18
  72. package/package.json +1 -1
  73. package/dist/chunk-NT74GT6W.js +0 -1287
  74. package/dist/utils/schemaBackCompat.js +0 -21
@@ -9923,24 +9923,6 @@ var getParsedSchema = ({
9923
9923
  }
9924
9924
  return json;
9925
9925
  };
9926
- var substituteEnvVariables = ({
9927
- command,
9928
- rawSchema,
9929
- requireEnvVariables
9930
- }) => rawSchema.replace(
9931
- // Matches ${<ANYTHING>} -- <ANYTHING> is then passed to the fn as key
9932
- /\${(\w*)}/g,
9933
- (m, key) => {
9934
- if (key in process.env) {
9935
- return process.env[key];
9936
- } else if (requireEnvVariables) {
9937
- command.error(
9938
- `${key} variable in schema must be present as environment variable. Exiting...`
9939
- );
9940
- }
9941
- return `\${${key}}`;
9942
- }
9943
- );
9944
9926
  var getParsedSchemaString = ({
9945
9927
  command,
9946
9928
  schemaPath,
@@ -9956,11 +9938,20 @@ var getParsedSchemaString = ({
9956
9938
  silenceNonErrorLogging
9957
9939
  );
9958
9940
  const rawSchema = readFileSync(resolvedSchemaPath, "utf8");
9959
- const cleanedRawSchema = substituteEnvVariables({
9960
- command: cmd,
9961
- rawSchema,
9962
- requireEnvVariables
9963
- });
9941
+ const cleanedRawSchema = rawSchema.replace(
9942
+ // Matches ${<ANYTHING>} -- <ANYTHING> is then passed to the fn as key
9943
+ /\${(\w*)}/g,
9944
+ (m, key) => {
9945
+ if (key in process.env) {
9946
+ return process.env[key];
9947
+ } else if (requireEnvVariables) {
9948
+ cmd.error(
9949
+ `${key} variable in schema must be present as environment variable. Exiting...`
9950
+ );
9951
+ }
9952
+ return `\${${key}}`;
9953
+ }
9954
+ );
9964
9955
  const [json, err] = parseJSON(cleanedRawSchema, stripComments);
9965
9956
  if (err) {
9966
9957
  if (!silenceNonErrorLogging) {
@@ -9996,7 +9987,6 @@ export {
9996
9987
  parseJSON,
9997
9988
  getSchemaPath,
9998
9989
  getParsedSchema,
9999
- substituteEnvVariables,
10000
9990
  getParsedSchemaString,
10001
9991
  colorizeJson,
10002
9992
  emphasize
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  FragmentCommand,
7
7
  require_lib
8
- } from "./chunk-3IA6BI6A.js";
8
+ } from "./chunk-LINOTI5E.js";
9
9
  import {
10
10
  resolveMcpBaseUrl
11
11
  } from "./chunk-TLM4VKIC.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  FragmentCommand,
3
3
  require_lib
4
- } from "./chunk-3IA6BI6A.js";
4
+ } from "./chunk-LINOTI5E.js";
5
5
  import {
6
6
  require_source
7
7
  } from "./chunk-QDAKBUNO.js";
@@ -9,7 +9,7 @@ import {
9
9
  codes,
10
10
  getStringParametersInternal,
11
11
  z
12
- } from "./chunk-XJ2TNWI7.js";
12
+ } from "./chunk-DKAEBT2M.js";
13
13
  import {
14
14
  init_cjs_shims
15
15
  } from "./chunk-7GH3YGSC.js";
@@ -400,11 +400,6 @@ var BaseSchema = z.object({
400
400
  })
401
401
  )
402
402
  });
403
- var VALID_LEDGER_ACCOUNT_STATUS_TRANSITIONS = {
404
- active: ["disabled"],
405
- disabled: ["archived", "active"],
406
- archived: ["active"]
407
- };
408
403
 
409
404
  export {
410
405
  fillParams,
@@ -426,7 +421,6 @@ export {
426
421
  SYSTEM_PARAMETER_NAMES,
427
422
  SchemaPaymentTypeStatusSchema,
428
423
  SchemaEntryGroup,
429
- VALID_LEDGER_ACCOUNT_STATUS_TRANSITIONS,
430
424
  getStructuralPath,
431
425
  getInstanceValueByAccountPath,
432
426
  getSubpaths,
@@ -8,7 +8,7 @@ import {
8
8
  SYSTEM_PARAMETER_NAMES,
9
9
  getSchemaObjectParameters,
10
10
  getStructuralSubpaths
11
- } from "./chunk-23KWDUJZ.js";
11
+ } from "./chunk-T7PAZDQ2.js";
12
12
  import {
13
13
  require_source
14
14
  } from "./chunk-QDAKBUNO.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AuthenticatedCommand
3
- } from "./chunk-SU5G5HM2.js";
3
+ } from "./chunk-4IMXVHLX.js";
4
4
  import {
5
5
  require_lib
6
- } from "./chunk-3IA6BI6A.js";
6
+ } from "./chunk-LINOTI5E.js";
7
7
  import {
8
8
  require_source
9
9
  } from "./chunk-QDAKBUNO.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AuthenticatedCommand
3
- } from "./chunk-SU5G5HM2.js";
3
+ } from "./chunk-4IMXVHLX.js";
4
4
  import {
5
5
  require_lib
6
- } from "./chunk-3IA6BI6A.js";
6
+ } from "./chunk-LINOTI5E.js";
7
7
  import {
8
8
  require_source
9
9
  } from "./chunk-QDAKBUNO.js";
@@ -22,7 +22,7 @@ import {
22
22
  getStructuralPath,
23
23
  getStructuralSubpaths,
24
24
  getSubpaths
25
- } from "./chunk-23KWDUJZ.js";
25
+ } from "./chunk-T7PAZDQ2.js";
26
26
  import {
27
27
  BadRequestError,
28
28
  CurrencyMatchInputSchema,
@@ -38,7 +38,7 @@ import {
38
38
  mapValues_default,
39
39
  safe,
40
40
  z
41
- } from "./chunk-XJ2TNWI7.js";
41
+ } from "./chunk-DKAEBT2M.js";
42
42
  import {
43
43
  __commonJS,
44
44
  __toESM,
@@ -610,21 +610,21 @@ var require_types = __commonJS({
610
610
  "../../node_modules/zod/lib/types.js"(exports) {
611
611
  "use strict";
612
612
  init_cjs_shims();
613
- var __classPrivateFieldGet = exports && exports.__classPrivateFieldGet || function(receiver, state, kind, f2) {
614
- if (kind === "a" && !f2)
613
+ var __classPrivateFieldGet = exports && exports.__classPrivateFieldGet || function(receiver, state, kind, f) {
614
+ if (kind === "a" && !f)
615
615
  throw new TypeError("Private accessor was defined without a getter");
616
- if (typeof state === "function" ? receiver !== state || !f2 : !state.has(receiver))
616
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
617
617
  throw new TypeError("Cannot read private member from an object whose class did not declare it");
618
- return kind === "m" ? f2 : kind === "a" ? f2.call(receiver) : f2 ? f2.value : state.get(receiver);
618
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
619
619
  };
620
- var __classPrivateFieldSet = exports && exports.__classPrivateFieldSet || function(receiver, state, value, kind, f2) {
620
+ var __classPrivateFieldSet = exports && exports.__classPrivateFieldSet || function(receiver, state, value, kind, f) {
621
621
  if (kind === "m")
622
622
  throw new TypeError("Private method is not writable");
623
- if (kind === "a" && !f2)
623
+ if (kind === "a" && !f)
624
624
  throw new TypeError("Private accessor was defined without a setter");
625
- if (typeof state === "function" ? receiver !== state || !f2 : !state.has(receiver))
625
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
626
626
  throw new TypeError("Cannot write private member to an object whose class did not declare it");
627
- return kind === "a" ? f2.call(receiver, value) : f2 ? f2.value = value : state.set(receiver, value), value;
627
+ return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
628
628
  };
629
629
  var _ZodEnum_cache;
630
630
  var _ZodNativeEnum_cache;
@@ -2966,17 +2966,17 @@ var require_types = __commonJS({
2966
2966
  }
2967
2967
  };
2968
2968
  exports.ZodDiscriminatedUnion = ZodDiscriminatedUnion;
2969
- function mergeValues(a2, b2) {
2970
- const aType = (0, util_1.getParsedType)(a2);
2969
+ function mergeValues(a, b2) {
2970
+ const aType = (0, util_1.getParsedType)(a);
2971
2971
  const bType = (0, util_1.getParsedType)(b2);
2972
- if (a2 === b2) {
2973
- return { valid: true, data: a2 };
2972
+ if (a === b2) {
2973
+ return { valid: true, data: a };
2974
2974
  } else if (aType === util_1.ZodParsedType.object && bType === util_1.ZodParsedType.object) {
2975
2975
  const bKeys = util_1.util.objectKeys(b2);
2976
- const sharedKeys = util_1.util.objectKeys(a2).filter((key) => bKeys.indexOf(key) !== -1);
2977
- const newObj = { ...a2, ...b2 };
2976
+ const sharedKeys = util_1.util.objectKeys(a).filter((key) => bKeys.indexOf(key) !== -1);
2977
+ const newObj = { ...a, ...b2 };
2978
2978
  for (const key of sharedKeys) {
2979
- const sharedValue = mergeValues(a2[key], b2[key]);
2979
+ const sharedValue = mergeValues(a[key], b2[key]);
2980
2980
  if (!sharedValue.valid) {
2981
2981
  return { valid: false };
2982
2982
  }
@@ -2984,12 +2984,12 @@ var require_types = __commonJS({
2984
2984
  }
2985
2985
  return { valid: true, data: newObj };
2986
2986
  } else if (aType === util_1.ZodParsedType.array && bType === util_1.ZodParsedType.array) {
2987
- if (a2.length !== b2.length) {
2987
+ if (a.length !== b2.length) {
2988
2988
  return { valid: false };
2989
2989
  }
2990
2990
  const newArray = [];
2991
- for (let index = 0; index < a2.length; index++) {
2992
- const itemA = a2[index];
2991
+ for (let index = 0; index < a.length; index++) {
2992
+ const itemA = a[index];
2993
2993
  const itemB = b2[index];
2994
2994
  const sharedValue = mergeValues(itemA, itemB);
2995
2995
  if (!sharedValue.valid) {
@@ -2998,8 +2998,8 @@ var require_types = __commonJS({
2998
2998
  newArray.push(sharedValue.data);
2999
2999
  }
3000
3000
  return { valid: true, data: newArray };
3001
- } else if (aType === util_1.ZodParsedType.date && bType === util_1.ZodParsedType.date && +a2 === +b2) {
3002
- return { valid: true, data: a2 };
3001
+ } else if (aType === util_1.ZodParsedType.date && bType === util_1.ZodParsedType.date && +a === +b2) {
3002
+ return { valid: true, data: a };
3003
3003
  } else {
3004
3004
  return { valid: false };
3005
3005
  }
@@ -3988,9 +3988,9 @@ var require_types = __commonJS({
3988
3988
  }
3989
3989
  }
3990
3990
  }
3991
- static create(a2, b2) {
3991
+ static create(a, b2) {
3992
3992
  return new _ZodPipeline({
3993
- in: a2,
3993
+ in: a,
3994
3994
  out: b2,
3995
3995
  typeName: ZodFirstPartyTypeKind.ZodPipeline
3996
3996
  });
@@ -4739,60 +4739,37 @@ var s = (n2, o2, c2) => {
4739
4739
  if (Array.isArray(n2)) {
4740
4740
  if (!Array.isArray(o2))
4741
4741
  return false;
4742
- let t2 = [], r2 = [], a2 = [];
4742
+ let t2 = [], r2 = [], a = [];
4743
4743
  for (const s2 of n2.keys()) {
4744
4744
  const o3 = n2[s2];
4745
- i(o3) && o3[e] ? a2.push(o3) : a2.length ? r2.push(o3) : t2.push(o3);
4745
+ i(o3) && o3[e] ? a.push(o3) : a.length ? r2.push(o3) : t2.push(o3);
4746
4746
  }
4747
- if (a2.length) {
4748
- if (a2.length > 1)
4747
+ if (a.length) {
4748
+ if (a.length > 1)
4749
4749
  throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
4750
4750
  if (o2.length < t2.length + r2.length)
4751
4751
  return false;
4752
4752
  const e2 = o2.slice(0, t2.length), n3 = 0 === r2.length ? [] : o2.slice(-r2.length), i2 = o2.slice(t2.length, 0 === r2.length ? Infinity : -r2.length);
4753
- return t2.every((t3, n4) => s(t3, e2[n4], c2)) && r2.every((t3, e3) => s(t3, n3[e3], c2)) && (0 === a2.length || s(a2[0], i2, c2));
4753
+ return t2.every((t3, n4) => s(t3, e2[n4], c2)) && r2.every((t3, e3) => s(t3, n3[e3], c2)) && (0 === a.length || s(a[0], i2, c2));
4754
4754
  }
4755
4755
  return n2.length === o2.length && n2.every((t3, e2) => s(t3, o2[e2], c2));
4756
4756
  }
4757
4757
  return Reflect.ownKeys(n2).every((e2) => {
4758
4758
  const r2 = n2[e2];
4759
- return (e2 in o2 || i(a2 = r2) && "optional" === a2[t]().matcherType) && s(r2, o2[e2], c2);
4760
- var a2;
4759
+ return (e2 in o2 || i(a = r2) && "optional" === a[t]().matcherType) && s(r2, o2[e2], c2);
4760
+ var a;
4761
4761
  });
4762
4762
  }
4763
4763
  return Object.is(o2, n2);
4764
4764
  };
4765
4765
  var o = (e2) => {
4766
- var n2, s2, a2;
4767
- return r(e2) ? i(e2) ? null != (n2 = null == (s2 = (a2 = e2[t]()).getSelectionKeys) ? void 0 : s2.call(a2)) ? n2 : [] : Array.isArray(e2) ? c(e2, o) : c(Object.values(e2), o) : [];
4766
+ var n2, s2, a;
4767
+ return r(e2) ? i(e2) ? null != (n2 = null == (s2 = (a = e2[t]()).getSelectionKeys) ? void 0 : s2.call(a)) ? n2 : [] : Array.isArray(e2) ? c(e2, o) : c(Object.values(e2), o) : [];
4768
4768
  };
4769
4769
  var c = (t2, e2) => t2.reduce((t3, n2) => t3.concat(e2(n2)), []);
4770
- function a(...t2) {
4771
- if (1 === t2.length) {
4772
- const [e2] = t2;
4773
- return (t3) => s(e2, t3, () => {
4774
- });
4775
- }
4776
- if (2 === t2.length) {
4777
- const [e2, n2] = t2;
4778
- return s(e2, n2, () => {
4779
- });
4780
- }
4781
- throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${t2.length}.`);
4782
- }
4783
4770
  function u(t2) {
4784
4771
  return Object.assign(t2, { optional: () => h(t2), and: (e2) => m(t2, e2), or: (e2) => d(t2, e2), select: (e2) => void 0 === e2 ? y(t2) : y(e2, t2) });
4785
4772
  }
4786
- function l(t2) {
4787
- return Object.assign(((t3) => Object.assign(t3, { [Symbol.iterator]() {
4788
- let n2 = 0;
4789
- const r2 = [{ value: Object.assign(t3, { [e]: true }), done: false }, { done: true, value: void 0 }];
4790
- return { next: () => {
4791
- var t4;
4792
- return null != (t4 = r2[n2++]) ? t4 : r2.at(-1);
4793
- } };
4794
- } }))(t2), { optional: () => l(h(t2)), select: (e2) => l(void 0 === e2 ? y(t2) : y(e2, t2)) });
4795
- }
4796
4773
  function h(e2) {
4797
4774
  return u({ [t]: () => ({ match: (t2) => {
4798
4775
  let n2 = {};
@@ -4802,18 +4779,6 @@ function h(e2) {
4802
4779
  return void 0 === t2 ? (o(e2).forEach((t3) => r2(t3, void 0)), { matched: true, selections: n2 }) : { matched: s(e2, t2, r2), selections: n2 };
4803
4780
  }, getSelectionKeys: () => o(e2), matcherType: "optional" }) });
4804
4781
  }
4805
- var f = (t2, e2) => {
4806
- for (const n2 of t2)
4807
- if (!e2(n2))
4808
- return false;
4809
- return true;
4810
- };
4811
- var g = (t2, e2) => {
4812
- for (const [n2, r2] of t2.entries())
4813
- if (!e2(r2, n2))
4814
- return false;
4815
- return true;
4816
- };
4817
4782
  function m(...e2) {
4818
4783
  return u({ [t]: () => ({ match: (t2) => {
4819
4784
  let n2 = {};
@@ -4856,7 +4821,6 @@ function w(t2) {
4856
4821
  var S = u(p(function(t2) {
4857
4822
  return true;
4858
4823
  }));
4859
- var O = S;
4860
4824
  var j = (t2) => Object.assign(u(t2), { startsWith: (e2) => {
4861
4825
  return j(m(t2, (n2 = e2, p((t3) => b(t3) && t3.startsWith(n2)))));
4862
4826
  var n2;
@@ -4887,68 +4851,6 @@ var _ = u(p(function(t2) {
4887
4851
  var k = u(p(function(t2) {
4888
4852
  return null != t2;
4889
4853
  }));
4890
- var N = { __proto__: null, matcher: t, optional: h, array: function(...e2) {
4891
- return l({ [t]: () => ({ match: (t2) => {
4892
- if (!Array.isArray(t2))
4893
- return { matched: false };
4894
- if (0 === e2.length)
4895
- return { matched: true };
4896
- const n2 = e2[0];
4897
- let r2 = {};
4898
- if (0 === t2.length)
4899
- return o(n2).forEach((t3) => {
4900
- r2[t3] = [];
4901
- }), { matched: true, selections: r2 };
4902
- const i2 = (t3, e3) => {
4903
- r2[t3] = (r2[t3] || []).concat([e3]);
4904
- };
4905
- return { matched: t2.every((t3) => s(n2, t3, i2)), selections: r2 };
4906
- }, getSelectionKeys: () => 0 === e2.length ? [] : o(e2[0]) }) });
4907
- }, set: function(...e2) {
4908
- return u({ [t]: () => ({ match: (t2) => {
4909
- if (!(t2 instanceof Set))
4910
- return { matched: false };
4911
- let n2 = {};
4912
- if (0 === t2.size)
4913
- return { matched: true, selections: n2 };
4914
- if (0 === e2.length)
4915
- return { matched: true };
4916
- const r2 = (t3, e3) => {
4917
- n2[t3] = (n2[t3] || []).concat([e3]);
4918
- }, i2 = e2[0];
4919
- return { matched: f(t2, (t3) => s(i2, t3, r2)), selections: n2 };
4920
- }, getSelectionKeys: () => 0 === e2.length ? [] : o(e2[0]) }) });
4921
- }, map: function(...e2) {
4922
- return u({ [t]: () => ({ match: (t2) => {
4923
- if (!(t2 instanceof Map))
4924
- return { matched: false };
4925
- let n2 = {};
4926
- if (0 === t2.size)
4927
- return { matched: true, selections: n2 };
4928
- const r2 = (t3, e3) => {
4929
- n2[t3] = (n2[t3] || []).concat([e3]);
4930
- };
4931
- if (0 === e2.length)
4932
- return { matched: true };
4933
- var i2;
4934
- if (1 === e2.length)
4935
- throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${null == (i2 = e2[0]) ? void 0 : i2.toString()}`);
4936
- const [o2, c2] = e2;
4937
- return { matched: g(t2, (t3, e3) => {
4938
- const n3 = s(o2, e3, r2), i3 = s(c2, t3, r2);
4939
- return n3 && i3;
4940
- }), selections: n2 };
4941
- }, getSelectionKeys: () => 0 === e2.length ? [] : [...o(e2[0]), ...o(e2[1])] }) });
4942
- }, intersection: m, union: d, not: function(e2) {
4943
- return u({ [t]: () => ({ match: (t2) => ({ matched: !s(e2, t2, () => {
4944
- }) }), getSelectionKeys: () => [], matcherType: "not" }) });
4945
- }, when: p, select: y, any: S, _: O, string: K, number: E, bigint: P, boolean: T, symbol: B, nullish: _, nonNullable: k, instanceOf: function(t2) {
4946
- return u(p(/* @__PURE__ */ function(t3) {
4947
- return (e2) => e2 instanceof t3;
4948
- }(t2)));
4949
- }, shape: function(t2) {
4950
- return u(p(a(t2)));
4951
- } };
4952
4854
  var W = class extends Error {
4953
4855
  constructor(t2) {
4954
4856
  let e2;
@@ -4975,9 +4877,9 @@ var I = class _I {
4975
4877
  let i2;
4976
4878
  3 === t2.length && "function" == typeof t2[1] ? i2 = t2[1] : t2.length > 2 && r2.push(...t2.slice(1, t2.length - 1));
4977
4879
  let o2 = false, c2 = {};
4978
- const a2 = (t3, e3) => {
4880
+ const a = (t3, e3) => {
4979
4881
  o2 = true, c2[t3] = e3;
4980
- }, u2 = !r2.some((t3) => s(t3, this.input, a2)) || i2 && !Boolean(i2(this.input)) ? $ : { matched: true, value: e2(o2 ? n in c2 ? c2[n] : c2 : this.input, this.input) };
4882
+ }, u2 = !r2.some((t3) => s(t3, this.input, a)) || i2 && !Boolean(i2(this.input)) ? $ : { matched: true, value: e2(o2 ? n in c2 ? c2[n] : c2 : this.input, this.input) };
4981
4883
  return new _I(this.input, u2);
4982
4884
  }
4983
4885
  when(t2, e2) {
@@ -5698,23 +5600,19 @@ var evaluateExpressionWithVars = (expression) => {
5698
5600
  throw new BadRequestError(err.message);
5699
5601
  }
5700
5602
  };
5701
- var add = (a2, b2) => {
5702
- const keys = /* @__PURE__ */ new Set([...a2[1].keys(), ...b2[1].keys()]);
5603
+ var add = (a, b2) => {
5604
+ const keys = /* @__PURE__ */ new Set([...a[1].keys(), ...b2[1].keys()]);
5703
5605
  const result = new Map(
5704
- Array.from(keys).map((key) => [key, (a2[1].get(key) ?? 0) + (b2[1].get(key) ?? 0)]).filter(([, n2]) => n2 !== 0)
5606
+ Array.from(keys).map((key) => [key, (a[1].get(key) ?? 0) + (b2[1].get(key) ?? 0)]).filter(([, n2]) => n2 !== 0)
5705
5607
  );
5706
- return [a2[0] + b2[0], result];
5608
+ return [a[0] + b2[0], result];
5707
5609
  };
5708
- var subtract = (a2, b2) => {
5709
- const keys = /* @__PURE__ */ new Set([...a2[1].keys(), ...b2[1].keys()]);
5610
+ var subtract = (a, b2) => {
5611
+ const keys = /* @__PURE__ */ new Set([...a[1].keys(), ...b2[1].keys()]);
5710
5612
  const result = new Map(
5711
- Array.from(keys).map((key) => [key, (a2[1].get(key) ?? 0) - (b2[1].get(key) ?? 0)]).filter(([, n2]) => n2 !== 0)
5613
+ Array.from(keys).map((key) => [key, (a[1].get(key) ?? 0) - (b2[1].get(key) ?? 0)]).filter(([, n2]) => n2 !== 0)
5712
5614
  );
5713
- return [a2[0] - b2[0], result];
5714
- };
5715
- var areExpressionsEqual = (a2, b2) => {
5716
- const variables = /* @__PURE__ */ new Set([...a2[1].keys(), ...b2[1].keys()]);
5717
- return a2[0] === b2[0] && [...variables].every((key) => (a2[1].get(key) ?? 0) === (b2[1].get(key) ?? 0));
5615
+ return [a[0] - b2[0], result];
5718
5616
  };
5719
5617
  function abs(bigint) {
5720
5618
  return bigint < 0n ? -bigint : bigint;
@@ -5723,7 +5621,7 @@ var zero = [0n, /* @__PURE__ */ new Map()];
5723
5621
  var toString = (value, options = {}) => {
5724
5622
  const varMap = options.varMap ?? ((v2) => v2);
5725
5623
  const noCoefficients = options.noCoefficients ?? false;
5726
- const terms = Array.from(value[1].entries()).filter(([, n2]) => n2 !== 0).sort((a2, b2) => b2[1] - a2[1]).map(
5624
+ const terms = Array.from(value[1].entries()).filter(([, n2]) => n2 !== 0).sort((a, b2) => b2[1] - a[1]).map(
5727
5625
  ([key, n2]) => noCoefficients ? ` ${n2 >= 0 ? "+" : "-"} ${varMap(key)}`.repeat(Math.abs(n2)).substring(1) : `${n2 >= 0 ? "+" : "-"} ${Math.abs(n2) === 1 ? "" : `${Math.abs(n2)} * `}${varMap(key)}`
5728
5626
  ).join(" ");
5729
5627
  if (terms === "") {
@@ -6032,7 +5930,6 @@ var MAX_TAG_VALUE_LENGTH = 128;
6032
5930
  var MAX_TAG_KEY_LENGTH = 128;
6033
5931
  var MAX_TAG_COUNT = 20;
6034
5932
  var MAX_CONSISTENT_BALANCE_UPDATES = 30;
6035
- var MIN_SCHEMA_LEDGER_ENTRY_DISABLED_DURATION_SECONDS = 45;
6036
5933
  var INVITE_EXPIRY_MS = 1e3 * 60 * 60 * 72;
6037
5934
 
6038
5935
  // ../../libs/types/entry.ts
@@ -6487,7 +6384,7 @@ var validateBalancedLineGroup = (entryType, entryParameters, lines, accountPathT
6487
6384
  entryType,
6488
6385
  entryParameters,
6489
6386
  lines.length === 2,
6490
- lines.some((l2) => l2.tx),
6387
+ lines.some((l) => l.tx),
6491
6388
  line,
6492
6389
  accountPathToAccount,
6493
6390
  options
@@ -7054,13 +6951,13 @@ var validateEntry = (ledgerEntry, accountPathToAccount, defaultConsistencyConfig
7054
6951
  errors.push(
7055
6952
  ...ledgerEntry.lines.flatMap((line, idx) => {
7056
6953
  const groupLines = line.repeated ? ledgerEntry.lines.filter(
7057
- (l2) => l2.repeated?.key === line.repeated?.key
7058
- ) : ledgerEntry.lines.filter((l2) => !l2.repeated);
6954
+ (l) => l.repeated?.key === line.repeated?.key
6955
+ ) : ledgerEntry.lines.filter((l) => !l.repeated);
7059
6956
  return validateLine(
7060
6957
  ledgerEntry.type,
7061
6958
  ledgerEntry.parameters,
7062
6959
  groupLines.length === 2,
7063
- groupLines.some((l2) => l2.tx),
6960
+ groupLines.some((l) => l.tx),
7064
6961
  parameterizeSchemaLedgerLineInput({
7065
6962
  line,
7066
6963
  entryParameters: ledgerEntry.parameters
@@ -7255,7 +7152,7 @@ var validateUniqueEntries = (entries) => {
7255
7152
  const errors = [];
7256
7153
  entries.forEach((entry, index) => {
7257
7154
  if (entry.groups) {
7258
- const groupSet = new Set(entry.groups.map((g2) => `${g2.key}-${g2.value}`));
7155
+ const groupSet = new Set(entry.groups.map((g) => `${g.key}-${g.value}`));
7259
7156
  if (groupSet.size !== entry.groups.length) {
7260
7157
  errors.push({
7261
7158
  message: "Entry cannot have duplicate groups",
@@ -7284,7 +7181,7 @@ var validateEntriesModifyClearingAccount = (group, entriesInGroup) => {
7284
7181
  const clearingAccount = group.reconciliation.clearingAccountPath.path;
7285
7182
  const entriesMissingClearingAccount = entriesInGroup.filter(
7286
7183
  (e2) => !e2?.lines?.some(
7287
- (l2) => isAccountPathEquivalent(l2.account.path, clearingAccount)
7184
+ (l) => isAccountPathEquivalent(l.account.path, clearingAccount)
7288
7185
  )
7289
7186
  );
7290
7187
  if (entriesMissingClearingAccount.length > 0) {
@@ -7350,7 +7247,7 @@ var validateGroup = (group, validatedCoA, validatedEntries, index) => {
7350
7247
  return errors;
7351
7248
  }
7352
7249
  const entriesInGroup = validatedEntries.types.filter(
7353
- (e2) => e2.groups.some((g2) => g2.key === group.key)
7250
+ (e2) => e2.groups.some((g) => g.key === group.key)
7354
7251
  );
7355
7252
  errors.push(
7356
7253
  ...setErrorPathPrefix(
@@ -8216,13 +8113,5 @@ var Schema = z.object({
8216
8113
 
8217
8114
  export {
8218
8115
  parseWithError,
8219
- getAccountStatus,
8220
- N,
8221
- z2 as z,
8222
- evaluateExpressionWithVars,
8223
- areExpressionsEqual,
8224
- stringify2 as stringify,
8225
- MIN_SCHEMA_LEDGER_ENTRY_DISABLED_DURATION_SECONDS,
8226
- ChartOfAccounts,
8227
8116
  Schema
8228
8117
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  AuthenticatedCommand
3
- } from "./chunk-SU5G5HM2.js";
3
+ } from "./chunk-4IMXVHLX.js";
4
4
  import {
5
5
  init_cjs_shims
6
6
  } from "./chunk-7GH3YGSC.js";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  AddLedgerEntry
3
- } from "../chunk-E7ZKZZP4.js";
4
- import "../chunk-SU5G5HM2.js";
3
+ } from "../chunk-3QIKHVTA.js";
4
+ import "../chunk-4IMXVHLX.js";
5
5
  import "../chunk-5KST5KIH.js";
6
- import "../chunk-3IA6BI6A.js";
6
+ import "../chunk-LINOTI5E.js";
7
7
  import "../chunk-34NLRFFT.js";
8
- import "../chunk-QZNZYG2G.js";
8
+ import "../chunk-PU52GTGB.js";
9
9
  import "../chunk-QF5EN33L.js";
10
10
  import "../chunk-DYLKAHKE.js";
11
11
  import "../chunk-QDAKBUNO.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  ApiClientCreate
3
- } from "../../chunk-2QR6NGWG.js";
3
+ } from "../../chunk-Q62TGFNL.js";
4
4
  import "../../chunk-3SJL7FRS.js";
5
- import "../../chunk-3IA6BI6A.js";
5
+ import "../../chunk-LINOTI5E.js";
6
6
  import "../../chunk-34NLRFFT.js";
7
- import "../../chunk-QZNZYG2G.js";
7
+ import "../../chunk-PU52GTGB.js";
8
8
  import "../../chunk-QF5EN33L.js";
9
9
  import "../../chunk-DYLKAHKE.js";
10
10
  import "../../chunk-QDAKBUNO.js";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  CreateCustomLink
3
- } from "../chunk-KVBNKJBH.js";
4
- import "../chunk-SU5G5HM2.js";
3
+ } from "../chunk-DURV4GOT.js";
4
+ import "../chunk-4IMXVHLX.js";
5
5
  import "../chunk-5KST5KIH.js";
6
- import "../chunk-3IA6BI6A.js";
6
+ import "../chunk-LINOTI5E.js";
7
7
  import "../chunk-34NLRFFT.js";
8
- import "../chunk-QZNZYG2G.js";
8
+ import "../chunk-PU52GTGB.js";
9
9
  import "../chunk-QF5EN33L.js";
10
10
  import "../chunk-DYLKAHKE.js";
11
11
  import "../chunk-QDAKBUNO.js";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  CreateLedger
3
- } from "../chunk-THGEB6PT.js";
4
- import "../chunk-SU5G5HM2.js";
3
+ } from "../chunk-2DFNUYYB.js";
4
+ import "../chunk-4IMXVHLX.js";
5
5
  import "../chunk-5KST5KIH.js";
6
- import "../chunk-3IA6BI6A.js";
6
+ import "../chunk-LINOTI5E.js";
7
7
  import "../chunk-34NLRFFT.js";
8
- import "../chunk-QZNZYG2G.js";
8
+ import "../chunk-PU52GTGB.js";
9
9
  import "../chunk-QF5EN33L.js";
10
10
  import "../chunk-DYLKAHKE.js";
11
11
  import "../chunk-QDAKBUNO.js";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  DeleteCustomTxs
3
- } from "../chunk-QBQANVTD.js";
4
- import "../chunk-SU5G5HM2.js";
3
+ } from "../chunk-EIF4FTEI.js";
4
+ import "../chunk-4IMXVHLX.js";
5
5
  import "../chunk-5KST5KIH.js";
6
- import "../chunk-3IA6BI6A.js";
6
+ import "../chunk-LINOTI5E.js";
7
7
  import "../chunk-34NLRFFT.js";
8
- import "../chunk-QZNZYG2G.js";
8
+ import "../chunk-PU52GTGB.js";
9
9
  import "../chunk-QF5EN33L.js";
10
10
  import "../chunk-DYLKAHKE.js";
11
11
  import "../chunk-QDAKBUNO.js";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  DeleteLedger
3
- } from "../chunk-QGFJ5H4G.js";
4
- import "../chunk-SU5G5HM2.js";
3
+ } from "../chunk-E4TL7SOK.js";
4
+ import "../chunk-4IMXVHLX.js";
5
5
  import "../chunk-5KST5KIH.js";
6
- import "../chunk-3IA6BI6A.js";
6
+ import "../chunk-LINOTI5E.js";
7
7
  import "../chunk-34NLRFFT.js";
8
- import "../chunk-QZNZYG2G.js";
8
+ import "../chunk-PU52GTGB.js";
9
9
  import "../chunk-QF5EN33L.js";
10
10
  import "../chunk-DYLKAHKE.js";
11
11
  import "../chunk-QDAKBUNO.js";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  DeleteSchema
3
- } from "../chunk-5NKCOZCW.js";
4
- import "../chunk-SU5G5HM2.js";
3
+ } from "../chunk-D65TXRLZ.js";
4
+ import "../chunk-4IMXVHLX.js";
5
5
  import "../chunk-5KST5KIH.js";
6
- import "../chunk-3IA6BI6A.js";
6
+ import "../chunk-LINOTI5E.js";
7
7
  import "../chunk-34NLRFFT.js";
8
- import "../chunk-QZNZYG2G.js";
8
+ import "../chunk-PU52GTGB.js";
9
9
  import "../chunk-QF5EN33L.js";
10
10
  import "../chunk-DYLKAHKE.js";
11
11
  import "../chunk-QDAKBUNO.js";