@curviate/cli 0.56.0 → 0.58.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 (70) hide show
  1. package/CHANGELOG.md +129 -0
  2. package/README.md +9 -2
  3. package/dist/{account-ZF5NEMID.js → account-GSL6BCNX.js} +49 -13
  4. package/dist/{analytics-M7JWS67A.js → analytics-4FUMJSMC.js} +6 -6
  5. package/dist/{beta-consent-4Q2LZZQC.js → beta-consent-EC2QF6CM.js} +4 -4
  6. package/dist/billing-STRNXA4H.js +19 -0
  7. package/dist/{chunk-XP6S6E55.js → chunk-3IL3D5IZ.js} +2 -2
  8. package/dist/{chunk-UWRWZG4N.js → chunk-5OAJ4D65.js} +2 -2
  9. package/dist/{chunk-AMTKGO37.js → chunk-5Z3CCE5N.js} +1 -1
  10. package/dist/chunk-7F6B7P32.js +359 -0
  11. package/dist/{chunk-UOWOKEB2.js → chunk-CQHCPZ5I.js} +1 -1
  12. package/dist/{chunk-RDKTHFQ6.js → chunk-EWSOIFG2.js} +21 -0
  13. package/dist/{chunk-RKNW4UX4.js → chunk-JKOQX46J.js} +6 -0
  14. package/dist/{chunk-VHNF6OZD.js → chunk-JY26SUNH.js} +18 -2
  15. package/dist/{chunk-VEMK4MJM.js → chunk-KS4I4B3Z.js} +6 -6
  16. package/dist/{chunk-MIOEYSBQ.js → chunk-KUVJM5CP.js} +1 -1
  17. package/dist/{chunk-CRO7PJ4I.js → chunk-MLZSXQZC.js} +2 -2
  18. package/dist/{chunk-7PLTQHNO.js → chunk-PBJZQZPO.js} +1 -1
  19. package/dist/{chunk-J4SFOFMT.js → chunk-WGGZWJPO.js} +11 -11
  20. package/dist/{chunk-L3RJU7C3.js → chunk-WITIJCUU.js} +115 -14
  21. package/dist/{chunk-MWVTFTWV.js → chunk-XDPU2YAF.js} +8 -5
  22. package/dist/{chunk-EI64VFBE.js → chunk-XXB4MAX3.js} +121 -11
  23. package/dist/cli.js +30 -28
  24. package/dist/{comment-D6RSZTVK.js → comment-MUELYZYN.js} +8 -8
  25. package/dist/{company-3Z6PXGTW.js → company-5N7CXORR.js} +21 -10
  26. package/dist/company-record-HWLTP4TV.js +213 -0
  27. package/dist/{config-VY5MCJMN.js → config-PI7JMQ2L.js} +2 -2
  28. package/dist/{connect-G2RTLV7G.js → connect-NNZOOPWV.js} +11 -11
  29. package/dist/{contact-QSLJCBDE.js → contact-VNG7HRCN.js} +8 -8
  30. package/dist/{contact-groups-OITAD73K.js → contact-groups-6JF7VX6Q.js} +10 -10
  31. package/dist/{contact-import-LT7BKESC.js → contact-import-TMJWY2VD.js} +10 -10
  32. package/dist/core-ZRJY3HTF.js +46 -0
  33. package/dist/{do-not-contact-ZA7KS5WD.js → do-not-contact-GDVIUNMT.js} +19 -17
  34. package/dist/{doctor-JQT3DO6G.js → doctor-ZNAR5AZ2.js} +21 -4
  35. package/dist/{document-H65EXU4L.js → document-G6UND26L.js} +1 -1
  36. package/dist/{domain-7EX4E34B.js → domain-62YUYVDW.js} +8 -8
  37. package/dist/{draft-7U6H4BPF.js → draft-ED6RL67K.js} +5 -5
  38. package/dist/{enrollment-AZ6XGVVL.js → enrollment-LN3Z3RC5.js} +11 -7
  39. package/dist/{examples-IGQJCSNL.js → examples-5FJS47QF.js} +2 -2
  40. package/dist/{exit-codes-ZSOLAXQO.js → exit-codes-LQDMGDII.js} +1 -1
  41. package/dist/{export-OYMQXL62.js → export-S6D4FEAG.js} +4 -4
  42. package/dist/{feed-M5D4SJW7.js → feed-AC7HWUCD.js} +6 -6
  43. package/dist/{group-UTC3YBKE.js → group-6N37Q5ZS.js} +6 -6
  44. package/dist/{inbox-VSGNHSLG.js → inbox-JFRBROQ2.js} +6 -6
  45. package/dist/{inboxes-23C2MJK4.js → inboxes-IBZHZKSD.js} +6 -6
  46. package/dist/{incoming-QVPP32K7.js → incoming-YDRPPO24.js} +5 -5
  47. package/dist/{job-ZHVFFRWE.js → job-CSRHIFZM.js} +6 -6
  48. package/dist/{login-6OTNXEJZ.js → login-M7ZLOR2U.js} +2 -2
  49. package/dist/mailbox-E2K3I2VH.js +712 -0
  50. package/dist/{message-PIV77W47.js → message-SX6RDGWP.js} +7 -7
  51. package/dist/{motion-AHYF34DP.js → motion-4HH3OFI6.js} +118 -13
  52. package/dist/{network-RJHJFZEY.js → network-JQYLSQDH.js} +9 -9
  53. package/dist/{notification-XGR4NT3S.js → notification-ZAQM463D.js} +6 -6
  54. package/dist/{notifications-BHRWSHPR.js → notifications-N55F3DP3.js} +14 -9
  55. package/dist/{post-Z7AVDDKA.js → post-SIHHJX3P.js} +8 -8
  56. package/dist/{profile-YZNBX2RP.js → profile-VBHX3QGP.js} +12 -12
  57. package/dist/{recruiter-EXM4P7X7.js → recruiter-7AGFKQPI.js} +9 -9
  58. package/dist/{sales-nav-CKDSEXV2.js → sales-nav-ADVFBKWB.js} +9 -9
  59. package/dist/{search-B7FB6674.js → search-THJFPGOH.js} +16 -16
  60. package/dist/{setup-VZVPLJ4V.js → setup-D6D7SNND.js} +4 -4
  61. package/dist/signal-TGSF7WEP.js +438 -0
  62. package/dist/{team-PYABBUHO.js → team-MVNHCWJP.js} +59 -5
  63. package/dist/{tier-PRK4WQKR.js → tier-DAF7Y2HN.js} +6 -5
  64. package/dist/unibox-7B6B4SXB.js +741 -0
  65. package/dist/{webhook-V74EV4E2.js → webhook-NUVSTDXF.js} +9 -9
  66. package/package.json +3 -3
  67. package/dist/billing-LYPSX5SR.js +0 -196
  68. package/dist/core-RFTNNB6P.js +0 -46
  69. package/dist/mailbox-HD2UXZCA.js +0 -405
  70. package/dist/unibox-ZNKX2EKL.js +0 -410
@@ -2,21 +2,21 @@
2
2
  import {
3
3
  chunkRows,
4
4
  csvRecords
5
- } from "./chunk-L3RJU7C3.js";
6
- import "./chunk-J4SFOFMT.js";
7
- import "./chunk-CRO7PJ4I.js";
5
+ } from "./chunk-WITIJCUU.js";
6
+ import "./chunk-WGGZWJPO.js";
7
+ import "./chunk-MLZSXQZC.js";
8
8
  import {
9
9
  writeAtomic
10
10
  } from "./chunk-GOICALYQ.js";
11
11
  import {
12
12
  sendChunked
13
- } from "./chunk-XP6S6E55.js";
13
+ } from "./chunk-3IL3D5IZ.js";
14
14
  import {
15
15
  fail,
16
16
  outputOpts,
17
17
  rootClient,
18
18
  usage
19
- } from "./chunk-UWRWZG4N.js";
19
+ } from "./chunk-5OAJ4D65.js";
20
20
  import {
21
21
  buildPreviewOutput
22
22
  } from "./chunk-TCUYH5GO.js";
@@ -31,14 +31,14 @@ import {
31
31
  readablePage,
32
32
  rejectPaginationModifiersWithoutAll,
33
33
  streamAll
34
- } from "./chunk-MIOEYSBQ.js";
34
+ } from "./chunk-KUVJM5CP.js";
35
35
  import {
36
36
  renderSuccess,
37
37
  writeNdjsonItem
38
38
  } from "./chunk-QM57YDJE.js";
39
39
  import {
40
40
  downloadBinary
41
- } from "./chunk-7PLTQHNO.js";
41
+ } from "./chunk-PBJZQZPO.js";
42
42
  import {
43
43
  GLOBAL_FLAGS,
44
44
  READ_SINGLE_FLAGS,
@@ -47,15 +47,15 @@ import {
47
47
  } from "./chunk-QLKGOIWS.js";
48
48
  import {
49
49
  DESCRIPTIONS
50
- } from "./chunk-MWVTFTWV.js";
50
+ } from "./chunk-XDPU2YAF.js";
51
51
  import {
52
52
  readFileFlag
53
- } from "./chunk-RKNW4UX4.js";
53
+ } from "./chunk-JKOQX46J.js";
54
54
  import "./chunk-FDJMAF7D.js";
55
55
  import {
56
56
  isStdinToken
57
57
  } from "./chunk-ZYURL5VK.js";
58
- import "./chunk-RDKTHFQ6.js";
58
+ import "./chunk-EWSOIFG2.js";
59
59
 
60
60
  // src/commands/do-not-contact.ts
61
61
  import { defineCommand } from "citty";
@@ -105,9 +105,10 @@ async function runGet(c, f) {
105
105
  }
106
106
  }
107
107
  async function runAdd(c, f) {
108
- if (f.lead === void 0 === (f["linkedin-url"] === void 0)) usage("name the person with exactly one of --lead (con_...) or --linkedin-url.");
109
- for (const [flag, v] of [["lead", f.lead], ["linkedin-url", f["linkedin-url"]]]) if (v !== void 0 && v.trim() === "") usage(`--${flag} was given an empty value.`);
110
- const body = f.lead !== void 0 ? { lead_id: f.lead } : { linkedin_url: f["linkedin-url"] };
108
+ const named = [f.lead, f["linkedin-url"], f.company].filter((v) => v !== void 0).length;
109
+ if (named !== 1) usage("name exactly one of --lead (con_...), --linkedin-url (a person) or --company (a company's LinkedIn URL).");
110
+ for (const [flag, v] of [["lead", f.lead], ["linkedin-url", f["linkedin-url"]], ["company", f.company]]) if (v !== void 0 && v.trim() === "") usage(`--${flag} was given an empty value.`);
111
+ const body = f.lead !== void 0 ? { lead_id: f.lead } : f.company !== void 0 ? { company_linkedin_url: f.company } : { linkedin_url: f["linkedin-url"] };
111
112
  const why = reason(f, false);
112
113
  if (why) body["reason"] = why;
113
114
  const what = scope(f);
@@ -262,7 +263,7 @@ var getCmd = defineCommand({
262
263
  var addCmd = defineCommand({
263
264
  meta: {
264
265
  name: "add",
265
- description: "Put one person on the list, by Lead id or LinkedIn URL (a URL of someone who is not a Lead yet creates the Lead from stored data). No Campaign contacts them afterwards and writes toward them are refused; with --scope email_only only email stops (No email). One person per call; for many, `do-not-contact import`. Any member may add. Needs Automate.",
266
+ description: "Put one person on the list, by Lead id or LinkedIn URL (a URL of someone who is not a Lead yet creates the Lead from stored data), or a whole company with --company (its LinkedIn URL with the numeric id, as a Lead's company_linkedin_url): nobody who works there is contacted or imported. No Campaign contacts them afterwards and writes toward them are refused; with --scope email_only only email stops (No email). One person per call; for many, `do-not-contact import`. Any member may add. Needs Automate.",
266
267
  risk: "write",
267
268
  rules: {
268
269
  changes: "The person joins the list; Campaigns skip them and writes toward them are refused.",
@@ -275,14 +276,15 @@ var addCmd = defineCommand({
275
276
  seeAlso: ["curviate do-not-contact list", "curviate do-not-contact import"],
276
277
  examples: [
277
278
  "curviate do-not-contact add --lead con_YOUR_LEAD_ID --reason asked_to_stop",
278
- "curviate do-not-contact add --linkedin-url https://www.linkedin.com/in/jane-doe",
279
- "curviate do-not-contact add --lead con_YOUR_LEAD_ID --scope email_only"
279
+ "curviate do-not-contact add --lead con_YOUR_LEAD_ID --scope email_only",
280
+ "curviate do-not-contact add --company https://www.linkedin.com/company/1234567/"
280
281
  ]
281
282
  },
282
283
  args: {
283
284
  ...WRITE_SINGLE_FLAGS,
284
285
  lead: { type: "string", description: "The Lead (con_...). Not with --linkedin-url." },
285
286
  "linkedin-url": { type: "string", description: "The person's LinkedIn profile URL, in any spelling. Not with --lead." },
287
+ company: { type: "string", description: "A company instead of a person: its LinkedIn URL with the numeric id (linkedin.com/company/<id>/). Nobody who works there is contacted or imported." },
286
288
  reason: REASON_ARG,
287
289
  scope: SCOPE_ARG
288
290
  },
@@ -377,7 +379,7 @@ var doNotContactCommand = defineCommand({
377
379
  meta: { name: "do-not-contact", description: DESCRIPTIONS["do-not-contact"] },
378
380
  subCommands: { list: listCmd, get: getCmd, add: addCmd, update: updateCmd, remove: removeCmd, export: exportCmd, import: importCmd },
379
381
  async run() {
380
- const { showHelp } = await import("./examples-IGQJCSNL.js");
382
+ const { showHelp } = await import("./examples-5FJS47QF.js");
381
383
  await showHelp(doNotContactCommand, ["curviate", "do-not-contact"]);
382
384
  }
383
385
  });
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  readablePage
4
- } from "./chunk-MIOEYSBQ.js";
4
+ } from "./chunk-KUVJM5CP.js";
5
5
  import "./chunk-QM57YDJE.js";
6
6
  import {
7
7
  createClient,
@@ -10,17 +10,17 @@ import {
10
10
  readConfigFile,
11
11
  resolveEffectiveConfig,
12
12
  withoutUserinfo
13
- } from "./chunk-7PLTQHNO.js";
13
+ } from "./chunk-PBJZQZPO.js";
14
14
  import {
15
15
  GLOBAL_FLAGS
16
16
  } from "./chunk-QLKGOIWS.js";
17
17
  import {
18
18
  DESCRIPTIONS
19
- } from "./chunk-MWVTFTWV.js";
19
+ } from "./chunk-XDPU2YAF.js";
20
20
  import "./chunk-ZYURL5VK.js";
21
21
  import {
22
22
  getExitCode
23
- } from "./chunk-RDKTHFQ6.js";
23
+ } from "./chunk-EWSOIFG2.js";
24
24
 
25
25
  // src/commands/doctor.ts
26
26
  import { defineCommand } from "citty";
@@ -42,6 +42,9 @@ function defaultVersion() {
42
42
  async function defaultListAccounts(apiKey, baseUrl, timeout) {
43
43
  return createClient({ apiKey, baseUrl, timeout }).accounts.list();
44
44
  }
45
+ async function defaultListMailboxes(apiKey, baseUrl, timeout, team) {
46
+ return createClient({ apiKey, baseUrl, timeout, ...team ? { team } : {} }).mailboxes.list({ limit: 100 });
47
+ }
45
48
  async function defaultListTeams(apiKey, baseUrl, timeout) {
46
49
  return createClient({ apiKey, baseUrl, timeout, team: null }).teams.list({ limit: 100 });
47
50
  }
@@ -57,6 +60,7 @@ function resolveDoctorIO(io = {}) {
57
60
  isOutputTTY: io.isOutputTTY ?? (process.stdout.isTTY ?? false),
58
61
  listAccounts: io.listAccounts ?? defaultListAccounts,
59
62
  listTeams: io.listTeams ?? defaultListTeams,
63
+ listMailboxes: io.listMailboxes ?? defaultListMailboxes,
60
64
  version: io.version ?? defaultVersion
61
65
  };
62
66
  }
@@ -132,6 +136,7 @@ async function runDoctor(args, io) {
132
136
  exit: 8
133
137
  });
134
138
  team = await checkTeam(io, effective.apiKey, effective.baseUrl, effective.timeout, keyScope, team, checks);
139
+ checks.push(await checkMailboxes(io, effective.apiKey, effective.baseUrl, effective.timeout, team?.team_id));
135
140
  } catch (err) {
136
141
  const error = err;
137
142
  const code = typeof error.code === "string" ? error.code : void 0;
@@ -180,6 +185,18 @@ async function runDoctor(args, io) {
180
185
  };
181
186
  return report;
182
187
  }
188
+ async function checkMailboxes(io, apiKey, baseUrl, timeout, team) {
189
+ try {
190
+ const payload = await io.listMailboxes(apiKey, baseUrl, timeout, team);
191
+ const items = isPlainObject(payload) && Array.isArray(payload["items"]) ? payload["items"] : [];
192
+ const sending = items.filter((m) => isPlainObject(m) && (m["state"] === "connected" || m["state"] === "ramping")).length;
193
+ const detail = items.length === 0 ? "none: email steps cannot send (`curviate mailbox connect`)" : `${items.length} (${sending} can send)`;
194
+ return { name: "mailboxes", ok: true, detail, exit: 0 };
195
+ } catch (err) {
196
+ const code = err.code;
197
+ return { name: "mailboxes", ok: true, detail: `not read (${typeof code === "string" ? code : "error"})`, exit: 0 };
198
+ }
199
+ }
183
200
  async function checkTeam(io, apiKey, baseUrl, timeout, scope, team, checks) {
184
201
  let rows;
185
202
  try {
@@ -10,7 +10,7 @@ import {
10
10
  renderDocument,
11
11
  reportIssues,
12
12
  validate
13
- } from "./chunk-RKNW4UX4.js";
13
+ } from "./chunk-JKOQX46J.js";
14
14
  import "./chunk-FDJMAF7D.js";
15
15
  import "./chunk-ZYURL5VK.js";
16
16
  export {
@@ -4,24 +4,24 @@ import {
4
4
  outputOpts,
5
5
  rootClient,
6
6
  usage
7
- } from "./chunk-UWRWZG4N.js";
7
+ } from "./chunk-5OAJ4D65.js";
8
8
  import {
9
9
  buildPreviewOutput
10
10
  } from "./chunk-TCUYH5GO.js";
11
11
  import {
12
12
  readableObject
13
- } from "./chunk-MIOEYSBQ.js";
13
+ } from "./chunk-KUVJM5CP.js";
14
14
  import {
15
15
  renderSuccess
16
16
  } from "./chunk-QM57YDJE.js";
17
- import "./chunk-7PLTQHNO.js";
17
+ import "./chunk-PBJZQZPO.js";
18
18
  import {
19
19
  READ_SINGLE_FLAGS,
20
20
  readOnly
21
21
  } from "./chunk-QLKGOIWS.js";
22
22
  import {
23
23
  DESCRIPTIONS
24
- } from "./chunk-MWVTFTWV.js";
24
+ } from "./chunk-XDPU2YAF.js";
25
25
  import "./chunk-ZYURL5VK.js";
26
26
 
27
27
  // src/commands/domain.ts
@@ -29,12 +29,12 @@ import { defineCommand } from "citty";
29
29
  var checkCmd = defineCommand({
30
30
  meta: {
31
31
  name: "check",
32
- description: "A sending domain's checks as last run (daily): mx, spf, dkim, dmarc and tracking, each pass, fail or unknown (a failed lookup, or a DKIM selector not known yet, is never a fail), with the tracking record to add and any blocklists. --now runs them now: DNS lookups only, nothing is sent and no Mailbox is contacted. A check warns and never stops sending. A domain none of your Team's Mailboxes is on is DOMAIN_NOT_FOUND.",
32
+ description: "A sending domain's checks as last run (daily): mx, spf, dkim, dmarc and tracking, each pass, fail or unknown (a failed lookup, or a DKIM selector not known yet, is never a fail), with the tracking record to add, any blocklists and the DKIM selector found. --now runs them now: DNS lookups only, nothing is sent and no Mailbox is contacted. It takes any domain your Team names, before its first Mailbox there too, so the records can be set up first. A check warns and never stops sending.",
33
33
  risk: "read",
34
34
  output: ["The domain with its checks. Without --now the answer is the last daily run; with --now, the run just made."],
35
- errors: { DOMAIN_NOT_FOUND: "none of your Team's Mailboxes is on this domain (another Team's domain answers the same)." },
35
+ errors: { DOMAIN_NOT_FOUND: "without --now: your Team has no Mailbox on this domain and never checked it (another Team's domain answers the same); a public email provider's domain always." },
36
36
  seeAlso: ["curviate mailbox list"],
37
- examples: ["curviate domain check acme.example", "curviate domain check acme.example --now"]
37
+ examples: ["curviate domain check acme.example --now", "curviate domain check acme.example"]
38
38
  },
39
39
  args: {
40
40
  ...readOnly(READ_SINGLE_FLAGS),
@@ -61,7 +61,7 @@ var domainCommand = defineCommand({
61
61
  meta: { name: "domain", description: DESCRIPTIONS["domain"] },
62
62
  subCommands: { check: checkCmd },
63
63
  async run() {
64
- const { showHelp } = await import("./examples-IGQJCSNL.js");
64
+ const { showHelp } = await import("./examples-5FJS47QF.js");
65
65
  await showHelp(domainCommand, ["curviate", "domain"]);
66
66
  }
67
67
  });
@@ -8,7 +8,7 @@ import {
8
8
  guessContentType,
9
9
  readAttachment,
10
10
  toAttachmentPayload
11
- } from "./chunk-VHNF6OZD.js";
11
+ } from "./chunk-JY26SUNH.js";
12
12
  import {
13
13
  buildPreviewOutput
14
14
  } from "./chunk-TCUYH5GO.js";
@@ -20,7 +20,7 @@ import {
20
20
  readablePage,
21
21
  rejectPaginationModifiersWithoutAll,
22
22
  streamAll
23
- } from "./chunk-MIOEYSBQ.js";
23
+ } from "./chunk-KUVJM5CP.js";
24
24
  import {
25
25
  renderError,
26
26
  renderSuccess,
@@ -30,7 +30,7 @@ import {
30
30
  import {
31
31
  createClient,
32
32
  resolveEffectiveConfig
33
- } from "./chunk-7PLTQHNO.js";
33
+ } from "./chunk-PBJZQZPO.js";
34
34
  import {
35
35
  GLOBAL_FLAGS,
36
36
  READ_SINGLE_FLAGS,
@@ -39,7 +39,7 @@ import {
39
39
  } from "./chunk-QLKGOIWS.js";
40
40
  import {
41
41
  DESCRIPTIONS
42
- } from "./chunk-MWVTFTWV.js";
42
+ } from "./chunk-XDPU2YAF.js";
43
43
  import {
44
44
  resolveTextOrStdin
45
45
  } from "./chunk-ZYURL5VK.js";
@@ -73,7 +73,7 @@ function rejectAllOnNonPaginated(all, out) {
73
73
  async function handleError(err, outOpts, out) {
74
74
  const { CurviateError } = await import("@curviate/sdk");
75
75
  if (err instanceof CurviateError) {
76
- const { getExitCode } = await import("./exit-codes-ZSOLAXQO.js");
76
+ const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
77
77
  renderError(err, outOpts, out);
78
78
  process.exit(getExitCode(err));
79
79
  }
@@ -5,7 +5,7 @@ import {
5
5
  outputOpts,
6
6
  rootClient,
7
7
  usage
8
- } from "./chunk-UWRWZG4N.js";
8
+ } from "./chunk-5OAJ4D65.js";
9
9
  import {
10
10
  buildPreviewOutput
11
11
  } from "./chunk-TCUYH5GO.js";
@@ -20,12 +20,12 @@ import {
20
20
  readablePage,
21
21
  rejectPaginationModifiersWithoutAll,
22
22
  streamAll
23
- } from "./chunk-MIOEYSBQ.js";
23
+ } from "./chunk-KUVJM5CP.js";
24
24
  import {
25
25
  renderSuccess,
26
26
  writeNdjsonItem
27
27
  } from "./chunk-QM57YDJE.js";
28
- import "./chunk-7PLTQHNO.js";
28
+ import "./chunk-PBJZQZPO.js";
29
29
  import {
30
30
  GLOBAL_FLAGS,
31
31
  READ_SINGLE_FLAGS,
@@ -34,7 +34,7 @@ import {
34
34
  } from "./chunk-QLKGOIWS.js";
35
35
  import {
36
36
  DESCRIPTIONS
37
- } from "./chunk-MWVTFTWV.js";
37
+ } from "./chunk-XDPU2YAF.js";
38
38
  import "./chunk-ZYURL5VK.js";
39
39
 
40
40
  // src/commands/enrollment.ts
@@ -76,6 +76,10 @@ function humanReasons(data) {
76
76
  delete o[`${k}_message`];
77
77
  }
78
78
  }
79
+ if (o["skip_detail"] != null && o["skip_reason"] != null) {
80
+ o["skip_reason"] = `${String(o["skip_reason"])} (${String(o["skip_detail"])})`;
81
+ delete o["skip_detail"];
82
+ }
79
83
  if ("reason_message" in o) {
80
84
  o["reason"] = paired(o["reason"], o["reason_message"]);
81
85
  delete o["reason_message"];
@@ -208,7 +212,7 @@ async function runBulk(c, f) {
208
212
  }
209
213
  const firstError = results.find((r) => r.outcome !== "ok");
210
214
  if (firstError) {
211
- const { getExitCode } = await import("./exit-codes-ZSOLAXQO.js");
215
+ const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
212
216
  process.stderr.write(`error: ${results.filter((r) => r.outcome !== "ok").length} of ${results.length} Enrollments were refused; each refusal is listed.
213
217
  `);
214
218
  process.exit(getExitCode(firstError.error?.code ?? "INTERNAL"));
@@ -238,7 +242,7 @@ var FILTER_ARGS = {
238
242
  var listCmd = defineCommand({
239
243
  meta: {
240
244
  name: "list",
241
- description: "List Enrollments, newest first, filtered by Campaign, Lead, status, current Step, or how a Step ended. Each counts once per Lead, Campaign and Account. A pending Enrollment waiting in its Campaign's pool has no account_id (null) until an Account takes it; --accounts leaves such Enrollments out.",
245
+ description: "List Enrollments, newest first, filtered by Campaign, Lead, status, current Step, or how a Step ended. Each counts once per Lead, Campaign and Account. A pending Enrollment waiting in its Campaign's pool has no account_id (null) until an Account takes it; --accounts leaves such Enrollments out. waiting.kind says what it waits for: wait, event, queue, budget, account_unavailable, campaign_paused, halt, kill_switch, paused_by_user, no_overlap, and for email no_mailbox, mailbox_cap, email_unavailable, field_missing or out_of_office.",
242
246
  risk: "read",
243
247
  output: ["Each reason code comes with its sentence beside it (`skip_reason` and `skip_message`, `finish_reason` and `finish_message`)."],
244
248
  examples: [
@@ -475,7 +479,7 @@ var enrollmentCommand = defineCommand({
475
479
  bulk: bulkCmd
476
480
  },
477
481
  async run() {
478
- const { showHelp } = await import("./examples-IGQJCSNL.js");
482
+ const { showHelp } = await import("./examples-5FJS47QF.js");
479
483
  await showHelp(enrollmentCommand, ["curviate", "enrollment"]);
480
484
  }
481
485
  });
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  EXIT_CODE_MAP
4
- } from "./chunk-RDKTHFQ6.js";
4
+ } from "./chunk-EWSOIFG2.js";
5
5
 
6
6
  // src/lib/examples.ts
7
7
  import { renderUsage } from "citty";
@@ -22,7 +22,7 @@ function renderRules(rules) {
22
22
  }
23
23
  async function renderSections(cmd) {
24
24
  const meta = typeof cmd.meta === "function" ? await cmd.meta() : await cmd.meta;
25
- const { renderDocument } = meta?.document ? await import("./document-H65EXU4L.js") : { renderDocument: () => [] };
25
+ const { renderDocument } = meta?.document ? await import("./document-G6UND26L.js") : { renderDocument: () => [] };
26
26
  const body = {
27
27
  DOCUMENT: meta?.document ? renderDocument(meta.document) : void 0,
28
28
  RULES: renderRules(meta?.rules),
@@ -3,7 +3,7 @@ import {
3
3
  AUTH_NEEDED,
4
4
  EXIT_CODE_MAP,
5
5
  getExitCode
6
- } from "./chunk-RDKTHFQ6.js";
6
+ } from "./chunk-EWSOIFG2.js";
7
7
  export {
8
8
  AUTH_NEEDED,
9
9
  EXIT_CODE_MAP,
@@ -7,13 +7,13 @@ import {
7
7
  outputOpts,
8
8
  rootClient,
9
9
  usage
10
- } from "./chunk-UWRWZG4N.js";
10
+ } from "./chunk-5OAJ4D65.js";
11
11
  import {
12
12
  renderSuccess
13
13
  } from "./chunk-QM57YDJE.js";
14
14
  import {
15
15
  downloadBinary
16
- } from "./chunk-7PLTQHNO.js";
16
+ } from "./chunk-PBJZQZPO.js";
17
17
  import {
18
18
  GLOBAL_FLAGS,
19
19
  READ_SINGLE_FLAGS,
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-QLKGOIWS.js";
22
22
  import {
23
23
  DESCRIPTIONS
24
- } from "./chunk-MWVTFTWV.js";
24
+ } from "./chunk-XDPU2YAF.js";
25
25
  import "./chunk-ZYURL5VK.js";
26
26
 
27
27
  // src/commands/export.ts
@@ -87,7 +87,7 @@ var exportCommand = defineCommand({
87
87
  meta: { name: "export", description: DESCRIPTIONS.export },
88
88
  subCommands: { get: getCmd, download: downloadCmd },
89
89
  async run() {
90
- const { showHelp } = await import("./examples-IGQJCSNL.js");
90
+ const { showHelp } = await import("./examples-5FJS47QF.js");
91
91
  await showHelp(exportCommand, ["curviate", "export"]);
92
92
  }
93
93
  });
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  requireAccount
4
- } from "./chunk-CRO7PJ4I.js";
4
+ } from "./chunk-MLZSXQZC.js";
5
5
  import {
6
6
  pageDelayFromFlags,
7
7
  readCursorFlag,
@@ -9,7 +9,7 @@ import {
9
9
  readablePage,
10
10
  rejectPaginationModifiersWithoutAll,
11
11
  streamAll
12
- } from "./chunk-MIOEYSBQ.js";
12
+ } from "./chunk-KUVJM5CP.js";
13
13
  import {
14
14
  renderError,
15
15
  renderSuccess,
@@ -19,16 +19,16 @@ import {
19
19
  import {
20
20
  createClient,
21
21
  resolveEffectiveConfig
22
- } from "./chunk-7PLTQHNO.js";
22
+ } from "./chunk-PBJZQZPO.js";
23
23
  import {
24
24
  GLOBAL_FLAGS,
25
25
  readOnly
26
26
  } from "./chunk-QLKGOIWS.js";
27
27
  import {
28
28
  DESCRIPTIONS
29
- } from "./chunk-MWVTFTWV.js";
29
+ } from "./chunk-XDPU2YAF.js";
30
30
  import "./chunk-ZYURL5VK.js";
31
- import "./chunk-RDKTHFQ6.js";
31
+ import "./chunk-EWSOIFG2.js";
32
32
 
33
33
  // src/commands/feed.ts
34
34
  import { defineCommand } from "citty";
@@ -49,7 +49,7 @@ function resolveOutputOpts(flags) {
49
49
  async function handleSdkError(err, outOpts, out) {
50
50
  const { CurviateError } = await import("@curviate/sdk");
51
51
  if (err instanceof CurviateError) {
52
- const { getExitCode } = await import("./exit-codes-ZSOLAXQO.js");
52
+ const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
53
53
  renderError(err, outOpts, out);
54
54
  process.exit(getExitCode(err));
55
55
  }
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-UEAX6KUB.js";
5
5
  import {
6
6
  requireAccount
7
- } from "./chunk-CRO7PJ4I.js";
7
+ } from "./chunk-MLZSXQZC.js";
8
8
  import {
9
9
  pageDelayFromFlags,
10
10
  readCursorFlag,
@@ -13,7 +13,7 @@ import {
13
13
  readablePage,
14
14
  rejectPaginationModifiersWithoutAll,
15
15
  streamAll
16
- } from "./chunk-MIOEYSBQ.js";
16
+ } from "./chunk-KUVJM5CP.js";
17
17
  import {
18
18
  renderError,
19
19
  renderSuccess,
@@ -23,7 +23,7 @@ import {
23
23
  import {
24
24
  createClient,
25
25
  resolveEffectiveConfig
26
- } from "./chunk-7PLTQHNO.js";
26
+ } from "./chunk-PBJZQZPO.js";
27
27
  import {
28
28
  GLOBAL_FLAGS,
29
29
  READ_SINGLE_FLAGS,
@@ -31,9 +31,9 @@ import {
31
31
  } from "./chunk-QLKGOIWS.js";
32
32
  import {
33
33
  DESCRIPTIONS
34
- } from "./chunk-MWVTFTWV.js";
34
+ } from "./chunk-XDPU2YAF.js";
35
35
  import "./chunk-ZYURL5VK.js";
36
- import "./chunk-RDKTHFQ6.js";
36
+ import "./chunk-EWSOIFG2.js";
37
37
 
38
38
  // src/commands/group.ts
39
39
  import { defineCommand } from "citty";
@@ -60,7 +60,7 @@ function resolveOutputOpts(flags) {
60
60
  async function handleSdkError(err, outOpts, out) {
61
61
  const { CurviateError } = await import("@curviate/sdk");
62
62
  if (err instanceof CurviateError) {
63
- const { getExitCode } = await import("./exit-codes-ZSOLAXQO.js");
63
+ const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
64
64
  renderError(err, outOpts, out);
65
65
  process.exit(getExitCode(err));
66
66
  }
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-Q3ZPRFUX.js";
13
13
  import {
14
14
  requireAccount
15
- } from "./chunk-CRO7PJ4I.js";
15
+ } from "./chunk-MLZSXQZC.js";
16
16
  import {
17
17
  buildPreviewOutput
18
18
  } from "./chunk-TCUYH5GO.js";
@@ -24,7 +24,7 @@ import {
24
24
  readablePage,
25
25
  rejectPaginationModifiersWithoutAll,
26
26
  streamAll
27
- } from "./chunk-MIOEYSBQ.js";
27
+ } from "./chunk-KUVJM5CP.js";
28
28
  import {
29
29
  renderError,
30
30
  renderSuccess,
@@ -34,7 +34,7 @@ import {
34
34
  import {
35
35
  createClient,
36
36
  resolveEffectiveConfig
37
- } from "./chunk-7PLTQHNO.js";
37
+ } from "./chunk-PBJZQZPO.js";
38
38
  import {
39
39
  GLOBAL_FLAGS,
40
40
  READ_SINGLE_FLAGS,
@@ -43,9 +43,9 @@ import {
43
43
  } from "./chunk-QLKGOIWS.js";
44
44
  import {
45
45
  DESCRIPTIONS
46
- } from "./chunk-MWVTFTWV.js";
46
+ } from "./chunk-XDPU2YAF.js";
47
47
  import "./chunk-ZYURL5VK.js";
48
- import "./chunk-RDKTHFQ6.js";
48
+ import "./chunk-EWSOIFG2.js";
49
49
 
50
50
  // src/commands/inbox.ts
51
51
  import { defineCommand } from "citty";
@@ -107,7 +107,7 @@ function validateInboxFolder(raw, out) {
107
107
  async function handleSdkError(err, outOpts, out) {
108
108
  const { CurviateError } = await import("@curviate/sdk");
109
109
  if (err instanceof CurviateError) {
110
- const { getExitCode } = await import("./exit-codes-ZSOLAXQO.js");
110
+ const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
111
111
  renderError(err, outOpts, out);
112
112
  process.exit(getExitCode(err));
113
113
  }
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  requireAccount
4
- } from "./chunk-CRO7PJ4I.js";
4
+ } from "./chunk-MLZSXQZC.js";
5
5
  import {
6
6
  pageDelayFromFlags,
7
7
  readCursorFlag,
@@ -10,7 +10,7 @@ import {
10
10
  readablePage,
11
11
  rejectPaginationModifiersWithoutAll,
12
12
  streamAll
13
- } from "./chunk-MIOEYSBQ.js";
13
+ } from "./chunk-KUVJM5CP.js";
14
14
  import {
15
15
  renderError,
16
16
  renderSuccess,
@@ -20,7 +20,7 @@ import {
20
20
  import {
21
21
  createClient,
22
22
  resolveEffectiveConfig
23
- } from "./chunk-7PLTQHNO.js";
23
+ } from "./chunk-PBJZQZPO.js";
24
24
  import {
25
25
  GLOBAL_FLAGS,
26
26
  READ_SINGLE_FLAGS,
@@ -28,9 +28,9 @@ import {
28
28
  } from "./chunk-QLKGOIWS.js";
29
29
  import {
30
30
  DESCRIPTIONS
31
- } from "./chunk-MWVTFTWV.js";
31
+ } from "./chunk-XDPU2YAF.js";
32
32
  import "./chunk-ZYURL5VK.js";
33
- import "./chunk-RDKTHFQ6.js";
33
+ import "./chunk-EWSOIFG2.js";
34
34
 
35
35
  // src/commands/inboxes.ts
36
36
  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-ZSOLAXQO.js");
60
+ const { getExitCode } = await import("./exit-codes-LQDMGDII.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-UWRWZG4N.js";
7
+ } from "./chunk-5OAJ4D65.js";
8
8
  import {
9
9
  buildPreviewOutput
10
10
  } from "./chunk-TCUYH5GO.js";
@@ -18,12 +18,12 @@ import {
18
18
  readablePage,
19
19
  rejectPaginationModifiersWithoutAll,
20
20
  streamAll
21
- } from "./chunk-MIOEYSBQ.js";
21
+ } from "./chunk-KUVJM5CP.js";
22
22
  import {
23
23
  renderSuccess,
24
24
  writeNdjsonItem
25
25
  } from "./chunk-QM57YDJE.js";
26
- import "./chunk-7PLTQHNO.js";
26
+ import "./chunk-PBJZQZPO.js";
27
27
  import {
28
28
  GLOBAL_FLAGS,
29
29
  READ_SINGLE_FLAGS,
@@ -32,7 +32,7 @@ import {
32
32
  } from "./chunk-QLKGOIWS.js";
33
33
  import {
34
34
  DESCRIPTIONS
35
- } from "./chunk-MWVTFTWV.js";
35
+ } from "./chunk-XDPU2YAF.js";
36
36
  import "./chunk-ZYURL5VK.js";
37
37
 
38
38
  // src/commands/incoming.ts
@@ -209,7 +209,7 @@ var incomingCommand = defineCommand({
209
209
  meta: { name: "incoming", description: DESCRIPTIONS.incoming },
210
210
  subCommands: { create: createCmd, list: listCmd, get: getCmd, update: updateCmd, delete: deleteCmd, rotate: rotateCmd, capture: captureCmd, arrivals: arrivalsCmd },
211
211
  async run() {
212
- const { showHelp } = await import("./examples-IGQJCSNL.js");
212
+ const { showHelp } = await import("./examples-5FJS47QF.js");
213
213
  await showHelp(incomingCommand, ["curviate", "incoming"]);
214
214
  }
215
215
  });