@curviate/cli 0.57.0 → 0.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +114 -0
- package/README.md +9 -2
- package/dist/{account-IRIYB2SG.js → account-EUHYWIDH.js} +52 -16
- package/dist/{analytics-IRSCLVOL.js → analytics-SQQIMSLF.js} +6 -6
- package/dist/{beta-consent-NQVGFZL3.js → beta-consent-DFS7YMZR.js} +4 -4
- package/dist/billing-3FRIQFY3.js +19 -0
- package/dist/{chunk-OE4CY3ZL.js → chunk-5AJS2V4T.js} +1 -1
- package/dist/{chunk-AMTKGO37.js → chunk-5Z3CCE5N.js} +1 -1
- package/dist/{chunk-A6JGJGDF.js → chunk-72PYX57P.js} +16 -16
- package/dist/{billing-TCTP44ZB.js → chunk-7CSXYRSO.js} +125 -14
- package/dist/{chunk-SCUTAREU.js → chunk-EWSOIFG2.js} +17 -0
- package/dist/{chunk-3ZQNOKEK.js → chunk-F3FEY4D5.js} +2 -2
- package/dist/{chunk-F7CLAS5Y.js → chunk-HG2G5OAZ.js} +2 -2
- package/dist/{chunk-6OT6TS7N.js → chunk-HJ7YY4HE.js} +2 -2
- package/dist/{chunk-RKNW4UX4.js → chunk-JKOQX46J.js} +6 -0
- package/dist/{chunk-VHNF6OZD.js → chunk-JY26SUNH.js} +18 -2
- package/dist/{chunk-RXDG57B2.js → chunk-KD2XY7RS.js} +1 -1
- package/dist/{chunk-RTT75CXE.js → chunk-QRTMRTKA.js} +88 -15
- package/dist/{chunk-VPFV7YV3.js → chunk-R2MIDSMB.js} +6 -6
- package/dist/{chunk-AG6G3PRQ.js → chunk-TNLIV3SW.js} +17 -13
- package/dist/{chunk-3B5M2RUN.js → chunk-VKHAL6WT.js} +1 -1
- package/dist/{chunk-5LGKZBAY.js → chunk-ZC4S4B32.js} +4 -3
- package/dist/cli.js +33 -33
- package/dist/{comment-PNHEKGZX.js → comment-DA6XPY4F.js} +8 -8
- package/dist/{company-OUFF23SU.js → company-IWVNUBWS.js} +8 -8
- package/dist/{company-record-ULPDDB6L.js → company-record-ZJMW3NC6.js} +95 -10
- package/dist/{config-U6VDNL2P.js → config-P4HKPOCW.js} +2 -2
- package/dist/{connect-ICNXC37R.js → connect-AELFEVR7.js} +11 -11
- package/dist/{contact-K6RIVQWU.js → contact-FHN3A7MJ.js} +9 -9
- package/dist/{contact-groups-CNH2VB6A.js → contact-groups-HNZTN6I6.js} +11 -11
- package/dist/{contact-import-FK22UTN2.js → contact-import-PJFRLCHR.js} +11 -11
- package/dist/core-R7R44CVA.js +46 -0
- package/dist/{do-not-contact-BQHXNHTV.js → do-not-contact-KSH36NMT.js} +22 -20
- package/dist/{doctor-ZYPZF5BE.js → doctor-BEO4E227.js} +4 -4
- package/dist/{document-H65EXU4L.js → document-G6UND26L.js} +1 -1
- package/dist/{domain-HLOT6Y4A.js → domain-HF3WXWUT.js} +5 -5
- package/dist/{draft-JGQ36JSH.js → draft-2KBRHBBH.js} +5 -5
- package/dist/{enrollment-CF634DB4.js → enrollment-QPE54QQN.js} +14 -10
- package/dist/{examples-J4X5NEIE.js → examples-5FJS47QF.js} +2 -2
- package/dist/{exit-codes-P2FLCKM7.js → exit-codes-LQDMGDII.js} +1 -1
- package/dist/{export-ZQLDQYUZ.js → export-J4JQRE2A.js} +4 -4
- package/dist/{feed-RQHEDZVL.js → feed-PHF2ROIT.js} +6 -6
- package/dist/{group-LRMG76FN.js → group-SLXDOCHV.js} +6 -6
- package/dist/{inbox-5RGG5RQG.js → inbox-IDILZLPC.js} +6 -6
- package/dist/{inboxes-ZFY6ZP33.js → inboxes-QLP5PWTS.js} +6 -6
- package/dist/{incoming-3MJ4CP6H.js → incoming-XG6IBPU6.js} +8 -8
- package/dist/{job-QFIUTHHT.js → job-WUYHK6OX.js} +6 -6
- package/dist/{login-THXWX5HZ.js → login-3RIU257N.js} +2 -2
- package/dist/mailbox-CJRCYZGL.js +772 -0
- package/dist/{message-DM5OUKQS.js → message-EBVO4ZZI.js} +7 -7
- package/dist/{motion-NKOAK7NU.js → motion-7XQ3E4GI.js} +121 -16
- package/dist/{network-VKJUMZ2L.js → network-X5XL44GB.js} +12 -12
- package/dist/{notification-XW5J6KFA.js → notification-QNGHG5EO.js} +6 -6
- package/dist/{notifications-USYOV54R.js → notifications-MOLNELNE.js} +9 -9
- package/dist/{post-M2G3BK4A.js → post-XYSFN5OP.js} +8 -8
- package/dist/{profile-3SG64IEG.js → profile-7LJLU4Y5.js} +12 -12
- package/dist/{recruiter-7OUGZ776.js → recruiter-ALQNIRYR.js} +9 -9
- package/dist/{sales-nav-HHQLLM5C.js → sales-nav-HYZXNYCC.js} +9 -9
- package/dist/{search-5LMSLUH4.js → search-DNCPCFRR.js} +16 -16
- package/dist/{setup-6F4HYUSZ.js → setup-QI5FW6VD.js} +4 -4
- package/dist/{signal-LVODDBOY.js → signal-J2TLIT47.js} +126 -19
- package/dist/{team-MSOPELF6.js → team-PPPCJ5HT.js} +8 -8
- package/dist/{tier-RXHOAQ6L.js → tier-NFWWW34H.js} +4 -4
- package/dist/{unibox-UAA6WIGZ.js → unibox-52C7G5LK.js} +318 -16
- package/dist/{webhook-J2H7X766.js → webhook-J3JYMSY2.js} +12 -12
- package/package.json +3 -3
- package/dist/core-MPEBYNSL.js +0 -46
- package/dist/mailbox-54DPLNXA.js +0 -412
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,120 @@ 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
|
+
## [0.59.0] - 2026-11-19
|
|
10
|
+
|
|
11
|
+
Requires `@curviate/sdk` 0.55.0 (exact pin). The vendored OpenAPI fixture is re-copied from the SDK's (staging's document, server commit `ed310e031`); `commands.json` regenerated.
|
|
12
|
+
|
|
13
|
+
### Mailboxes from Curviate: the price from the server
|
|
14
|
+
|
|
15
|
+
- **`mailbox quote <count>`** reads what that many Mailboxes cost your Team now, for its billing period: the amount, when it is charged (a yearly Team pays the rest of its year the day the records are found), tax, and whether the Team can order now. The same in one sentence on stderr.
|
|
16
|
+
- `mailbox buy` states no price of its own any more. At a terminal it shows the server's quote before asking; **`--expect-amount <amount>`** (the quote's `amount`) cancels the order at once when its `price` differs, exit 11. Every order prints its `price`.
|
|
17
|
+
- `billing cap --help` documents `mailbox_cap` (`cap`, `is_default`, `count`, `room`); `mailbox remove` names no price.
|
|
18
|
+
- `mailbox purchase get` and `mailbox buy` name the six records, `verify` included, each added exactly as shown.
|
|
19
|
+
|
|
20
|
+
### Unibox
|
|
21
|
+
|
|
22
|
+
- `unibox list` prints each conversation's channels, marks, id and the way on: `reply` only with a LinkedIn chat, `email` only with an email channel and no mark; an email-only conversation never gets `reply`.
|
|
23
|
+
- `unibox email send --attach`: up to 6 MiB in all the files go inside the one request; above that each is uploaded first, streamed from disk, and the email names them by id (up to 20 MiB in all). Help names `attachment_refused`.
|
|
24
|
+
|
|
25
|
+
### Imports and warm-up
|
|
26
|
+
|
|
27
|
+
- `lead import --filter` help is checked against the keys the served document types per kind.
|
|
28
|
+
- `mailbox get` describes warm-up `ready`, `landing.reason` and `reputation_reason` (`warm_up_off`); `analytics email` help names the landing reasons (`warm_up_off`, `no_test_inboxes`, `no_test_run`).
|
|
29
|
+
|
|
30
|
+
## [0.58.0] - 2026-11-18
|
|
31
|
+
|
|
32
|
+
Requires `@curviate/sdk` 0.54.0 (exact pin). The vendored OpenAPI fixture is re-copied from the SDK's (staging's document, server commit `00abf89b6`); `commands.json` regenerated; `src/schemas/documents.json` re-derived (unchanged). `campaign lint` runs the SDK 0.54.0 validator offline: `attachment_ids` on an email step and warning W23.
|
|
33
|
+
|
|
34
|
+
### Placement tests and warm-up states
|
|
35
|
+
|
|
36
|
+
- **`mailbox test <mbx_...> --subject <s> --body-file <path|->`** runs a placement test: your exact email to 12 test inboxes at four providers, results within an hour. **`mailbox tests <mbx_...> [plt_...]`** reads the tests, a verdict per provider and the Team's allowance (10 per paid seat a month).
|
|
37
|
+
- `PLACEMENT_TEST_ALLOWANCE_EXHAUSTED` exits **5** (a paid seat or the new month lifts it; never retried); `PLACEMENT_TESTS_UNAVAILABLE` exits 1.
|
|
38
|
+
- **`campaign placement <mot_...>`**: the Campaign's weekly placement checks.
|
|
39
|
+
- `mailbox get` shows `warm_up.state` `waiting` with its `reason` (`reconnect_needed`, `trial`, `app_password`, `warm_up_app`, `allowance`).
|
|
40
|
+
|
|
41
|
+
### Limit hits
|
|
42
|
+
|
|
43
|
+
- **`account safety events <acc_...> [--budget-row] [--since] [--until]`**: the actions Curviate refused at a safety limit or pause, newest first.
|
|
44
|
+
|
|
45
|
+
### Email export
|
|
46
|
+
|
|
47
|
+
- **`analytics export --table email`** (alone, streamed or with `--job`): your Campaign email's daily counts per Mailbox, Account, Campaign, step, variant and receiving provider; no `--origin`.
|
|
48
|
+
|
|
49
|
+
### Mailboxes from Curviate
|
|
50
|
+
|
|
51
|
+
- **`mailbox purchase list [--state]`**, **`mailbox purchase get <mpu_...>`**, **`mailbox purchase check <mpu_...>`** and **`mailbox purchase cancel <mpu_...>`** read your Team's orders and the records to add, look the records up now (once a minute), and cancel an order still waiting for its records (nothing was charged). `MAILBOX_PURCHASE_STATE_CONFLICT` exits 8: while a charge is under way it says to read the order again later, never to retry.
|
|
52
|
+
- **`mailbox buy --domain <d> --mailbox local:Name[:acc_...|shared] ...`** places an order, after a confirmation (`--yes` without a terminal). Owners only; an order through an API key stays under the Team's cap on Mailboxes from Curviate, which only an Owner raises in the dashboard: past it the order is refused (`SPENDING_CAP_REACHED`, exit 5) with a plain line, never retried, and nothing is ordered. Exit codes: `MAILBOX_PURCHASE_NOT_FOUND` 4, `DOMAIN_IN_USE` and `DOMAIN_IS_COMPANY_EMAIL` 2, `MAILBOX_PURCHASE_PENDING` 8, `MAILBOX_PURCHASE_TRIAL` 11, `MAILBOX_SALES_PAUSED` 1.
|
|
53
|
+
|
|
54
|
+
### Seats, reputation and sold Mailboxes
|
|
55
|
+
|
|
56
|
+
- `account link` (a new account or a reconnect with `--account-id`) names the seat it occupies: "Account linked: acc_... (seat seat_...)"; `--json` carries `seat_id` and the deprecated `attached_seat_id`.
|
|
57
|
+
- `mailbox get` describes `reputation` (0 to 100, or null while gathering, never 0) and the warm-up reasons `paused_by_curviate`, `address_check` and `address_unconfirmed`.
|
|
58
|
+
- `mailbox remove` on a Mailbox from Curviate: Owners only, its charge stops at the period's end; `MAILBOX_STATE_CONFLICT` "still settling with billing" (exit 8) is never retried in a loop.
|
|
59
|
+
|
|
60
|
+
### Files and Mailbox orders
|
|
61
|
+
|
|
62
|
+
- `campaign attachment upload <path>` streams the file from disk in one request (a file-backed Blob, never read whole), and refuses a file over 20 MiB before it leaves (exit 2). Its help names the Microsoft sign-in limit (about 2.2 MB in all).
|
|
63
|
+
- `mailbox purchase get` and `check` say what `provisioning` means (charged, being set up; a failed setup is undone in full) and what `cancelled` with `host_failed` means (the charge was undone): neither is a cue to retry or to order again.
|
|
64
|
+
|
|
65
|
+
### Reply labels and Enrollments
|
|
66
|
+
|
|
67
|
+
- `unibox label --set` names each label's effect in one line; `mailbox get` describes `landing` (verdicts per receiving provider).
|
|
68
|
+
- `enrollment list` and `get` in human mode read a `same_company` skip with the Lead kept.
|
|
69
|
+
|
|
70
|
+
### Lead imports
|
|
71
|
+
|
|
72
|
+
- `lead import --source` offers `sales_nav_account_list` (`--list-id`, `--titles` optional) and `sales_nav_company_people` (a Sales Navigator account search URL or `--filter`, plus `--titles`); a pasted account search URL picks `sales_nav_company_people`.
|
|
73
|
+
|
|
74
|
+
### Email attachments
|
|
75
|
+
|
|
76
|
+
- **`campaign attachment upload <file>`** stores one file for an email step's `attachment_ids` (up to 20 MiB, 100 uploads per Team per 24 hours; executables, scripts and macro-enabled Office files are refused, `UNSUPPORTED_MEDIA_TYPE`); **`campaign attachment get <id>`** reads it back. `--preview` prints the request without sending it.
|
|
77
|
+
|
|
78
|
+
### Email: Needs a fix
|
|
79
|
+
|
|
80
|
+
- **`analytics attention [--campaign <mot_...>] [--account-id <acc_...>]`**: what to fix in your email sending now, one row per problem with the command that leads to its fix.
|
|
81
|
+
|
|
82
|
+
### Unibox conversations and email
|
|
83
|
+
|
|
84
|
+
- **`unibox conversation get <conversation_id>`**: one person on one account across LinkedIn and email, with its marks and email state. **`unibox conversation timeline <conversation_id> [--channel linkedin|email]`**: its LinkedIn messages, emails and Campaign events in one list, newest first (`--all` pages on). **`unibox conversation mark <conversation_id> --read|--unread`**.
|
|
85
|
+
- **`unibox email send <conversation_id> <text> (--thread <thread_id> | --subject <subject> [--mailbox <mbx_>])`**: one plain-text email to the Lead. One request; a retry after a timeout can send twice. `EMAIL_UNAVAILABLE` exits 2 and names the reason.
|
|
86
|
+
- **`unibox referral search <message_id> [--name]`** and **`unibox referral confirm <message_id> (--provider-id | --linkedin-url)`** for a reply labelled Referral. `NOT_A_REFERRAL` exits 2.
|
|
87
|
+
|
|
88
|
+
### Email from a conversation: Cc, Bcc, files
|
|
89
|
+
|
|
90
|
+
- **`unibox email send --cc --bcc --attach <file>`**: at most 20 addresses in Cc and Bcc together; files at most 10, 20 MiB in all, refused before anything is sent. From a Microsoft sign-in Mailbox, files of about 2.2 MB in all go today; more is refused, nothing sent. A `recipients_refused` warning (the Cc or Bcc addresses that got nothing) is printed on stderr.
|
|
91
|
+
- An email whose outcome is unknown (the provider stopped answering after it had the whole email) exits **1, never 7**, and says not to send it again.
|
|
92
|
+
|
|
93
|
+
### Billing (seats and the period)
|
|
94
|
+
|
|
95
|
+
- **`billing seats add <qty>`** (inside the spending cap: `SPENDING_CAP_REACHED` exits 5; `SPENDING_CAP_NEAR` rides the answer), **`billing seats remove <seat_id>`** (at the period end; the last paid seat is `CANCEL_IN_DASHBOARD`, exit 5) and **`billing period set annual`**. Each asks at a terminal; elsewhere it needs `--yes`, or nothing is sent. Cancelling the subscription stays the dashboard's.
|
|
96
|
+
|
|
97
|
+
### Companies
|
|
98
|
+
|
|
99
|
+
- **`company fields --file <csv>`**: header `company_id`, then one column per field key; one request per company, in file order, stopping at the first refusal.
|
|
100
|
+
|
|
101
|
+
### Mailboxes and Campaigns
|
|
102
|
+
|
|
103
|
+
- **`mailbox update --warm-up on --days 10|14|21|28`** and **`--warm-up off`**: Mailbox warm-up; `mailbox get` shows `warm_up` with its state and day.
|
|
104
|
+
- **`campaign update --one-lead-per-company`** (and `--no-one-lead-per-company`), with or without `--file`.
|
|
105
|
+
- **`analytics email --include breakdowns,mailboxes,domains`** and **`--forecast`**: one line per Mailbox and domain, the breakdown row counts, the forecast per day.
|
|
106
|
+
- Mailbox connect output never suggests sending a password through an agent: it points to the Connect request link. `--password-stdin` stays for a person at their own terminal (`--help`).
|
|
107
|
+
|
|
108
|
+
### Signals
|
|
109
|
+
|
|
110
|
+
- **`signal watch set <account_id> on|off`** switches one Account's Signal watch (Owners and Managers); **`signal watch list`** reads every Account's state (a bare `signal watch` still does).
|
|
111
|
+
- **`signal actions [--lead-id] [--rule-id] [--outcome]`**: what rules did.
|
|
112
|
+
- **`signal rules enable|disable <rule_id>`**; **`signal rules create --enroll <mot_...>`** (enroll the person through the Account that caught the Signal) and **`--act-on-last-7-days`**.
|
|
113
|
+
- **`webhook create --source signal`**: the eight `signal` events.
|
|
114
|
+
|
|
115
|
+
### Do-not-contact
|
|
116
|
+
|
|
117
|
+
- **`do-not-contact add --company <linkedin company URL>`**: nobody who works there is contacted or imported.
|
|
118
|
+
|
|
119
|
+
### Lead imports
|
|
120
|
+
|
|
121
|
+
- `lead import --filter` help names the keys each LinkedIn source kind offers.
|
|
122
|
+
|
|
9
123
|
## [0.57.0] - 2026-11-18
|
|
10
124
|
|
|
11
125
|
Requires `@curviate/sdk` 0.53.0 (exact pin). The vendored OpenAPI fixture is re-copied from the SDK's (production document, server commit `c8b370ae4`); `commands.json` regenerated; `src/schemas/documents.json` re-derived (unchanged).
|
package/README.md
CHANGED
|
@@ -356,6 +356,7 @@ curviate campaign lint --file campaign.json
|
|
|
356
356
|
curviate campaign create --file campaign.json --json
|
|
357
357
|
curviate campaign preview mot_1 --limit 3 --json # rendered messages and the budget projection; spends nothing (--all: every Lead)
|
|
358
358
|
curviate campaign check mot_1 --json # with an email step: the Lead check start needs
|
|
359
|
+
curviate campaign placement mot_1 # the weekly placement checks of its email steps
|
|
359
360
|
curviate campaign start mot_1 --json # --skip-missing-email: start without the Leads lacking an address
|
|
360
361
|
```
|
|
361
362
|
|
|
@@ -639,9 +640,15 @@ curviate mailbox discover anna@acme.example # IMAP and SMTP settin
|
|
|
639
640
|
curviate mailbox connect anna@acme.example --connection google_sign_in # prints the sign-in link
|
|
640
641
|
printf '%s' "$APP_PASSWORD" | curviate mailbox connect anna@gmail.com --connection google_app_password --password-stdin
|
|
641
642
|
printf '%s' "$APP_PASSWORD" | curviate mailbox reconnect mbx_... --password-stdin
|
|
643
|
+
curviate mailbox test mbx_... --subject "Quick question" --body-file body.txt # a placement test: where it lands, per provider
|
|
644
|
+
curviate mailbox tests mbx_... # its tests and the Team's allowance
|
|
645
|
+
curviate mailbox purchase list # orders of Mailboxes from Curviate; purchase check <id> looks the records up now
|
|
642
646
|
curviate domain check acme.example --now # MX, SPF, DKIM, DMARC, tracking
|
|
643
647
|
curviate account safety get --team # the Team's email defaults
|
|
644
648
|
curviate account safety update --team --email-default-cap 40 --email-opt-out-link-word Abmelden
|
|
649
|
+
curviate analytics attention # Needs a fix: each problem with the command to its fix
|
|
650
|
+
curviate campaign attachment upload pricing.pdf --json # {"id":"cat_..."}: put it in an email step's attachment_ids
|
|
651
|
+
curviate unibox timeline cnv_... # one person's LinkedIn messages and emails in one list
|
|
645
652
|
```
|
|
646
653
|
|
|
647
654
|
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.
|
|
@@ -718,11 +725,11 @@ curviate core inbox get 2-AbCdEf== --account acc_1 --mode cache_only --json
|
|
|
718
725
|
| Code | Meaning |
|
|
719
726
|
|------|---------|
|
|
720
727
|
| 0 | Success |
|
|
721
|
-
| 1 | Unexpected error |
|
|
728
|
+
| 1 | Unexpected error; also an email whose outcome is unknown (it may have been sent: never send it again) |
|
|
722
729
|
| 2 | Usage / argument error |
|
|
723
730
|
| 3 | Authentication or authorization failure |
|
|
724
731
|
| 4 | Resource not found |
|
|
725
|
-
| 5 | Someone must act first: no active seat, the LinkedIn account lacks the subscription, beta consent is missing, the plan is below the Tier the action needs, or a teammate with the right role (or the Account's own person) must do it |
|
|
732
|
+
| 5 | Someone must act first: no active seat, the LinkedIn account lacks the subscription, beta consent is missing, the plan is below the Tier the action needs, the month's placement tests are used (a paid seat adds 10), or a teammate with the right role (or the Account's own person) must do it |
|
|
726
733
|
| 6 | Rate limited |
|
|
727
734
|
| 7 | Transient platform error (retry likely to succeed) |
|
|
728
735
|
| 8 | Account or connection state blocks the request |
|
|
@@ -14,25 +14,25 @@ import {
|
|
|
14
14
|
grammarParams,
|
|
15
15
|
renderOverview,
|
|
16
16
|
windowParams
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-QRTMRTKA.js";
|
|
18
|
+
import "./chunk-PPGKQJKU.js";
|
|
18
19
|
import {
|
|
19
20
|
print,
|
|
20
21
|
table
|
|
21
22
|
} from "./chunk-5S3MJVI5.js";
|
|
22
|
-
import "./chunk-PPGKQJKU.js";
|
|
23
23
|
import {
|
|
24
24
|
fail,
|
|
25
25
|
listFlag,
|
|
26
26
|
outputOpts,
|
|
27
27
|
rootClient,
|
|
28
28
|
usage
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import {
|
|
31
|
-
intFlag
|
|
32
|
-
} from "./chunk-NNV2OYEF.js";
|
|
29
|
+
} from "./chunk-F3FEY4D5.js";
|
|
33
30
|
import {
|
|
34
31
|
buildPreviewOutput
|
|
35
32
|
} from "./chunk-TCUYH5GO.js";
|
|
33
|
+
import {
|
|
34
|
+
intFlag
|
|
35
|
+
} from "./chunk-NNV2OYEF.js";
|
|
36
36
|
import {
|
|
37
37
|
pageDelayFromFlags,
|
|
38
38
|
readCursorFlag,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
readablePage,
|
|
42
42
|
rejectPaginationModifiersWithoutAll,
|
|
43
43
|
streamAll
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-5AJS2V4T.js";
|
|
45
45
|
import {
|
|
46
46
|
isJsonMode,
|
|
47
47
|
renderError,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
import {
|
|
58
58
|
createClient,
|
|
59
59
|
resolveEffectiveConfig
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-KD2XY7RS.js";
|
|
61
61
|
import {
|
|
62
62
|
GLOBAL_FLAGS,
|
|
63
63
|
READ_SINGLE_FLAGS,
|
|
@@ -67,11 +67,11 @@ import {
|
|
|
67
67
|
} from "./chunk-QLKGOIWS.js";
|
|
68
68
|
import {
|
|
69
69
|
DESCRIPTIONS
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-ZC4S4B32.js";
|
|
71
71
|
import {
|
|
72
72
|
parseDocument,
|
|
73
73
|
readFileFlag
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-JKOQX46J.js";
|
|
75
75
|
import "./chunk-FDJMAF7D.js";
|
|
76
76
|
import {
|
|
77
77
|
defaultReadStdin,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
} from "./chunk-ZYURL5VK.js";
|
|
80
80
|
import {
|
|
81
81
|
AUTH_NEEDED
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-EWSOIFG2.js";
|
|
83
83
|
|
|
84
84
|
// src/commands/account-insights.ts
|
|
85
85
|
import { defineCommand } from "citty";
|
|
@@ -293,6 +293,41 @@ async function updateTeam(f) {
|
|
|
293
293
|
await fail(err, f);
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
|
+
var eventsCmd = defineCommand3({
|
|
297
|
+
meta: {
|
|
298
|
+
name: "events",
|
|
299
|
+
description: "One Account's limit hits, newest first: each entry is an action Curviate refused at a safety limit or pause (blocked true), or a pause lifted early. Filter by --budget-row, --since and --until. A read: no LinkedIn call, one API call per page.",
|
|
300
|
+
risk: "read",
|
|
301
|
+
seeAlso: ["curviate account safety get", "curviate account safety update"],
|
|
302
|
+
examples: ["curviate account safety events acc_YOUR_ACCOUNT_ID", "curviate account safety events acc_YOUR_ACCOUNT_ID --budget-row profile_views --since 2026-11-01T00:00:00Z"]
|
|
303
|
+
},
|
|
304
|
+
args: {
|
|
305
|
+
...readOnly(READ_SINGLE_FLAGS),
|
|
306
|
+
accountId: ACCOUNT_REQUIRED,
|
|
307
|
+
"budget-row": { type: "string", description: "Only hits on this budget row, for example profile_views." },
|
|
308
|
+
since: { type: "string", description: "Only hits at or after this time (ISO 8601)." },
|
|
309
|
+
until: { type: "string", description: "Only hits before this time (ISO 8601)." },
|
|
310
|
+
limit: { type: "string", description: "Hits per page (1 to 100)." },
|
|
311
|
+
cursor: { type: "string", description: "The cursor from the previous page." }
|
|
312
|
+
},
|
|
313
|
+
async run({ args }) {
|
|
314
|
+
const f = args;
|
|
315
|
+
const params = {};
|
|
316
|
+
for (const [flag, key] of [["budget-row", "budget_row"], ["since", "since"], ["until", "until"], ["cursor", "cursor"]]) {
|
|
317
|
+
const v = f[flag];
|
|
318
|
+
if (v === void 0) continue;
|
|
319
|
+
if (v.trim() === "") usage(`--${flag} was given an empty value.`);
|
|
320
|
+
params[key] = v;
|
|
321
|
+
}
|
|
322
|
+
if (f.limit !== void 0) params["limit"] = intFlag("limit", f.limit, 1, 100);
|
|
323
|
+
const c = await rootClient(f);
|
|
324
|
+
try {
|
|
325
|
+
renderSuccess(await c.accounts.listSafetyEvents(String(f.accountId ?? ""), params), outputOpts(f), process);
|
|
326
|
+
} catch (err) {
|
|
327
|
+
await fail(err, f);
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
});
|
|
296
331
|
var updateCmd = defineCommand3({
|
|
297
332
|
meta: {
|
|
298
333
|
name: "update",
|
|
@@ -354,8 +389,8 @@ var updateCmd = defineCommand3({
|
|
|
354
389
|
}
|
|
355
390
|
});
|
|
356
391
|
var accountSafetyCommand = defineCommand3({
|
|
357
|
-
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." },
|
|
358
|
-
subCommands: { get: getCmd, update: updateCmd },
|
|
392
|
+
meta: { name: "safety", description: "Read or change one Account's safety policy (limits per budget row, Active hours, the Activity level), read its limit hits (events), or with --team your Team's email defaults." },
|
|
393
|
+
subCommands: { get: getCmd, update: updateCmd, events: eventsCmd },
|
|
359
394
|
async run() {
|
|
360
395
|
process.stderr.write("Usage: curviate account safety get|update <account> | --team\n");
|
|
361
396
|
}
|
|
@@ -688,7 +723,7 @@ var connectRequestCommand = defineCommand4({
|
|
|
688
723
|
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." },
|
|
689
724
|
subCommands: { create: createCmd, get: getCmd2, cancel: cancelCmd },
|
|
690
725
|
async run() {
|
|
691
|
-
const { showHelp } = await import("./examples-
|
|
726
|
+
const { showHelp } = await import("./examples-5FJS47QF.js");
|
|
692
727
|
await showHelp(connectRequestCommand, ["curviate", "account", "connect-request"]);
|
|
693
728
|
}
|
|
694
729
|
});
|
|
@@ -719,7 +754,7 @@ function resolveOutputOpts(flags) {
|
|
|
719
754
|
async function handleError(err, outOpts, out) {
|
|
720
755
|
const { CurviateError } = await import("@curviate/sdk");
|
|
721
756
|
if (err instanceof CurviateError) {
|
|
722
|
-
const { getExitCode } = await import("./exit-codes-
|
|
757
|
+
const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
|
|
723
758
|
renderError(err, outOpts, out);
|
|
724
759
|
process.exit(getExitCode(err));
|
|
725
760
|
}
|
|
@@ -1004,7 +1039,8 @@ function resolveCredentialIO(io) {
|
|
|
1004
1039
|
}
|
|
1005
1040
|
function printConnected(result, ctx) {
|
|
1006
1041
|
const r = result;
|
|
1007
|
-
|
|
1042
|
+
const seat = result.seat_id;
|
|
1043
|
+
ctx.out.stderr.write(`Account ${ctx.successVerb}: ${r.account_id ?? ""}${seat ? ` (seat ${seat})` : ""}
|
|
1008
1044
|
`);
|
|
1009
1045
|
if (r.contract_selected === false) {
|
|
1010
1046
|
ctx.out.stderr.write("note: the account is connected, but the Recruiter contract you named was not selected. Check the account in your dashboard.\n");
|
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
grammarParams,
|
|
7
7
|
renderOverview,
|
|
8
8
|
windowParams
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-5S3MJVI5.js";
|
|
9
|
+
} from "./chunk-QRTMRTKA.js";
|
|
11
10
|
import "./chunk-PPGKQJKU.js";
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-5S3MJVI5.js";
|
|
12
|
+
import "./chunk-F3FEY4D5.js";
|
|
13
13
|
import "./chunk-NNV2OYEF.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-5AJS2V4T.js";
|
|
15
15
|
import "./chunk-QM57YDJE.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-KD2XY7RS.js";
|
|
17
17
|
import "./chunk-QLKGOIWS.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-ZC4S4B32.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-F3FEY4D5.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-KD2XY7RS.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-ZC4S4B32.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-5FJS47QF.js");
|
|
76
76
|
await showHelp(betaCommand, ["curviate", "beta"]);
|
|
77
77
|
}
|
|
78
78
|
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
billingCommand,
|
|
4
|
+
confirmMoney
|
|
5
|
+
} from "./chunk-7CSXYRSO.js";
|
|
6
|
+
import "./chunk-GOICALYQ.js";
|
|
7
|
+
import "./chunk-F3FEY4D5.js";
|
|
8
|
+
import "./chunk-TCUYH5GO.js";
|
|
9
|
+
import "./chunk-NNV2OYEF.js";
|
|
10
|
+
import "./chunk-5AJS2V4T.js";
|
|
11
|
+
import "./chunk-QM57YDJE.js";
|
|
12
|
+
import "./chunk-KD2XY7RS.js";
|
|
13
|
+
import "./chunk-QLKGOIWS.js";
|
|
14
|
+
import "./chunk-ZC4S4B32.js";
|
|
15
|
+
import "./chunk-ZYURL5VK.js";
|
|
16
|
+
export {
|
|
17
|
+
billingCommand,
|
|
18
|
+
confirmMoney
|
|
19
|
+
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
requireAccount
|
|
4
|
+
} from "./chunk-HG2G5OAZ.js";
|
|
2
5
|
import {
|
|
3
6
|
writeAtomic
|
|
4
7
|
} from "./chunk-GOICALYQ.js";
|
|
5
|
-
import {
|
|
6
|
-
requireAccount
|
|
7
|
-
} from "./chunk-F7CLAS5Y.js";
|
|
8
8
|
import {
|
|
9
9
|
sendInChunks
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HJ7YY4HE.js";
|
|
11
11
|
import {
|
|
12
12
|
fail,
|
|
13
13
|
listFlag,
|
|
14
14
|
outputOpts,
|
|
15
15
|
rootClient,
|
|
16
16
|
usage
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import {
|
|
19
|
-
intFlag
|
|
20
|
-
} from "./chunk-NNV2OYEF.js";
|
|
17
|
+
} from "./chunk-F3FEY4D5.js";
|
|
21
18
|
import {
|
|
22
19
|
buildPreviewOutput
|
|
23
20
|
} from "./chunk-TCUYH5GO.js";
|
|
21
|
+
import {
|
|
22
|
+
intFlag
|
|
23
|
+
} from "./chunk-NNV2OYEF.js";
|
|
24
24
|
import {
|
|
25
25
|
pageDelayFromFlags,
|
|
26
26
|
readCursorFlag,
|
|
@@ -29,14 +29,14 @@ import {
|
|
|
29
29
|
readablePage,
|
|
30
30
|
rejectPaginationModifiersWithoutAll,
|
|
31
31
|
streamAll
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-5AJS2V4T.js";
|
|
33
33
|
import {
|
|
34
34
|
renderSuccess,
|
|
35
35
|
writeNdjsonItem
|
|
36
36
|
} from "./chunk-QM57YDJE.js";
|
|
37
37
|
import {
|
|
38
38
|
downloadBinary
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-KD2XY7RS.js";
|
|
40
40
|
import {
|
|
41
41
|
GLOBAL_FLAGS,
|
|
42
42
|
READ_SINGLE_FLAGS,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
import {
|
|
47
47
|
DESCRIPTIONS,
|
|
48
48
|
lazy
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-ZC4S4B32.js";
|
|
50
50
|
|
|
51
51
|
// src/commands/contact.ts
|
|
52
52
|
import { defineCommand } from "citty";
|
|
@@ -503,15 +503,15 @@ var contactCommand = defineCommand({
|
|
|
503
503
|
create: createCmd,
|
|
504
504
|
update: updateCmd,
|
|
505
505
|
delete: deleteCmd,
|
|
506
|
-
import: lazy("contactImport", () => import("./contact-import-
|
|
506
|
+
import: lazy("contactImport", () => import("./contact-import-PJFRLCHR.js").then((m) => m.contactImportCommand)),
|
|
507
507
|
export: exportCmd,
|
|
508
508
|
enrich: enrichCmd,
|
|
509
|
-
lists: lazy("contactLists", () => import("./contact-groups-
|
|
510
|
-
tags: lazy("contactTags", () => import("./contact-groups-
|
|
511
|
-
imports: lazy("contactImports", () => import("./contact-import-
|
|
509
|
+
lists: lazy("contactLists", () => import("./contact-groups-HNZTN6I6.js").then((m) => m.contactListsCommand)),
|
|
510
|
+
tags: lazy("contactTags", () => import("./contact-groups-HNZTN6I6.js").then((m) => m.contactTagsCommand)),
|
|
511
|
+
imports: lazy("contactImports", () => import("./contact-import-PJFRLCHR.js").then((m) => m.contactImportsCommand))
|
|
512
512
|
},
|
|
513
513
|
async run() {
|
|
514
|
-
const { showHelp } = await import("./examples-
|
|
514
|
+
const { showHelp } = await import("./examples-5FJS47QF.js");
|
|
515
515
|
await showHelp(contactCommand, ["curviate", "lead"]);
|
|
516
516
|
}
|
|
517
517
|
});
|