@curviate/cli 0.58.0 → 0.59.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 (58) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/{account-GSL6BCNX.js → account-EUHYWIDH.js} +5 -5
  3. package/dist/{analytics-4FUMJSMC.js → analytics-SQQIMSLF.js} +5 -5
  4. package/dist/{beta-consent-EC2QF6CM.js → beta-consent-DFS7YMZR.js} +3 -3
  5. package/dist/{billing-STRNXA4H.js → billing-3FRIQFY3.js} +5 -5
  6. package/dist/{chunk-KUVJM5CP.js → chunk-5AJS2V4T.js} +1 -1
  7. package/dist/{chunk-WGGZWJPO.js → chunk-72PYX57P.js} +10 -10
  8. package/dist/{chunk-7F6B7P32.js → chunk-7CSXYRSO.js} +6 -6
  9. package/dist/{chunk-5OAJ4D65.js → chunk-F3FEY4D5.js} +1 -1
  10. package/dist/{chunk-MLZSXQZC.js → chunk-HG2G5OAZ.js} +1 -1
  11. package/dist/{chunk-3IL3D5IZ.js → chunk-HJ7YY4HE.js} +1 -1
  12. package/dist/{chunk-PBJZQZPO.js → chunk-KD2XY7RS.js} +1 -1
  13. package/dist/{chunk-XXB4MAX3.js → chunk-QRTMRTKA.js} +6 -5
  14. package/dist/{chunk-KS4I4B3Z.js → chunk-R2MIDSMB.js} +4 -4
  15. package/dist/{chunk-WITIJCUU.js → chunk-TNLIV3SW.js} +5 -5
  16. package/dist/{chunk-CQHCPZ5I.js → chunk-VKHAL6WT.js} +1 -1
  17. package/dist/{chunk-XDPU2YAF.js → chunk-ZC4S4B32.js} +1 -1
  18. package/dist/cli.js +26 -26
  19. package/dist/{comment-MUELYZYN.js → comment-DA6XPY4F.js} +5 -5
  20. package/dist/{company-5N7CXORR.js → company-IWVNUBWS.js} +5 -5
  21. package/dist/{company-record-HWLTP4TV.js → company-record-ZJMW3NC6.js} +8 -8
  22. package/dist/{config-PI7JMQ2L.js → config-P4HKPOCW.js} +2 -2
  23. package/dist/{connect-NNZOOPWV.js → connect-AELFEVR7.js} +4 -4
  24. package/dist/{contact-VNG7HRCN.js → contact-FHN3A7MJ.js} +7 -7
  25. package/dist/{contact-groups-6JF7VX6Q.js → contact-groups-HNZTN6I6.js} +7 -7
  26. package/dist/{contact-import-TMJWY2VD.js → contact-import-PJFRLCHR.js} +8 -8
  27. package/dist/{core-ZRJY3HTF.js → core-R7R44CVA.js} +17 -17
  28. package/dist/{do-not-contact-GDVIUNMT.js → do-not-contact-KSH36NMT.js} +8 -8
  29. package/dist/{doctor-ZNAR5AZ2.js → doctor-BEO4E227.js} +3 -3
  30. package/dist/{domain-62YUYVDW.js → domain-HF3WXWUT.js} +4 -4
  31. package/dist/{draft-ED6RL67K.js → draft-2KBRHBBH.js} +3 -3
  32. package/dist/{enrollment-LN3Z3RC5.js → enrollment-QPE54QQN.js} +4 -4
  33. package/dist/{export-S6D4FEAG.js → export-J4JQRE2A.js} +3 -3
  34. package/dist/{feed-AC7HWUCD.js → feed-PHF2ROIT.js} +4 -4
  35. package/dist/{group-6N37Q5ZS.js → group-SLXDOCHV.js} +4 -4
  36. package/dist/{inbox-JFRBROQ2.js → inbox-IDILZLPC.js} +4 -4
  37. package/dist/{inboxes-IBZHZKSD.js → inboxes-QLP5PWTS.js} +4 -4
  38. package/dist/{incoming-YDRPPO24.js → incoming-XG6IBPU6.js} +4 -4
  39. package/dist/{job-CSRHIFZM.js → job-WUYHK6OX.js} +4 -4
  40. package/dist/{login-M7ZLOR2U.js → login-3RIU257N.js} +2 -2
  41. package/dist/{mailbox-E2K3I2VH.js → mailbox-CJRCYZGL.js} +77 -17
  42. package/dist/{message-SX6RDGWP.js → message-EBVO4ZZI.js} +5 -5
  43. package/dist/{motion-4HH3OFI6.js → motion-7XQ3E4GI.js} +5 -5
  44. package/dist/{network-JQYLSQDH.js → network-X5XL44GB.js} +4 -4
  45. package/dist/{notification-ZAQM463D.js → notification-QNGHG5EO.js} +4 -4
  46. package/dist/{notifications-N55F3DP3.js → notifications-MOLNELNE.js} +4 -4
  47. package/dist/{post-SIHHJX3P.js → post-XYSFN5OP.js} +5 -5
  48. package/dist/{profile-VBHX3QGP.js → profile-7LJLU4Y5.js} +5 -5
  49. package/dist/{recruiter-7AGFKQPI.js → recruiter-ALQNIRYR.js} +4 -4
  50. package/dist/{sales-nav-ADVFBKWB.js → sales-nav-HYZXNYCC.js} +4 -4
  51. package/dist/{search-THJFPGOH.js → search-DNCPCFRR.js} +4 -4
  52. package/dist/{setup-D6D7SNND.js → setup-QI5FW6VD.js} +3 -3
  53. package/dist/{signal-TGSF7WEP.js → signal-J2TLIT47.js} +4 -4
  54. package/dist/{team-MVNHCWJP.js → team-PPPCJ5HT.js} +4 -4
  55. package/dist/{tier-DAF7Y2HN.js → tier-NFWWW34H.js} +4 -4
  56. package/dist/{unibox-7B6B4SXB.js → unibox-52C7G5LK.js} +43 -19
  57. package/dist/{webhook-NUVSTDXF.js → webhook-J3JYMSY2.js} +4 -4
  58. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  confirmMoney
4
- } from "./chunk-7F6B7P32.js";
4
+ } from "./chunk-7CSXYRSO.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-5OAJ4D65.js";
14
+ } from "./chunk-F3FEY4D5.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-KUVJM5CP.js";
29
+ } from "./chunk-5AJS2V4T.js";
30
30
  import {
31
31
  renderSuccess,
32
32
  writeNdjsonItem
33
33
  } from "./chunk-QM57YDJE.js";
34
34
  import "./chunk-IB6ARI3R.js";
35
- import "./chunk-PBJZQZPO.js";
35
+ import "./chunk-KD2XY7RS.js";
36
36
  import {
37
37
  GLOBAL_FLAGS,
38
38
  READ_SINGLE_FLAGS,
@@ -41,7 +41,7 @@ import {
41
41
  } from "./chunk-QLKGOIWS.js";
42
42
  import {
43
43
  DESCRIPTIONS
44
- } from "./chunk-XDPU2YAF.js";
44
+ } from "./chunk-ZC4S4B32.js";
45
45
  import {
46
46
  readFileFlag
47
47
  } from "./chunk-JKOQX46J.js";
@@ -55,7 +55,6 @@ import {
55
55
  import { defineCommand } from "citty";
56
56
  var TEST_BODY_MAX_BYTES = 64 * 1024;
57
57
  var PURCHASE_STATES = ["awaiting_dns", "provisioning", "active", "cancelled"];
58
- var MAILBOX_PRICE_CENTS = 500;
59
58
  var STATES = ["connected", "ramping", "paused", "paused_by_bounces", "paused_by_provider", "reconnect_needed"];
60
59
  var SIGNATURE_MAX_BYTES = 64 * 1024;
61
60
  var online = (fn) => async ({ args }) => {
@@ -165,6 +164,29 @@ function parseMailboxSpec(raw) {
165
164
  return { local_part: raw.slice(0, at), display_name: name, ...sendsFor ? { sends_for: sendsFor } : {} };
166
165
  }
167
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
+ var money = (minor, currency) => new Intl.NumberFormat("en-US", { style: "currency", currency: currency.toUpperCase() }).format(minor / 100);
168
+ function priceLine(p) {
169
+ const n = p.mailboxes ?? 0;
170
+ const cur = p.currency ?? "usd";
171
+ const per = p.billing_period === "annual" ? "a year" : "a month";
172
+ 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
+ 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" ? "a Team on a trial cannot order" : p.not_orderable_reason === "sales_paused" ? "orders cannot be placed at the moment" : "orders are closed"}.` : "";
176
+ return head + when + waits + closed;
177
+ }
178
+ async function runQuote(c, f) {
179
+ const n = /^\d+$/.test(f.count ?? "") ? Number(f.count) : NaN;
180
+ if (!(n >= 1 && n <= 50)) usage("the count must be a whole number from 1 to 50: how many Mailboxes to price.");
181
+ if (f.preview) return preview("mailboxes.purchases.quote", { mailboxes: n });
182
+ try {
183
+ const q = await c.mailboxes.purchases.quote(n);
184
+ renderSuccess(readableObject(q), outputOpts(f), process);
185
+ process.stderr.write(priceLine(q) + "\n");
186
+ } catch (err) {
187
+ await fail(err, f);
188
+ }
189
+ }
168
190
  async function runBuy(c, f) {
169
191
  const domain = f.domain ?? "";
170
192
  if (domain.trim() === "") usage("--domain is required: the domain the Mailboxes send from, one your Team owns.");
@@ -172,12 +194,32 @@ async function runBuy(c, f) {
172
194
  if (specs.length === 0) usage('pass at least one --mailbox local:"Name", up to 50.');
173
195
  if (specs.length > 50) usage("at most 50 --mailbox in one order.");
174
196
  const body = { domain, mailboxes: specs.map(parseMailboxSpec) };
197
+ const expect = f["expect-amount"] === void 0 ? void 0 : intFlag("expect-amount", f["expect-amount"], 0);
175
198
  if (f.preview) return preview("mailboxes.purchases.create", {}, body);
176
199
  const n = specs.length;
177
- const monthly = `$${(n * MAILBOX_PRICE_CENTS / 100).toFixed(2)}`;
178
- if (!await confirmMoney(f, `Order ${n} Mailbox${n === 1 ? "" : "es"} on ${domain} at ${monthly} a month? Nothing is charged until the records are found at your domain.`, "Each Mailbox costs $5 a month.")) return;
200
+ let agreed = expect;
179
201
  try {
180
- renderSuccess(readableObject(await c.mailboxes.purchases.create(body)), outputOpts(f), process);
202
+ if (!f.yes) {
203
+ if (!process.stdin.isTTY) usage(`this orders Mailboxes that cost money: pass --yes to confirm (no terminal to ask at). Read the price first with: curviate mailbox quote ${n}`);
204
+ const q = await c.mailboxes.purchases.quote(n);
205
+ agreed ?? (agreed = q.amount);
206
+ if (!await confirmMoney(f, `Order on ${domain}? ${priceLine(q)}`)) return;
207
+ }
208
+ const order = await c.mailboxes.purchases.create(body);
209
+ renderSuccess(readableObject(order), outputOpts(f), process);
210
+ if (agreed !== void 0 && order.price?.amount !== agreed) {
211
+ 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
+ `);
213
+ try {
214
+ await c.mailboxes.purchases.cancel(order.id);
215
+ process.stderr.write(`Cancelled ${order.id}; nothing was charged. Read the price again with: curviate mailbox quote ${n}
216
+ `);
217
+ } catch (cancelErr) {
218
+ process.stderr.write(`Cancelling ${order.id} failed: ${cancelErr.message} Do not order again; read it with: curviate mailbox purchase get ${order.id}
219
+ `);
220
+ }
221
+ process.exit(11);
222
+ }
181
223
  } catch (err) {
182
224
  const { CurviateError } = await import("@curviate/sdk");
183
225
  if (err instanceof CurviateError && err.code === "SPENDING_CAP_REACHED") {
@@ -333,7 +375,7 @@ var listCmd = defineCommand({
333
375
  var getCmd = defineCommand({
334
376
  meta: {
335
377
  name: "get",
336
- description: "One Mailbox: address, state, Sends for and its suggestion, daily cap (and cap_lowered_to when a spam reading lowered it), sent today, bounces over 7 days, signature, which Accounts and Campaigns used it, warm_up (state, day, reason: paused_by_curviate, reconnect_needed, trial, app_password, warm_up_app, allowance, address_check: the address is being confirmed, nothing to do, or address_unconfirmed: check the connection settings, Curviate tries again), reputation (0 to 100, or null while there is not enough to say: gathering, never 0), and landing: where its own warm-up mail lands per receiving provider over 7 days (google, microsoft, other: inbox, partly_spam, spam, or gathering while there is not enough to say). Every role reads.",
378
+ description: "One Mailbox: address, state, Sends for and its suggestion, daily cap (and cap_lowered_to when a spam reading lowered it), sent today, bounces over 7 days, signature, which Accounts and Campaigns used it, warm_up (state: off, warming (day N; past its days it stays warming until ready), ready (the warm-up's bar is met; sending does not change) or waiting; day; reason: paused_by_curviate, reconnect_needed, trial, app_password, warm_up_app, allowance, address_check: the address is being confirmed, nothing to do, or address_unconfirmed: check the connection settings, Curviate tries again), reputation (0 to 100, or null: with reputation_reason warm_up_off there is no score because warm-up is off, else gathering, never 0), and landing: where its own warm-up mail lands per receiving provider over 7 days (google, microsoft, other: inbox, partly_spam, spam, or gathering while there is not enough to say; landing.reason warm_up_off: warm-up is off, nothing to read). Every role reads.",
337
379
  risk: "read",
338
380
  errors: NOT_FOUND,
339
381
  seeAlso: ["curviate mailbox list", "curviate mailbox update"],
@@ -420,7 +462,7 @@ var resumeCmd = defineCommand({
420
462
  var removeCmd = defineCommand({
421
463
  meta: {
422
464
  name: "remove",
423
- description: `Remove a Mailbox and delete its stored credentials in one step. Changes no seat count. Connect it again to use the address afterwards. A Mailbox from Curviate is an Owner's to remove: it is deleted with its mail, and its $5 a month stops at the end of the billing period. MAILBOX_STATE_CONFLICT (exit 8) "Too many Mailbox changes are still settling with billing" changed nothing: try again later, never in a loop.`,
465
+ description: `Remove a Mailbox and delete its stored credentials in one step. Changes no seat count. Connect it again to use the address afterwards. A Mailbox from Curviate is an Owner's to remove: it is deleted with its mail, and its charge stops at the end of the billing period. MAILBOX_STATE_CONFLICT (exit 8) "Too many Mailbox changes are still settling with billing" changed nothing: the person may try again later; never resend it on your own.`,
424
466
  risk: "high",
425
467
  rules: {
426
468
  changes: "The Mailbox and its credentials are deleted; emails due from it are not sent. A Mailbox from Curviate is deleted with its mail; its charge ends at the period's end.",
@@ -572,10 +614,10 @@ var testsCmd = defineCommand({
572
614
  var buyCmd = defineCommand({
573
615
  meta: {
574
616
  name: "buy",
575
- description: "Order 1 to 50 Mailboxes from Curviate on one domain your Team owns, $5 a month each, warm-up included. The order waits in awaiting_dns until the records it lists (mx, spf, dkim, dmarc, and tracking, which is optional) are found at your domain; nothing is charged before, and an order still waiting after 14 days is cancelled. Team Owners only. An order through an API key counts under the Team's cap on Mailboxes from Curviate (`curviate billing cap` shows mailbox_cap), which only an Owner raises, in the dashboard: from 80% of it the order carries a SPENDING_CAP_NEAR notice, past it the order is refused (exit 5) and nothing is ordered. Read orders with `curviate mailbox purchase list`.",
617
+ description: "Order 1 to 50 Mailboxes from Curviate on one domain your Team owns, warm-up included. The price is your Team's, read from the server: `curviate mailbox quote <count>`, which a terminal prompt also shows; --expect-amount <amount> (the quote's `amount`) cancels the order at once when its `price` differs (exit 11). The order waits in awaiting_dns until the records it lists (mx, spf, dkim, dmarc, verify, and tracking, which is optional) are found at your domain, each added exactly as shown; nothing is charged before, and an order still waiting after 14 days is cancelled. Team Owners only. An order through an API key counts under the Team's cap on Mailboxes from Curviate (`curviate billing cap` shows mailbox_cap), which only an Owner raises, in the dashboard: from 80% of it the order carries a SPENDING_CAP_NEAR notice, past it the order is refused (exit 5) and nothing is ordered. Read orders with `curviate mailbox purchase list`.",
576
618
  risk: "high",
577
619
  rules: {
578
- changes: "An order in awaiting_dns; once its records are found, the Mailboxes are created and $5 a month each is charged.",
620
+ changes: "An order in awaiting_dns; once its records are found, the Mailboxes are created and charged as its `price` says (a yearly Team pays the rest of its year that day).",
579
621
  visible_to: "Your Team.",
580
622
  budget_rows: [],
581
623
  retry: "Never retried. A second order for the same domain while one waits is refused (MAILBOX_PURCHASE_PENDING).",
@@ -589,9 +631,10 @@ var buyCmd = defineCommand({
589
631
  MAILBOX_PURCHASE_PENDING: "this domain already has an order waiting for its records.",
590
632
  DOMAIN_IN_USE: "the domain already has Mailboxes from Curviate or an order; name another domain.",
591
633
  DOMAIN_IS_COMPANY_EMAIL: "the domain your company email runs on; use a separate domain.",
634
+ INVALID_REQUEST: "among others, a subdomain (mail.acme.com): Mailboxes from Curviate go on a domain of your own, such as acme-mail.com.",
592
635
  MAILBOX_SALES_PAUSED: "orders cannot be placed at the moment."
593
636
  },
594
- output: ["The order: id, domain, state (awaiting_dns), mailboxes[], records[] (mx, spf, dkim, dmarc, tracking), amount_monthly, expires_at."],
637
+ 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."],
595
638
  seeAlso: ["curviate mailbox purchase list", "curviate domain check"],
596
639
  examples: [
597
640
  "curviate mailbox buy --domain acme-mail.example --mailbox 'anna:Anna Weber:shared' --yes",
@@ -603,10 +646,26 @@ var buyCmd = defineCommand({
603
646
  ...WRITE_SINGLE_FLAGS,
604
647
  domain: { type: "string", description: "The domain the Mailboxes send from, one your Team owns and not the one your company email runs on." },
605
648
  mailbox: { type: "string", description: "One Mailbox, repeatable up to 50: local:Name, the part before the @ and the name recipients see; add :acc_... (the Account it sends for) or :shared at the end." },
606
- yes: { type: "boolean", description: "Confirm the order without a prompt (needed when no terminal can ask)." }
649
+ yes: { type: "boolean", description: "Confirm the order without a prompt (needed when no terminal can ask)." },
650
+ "expect-amount": { type: "string", description: "The quote's `amount` the person agreed to (minor units): an order whose `price.amount` differs is cancelled at once, exit 11." }
607
651
  },
608
652
  run: online(runBuy)
609
653
  });
654
+ var quoteCmd = defineCommand({
655
+ meta: {
656
+ name: "quote",
657
+ description: "What a number of Mailboxes from Curviate cost your Team, read now from the price the charge uses: the amount for your Team's billing period (a yearly Team pays the rest of its year the day the records are found), when it is charged, and whether your Team can order now. Show this to the person before `curviate mailbox buy`, never a price of your own. Charges nothing. Owners only.",
658
+ risk: "read",
659
+ errors: { INSUFFICIENT_ROLE: "only a Team Owner reads the price of Mailboxes from Curviate." },
660
+ output: [
661
+ "`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, sales_paused), `charge_waits_for` (payment, subscription). The same in one sentence on stderr."
662
+ ],
663
+ seeAlso: ["curviate mailbox buy", "curviate billing cap"],
664
+ examples: ["curviate mailbox quote 3", "curviate mailbox quote 3 --json"]
665
+ },
666
+ args: { ...readOnly(READ_SINGLE_FLAGS), count: { type: "positional", description: "How many Mailboxes, 1 to 50." } },
667
+ run: online(runQuote)
668
+ });
610
669
  var purchaseListCmd = defineCommand({
611
670
  meta: {
612
671
  name: "list",
@@ -626,7 +685,7 @@ var purchaseListCmd = defineCommand({
626
685
  var purchaseGetCmd = defineCommand({
627
686
  meta: {
628
687
  name: "get",
629
- description: "One order of Mailboxes from Curviate: its state, the five records to add at your domain (mx, spf, dkim, dmarc, tracking; tracking is optional) 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, host_failed: setting up failed and the charge was undone in full). Every role reads. One API call.",
688
+ 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, host_failed: setting up failed and the charge was undone in full). Every role reads. One API call.",
630
689
  risk: "read",
631
690
  errors: { MAILBOX_PURCHASE_NOT_FOUND: "no order of your Team has this id (another Team's id answers the same)." },
632
691
  seeAlso: ["curviate mailbox purchase list", "curviate mailbox list"],
@@ -696,7 +755,7 @@ var purchaseCmd = defineCommand({
696
755
  });
697
756
  var mailboxCommand = defineCommand({
698
757
  meta: { name: "mailbox", description: DESCRIPTIONS["mailbox"] },
699
- subCommands: { list: listCmd, get: getCmd, update: updateCmd, pause: pauseCmd, resume: resumeCmd, remove: removeCmd, discover: discoverCmd, connect: connectCmd, reconnect: reconnectCmd, test: testCmd, tests: testsCmd, buy: buyCmd, purchase: purchaseCmd },
758
+ 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 },
700
759
  async run() {
701
760
  const { showHelp } = await import("./examples-5FJS47QF.js");
702
761
  await showHelp(mailboxCommand, ["curviate", "mailbox"]);
@@ -707,6 +766,7 @@ export {
707
766
  MAILBOX_REQUEST_INSTRUCTION,
708
767
  mailboxCommand,
709
768
  parseMailboxSpec,
769
+ priceLine,
710
770
  purchaseNote,
711
771
  requestLines
712
772
  };
@@ -13,18 +13,18 @@ import {
13
13
  runMessageSend,
14
14
  sentAsNotice,
15
15
  willSendAsNotice
16
- } from "./chunk-KS4I4B3Z.js";
16
+ } from "./chunk-R2MIDSMB.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-MLZSXQZC.js";
21
+ import "./chunk-HG2G5OAZ.js";
22
22
  import "./chunk-TCUYH5GO.js";
23
- import "./chunk-KUVJM5CP.js";
23
+ import "./chunk-5AJS2V4T.js";
24
24
  import "./chunk-QM57YDJE.js";
25
- import "./chunk-PBJZQZPO.js";
25
+ import "./chunk-KD2XY7RS.js";
26
26
  import "./chunk-QLKGOIWS.js";
27
- import "./chunk-XDPU2YAF.js";
27
+ import "./chunk-ZC4S4B32.js";
28
28
  import "./chunk-FDJMAF7D.js";
29
29
  import "./chunk-ZYURL5VK.js";
30
30
  import "./chunk-EWSOIFG2.js";
@@ -6,14 +6,14 @@ import {
6
6
  } from "./chunk-JY26SUNH.js";
7
7
  import {
8
8
  sendInChunks
9
- } from "./chunk-3IL3D5IZ.js";
9
+ } from "./chunk-HJ7YY4HE.js";
10
10
  import {
11
11
  fail,
12
12
  listFlag,
13
13
  outputOpts,
14
14
  rootClient,
15
15
  usage
16
- } from "./chunk-5OAJ4D65.js";
16
+ } from "./chunk-F3FEY4D5.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-KUVJM5CP.js";
32
+ } from "./chunk-5AJS2V4T.js";
33
33
  import {
34
34
  renderSuccess,
35
35
  writeNdjsonItem
36
36
  } from "./chunk-QM57YDJE.js";
37
- import "./chunk-PBJZQZPO.js";
37
+ import "./chunk-KD2XY7RS.js";
38
38
  import {
39
39
  GLOBAL_FLAGS,
40
40
  READ_SINGLE_FLAGS,
@@ -43,7 +43,7 @@ import {
43
43
  } from "./chunk-QLKGOIWS.js";
44
44
  import {
45
45
  DESCRIPTIONS
46
- } from "./chunk-XDPU2YAF.js";
46
+ } from "./chunk-ZC4S4B32.js";
47
47
  import {
48
48
  documentSchema,
49
49
  parseDocument,
@@ -13,7 +13,7 @@ import {
13
13
  outputOpts,
14
14
  rootClient,
15
15
  usage
16
- } from "./chunk-5OAJ4D65.js";
16
+ } from "./chunk-F3FEY4D5.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-KUVJM5CP.js";
30
+ } from "./chunk-5AJS2V4T.js";
31
31
  import {
32
32
  renderSuccess,
33
33
  writeNdjsonItem
34
34
  } from "./chunk-QM57YDJE.js";
35
- import "./chunk-PBJZQZPO.js";
35
+ import "./chunk-KD2XY7RS.js";
36
36
  import {
37
37
  GLOBAL_FLAGS,
38
38
  WRITE_SINGLE_FLAGS,
@@ -40,7 +40,7 @@ import {
40
40
  } from "./chunk-QLKGOIWS.js";
41
41
  import {
42
42
  DESCRIPTIONS
43
- } from "./chunk-XDPU2YAF.js";
43
+ } from "./chunk-ZC4S4B32.js";
44
44
  import "./chunk-ZYURL5VK.js";
45
45
 
46
46
  // src/commands/network.ts
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-Q3ZPRFUX.js";
6
6
  import {
7
7
  requireAccount
8
- } from "./chunk-MLZSXQZC.js";
8
+ } from "./chunk-HG2G5OAZ.js";
9
9
  import {
10
10
  buildPreviewOutput
11
11
  } from "./chunk-TCUYH5GO.js";
@@ -16,7 +16,7 @@ import {
16
16
  readablePage,
17
17
  rejectPaginationModifiersWithoutAll,
18
18
  streamAll
19
- } from "./chunk-KUVJM5CP.js";
19
+ } from "./chunk-5AJS2V4T.js";
20
20
  import {
21
21
  renderError,
22
22
  renderSuccess,
@@ -26,7 +26,7 @@ import {
26
26
  import {
27
27
  createClient,
28
28
  resolveEffectiveConfig
29
- } from "./chunk-PBJZQZPO.js";
29
+ } from "./chunk-KD2XY7RS.js";
30
30
  import {
31
31
  GLOBAL_FLAGS,
32
32
  WRITE_SINGLE_FLAGS,
@@ -34,7 +34,7 @@ import {
34
34
  } from "./chunk-QLKGOIWS.js";
35
35
  import {
36
36
  DESCRIPTIONS
37
- } from "./chunk-XDPU2YAF.js";
37
+ } from "./chunk-ZC4S4B32.js";
38
38
  import "./chunk-ZYURL5VK.js";
39
39
  import "./chunk-EWSOIFG2.js";
40
40
 
@@ -4,7 +4,7 @@ import {
4
4
  outputOpts,
5
5
  rootClient,
6
6
  usage
7
- } from "./chunk-5OAJ4D65.js";
7
+ } from "./chunk-F3FEY4D5.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-KUVJM5CP.js";
22
+ } from "./chunk-5AJS2V4T.js";
23
23
  import {
24
24
  renderSuccess,
25
25
  writeNdjsonItem
26
26
  } from "./chunk-QM57YDJE.js";
27
- import "./chunk-PBJZQZPO.js";
27
+ import "./chunk-KD2XY7RS.js";
28
28
  import {
29
29
  GLOBAL_FLAGS,
30
30
  READ_SINGLE_FLAGS,
@@ -33,7 +33,7 @@ import {
33
33
  } from "./chunk-QLKGOIWS.js";
34
34
  import {
35
35
  DESCRIPTIONS
36
- } from "./chunk-XDPU2YAF.js";
36
+ } from "./chunk-ZC4S4B32.js";
37
37
  import "./chunk-ZYURL5VK.js";
38
38
 
39
39
  // src/commands/notifications.ts
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  resolveMemberOrMeProviderId
4
- } from "./chunk-CQHCPZ5I.js";
4
+ } from "./chunk-VKHAL6WT.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-MLZSXQZC.js";
18
+ } from "./chunk-HG2G5OAZ.js";
19
19
  import {
20
20
  buildPreviewOutput
21
21
  } from "./chunk-TCUYH5GO.js";
@@ -27,7 +27,7 @@ import {
27
27
  readablePage,
28
28
  rejectPaginationModifiersWithoutAll,
29
29
  streamAll
30
- } from "./chunk-KUVJM5CP.js";
30
+ } from "./chunk-5AJS2V4T.js";
31
31
  import {
32
32
  renderError,
33
33
  renderSuccess,
@@ -37,7 +37,7 @@ import {
37
37
  import {
38
38
  createClient,
39
39
  resolveEffectiveConfig
40
- } from "./chunk-PBJZQZPO.js";
40
+ } from "./chunk-KD2XY7RS.js";
41
41
  import {
42
42
  GLOBAL_FLAGS,
43
43
  READ_SINGLE_FLAGS,
@@ -47,7 +47,7 @@ import {
47
47
  } from "./chunk-QLKGOIWS.js";
48
48
  import {
49
49
  DESCRIPTIONS
50
- } from "./chunk-XDPU2YAF.js";
50
+ } from "./chunk-ZC4S4B32.js";
51
51
  import {
52
52
  resolveTextOrStdin
53
53
  } from "./chunk-ZYURL5VK.js";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  resolveMemberOrMeProviderId,
9
9
  resolveMemberProviderId
10
- } from "./chunk-CQHCPZ5I.js";
10
+ } from "./chunk-VKHAL6WT.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-MLZSXQZC.js";
32
+ } from "./chunk-HG2G5OAZ.js";
33
33
  import {
34
34
  buildPreviewOutput
35
35
  } from "./chunk-TCUYH5GO.js";
@@ -42,7 +42,7 @@ import {
42
42
  readablePage,
43
43
  rejectPaginationModifiersWithoutAll,
44
44
  streamAll
45
- } from "./chunk-KUVJM5CP.js";
45
+ } from "./chunk-5AJS2V4T.js";
46
46
  import {
47
47
  renderError,
48
48
  renderSuccess,
@@ -52,7 +52,7 @@ import {
52
52
  import {
53
53
  createClient,
54
54
  resolveEffectiveConfig
55
- } from "./chunk-PBJZQZPO.js";
55
+ } from "./chunk-KD2XY7RS.js";
56
56
  import {
57
57
  GLOBAL_FLAGS,
58
58
  READ_SINGLE_FLAGS,
@@ -61,7 +61,7 @@ import {
61
61
  } from "./chunk-QLKGOIWS.js";
62
62
  import {
63
63
  DESCRIPTIONS
64
- } from "./chunk-XDPU2YAF.js";
64
+ } from "./chunk-ZC4S4B32.js";
65
65
  import "./chunk-ZYURL5VK.js";
66
66
  import "./chunk-EWSOIFG2.js";
67
67
 
@@ -27,7 +27,7 @@ import {
27
27
  } from "./chunk-JY26SUNH.js";
28
28
  import {
29
29
  requireAccount
30
- } from "./chunk-MLZSXQZC.js";
30
+ } from "./chunk-HG2G5OAZ.js";
31
31
  import {
32
32
  buildPreviewOutput
33
33
  } from "./chunk-TCUYH5GO.js";
@@ -39,7 +39,7 @@ import {
39
39
  readablePage,
40
40
  rejectPaginationModifiersWithoutAll,
41
41
  streamAll
42
- } from "./chunk-KUVJM5CP.js";
42
+ } from "./chunk-5AJS2V4T.js";
43
43
  import {
44
44
  isJsonMode,
45
45
  renderError,
@@ -51,7 +51,7 @@ import {
51
51
  createClient,
52
52
  downloadBinary,
53
53
  resolveEffectiveConfig
54
- } from "./chunk-PBJZQZPO.js";
54
+ } from "./chunk-KD2XY7RS.js";
55
55
  import {
56
56
  GLOBAL_FLAGS,
57
57
  NON_STREAM_FLAGS,
@@ -62,7 +62,7 @@ import {
62
62
  } from "./chunk-QLKGOIWS.js";
63
63
  import {
64
64
  DESCRIPTIONS
65
- } from "./chunk-XDPU2YAF.js";
65
+ } from "./chunk-ZC4S4B32.js";
66
66
  import {
67
67
  documentSchema,
68
68
  parseDocument,
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-JY26SUNH.js";
20
20
  import {
21
21
  requireAccount
22
- } from "./chunk-MLZSXQZC.js";
22
+ } from "./chunk-HG2G5OAZ.js";
23
23
  import {
24
24
  buildPreviewOutput
25
25
  } from "./chunk-TCUYH5GO.js";
@@ -31,7 +31,7 @@ import {
31
31
  readablePage,
32
32
  rejectPaginationModifiersWithoutAll,
33
33
  streamAll
34
- } from "./chunk-KUVJM5CP.js";
34
+ } from "./chunk-5AJS2V4T.js";
35
35
  import {
36
36
  renderError,
37
37
  renderSuccess,
@@ -41,7 +41,7 @@ import {
41
41
  import {
42
42
  createClient,
43
43
  resolveEffectiveConfig
44
- } from "./chunk-PBJZQZPO.js";
44
+ } from "./chunk-KD2XY7RS.js";
45
45
  import {
46
46
  GLOBAL_FLAGS,
47
47
  READ_SINGLE_FLAGS,
@@ -50,7 +50,7 @@ import {
50
50
  } from "./chunk-QLKGOIWS.js";
51
51
  import {
52
52
  DESCRIPTIONS
53
- } from "./chunk-XDPU2YAF.js";
53
+ } from "./chunk-ZC4S4B32.js";
54
54
  import "./chunk-JKOQX46J.js";
55
55
  import "./chunk-FDJMAF7D.js";
56
56
  import "./chunk-ZYURL5VK.js";
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-JXDEV33Z.js";
17
17
  import {
18
18
  requireAccount
19
- } from "./chunk-MLZSXQZC.js";
19
+ } from "./chunk-HG2G5OAZ.js";
20
20
  import {
21
21
  intFlag,
22
22
  intListFlag
@@ -28,7 +28,7 @@ import {
28
28
  readablePage,
29
29
  rejectPaginationModifiersWithoutAll,
30
30
  streamAll
31
- } from "./chunk-KUVJM5CP.js";
31
+ } from "./chunk-5AJS2V4T.js";
32
32
  import {
33
33
  renderError,
34
34
  renderSuccess,
@@ -38,14 +38,14 @@ import {
38
38
  import {
39
39
  createClient,
40
40
  resolveEffectiveConfig
41
- } from "./chunk-PBJZQZPO.js";
41
+ } from "./chunk-KD2XY7RS.js";
42
42
  import {
43
43
  GLOBAL_FLAGS,
44
44
  readOnly
45
45
  } from "./chunk-QLKGOIWS.js";
46
46
  import {
47
47
  DESCRIPTIONS
48
- } from "./chunk-XDPU2YAF.js";
48
+ } from "./chunk-ZC4S4B32.js";
49
49
  import "./chunk-JKOQX46J.js";
50
50
  import "./chunk-FDJMAF7D.js";
51
51
  import "./chunk-ZYURL5VK.js";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  readablePage
4
- } from "./chunk-KUVJM5CP.js";
4
+ } from "./chunk-5AJS2V4T.js";
5
5
  import "./chunk-QM57YDJE.js";
6
6
  import {
7
7
  readlineSync
@@ -12,14 +12,14 @@ import {
12
12
  isPlainObject,
13
13
  resolveEffectiveConfig,
14
14
  writeProfile
15
- } from "./chunk-PBJZQZPO.js";
15
+ } from "./chunk-KD2XY7RS.js";
16
16
  import {
17
17
  GLOBAL_FLAGS,
18
18
  getTeamFlag
19
19
  } from "./chunk-QLKGOIWS.js";
20
20
  import {
21
21
  DESCRIPTIONS
22
- } from "./chunk-XDPU2YAF.js";
22
+ } from "./chunk-ZC4S4B32.js";
23
23
  import {
24
24
  defaultReadStdin,
25
25
  isStdinToken,
@@ -9,7 +9,7 @@ import {
9
9
  outputOpts,
10
10
  rootClient,
11
11
  usage
12
- } from "./chunk-5OAJ4D65.js";
12
+ } from "./chunk-F3FEY4D5.js";
13
13
  import {
14
14
  buildPreviewOutput
15
15
  } from "./chunk-TCUYH5GO.js";
@@ -24,12 +24,12 @@ import {
24
24
  readablePage,
25
25
  rejectPaginationModifiersWithoutAll,
26
26
  streamAll
27
- } from "./chunk-KUVJM5CP.js";
27
+ } from "./chunk-5AJS2V4T.js";
28
28
  import {
29
29
  renderSuccess,
30
30
  writeNdjsonItem
31
31
  } from "./chunk-QM57YDJE.js";
32
- import "./chunk-PBJZQZPO.js";
32
+ import "./chunk-KD2XY7RS.js";
33
33
  import {
34
34
  GLOBAL_FLAGS,
35
35
  READ_SINGLE_FLAGS,
@@ -38,7 +38,7 @@ import {
38
38
  } from "./chunk-QLKGOIWS.js";
39
39
  import {
40
40
  DESCRIPTIONS
41
- } from "./chunk-XDPU2YAF.js";
41
+ } from "./chunk-ZC4S4B32.js";
42
42
  import "./chunk-ZYURL5VK.js";
43
43
 
44
44
  // src/commands/signal.ts