@curviate/cli 0.53.0 → 0.55.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.
- package/CHANGELOG.md +30 -1
- package/README.md +34 -17
- package/dist/{account-24YCNFNY.js → account-6L33JFZS.js} +98 -116
- package/dist/{analytics-RMRTJPHK.js → analytics-HGJGXRAM.js} +5 -5
- package/dist/{beta-consent-KCJUJFAR.js → beta-consent-LIND4PPN.js} +4 -4
- package/dist/{billing-5GK6WIXR.js → billing-QKPP5NPR.js} +5 -5
- package/dist/{chunk-AA2UTHCS.js → chunk-AMMAA62Z.js} +44 -44
- package/dist/{chunk-R5VJTBAJ.js → chunk-BC4N5X3N.js} +47 -47
- package/dist/{chunk-N4IYTFIY.js → chunk-EA5LJ4CS.js} +1 -1
- package/dist/{chunk-WYFTBTDQ.js → chunk-FHSGANM6.js} +10 -10
- package/dist/chunk-J34JU27C.js +94 -0
- package/dist/{chunk-62YAYAUI.js → chunk-JKXGL7PT.js} +9 -9
- package/dist/{chunk-FUX3BRYP.js → chunk-JXDEV33Z.js} +1 -1
- package/dist/{chunk-4YGTPVEH.js → chunk-KLXDFFHT.js} +1 -1
- package/dist/{chunk-WY73KWPF.js → chunk-LGUZ52BU.js} +2 -2
- package/dist/{chunk-FNENKSJ7.js → chunk-OYZ27Q3B.js} +88 -88
- package/dist/{chunk-TIYRNMGW.js → chunk-Q5Z7FMXI.js} +2 -2
- package/dist/{chunk-AQVE6HO5.js → chunk-QBY6L77D.js} +15 -13
- package/dist/{chunk-PAXWRJNA.js → chunk-R7USRN52.js} +1 -1
- package/dist/{chunk-QW5K5DTC.js → chunk-RDKTHFQ6.js} +25 -6
- package/dist/{chunk-YHXIFKCU.js → chunk-S234PC5E.js} +1 -1
- package/dist/{chunk-IRKTIZUM.js → chunk-Z3RPQ5K4.js} +2 -2
- package/dist/cli.js +27 -25
- package/dist/{comment-UUA7B5YC.js → comment-IIKLEAEK.js} +8 -8
- package/dist/{company-65ILSE2U.js → company-CX5TZNB5.js} +11 -11
- package/dist/{config-TMFMXS7T.js → config-Y4FC7QKM.js} +2 -2
- package/dist/{connect-URFFJVYY.js → connect-GUUBX23F.js} +15 -15
- package/dist/{contact-A3S2HEBM.js → contact-OCYSFRTS.js} +8 -8
- package/dist/{contact-groups-CEV2YITT.js → contact-groups-HWJSYRFJ.js} +85 -85
- package/dist/{contact-import-HHVKVRJW.js → contact-import-CTWSFT64.js} +10 -10
- package/dist/core-37XZS2RG.js +46 -0
- package/dist/{do-not-contact-QYPADRLJ.js → do-not-contact-6UVY3UKT.js} +29 -29
- package/dist/{doctor-M7JVNQPQ.js → doctor-6CB6DCY3.js} +4 -4
- package/dist/{document-MDE2WJYX.js → document-ADK4GZA7.js} +1 -1
- package/dist/domain-BUJMHYIV.js +70 -0
- package/dist/{draft-6KY4F5AE.js → draft-SII6E6Z6.js} +4 -4
- package/dist/{enrollment-IXQD5IGZ.js → enrollment-OXGR5WVI.js} +38 -38
- package/dist/{examples-KAMXHRLE.js → examples-77WVMKZQ.js} +2 -2
- package/dist/{exit-codes-CYQHN4NE.js → exit-codes-ZSOLAXQO.js} +1 -1
- package/dist/{export-7ILY53LY.js → export-D32J5GRN.js} +5 -5
- package/dist/{feed-GESAX65K.js → feed-HOFHCP6W.js} +6 -6
- package/dist/{group-KKTBXE42.js → group-AMYOAGNS.js} +6 -6
- package/dist/{inbox-QQ6AQDVB.js → inbox-NS2LB2WQ.js} +9 -9
- package/dist/{inboxes-352YK6UB.js → inboxes-XWUZJ5PN.js} +6 -6
- package/dist/{incoming-5T2ELEDF.js → incoming-UIWRL6QS.js} +13 -13
- package/dist/{job-KBILRJJO.js → job-TKGPXU26.js} +10 -10
- package/dist/{login-DQPKKDVA.js → login-B2YWX2JP.js} +2 -2
- package/dist/mailbox-LLSGX2FF.js +406 -0
- package/dist/{message-ZB2IGJIQ.js → message-M4THMNRZ.js} +7 -7
- package/dist/{motion-NNCRSOT6.js → motion-2OUGYR3O.js} +147 -147
- package/dist/{network-FLPECF4C.js → network-MFWKXTEV.js} +5 -5
- package/dist/{notification-B3MRXH3A.js → notification-5K4TCYQA.js} +6 -6
- package/dist/{notifications-PMJDG45H.js → notifications-2GKUJB7C.js} +6 -6
- package/dist/{post-O5DYXSHK.js → post-BHH7YKGM.js} +8 -8
- package/dist/{profile-ZDP23SNN.js → profile-GKMRRKZF.js} +15 -15
- package/dist/{recruiter-QENVOZFV.js → recruiter-J53ZSD4P.js} +17 -17
- package/dist/{sales-nav-JFAYF6DM.js → sales-nav-6I5SYTRX.js} +15 -15
- package/dist/{search-5HPVIIUJ.js → search-HS2YAA33.js} +17 -17
- package/dist/{setup-QUD7TUCB.js → setup-IYVOGVC6.js} +4 -4
- package/dist/{team-ZTGY45Y7.js → team-N6ILUHAD.js} +6 -6
- package/dist/{tier-3ISVHJJ5.js → tier-QWXKFESB.js} +8 -10
- package/dist/{unibox-JQBP7COE.js → unibox-D4WIHIZX.js} +34 -34
- package/dist/{webhook-GPGFPF5P.js → webhook-PKWGZZO2.js} +18 -18
- package/package.json +2 -2
- package/dist/core-IOGPY6HS.js +0 -46
package/CHANGELOG.md
CHANGED
|
@@ -6,7 +6,36 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
|
6
6
|
Versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html):
|
|
7
7
|
a new command or flag is a minor; a breaking command/flag/exit-code change is a major (before 1.0.0, a minor); a fix is a patch.
|
|
8
8
|
|
|
9
|
-
## [
|
|
9
|
+
## [0.55.0] - 2026-11-17
|
|
10
|
+
|
|
11
|
+
Requires `@curviate/sdk` 0.51.0 (exact pin). The vendored OpenAPI fixture is re-copied from the SDK's; `commands.json` regenerated.
|
|
12
|
+
|
|
13
|
+
### Breaking: Contacts become Leads, Motions become Campaigns
|
|
14
|
+
|
|
15
|
+
- **`curviate lead ...` replaces `curviate contact ...`** (`lead list|get|create|update|delete|import|imports|export|enrich`, `lead lists ...`, `lead tags ...`). `curviate contact` is removed: it answers as an unknown command, no alias.
|
|
16
|
+
- Help, examples and next-call hints say Lead and Lead list; filter `--motion` is `--campaign`; `do-not-contact add --contact` is `--lead`; `account update --save-connections-as-leads` replaces `--save-connections-as-contacts`.
|
|
17
|
+
- Error codes `LEAD_LIMIT_REACHED`, `LEAD_NOT_ENROLLABLE`, `CAMPAIGN_NOT_STARTABLE`, `CAMPAIGN_STATUS_CONFLICT`, `ACCOUNT_NOT_IN_CAMPAIGN` replace the old five.
|
|
18
|
+
- **`curviate campaign ...` replaces `curviate motion ...`** (`campaign list|get|create|update|delete|start|pause|resume|archive|preview|add|remove|init|lint|voice-clip`). `curviate motion` is removed: it answers as an unknown command, no alias. `campaign lint` stays offline.
|
|
19
|
+
- Flags: `--motion` is `--campaign` (`enrollment`, `analytics`, `incoming`, `unibox`), `--motions` is `--campaigns`, `--motion-ids` is `--campaign-ids`, `--contact` is `--lead` (`enrollment`, `analytics events`, `campaign add|remove|preview`), `--source motion` is `--source campaign` (`webhook`), `--view motions` is `--view campaigns`, `--origin motion` is `--origin campaign`.
|
|
20
|
+
- Campaign files and templates: `lead_list_ids`, `settings.accounts_per_lead`, `settings.exclude.other_campaigns`, and `lead.*` conditions; the offline W17 hint says Campaign. Webhook events are `campaign.status_changed` and `campaign.custom_event`.
|
|
21
|
+
|
|
22
|
+
### Mailboxes, domains and Team email safety
|
|
23
|
+
|
|
24
|
+
- **`mailbox list|get|update|pause|resume|remove`**: your Team's own email Mailboxes. `list` filters by `--state`, `--sends-for` (an Account id, `shared` or `none`) and `--domain`; `update` takes `--sends-for <acc_...|shared>`, `--daily-cap` and `--signature-file` (a path or `-`). A cap above 50 and a signature over 2,000 characters are refused by the API (exit 2, the message names the limit).
|
|
25
|
+
- **`mailbox discover <address>`**: the IMAP and SMTP settings for an address, to confirm with the person before connecting; takes no password.
|
|
26
|
+
- **`mailbox connect <address> --connection google_app_password|google_sign_in|microsoft_sign_in|imap_smtp`** and **`mailbox reconnect <id>`**: create a Connect request and print its link (and the administrator link where the provider needs one). `imap_smtp` takes `--imap-host --imap-port --imap-security --smtp-host --smtp-port --smtp-security`. **`--password-stdin`** (`google_app_password`, `imap_smtp`, and `reconnect`, where on a Google sign-in Mailbox it adds an app password beside the sign-in for warm-up): one line from stdin, not echoed on a terminal, sent only in the request body, never printed or shown by `--preview`; the host checks it before the answer and the Mailbox is connected in that one call, a refused password exits 8 and leaves the request open. There is no flag that takes the password as a value, so it never reaches `ps` or shell history.
|
|
27
|
+
- A piped `--password-stdin` or `--li-at-stdin` now drops trailing whitespace and the newline only (leading and inner spaces are kept, as they belong to a password), and refuses stdin of more than one line (exit 2). This also applies to `account link --password-stdin`. `--password-stdin=VALUE` is refused (exit 2) on `mailbox connect` and `reconnect`; the value is never echoed.
|
|
28
|
+
- **`account connect-request get|cancel`** read and cancel the Mailbox kinds too (`mailbox_id`, `admin_consent_url`, `error_code`).
|
|
29
|
+
- **`domain check <domain> [--now]`**: a sending domain's MX, SPF, DKIM, DMARC and tracking checks as last run, or run now.
|
|
30
|
+
- **`account safety get --team`** and **`account safety update --team --email-default-cap --email-opt-out-scope --email-opt-out-text --email-opt-out-link-text --email-opt-out-link-word`**: the Team's email defaults. `--team` here is the scope switch: bare it names your current Team, with `tnt_...` another of yours. `""` on a text flag restores the shipped default.
|
|
31
|
+
- New exit-code rows for the Mailbox codes: not found 4, a state that forbids it 8, past the allowance or a private Gmail address sent through sign-in 2, an administrator's approval 5; `SPENDING_CAP_REACHED` and `CANCEL_IN_DASHBOARD` 5.
|
|
32
|
+
|
|
33
|
+
## [0.54.0] - 2026-11-16
|
|
34
|
+
|
|
35
|
+
### `tier` stops printing `pending` and `early access`
|
|
36
|
+
|
|
37
|
+
- **BREAKING (output):** `curviate tier` no longer prints the `pending` and `early access` lines, and `--json` no longer carries the `pending` and `early_access` keys: the server dropped both (no alias, no `null`). A script reading either key from `tier --json` gets nothing; delete the read. The command's help drops "pending change" and "early access".
|
|
38
|
+
- Requires `@curviate/sdk` 0.50.1 (exact pin). The vendored OpenAPI fixture is re-copied from the SDK's, regenerated from staging 5f8e10405f79; `commands.json` regenerated.
|
|
10
39
|
|
|
11
40
|
## [0.53.0] - 2026-11-09
|
|
12
41
|
|
package/README.md
CHANGED
|
@@ -344,49 +344,49 @@ curviate core draft list --account none --all --json
|
|
|
344
344
|
|
|
345
345
|
A scheduled post that fails to publish becomes a `failed` Draft with a `failure` code; any `curviate core draft update` on it clears the failure. Failed `outcome_unknown` means the post may be live: check the account's posts before retrying.
|
|
346
346
|
|
|
347
|
-
##
|
|
347
|
+
## Campaigns and Enrollments
|
|
348
348
|
|
|
349
|
-
A
|
|
349
|
+
A Campaign runs one Sequence for the Leads of your Lead lists, from its sending accounts, paced on a schedule. It is created as a draft and does nothing until you start it. An Enrollment is one Lead in one Campaign on one account. Both belong to your team: `--account` is never read from your config for them.
|
|
350
350
|
|
|
351
|
-
### 1. From a template to a running
|
|
351
|
+
### 1. From a template to a running Campaign
|
|
352
352
|
|
|
353
353
|
```bash
|
|
354
|
-
curviate
|
|
355
|
-
curviate
|
|
356
|
-
curviate
|
|
357
|
-
curviate
|
|
358
|
-
curviate
|
|
354
|
+
curviate campaign init --template connect-and-converse --output campaign.json # offline; fill lead_list_ids and account_ids
|
|
355
|
+
curviate campaign lint --file campaign.json # offline: the rules the API applies
|
|
356
|
+
curviate campaign create --file campaign.json --json
|
|
357
|
+
curviate campaign preview mot_1 --sample 3 --json # rendered messages and the budget projection; spends nothing
|
|
358
|
+
curviate campaign start mot_1 --json
|
|
359
359
|
```
|
|
360
360
|
|
|
361
|
-
`curviate
|
|
361
|
+
`curviate campaign lint` prints one line per finding, compiler style, and exits 2 on any error:
|
|
362
362
|
|
|
363
363
|
```text
|
|
364
|
-
|
|
364
|
+
campaign.json:7:32 error R12 pause.wait: must be a duration between 1m and 365d: a number then m, h or d, like 30d. Use a duration between 1m and 365d, for example 1d. -> https://docs.curviate.com/reference/sequence-rules#r12
|
|
365
365
|
```
|
|
366
366
|
|
|
367
|
-
`curviate
|
|
367
|
+
`curviate campaign create` and `curviate campaign update` check the same way before anything is sent. `curviate campaign get mot_1 --json` prints a file `curviate campaign update mot_1 --file -` accepts as is; add `--if-revision <n>` to refuse the save when someone changed the Sequence since you read it.
|
|
368
368
|
|
|
369
369
|
### Voice notes in a Sequence
|
|
370
370
|
|
|
371
|
-
A `voice.send` step plays an uploaded clip instead of text. Upload the file once, then put its id in the Sequence. Nothing reaches LinkedIn until you start the
|
|
371
|
+
A `voice.send` step plays an uploaded clip instead of text. Upload the file once, then put its id in the Sequence. Nothing reaches LinkedIn until you start the Campaign.
|
|
372
372
|
|
|
373
373
|
```bash
|
|
374
|
-
curviate
|
|
375
|
-
curviate
|
|
374
|
+
curviate campaign voice-clip upload intro.mp3 --json # {"id":"vc_...","duration_ms":42010,...}: 1 to 120 s, up to 20 MiB, 100 uploads per Team per 24 hours
|
|
375
|
+
curviate campaign voice-clip get vc_01J8Z3K9P0Q1R2S3T4V5W6X7Y8
|
|
376
376
|
```
|
|
377
377
|
|
|
378
378
|
```json
|
|
379
379
|
{ "id": "voice", "do": "voice.send", "with": { "clip_id": "vc_01J8Z3K9P0Q1R2S3T4V5W6X7Y8", "fallback": "Hi, thanks for connecting." }, "next": "end" }
|
|
380
380
|
```
|
|
381
381
|
|
|
382
|
-
`fallback` is required and has no variables: it is sent as text when the audio cannot go. For A/B, use `variants: [{ "id": "a", "clip_id": "vc_..." }, { "id": "b", "clip_id": "vc_..." }]` with a shared `with.fallback`, and no text. `curviate
|
|
382
|
+
`fallback` is required and has no variables: it is sent as text when the audio cannot go. For A/B, use `variants: [{ "id": "a", "clip_id": "vc_..." }, { "id": "b", "clip_id": "vc_..." }]` with a shared `with.fallback`, and no text. `curviate campaign lint` checks the shape (`R13` a malformed `clip_id`, `R19` no `fallback`); a `clip_id` that is not a clip of your Team is refused when the Campaign is saved. `VOICE_CLIP_INVALID` (exit 2) names the reason an upload was refused: not audio, unreadable, under 1 or over 120 seconds; a clip is never shortened. Over 20 MiB is `PAYLOAD_TOO_LARGE`; the 101st upload in 24 hours is `RATE_LIMIT_TENANT` (exit 6, `Retry-After`). A clip no Sequence uses is deleted 30 days after its upload.
|
|
383
383
|
|
|
384
384
|
### 2. Find and fix Enrollments
|
|
385
385
|
|
|
386
386
|
```bash
|
|
387
|
-
curviate enrollment list --
|
|
387
|
+
curviate enrollment list --campaign mot_1 --done-step opener --outcome failed --json
|
|
388
388
|
curviate enrollment retry enr_1 --json # only a failed Step; waits for the re-run and prints its outcome
|
|
389
|
-
curviate enrollment bulk --action retry --
|
|
389
|
+
curviate enrollment bulk --action retry --campaign mot_1 --done-step opener --outcome failed --json
|
|
390
390
|
curviate enrollment pause enr_1 --json
|
|
391
391
|
curviate enrollment resume enr_1 --json # lifts your pause
|
|
392
392
|
```
|
|
@@ -628,6 +628,23 @@ curviate core recruiter jobs --account acc_1 --limit 10 --json \
|
|
|
628
628
|
curviate core recruiter job get "https://www.linkedin.com/jobs/view/4428113858" --account acc_1 --json
|
|
629
629
|
```
|
|
630
630
|
|
|
631
|
+
## Mailboxes and email safety
|
|
632
|
+
|
|
633
|
+
```bash
|
|
634
|
+
curviate mailbox list --state paused # your Team's own email Mailboxes
|
|
635
|
+
curviate mailbox update mbx_... --sends-for acc_... --daily-cap 40 --signature-file signature.txt
|
|
636
|
+
curviate mailbox pause mbx_... # resume, remove likewise
|
|
637
|
+
curviate mailbox discover anna@acme.example # IMAP and SMTP settings to confirm
|
|
638
|
+
curviate mailbox connect anna@acme.example --connection google_sign_in # prints the sign-in link
|
|
639
|
+
printf '%s' "$APP_PASSWORD" | curviate mailbox connect anna@gmail.com --connection google_app_password --password-stdin
|
|
640
|
+
printf '%s' "$APP_PASSWORD" | curviate mailbox reconnect mbx_... --password-stdin
|
|
641
|
+
curviate domain check acme.example --now # MX, SPF, DKIM, DMARC, tracking
|
|
642
|
+
curviate account safety get --team # the Team's email defaults
|
|
643
|
+
curviate account safety update --team --email-default-cap 40 --email-opt-out-link-word Abmelden
|
|
644
|
+
```
|
|
645
|
+
|
|
646
|
+
A password goes in only through `--password-stdin` (one line, never echoed, sent only in the request body), never as a flag value. A Mailbox sends only for the Account it is linked to, or for any Account when it is `shared`. The daily cap is at most 50; the API refuses more and says so.
|
|
647
|
+
|
|
631
648
|
## Retrieval modes
|
|
632
649
|
|
|
633
650
|
Some reads can be answered from the copy Curviate already holds instead of
|
|
@@ -3,14 +3,18 @@ import {
|
|
|
3
3
|
slimAccountGet,
|
|
4
4
|
slimAccountList,
|
|
5
5
|
slimAccountListItem
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JXDEV33Z.js";
|
|
7
|
+
import {
|
|
8
|
+
checkCredentialConflicts,
|
|
9
|
+
resolveSecret
|
|
10
|
+
} from "./chunk-J34JU27C.js";
|
|
7
11
|
import {
|
|
8
12
|
GRAMMAR_ARGS,
|
|
9
13
|
WINDOW_ARGS,
|
|
10
14
|
grammarParams,
|
|
11
15
|
renderOverview,
|
|
12
16
|
windowParams
|
|
13
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-BC4N5X3N.js";
|
|
14
18
|
import {
|
|
15
19
|
print,
|
|
16
20
|
table
|
|
@@ -22,7 +26,7 @@ import {
|
|
|
22
26
|
outputOpts,
|
|
23
27
|
rootClient,
|
|
24
28
|
usage
|
|
25
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-LGUZ52BU.js";
|
|
26
30
|
import {
|
|
27
31
|
buildPreviewOutput
|
|
28
32
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -37,7 +41,7 @@ import {
|
|
|
37
41
|
readablePage,
|
|
38
42
|
rejectPaginationModifiersWithoutAll,
|
|
39
43
|
streamAll
|
|
40
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-R7USRN52.js";
|
|
41
45
|
import {
|
|
42
46
|
isJsonMode,
|
|
43
47
|
renderError,
|
|
@@ -53,20 +57,21 @@ import {
|
|
|
53
57
|
import {
|
|
54
58
|
createClient,
|
|
55
59
|
resolveEffectiveConfig
|
|
56
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-S234PC5E.js";
|
|
57
61
|
import {
|
|
58
62
|
GLOBAL_FLAGS,
|
|
59
63
|
READ_SINGLE_FLAGS,
|
|
60
64
|
WRITE_SINGLE_FLAGS,
|
|
61
|
-
readOnly
|
|
65
|
+
readOnly,
|
|
66
|
+
setTeamFlag
|
|
62
67
|
} from "./chunk-QLKGOIWS.js";
|
|
63
68
|
import {
|
|
64
69
|
DESCRIPTIONS
|
|
65
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-QBY6L77D.js";
|
|
66
71
|
import {
|
|
67
72
|
parseDocument,
|
|
68
73
|
readFileFlag
|
|
69
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-JKXGL7PT.js";
|
|
70
75
|
import "./chunk-FDJMAF7D.js";
|
|
71
76
|
import {
|
|
72
77
|
defaultReadStdin,
|
|
@@ -74,13 +79,13 @@ import {
|
|
|
74
79
|
} from "./chunk-ZYURL5VK.js";
|
|
75
80
|
import {
|
|
76
81
|
AUTH_NEEDED
|
|
77
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-RDKTHFQ6.js";
|
|
78
83
|
|
|
79
84
|
// src/commands/account-insights.ts
|
|
80
85
|
import { defineCommand } from "citty";
|
|
81
86
|
async function runOverview(c, f) {
|
|
82
87
|
const q = { ...windowParams(f), ...grammarParams(f) };
|
|
83
|
-
if (f.
|
|
88
|
+
if (f.campaigns !== void 0) q["campaign_id"] = listFlag("campaigns", f.campaigns);
|
|
84
89
|
if (f.origin !== void 0) q["origin"] = listFlag("origin", f.origin);
|
|
85
90
|
try {
|
|
86
91
|
const body = await c.accounts.overview(String(f.accountId ?? ""), q);
|
|
@@ -110,7 +115,7 @@ var ACCOUNT_ID = { type: "positional", description: "The Account (acc_...)." };
|
|
|
110
115
|
var accountOverviewCommand = defineCommand({
|
|
111
116
|
meta: {
|
|
112
117
|
name: "overview",
|
|
113
|
-
description: "One Account's overview over a window: profile and status, latest metrics, outcomes so far (acceptance, reply, InMail reply), budget rows used today, its
|
|
118
|
+
description: "One Account's overview over a window: profile and status, latest metrics, outcomes so far (acceptance, reply, InMail reply), budget rows used today, its Campaigns, and flags with the next command to run. Each Lead counts once per Account.",
|
|
114
119
|
risk: "read",
|
|
115
120
|
output: ["A compact table by default; --json (or piped) prints the API body."],
|
|
116
121
|
seeAlso: ["curviate account metrics", "curviate analytics get"],
|
|
@@ -120,8 +125,8 @@ var accountOverviewCommand = defineCommand({
|
|
|
120
125
|
...readOnly(READ_SINGLE_FLAGS),
|
|
121
126
|
accountId: ACCOUNT_ID,
|
|
122
127
|
...WINDOW_ARGS,
|
|
123
|
-
|
|
124
|
-
origin: { type: "string", description: "Who sent the actions: a comma list of
|
|
128
|
+
campaigns: { type: "string", description: "Only these Campaigns, comma list (mot_...)." },
|
|
129
|
+
origin: { type: "string", description: "Who sent the actions: a comma list of campaign, unibox, api; direct is an alias for unibox and api." },
|
|
125
130
|
...GRAMMAR_ARGS
|
|
126
131
|
},
|
|
127
132
|
run: online(runOverview)
|
|
@@ -194,30 +199,79 @@ var accountWarmUpCommand = defineCommand2({
|
|
|
194
199
|
// src/commands/account-safety.ts
|
|
195
200
|
import { defineCommand as defineCommand3 } from "citty";
|
|
196
201
|
var LEVELS = ["normal", "increased"];
|
|
197
|
-
var
|
|
202
|
+
var SCOPES = ["everything", "email_only"];
|
|
203
|
+
var ACCOUNT = { type: "positional", required: false, description: "The Account (acc_...). Not with --team." };
|
|
204
|
+
var ACCOUNT_REQUIRED = { type: "positional", description: "The Account (acc_...)." };
|
|
205
|
+
var TEAM = {
|
|
206
|
+
type: "string",
|
|
207
|
+
description: "The Team's safety policy instead of one Account's: pass --team alone for the Team your key or profile names, or --team tnt_... for another of your Teams. Not with an Account id."
|
|
208
|
+
};
|
|
209
|
+
var EMAIL_FLAGS = {
|
|
210
|
+
"email-default-cap": { type: "string", description: "With --team: the daily cap a Mailbox gets when it connects, at most 50 (default 30). Mailboxes already connected keep theirs. The API refuses a higher value." },
|
|
211
|
+
"email-opt-out-scope": { type: "string", description: `With --team: what an email opt-out covers, ${SCOPES.join(" | ")} (default everything).` },
|
|
212
|
+
"email-opt-out-text": { type: "string", description: 'With --team: the opt-out line in every email step, up to 200 characters, one plain line, no variables. "" restores the shipped default.' },
|
|
213
|
+
"email-opt-out-link-text": { type: "string", description: 'With --team: the text before the opt-out link, up to 100 characters, one plain line, no variables. "" restores the shipped default.' },
|
|
214
|
+
"email-opt-out-link-word": { type: "string", description: `With --team: the opt-out link's word, up to 30 characters, for example Abmelden. "" restores the shipped default.` }
|
|
215
|
+
};
|
|
216
|
+
function teamScope(f) {
|
|
217
|
+
const asked = f.team !== void 0;
|
|
218
|
+
const id = String(f.accountId ?? "");
|
|
219
|
+
if (asked && id !== "") usage("--team reads or changes the Team's policy: leave the Account id out.");
|
|
220
|
+
if (!asked && id === "") usage("name the Account (acc_...), or pass --team for the Team's policy.");
|
|
221
|
+
if (!asked) return false;
|
|
222
|
+
if (f.team === "") setTeamFlag(void 0);
|
|
223
|
+
else if (!/^tnt_/.test(f.team)) usage("--team takes a Team id (tnt_...), or no value for your current Team.");
|
|
224
|
+
return true;
|
|
225
|
+
}
|
|
198
226
|
var getCmd = defineCommand3({
|
|
199
227
|
meta: {
|
|
200
228
|
name: "get",
|
|
201
|
-
description: "
|
|
229
|
+
description: "With --team, the Team's own policy: its defaults per limit profile and budget row and `email` (default_daily_cap, opt_out_scope and the three opt-out texts in force, the shipped default when none is set). Otherwise one Account's safety policy: every budget row with its ceiling, effective_ceiling and (strict rows) target and effective_target, Active hours, warm-up, pacing, auto_withdraw and the Activity level (activity_level, and activity_level_effective with activity_level_reason when it runs lower). A read: no LinkedIn call.",
|
|
202
230
|
risk: "read",
|
|
203
231
|
seeAlso: ["curviate account safety update", "curviate account get"],
|
|
204
|
-
examples: ["curviate account safety get acc_YOUR_ACCOUNT_ID", "curviate account safety get acc_YOUR_ACCOUNT_ID --fields active_hours,warm_up"]
|
|
232
|
+
examples: ["curviate account safety get acc_YOUR_ACCOUNT_ID", "curviate account safety get acc_YOUR_ACCOUNT_ID --fields active_hours,warm_up", "curviate account safety get --team"]
|
|
205
233
|
},
|
|
206
|
-
args: { ...readOnly(READ_SINGLE_FLAGS), accountId: ACCOUNT },
|
|
234
|
+
args: { ...readOnly(READ_SINGLE_FLAGS), team: TEAM, accountId: ACCOUNT },
|
|
207
235
|
async run({ args }) {
|
|
208
236
|
const f = args;
|
|
237
|
+
const team = teamScope(f);
|
|
209
238
|
const c = await rootClient(f);
|
|
210
239
|
try {
|
|
211
|
-
renderSuccess(await c.accounts.getSafetyPolicy(String(f.accountId ?? "")), outputOpts(f), process);
|
|
240
|
+
renderSuccess(team ? await c.accounts.getTeamSafetyPolicy() : await c.accounts.getSafetyPolicy(String(f.accountId ?? "")), outputOpts(f), process);
|
|
212
241
|
} catch (err) {
|
|
213
242
|
await fail(err, f);
|
|
214
243
|
}
|
|
215
244
|
}
|
|
216
245
|
});
|
|
246
|
+
async function updateTeam(f) {
|
|
247
|
+
const email = {};
|
|
248
|
+
if (f["email-default-cap"] !== void 0) email["default_daily_cap"] = intFlag("email-default-cap", f["email-default-cap"]);
|
|
249
|
+
const scope = f["email-opt-out-scope"];
|
|
250
|
+
if (scope !== void 0) {
|
|
251
|
+
if (!SCOPES.includes(scope)) usage(`--email-opt-out-scope is ${SCOPES.join(" or ")}, not "${scope}".`);
|
|
252
|
+
email["opt_out_scope"] = scope;
|
|
253
|
+
}
|
|
254
|
+
for (const [flag, key] of [["email-opt-out-text", "opt_out_text"], ["email-opt-out-link-text", "opt_out_link_text"], ["email-opt-out-link-word", "opt_out_link_word"]]) {
|
|
255
|
+
if (f[flag] !== void 0) email[key] = f[flag];
|
|
256
|
+
}
|
|
257
|
+
if (f.file !== void 0 || f["activity-level"] !== void 0) usage("--team takes the --email-* flags, not --file or --activity-level.");
|
|
258
|
+
if (Object.keys(email).length === 0) usage("pass at least one --email-* flag with --team.");
|
|
259
|
+
const body = { email };
|
|
260
|
+
if (f.preview) {
|
|
261
|
+
process.stdout.write(JSON.stringify(buildPreviewOutput({ method: "accounts.updateTeamSafetyPolicy", args: {}, body })) + "\n");
|
|
262
|
+
return;
|
|
263
|
+
}
|
|
264
|
+
const c = await rootClient(f);
|
|
265
|
+
try {
|
|
266
|
+
renderSuccess(await c.accounts.updateTeamSafetyPolicy(body), outputOpts(f), process);
|
|
267
|
+
} catch (err) {
|
|
268
|
+
await fail(err, f);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
217
271
|
var updateCmd = defineCommand3({
|
|
218
272
|
meta: {
|
|
219
273
|
name: "update",
|
|
220
|
-
description: '
|
|
274
|
+
description: 'With --team, change the Team\'s email defaults instead, with the --email-* flags: the daily cap a new Mailbox gets (--email-default-cap, at most 50), what an opt-out covers (--email-opt-out-scope everything|email_only) and the three opt-out texts every email step carries (--email-opt-out-text up to 200 characters, --email-opt-out-link-text up to 100, --email-opt-out-link-word up to 30; one plain line, no variables; "" restores the shipped default). Prints the Team policy. Otherwise change one Account\'s safety policy from a JSON document: `rows`, for example {"rows":[{"budget_row":"profile_views","ceiling":40}]}, `active_hours`, for example {"active_hours":{"days":["mon","tue"],"start":"09:00","end":"17:00"}}, `auto_withdraw` (true or false: Curviate withdraws its own invitations older than 14 days once more than 400 are pending) and `activity_level`. --activity-level normal|increased sets the Activity level alone, or beside --file: how close the Account\'s daily targets sit to its limits. normal (the default) aims about midway between the green figure and the limit; increased works close to the limit, never past it, and raises the chance LinkedIn notices the activity. It runs as normal, and the setting stays, while warm-up is on or the Account\'s health is not healthy; the printed policy\'s activity_level_effective and activity_level_reason say which level is in force. Active hours hold Campaigns and other live writes, never a direct message (send, new chat, edit, delete, reaction, read mark). A row\'s `green` is its target, what Campaigns aim at; the ceiling is the most it may do. Fields you leave out stay as they are; null clears an override. Prints the policy.',
|
|
221
275
|
risk: "write",
|
|
222
276
|
rules: {
|
|
223
277
|
changes: "The Account's limits, Active hours or Activity level, from the next action on.",
|
|
@@ -225,24 +279,30 @@ var updateCmd = defineCommand3({
|
|
|
225
279
|
budget_rows: [],
|
|
226
280
|
retry: "Safe: the same document leaves the same policy.",
|
|
227
281
|
undo: "Send the previous values, or null to fall back to the Team's default.",
|
|
228
|
-
blast_radius: "One Account's pace, in every
|
|
282
|
+
blast_radius: "One Account's pace, in every Campaign and every direct action."
|
|
229
283
|
},
|
|
230
284
|
errors: { INVALID_REQUEST: "a field is unknown or not settable; the message names it." },
|
|
231
285
|
seeAlso: ["curviate account safety get", "curviate account warm-up"],
|
|
232
286
|
examples: [
|
|
233
287
|
"curviate account safety update acc_YOUR_ACCOUNT_ID --file policy.json",
|
|
234
|
-
"curviate account safety update acc_YOUR_ACCOUNT_ID --activity-level increased"
|
|
288
|
+
"curviate account safety update acc_YOUR_ACCOUNT_ID --activity-level increased",
|
|
289
|
+
"curviate account safety update --team --email-default-cap 40 --email-opt-out-link-word Abmelden"
|
|
235
290
|
],
|
|
236
|
-
requires: ["--file or --activity-level, or both (the flag wins over the document's activity_level)."]
|
|
291
|
+
requires: ["an Account id with --file or --activity-level, or both (the flag wins over the document's activity_level); or --team with at least one --email-* flag."]
|
|
237
292
|
},
|
|
238
293
|
args: {
|
|
239
294
|
...WRITE_SINGLE_FLAGS,
|
|
295
|
+
team: TEAM,
|
|
296
|
+
...EMAIL_FLAGS,
|
|
240
297
|
accountId: ACCOUNT,
|
|
241
298
|
file: { type: "string", description: "The JSON document: a path, or - to read it from stdin." },
|
|
242
299
|
"activity-level": { type: "string", description: "normal (default) or increased: how close the Account's daily targets sit to its limits. increased raises the chance LinkedIn notices the activity; it runs as normal while warm-up is on or health is not healthy." }
|
|
243
300
|
},
|
|
244
301
|
async run({ args }) {
|
|
245
302
|
const f = args;
|
|
303
|
+
if (teamScope(f)) return updateTeam(f);
|
|
304
|
+
const emailFlag = Object.keys(EMAIL_FLAGS).find((k) => f[k] !== void 0);
|
|
305
|
+
if (emailFlag) usage(`--${emailFlag} changes the Team's policy: add --team and leave the Account id out.`);
|
|
246
306
|
const accountId = String(f.accountId ?? "");
|
|
247
307
|
const level = f["activity-level"];
|
|
248
308
|
if (level !== void 0 && !LEVELS.includes(level)) {
|
|
@@ -269,29 +329,29 @@ var updateCmd = defineCommand3({
|
|
|
269
329
|
}
|
|
270
330
|
});
|
|
271
331
|
var accountSafetyCommand = defineCommand3({
|
|
272
|
-
meta: { name: "safety", description: "Read or change one Account's safety policy
|
|
332
|
+
meta: { name: "safety", description: "Read or change one Account's safety policy (limits per budget row, Active hours, the Activity level), or with --team your Team's email defaults." },
|
|
273
333
|
subCommands: { get: getCmd, update: updateCmd },
|
|
274
334
|
async run() {
|
|
275
|
-
process.stderr.write("Usage: curviate account safety get|update <account
|
|
335
|
+
process.stderr.write("Usage: curviate account safety get|update <account> | --team\n");
|
|
276
336
|
}
|
|
277
337
|
});
|
|
278
338
|
var accessCommand = (name) => defineCommand3({
|
|
279
339
|
meta: {
|
|
280
340
|
name,
|
|
281
|
-
description: name === "on" ? "Share the Account with its Team again (it does not rejoin a
|
|
341
|
+
description: name === "on" ? "Share the Account with its Team again (it does not rejoin a Campaign). Only the person who connected it can." : "Keep the Account to its person: it leaves every Campaign that held it and its queued enrichment visits are dropped. Only the person who connected it can.",
|
|
282
342
|
risk: "write",
|
|
283
343
|
rules: {
|
|
284
|
-
changes: name === "on" ? "The Team may use the Account again." : "The Team loses the Account; it leaves every
|
|
344
|
+
changes: name === "on" ? "The Team may use the Account again." : "The Team loses the Account; it leaves every Campaign that held it.",
|
|
285
345
|
visible_to: "Your Team.",
|
|
286
346
|
budget_rows: [],
|
|
287
347
|
retry: "Safe to repeat: the switch ends in the same state.",
|
|
288
|
-
undo: name === "on" ? "Run `curviate account team-access off <account>`." : "Run `curviate account team-access on <account>`, then add it back to its
|
|
348
|
+
undo: name === "on" ? "Run `curviate account team-access off <account>`." : "Run `curviate account team-access on <account>`, then add it back to its Campaigns."
|
|
289
349
|
},
|
|
290
350
|
errors: { ACCOUNT_OWNER_ONLY: "only the person who connected the Account can change this." },
|
|
291
351
|
seeAlso: ["curviate account get", "curviate team members"],
|
|
292
352
|
examples: [`curviate account team-access ${name} acc_YOUR_ACCOUNT_ID`]
|
|
293
353
|
},
|
|
294
|
-
args: { ...WRITE_SINGLE_FLAGS, accountId:
|
|
354
|
+
args: { ...WRITE_SINGLE_FLAGS, accountId: ACCOUNT_REQUIRED },
|
|
295
355
|
async run({ args }) {
|
|
296
356
|
const f = args;
|
|
297
357
|
const accountId = String(f.accountId ?? "");
|
|
@@ -398,84 +458,6 @@ function parseCookieExport(raw, nowMs) {
|
|
|
398
458
|
// src/commands/account.ts
|
|
399
459
|
import { statSync, readFileSync } from "fs";
|
|
400
460
|
|
|
401
|
-
// src/lib/credential-resolve.ts
|
|
402
|
-
var STDIN_TTY_CUE = "Reading secret from stdin (paste + Enter): ";
|
|
403
|
-
function defaultReadSingleLine() {
|
|
404
|
-
return readlineSync("", { mask: true });
|
|
405
|
-
}
|
|
406
|
-
async function resolveSecret(params) {
|
|
407
|
-
if (params.flagValue !== void 0 && params.flagValue !== "") {
|
|
408
|
-
return params.flagValue;
|
|
409
|
-
}
|
|
410
|
-
if (params.stdinRequested) {
|
|
411
|
-
if (params.isTTY) {
|
|
412
|
-
const stdinReadAllowed = params.allowInteractiveStdinRead ?? params.allowInteractive;
|
|
413
|
-
if (stdinReadAllowed !== false) {
|
|
414
|
-
params.out.stderr.write(STDIN_TTY_CUE);
|
|
415
|
-
const reader = params.readSingleLine ?? defaultReadSingleLine;
|
|
416
|
-
const raw = await reader(STDIN_TTY_CUE);
|
|
417
|
-
const trimmed = raw.trim();
|
|
418
|
-
if (trimmed !== "") {
|
|
419
|
-
return trimmed;
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
} else {
|
|
423
|
-
const reader = params.readStdin ?? defaultReadStdin;
|
|
424
|
-
const raw = await reader();
|
|
425
|
-
const trimmed = raw.trim();
|
|
426
|
-
if (trimmed !== "") {
|
|
427
|
-
return trimmed;
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
const envValue = process.env[params.envVar];
|
|
432
|
-
if (envValue !== void 0 && envValue !== "") {
|
|
433
|
-
return envValue;
|
|
434
|
-
}
|
|
435
|
-
if (!params.required) {
|
|
436
|
-
return void 0;
|
|
437
|
-
}
|
|
438
|
-
if (params.allowInteractive === false) {
|
|
439
|
-
return void 0;
|
|
440
|
-
}
|
|
441
|
-
if (params.prompt && params.prompt.isTTY) {
|
|
442
|
-
const value = await params.prompt.readline(params.prompt.promptText, { mask: true });
|
|
443
|
-
if (value) {
|
|
444
|
-
return value;
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
params.out.stderr.write(`error: ${params.failMessage ?? "missing required credential"}
|
|
448
|
-
`);
|
|
449
|
-
process.exit(2);
|
|
450
|
-
}
|
|
451
|
-
function checkCredentialConflicts(flags, out) {
|
|
452
|
-
const passwordStdin = flags["password-stdin"] ?? false;
|
|
453
|
-
const liAtStdin = flags["li-at-stdin"] ?? false;
|
|
454
|
-
if (flags.password !== void 0 && passwordStdin) {
|
|
455
|
-
failConflict(out, "--password and --password-stdin cannot both be set. Choose one source.");
|
|
456
|
-
}
|
|
457
|
-
if (flags["li-at"] !== void 0 && liAtStdin) {
|
|
458
|
-
failConflict(out, "--li-at and --li-at-stdin cannot both be set. Choose one source.");
|
|
459
|
-
}
|
|
460
|
-
if (passwordStdin && liAtStdin) {
|
|
461
|
-
failConflict(
|
|
462
|
-
out,
|
|
463
|
-
"--password-stdin and --li-at-stdin cannot both be set. stdin can feed only one secret per invocation."
|
|
464
|
-
);
|
|
465
|
-
}
|
|
466
|
-
if (liAtStdin && flags["auth-method"] === "credentials") {
|
|
467
|
-
failConflict(out, "--li-at-stdin requires --auth-method cookie (it does not apply to the credentials method).");
|
|
468
|
-
}
|
|
469
|
-
if (passwordStdin && flags["auth-method"] === "cookie") {
|
|
470
|
-
failConflict(out, "--password-stdin requires --auth-method credentials (it does not apply to the cookie method).");
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
function failConflict(out, message) {
|
|
474
|
-
out.stderr.write(`error: ${message}
|
|
475
|
-
`);
|
|
476
|
-
process.exit(2);
|
|
477
|
-
}
|
|
478
|
-
|
|
479
461
|
// src/lib/checkpoint-copy.ts
|
|
480
462
|
var RESENDABLE_CHALLENGE_TYPES = /* @__PURE__ */ new Set([
|
|
481
463
|
"otp",
|
|
@@ -616,7 +598,7 @@ async function runCancel(c, f) {
|
|
|
616
598
|
await fail(err, f);
|
|
617
599
|
}
|
|
618
600
|
}
|
|
619
|
-
var ID = { type: "positional", description: "Connect request id (creq_...)." };
|
|
601
|
+
var ID = { type: "positional", description: "Connect request id (creq_...), LinkedIn account or Mailbox." };
|
|
620
602
|
var createCmd = defineCommand4({
|
|
621
603
|
meta: {
|
|
622
604
|
name: "create",
|
|
@@ -647,9 +629,9 @@ var createCmd = defineCommand4({
|
|
|
647
629
|
var getCmd2 = defineCommand4({
|
|
648
630
|
meta: {
|
|
649
631
|
name: "get",
|
|
650
|
-
description: "Read a connect request: pending, completed (with the connected account_id), expired, failed or cancelled. Poll it until it leaves pending.",
|
|
632
|
+
description: "Read a connect request: pending, completed (with the connected account_id, or mailbox_id for a Mailbox request), expired, failed or cancelled. Poll it until it leaves pending. A Mailbox request (kind mailbox_connect or mailbox_reconnect, from `curviate mailbox connect` or `reconnect`) also carries mailbox_id and, where the provider needs one, admin_consent_url.",
|
|
651
633
|
risk: "read",
|
|
652
|
-
output: ["The request: status, and account_id once completed. Never a credential, code or the step the person is on."],
|
|
634
|
+
output: ["The request: status, and account_id (or mailbox_id) once completed; error_code when the last attempt failed. Never a credential, code or the step the person is on."],
|
|
653
635
|
examples: ["curviate account connect-request get creq_YOUR_REQUEST_ID"]
|
|
654
636
|
},
|
|
655
637
|
args: { ...readOnly(READ_SINGLE_FLAGS), id: ID },
|
|
@@ -658,7 +640,7 @@ var getCmd2 = defineCommand4({
|
|
|
658
640
|
var cancelCmd = defineCommand4({
|
|
659
641
|
meta: {
|
|
660
642
|
name: "cancel",
|
|
661
|
-
description: "Cancel a pending connect request; its link stops working. A request that is no longer pending is refused.",
|
|
643
|
+
description: "Cancel a pending connect request, a LinkedIn account's or a Mailbox's; its link stops working. A request that is no longer pending is refused.",
|
|
662
644
|
risk: "write",
|
|
663
645
|
rules: {
|
|
664
646
|
changes: "The request becomes cancelled and its link stops working.",
|
|
@@ -681,7 +663,7 @@ var connectRequestCommand = defineCommand4({
|
|
|
681
663
|
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." },
|
|
682
664
|
subCommands: { create: createCmd, get: getCmd2, cancel: cancelCmd },
|
|
683
665
|
async run() {
|
|
684
|
-
const { showHelp } = await import("./examples-
|
|
666
|
+
const { showHelp } = await import("./examples-77WVMKZQ.js");
|
|
685
667
|
await showHelp(connectRequestCommand, ["curviate", "account", "connect-request"]);
|
|
686
668
|
}
|
|
687
669
|
});
|
|
@@ -712,7 +694,7 @@ function resolveOutputOpts(flags) {
|
|
|
712
694
|
async function handleError(err, outOpts, out) {
|
|
713
695
|
const { CurviateError } = await import("@curviate/sdk");
|
|
714
696
|
if (err instanceof CurviateError) {
|
|
715
|
-
const { getExitCode } = await import("./exit-codes-
|
|
697
|
+
const { getExitCode } = await import("./exit-codes-ZSOLAXQO.js");
|
|
716
698
|
renderError(err, outOpts, out);
|
|
717
699
|
process.exit(getExitCode(err));
|
|
718
700
|
}
|
|
@@ -1436,7 +1418,7 @@ async function runAccountUpdate(client, flags, out) {
|
|
|
1436
1418
|
}
|
|
1437
1419
|
assertLocationFlags(flags, out, { requireOne: false, fallbackAlone: true });
|
|
1438
1420
|
Object.assign(body, managedLocationBody(flags));
|
|
1439
|
-
if (flags["save-connections-as-
|
|
1421
|
+
if (flags["save-connections-as-leads"] !== void 0) body["save_connections_as_leads"] = flags["save-connections-as-leads"];
|
|
1440
1422
|
if (flags["proxy-host"]) {
|
|
1441
1423
|
const proxyPassword = await resolveSecret({
|
|
1442
1424
|
flagValue: flags["proxy-password"],
|
|
@@ -1882,10 +1864,10 @@ var accountConnectSessionCommand = defineCommand5({
|
|
|
1882
1864
|
var accountUpdateCommand = defineCommand5({
|
|
1883
1865
|
meta: {
|
|
1884
1866
|
name: "update",
|
|
1885
|
-
description: "Update an account's metadata, connection location, own proxy or whether its Connections are saved as
|
|
1867
|
+
description: "Update an account's metadata, connection location, own proxy or whether its Connections are saved as Leads. Prints the updated account, with connection_location re-read after a location change.",
|
|
1886
1868
|
risk: "write",
|
|
1887
1869
|
rules: {
|
|
1888
|
-
changes: "Changes the Account's metadata, connection location, own proxy or Save Connections as
|
|
1870
|
+
changes: "Changes the Account's metadata, connection location, own proxy or Save Connections as Leads.",
|
|
1889
1871
|
visible_to: "Your Team; LinkedIn sees the new location and may ask the owner to verify.",
|
|
1890
1872
|
budget_rows: [],
|
|
1891
1873
|
retry: "Safe: the same values written again leave the Account the same.",
|
|
@@ -1910,7 +1892,7 @@ var accountUpdateCommand = defineCommand5({
|
|
|
1910
1892
|
"proxy-port": { type: "string", description: "Proxy port." },
|
|
1911
1893
|
"proxy-username": { type: "string", description: "Proxy auth username." },
|
|
1912
1894
|
"proxy-password": { type: "string", description: `Proxy auth password. ${OPTIONAL_SECRET_WARNING("CURVIATE_PROXY_PASSWORD")}` },
|
|
1913
|
-
"save-connections-as-
|
|
1895
|
+
"save-connections-as-leads": { type: "boolean", description: "Save this account's Connections as Leads (Automate; on by default): each person becomes one Lead in your team, do-not-contact people skipped. Turning it on also saves the Connections already synced; --no-save-connections-as-leads stops it and keeps the Leads saved so far." }
|
|
1914
1896
|
},
|
|
1915
1897
|
async run({ args }) {
|
|
1916
1898
|
const flags = args;
|
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
grammarParams,
|
|
7
7
|
renderOverview,
|
|
8
8
|
windowParams
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BC4N5X3N.js";
|
|
10
10
|
import "./chunk-5S3MJVI5.js";
|
|
11
11
|
import "./chunk-PPGKQJKU.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-LGUZ52BU.js";
|
|
13
13
|
import "./chunk-NNV2OYEF.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-R7USRN52.js";
|
|
15
15
|
import "./chunk-QM57YDJE.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-S234PC5E.js";
|
|
17
17
|
import "./chunk-QLKGOIWS.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-QBY6L77D.js";
|
|
19
19
|
import "./chunk-ZYURL5VK.js";
|
|
20
20
|
export {
|
|
21
21
|
GRAMMAR_ARGS,
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
outputOpts,
|
|
5
5
|
rootClient,
|
|
6
6
|
usage
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LGUZ52BU.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-S234PC5E.js";
|
|
15
15
|
import {
|
|
16
16
|
READ_SINGLE_FLAGS,
|
|
17
17
|
WRITE_SINGLE_FLAGS,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-QLKGOIWS.js";
|
|
20
20
|
import {
|
|
21
21
|
DESCRIPTIONS
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-QBY6L77D.js";
|
|
23
23
|
import "./chunk-ZYURL5VK.js";
|
|
24
24
|
|
|
25
25
|
// src/commands/beta-consent.ts
|
|
@@ -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-77WVMKZQ.js");
|
|
76
76
|
await showHelp(betaCommand, ["curviate", "beta"]);
|
|
77
77
|
}
|
|
78
78
|
});
|