@curviate/cli 0.57.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 (68) hide show
  1. package/CHANGELOG.md +93 -0
  2. package/README.md +9 -2
  3. package/dist/{account-IRIYB2SG.js → account-GSL6BCNX.js} +52 -16
  4. package/dist/{analytics-IRSCLVOL.js → analytics-4FUMJSMC.js} +6 -6
  5. package/dist/{beta-consent-NQVGFZL3.js → beta-consent-EC2QF6CM.js} +4 -4
  6. package/dist/billing-STRNXA4H.js +19 -0
  7. package/dist/{chunk-6OT6TS7N.js → chunk-3IL3D5IZ.js} +2 -2
  8. package/dist/{chunk-3ZQNOKEK.js → chunk-5OAJ4D65.js} +2 -2
  9. package/dist/{chunk-AMTKGO37.js → chunk-5Z3CCE5N.js} +1 -1
  10. package/dist/{billing-TCTP44ZB.js → chunk-7F6B7P32.js} +123 -12
  11. package/dist/{chunk-3B5M2RUN.js → chunk-CQHCPZ5I.js} +1 -1
  12. package/dist/{chunk-SCUTAREU.js → chunk-EWSOIFG2.js} +17 -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-VPFV7YV3.js → chunk-KS4I4B3Z.js} +6 -6
  16. package/dist/{chunk-OE4CY3ZL.js → chunk-KUVJM5CP.js} +1 -1
  17. package/dist/{chunk-F7CLAS5Y.js → chunk-MLZSXQZC.js} +2 -2
  18. package/dist/{chunk-RXDG57B2.js → chunk-PBJZQZPO.js} +1 -1
  19. package/dist/{chunk-A6JGJGDF.js → chunk-WGGZWJPO.js} +16 -16
  20. package/dist/{chunk-AG6G3PRQ.js → chunk-WITIJCUU.js} +17 -13
  21. package/dist/{chunk-5LGKZBAY.js → chunk-XDPU2YAF.js} +4 -3
  22. package/dist/{chunk-RTT75CXE.js → chunk-XXB4MAX3.js} +86 -14
  23. package/dist/cli.js +33 -33
  24. package/dist/{comment-PNHEKGZX.js → comment-MUELYZYN.js} +8 -8
  25. package/dist/{company-OUFF23SU.js → company-5N7CXORR.js} +8 -8
  26. package/dist/{company-record-ULPDDB6L.js → company-record-HWLTP4TV.js} +95 -10
  27. package/dist/{config-U6VDNL2P.js → config-PI7JMQ2L.js} +2 -2
  28. package/dist/{connect-ICNXC37R.js → connect-NNZOOPWV.js} +11 -11
  29. package/dist/{contact-K6RIVQWU.js → contact-VNG7HRCN.js} +9 -9
  30. package/dist/{contact-groups-CNH2VB6A.js → contact-groups-6JF7VX6Q.js} +11 -11
  31. package/dist/{contact-import-FK22UTN2.js → contact-import-TMJWY2VD.js} +11 -11
  32. package/dist/core-ZRJY3HTF.js +46 -0
  33. package/dist/{do-not-contact-BQHXNHTV.js → do-not-contact-GDVIUNMT.js} +22 -20
  34. package/dist/{doctor-ZYPZF5BE.js → doctor-ZNAR5AZ2.js} +4 -4
  35. package/dist/{document-H65EXU4L.js → document-G6UND26L.js} +1 -1
  36. package/dist/{domain-HLOT6Y4A.js → domain-62YUYVDW.js} +5 -5
  37. package/dist/{draft-JGQ36JSH.js → draft-ED6RL67K.js} +5 -5
  38. package/dist/{enrollment-CF634DB4.js → enrollment-LN3Z3RC5.js} +14 -10
  39. package/dist/{examples-J4X5NEIE.js → examples-5FJS47QF.js} +2 -2
  40. package/dist/{exit-codes-P2FLCKM7.js → exit-codes-LQDMGDII.js} +1 -1
  41. package/dist/{export-ZQLDQYUZ.js → export-S6D4FEAG.js} +4 -4
  42. package/dist/{feed-RQHEDZVL.js → feed-AC7HWUCD.js} +6 -6
  43. package/dist/{group-LRMG76FN.js → group-6N37Q5ZS.js} +6 -6
  44. package/dist/{inbox-5RGG5RQG.js → inbox-JFRBROQ2.js} +6 -6
  45. package/dist/{inboxes-ZFY6ZP33.js → inboxes-IBZHZKSD.js} +6 -6
  46. package/dist/{incoming-3MJ4CP6H.js → incoming-YDRPPO24.js} +8 -8
  47. package/dist/{job-QFIUTHHT.js → job-CSRHIFZM.js} +6 -6
  48. package/dist/{login-THXWX5HZ.js → login-M7ZLOR2U.js} +2 -2
  49. package/dist/mailbox-E2K3I2VH.js +712 -0
  50. package/dist/{message-DM5OUKQS.js → message-SX6RDGWP.js} +7 -7
  51. package/dist/{motion-NKOAK7NU.js → motion-4HH3OFI6.js} +121 -16
  52. package/dist/{network-VKJUMZ2L.js → network-JQYLSQDH.js} +12 -12
  53. package/dist/{notification-XW5J6KFA.js → notification-ZAQM463D.js} +6 -6
  54. package/dist/{notifications-USYOV54R.js → notifications-N55F3DP3.js} +9 -9
  55. package/dist/{post-M2G3BK4A.js → post-SIHHJX3P.js} +8 -8
  56. package/dist/{profile-3SG64IEG.js → profile-VBHX3QGP.js} +12 -12
  57. package/dist/{recruiter-7OUGZ776.js → recruiter-7AGFKQPI.js} +9 -9
  58. package/dist/{sales-nav-HHQLLM5C.js → sales-nav-ADVFBKWB.js} +9 -9
  59. package/dist/{search-5LMSLUH4.js → search-THJFPGOH.js} +16 -16
  60. package/dist/{setup-6F4HYUSZ.js → setup-D6D7SNND.js} +4 -4
  61. package/dist/{signal-LVODDBOY.js → signal-TGSF7WEP.js} +126 -19
  62. package/dist/{team-MSOPELF6.js → team-MVNHCWJP.js} +8 -8
  63. package/dist/{tier-RXHOAQ6L.js → tier-DAF7Y2HN.js} +4 -4
  64. package/dist/{unibox-UAA6WIGZ.js → unibox-7B6B4SXB.js} +292 -14
  65. package/dist/{webhook-J2H7X766.js → webhook-NUVSTDXF.js} +12 -12
  66. package/package.json +3 -3
  67. package/dist/core-MPEBYNSL.js +0 -46
  68. package/dist/mailbox-54DPLNXA.js +0 -412
@@ -0,0 +1,46 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ DESCRIPTIONS,
4
+ lazy
5
+ } from "./chunk-XDPU2YAF.js";
6
+
7
+ // src/commands/core.ts
8
+ import { defineCommand } from "citty";
9
+ var coreCommand = defineCommand({
10
+ meta: {
11
+ name: "core",
12
+ description: DESCRIPTIONS.core,
13
+ rules: {
14
+ notes: [
15
+ "Writes reach LinkedIn immediately and are seen by the people they touch.",
16
+ "A retry after a timeout can repeat a write: requests carry no idempotency key. Read the current state before retrying.",
17
+ "Budget rows, ceilings and what is left: `curviate account get <account_id>`."
18
+ ]
19
+ }
20
+ },
21
+ subCommands: {
22
+ profile: lazy("profile", () => import("./profile-VBHX3QGP.js").then((m) => m.profileCommand)),
23
+ company: lazy("company", () => import("./company-5N7CXORR.js").then((m) => m.companyCommand)),
24
+ job: lazy("job", () => import("./job-CSRHIFZM.js").then((m) => m.jobCommand)),
25
+ connect: lazy("connect", () => import("./connect-NNZOOPWV.js").then((m) => m.connectCommand)),
26
+ search: lazy("search", () => import("./search-THJFPGOH.js").then((m) => m.searchCommand)),
27
+ inbox: lazy("inbox", () => import("./inbox-JFRBROQ2.js").then((m) => m.inboxCommand)),
28
+ inboxes: lazy("inboxes", () => import("./inboxes-IBZHZKSD.js").then((m) => m.inboxesCommand)),
29
+ message: lazy("message", () => import("./message-SX6RDGWP.js").then((m) => m.messageCommand)),
30
+ post: lazy("post", () => import("./post-SIHHJX3P.js").then((m) => m.postCommand)),
31
+ comment: lazy("comment", () => import("./comment-MUELYZYN.js").then((m) => m.commentCommand)),
32
+ "sales-nav": lazy("sales-nav", () => import("./sales-nav-ADVFBKWB.js").then((m) => m.salesNavCommand)),
33
+ recruiter: lazy("recruiter", () => import("./recruiter-7AGFKQPI.js").then((m) => m.recruiterCommand)),
34
+ group: lazy("group", () => import("./group-6N37Q5ZS.js").then((m) => m.groupCommand)),
35
+ feed: lazy("feed", () => import("./feed-AC7HWUCD.js").then((m) => m.feedCommand)),
36
+ notification: lazy("coreNotification", () => import("./notification-ZAQM463D.js").then((m) => m.notificationCommand)),
37
+ draft: lazy("draft", () => import("./draft-ED6RL67K.js").then((m) => m.draftCommand))
38
+ },
39
+ async run() {
40
+ const { showHelp } = await import("./examples-5FJS47QF.js");
41
+ await showHelp(coreCommand, ["curviate", "core"]);
42
+ }
43
+ });
44
+ export {
45
+ coreCommand
46
+ };
@@ -2,27 +2,27 @@
2
2
  import {
3
3
  chunkRows,
4
4
  csvRecords
5
- } from "./chunk-AG6G3PRQ.js";
6
- import "./chunk-A6JGJGDF.js";
5
+ } from "./chunk-WITIJCUU.js";
6
+ import "./chunk-WGGZWJPO.js";
7
+ import "./chunk-MLZSXQZC.js";
7
8
  import {
8
9
  writeAtomic
9
10
  } from "./chunk-GOICALYQ.js";
10
- import "./chunk-F7CLAS5Y.js";
11
11
  import {
12
12
  sendChunked
13
- } from "./chunk-6OT6TS7N.js";
13
+ } from "./chunk-3IL3D5IZ.js";
14
14
  import {
15
15
  fail,
16
16
  outputOpts,
17
17
  rootClient,
18
18
  usage
19
- } from "./chunk-3ZQNOKEK.js";
20
- import {
21
- intFlag
22
- } from "./chunk-NNV2OYEF.js";
19
+ } from "./chunk-5OAJ4D65.js";
23
20
  import {
24
21
  buildPreviewOutput
25
22
  } from "./chunk-TCUYH5GO.js";
23
+ import {
24
+ intFlag
25
+ } from "./chunk-NNV2OYEF.js";
26
26
  import {
27
27
  pageDelayFromFlags,
28
28
  readCursorFlag,
@@ -31,14 +31,14 @@ import {
31
31
  readablePage,
32
32
  rejectPaginationModifiersWithoutAll,
33
33
  streamAll
34
- } from "./chunk-OE4CY3ZL.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-RXDG57B2.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-5LGKZBAY.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-SCUTAREU.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-J4X5NEIE.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-OE4CY3ZL.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-RXDG57B2.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-5LGKZBAY.js";
19
+ } from "./chunk-XDPU2YAF.js";
20
20
  import "./chunk-ZYURL5VK.js";
21
21
  import {
22
22
  getExitCode
23
- } from "./chunk-SCUTAREU.js";
23
+ } from "./chunk-EWSOIFG2.js";
24
24
 
25
25
  // src/commands/doctor.ts
26
26
  import { defineCommand } from "citty";
@@ -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-3ZQNOKEK.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-OE4CY3ZL.js";
13
+ } from "./chunk-KUVJM5CP.js";
14
14
  import {
15
15
  renderSuccess
16
16
  } from "./chunk-QM57YDJE.js";
17
- import "./chunk-RXDG57B2.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-5LGKZBAY.js";
24
+ } from "./chunk-XDPU2YAF.js";
25
25
  import "./chunk-ZYURL5VK.js";
26
26
 
27
27
  // src/commands/domain.ts
@@ -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-J4X5NEIE.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-OE4CY3ZL.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-RXDG57B2.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-5LGKZBAY.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-P2FLCKM7.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,13 +5,13 @@ import {
5
5
  outputOpts,
6
6
  rootClient,
7
7
  usage
8
- } from "./chunk-3ZQNOKEK.js";
9
- import {
10
- intFlag
11
- } from "./chunk-NNV2OYEF.js";
8
+ } from "./chunk-5OAJ4D65.js";
12
9
  import {
13
10
  buildPreviewOutput
14
11
  } from "./chunk-TCUYH5GO.js";
12
+ import {
13
+ intFlag
14
+ } from "./chunk-NNV2OYEF.js";
15
15
  import {
16
16
  pageDelayFromFlags,
17
17
  readCursorFlag,
@@ -20,12 +20,12 @@ import {
20
20
  readablePage,
21
21
  rejectPaginationModifiersWithoutAll,
22
22
  streamAll
23
- } from "./chunk-OE4CY3ZL.js";
23
+ } from "./chunk-KUVJM5CP.js";
24
24
  import {
25
25
  renderSuccess,
26
26
  writeNdjsonItem
27
27
  } from "./chunk-QM57YDJE.js";
28
- import "./chunk-RXDG57B2.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-5LGKZBAY.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-P2FLCKM7.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-J4X5NEIE.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-SCUTAREU.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-SCUTAREU.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-3ZQNOKEK.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-RXDG57B2.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-5LGKZBAY.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-J4X5NEIE.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-F7CLAS5Y.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-OE4CY3ZL.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-RXDG57B2.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-5LGKZBAY.js";
29
+ } from "./chunk-XDPU2YAF.js";
30
30
  import "./chunk-ZYURL5VK.js";
31
- import "./chunk-SCUTAREU.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-P2FLCKM7.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-F7CLAS5Y.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-OE4CY3ZL.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-RXDG57B2.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-5LGKZBAY.js";
34
+ } from "./chunk-XDPU2YAF.js";
35
35
  import "./chunk-ZYURL5VK.js";
36
- import "./chunk-SCUTAREU.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-P2FLCKM7.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-F7CLAS5Y.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-OE4CY3ZL.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-RXDG57B2.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-5LGKZBAY.js";
46
+ } from "./chunk-XDPU2YAF.js";
47
47
  import "./chunk-ZYURL5VK.js";
48
- import "./chunk-SCUTAREU.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-P2FLCKM7.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-F7CLAS5Y.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-OE4CY3ZL.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-RXDG57B2.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-5LGKZBAY.js";
31
+ } from "./chunk-XDPU2YAF.js";
32
32
  import "./chunk-ZYURL5VK.js";
33
- import "./chunk-SCUTAREU.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-P2FLCKM7.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,13 +4,13 @@ import {
4
4
  outputOpts,
5
5
  rootClient,
6
6
  usage
7
- } from "./chunk-3ZQNOKEK.js";
8
- import {
9
- intFlag
10
- } from "./chunk-NNV2OYEF.js";
7
+ } from "./chunk-5OAJ4D65.js";
11
8
  import {
12
9
  buildPreviewOutput
13
10
  } from "./chunk-TCUYH5GO.js";
11
+ import {
12
+ intFlag
13
+ } from "./chunk-NNV2OYEF.js";
14
14
  import {
15
15
  pageDelayFromFlags,
16
16
  readCursorFlag,
@@ -18,12 +18,12 @@ import {
18
18
  readablePage,
19
19
  rejectPaginationModifiersWithoutAll,
20
20
  streamAll
21
- } from "./chunk-OE4CY3ZL.js";
21
+ } from "./chunk-KUVJM5CP.js";
22
22
  import {
23
23
  renderSuccess,
24
24
  writeNdjsonItem
25
25
  } from "./chunk-QM57YDJE.js";
26
- import "./chunk-RXDG57B2.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-5LGKZBAY.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-J4X5NEIE.js");
212
+ const { showHelp } = await import("./examples-5FJS47QF.js");
213
213
  await showHelp(incomingCommand, ["curviate", "incoming"]);
214
214
  }
215
215
  });