@curviate/cli 0.50.0-next.0 → 0.50.0-next.2
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.
- package/CHANGELOG.md +12 -0
- package/dist/{account-KGCGUYKF.js → account-O2P6V2VZ.js} +143 -27
- package/dist/{analytics-HRAD4ABO.js → analytics-54LKQCRK.js} +4 -4
- package/dist/{beta-consent-364JI6IL.js → beta-consent-UJOG5NTW.js} +3 -3
- package/dist/{billing-3SSVRS2Y.js → billing-SG556BMY.js} +4 -4
- package/dist/{chunk-67S4JHZZ.js → chunk-22WLAZTX.js} +5 -5
- package/dist/{chunk-25MO7BYN.js → chunk-2VVJAHSU.js} +1 -1
- package/dist/{chunk-OE6YFYUM.js → chunk-4BJIDUCV.js} +4 -4
- package/dist/{chunk-DSGKYZDK.js → chunk-A57ZILRU.js} +1 -1
- package/dist/{chunk-DOHBOYXN.js → chunk-BK3TDBUQ.js} +1 -1
- package/dist/{chunk-T6GBS5SS.js → chunk-BOI6T4FI.js} +1 -1
- package/dist/{chunk-CQGDMARG.js → chunk-I24IVJVR.js} +13 -10
- package/dist/{chunk-UL53T4O6.js → chunk-MPGYLZI6.js} +1 -1
- package/dist/{chunk-YXVF5UST.js → chunk-PEUUJ5NG.js} +11 -3
- package/dist/{chunk-UWQPX4AE.js → chunk-Q3ZPRFUX.js} +1 -1
- package/dist/{chunk-TE3WBPW6.js → chunk-TYNVJDYK.js} +6 -1
- package/dist/{chunk-L4CIJT6F.js → chunk-UDWAZ6SK.js} +1 -1
- package/dist/cli.js +23 -23
- package/dist/{comment-5JKGNYOY.js → comment-KBD4AMUZ.js} +5 -5
- package/dist/{company-TXST2VXW.js → company-5F2MOIX2.js} +5 -5
- package/dist/{config-TVIQUVNK.js → config-NIPXQQDQ.js} +1 -1
- package/dist/{connect-RBL6U4KV.js → connect-JA44YS6F.js} +4 -4
- package/dist/{contact-YAHC5QFX.js → contact-CVHOW7CC.js} +6 -6
- package/dist/{contact-groups-DKOIBC57.js → contact-groups-U24LLLTL.js} +10 -10
- package/dist/{contact-import-ITSJQV7K.js → contact-import-MWZUDQIQ.js} +8 -8
- package/dist/{core-PWMJPPRG.js → core-5G2GMBUS.js} +17 -17
- package/dist/{do-not-contact-WDYIBWYA.js → do-not-contact-SVF6MEU3.js} +4 -4
- package/dist/{doctor-F7JLPTED.js → doctor-2ER265SH.js} +2 -2
- package/dist/{document-BHYAUJ6F.js → document-GFRWPQFV.js} +1 -1
- package/dist/{draft-TDJJUXLH.js → draft-BWE6LV7U.js} +3 -3
- package/dist/{enrollment-Q6UOKHPY.js → enrollment-BOO7UAJQ.js} +4 -4
- package/dist/{examples-DQSVIIXZ.js → examples-JJB4DZKK.js} +1 -1
- package/dist/{export-HIJSCJS6.js → export-65NMK6AZ.js} +3 -3
- package/dist/{feed-W56ZTA4Z.js → feed-V2LCBCY4.js} +3 -3
- package/dist/{group-AUALYK5H.js → group-AFRY5UD3.js} +3 -3
- package/dist/{inbox-HLZR2ZPV.js → inbox-QHTUG2KO.js} +4 -4
- package/dist/{inboxes-IZTRD6FE.js → inboxes-PBARKLJU.js} +3 -3
- package/dist/{incoming-ULB2RNV4.js → incoming-TQV4ZEPR.js} +4 -4
- package/dist/{job-55IKS6LP.js → job-GVQJCZNV.js} +4 -4
- package/dist/{login-DPZ6CXNO.js → login-5CXZF2YG.js} +1 -1
- package/dist/{message-J44YKRDS.js → message-AN3MEFWM.js} +5 -5
- package/dist/{motion-SQI5F2EK.js → motion-BYBPOKEI.js} +6 -6
- package/dist/{network-K4QD7APQ.js → network-US5Y4CHT.js} +4 -4
- package/dist/{notification-SEDXZHXO.js → notification-DXY2T6PU.js} +4 -4
- package/dist/{notifications-HGIBRUNQ.js → notifications-Q6MMYALR.js} +4 -4
- package/dist/{post-L467SKIG.js → post-VREJUZ2X.js} +5 -5
- package/dist/{profile-A2N6RMR2.js → profile-EVS2V2L7.js} +5 -5
- package/dist/{recruiter-AR75RHBO.js → recruiter-VIMZPX5I.js} +6 -6
- package/dist/{sales-nav-C2AYFXPV.js → sales-nav-O3M5I7PZ.js} +6 -6
- package/dist/{search-Z4DZIG4X.js → search-N6TUF4HD.js} +5 -5
- package/dist/{setup-45BEVX6B.js → setup-5RBTOOIX.js} +2 -2
- package/dist/{team-6QWY4IFP.js → team-KLTVYIXR.js} +4 -4
- package/dist/{tier-2HS3BXDF.js → tier-4GNKK55U.js} +3 -3
- package/dist/{unibox-DHUKG65Z.js → unibox-LPS3M2A5.js} +4 -4
- package/dist/{webhook-Q53WUAI2.js → webhook-EJSVVIPS.js} +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,18 @@ Requires the next `@curviate/sdk` (a commit pin on the SDK PR build until it is
|
|
|
12
12
|
|
|
13
13
|
### Added
|
|
14
14
|
|
|
15
|
+
- `curviate account safety get|update <account>`: read and change one Account's limits and Active hours. `curviate account team-access on|off <account>`: share an Account with its Team or keep it to its person.
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- `curviate contact export` no longer fails with exit 7 on any answer of more than one row.
|
|
20
|
+
- A write answering a JSON object with no `object` key (`contact tags add`, `contact lists add`, `motion remove`) no longer warns about an unexpected shape.
|
|
21
|
+
- A stored profile holding the stdin placeholder as its key no longer blocks every write to the config file: the placeholder is dropped on read, and the next write heals the file.
|
|
22
|
+
- `motion create` and `motion update` refuse `schedule.timezone` (exit 2) and no longer list it: the API ignores it, hours read in each Account's own zone.
|
|
23
|
+
- `contact lists delete` help: any role may delete a Contact list. `BUDGET_EXHAUSTED` help names `account safety update`.
|
|
24
|
+
|
|
25
|
+
### Added (earlier)
|
|
26
|
+
|
|
15
27
|
- `curviate account update --save-connections-as-contacts` (and `--no-save-connections-as-contacts`): whether the Account's Connections are saved as Contacts (Automate). `account get` shows `save_connections_as_contacts` and `save_connections_paused_reason` (`contact_limit_reached`).
|
|
16
28
|
- `curviate contact list|export|update|delete --connected-account` takes several Accounts (repeat the flag, or a comma list, up to 50): Connections of any of them.
|
|
17
29
|
- `contact get|list --json` carries the read-only `company_linkedin_url`; `account get --json` carries `save_connections_as_contacts` and `save_connections_paused_reason` when the API sends them (Automate); `analytics events` and `account overview` items carry `person_name` for a direct action.
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
grammarParams,
|
|
11
11
|
renderOverview,
|
|
12
12
|
windowParams
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-22WLAZTX.js";
|
|
14
14
|
import {
|
|
15
15
|
print,
|
|
16
16
|
table
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
outputOpts,
|
|
23
23
|
rootClient,
|
|
24
24
|
usage
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-BOI6T4FI.js";
|
|
26
26
|
import {
|
|
27
27
|
buildPreviewOutput
|
|
28
28
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
readablePage,
|
|
38
38
|
rejectPaginationModifiersWithoutAll,
|
|
39
39
|
streamAll
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-UDWAZ6SK.js";
|
|
41
41
|
import {
|
|
42
42
|
isJsonMode,
|
|
43
43
|
renderError,
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
import {
|
|
54
54
|
createClient,
|
|
55
55
|
resolveEffectiveConfig
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-PEUUJ5NG.js";
|
|
57
57
|
import {
|
|
58
58
|
GLOBAL_FLAGS,
|
|
59
59
|
READ_SINGLE_FLAGS,
|
|
@@ -63,6 +63,11 @@ import {
|
|
|
63
63
|
import {
|
|
64
64
|
DESCRIPTIONS
|
|
65
65
|
} from "./chunk-73DJ3KNE.js";
|
|
66
|
+
import {
|
|
67
|
+
parseDocument,
|
|
68
|
+
readFileFlag
|
|
69
|
+
} from "./chunk-TYNVJDYK.js";
|
|
70
|
+
import "./chunk-FDJMAF7D.js";
|
|
66
71
|
import {
|
|
67
72
|
defaultReadStdin,
|
|
68
73
|
isStdinToken
|
|
@@ -186,8 +191,117 @@ var accountWarmUpCommand = defineCommand2({
|
|
|
186
191
|
}
|
|
187
192
|
});
|
|
188
193
|
|
|
194
|
+
// src/commands/account-safety.ts
|
|
195
|
+
import { defineCommand as defineCommand3 } from "citty";
|
|
196
|
+
var ACCOUNT = { type: "positional", description: "The Account (acc_...)." };
|
|
197
|
+
var getCmd = defineCommand3({
|
|
198
|
+
meta: {
|
|
199
|
+
name: "get",
|
|
200
|
+
description: "One Account's safety policy: every budget row with its ceiling and effective_ceiling, Active hours, warm-up and pacing. A read: no LinkedIn call.",
|
|
201
|
+
risk: "read",
|
|
202
|
+
seeAlso: ["curviate account safety update", "curviate account get"],
|
|
203
|
+
examples: ["curviate account safety get acc_YOUR_ACCOUNT_ID", "curviate account safety get acc_YOUR_ACCOUNT_ID --fields active_hours,warm_up"]
|
|
204
|
+
},
|
|
205
|
+
args: { ...readOnly(READ_SINGLE_FLAGS), accountId: ACCOUNT },
|
|
206
|
+
async run({ args }) {
|
|
207
|
+
const f = args;
|
|
208
|
+
const c = await rootClient(f);
|
|
209
|
+
try {
|
|
210
|
+
renderSuccess(await c.accounts.getSafetyPolicy(String(f.accountId ?? "")), outputOpts(f), process);
|
|
211
|
+
} catch (err) {
|
|
212
|
+
await fail(err, f);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
var updateCmd = defineCommand3({
|
|
217
|
+
meta: {
|
|
218
|
+
name: "update",
|
|
219
|
+
description: 'Change one Account\'s safety policy from a JSON document: `rows`, for example {"rows":[{"budget_row":"profile_views","ceiling":40}]}, and `active_hours`, for example {"active_hours":{"days":["mon","tue"],"start":"09:00","end":"17:00"}}. Fields you leave out stay as they are; null clears an override. Prints the policy.',
|
|
220
|
+
risk: "write",
|
|
221
|
+
rules: {
|
|
222
|
+
changes: "The Account's limits or Active hours, from the next action on.",
|
|
223
|
+
visible_to: "Your Team. Nothing is posted on LinkedIn; a higher limit lets more actions reach it.",
|
|
224
|
+
budget_rows: [],
|
|
225
|
+
retry: "Safe: the same document leaves the same policy.",
|
|
226
|
+
undo: "Send the previous values, or null to fall back to the Team's default.",
|
|
227
|
+
blast_radius: "One Account's pace, in every Motion and every direct action."
|
|
228
|
+
},
|
|
229
|
+
errors: { INVALID_REQUEST: "a field is unknown or not settable; the message names it." },
|
|
230
|
+
seeAlso: ["curviate account safety get", "curviate account warm-up"],
|
|
231
|
+
examples: [
|
|
232
|
+
"curviate account safety update acc_YOUR_ACCOUNT_ID --file policy.json"
|
|
233
|
+
]
|
|
234
|
+
},
|
|
235
|
+
args: {
|
|
236
|
+
...WRITE_SINGLE_FLAGS,
|
|
237
|
+
accountId: ACCOUNT,
|
|
238
|
+
file: { type: "string", required: true, description: "The JSON document: a path, or - to read it from stdin." }
|
|
239
|
+
},
|
|
240
|
+
async run({ args }) {
|
|
241
|
+
const f = args;
|
|
242
|
+
const accountId = String(f.accountId ?? "");
|
|
243
|
+
const body = parseDocument("file", await readFileFlag("file", f.file ?? "", { others: f }));
|
|
244
|
+
if (f.preview) {
|
|
245
|
+
process.stdout.write(JSON.stringify(buildPreviewOutput({ method: "accounts.updateSafetyPolicy", args: { accountId }, body })) + "\n");
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
const c = await rootClient(f);
|
|
249
|
+
try {
|
|
250
|
+
renderSuccess(await c.accounts.updateSafetyPolicy(accountId, body), outputOpts(f), process);
|
|
251
|
+
} catch (err) {
|
|
252
|
+
await fail(err, f);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
});
|
|
256
|
+
var accountSafetyCommand = defineCommand3({
|
|
257
|
+
meta: { name: "safety", description: "Read or change one Account's safety policy: limits per budget row and Active hours." },
|
|
258
|
+
subCommands: { get: getCmd, update: updateCmd },
|
|
259
|
+
async run() {
|
|
260
|
+
process.stderr.write("Usage: curviate account safety get|update <account>\n");
|
|
261
|
+
}
|
|
262
|
+
});
|
|
263
|
+
var accessCommand = (name) => defineCommand3({
|
|
264
|
+
meta: {
|
|
265
|
+
name,
|
|
266
|
+
description: name === "on" ? "Share the Account with its Team again (it does not rejoin a Motion). Only the person who connected it can." : "Keep the Account to its person: it leaves every Motion that held it and its queued enrichment visits are dropped. Only the person who connected it can.",
|
|
267
|
+
risk: "write",
|
|
268
|
+
rules: {
|
|
269
|
+
changes: name === "on" ? "The Team may use the Account again." : "The Team loses the Account; it leaves every Motion that held it.",
|
|
270
|
+
visible_to: "Your Team.",
|
|
271
|
+
budget_rows: [],
|
|
272
|
+
retry: "Safe to repeat: the switch ends in the same state.",
|
|
273
|
+
undo: name === "on" ? "Run `curviate account team-access off <account>`." : "Run `curviate account team-access on <account>`, then add it back to its Motions."
|
|
274
|
+
},
|
|
275
|
+
errors: { ACCOUNT_OWNER_ONLY: "only the person who connected the Account can change this." },
|
|
276
|
+
seeAlso: ["curviate account get", "curviate team members"],
|
|
277
|
+
examples: [`curviate account team-access ${name} acc_YOUR_ACCOUNT_ID`]
|
|
278
|
+
},
|
|
279
|
+
args: { ...WRITE_SINGLE_FLAGS, accountId: ACCOUNT },
|
|
280
|
+
async run({ args }) {
|
|
281
|
+
const f = args;
|
|
282
|
+
const accountId = String(f.accountId ?? "");
|
|
283
|
+
if (f.preview) {
|
|
284
|
+
process.stdout.write(JSON.stringify(buildPreviewOutput({ method: "accounts.setTeamAccess", args: { accountId }, body: { team_access: name === "on" } })) + "\n");
|
|
285
|
+
return;
|
|
286
|
+
}
|
|
287
|
+
const c = await rootClient(f);
|
|
288
|
+
try {
|
|
289
|
+
renderSuccess(await c.accounts.setTeamAccess(accountId, name === "on"), outputOpts(f), process);
|
|
290
|
+
} catch (err) {
|
|
291
|
+
await fail(err, f);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
var accountTeamAccessCommand = defineCommand3({
|
|
296
|
+
meta: { name: "team-access", description: "Share an Account with its Team, or keep it to the person who connected it." },
|
|
297
|
+
subCommands: { on: accessCommand("on"), off: accessCommand("off") },
|
|
298
|
+
async run() {
|
|
299
|
+
process.stderr.write("Usage: curviate account team-access on|off <account>\n");
|
|
300
|
+
}
|
|
301
|
+
});
|
|
302
|
+
|
|
189
303
|
// src/commands/account.ts
|
|
190
|
-
import { defineCommand as
|
|
304
|
+
import { defineCommand as defineCommand5 } from "citty";
|
|
191
305
|
|
|
192
306
|
// src/lib/cookie-export.ts
|
|
193
307
|
var COOKIE_EXPORT_MAX_BYTES = 1024 * 1024;
|
|
@@ -433,7 +547,7 @@ function nextCheckpointPollDelayMs(elapsedMs) {
|
|
|
433
547
|
}
|
|
434
548
|
|
|
435
549
|
// src/commands/connect-request.ts
|
|
436
|
-
import { defineCommand as
|
|
550
|
+
import { defineCommand as defineCommand4 } from "citty";
|
|
437
551
|
var CONNECT_REQUEST_INSTRUCTION = "Ask your user to open this link in the browser where they're signed in to Curviate, or to open Accounts in their Curviate dashboard, where this request is listed. It expires in 15 minutes. Never ask them for their LinkedIn password, cookies or verification codes.";
|
|
438
552
|
var online2 = (fn) => async ({ args }) => {
|
|
439
553
|
const f = args;
|
|
@@ -488,7 +602,7 @@ async function runCancel(c, f) {
|
|
|
488
602
|
}
|
|
489
603
|
}
|
|
490
604
|
var ID = { type: "positional", description: "Connect request id (creq_...)." };
|
|
491
|
-
var createCmd =
|
|
605
|
+
var createCmd = defineCommand4({
|
|
492
606
|
meta: {
|
|
493
607
|
name: "create",
|
|
494
608
|
description: "Ask a person to connect a new LinkedIn account, or with --reconnect to reconnect one, without handing you any credential. Prints the link to give them; they connect in their own Curviate dashboard, where the request is also listed. The link expires if it is not opened in time. AI agents: never ask for, read or pass a LinkedIn password, cookies or verification codes. Use this instead.",
|
|
@@ -515,7 +629,7 @@ var createCmd = defineCommand3({
|
|
|
515
629
|
},
|
|
516
630
|
run: online2(runCreate)
|
|
517
631
|
});
|
|
518
|
-
var
|
|
632
|
+
var getCmd2 = defineCommand4({
|
|
519
633
|
meta: {
|
|
520
634
|
name: "get",
|
|
521
635
|
description: "Read a connect request: pending, completed (with the connected account_id), expired, failed or cancelled. Poll it until it leaves pending.",
|
|
@@ -526,7 +640,7 @@ var getCmd = defineCommand3({
|
|
|
526
640
|
args: { ...readOnly(READ_SINGLE_FLAGS), id: ID },
|
|
527
641
|
run: online2(runGet)
|
|
528
642
|
});
|
|
529
|
-
var cancelCmd =
|
|
643
|
+
var cancelCmd = defineCommand4({
|
|
530
644
|
meta: {
|
|
531
645
|
name: "cancel",
|
|
532
646
|
description: "Cancel a pending connect request; its link stops working. A request that is no longer pending is refused.",
|
|
@@ -548,11 +662,11 @@ var cancelCmd = defineCommand3({
|
|
|
548
662
|
args: { ...WRITE_SINGLE_FLAGS, id: ID },
|
|
549
663
|
run: online2(runCancel)
|
|
550
664
|
});
|
|
551
|
-
var connectRequestCommand =
|
|
665
|
+
var connectRequestCommand = defineCommand4({
|
|
552
666
|
meta: { name: "connect-request", description: "Connect a LinkedIn account without any credential passing through you: create a request, give the person its link, read it until done." },
|
|
553
|
-
subCommands: { create: createCmd, get:
|
|
667
|
+
subCommands: { create: createCmd, get: getCmd2, cancel: cancelCmd },
|
|
554
668
|
async run() {
|
|
555
|
-
const { showHelp } = await import("./examples-
|
|
669
|
+
const { showHelp } = await import("./examples-JJB4DZKK.js");
|
|
556
670
|
await showHelp(connectRequestCommand, ["curviate", "account", "connect-request"]);
|
|
557
671
|
}
|
|
558
672
|
});
|
|
@@ -1519,7 +1633,7 @@ async function runAccountCheckpointPoll(client, flags, out, io = {}) {
|
|
|
1519
1633
|
);
|
|
1520
1634
|
process.exit(AUTH_NEEDED);
|
|
1521
1635
|
}
|
|
1522
|
-
var accountListCommand =
|
|
1636
|
+
var accountListCommand = defineCommand5({
|
|
1523
1637
|
meta: {
|
|
1524
1638
|
name: "list",
|
|
1525
1639
|
description: "List connected LinkedIn accounts.",
|
|
@@ -1551,7 +1665,7 @@ var accountListCommand = defineCommand4({
|
|
|
1551
1665
|
await runAccountList(client, flags, out);
|
|
1552
1666
|
}
|
|
1553
1667
|
});
|
|
1554
|
-
var accountGetCommand =
|
|
1668
|
+
var accountGetCommand = defineCommand5({
|
|
1555
1669
|
meta: {
|
|
1556
1670
|
name: "get",
|
|
1557
1671
|
description: "Get a connected LinkedIn account: its status (active, reconnect_needed, restricted, connecting or disconnected) and its per-action quotas. --verbose adds cached profile fields, which may be null.",
|
|
@@ -1582,7 +1696,7 @@ var accountGetCommand = defineCommand4({
|
|
|
1582
1696
|
await runAccountGet(client, flags, out);
|
|
1583
1697
|
}
|
|
1584
1698
|
});
|
|
1585
|
-
var accountSeatsCommand =
|
|
1699
|
+
var accountSeatsCommand = defineCommand5({
|
|
1586
1700
|
meta: {
|
|
1587
1701
|
name: "seats",
|
|
1588
1702
|
description: "List the workspace's live seats and whether each is free or bound to an account. A seat with occupied:false (free) is a seat_id `curviate account link --seat-id` accepts right now. Not paginated (bounded by purchased seats), --all is not supported. An empty result can mean the workspace has no seats, or that billing needs attention.",
|
|
@@ -1609,7 +1723,7 @@ var accountSeatsCommand = defineCommand4({
|
|
|
1609
1723
|
await runAccountSeats(client, flags, out);
|
|
1610
1724
|
}
|
|
1611
1725
|
});
|
|
1612
|
-
var accountLinkCommand =
|
|
1726
|
+
var accountLinkCommand = defineCommand5({
|
|
1613
1727
|
meta: {
|
|
1614
1728
|
name: "link",
|
|
1615
1729
|
description: "Connect a LinkedIn account to an empty seat. AI agents: do not read, pass or ask for passwords, cookies or cookie exports; run `curviate account connect-request create` and hand the person its link instead. --cookies-file takes an export of a live LinkedIn session; delete it after use. If LinkedIn requires verification you'll be prompted for the code interactively. Given --auth-method and its credentials, a non-interactive shell exits 12 at that step and you finish with `curviate account checkpoint solve <account_id> --code`.",
|
|
@@ -1686,7 +1800,7 @@ var accountLinkCommand = defineCommand4({
|
|
|
1686
1800
|
await runAccountLink(client, flags, out);
|
|
1687
1801
|
}
|
|
1688
1802
|
});
|
|
1689
|
-
var accountConnectSessionPollCommand =
|
|
1803
|
+
var accountConnectSessionPollCommand = defineCommand5({
|
|
1690
1804
|
meta: {
|
|
1691
1805
|
name: "poll",
|
|
1692
1806
|
description: "Poll the status of an in-progress connect (auth intent) for completion. Without --wait: a single poll. The JSON `status` field (pending | resolved | expired | failed) tells you what to do next. With --wait: block on the same adaptive cadence as `curviate account link` until a terminal state.",
|
|
@@ -1741,7 +1855,7 @@ var accountConnectSessionPollCommand = defineCommand4({
|
|
|
1741
1855
|
await runAccountConnectSessionPoll(client, flags, out);
|
|
1742
1856
|
}
|
|
1743
1857
|
});
|
|
1744
|
-
var accountConnectSessionCommand =
|
|
1858
|
+
var accountConnectSessionCommand = defineCommand5({
|
|
1745
1859
|
meta: { name: "connect-session", description: "In-progress connect operations (poll for completion)." },
|
|
1746
1860
|
subCommands: {
|
|
1747
1861
|
poll: accountConnectSessionPollCommand
|
|
@@ -1750,7 +1864,7 @@ var accountConnectSessionCommand = defineCommand4({
|
|
|
1750
1864
|
process.stderr.write("Usage: curviate account connect-session poll --session <session_id>\n");
|
|
1751
1865
|
}
|
|
1752
1866
|
});
|
|
1753
|
-
var accountUpdateCommand =
|
|
1867
|
+
var accountUpdateCommand = defineCommand5({
|
|
1754
1868
|
meta: {
|
|
1755
1869
|
name: "update",
|
|
1756
1870
|
description: "Update an account's metadata, connection location, own proxy or whether its Connections are saved as Contacts. Prints the updated account, with connection_location re-read after a location change.",
|
|
@@ -1800,7 +1914,7 @@ var accountUpdateCommand = defineCommand4({
|
|
|
1800
1914
|
await runAccountUpdate(client, flags, out);
|
|
1801
1915
|
}
|
|
1802
1916
|
});
|
|
1803
|
-
var accountDisconnectCommand =
|
|
1917
|
+
var accountDisconnectCommand = defineCommand5({
|
|
1804
1918
|
meta: {
|
|
1805
1919
|
name: "disconnect",
|
|
1806
1920
|
description: "Hard-disconnect a LinkedIn account and release its seat.",
|
|
@@ -1840,7 +1954,7 @@ var accountDisconnectCommand = defineCommand4({
|
|
|
1840
1954
|
await runAccountDisconnect(client, flags, out);
|
|
1841
1955
|
}
|
|
1842
1956
|
});
|
|
1843
|
-
var accountCheckpointSolveCommand =
|
|
1957
|
+
var accountCheckpointSolveCommand = defineCommand5({
|
|
1844
1958
|
meta: {
|
|
1845
1959
|
name: "solve",
|
|
1846
1960
|
description: "Solve a checkpoint challenge with an OTP / 2FA code.",
|
|
@@ -1886,7 +2000,7 @@ var accountCheckpointSolveCommand = defineCommand4({
|
|
|
1886
2000
|
await runAccountCheckpointSolve(client, flags, out);
|
|
1887
2001
|
}
|
|
1888
2002
|
});
|
|
1889
|
-
var accountCheckpointPollCommand =
|
|
2003
|
+
var accountCheckpointPollCommand = defineCommand5({
|
|
1890
2004
|
meta: {
|
|
1891
2005
|
name: "poll",
|
|
1892
2006
|
description: "Poll for mobile-app approval of a pending checkpoint challenge. With --wait, blocks on an adaptive cadence until a terminal state (or --timeout elapses) instead of a single poll.",
|
|
@@ -1940,7 +2054,7 @@ var accountCheckpointPollCommand = defineCommand4({
|
|
|
1940
2054
|
await runAccountCheckpointPoll(client, flags, out);
|
|
1941
2055
|
}
|
|
1942
2056
|
});
|
|
1943
|
-
var accountCheckpointRequestCommand =
|
|
2057
|
+
var accountCheckpointRequestCommand = defineCommand5({
|
|
1944
2058
|
meta: {
|
|
1945
2059
|
name: "request",
|
|
1946
2060
|
description: "Re-request the challenge notification for a pending checkpoint (e.g. re-send an OTP email, SMS code, or mobile-app approval push). Not every challenge type supports it; an authenticator- app code has nothing to re-send. The response's `resent` boolean tells you honestly whether a new notification actually went out; the command still exits 0 either way. With --challenge it instead answers a challenge_selection checkpoint by picking the verification method.",
|
|
@@ -1986,7 +2100,7 @@ var accountCheckpointRequestCommand = defineCommand4({
|
|
|
1986
2100
|
await runAccountCheckpointRequest(client, flags, out);
|
|
1987
2101
|
}
|
|
1988
2102
|
});
|
|
1989
|
-
var accountCheckpointCommand =
|
|
2103
|
+
var accountCheckpointCommand = defineCommand5({
|
|
1990
2104
|
meta: {
|
|
1991
2105
|
name: "checkpoint",
|
|
1992
2106
|
description: "Checkpoint challenge operations (solve with an OTP, poll mobile-app approval, or re-request the challenge notification)."
|
|
@@ -2000,7 +2114,7 @@ var accountCheckpointCommand = defineCommand4({
|
|
|
2000
2114
|
process.stderr.write("Usage: curviate account checkpoint solve <account_id> --code <code> | poll <account_id> | request <account_id>\n");
|
|
2001
2115
|
}
|
|
2002
2116
|
});
|
|
2003
|
-
var accountCommand =
|
|
2117
|
+
var accountCommand = defineCommand5({
|
|
2004
2118
|
meta: { name: "account", description: DESCRIPTIONS.account },
|
|
2005
2119
|
subCommands: {
|
|
2006
2120
|
list: accountListCommand,
|
|
@@ -2014,11 +2128,13 @@ var accountCommand = defineCommand4({
|
|
|
2014
2128
|
checkpoint: accountCheckpointCommand,
|
|
2015
2129
|
overview: accountOverviewCommand,
|
|
2016
2130
|
metrics: accountMetricsCommand,
|
|
2017
|
-
"warm-up": accountWarmUpCommand
|
|
2131
|
+
"warm-up": accountWarmUpCommand,
|
|
2132
|
+
safety: accountSafetyCommand,
|
|
2133
|
+
"team-access": accountTeamAccessCommand
|
|
2018
2134
|
},
|
|
2019
2135
|
async run() {
|
|
2020
2136
|
process.stderr.write(
|
|
2021
|
-
"Usage: curviate account <subcommand>\n list | get | seats | link | connect-request | connect-session poll | update | disconnect | checkpoint | overview | metrics | warm-up\n"
|
|
2137
|
+
"Usage: curviate account <subcommand>\n list | get | seats | link | connect-request | connect-session poll | update | disconnect | checkpoint | overview | metrics | warm-up | safety | team-access\n"
|
|
2022
2138
|
);
|
|
2023
2139
|
}
|
|
2024
2140
|
});
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
grammarParams,
|
|
7
7
|
renderOverview,
|
|
8
8
|
windowParams
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-22WLAZTX.js";
|
|
10
10
|
import "./chunk-5S3MJVI5.js";
|
|
11
11
|
import "./chunk-PPGKQJKU.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-BOI6T4FI.js";
|
|
13
13
|
import "./chunk-NNV2OYEF.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-UDWAZ6SK.js";
|
|
15
15
|
import "./chunk-QM57YDJE.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-PEUUJ5NG.js";
|
|
17
17
|
import "./chunk-RYWWSZUH.js";
|
|
18
18
|
import "./chunk-73DJ3KNE.js";
|
|
19
19
|
import "./chunk-ZYURL5VK.js";
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
outputOpts,
|
|
5
5
|
rootClient,
|
|
6
6
|
usage
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BOI6T4FI.js";
|
|
8
8
|
import {
|
|
9
9
|
buildPreviewOutput
|
|
10
10
|
} from "./chunk-TCUYH5GO.js";
|
|
11
11
|
import {
|
|
12
12
|
renderSuccess
|
|
13
13
|
} from "./chunk-QM57YDJE.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-PEUUJ5NG.js";
|
|
15
15
|
import {
|
|
16
16
|
READ_SINGLE_FLAGS,
|
|
17
17
|
WRITE_SINGLE_FLAGS,
|
|
@@ -72,7 +72,7 @@ var betaCommand = defineCommand({
|
|
|
72
72
|
meta: { name: "beta", description: DESCRIPTIONS.beta },
|
|
73
73
|
subCommands: { status: statusCmd, update: updateCmd },
|
|
74
74
|
async run() {
|
|
75
|
-
const { showHelp } = await import("./examples-
|
|
75
|
+
const { showHelp } = await import("./examples-JJB4DZKK.js");
|
|
76
76
|
await showHelp(betaCommand, ["curviate", "beta"]);
|
|
77
77
|
}
|
|
78
78
|
});
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
outputOpts,
|
|
8
8
|
rootClient,
|
|
9
9
|
usage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BOI6T4FI.js";
|
|
11
11
|
import {
|
|
12
12
|
intFlag
|
|
13
13
|
} from "./chunk-NNV2OYEF.js";
|
|
@@ -18,14 +18,14 @@ import {
|
|
|
18
18
|
readablePage,
|
|
19
19
|
rejectPaginationModifiersWithoutAll,
|
|
20
20
|
streamAll
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-UDWAZ6SK.js";
|
|
22
22
|
import {
|
|
23
23
|
renderSuccess,
|
|
24
24
|
writeNdjsonItem
|
|
25
25
|
} from "./chunk-QM57YDJE.js";
|
|
26
26
|
import {
|
|
27
27
|
downloadBinary
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-PEUUJ5NG.js";
|
|
29
29
|
import {
|
|
30
30
|
GLOBAL_FLAGS,
|
|
31
31
|
readOnly
|
|
@@ -115,7 +115,7 @@ var billingCommand = defineCommand({
|
|
|
115
115
|
meta: { name: "billing", description: DESCRIPTIONS.billing },
|
|
116
116
|
subCommands: { invoices: invoicesCmd },
|
|
117
117
|
async run() {
|
|
118
|
-
const { showHelp } = await import("./examples-
|
|
118
|
+
const { showHelp } = await import("./examples-JJB4DZKK.js");
|
|
119
119
|
await showHelp(billingCommand, ["curviate", "billing"]);
|
|
120
120
|
}
|
|
121
121
|
});
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
outputOpts,
|
|
14
14
|
rootClient,
|
|
15
15
|
usage
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-BOI6T4FI.js";
|
|
17
17
|
import {
|
|
18
18
|
intFlag
|
|
19
19
|
} from "./chunk-NNV2OYEF.js";
|
|
@@ -24,14 +24,14 @@ import {
|
|
|
24
24
|
readablePage,
|
|
25
25
|
rejectPaginationModifiersWithoutAll,
|
|
26
26
|
streamAll
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-UDWAZ6SK.js";
|
|
28
28
|
import {
|
|
29
29
|
renderSuccess,
|
|
30
30
|
writeNdjsonItem
|
|
31
31
|
} from "./chunk-QM57YDJE.js";
|
|
32
32
|
import {
|
|
33
33
|
downloadBinary
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-PEUUJ5NG.js";
|
|
35
35
|
import {
|
|
36
36
|
GLOBAL_FLAGS,
|
|
37
37
|
READ_SINGLE_FLAGS,
|
|
@@ -312,7 +312,7 @@ var eventsCommand = defineCommand({
|
|
|
312
312
|
meta: { name: "events", description: "The records behind the analytics numbers." },
|
|
313
313
|
subCommands: { list: eventsListCmd },
|
|
314
314
|
async run() {
|
|
315
|
-
const { showHelp } = await import("./examples-
|
|
315
|
+
const { showHelp } = await import("./examples-JJB4DZKK.js");
|
|
316
316
|
await showHelp(eventsCommand, ["curviate", "analytics", "events"]);
|
|
317
317
|
}
|
|
318
318
|
});
|
|
@@ -324,7 +324,7 @@ var analyticsCommand = defineCommand({
|
|
|
324
324
|
export: exportCmd
|
|
325
325
|
},
|
|
326
326
|
async run() {
|
|
327
|
-
const { showHelp } = await import("./examples-
|
|
327
|
+
const { showHelp } = await import("./examples-JJB4DZKK.js");
|
|
328
328
|
await showHelp(analyticsCommand, ["curviate", "analytics"]);
|
|
329
329
|
}
|
|
330
330
|
});
|
|
@@ -12,21 +12,21 @@ import {
|
|
|
12
12
|
AS_ACCOUNT,
|
|
13
13
|
BUDGET,
|
|
14
14
|
TARGET
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-Q3ZPRFUX.js";
|
|
16
16
|
import {
|
|
17
17
|
normalizeChatId,
|
|
18
18
|
resolveIdentifier
|
|
19
19
|
} from "./chunk-UEAX6KUB.js";
|
|
20
20
|
import {
|
|
21
21
|
requireAccount
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2VVJAHSU.js";
|
|
23
23
|
import {
|
|
24
24
|
buildPreviewOutput
|
|
25
25
|
} from "./chunk-TCUYH5GO.js";
|
|
26
26
|
import {
|
|
27
27
|
readableId,
|
|
28
28
|
readableObject
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-UDWAZ6SK.js";
|
|
30
30
|
import {
|
|
31
31
|
renderError,
|
|
32
32
|
renderSuccess,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
createClient,
|
|
37
37
|
downloadBinary,
|
|
38
38
|
resolveEffectiveConfig
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-PEUUJ5NG.js";
|
|
40
40
|
import {
|
|
41
41
|
READ_SINGLE_FLAGS,
|
|
42
42
|
WRITE_FLAGS,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
requireAccount
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2VVJAHSU.js";
|
|
5
5
|
import {
|
|
6
6
|
writeAtomic
|
|
7
7
|
} from "./chunk-GOICALYQ.js";
|
|
8
8
|
import {
|
|
9
9
|
sendInChunks
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MPGYLZI6.js";
|
|
11
11
|
import {
|
|
12
12
|
fail,
|
|
13
13
|
listFlag,
|
|
14
14
|
outputOpts,
|
|
15
15
|
rootClient,
|
|
16
16
|
usage
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-BOI6T4FI.js";
|
|
18
18
|
import {
|
|
19
19
|
buildPreviewOutput
|
|
20
20
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -29,11 +29,14 @@ import {
|
|
|
29
29
|
readablePage,
|
|
30
30
|
rejectPaginationModifiersWithoutAll,
|
|
31
31
|
streamAll
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-UDWAZ6SK.js";
|
|
33
33
|
import {
|
|
34
34
|
renderSuccess,
|
|
35
35
|
writeNdjsonItem
|
|
36
36
|
} from "./chunk-QM57YDJE.js";
|
|
37
|
+
import {
|
|
38
|
+
downloadBinary
|
|
39
|
+
} from "./chunk-PEUUJ5NG.js";
|
|
37
40
|
import {
|
|
38
41
|
GLOBAL_FLAGS,
|
|
39
42
|
READ_SINGLE_FLAGS,
|
|
@@ -318,7 +321,7 @@ async function runExport(c, f) {
|
|
|
318
321
|
if (f.preview) return preview("contacts.export", {}, params);
|
|
319
322
|
let bytes;
|
|
320
323
|
try {
|
|
321
|
-
const got = await c.contacts.export(params);
|
|
324
|
+
const got = await downloadBinary(() => c.contacts.export(params));
|
|
322
325
|
bytes = got instanceof ArrayBuffer ? Buffer.from(got) : Buffer.from(JSON.stringify(got) + "\n");
|
|
323
326
|
} catch (err) {
|
|
324
327
|
return fail(err, f);
|
|
@@ -498,15 +501,15 @@ var contactCommand = defineCommand({
|
|
|
498
501
|
create: createCmd,
|
|
499
502
|
update: updateCmd,
|
|
500
503
|
delete: deleteCmd,
|
|
501
|
-
import: lazy("contactImport", () => import("./contact-import-
|
|
504
|
+
import: lazy("contactImport", () => import("./contact-import-MWZUDQIQ.js").then((m) => m.contactImportCommand)),
|
|
502
505
|
export: exportCmd,
|
|
503
506
|
enrich: enrichCmd,
|
|
504
|
-
lists: lazy("contactLists", () => import("./contact-groups-
|
|
505
|
-
tags: lazy("contactTags", () => import("./contact-groups-
|
|
506
|
-
imports: lazy("contactImports", () => import("./contact-import-
|
|
507
|
+
lists: lazy("contactLists", () => import("./contact-groups-U24LLLTL.js").then((m) => m.contactListsCommand)),
|
|
508
|
+
tags: lazy("contactTags", () => import("./contact-groups-U24LLLTL.js").then((m) => m.contactTagsCommand)),
|
|
509
|
+
imports: lazy("contactImports", () => import("./contact-import-MWZUDQIQ.js").then((m) => m.contactImportsCommand))
|
|
507
510
|
},
|
|
508
511
|
async run() {
|
|
509
|
-
const { showHelp } = await import("./examples-
|
|
512
|
+
const { showHelp } = await import("./examples-JJB4DZKK.js");
|
|
510
513
|
await showHelp(contactCommand, ["curviate", "contact"]);
|
|
511
514
|
}
|
|
512
515
|
});
|