@curviate/cli 0.57.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 (68) hide show
  1. package/CHANGELOG.md +114 -0
  2. package/README.md +9 -2
  3. package/dist/{account-IRIYB2SG.js → account-EUHYWIDH.js} +52 -16
  4. package/dist/{analytics-IRSCLVOL.js → analytics-SQQIMSLF.js} +6 -6
  5. package/dist/{beta-consent-NQVGFZL3.js → beta-consent-DFS7YMZR.js} +4 -4
  6. package/dist/billing-3FRIQFY3.js +19 -0
  7. package/dist/{chunk-OE4CY3ZL.js → chunk-5AJS2V4T.js} +1 -1
  8. package/dist/{chunk-AMTKGO37.js → chunk-5Z3CCE5N.js} +1 -1
  9. package/dist/{chunk-A6JGJGDF.js → chunk-72PYX57P.js} +16 -16
  10. package/dist/{billing-TCTP44ZB.js → chunk-7CSXYRSO.js} +125 -14
  11. package/dist/{chunk-SCUTAREU.js → chunk-EWSOIFG2.js} +17 -0
  12. package/dist/{chunk-3ZQNOKEK.js → chunk-F3FEY4D5.js} +2 -2
  13. package/dist/{chunk-F7CLAS5Y.js → chunk-HG2G5OAZ.js} +2 -2
  14. package/dist/{chunk-6OT6TS7N.js → chunk-HJ7YY4HE.js} +2 -2
  15. package/dist/{chunk-RKNW4UX4.js → chunk-JKOQX46J.js} +6 -0
  16. package/dist/{chunk-VHNF6OZD.js → chunk-JY26SUNH.js} +18 -2
  17. package/dist/{chunk-RXDG57B2.js → chunk-KD2XY7RS.js} +1 -1
  18. package/dist/{chunk-RTT75CXE.js → chunk-QRTMRTKA.js} +88 -15
  19. package/dist/{chunk-VPFV7YV3.js → chunk-R2MIDSMB.js} +6 -6
  20. package/dist/{chunk-AG6G3PRQ.js → chunk-TNLIV3SW.js} +17 -13
  21. package/dist/{chunk-3B5M2RUN.js → chunk-VKHAL6WT.js} +1 -1
  22. package/dist/{chunk-5LGKZBAY.js → chunk-ZC4S4B32.js} +4 -3
  23. package/dist/cli.js +33 -33
  24. package/dist/{comment-PNHEKGZX.js → comment-DA6XPY4F.js} +8 -8
  25. package/dist/{company-OUFF23SU.js → company-IWVNUBWS.js} +8 -8
  26. package/dist/{company-record-ULPDDB6L.js → company-record-ZJMW3NC6.js} +95 -10
  27. package/dist/{config-U6VDNL2P.js → config-P4HKPOCW.js} +2 -2
  28. package/dist/{connect-ICNXC37R.js → connect-AELFEVR7.js} +11 -11
  29. package/dist/{contact-K6RIVQWU.js → contact-FHN3A7MJ.js} +9 -9
  30. package/dist/{contact-groups-CNH2VB6A.js → contact-groups-HNZTN6I6.js} +11 -11
  31. package/dist/{contact-import-FK22UTN2.js → contact-import-PJFRLCHR.js} +11 -11
  32. package/dist/core-R7R44CVA.js +46 -0
  33. package/dist/{do-not-contact-BQHXNHTV.js → do-not-contact-KSH36NMT.js} +22 -20
  34. package/dist/{doctor-ZYPZF5BE.js → doctor-BEO4E227.js} +4 -4
  35. package/dist/{document-H65EXU4L.js → document-G6UND26L.js} +1 -1
  36. package/dist/{domain-HLOT6Y4A.js → domain-HF3WXWUT.js} +5 -5
  37. package/dist/{draft-JGQ36JSH.js → draft-2KBRHBBH.js} +5 -5
  38. package/dist/{enrollment-CF634DB4.js → enrollment-QPE54QQN.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-J4JQRE2A.js} +4 -4
  42. package/dist/{feed-RQHEDZVL.js → feed-PHF2ROIT.js} +6 -6
  43. package/dist/{group-LRMG76FN.js → group-SLXDOCHV.js} +6 -6
  44. package/dist/{inbox-5RGG5RQG.js → inbox-IDILZLPC.js} +6 -6
  45. package/dist/{inboxes-ZFY6ZP33.js → inboxes-QLP5PWTS.js} +6 -6
  46. package/dist/{incoming-3MJ4CP6H.js → incoming-XG6IBPU6.js} +8 -8
  47. package/dist/{job-QFIUTHHT.js → job-WUYHK6OX.js} +6 -6
  48. package/dist/{login-THXWX5HZ.js → login-3RIU257N.js} +2 -2
  49. package/dist/mailbox-CJRCYZGL.js +772 -0
  50. package/dist/{message-DM5OUKQS.js → message-EBVO4ZZI.js} +7 -7
  51. package/dist/{motion-NKOAK7NU.js → motion-7XQ3E4GI.js} +121 -16
  52. package/dist/{network-VKJUMZ2L.js → network-X5XL44GB.js} +12 -12
  53. package/dist/{notification-XW5J6KFA.js → notification-QNGHG5EO.js} +6 -6
  54. package/dist/{notifications-USYOV54R.js → notifications-MOLNELNE.js} +9 -9
  55. package/dist/{post-M2G3BK4A.js → post-XYSFN5OP.js} +8 -8
  56. package/dist/{profile-3SG64IEG.js → profile-7LJLU4Y5.js} +12 -12
  57. package/dist/{recruiter-7OUGZ776.js → recruiter-ALQNIRYR.js} +9 -9
  58. package/dist/{sales-nav-HHQLLM5C.js → sales-nav-HYZXNYCC.js} +9 -9
  59. package/dist/{search-5LMSLUH4.js → search-DNCPCFRR.js} +16 -16
  60. package/dist/{setup-6F4HYUSZ.js → setup-QI5FW6VD.js} +4 -4
  61. package/dist/{signal-LVODDBOY.js → signal-J2TLIT47.js} +126 -19
  62. package/dist/{team-MSOPELF6.js → team-PPPCJ5HT.js} +8 -8
  63. package/dist/{tier-RXHOAQ6L.js → tier-NFWWW34H.js} +4 -4
  64. package/dist/{unibox-UAA6WIGZ.js → unibox-52C7G5LK.js} +318 -16
  65. package/dist/{webhook-J2H7X766.js → webhook-J3JYMSY2.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
@@ -13,21 +13,21 @@ import {
13
13
  runMessageSend,
14
14
  sentAsNotice,
15
15
  willSendAsNotice
16
- } from "./chunk-VPFV7YV3.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
- import "./chunk-VHNF6OZD.js";
21
- import "./chunk-F7CLAS5Y.js";
20
+ import "./chunk-JY26SUNH.js";
21
+ import "./chunk-HG2G5OAZ.js";
22
22
  import "./chunk-TCUYH5GO.js";
23
- import "./chunk-OE4CY3ZL.js";
23
+ import "./chunk-5AJS2V4T.js";
24
24
  import "./chunk-QM57YDJE.js";
25
- import "./chunk-RXDG57B2.js";
25
+ import "./chunk-KD2XY7RS.js";
26
26
  import "./chunk-QLKGOIWS.js";
27
- import "./chunk-5LGKZBAY.js";
27
+ import "./chunk-ZC4S4B32.js";
28
28
  import "./chunk-FDJMAF7D.js";
29
29
  import "./chunk-ZYURL5VK.js";
30
- import "./chunk-SCUTAREU.js";
30
+ import "./chunk-EWSOIFG2.js";
31
31
  export {
32
32
  guardBareMessageForm,
33
33
  messageCommand,
@@ -1,24 +1,25 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  AttachError,
4
+ openUpload,
4
5
  readAttachment
5
- } from "./chunk-VHNF6OZD.js";
6
+ } from "./chunk-JY26SUNH.js";
6
7
  import {
7
8
  sendInChunks
8
- } from "./chunk-6OT6TS7N.js";
9
+ } from "./chunk-HJ7YY4HE.js";
9
10
  import {
10
11
  fail,
11
12
  listFlag,
12
13
  outputOpts,
13
14
  rootClient,
14
15
  usage
15
- } from "./chunk-3ZQNOKEK.js";
16
- import {
17
- intFlag
18
- } from "./chunk-NNV2OYEF.js";
16
+ } from "./chunk-F3FEY4D5.js";
19
17
  import {
20
18
  buildPreviewOutput
21
19
  } from "./chunk-TCUYH5GO.js";
20
+ import {
21
+ intFlag
22
+ } from "./chunk-NNV2OYEF.js";
22
23
  import {
23
24
  DEFAULT_PAGE_DELAY_MS,
24
25
  pageDelayFromFlags,
@@ -28,12 +29,12 @@ import {
28
29
  readablePage,
29
30
  rejectPaginationModifiersWithoutAll,
30
31
  streamAll
31
- } from "./chunk-OE4CY3ZL.js";
32
+ } from "./chunk-5AJS2V4T.js";
32
33
  import {
33
34
  renderSuccess,
34
35
  writeNdjsonItem
35
36
  } from "./chunk-QM57YDJE.js";
36
- import "./chunk-RXDG57B2.js";
37
+ import "./chunk-KD2XY7RS.js";
37
38
  import {
38
39
  GLOBAL_FLAGS,
39
40
  READ_SINGLE_FLAGS,
@@ -42,14 +43,14 @@ import {
42
43
  } from "./chunk-QLKGOIWS.js";
43
44
  import {
44
45
  DESCRIPTIONS
45
- } from "./chunk-5LGKZBAY.js";
46
+ } from "./chunk-ZC4S4B32.js";
46
47
  import {
47
48
  documentSchema,
48
49
  parseDocument,
49
50
  readFileFlag,
50
51
  reportIssues,
51
52
  validate
52
- } from "./chunk-RKNW4UX4.js";
53
+ } from "./chunk-JKOQX46J.js";
53
54
  import "./chunk-FDJMAF7D.js";
54
55
  import {
55
56
  isStdinToken
@@ -511,7 +512,10 @@ async function runCreate(c, f) {
511
512
  }
512
513
  }
513
514
  async function runUpdate(c, f) {
514
- const { body, text } = await readCampaignFile(f, "campaign update");
515
+ const olpc = f["one-lead-per-company"];
516
+ if (f.file === void 0 && olpc === void 0) usage("pass --file <campaign.json>, --one-lead-per-company or --no-one-lead-per-company.");
517
+ const { body, text } = f.file === void 0 ? { body: {}, text: "" } : await readCampaignFile(f, "campaign update");
518
+ if (olpc !== void 0) body["settings"] = { ...body["settings"] ?? {}, one_lead_per_company: olpc };
515
519
  if ("if_sequence_revision" in body) {
516
520
  process.stderr.write("warning: dropped if_sequence_revision from the file: pass --if-revision <n> to send it.\n");
517
521
  delete body["if_sequence_revision"];
@@ -571,6 +575,13 @@ async function runPreview(c, f) {
571
575
  await fail(err, f);
572
576
  }
573
577
  }
578
+ async function runPlacement(c, f) {
579
+ try {
580
+ renderSuccess(await c.campaigns.placementChecks(f.id ?? ""), outputOpts(f), process);
581
+ } catch (err) {
582
+ await fail(err, f);
583
+ }
584
+ }
574
585
  async function runCheck(c, f) {
575
586
  if (f.preview) return preview("campaigns.check", { id: f.id });
576
587
  try {
@@ -616,6 +627,34 @@ async function runVoiceClipUpload(c, f) {
616
627
  await fail(err, f);
617
628
  }
618
629
  }
630
+ var ATTACHMENT_MAX_BYTES = 20 * 1024 * 1024;
631
+ async function runAttachmentUpload(c, f) {
632
+ const path = f.file ?? "";
633
+ if (path.trim() === "") usage("the file is missing. Pass its path: `curviate campaign attachment upload pricing.pdf`.");
634
+ const filename = basename(path);
635
+ let file;
636
+ try {
637
+ file = await openUpload(path, ATTACHMENT_MAX_BYTES);
638
+ } catch (err) {
639
+ if (err instanceof AttachError) usage(err.message);
640
+ throw err;
641
+ }
642
+ if (f.preview) {
643
+ return void process.stdout.write(JSON.stringify(buildPreviewOutput({ method: "campaigns.attachments.upload", args: { filename, bytes: file.size }, body: {} })) + "\n");
644
+ }
645
+ try {
646
+ renderSuccess(await c.campaigns.attachments.upload(file.data, { filename }), outputOpts(f), process);
647
+ } catch (err) {
648
+ await fail(err, f);
649
+ }
650
+ }
651
+ async function runAttachmentGet(c, f) {
652
+ try {
653
+ renderSuccess(await c.campaigns.attachments.get(f.id ?? ""), outputOpts(f), process);
654
+ } catch (err) {
655
+ await fail(err, f);
656
+ }
657
+ }
619
658
  async function runVoiceClipGet(c, f) {
620
659
  try {
621
660
  renderSuccess(await c.campaigns.voiceClips.get(f.id ?? ""), outputOpts(f), process);
@@ -731,7 +770,7 @@ EOF`
731
770
  var updateCmd = defineCommand({
732
771
  meta: {
733
772
  name: "update",
734
- description: "Change a Campaign from a Campaign file: objects (schedule, settings) merge by key, arrays and the Sequence replace whole, null clears. settings.priority (normal or prioritized) weighs the Campaign 1 or 1.5 in each Account's budgets, on every budget (every Campaign with work due still progresses, and no limit is passed); settings.new_enrollments_per_account_per_day and settings.assign even are retired (accepted and ignored until 2027-01-28, with a notice). After start, a structural Sequence change makes a new version; running Enrollments keep theirs. With --if-revision the save is refused when someone saved the Sequence since. Needs Automate.",
773
+ description: "Change a Campaign from a Campaign file: objects (schedule, settings) merge by key, arrays and the Sequence replace whole, null clears. settings.priority (normal or prioritized) weighs the Campaign 1 or 1.5 in each Account's budgets, on every budget (every Campaign with work due still progresses, and no limit is passed); settings.new_enrollments_per_account_per_day and settings.assign even are retired (accepted and ignored until 2027-01-28, with a notice). --one-lead-per-company enrolls at most one Lead per company (a Lead whose company already has one in the Campaign is skipped, same_company, naming the Lead kept; one with no known company never is); --no-one-lead-per-company turns it off; either works with or without --file. After start, a structural Sequence change makes a new version; running Enrollments keep theirs. With --if-revision the save is refused when someone saved the Sequence since. Needs Automate.",
735
774
  risk: "write",
736
775
  rules: {
737
776
  changes: "Changes the Campaign. A running Campaign picks the change up at each Enrollment's next Step.",
@@ -750,6 +789,7 @@ var updateCmd = defineCommand({
750
789
  document: "campaign update",
751
790
  examples: [
752
791
  "curviate campaign update mot_YOUR_CAMPAIGN_ID --file campaign.json --if-revision 3",
792
+ "curviate campaign update mot_YOUR_CAMPAIGN_ID --one-lead-per-company",
753
793
  `curviate campaign update mot_YOUR_CAMPAIGN_ID --file - <<'EOF'
754
794
  ${CAMPAIGN_DOC}
755
795
  EOF`
@@ -758,7 +798,8 @@ EOF`
758
798
  args: {
759
799
  ...WRITE_SINGLE_FLAGS,
760
800
  id: ID,
761
- file: { type: "string", stdinArg: true, required: true, description: FILE_DESC },
801
+ file: { type: "string", stdinArg: true, description: FILE_DESC },
802
+ "one-lead-per-company": { type: "boolean", description: "Enroll at most one Lead per company (settings.one_lead_per_company); --no-one-lead-per-company turns it off." },
762
803
  "if-revision": { type: "string", description: "The sequence_revision you read (`curviate campaign get`). The save is refused with SEQUENCE_CONFLICT when the stored Sequence moved past it. Omitted: the last save wins." }
763
804
  },
764
805
  run: online(runUpdate)
@@ -890,6 +931,18 @@ var checkCmd = defineCommand({
890
931
  args: { ...WRITE_SINGLE_FLAGS, id: ID },
891
932
  run: online(runCheck)
892
933
  });
934
+ var placementCmd = defineCommand({
935
+ meta: {
936
+ name: "placement",
937
+ description: "The Campaign's weekly placement checks, newest first, at most 26: each calendar week its first email step, and each email step whose text changed that week, goes from one of its Mailboxes to test inboxes and is read like a placement test (`curviate mailbox test`). Each check: week (its Monday), mailbox_id, step_id, status (running, complete, waiting, skipped), reason (no_mailbox, cap, seeds) and the google_workspace and microsoft_365 verdicts (inbox, partly_spam, spam) once complete. Every role reads. One API call.",
938
+ risk: "read",
939
+ output: ["The checks: items[] (week, mailbox_id, step_id, status, reason, google_workspace, microsoft_365)."],
940
+ seeAlso: ["curviate mailbox test", "curviate analytics email"],
941
+ examples: ["curviate campaign placement mot_YOUR_CAMPAIGN_ID"]
942
+ },
943
+ args: { ...readOnly(READ_SINGLE_FLAGS), id: ID },
944
+ run: online(runPlacement)
945
+ });
893
946
  var membershipCmd = (kind) => defineCommand({
894
947
  meta: {
895
948
  name: kind,
@@ -1003,10 +1056,60 @@ var voiceClipCommand = defineCommand({
1003
1056
  meta: { name: "voice-clip", description: DESCRIPTIONS.campaignVoiceClip },
1004
1057
  subCommands: { upload: voiceClipUploadCmd, get: voiceClipGetCmd },
1005
1058
  async run() {
1006
- const { showHelp } = await import("./examples-J4X5NEIE.js");
1059
+ const { showHelp } = await import("./examples-5FJS47QF.js");
1007
1060
  await showHelp(voiceClipCommand, ["curviate", "campaign", "voice-clip"]);
1008
1061
  }
1009
1062
  });
1063
+ var attachmentUploadCmd = defineCommand({
1064
+ meta: {
1065
+ name: "upload",
1066
+ description: "Upload one file and print it: its `id` (cat_...) goes in an email step's `attachment_ids` (at most 10 a step, 20 MiB in total). Up to 20 MiB, 100 uploads per Team per 24 hours. Curviate reads the type from the file's bytes; executables, scripts, installers and macro-enabled Office files are refused. A link usually lands better than a file. Nothing is sent. Needs Automate. The CLI reads the path here, on your machine, and streams it in one request; a file over 20 MiB is refused before it leaves (exit 2). Curviate never fetches a path or a URL. From a Microsoft sign-in Mailbox, files of about 2.2 MB in all go today; a step's files above that are refused at send (attachment_refused).",
1067
+ risk: "write",
1068
+ rules: {
1069
+ changes: "Stores one file for your Team. No Campaign changes and nothing is sent to anyone.",
1070
+ visible_to: "Your Team; the recipients of the emails whose step names it.",
1071
+ budget_rows: [],
1072
+ retry: "A retry stores a second file (it counts toward the 24-hour cap); a file no Sequence uses is deleted 30 days after its upload.",
1073
+ undo: "Not needed: a file no Sequence uses is deleted after 30 days."
1074
+ },
1075
+ output: ["The file: `id`, `filename`, `content_type`, `bytes`, `created_at`. No download link."],
1076
+ errors: {
1077
+ UNSUPPORTED_MEDIA_TYPE: "an executable, a script, an installer, a shortcut, a disk image or a macro-enabled Office file; the message names the type. Nothing is stored.",
1078
+ PAYLOAD_TOO_LARGE: "the file is over 20 MiB.",
1079
+ RATE_LIMIT_TENANT: "100 uploads in the last 24 hours; Retry-After is the wait.",
1080
+ TIER_REQUIRED: "Campaign attachments need the Automate plan.",
1081
+ ...ROLE_ERRORS
1082
+ },
1083
+ seeAlso: ["curviate campaign attachment get", "curviate campaign lint", "curviate campaign check"],
1084
+ examples: ["curviate campaign attachment upload pricing.pdf", "curviate campaign attachment upload deck.pdf --preview"]
1085
+ },
1086
+ args: {
1087
+ ...WRITE_SINGLE_FLAGS,
1088
+ file: { type: "positional", required: true, description: "The file's path." }
1089
+ },
1090
+ run: online(runAttachmentUpload)
1091
+ });
1092
+ var attachmentGetCmd = defineCommand({
1093
+ meta: {
1094
+ name: "get",
1095
+ description: "One Campaign attachment: file name, type, size and upload time. No download link. Another Team's file is RESOURCE_NOT_FOUND, like an unknown id.",
1096
+ risk: "read",
1097
+ examples: ["curviate campaign attachment get cat_YOUR_ATTACHMENT_ID"]
1098
+ },
1099
+ args: {
1100
+ ...readOnly(READ_SINGLE_FLAGS),
1101
+ id: { type: "positional", description: "Attachment id (cat_...)." }
1102
+ },
1103
+ run: online(runAttachmentGet)
1104
+ });
1105
+ var attachmentCommand = defineCommand({
1106
+ meta: { name: "attachment", description: DESCRIPTIONS.campaignAttachment },
1107
+ subCommands: { upload: attachmentUploadCmd, get: attachmentGetCmd },
1108
+ async run() {
1109
+ const { showHelp } = await import("./examples-5FJS47QF.js");
1110
+ await showHelp(attachmentCommand, ["curviate", "campaign", "attachment"]);
1111
+ }
1112
+ });
1010
1113
  var campaignCommand = defineCommand({
1011
1114
  meta: { name: "campaign", description: DESCRIPTIONS.campaign },
1012
1115
  subCommands: {
@@ -1021,14 +1124,16 @@ var campaignCommand = defineCommand({
1021
1124
  delete: deleteCmd,
1022
1125
  preview: previewCmd,
1023
1126
  check: checkCmd,
1127
+ placement: placementCmd,
1024
1128
  add: membershipCmd("add"),
1025
1129
  remove: membershipCmd("remove"),
1026
1130
  lint: lintCmd,
1027
1131
  init: initCmd,
1028
- "voice-clip": voiceClipCommand
1132
+ "voice-clip": voiceClipCommand,
1133
+ attachment: attachmentCommand
1029
1134
  },
1030
1135
  async run() {
1031
- const { showHelp } = await import("./examples-J4X5NEIE.js");
1136
+ const { showHelp } = await import("./examples-5FJS47QF.js");
1032
1137
  await showHelp(campaignCommand, ["curviate", "campaign"]);
1033
1138
  }
1034
1139
  });
@@ -1,25 +1,25 @@
1
1
  #!/usr/bin/env node
2
- import {
3
- print,
4
- table
5
- } from "./chunk-5S3MJVI5.js";
6
2
  import {
7
3
  formatRows,
8
4
  writeExport
9
5
  } from "./chunk-PPGKQJKU.js";
6
+ import {
7
+ print,
8
+ table
9
+ } from "./chunk-5S3MJVI5.js";
10
10
  import {
11
11
  fail,
12
12
  listFlag,
13
13
  outputOpts,
14
14
  rootClient,
15
15
  usage
16
- } from "./chunk-3ZQNOKEK.js";
17
- import {
18
- intFlag
19
- } from "./chunk-NNV2OYEF.js";
16
+ } from "./chunk-F3FEY4D5.js";
20
17
  import {
21
18
  buildPreviewOutput
22
19
  } from "./chunk-TCUYH5GO.js";
20
+ import {
21
+ intFlag
22
+ } from "./chunk-NNV2OYEF.js";
23
23
  import {
24
24
  pageDelayFromFlags,
25
25
  readCursorFlag,
@@ -27,12 +27,12 @@ import {
27
27
  readablePage,
28
28
  rejectPaginationModifiersWithoutAll,
29
29
  streamAll
30
- } from "./chunk-OE4CY3ZL.js";
30
+ } from "./chunk-5AJS2V4T.js";
31
31
  import {
32
32
  renderSuccess,
33
33
  writeNdjsonItem
34
34
  } from "./chunk-QM57YDJE.js";
35
- import "./chunk-RXDG57B2.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-5LGKZBAY.js";
43
+ } from "./chunk-ZC4S4B32.js";
44
44
  import "./chunk-ZYURL5VK.js";
45
45
 
46
46
  // src/commands/network.ts
@@ -225,7 +225,7 @@ var networkCommand = defineCommand({
225
225
  meta: { name: "network", description: DESCRIPTIONS.network },
226
226
  subCommands: { list: listCmd, status: statusCmd, export: exportCmd, resync: resyncCmd },
227
227
  async run() {
228
- const { showHelp } = await import("./examples-J4X5NEIE.js");
228
+ const { showHelp } = await import("./examples-5FJS47QF.js");
229
229
  await showHelp(networkCommand, ["curviate", "network"]);
230
230
  }
231
231
  });
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-Q3ZPRFUX.js";
6
6
  import {
7
7
  requireAccount
8
- } from "./chunk-F7CLAS5Y.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-OE4CY3ZL.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-RXDG57B2.js";
29
+ } from "./chunk-KD2XY7RS.js";
30
30
  import {
31
31
  GLOBAL_FLAGS,
32
32
  WRITE_SINGLE_FLAGS,
@@ -34,9 +34,9 @@ import {
34
34
  } from "./chunk-QLKGOIWS.js";
35
35
  import {
36
36
  DESCRIPTIONS
37
- } from "./chunk-5LGKZBAY.js";
37
+ } from "./chunk-ZC4S4B32.js";
38
38
  import "./chunk-ZYURL5VK.js";
39
- import "./chunk-SCUTAREU.js";
39
+ import "./chunk-EWSOIFG2.js";
40
40
 
41
41
  // src/commands/notification.ts
42
42
  import { defineCommand } from "citty";
@@ -57,7 +57,7 @@ function resolveOutputOpts(flags) {
57
57
  async function handleSdkError(err, outOpts, out) {
58
58
  const { CurviateError } = await import("@curviate/sdk");
59
59
  if (err instanceof CurviateError) {
60
- const { getExitCode } = await import("./exit-codes-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-F3FEY4D5.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,
@@ -19,12 +19,12 @@ import {
19
19
  readablePage,
20
20
  rejectPaginationModifiersWithoutAll,
21
21
  streamAll
22
- } from "./chunk-OE4CY3ZL.js";
22
+ } from "./chunk-5AJS2V4T.js";
23
23
  import {
24
24
  renderSuccess,
25
25
  writeNdjsonItem
26
26
  } from "./chunk-QM57YDJE.js";
27
- import "./chunk-RXDG57B2.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-5LGKZBAY.js";
36
+ } from "./chunk-ZC4S4B32.js";
37
37
  import "./chunk-ZYURL5VK.js";
38
38
 
39
39
  // src/commands/notifications.ts
@@ -107,7 +107,7 @@ var update = (body) => async (c, f) => {
107
107
  if (notFoundError) {
108
108
  process.stderr.write(`error: ${notFound.length} of ${all.length} notifications were not found (not yours, or already gone): ${notFound.join(", ")}. The others were applied.
109
109
  `);
110
- const { getExitCode } = await import("./exit-codes-P2FLCKM7.js");
110
+ const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
111
111
  process.exit(getExitCode(notFoundError));
112
112
  }
113
113
  };
@@ -227,7 +227,7 @@ var notificationsCommand = defineCommand({
227
227
  meta: { name: "notification", description: DESCRIPTIONS.notification },
228
228
  subCommands: { list: listCmd, count: countCmd, read: readCmd, "read-all": readAllCmd, archive: archiveCmd, unarchive: unarchiveCmd },
229
229
  async run() {
230
- const { showHelp } = await import("./examples-J4X5NEIE.js");
230
+ const { showHelp } = await import("./examples-5FJS47QF.js");
231
231
  await showHelp(notificationsCommand, ["curviate", "notification"]);
232
232
  }
233
233
  });
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  resolveMemberOrMeProviderId
4
- } from "./chunk-3B5M2RUN.js";
4
+ } from "./chunk-VKHAL6WT.js";
5
5
  import "./chunk-UEAX6KUB.js";
6
6
  import {
7
7
  AS_ACCOUNT,
@@ -12,10 +12,10 @@ import {
12
12
  AttachError,
13
13
  readAttachment,
14
14
  toAttachmentPayload
15
- } from "./chunk-VHNF6OZD.js";
15
+ } from "./chunk-JY26SUNH.js";
16
16
  import {
17
17
  requireAccount
18
- } from "./chunk-F7CLAS5Y.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-OE4CY3ZL.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-RXDG57B2.js";
40
+ } from "./chunk-KD2XY7RS.js";
41
41
  import {
42
42
  GLOBAL_FLAGS,
43
43
  READ_SINGLE_FLAGS,
@@ -47,11 +47,11 @@ import {
47
47
  } from "./chunk-QLKGOIWS.js";
48
48
  import {
49
49
  DESCRIPTIONS
50
- } from "./chunk-5LGKZBAY.js";
50
+ } from "./chunk-ZC4S4B32.js";
51
51
  import {
52
52
  resolveTextOrStdin
53
53
  } from "./chunk-ZYURL5VK.js";
54
- import "./chunk-SCUTAREU.js";
54
+ import "./chunk-EWSOIFG2.js";
55
55
 
56
56
  // src/commands/post.ts
57
57
  import { defineCommand } from "citty";
@@ -89,7 +89,7 @@ function normalizeAttachPaths(attach) {
89
89
  async function handleSdkError(err, outOpts, out) {
90
90
  const { CurviateError } = await import("@curviate/sdk");
91
91
  if (err instanceof CurviateError) {
92
- const { getExitCode } = await import("./exit-codes-P2FLCKM7.js");
92
+ const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
93
93
  renderError(err, outOpts, out);
94
94
  process.exit(getExitCode(err));
95
95
  }
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  resolveMemberOrMeProviderId,
9
9
  resolveMemberProviderId
10
- } from "./chunk-3B5M2RUN.js";
10
+ } from "./chunk-VKHAL6WT.js";
11
11
  import {
12
12
  resolveIdentifier
13
13
  } from "./chunk-UEAX6KUB.js";
@@ -26,10 +26,10 @@ import {
26
26
  AttachError,
27
27
  readAttachment,
28
28
  toAttachmentPayload
29
- } from "./chunk-VHNF6OZD.js";
29
+ } from "./chunk-JY26SUNH.js";
30
30
  import {
31
31
  requireAccount
32
- } from "./chunk-F7CLAS5Y.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-OE4CY3ZL.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-RXDG57B2.js";
55
+ } from "./chunk-KD2XY7RS.js";
56
56
  import {
57
57
  GLOBAL_FLAGS,
58
58
  READ_SINGLE_FLAGS,
@@ -61,9 +61,9 @@ import {
61
61
  } from "./chunk-QLKGOIWS.js";
62
62
  import {
63
63
  DESCRIPTIONS
64
- } from "./chunk-5LGKZBAY.js";
64
+ } from "./chunk-ZC4S4B32.js";
65
65
  import "./chunk-ZYURL5VK.js";
66
- import "./chunk-SCUTAREU.js";
66
+ import "./chunk-EWSOIFG2.js";
67
67
 
68
68
  // src/commands/profile.ts
69
69
  import { defineCommand } from "citty";
@@ -191,7 +191,7 @@ async function runProfileMe(client, flags, out) {
191
191
  } catch (err) {
192
192
  const { CurviateError } = await import("@curviate/sdk");
193
193
  if (err instanceof CurviateError) {
194
- const { getExitCode } = await import("./exit-codes-P2FLCKM7.js");
194
+ const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
195
195
  renderError(err, outOpts, out);
196
196
  process.exit(getExitCode(err));
197
197
  }
@@ -218,7 +218,7 @@ async function runProfileMe(client, flags, out) {
218
218
  } catch (err) {
219
219
  const { CurviateError } = await import("@curviate/sdk");
220
220
  if (err instanceof CurviateError) {
221
- const { getExitCode } = await import("./exit-codes-P2FLCKM7.js");
221
+ const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
222
222
  renderError(err, outOpts, out);
223
223
  process.exit(getExitCode(err));
224
224
  }
@@ -350,7 +350,7 @@ async function runProfileGet(client, flags, out) {
350
350
  } catch (err) {
351
351
  const { CurviateError } = await import("@curviate/sdk");
352
352
  if (err instanceof CurviateError) {
353
- const { getExitCode } = await import("./exit-codes-P2FLCKM7.js");
353
+ const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
354
354
  renderError(err, outOpts, out);
355
355
  process.exit(getExitCode(err));
356
356
  }
@@ -388,7 +388,7 @@ async function runProfileRelations(client, flags, out) {
388
388
  } catch (err) {
389
389
  const { CurviateError } = await import("@curviate/sdk");
390
390
  if (err instanceof CurviateError) {
391
- const { getExitCode } = await import("./exit-codes-P2FLCKM7.js");
391
+ const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
392
392
  renderError(err, outOpts, out);
393
393
  process.exit(getExitCode(err));
394
394
  }
@@ -428,7 +428,7 @@ async function runProfileEndorse(client, flags, out) {
428
428
  async function handleSdkError(err, outOpts, out) {
429
429
  const { CurviateError } = await import("@curviate/sdk");
430
430
  if (err instanceof CurviateError) {
431
- const { getExitCode } = await import("./exit-codes-P2FLCKM7.js");
431
+ const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
432
432
  renderError(err, outOpts, out);
433
433
  process.exit(getExitCode(err));
434
434
  }
@@ -3,7 +3,7 @@ import {
3
3
  DEFAULT_FILTER_READERS,
4
4
  assembleFilters,
5
5
  splitCsv
6
- } from "./chunk-AMTKGO37.js";
6
+ } from "./chunk-5Z3CCE5N.js";
7
7
  import {
8
8
  BinaryOutputError,
9
9
  writeBinaryOutput
@@ -24,10 +24,10 @@ import {
24
24
  AttachError,
25
25
  readAttachment,
26
26
  toAttachmentPayload
27
- } from "./chunk-VHNF6OZD.js";
27
+ } from "./chunk-JY26SUNH.js";
28
28
  import {
29
29
  requireAccount
30
- } from "./chunk-F7CLAS5Y.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-OE4CY3ZL.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-RXDG57B2.js";
54
+ } from "./chunk-KD2XY7RS.js";
55
55
  import {
56
56
  GLOBAL_FLAGS,
57
57
  NON_STREAM_FLAGS,
@@ -62,17 +62,17 @@ import {
62
62
  } from "./chunk-QLKGOIWS.js";
63
63
  import {
64
64
  DESCRIPTIONS
65
- } from "./chunk-5LGKZBAY.js";
65
+ } from "./chunk-ZC4S4B32.js";
66
66
  import {
67
67
  documentSchema,
68
68
  parseDocument,
69
69
  readFileFlag,
70
70
  reportIssues,
71
71
  validate
72
- } from "./chunk-RKNW4UX4.js";
72
+ } from "./chunk-JKOQX46J.js";
73
73
  import "./chunk-FDJMAF7D.js";
74
74
  import "./chunk-ZYURL5VK.js";
75
- import "./chunk-SCUTAREU.js";
75
+ import "./chunk-EWSOIFG2.js";
76
76
 
77
77
  // src/commands/recruiter.ts
78
78
  import { defineCommand } from "citty";
@@ -97,7 +97,7 @@ function normalizeAttachPaths(attach) {
97
97
  async function handleSdkError(err, outOpts, out) {
98
98
  const { CurviateError } = await import("@curviate/sdk");
99
99
  if (err instanceof CurviateError) {
100
- const { getExitCode } = await import("./exit-codes-P2FLCKM7.js");
100
+ const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
101
101
  renderError(err, outOpts, out);
102
102
  process.exit(getExitCode(err));
103
103
  }