@curviate/cli 0.63.0 → 0.65.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 (61) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/{account-4T7S3HZD.js → account-6IKQAGAX.js} +8 -8
  3. package/dist/{analytics-4Z4PKAJ3.js → analytics-5LYWN4RF.js} +5 -5
  4. package/dist/{beta-consent-HYJPCSJ4.js → beta-consent-PPI5IUSD.js} +4 -4
  5. package/dist/{billing-V65MIXTE.js → billing-R6TDVSMZ.js} +5 -5
  6. package/dist/{chunk-I6KOMJVE.js → chunk-3RACWVSE.js} +2 -2
  7. package/dist/{chunk-TU4IAQU7.js → chunk-4K34FHE5.js} +3 -3
  8. package/dist/{chunk-REUJDFUI.js → chunk-6EKWHAEH.js} +6 -6
  9. package/dist/{chunk-LJ4KKQX3.js → chunk-76OVMT7O.js} +1 -1
  10. package/dist/{chunk-OJI6MXDZ.js → chunk-AR34Y3V6.js} +2 -2
  11. package/dist/{chunk-VMYY6QVQ.js → chunk-CCBUB6WM.js} +5 -5
  12. package/dist/{chunk-4G46D4PW.js → chunk-EGNU7GKL.js} +11 -11
  13. package/dist/{chunk-EO42KWBI.js → chunk-KAMKNMDR.js} +111 -29
  14. package/dist/{chunk-DLYVUDNF.js → chunk-KU6ORZ5Z.js} +3 -1
  15. package/dist/{chunk-A36LF5KC.js → chunk-P5TGPTBV.js} +7 -7
  16. package/dist/{chunk-D6IQCQMP.js → chunk-U55AXO2J.js} +1 -1
  17. package/dist/{chunk-5GNACRVM.js → chunk-W524FTEO.js} +2 -2
  18. package/dist/{chunk-66HEPUAX.js → chunk-Z67TWG6W.js} +2 -0
  19. package/dist/cli.js +28 -28
  20. package/dist/{comment-HWQ2QKMC.js → comment-FDZMRASJ.js} +7 -7
  21. package/dist/{company-7IQVEW5C.js → company-6ZUDLEGL.js} +7 -7
  22. package/dist/{company-record-VKRYZT36.js → company-record-WAY2ASK6.js} +10 -10
  23. package/dist/{config-H42PGDKK.js → config-GJX2WLRX.js} +1 -1
  24. package/dist/{connect-WKZBF3HH.js → connect-VV5BEFAE.js} +11 -11
  25. package/dist/{contact-YNPRX24V.js → contact-LFXH5ROE.js} +8 -8
  26. package/dist/{contact-groups-3IKE27LP.js → contact-groups-AKCTZSAC.js} +10 -10
  27. package/dist/{contact-import-CNUUBV2G.js → contact-import-FBASQAJ4.js} +17 -11
  28. package/dist/{core-WYX2KPXO.js → core-7XJG4ISF.js} +17 -17
  29. package/dist/{do-not-contact-SK3X2GUZ.js → do-not-contact-2RKGOFIQ.js} +10 -10
  30. package/dist/{doctor-JXZ6IA7V.js → doctor-CUQZXWSI.js} +4 -4
  31. package/dist/{domain-3O3RRDDE.js → domain-2SRQNEK7.js} +5 -5
  32. package/dist/{draft-N25LUN3O.js → draft-IVPVFA5U.js} +4 -4
  33. package/dist/{enrollment-XVOTQJCW.js → enrollment-2NG5M63J.js} +6 -6
  34. package/dist/{examples-G4IC5TJU.js → examples-FGF6HIAN.js} +1 -1
  35. package/dist/{exit-codes-MMGNZCJ5.js → exit-codes-MSUALZX5.js} +1 -1
  36. package/dist/{export-WZURNCW4.js → export-DZLAEWWL.js} +4 -4
  37. package/dist/{feed-TQNYEIKA.js → feed-6DXIJPPF.js} +6 -6
  38. package/dist/{group-YH74XB2A.js → group-WVITK4FF.js} +6 -6
  39. package/dist/{inbox-ONG2WAQF.js → inbox-OLW6KMF7.js} +6 -6
  40. package/dist/{inboxes-2UUPV7YG.js → inboxes-HV6PXICA.js} +6 -6
  41. package/dist/{incoming-36FVTDLR.js → incoming-EF3LZGZA.js} +5 -5
  42. package/dist/{job-ZUXQNQWE.js → job-T5LNQACM.js} +6 -6
  43. package/dist/{login-2XMBLHXZ.js → login-GDCPVZKK.js} +1 -1
  44. package/dist/{mailbox-3SAHMUXD.js → mailbox-CVM5QZ7E.js} +36 -17
  45. package/dist/{message-6RXPM34Y.js → message-OWRSYEOB.js} +6 -6
  46. package/dist/{motion-H3VRJTMG.js → motion-SVE2L5WD.js} +8 -8
  47. package/dist/{network-TJNJ2KOZ.js → network-4CZJH4YY.js} +5 -5
  48. package/dist/{notification-3RCR3752.js → notification-VMN4OPZ7.js} +6 -6
  49. package/dist/{notifications-JLCI2HNY.js → notifications-76EAPG5B.js} +6 -6
  50. package/dist/{post-LFIOTRVB.js → post-3QLWHDU6.js} +7 -7
  51. package/dist/{profile-4AND35NT.js → profile-PCBKCXLO.js} +11 -11
  52. package/dist/{recruiter-WCD6QX6I.js → recruiter-JNVHS64B.js} +6 -6
  53. package/dist/{sales-nav-GNRI37BT.js → sales-nav-53AJYUUW.js} +6 -6
  54. package/dist/{search-EO42F7WY.js → search-DMWKN7TD.js} +15 -15
  55. package/dist/{setup-MXG4WJ3O.js → setup-2ZIFAXKZ.js} +4 -4
  56. package/dist/{signal-VWJ2AEIA.js → signal-XI3V5TM3.js} +5 -5
  57. package/dist/{team-JAW7XI3C.js → team-D4BGYY2L.js} +5 -5
  58. package/dist/{tier-DHUKMNWG.js → tier-SOYZZJBA.js} +4 -4
  59. package/dist/{unibox-JV2VN6TC.js → unibox-7TESM34K.js} +8 -8
  60. package/dist/{webhook-R4SR6TYR.js → webhook-WS5TOVSN.js} +5 -5
  61. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  confirmMoney
4
- } from "./chunk-A36LF5KC.js";
4
+ } from "./chunk-P5TGPTBV.js";
5
5
  import {
6
6
  resolveSecret
7
7
  } from "./chunk-DENWYJK2.js";
@@ -11,7 +11,7 @@ import {
11
11
  outputOpts,
12
12
  rootClient,
13
13
  usage
14
- } from "./chunk-TU4IAQU7.js";
14
+ } from "./chunk-4K34FHE5.js";
15
15
  import {
16
16
  buildPreviewOutput
17
17
  } from "./chunk-TCUYH5GO.js";
@@ -26,13 +26,13 @@ import {
26
26
  readablePage,
27
27
  rejectPaginationModifiersWithoutAll,
28
28
  streamAll
29
- } from "./chunk-I6KOMJVE.js";
29
+ } from "./chunk-3RACWVSE.js";
30
30
  import {
31
31
  renderSuccess,
32
32
  writeNdjsonItem
33
- } from "./chunk-66HEPUAX.js";
33
+ } from "./chunk-Z67TWG6W.js";
34
34
  import "./chunk-IB6ARI3R.js";
35
- import "./chunk-D6IQCQMP.js";
35
+ import "./chunk-U55AXO2J.js";
36
36
  import {
37
37
  GLOBAL_FLAGS,
38
38
  READ_SINGLE_FLAGS,
@@ -49,7 +49,7 @@ import "./chunk-FDJMAF7D.js";
49
49
  import "./chunk-ZYURL5VK.js";
50
50
  import {
51
51
  getExitCode
52
- } from "./chunk-DLYVUDNF.js";
52
+ } from "./chunk-KU6ORZ5Z.js";
53
53
 
54
54
  // src/commands/mailbox.ts
55
55
  import { defineCommand } from "citty";
@@ -165,15 +165,17 @@ function parseMailboxSpec(raw) {
165
165
  }
166
166
  var BUY_PAST_CAP = "This order would take your Team past its cap on Mailboxes from Curviate. Nothing was ordered. Only a Team Owner raises the cap, in the dashboard.";
167
167
  var money = (minor, currency) => new Intl.NumberFormat("en-US", { style: "currency", currency: currency.toUpperCase() }).format(minor / 100);
168
+ var BILLING = "app.curviate.com/settings/billing";
169
+ var PAYMENT_OUTSTANDING = `Your Team has a payment outstanding. Update the payment method in Billing (${BILLING}), then order.`;
170
+ var NO_ROOM = "Curviate has no room for this many new Mailboxes at the moment and is adding more. Order fewer, or order again later.";
168
171
  function priceLine(p) {
169
172
  const n = p.mailboxes ?? 0;
170
173
  const cur = p.currency ?? "usd";
171
174
  const per = p.billing_period === "annual" ? "a year" : "a month";
172
175
  const head = p.charged === "never" ? `${n} Mailbox${n === 1 ? "" : "es"} from Curviate: nothing is charged for your Team.` : `${n} Mailbox${n === 1 ? "" : "es"} from Curviate: ${money(p.amount ?? 0, cur)} ${per} (${money(p.unit_amount ?? 0, cur)} each)${p.plus_tax ? ", plus tax where it applies" : ""}.`;
173
176
  const when = p.charged === "when_records_found" ? ` Charged the day the records are found at your domain${p.prorated ? ", for the rest of your billing year" : ""}, then each year.` : p.charged === "with_next_invoice" ? ` Added to your next invoice${p.prorated ? ", prorated for the rest of this month" : ""}, then each month.` : "";
174
- const waits = p.charge_waits_for === "payment" ? " The charge waits until your Team's open payment is settled." : p.charge_waits_for === "subscription" ? " The charge waits until your Team has a subscription." : "";
175
- const closed = p.orderable === false ? ` It cannot be ordered now: ${p.not_orderable_reason === "trial" ? "available once your Team pays (a Team on a trial, without a paid plan, or with a payment past due)" : p.not_orderable_reason === "currency" ? "your subscription is billed in another currency than Mailboxes from Curviate (US dollars). Contact support to move it to the current price, then order" : p.not_orderable_reason === "sales_paused" ? "orders cannot be placed at the moment" : "orders are closed"}.` : "";
176
- return head + when + waits + closed;
177
+ const closed = p.orderable !== false ? "" : p.not_orderable_reason === "payment" ? ` ${PAYMENT_OUTSTANDING}` : p.not_orderable_reason === "capacity" ? ` ${NO_ROOM}` : ` It cannot be ordered now: ${p.not_orderable_reason === "trial" ? "available once your Team pays (a Team on a trial or without a paid plan)" : p.not_orderable_reason === "currency" ? "your subscription is billed in another currency than Mailboxes from Curviate (US dollars). Contact support to move it to the current price, then order" : p.not_orderable_reason === "sales_paused" ? "orders cannot be placed at the moment" : "orders are closed"}.`;
178
+ return head + when + closed;
177
179
  }
178
180
  async function runQuote(c, f) {
179
181
  const n = /^\d+$/.test(f.count ?? "") ? Number(f.count) : NaN;
@@ -207,6 +209,8 @@ async function runBuy(c, f) {
207
209
  }
208
210
  const order = await c.mailboxes.purchases.create(body);
209
211
  renderSuccess(readableObject(order), outputOpts(f), process);
212
+ const note = purchaseNote(order);
213
+ if (note && (agreed === void 0 || order.price?.amount === agreed)) process.stderr.write(note + "\n");
210
214
  if (agreed !== void 0 && order.price?.amount !== agreed) {
211
215
  process.stderr.write(`error [PRICE_CHANGED] This order costs ${order.price ? priceLine(order.price) : "an unstated price"} That is not the ${agreed} (minor units) agreed to, so the order is being cancelled.
212
216
  `);
@@ -232,6 +236,20 @@ async function runBuy(c, f) {
232
236
  }
233
237
  function purchaseNote(order) {
234
238
  if (order.charge_unknown === true) return "We are checking whether this order was charged. If it was, the charge is given back in full.";
239
+ const by = typeof order.expires_at === "string" && !Number.isNaN(Date.parse(order.expires_at)) ? new Intl.DateTimeFormat("en-US", { month: "long", day: "numeric" }).format(new Date(order.expires_at)) : "its end date";
240
+ if (order.state === "awaiting_dns") switch (order.waiting_for) {
241
+ case "records":
242
+ return `Add each record where your domain's DNS is managed. Curviate checks every 15 minutes for 2 hours, then every hour. If they are not all found by ${by}, the order ends with nothing charged.`;
243
+ case "payment":
244
+ return `Your records are found. The charge waits for your Team's outstanding payment: update the payment method in Billing (${BILLING}) and the order continues by itself. If it is still outstanding on ${by}, the order ends with nothing charged.`;
245
+ case "curviate":
246
+ return `Your records are found. The order waits on Curviate's side and continues by itself; there is nothing to do on yours. If the Mailboxes cannot be created by ${by}, the order ends with nothing charged.`;
247
+ case "charge":
248
+ return "Your records are found and the order is being charged. The Mailboxes are created next; this can take a few minutes.";
249
+ }
250
+ if (order.state === "cancelled" && order.reason === "payment_outstanding") return `Your records were found, but your Team's payment stayed outstanding for 14 days, so the order ended. Nothing was charged. Update the payment method in Billing (${BILLING}), then order again.`;
251
+ if (order.state === "cancelled" && order.reason === "held_by_curviate") return "Your records were found, but Curviate could not create the Mailboxes within 14 days, so the order ended. Nothing was charged. You can order again.";
252
+ if (order.state === "cancelled" && order.reason === "domain_taken") return "Another order of Mailboxes from Curviate for this domain was confirmed first, so this order ended. Nothing was charged. Name another domain.";
235
253
  if (order.state === "provisioning") return `The Mailboxes are being set up. If that fails, the charge is undone in full and the order ends cancelled (host_failed). Read it again later: curviate mailbox purchase get ${String(order.id ?? "<id>")}. Do not order again meanwhile.`;
236
254
  if (order.state === "cancelled" && order.reason === "host_failed") return "Setting up these Mailboxes failed, so the charge was undone in full. Nothing to retry.";
237
255
  if (order.state === "cancelled" && order.reason === "currency") return "Your subscription is billed in another currency than Mailboxes from Curviate (US dollars), so the order ended. Nothing was charged. Contact support to move it to the current price, then order.";
@@ -629,14 +647,15 @@ var buyCmd = defineCommand({
629
647
  errors: {
630
648
  SPENDING_CAP_REACHED: "the order would pass the Team's cap on Mailboxes from Curviate; only an Owner raises it, in the dashboard. Nothing was ordered.",
631
649
  INSUFFICIENT_ROLE: "only a Team Owner orders.",
632
- MAILBOX_PURCHASE_TRIAL: "a Team without a paid plan cannot order: on a trial, after a trial that ended without a purchase, never subscribed, or with a payment past due. Buy a seat or update the payment method, then order. Nothing was charged.",
650
+ MAILBOX_PURCHASE_TRIAL: "a Team without a paid plan cannot order: on a trial, after a trial that ended without a purchase, or never subscribed (buy a seat, then order); or a Team with a payment outstanding (update the payment method in Billing, then order). Nothing was charged.",
633
651
  MAILBOX_PURCHASE_PENDING: "this domain already has an order waiting for its records.",
634
- DOMAIN_IN_USE: "the domain already has Mailboxes from Curviate or an order; name another domain.",
652
+ DOMAIN_IN_USE: "the domain already has Mailboxes from Curviate or a confirmed order, of your Team or another; name another domain.",
635
653
  DOMAIN_IS_COMPANY_EMAIL: "the domain your company email runs on; use a separate domain.",
636
654
  INVALID_REQUEST: "among others, a subdomain (mail.acme.com): Mailboxes from Curviate go on a domain of your own, such as acme-mail.com.",
637
- MAILBOX_SALES_PAUSED: "orders cannot be placed at the moment."
655
+ MAILBOX_SALES_PAUSED: "orders cannot be placed at the moment.",
656
+ MAILBOX_NO_ROOM: "Curviate has no room for this many new Mailboxes at the moment (exit 1, as orders paused). Order fewer, or order again later; never in a loop. Nothing was ordered or charged."
638
657
  },
639
- output: ["The order: id, domain, state (awaiting_dns), mailboxes[], records[] (mx, spf, dkim, dmarc, verify, tracking), price (as `curviate mailbox quote`), amount_monthly (the monthly equivalent), expires_at."],
658
+ output: ["The order: id, domain, state (awaiting_dns), waiting_for (records), mailboxes[], records[] (mx, spf, dkim, dmarc, verify, tracking), price (as `curviate mailbox quote`), amount_monthly (the monthly equivalent), expires_at. What to do next, in one line on stderr."],
640
659
  seeAlso: ["curviate mailbox purchase list", "curviate domain check"],
641
660
  examples: [
642
661
  "curviate mailbox buy --domain acme-mail.example --mailbox 'anna:Anna Weber:shared' --yes",
@@ -660,7 +679,7 @@ var quoteCmd = defineCommand({
660
679
  risk: "read",
661
680
  errors: { INSUFFICIENT_ROLE: "only a Team Owner reads the price of Mailboxes from Curviate." },
662
681
  output: [
663
- "`mailboxes`, `currency`, `billing_period` (monthly or annual), `unit_amount` and `amount` (minor units, before tax), `amount_monthly`, `charged` (with_next_invoice, when_records_found or never), `prorated`, `plus_tax`, `orderable`, `not_orderable_reason` (trial: no paid plan or a payment past due; currency: the subscription is billed in another currency than US dollars, contact support; sales_paused), `charge_waits_for` (payment, subscription). The same in one sentence on stderr."
682
+ "`mailboxes`, `currency`, `billing_period` (monthly or annual), `unit_amount` and `amount` (minor units, before tax), `amount_monthly`, `charged` (with_next_invoice, when_records_found or never), `prorated`, `plus_tax`, `orderable`, `not_orderable_reason` (trial: no paid plan, buy a seat first; payment: a payment outstanding, update the payment method in Billing, then order; currency: the subscription is billed in another currency than US dollars, contact support; sales_paused; capacity: Curviate has no room for this many new Mailboxes now, order fewer or later). The same in one sentence on stderr."
664
683
  ],
665
684
  seeAlso: ["curviate mailbox buy", "curviate billing cap"],
666
685
  examples: ["curviate mailbox quote 3", "curviate mailbox quote 3 --json"]
@@ -687,7 +706,7 @@ var purchaseListCmd = defineCommand({
687
706
  var purchaseGetCmd = defineCommand({
688
707
  meta: {
689
708
  name: "get",
690
- description: "One order of Mailboxes from Curviate: its state, the six records to add at your domain exactly as shown (mx, spf, dkim, dmarc, verify, tracking; tracking is optional; the mx row also holds a CNAME that confirms the domain is yours, verify a TXT record that confirms the order is yours) and which are found, and its Mailboxes once active. awaiting_dns waits for the records; provisioning means charged and being set up; active is done; cancelled carries its reason (requested, expired, subscription_ended, payment_failed, spending_cap_reached, currency: the subscription is billed in another currency than US dollars, nothing was charged, contact support; host_failed: setting up failed and the charge was undone in full). charge_unknown is true while Curviate cannot tell whether the order's charge was made: it is being checked, and a charge that was made is given back in full; do not order again. Every role reads. One API call.",
709
+ description: "One order of Mailboxes from Curviate: its state, the six records to add at your domain exactly as shown (mx, spf, dkim, dmarc, verify, tracking; tracking is optional; the mx row also holds a CNAME that confirms the domain is yours, verify a TXT record that confirms the order is yours) and which are found, and its Mailboxes once active. awaiting_dns waits, and waiting_for says for what: records (add them before expires_at), payment (the records are found; the charge waits for your Team's outstanding payment: update the payment method in Billing and it continues by itself), curviate (the records are found; it waits on Curviate's side, nothing to do) or charge (being charged, read it again in a few minutes). cancelled carries its reason (requested, expired: the records were not found in 14 days, subscription_ended, payment_failed, spending_cap_reached, currency: the subscription is billed in another currency than US dollars, nothing was charged, contact support; payment_outstanding: the records were found but the payment stayed outstanding for 14 days, nothing charged, update the payment method then order again; held_by_curviate: the records were found but Curviate could not create the Mailboxes in 14 days, nothing charged, order again; domain_taken: another order for this domain was confirmed first, nothing charged; host_failed: setting up failed and the charge was undone in full). What to do next, in one line on stderr. charge_unknown is true while Curviate cannot tell whether the order's charge was made: it is being checked, and a charge that was made is given back in full; do not order again. Every role reads. One API call.",
691
710
  risk: "read",
692
711
  errors: { MAILBOX_PURCHASE_NOT_FOUND: "no order of your Team has this id (another Team's id answers the same)." },
693
712
  seeAlso: ["curviate mailbox purchase list", "curviate mailbox list"],
@@ -751,7 +770,7 @@ var purchaseCmd = defineCommand({
751
770
  meta: { name: "purchase", description: "Your Team's orders of Mailboxes from Curviate: list, get, check (look the records up now), cancel (an order still waiting for its records)." },
752
771
  subCommands: { list: purchaseListCmd, get: purchaseGetCmd, check: purchaseCheckCmd, cancel: purchaseCancelCmd },
753
772
  async run() {
754
- const { showHelp } = await import("./examples-G4IC5TJU.js");
773
+ const { showHelp } = await import("./examples-FGF6HIAN.js");
755
774
  await showHelp(purchaseCmd, ["curviate", "mailbox", "purchase"]);
756
775
  }
757
776
  });
@@ -759,7 +778,7 @@ var mailboxCommand = defineCommand({
759
778
  meta: { name: "mailbox", description: DESCRIPTIONS["mailbox"] },
760
779
  subCommands: { list: listCmd, get: getCmd, update: updateCmd, pause: pauseCmd, resume: resumeCmd, remove: removeCmd, discover: discoverCmd, connect: connectCmd, reconnect: reconnectCmd, test: testCmd, tests: testsCmd, quote: quoteCmd, buy: buyCmd, purchase: purchaseCmd },
761
780
  async run() {
762
- const { showHelp } = await import("./examples-G4IC5TJU.js");
781
+ const { showHelp } = await import("./examples-FGF6HIAN.js");
763
782
  await showHelp(mailboxCommand, ["curviate", "mailbox"]);
764
783
  }
765
784
  });
@@ -13,21 +13,21 @@ import {
13
13
  runMessageSend,
14
14
  sentAsNotice,
15
15
  willSendAsNotice
16
- } from "./chunk-VMYY6QVQ.js";
16
+ } from "./chunk-CCBUB6WM.js";
17
17
  import "./chunk-UWO2D4HW.js";
18
18
  import "./chunk-UEAX6KUB.js";
19
19
  import "./chunk-Q3ZPRFUX.js";
20
20
  import "./chunk-JY26SUNH.js";
21
- import "./chunk-OJI6MXDZ.js";
21
+ import "./chunk-AR34Y3V6.js";
22
22
  import "./chunk-TCUYH5GO.js";
23
- import "./chunk-I6KOMJVE.js";
24
- import "./chunk-66HEPUAX.js";
25
- import "./chunk-D6IQCQMP.js";
23
+ import "./chunk-3RACWVSE.js";
24
+ import "./chunk-Z67TWG6W.js";
25
+ import "./chunk-U55AXO2J.js";
26
26
  import "./chunk-65UYYCWD.js";
27
27
  import "./chunk-Z647LR4F.js";
28
28
  import "./chunk-FDJMAF7D.js";
29
29
  import "./chunk-ZYURL5VK.js";
30
- import "./chunk-DLYVUDNF.js";
30
+ import "./chunk-KU6ORZ5Z.js";
31
31
  export {
32
32
  guardBareMessageForm,
33
33
  messageCommand,
@@ -6,14 +6,14 @@ import {
6
6
  } from "./chunk-JY26SUNH.js";
7
7
  import {
8
8
  sendInChunks
9
- } from "./chunk-5GNACRVM.js";
9
+ } from "./chunk-W524FTEO.js";
10
10
  import {
11
11
  fail,
12
12
  listFlag,
13
13
  outputOpts,
14
14
  rootClient,
15
15
  usage
16
- } from "./chunk-TU4IAQU7.js";
16
+ } from "./chunk-4K34FHE5.js";
17
17
  import {
18
18
  buildPreviewOutput
19
19
  } from "./chunk-TCUYH5GO.js";
@@ -29,12 +29,12 @@ import {
29
29
  readablePage,
30
30
  rejectPaginationModifiersWithoutAll,
31
31
  streamAll
32
- } from "./chunk-I6KOMJVE.js";
32
+ } from "./chunk-3RACWVSE.js";
33
33
  import {
34
34
  renderSuccess,
35
35
  writeNdjsonItem
36
- } from "./chunk-66HEPUAX.js";
37
- import "./chunk-D6IQCQMP.js";
36
+ } from "./chunk-Z67TWG6W.js";
37
+ import "./chunk-U55AXO2J.js";
38
38
  import {
39
39
  GLOBAL_FLAGS,
40
40
  READ_SINGLE_FLAGS,
@@ -1056,7 +1056,7 @@ var voiceClipCommand = defineCommand({
1056
1056
  meta: { name: "voice-clip", description: DESCRIPTIONS.campaignVoiceClip },
1057
1057
  subCommands: { upload: voiceClipUploadCmd, get: voiceClipGetCmd },
1058
1058
  async run() {
1059
- const { showHelp } = await import("./examples-G4IC5TJU.js");
1059
+ const { showHelp } = await import("./examples-FGF6HIAN.js");
1060
1060
  await showHelp(voiceClipCommand, ["curviate", "campaign", "voice-clip"]);
1061
1061
  }
1062
1062
  });
@@ -1106,7 +1106,7 @@ var attachmentCommand = defineCommand({
1106
1106
  meta: { name: "attachment", description: DESCRIPTIONS.campaignAttachment },
1107
1107
  subCommands: { upload: attachmentUploadCmd, get: attachmentGetCmd },
1108
1108
  async run() {
1109
- const { showHelp } = await import("./examples-G4IC5TJU.js");
1109
+ const { showHelp } = await import("./examples-FGF6HIAN.js");
1110
1110
  await showHelp(attachmentCommand, ["curviate", "campaign", "attachment"]);
1111
1111
  }
1112
1112
  });
@@ -1133,7 +1133,7 @@ var campaignCommand = defineCommand({
1133
1133
  attachment: attachmentCommand
1134
1134
  },
1135
1135
  async run() {
1136
- const { showHelp } = await import("./examples-G4IC5TJU.js");
1136
+ const { showHelp } = await import("./examples-FGF6HIAN.js");
1137
1137
  await showHelp(campaignCommand, ["curviate", "campaign"]);
1138
1138
  }
1139
1139
  });
@@ -13,7 +13,7 @@ import {
13
13
  outputOpts,
14
14
  rootClient,
15
15
  usage
16
- } from "./chunk-TU4IAQU7.js";
16
+ } from "./chunk-4K34FHE5.js";
17
17
  import {
18
18
  buildPreviewOutput
19
19
  } from "./chunk-TCUYH5GO.js";
@@ -27,12 +27,12 @@ import {
27
27
  readablePage,
28
28
  rejectPaginationModifiersWithoutAll,
29
29
  streamAll
30
- } from "./chunk-I6KOMJVE.js";
30
+ } from "./chunk-3RACWVSE.js";
31
31
  import {
32
32
  renderSuccess,
33
33
  writeNdjsonItem
34
- } from "./chunk-66HEPUAX.js";
35
- import "./chunk-D6IQCQMP.js";
34
+ } from "./chunk-Z67TWG6W.js";
35
+ import "./chunk-U55AXO2J.js";
36
36
  import {
37
37
  GLOBAL_FLAGS,
38
38
  WRITE_SINGLE_FLAGS,
@@ -225,7 +225,7 @@ var networkCommand = defineCommand({
225
225
  meta: { name: "network", description: DESCRIPTIONS.network },
226
226
  subCommands: { list: listCmd, status: statusCmd, export: exportCmd, resync: resyncCmd },
227
227
  async run() {
228
- const { showHelp } = await import("./examples-G4IC5TJU.js");
228
+ const { showHelp } = await import("./examples-FGF6HIAN.js");
229
229
  await showHelp(networkCommand, ["curviate", "network"]);
230
230
  }
231
231
  });
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-Q3ZPRFUX.js";
6
6
  import {
7
7
  requireAccount
8
- } from "./chunk-OJI6MXDZ.js";
8
+ } from "./chunk-AR34Y3V6.js";
9
9
  import {
10
10
  buildPreviewOutput
11
11
  } from "./chunk-TCUYH5GO.js";
@@ -16,17 +16,17 @@ import {
16
16
  readablePage,
17
17
  rejectPaginationModifiersWithoutAll,
18
18
  streamAll
19
- } from "./chunk-I6KOMJVE.js";
19
+ } from "./chunk-3RACWVSE.js";
20
20
  import {
21
21
  renderError,
22
22
  renderSuccess,
23
23
  renderUnexpectedError,
24
24
  writeNdjsonItem
25
- } from "./chunk-66HEPUAX.js";
25
+ } from "./chunk-Z67TWG6W.js";
26
26
  import {
27
27
  createClient,
28
28
  resolveEffectiveConfig
29
- } from "./chunk-D6IQCQMP.js";
29
+ } from "./chunk-U55AXO2J.js";
30
30
  import {
31
31
  GLOBAL_FLAGS,
32
32
  WRITE_SINGLE_FLAGS,
@@ -36,7 +36,7 @@ import {
36
36
  DESCRIPTIONS
37
37
  } from "./chunk-Z647LR4F.js";
38
38
  import "./chunk-ZYURL5VK.js";
39
- import "./chunk-DLYVUDNF.js";
39
+ import "./chunk-KU6ORZ5Z.js";
40
40
 
41
41
  // src/commands/notification.ts
42
42
  import { defineCommand } from "citty";
@@ -57,7 +57,7 @@ function resolveOutputOpts(flags) {
57
57
  async function handleSdkError(err, outOpts, out) {
58
58
  const { CurviateError } = await import("@curviate/sdk");
59
59
  if (err instanceof CurviateError) {
60
- const { getExitCode } = await import("./exit-codes-MMGNZCJ5.js");
60
+ const { getExitCode } = await import("./exit-codes-MSUALZX5.js");
61
61
  renderError(err, outOpts, out);
62
62
  process.exit(getExitCode(err));
63
63
  }
@@ -4,7 +4,7 @@ import {
4
4
  outputOpts,
5
5
  rootClient,
6
6
  usage
7
- } from "./chunk-TU4IAQU7.js";
7
+ } from "./chunk-4K34FHE5.js";
8
8
  import {
9
9
  buildPreviewOutput
10
10
  } from "./chunk-TCUYH5GO.js";
@@ -19,12 +19,12 @@ import {
19
19
  readablePage,
20
20
  rejectPaginationModifiersWithoutAll,
21
21
  streamAll
22
- } from "./chunk-I6KOMJVE.js";
22
+ } from "./chunk-3RACWVSE.js";
23
23
  import {
24
24
  renderSuccess,
25
25
  writeNdjsonItem
26
- } from "./chunk-66HEPUAX.js";
27
- import "./chunk-D6IQCQMP.js";
26
+ } from "./chunk-Z67TWG6W.js";
27
+ import "./chunk-U55AXO2J.js";
28
28
  import {
29
29
  GLOBAL_FLAGS,
30
30
  READ_SINGLE_FLAGS,
@@ -107,7 +107,7 @@ var update = (body) => async (c, f) => {
107
107
  if (notFoundError) {
108
108
  process.stderr.write(`error: ${notFound.length} of ${all.length} notifications were not found (not yours, or already gone): ${notFound.join(", ")}. The others were applied.
109
109
  `);
110
- const { getExitCode } = await import("./exit-codes-MMGNZCJ5.js");
110
+ const { getExitCode } = await import("./exit-codes-MSUALZX5.js");
111
111
  process.exit(getExitCode(notFoundError));
112
112
  }
113
113
  };
@@ -227,7 +227,7 @@ var notificationsCommand = defineCommand({
227
227
  meta: { name: "notification", description: DESCRIPTIONS.notification },
228
228
  subCommands: { list: listCmd, count: countCmd, read: readCmd, "read-all": readAllCmd, archive: archiveCmd, unarchive: unarchiveCmd },
229
229
  async run() {
230
- const { showHelp } = await import("./examples-G4IC5TJU.js");
230
+ const { showHelp } = await import("./examples-FGF6HIAN.js");
231
231
  await showHelp(notificationsCommand, ["curviate", "notification"]);
232
232
  }
233
233
  });
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  resolveMemberOrMeProviderId
4
- } from "./chunk-LJ4KKQX3.js";
4
+ } from "./chunk-76OVMT7O.js";
5
5
  import "./chunk-UEAX6KUB.js";
6
6
  import {
7
7
  AS_ACCOUNT,
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-JY26SUNH.js";
16
16
  import {
17
17
  requireAccount
18
- } from "./chunk-OJI6MXDZ.js";
18
+ } from "./chunk-AR34Y3V6.js";
19
19
  import {
20
20
  buildPreviewOutput
21
21
  } from "./chunk-TCUYH5GO.js";
@@ -27,17 +27,17 @@ import {
27
27
  readablePage,
28
28
  rejectPaginationModifiersWithoutAll,
29
29
  streamAll
30
- } from "./chunk-I6KOMJVE.js";
30
+ } from "./chunk-3RACWVSE.js";
31
31
  import {
32
32
  renderError,
33
33
  renderSuccess,
34
34
  renderUnexpectedError,
35
35
  writeNdjsonItem
36
- } from "./chunk-66HEPUAX.js";
36
+ } from "./chunk-Z67TWG6W.js";
37
37
  import {
38
38
  createClient,
39
39
  resolveEffectiveConfig
40
- } from "./chunk-D6IQCQMP.js";
40
+ } from "./chunk-U55AXO2J.js";
41
41
  import {
42
42
  GLOBAL_FLAGS,
43
43
  READ_SINGLE_FLAGS,
@@ -51,7 +51,7 @@ import {
51
51
  import {
52
52
  resolveTextOrStdin
53
53
  } from "./chunk-ZYURL5VK.js";
54
- import "./chunk-DLYVUDNF.js";
54
+ import "./chunk-KU6ORZ5Z.js";
55
55
 
56
56
  // src/commands/post.ts
57
57
  import { defineCommand } from "citty";
@@ -89,7 +89,7 @@ function normalizeAttachPaths(attach) {
89
89
  async function handleSdkError(err, outOpts, out) {
90
90
  const { CurviateError } = await import("@curviate/sdk");
91
91
  if (err instanceof CurviateError) {
92
- const { getExitCode } = await import("./exit-codes-MMGNZCJ5.js");
92
+ const { getExitCode } = await import("./exit-codes-MSUALZX5.js");
93
93
  renderError(err, outOpts, out);
94
94
  process.exit(getExitCode(err));
95
95
  }
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  resolveMemberOrMeProviderId,
9
9
  resolveMemberProviderId
10
- } from "./chunk-LJ4KKQX3.js";
10
+ } from "./chunk-76OVMT7O.js";
11
11
  import {
12
12
  resolveIdentifier
13
13
  } from "./chunk-UEAX6KUB.js";
@@ -29,7 +29,7 @@ import {
29
29
  } from "./chunk-JY26SUNH.js";
30
30
  import {
31
31
  requireAccount
32
- } from "./chunk-OJI6MXDZ.js";
32
+ } from "./chunk-AR34Y3V6.js";
33
33
  import {
34
34
  buildPreviewOutput
35
35
  } from "./chunk-TCUYH5GO.js";
@@ -42,17 +42,17 @@ import {
42
42
  readablePage,
43
43
  rejectPaginationModifiersWithoutAll,
44
44
  streamAll
45
- } from "./chunk-I6KOMJVE.js";
45
+ } from "./chunk-3RACWVSE.js";
46
46
  import {
47
47
  renderError,
48
48
  renderSuccess,
49
49
  renderUnexpectedError,
50
50
  writeNdjsonItem
51
- } from "./chunk-66HEPUAX.js";
51
+ } from "./chunk-Z67TWG6W.js";
52
52
  import {
53
53
  createClient,
54
54
  resolveEffectiveConfig
55
- } from "./chunk-D6IQCQMP.js";
55
+ } from "./chunk-U55AXO2J.js";
56
56
  import {
57
57
  GLOBAL_FLAGS,
58
58
  READ_SINGLE_FLAGS,
@@ -63,7 +63,7 @@ import {
63
63
  DESCRIPTIONS
64
64
  } from "./chunk-Z647LR4F.js";
65
65
  import "./chunk-ZYURL5VK.js";
66
- import "./chunk-DLYVUDNF.js";
66
+ import "./chunk-KU6ORZ5Z.js";
67
67
 
68
68
  // src/commands/profile.ts
69
69
  import { defineCommand } from "citty";
@@ -191,7 +191,7 @@ async function runProfileMe(client, flags, out) {
191
191
  } catch (err) {
192
192
  const { CurviateError } = await import("@curviate/sdk");
193
193
  if (err instanceof CurviateError) {
194
- const { getExitCode } = await import("./exit-codes-MMGNZCJ5.js");
194
+ const { getExitCode } = await import("./exit-codes-MSUALZX5.js");
195
195
  renderError(err, outOpts, out);
196
196
  process.exit(getExitCode(err));
197
197
  }
@@ -218,7 +218,7 @@ async function runProfileMe(client, flags, out) {
218
218
  } catch (err) {
219
219
  const { CurviateError } = await import("@curviate/sdk");
220
220
  if (err instanceof CurviateError) {
221
- const { getExitCode } = await import("./exit-codes-MMGNZCJ5.js");
221
+ const { getExitCode } = await import("./exit-codes-MSUALZX5.js");
222
222
  renderError(err, outOpts, out);
223
223
  process.exit(getExitCode(err));
224
224
  }
@@ -350,7 +350,7 @@ async function runProfileGet(client, flags, out) {
350
350
  } catch (err) {
351
351
  const { CurviateError } = await import("@curviate/sdk");
352
352
  if (err instanceof CurviateError) {
353
- const { getExitCode } = await import("./exit-codes-MMGNZCJ5.js");
353
+ const { getExitCode } = await import("./exit-codes-MSUALZX5.js");
354
354
  renderError(err, outOpts, out);
355
355
  process.exit(getExitCode(err));
356
356
  }
@@ -388,7 +388,7 @@ async function runProfileRelations(client, flags, out) {
388
388
  } catch (err) {
389
389
  const { CurviateError } = await import("@curviate/sdk");
390
390
  if (err instanceof CurviateError) {
391
- const { getExitCode } = await import("./exit-codes-MMGNZCJ5.js");
391
+ const { getExitCode } = await import("./exit-codes-MSUALZX5.js");
392
392
  renderError(err, outOpts, out);
393
393
  process.exit(getExitCode(err));
394
394
  }
@@ -428,7 +428,7 @@ async function runProfileEndorse(client, flags, out) {
428
428
  async function handleSdkError(err, outOpts, out) {
429
429
  const { CurviateError } = await import("@curviate/sdk");
430
430
  if (err instanceof CurviateError) {
431
- const { getExitCode } = await import("./exit-codes-MMGNZCJ5.js");
431
+ const { getExitCode } = await import("./exit-codes-MSUALZX5.js");
432
432
  renderError(err, outOpts, out);
433
433
  process.exit(getExitCode(err));
434
434
  }
@@ -27,7 +27,7 @@ import {
27
27
  } from "./chunk-JY26SUNH.js";
28
28
  import {
29
29
  requireAccount
30
- } from "./chunk-OJI6MXDZ.js";
30
+ } from "./chunk-AR34Y3V6.js";
31
31
  import {
32
32
  buildPreviewOutput
33
33
  } from "./chunk-TCUYH5GO.js";
@@ -39,19 +39,19 @@ import {
39
39
  readablePage,
40
40
  rejectPaginationModifiersWithoutAll,
41
41
  streamAll
42
- } from "./chunk-I6KOMJVE.js";
42
+ } from "./chunk-3RACWVSE.js";
43
43
  import {
44
44
  isJsonMode,
45
45
  renderError,
46
46
  renderSuccess,
47
47
  renderUnexpectedError,
48
48
  writeNdjsonItem
49
- } from "./chunk-66HEPUAX.js";
49
+ } from "./chunk-Z67TWG6W.js";
50
50
  import {
51
51
  createClient,
52
52
  downloadBinary,
53
53
  resolveEffectiveConfig
54
- } from "./chunk-D6IQCQMP.js";
54
+ } from "./chunk-U55AXO2J.js";
55
55
  import {
56
56
  GLOBAL_FLAGS,
57
57
  NON_STREAM_FLAGS,
@@ -74,7 +74,7 @@ import {
74
74
  } from "./chunk-JKOQX46J.js";
75
75
  import "./chunk-FDJMAF7D.js";
76
76
  import "./chunk-ZYURL5VK.js";
77
- import "./chunk-DLYVUDNF.js";
77
+ import "./chunk-KU6ORZ5Z.js";
78
78
 
79
79
  // src/commands/recruiter.ts
80
80
  import { defineCommand } from "citty";
@@ -99,7 +99,7 @@ function normalizeAttachPaths(attach) {
99
99
  async function handleSdkError(err, outOpts, out) {
100
100
  const { CurviateError } = await import("@curviate/sdk");
101
101
  if (err instanceof CurviateError) {
102
- const { getExitCode } = await import("./exit-codes-MMGNZCJ5.js");
102
+ const { getExitCode } = await import("./exit-codes-MSUALZX5.js");
103
103
  renderError(err, outOpts, out);
104
104
  process.exit(getExitCode(err));
105
105
  }
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-JY26SUNH.js";
20
20
  import {
21
21
  requireAccount
22
- } from "./chunk-OJI6MXDZ.js";
22
+ } from "./chunk-AR34Y3V6.js";
23
23
  import {
24
24
  buildPreviewOutput
25
25
  } from "./chunk-TCUYH5GO.js";
@@ -31,17 +31,17 @@ import {
31
31
  readablePage,
32
32
  rejectPaginationModifiersWithoutAll,
33
33
  streamAll
34
- } from "./chunk-I6KOMJVE.js";
34
+ } from "./chunk-3RACWVSE.js";
35
35
  import {
36
36
  renderError,
37
37
  renderSuccess,
38
38
  renderUnexpectedError,
39
39
  writeNdjsonItem
40
- } from "./chunk-66HEPUAX.js";
40
+ } from "./chunk-Z67TWG6W.js";
41
41
  import {
42
42
  createClient,
43
43
  resolveEffectiveConfig
44
- } from "./chunk-D6IQCQMP.js";
44
+ } from "./chunk-U55AXO2J.js";
45
45
  import {
46
46
  GLOBAL_FLAGS,
47
47
  READ_SINGLE_FLAGS,
@@ -56,7 +56,7 @@ import {
56
56
  import "./chunk-JKOQX46J.js";
57
57
  import "./chunk-FDJMAF7D.js";
58
58
  import "./chunk-ZYURL5VK.js";
59
- import "./chunk-DLYVUDNF.js";
59
+ import "./chunk-KU6ORZ5Z.js";
60
60
 
61
61
  // src/commands/sales-nav.ts
62
62
  import { defineCommand } from "citty";
@@ -80,7 +80,7 @@ function normalizeAttachPaths(attach) {
80
80
  async function handleSdkError(err, outOpts, out) {
81
81
  const { CurviateError } = await import("@curviate/sdk");
82
82
  if (err instanceof CurviateError) {
83
- const { getExitCode } = await import("./exit-codes-MMGNZCJ5.js");
83
+ const { getExitCode } = await import("./exit-codes-MSUALZX5.js");
84
84
  renderError(err, outOpts, out);
85
85
  process.exit(getExitCode(err));
86
86
  }