@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
@@ -1,7 +1,12 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ RETRIEVAL_FLAGS,
4
+ hasRetrievalFlags,
5
+ parseRetrievalFlags
6
+ } from "./chunk-L7JH3W56.js";
2
7
  import {
3
8
  sentAsNotice
4
- } from "./chunk-VEMK4MJM.js";
9
+ } from "./chunk-KS4I4B3Z.js";
5
10
  import "./chunk-UWO2D4HW.js";
6
11
  import {
7
12
  resolveIdentifier
@@ -23,10 +28,10 @@ import {
23
28
  AttachError,
24
29
  readAttachment,
25
30
  toAttachmentPayload
26
- } from "./chunk-VHNF6OZD.js";
31
+ } from "./chunk-JY26SUNH.js";
27
32
  import {
28
33
  requireAccount
29
- } from "./chunk-CRO7PJ4I.js";
34
+ } from "./chunk-MLZSXQZC.js";
30
35
  import {
31
36
  buildPreviewOutput
32
37
  } from "./chunk-TCUYH5GO.js";
@@ -39,7 +44,7 @@ import {
39
44
  readablePage,
40
45
  rejectPaginationModifiersWithoutAll,
41
46
  streamAll
42
- } from "./chunk-MIOEYSBQ.js";
47
+ } from "./chunk-KUVJM5CP.js";
43
48
  import {
44
49
  renderError,
45
50
  renderSuccess,
@@ -49,7 +54,7 @@ import {
49
54
  import {
50
55
  createClient,
51
56
  resolveEffectiveConfig
52
- } from "./chunk-7PLTQHNO.js";
57
+ } from "./chunk-PBJZQZPO.js";
53
58
  import {
54
59
  GLOBAL_FLAGS,
55
60
  READ_SINGLE_FLAGS,
@@ -58,12 +63,12 @@ import {
58
63
  } from "./chunk-QLKGOIWS.js";
59
64
  import {
60
65
  DESCRIPTIONS
61
- } from "./chunk-MWVTFTWV.js";
66
+ } from "./chunk-XDPU2YAF.js";
62
67
  import "./chunk-FDJMAF7D.js";
63
68
  import {
64
69
  resolveTextOrStdin
65
70
  } from "./chunk-ZYURL5VK.js";
66
- import "./chunk-RDKTHFQ6.js";
71
+ import "./chunk-EWSOIFG2.js";
67
72
 
68
73
  // src/commands/company.ts
69
74
  import { defineCommand } from "citty";
@@ -97,7 +102,7 @@ async function resolveCompanyId(ns, raw) {
97
102
  async function handleSdkError(err, outOpts, out) {
98
103
  const { CurviateError } = await import("@curviate/sdk");
99
104
  if (err instanceof CurviateError) {
100
- const { getExitCode } = await import("./exit-codes-ZSOLAXQO.js");
105
+ const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
101
106
  renderError(err, outOpts, out);
102
107
  process.exit(getExitCode(err));
103
108
  }
@@ -113,12 +118,17 @@ async function runCompanyGet(client, flags, out) {
113
118
  out.stderr.write("error: --sections is not supported on company commands.\n");
114
119
  process.exit(2);
115
120
  }
121
+ const retrieval = parseRetrievalFlags(flags);
122
+ if (!retrieval.ok) {
123
+ out.stderr.write(retrieval.error);
124
+ process.exit(2);
125
+ }
116
126
  const accountId = await requireAccount(client, flags, out);
117
127
  const rawId = flags.id ?? "";
118
128
  const resolvedId = resolveIdentifier(rawId);
119
129
  const outOpts = { ...resolveOutputOpts(flags), slim: slimCompany };
120
130
  try {
121
- const result = await client.account(accountId).companies.get(resolvedId);
131
+ const result = hasRetrievalFlags(flags) ? await client.account(accountId).companies.get(resolvedId, retrieval.query) : await client.account(accountId).companies.get(resolvedId);
122
132
  readableObject(result);
123
133
  renderSuccess(result, outOpts, out);
124
134
  } catch (err) {
@@ -987,7 +997,8 @@ var companyCommand = defineCommand({
987
997
  args: {
988
998
  ...readOnly(READ_SINGLE_FLAGS),
989
999
  id: { type: "positional", description: "Company identifier (URL, slug, or native id)." },
990
- sections: { type: "string", description: "Not supported on company commands; a usage error (exit 2) if supplied." }
1000
+ sections: { type: "string", description: "Not supported on company commands; a usage error (exit 2) if supplied." },
1001
+ ...RETRIEVAL_FLAGS
991
1002
  },
992
1003
  subCommands: {
993
1004
  employees: companyEmployeesCommand,
@@ -0,0 +1,213 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ csvRecords
4
+ } from "./chunk-WITIJCUU.js";
5
+ import "./chunk-WGGZWJPO.js";
6
+ import "./chunk-MLZSXQZC.js";
7
+ import "./chunk-GOICALYQ.js";
8
+ import "./chunk-3IL3D5IZ.js";
9
+ import {
10
+ fail,
11
+ listFlag,
12
+ outputOpts,
13
+ rootClient,
14
+ usage
15
+ } from "./chunk-5OAJ4D65.js";
16
+ import {
17
+ buildPreviewOutput
18
+ } from "./chunk-TCUYH5GO.js";
19
+ import "./chunk-NNV2OYEF.js";
20
+ import {
21
+ readableObject
22
+ } from "./chunk-KUVJM5CP.js";
23
+ import {
24
+ renderSuccess
25
+ } from "./chunk-QM57YDJE.js";
26
+ import "./chunk-PBJZQZPO.js";
27
+ import {
28
+ READ_SINGLE_FLAGS,
29
+ WRITE_SINGLE_FLAGS,
30
+ readOnly
31
+ } from "./chunk-QLKGOIWS.js";
32
+ import {
33
+ DESCRIPTIONS
34
+ } from "./chunk-XDPU2YAF.js";
35
+ import {
36
+ readFileFlag
37
+ } from "./chunk-JKOQX46J.js";
38
+ import "./chunk-FDJMAF7D.js";
39
+ import "./chunk-ZYURL5VK.js";
40
+ import "./chunk-EWSOIFG2.js";
41
+
42
+ // src/commands/company-record.ts
43
+ import { defineCommand } from "citty";
44
+ var FILE_MAX_COMPANIES = 1e3;
45
+ function csvCells(record) {
46
+ const cells = [];
47
+ let cur = "";
48
+ let quoted = false;
49
+ for (let i = 0; i < record.length; i++) {
50
+ const ch = record[i];
51
+ if (ch === '"') {
52
+ if (quoted && record[i + 1] === '"') {
53
+ cur += '"';
54
+ i++;
55
+ } else quoted = !quoted;
56
+ } else if (ch === "," && !quoted) {
57
+ cells.push(cur);
58
+ cur = "";
59
+ } else cur += ch;
60
+ }
61
+ cells.push(cur);
62
+ return cells.map((c) => c.trim());
63
+ }
64
+ var cellValue = (raw) => {
65
+ try {
66
+ return JSON.parse(raw);
67
+ } catch {
68
+ return raw;
69
+ }
70
+ };
71
+ function companyRows(text) {
72
+ const [header, ...rows] = csvRecords(text);
73
+ const cols = csvCells(header ?? "");
74
+ if (cols[0] !== "company_id") usage("--file: the first column is company_id (LinkedIn's numeric company id), then one column per field key.");
75
+ const keys = cols.slice(1);
76
+ const badKey = keys.find((k) => !KEY.test(k));
77
+ if (!keys.length || badKey !== void 0) usage(`--file: each field column is a key of 1 to 64 letters, digits or _${badKey !== void 0 ? ` (got ${JSON.stringify(badKey)})` : ""}.`);
78
+ if (new Set(keys).size !== keys.length) usage("--file: a key appears twice in the header.");
79
+ if (rows.length > FILE_MAX_COMPANIES) usage(`--file: at most ${FILE_MAX_COMPANIES} companies a file (one request each); split it.`);
80
+ const seen = /* @__PURE__ */ new Set();
81
+ return rows.map((r, n) => {
82
+ const cells = csvCells(r);
83
+ const id = cells[0] ?? "";
84
+ if (!/^\d+$/.test(id)) usage(`--file line ${n + 2}: company_id must be LinkedIn's numeric company id.`);
85
+ if (seen.has(id)) usage(`--file line ${n + 2}: company ${id} appears twice.`);
86
+ seen.add(id);
87
+ const extra = {};
88
+ keys.forEach((k, i) => {
89
+ const raw = cells[i + 1] ?? "";
90
+ if (raw !== "") extra[k] = cellValue(raw);
91
+ });
92
+ if (!Object.keys(extra).length) usage(`--file line ${n + 2}: no field to set for company ${id}.`);
93
+ return { id, extra };
94
+ });
95
+ }
96
+ var KEY = /^[A-Za-z0-9_]{1,64}$/;
97
+ var companyId = (f) => {
98
+ const id = String(f.id ?? "").trim();
99
+ if (!/^\d+$/.test(id)) usage("the company id is LinkedIn's numeric company id (the `id` of `curviate core company <handle>`), for example 1234567.");
100
+ return id;
101
+ };
102
+ function extraBody(f) {
103
+ const extra = {};
104
+ for (const pair of listFlag("set", f.set)) {
105
+ const eq = pair.indexOf("=");
106
+ const k = eq < 0 ? "" : pair.slice(0, eq);
107
+ if (!KEY.test(k)) usage("--set takes key=value; the key is 1 to 64 letters, digits or _.");
108
+ const raw = pair.slice(eq + 1);
109
+ if (raw === "") usage(`--set ${k}=: an empty value is refused; use --unset ${k} to remove the key.`);
110
+ let v = raw;
111
+ try {
112
+ v = JSON.parse(raw);
113
+ } catch {
114
+ }
115
+ extra[k] = v;
116
+ }
117
+ for (const k of listFlag("unset", f.unset)) {
118
+ if (!KEY.test(k)) usage("--unset takes a key: 1 to 64 letters, digits or _.");
119
+ extra[k] = null;
120
+ }
121
+ if (!Object.keys(extra).length) usage("pass --set key=value or --unset key, at least one.");
122
+ return { extra };
123
+ }
124
+ var online = (fn) => async ({ args }) => {
125
+ const f = args;
126
+ await fn(await rootClient(f), f);
127
+ };
128
+ var ID = { type: "positional", description: "LinkedIn's numeric company id, for example 1234567." };
129
+ var getCmd = defineCommand({
130
+ meta: {
131
+ name: "get",
132
+ description: "What your Team holds for one company: the stored record (name, industry, website, size, headcount growth, location, read_at; all null when it was never read) and your own company fields. No LinkedIn call, no budget. Every role may read it.",
133
+ risk: "read",
134
+ seeAlso: ["curviate company fields", "curviate core company"],
135
+ errors: { RESOURCE_NOT_FOUND: "no Lead of your Team works at this company and your Team never read it." },
136
+ examples: ["curviate company get 1234567"]
137
+ },
138
+ args: { ...readOnly(READ_SINGLE_FLAGS), id: ID },
139
+ run: online(async (c, f) => {
140
+ const id = companyId(f);
141
+ try {
142
+ renderSuccess(readableObject(await c.companies.get(id)), outputOpts(f), process);
143
+ } catch (err) {
144
+ await fail(err, f);
145
+ }
146
+ })
147
+ });
148
+ var fieldsCmd = defineCommand({
149
+ meta: {
150
+ name: "fields",
151
+ description: "Set or remove your Team's own fields for one company, merged by key: set once for every Lead who works there and read in a Sequence as {{company.extra.<key>}}. Keys left out stay. At most 100 keys and 32 KiB once merged. --file sets many companies from a CSV (header company_id, then one column per key; an empty cell leaves that key): one request per company, in file order; it stops at the first refusal, and the companies before it are set.",
152
+ risk: "write",
153
+ rules: {
154
+ changes: "The company's fields in your Team; every Campaign text using {{company.extra.<key>}} reads the new value from its next send.",
155
+ visible_to: "Your Team.",
156
+ budget_rows: [],
157
+ retry: "Safe to repeat: the same values again.",
158
+ undo: "Run it again with the previous values, or --unset the key."
159
+ },
160
+ errors: { RESOURCE_NOT_FOUND: "no Lead of your Team works at this company and your Team never read it.", INVALID_REQUEST: "a key outside the pattern, or the fields would pass 100 keys or 32 KiB once merged." },
161
+ seeAlso: ["curviate company get", "curviate campaign lint"],
162
+ examples: ['curviate company fields 1234567 --set tier=A --set owner="Ana Lopez"', "curviate company fields 1234567 --unset owner", "curviate company fields --file companies.csv"]
163
+ },
164
+ args: {
165
+ ...WRITE_SINGLE_FLAGS,
166
+ id: { ...ID, required: false, description: "LinkedIn's numeric company id, for example 1234567. Not with --file." },
167
+ set: { type: "string", description: "key=value, repeatable. A JSON value (a number, true, a list) is stored as JSON, anything else as text." },
168
+ unset: { type: "string", description: "A key to remove, repeatable or a comma list." },
169
+ file: { type: "string", stdinArg: true, description: "A CSV of many companies: a path, or - for stdin. Header company_id, then one column per key. Not with an id, --set or --unset." }
170
+ },
171
+ run: async ({ args }) => {
172
+ const f = args;
173
+ if (f.file !== void 0) {
174
+ if (f.id !== void 0 || f.set !== void 0 || f.unset !== void 0) usage("--file sets companies from the file: pass no company id, --set or --unset with it.");
175
+ const rows = companyRows(await readFileFlag("file", f.file, { others: f }));
176
+ if (!rows.length) usage("--file holds no company row.");
177
+ if (f.preview) return void process.stdout.write(JSON.stringify(buildPreviewOutput({ method: "companies.update", args: { company_ids: rows.map((r) => r.id) }, body: { extra: rows[0].extra } })) + "\n");
178
+ const c2 = await rootClient(f);
179
+ const done = [];
180
+ for (const r of rows) {
181
+ try {
182
+ done.push(readableObject(await c2.companies.update(r.id, { extra: r.extra })));
183
+ } catch (err) {
184
+ process.stderr.write(`Stopped at company ${r.id}; the ${done.length} before it are set.
185
+ `);
186
+ return void await fail(err, f);
187
+ }
188
+ }
189
+ return renderSuccess({ object: "list", items: done }, outputOpts(f), process);
190
+ }
191
+ const id = companyId(f);
192
+ const body = extraBody(f);
193
+ if (f.preview) return void process.stdout.write(JSON.stringify(buildPreviewOutput({ method: "companies.update", args: { company_id: id }, body })) + "\n");
194
+ const c = await rootClient(f);
195
+ try {
196
+ renderSuccess(readableObject(await c.companies.update(id, body)), outputOpts(f), process);
197
+ } catch (err) {
198
+ await fail(err, f);
199
+ }
200
+ }
201
+ });
202
+ var companyRecordCommand = defineCommand({
203
+ meta: { name: "company", description: DESCRIPTIONS.companyRecord },
204
+ subCommands: { get: getCmd, fields: fieldsCmd },
205
+ async run() {
206
+ const { showHelp } = await import("./examples-5FJS47QF.js");
207
+ await showHelp(companyRecordCommand, ["curviate", "company"]);
208
+ }
209
+ });
210
+ export {
211
+ companyRecordCommand,
212
+ companyRows
213
+ };
@@ -12,13 +12,13 @@ import {
12
12
  setActiveProfile,
13
13
  updateProfileField,
14
14
  withoutUserinfo
15
- } from "./chunk-7PLTQHNO.js";
15
+ } from "./chunk-PBJZQZPO.js";
16
16
  import {
17
17
  GLOBAL_FLAGS
18
18
  } from "./chunk-QLKGOIWS.js";
19
19
  import {
20
20
  DESCRIPTIONS
21
- } from "./chunk-MWVTFTWV.js";
21
+ } from "./chunk-XDPU2YAF.js";
22
22
  import "./chunk-ZYURL5VK.js";
23
23
 
24
24
  // src/commands/config.ts
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-JXDEV33Z.js";
16
16
  import {
17
17
  requireAccount
18
- } from "./chunk-CRO7PJ4I.js";
18
+ } from "./chunk-MLZSXQZC.js";
19
19
  import {
20
20
  buildPreviewOutput
21
21
  } from "./chunk-TCUYH5GO.js";
@@ -26,7 +26,7 @@ import {
26
26
  readablePage,
27
27
  rejectPaginationModifiersWithoutAll,
28
28
  streamAll
29
- } from "./chunk-MIOEYSBQ.js";
29
+ } from "./chunk-KUVJM5CP.js";
30
30
  import {
31
31
  renderError,
32
32
  renderSuccess,
@@ -36,7 +36,7 @@ import {
36
36
  import {
37
37
  createClient,
38
38
  resolveEffectiveConfig
39
- } from "./chunk-7PLTQHNO.js";
39
+ } from "./chunk-PBJZQZPO.js";
40
40
  import {
41
41
  GLOBAL_FLAGS,
42
42
  WRITE_FLAGS,
@@ -44,12 +44,12 @@ import {
44
44
  } from "./chunk-QLKGOIWS.js";
45
45
  import {
46
46
  DESCRIPTIONS
47
- } from "./chunk-MWVTFTWV.js";
47
+ } from "./chunk-XDPU2YAF.js";
48
48
  import {
49
49
  nearestSubcommand
50
50
  } from "./chunk-FDJMAF7D.js";
51
51
  import "./chunk-ZYURL5VK.js";
52
- import "./chunk-RDKTHFQ6.js";
52
+ import "./chunk-EWSOIFG2.js";
53
53
 
54
54
  // src/commands/connect.ts
55
55
  import { defineCommand } from "citty";
@@ -93,7 +93,7 @@ async function runConnectSend(client, flags, out) {
93
93
  } catch (err) {
94
94
  const { CurviateError } = await import("@curviate/sdk");
95
95
  if (err instanceof CurviateError) {
96
- const { getExitCode } = await import("./exit-codes-ZSOLAXQO.js");
96
+ const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
97
97
  renderError(err, outOpts, out);
98
98
  process.exit(getExitCode(err));
99
99
  }
@@ -132,7 +132,7 @@ async function runConnectSent(client, flags, out) {
132
132
  } catch (err) {
133
133
  const { CurviateError } = await import("@curviate/sdk");
134
134
  if (err instanceof CurviateError) {
135
- const { getExitCode } = await import("./exit-codes-ZSOLAXQO.js");
135
+ const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
136
136
  renderError(err, outOpts, out);
137
137
  process.exit(getExitCode(err));
138
138
  }
@@ -171,7 +171,7 @@ async function runConnectReceived(client, flags, out) {
171
171
  } catch (err) {
172
172
  const { CurviateError } = await import("@curviate/sdk");
173
173
  if (err instanceof CurviateError) {
174
- const { getExitCode } = await import("./exit-codes-ZSOLAXQO.js");
174
+ const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
175
175
  renderError(err, outOpts, out);
176
176
  process.exit(getExitCode(err));
177
177
  }
@@ -200,7 +200,7 @@ async function runConnectAccept(client, flags, out) {
200
200
  } catch (err) {
201
201
  const { CurviateError } = await import("@curviate/sdk");
202
202
  if (err instanceof CurviateError) {
203
- const { getExitCode } = await import("./exit-codes-ZSOLAXQO.js");
203
+ const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
204
204
  renderError(err, outOpts, out);
205
205
  process.exit(getExitCode(err));
206
206
  }
@@ -229,7 +229,7 @@ async function runConnectDecline(client, flags, out) {
229
229
  } catch (err) {
230
230
  const { CurviateError } = await import("@curviate/sdk");
231
231
  if (err instanceof CurviateError) {
232
- const { getExitCode } = await import("./exit-codes-ZSOLAXQO.js");
232
+ const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
233
233
  renderError(err, outOpts, out);
234
234
  process.exit(getExitCode(err));
235
235
  }
@@ -258,7 +258,7 @@ async function runConnectCancel(client, flags, out) {
258
258
  } catch (err) {
259
259
  const { CurviateError } = await import("@curviate/sdk");
260
260
  if (err instanceof CurviateError) {
261
- const { getExitCode } = await import("./exit-codes-ZSOLAXQO.js");
261
+ const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
262
262
  renderError(err, outOpts, out);
263
263
  process.exit(getExitCode(err));
264
264
  }
@@ -7,20 +7,20 @@ import {
7
7
  online,
8
8
  positionals,
9
9
  preview
10
- } from "./chunk-J4SFOFMT.js";
11
- import "./chunk-CRO7PJ4I.js";
10
+ } from "./chunk-WGGZWJPO.js";
11
+ import "./chunk-MLZSXQZC.js";
12
12
  import "./chunk-GOICALYQ.js";
13
- import "./chunk-XP6S6E55.js";
14
- import "./chunk-UWRWZG4N.js";
13
+ import "./chunk-3IL3D5IZ.js";
14
+ import "./chunk-5OAJ4D65.js";
15
15
  import "./chunk-TCUYH5GO.js";
16
16
  import "./chunk-NNV2OYEF.js";
17
- import "./chunk-MIOEYSBQ.js";
17
+ import "./chunk-KUVJM5CP.js";
18
18
  import "./chunk-QM57YDJE.js";
19
- import "./chunk-7PLTQHNO.js";
19
+ import "./chunk-PBJZQZPO.js";
20
20
  import "./chunk-QLKGOIWS.js";
21
- import "./chunk-MWVTFTWV.js";
21
+ import "./chunk-XDPU2YAF.js";
22
22
  import "./chunk-ZYURL5VK.js";
23
- import "./chunk-RDKTHFQ6.js";
23
+ import "./chunk-EWSOIFG2.js";
24
24
  export {
25
25
  BULK_MAX_IDS,
26
26
  contactCommand,
@@ -8,18 +8,18 @@ import {
8
8
  online,
9
9
  preview,
10
10
  readFilter
11
- } from "./chunk-J4SFOFMT.js";
12
- import "./chunk-CRO7PJ4I.js";
11
+ } from "./chunk-WGGZWJPO.js";
12
+ import "./chunk-MLZSXQZC.js";
13
13
  import "./chunk-GOICALYQ.js";
14
14
  import {
15
15
  sendInChunks
16
- } from "./chunk-XP6S6E55.js";
16
+ } from "./chunk-3IL3D5IZ.js";
17
17
  import {
18
18
  fail,
19
19
  listFlag,
20
20
  outputOpts,
21
21
  usage
22
- } from "./chunk-UWRWZG4N.js";
22
+ } from "./chunk-5OAJ4D65.js";
23
23
  import "./chunk-TCUYH5GO.js";
24
24
  import {
25
25
  intFlag
@@ -32,21 +32,21 @@ import {
32
32
  readablePage,
33
33
  rejectPaginationModifiersWithoutAll,
34
34
  streamAll
35
- } from "./chunk-MIOEYSBQ.js";
35
+ } from "./chunk-KUVJM5CP.js";
36
36
  import {
37
37
  renderSuccess,
38
38
  writeNdjsonItem
39
39
  } from "./chunk-QM57YDJE.js";
40
- import "./chunk-7PLTQHNO.js";
40
+ import "./chunk-PBJZQZPO.js";
41
41
  import {
42
42
  GLOBAL_FLAGS,
43
43
  READ_SINGLE_FLAGS,
44
44
  WRITE_SINGLE_FLAGS,
45
45
  readOnly
46
46
  } from "./chunk-QLKGOIWS.js";
47
- import "./chunk-MWVTFTWV.js";
47
+ import "./chunk-XDPU2YAF.js";
48
48
  import "./chunk-ZYURL5VK.js";
49
- import "./chunk-RDKTHFQ6.js";
49
+ import "./chunk-EWSOIFG2.js";
50
50
 
51
51
  // src/commands/contact-groups.ts
52
52
  import { defineCommand } from "citty";
@@ -293,7 +293,7 @@ var contactListsCommand = defineCommand({
293
293
  meta: { name: "lists", description: "Lead lists: named sets of Leads a Campaign enrolls from." },
294
294
  subCommands: { list: listsList, get: listsGet, create: listsCreate, combine: listsCombine, update: listsUpdate, delete: listsDelete, add: membership("add"), remove: membership("remove") },
295
295
  async run() {
296
- const { showHelp } = await import("./examples-IGQJCSNL.js");
296
+ const { showHelp } = await import("./examples-5FJS47QF.js");
297
297
  await showHelp(contactListsCommand, ["curviate", "lead", "lists"]);
298
298
  }
299
299
  });
@@ -390,7 +390,7 @@ var contactTagsCommand = defineCommand({
390
390
  meta: { name: "tags", description: "Tags: labels on Leads." },
391
391
  subCommands: { list: tagsList, update: tagsUpdate, delete: tagsDelete, add: tagging("add"), remove: tagging("remove") },
392
392
  async run() {
393
- const { showHelp } = await import("./examples-IGQJCSNL.js");
393
+ const { showHelp } = await import("./examples-5FJS47QF.js");
394
394
  await showHelp(contactTagsCommand, ["curviate", "lead", "tags"]);
395
395
  }
396
396
  });
@@ -7,23 +7,23 @@ import {
7
7
  contactImportCommand,
8
8
  contactImportsCommand,
9
9
  csvRecords
10
- } from "./chunk-L3RJU7C3.js";
11
- import "./chunk-J4SFOFMT.js";
12
- import "./chunk-CRO7PJ4I.js";
10
+ } from "./chunk-WITIJCUU.js";
11
+ import "./chunk-WGGZWJPO.js";
12
+ import "./chunk-MLZSXQZC.js";
13
13
  import "./chunk-GOICALYQ.js";
14
- import "./chunk-XP6S6E55.js";
15
- import "./chunk-UWRWZG4N.js";
14
+ import "./chunk-3IL3D5IZ.js";
15
+ import "./chunk-5OAJ4D65.js";
16
16
  import "./chunk-TCUYH5GO.js";
17
17
  import "./chunk-NNV2OYEF.js";
18
- import "./chunk-MIOEYSBQ.js";
18
+ import "./chunk-KUVJM5CP.js";
19
19
  import "./chunk-QM57YDJE.js";
20
- import "./chunk-7PLTQHNO.js";
20
+ import "./chunk-PBJZQZPO.js";
21
21
  import "./chunk-QLKGOIWS.js";
22
- import "./chunk-MWVTFTWV.js";
23
- import "./chunk-RKNW4UX4.js";
22
+ import "./chunk-XDPU2YAF.js";
23
+ import "./chunk-JKOQX46J.js";
24
24
  import "./chunk-FDJMAF7D.js";
25
25
  import "./chunk-ZYURL5VK.js";
26
- import "./chunk-RDKTHFQ6.js";
26
+ import "./chunk-EWSOIFG2.js";
27
27
  export {
28
28
  IMPORT_MAX_BODY_BYTES,
29
29
  IMPORT_MAX_ROWS,
@@ -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
+ };