@gravity-rail/cli 7.0.0 → 8.0.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.
package/dist/lib.js CHANGED
@@ -47,7 +47,7 @@ import {
47
47
  selectFromList,
48
48
  stderr,
49
49
  unwrapItems
50
- } from "./chunk-XDEGL6VD.js";
50
+ } from "./chunk-YKDH3GYW.js";
51
51
 
52
52
  // src/lib/args.ts
53
53
  var PAGINATION_ARGS = [
@@ -13077,6 +13077,11 @@ Relations (relationMatch): ${relations.join(", ")}`);
13077
13077
  name: "mode",
13078
13078
  description: "rows (default), count, or aggregate",
13079
13079
  required: false
13080
+ },
13081
+ {
13082
+ name: "source-fax-id",
13083
+ description: "Limit a Record query to Records produced from this received fax",
13084
+ required: false
13080
13085
  }
13081
13086
  ],
13082
13087
  examples: [
@@ -13085,10 +13090,16 @@ Relations (relationMatch): ${relations.join(", ")}`);
13085
13090
  ],
13086
13091
  handler: async ({ ctx, workspace, args, data }) => {
13087
13092
  const query = coerceQuery(data, args);
13093
+ const rawFaxId = args["source-fax-id"];
13094
+ const sourceFaxId = rawFaxId === void 0 ? void 0 : Number(rawFaxId);
13095
+ if (sourceFaxId !== void 0 && (typeof rawFaxId !== "string" || !/^[0-9]+$/.test(rawFaxId) || !Number.isInteger(sourceFaxId) || sourceFaxId < 1 || sourceFaxId > 2147483647)) {
13096
+ throw new CLIError("--source-fax-id must be a positive 32-bit integer");
13097
+ }
13088
13098
  const result = await requireAuth(ctx).apiClient.runQuery(
13089
13099
  workspace,
13090
13100
  query,
13091
- runMode(args)
13101
+ runMode(args),
13102
+ { sourceFaxId }
13092
13103
  );
13093
13104
  outputSingle(result, ctx);
13094
13105
  }
@@ -24616,7 +24627,7 @@ async function resolveDirectoryTrust(opts) {
24616
24627
  return "trusted";
24617
24628
  }
24618
24629
  async function requireDirectoryTrust(opts) {
24619
- const { CLIError: CLIError2 } = await import("./errors-JY4564PH.js");
24630
+ const { CLIError: CLIError2 } = await import("./errors-W4SQWN2A.js");
24620
24631
  const dir = path3.resolve(opts.trustDir ?? opts.cwd ?? process.cwd());
24621
24632
  const status = await resolveDirectoryTrust(opts);
24622
24633
  if (status === "trusted") return;
@@ -28039,7 +28050,7 @@ var topLevelCommands = [
28039
28050
  revealsSecret: false,
28040
28051
  args: [{ name: "phone", description: "E.164 phone number (optional; prompts if omitted)" }],
28041
28052
  handler: async (hctx) => {
28042
- const { accountVerifyPhoneCommand } = await import("./account-verify-phone-N6TMI2HX.js");
28053
+ const { accountVerifyPhoneCommand } = await import("./account-verify-phone-R33UATCR.js");
28043
28054
  await accountVerifyPhoneCommand(hctx);
28044
28055
  }
28045
28056
  },