@vm0/cli 9.84.0 → 9.84.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.
@@ -47,7 +47,7 @@ if (DSN) {
47
47
  Sentry.init({
48
48
  dsn: DSN,
49
49
  environment: process.env.SENTRY_ENVIRONMENT ?? "production",
50
- release: "9.84.0",
50
+ release: "9.84.1",
51
51
  sendDefaultPii: false,
52
52
  tracesSampleRate: 0,
53
53
  shutdownTimeout: 500,
@@ -66,7 +66,7 @@ if (DSN) {
66
66
  }
67
67
  });
68
68
  Sentry.setContext("cli", {
69
- version: "9.84.0",
69
+ version: "9.84.1",
70
70
  command: process.argv.slice(2).join(" ")
71
71
  });
72
72
  Sentry.setContext("runtime", {
@@ -8820,7 +8820,7 @@ var zeptomailFirewall = {
8820
8820
  };
8821
8821
 
8822
8822
  // ../../packages/core/src/firewalls/index.ts
8823
- var builtinFirewalls = {
8823
+ var CONNECTOR_FIREWALLS = {
8824
8824
  agentmail: agentmailFirewall,
8825
8825
  ahrefs: ahrefsFirewall,
8826
8826
  airtable: airtableFirewall,
@@ -8925,6 +8925,12 @@ var builtinFirewalls = {
8925
8925
  zapsign: zapsignFirewall,
8926
8926
  zeptomail: zeptomailFirewall
8927
8927
  };
8928
+ function isFirewallConnectorType(type) {
8929
+ return type in CONNECTOR_FIREWALLS;
8930
+ }
8931
+ function getConnectorFirewall(type) {
8932
+ return CONNECTOR_FIREWALLS[type];
8933
+ }
8928
8934
 
8929
8935
  // ../../packages/core/src/firewall-loader.ts
8930
8936
  var MAX_RESPONSE_SIZE = 128 * 1024;
@@ -8939,7 +8945,7 @@ function buildFirewallYamlUrl(ref) {
8939
8945
  }
8940
8946
  async function fetchFirewallConfig(ref, fetchFn = fetch) {
8941
8947
  const trimmed = ref.trim();
8942
- const builtin = !trimmed.includes("/") ? builtinFirewalls[trimmed] : void 0;
8948
+ const builtin = !trimmed.includes("/") && isFirewallConnectorType(trimmed) ? getConnectorFirewall(trimmed) : void 0;
8943
8949
  if (builtin) {
8944
8950
  return builtin;
8945
8951
  }
@@ -15388,7 +15394,8 @@ var zeroAgentsByIdContract = c17.router({
15388
15394
  204: c17.noBody(),
15389
15395
  401: apiErrorSchema,
15390
15396
  403: apiErrorSchema,
15391
- 404: apiErrorSchema
15397
+ 404: apiErrorSchema,
15398
+ 409: apiErrorSchema
15392
15399
  },
15393
15400
  summary: "Delete zero agent by id"
15394
15401
  }
@@ -16466,6 +16473,30 @@ var zeroBillingInvoicesContract = c29.router({
16466
16473
  summary: "Get invoices for current org"
16467
16474
  }
16468
16475
  });
16476
+ var downgradeRequestSchema = z36.object({
16477
+ targetTier: z36.enum(["free", "pro"])
16478
+ });
16479
+ var downgradeResponseSchema = z36.object({
16480
+ success: z36.boolean(),
16481
+ effectiveDate: z36.string().nullable()
16482
+ });
16483
+ var zeroBillingDowngradeContract = c29.router({
16484
+ create: {
16485
+ method: "POST",
16486
+ path: "/api/zero/billing/downgrade",
16487
+ headers: authHeadersSchema,
16488
+ body: downgradeRequestSchema,
16489
+ responses: {
16490
+ 200: downgradeResponseSchema,
16491
+ 400: apiErrorSchema,
16492
+ 401: apiErrorSchema,
16493
+ 403: apiErrorSchema,
16494
+ 500: apiErrorSchema,
16495
+ 503: apiErrorSchema
16496
+ },
16497
+ summary: "Downgrade subscription to a lower tier"
16498
+ }
16499
+ });
16469
16500
 
16470
16501
  // ../../packages/core/src/contracts/zero-usage.ts
16471
16502
  import { z as z37 } from "zod";
@@ -18144,4 +18175,4 @@ export {
18144
18175
  promptSelect,
18145
18176
  promptPassword
18146
18177
  };
18147
- //# sourceMappingURL=chunk-T4MRFLKK.js.map
18178
+ //# sourceMappingURL=chunk-A5NPNEP5.js.map