@curviate/cli 0.59.0 → 0.60.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 +9 -0
- package/dist/{account-EUHYWIDH.js → account-BGFQH7MZ.js} +10 -10
- package/dist/{analytics-SQQIMSLF.js → analytics-SLZF5CUV.js} +5 -5
- package/dist/{beta-consent-DFS7YMZR.js → beta-consent-WT5HRWAP.js} +4 -4
- package/dist/{billing-3FRIQFY3.js → billing-EY6SVYLK.js} +5 -5
- package/dist/{chunk-5AJS2V4T.js → chunk-2NYGMKWI.js} +1 -1
- package/dist/{chunk-QRTMRTKA.js → chunk-3WXR6WEO.js} +8 -7
- package/dist/{chunk-7CSXYRSO.js → chunk-4MGTH4FK.js} +7 -7
- package/dist/{chunk-F3FEY4D5.js → chunk-65UHJVXP.js} +2 -2
- package/dist/{chunk-R2MIDSMB.js → chunk-7HOSWMH2.js} +5 -5
- package/dist/{chunk-VKHAL6WT.js → chunk-AJVFJAOR.js} +1 -1
- package/dist/{chunk-EWSOIFG2.js → chunk-DLYVUDNF.js} +1 -1
- package/dist/{chunk-JXDEV33Z.js → chunk-EIPQUQK2.js} +1 -1
- package/dist/{chunk-HJ7YY4HE.js → chunk-ER5Y2SS5.js} +2 -2
- package/dist/{chunk-ZC4S4B32.js → chunk-GZMSX7CA.js} +3 -3
- package/dist/{chunk-HG2G5OAZ.js → chunk-KQMTZIXC.js} +2 -2
- package/dist/{chunk-TNLIV3SW.js → chunk-L6MTOKXI.js} +8 -8
- package/dist/{chunk-72PYX57P.js → chunk-OEMFSUEI.js} +14 -14
- package/dist/{chunk-KD2XY7RS.js → chunk-RQ6KL2ZU.js} +1 -1
- package/dist/cli.js +29 -29
- package/dist/{comment-DA6XPY4F.js → comment-MIH3WEH2.js} +7 -7
- package/dist/{company-IWVNUBWS.js → company-H6UDF2HF.js} +8 -8
- package/dist/{company-record-ZJMW3NC6.js → company-record-L6DI7B6I.js} +10 -10
- package/dist/{config-P4HKPOCW.js → config-C757QH2N.js} +2 -2
- package/dist/{connect-AELFEVR7.js → connect-GRYHFCF3.js} +12 -12
- package/dist/{contact-FHN3A7MJ.js → contact-5LYCPTQH.js} +8 -8
- package/dist/{contact-groups-HNZTN6I6.js → contact-groups-GZML25CV.js} +16 -16
- package/dist/{contact-import-PJFRLCHR.js → contact-import-VM4RS475.js} +9 -9
- package/dist/core-3ZYU463V.js +46 -0
- package/dist/{do-not-contact-KSH36NMT.js → do-not-contact-AWDCWC2D.js} +16 -16
- package/dist/{doctor-BEO4E227.js → doctor-ZW6M7YXP.js} +4 -4
- package/dist/{domain-HF3WXWUT.js → domain-CW7G5NS2.js} +5 -5
- package/dist/{draft-2KBRHBBH.js → draft-VUNBMMTW.js} +10 -10
- package/dist/{enrollment-QPE54QQN.js → enrollment-R2T4GBXR.js} +10 -10
- package/dist/{examples-5FJS47QF.js → examples-G4IC5TJU.js} +1 -1
- package/dist/{exit-codes-LQDMGDII.js → exit-codes-MMGNZCJ5.js} +1 -1
- package/dist/{export-J4JQRE2A.js → export-IYXSEGKH.js} +4 -4
- package/dist/{feed-PHF2ROIT.js → feed-3MMVHTB4.js} +6 -6
- package/dist/{group-SLXDOCHV.js → group-24VZ4XIM.js} +6 -6
- package/dist/{inbox-IDILZLPC.js → inbox-7N2JKEAC.js} +6 -6
- package/dist/{inboxes-QLP5PWTS.js → inboxes-EPD3JMO3.js} +6 -6
- package/dist/{incoming-XG6IBPU6.js → incoming-T2PZOUBL.js} +8 -8
- package/dist/{job-WUYHK6OX.js → job-UD4FBCE2.js} +7 -7
- package/dist/{login-3RIU257N.js → login-GMNDQODN.js} +2 -2
- package/dist/{mailbox-CJRCYZGL.js → mailbox-XC73FZQ6.js} +13 -12
- package/dist/{message-EBVO4ZZI.js → message-XFAFZZGT.js} +6 -6
- package/dist/{motion-7XQ3E4GI.js → motion-C7WTTC6E.js} +20 -20
- package/dist/{network-X5XL44GB.js → network-T2H7S3GL.js} +6 -6
- package/dist/{notification-QNGHG5EO.js → notification-GMFRGQLD.js} +6 -6
- package/dist/{notifications-MOLNELNE.js → notifications-55U3PGJN.js} +6 -6
- package/dist/{post-XYSFN5OP.js → post-LZ74DJDI.js} +7 -7
- package/dist/{profile-7LJLU4Y5.js → profile-HCT4JEIA.js} +12 -12
- package/dist/{recruiter-ALQNIRYR.js → recruiter-UWZM3UMU.js} +7 -7
- package/dist/{sales-nav-HYZXNYCC.js → sales-nav-ZA7CBHRD.js} +6 -6
- package/dist/{search-DNCPCFRR.js → search-ZPJLTGM4.js} +15 -15
- package/dist/{setup-QI5FW6VD.js → setup-L7EC5V73.js} +4 -4
- package/dist/{signal-J2TLIT47.js → signal-JVUGQOEV.js} +5 -5
- package/dist/{team-PPPCJ5HT.js → team-45R6ZOR7.js} +5 -5
- package/dist/{tier-NFWWW34H.js → tier-LQ5UYRUE.js} +4 -4
- package/dist/{unibox-52C7G5LK.js → unibox-RGMMGAFR.js} +19 -19
- package/dist/{webhook-J3JYMSY2.js → webhook-5MNKEBOQ.js} +5 -5
- package/package.json +2 -2
- package/dist/core-R7R44CVA.js +0 -46
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
import {
|
|
3
3
|
chunkRows,
|
|
4
4
|
csvRecords
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-L6MTOKXI.js";
|
|
6
|
+
import "./chunk-OEMFSUEI.js";
|
|
7
|
+
import "./chunk-KQMTZIXC.js";
|
|
8
8
|
import {
|
|
9
9
|
writeAtomic
|
|
10
10
|
} from "./chunk-GOICALYQ.js";
|
|
11
11
|
import {
|
|
12
12
|
sendChunked
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ER5Y2SS5.js";
|
|
14
14
|
import {
|
|
15
15
|
fail,
|
|
16
16
|
outputOpts,
|
|
17
17
|
rootClient,
|
|
18
18
|
usage
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-65UHJVXP.js";
|
|
20
20
|
import {
|
|
21
21
|
buildPreviewOutput
|
|
22
22
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -31,14 +31,14 @@ import {
|
|
|
31
31
|
readablePage,
|
|
32
32
|
rejectPaginationModifiersWithoutAll,
|
|
33
33
|
streamAll
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-2NYGMKWI.js";
|
|
35
35
|
import {
|
|
36
36
|
renderSuccess,
|
|
37
37
|
writeNdjsonItem
|
|
38
38
|
} from "./chunk-QM57YDJE.js";
|
|
39
39
|
import {
|
|
40
40
|
downloadBinary
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-RQ6KL2ZU.js";
|
|
42
42
|
import {
|
|
43
43
|
GLOBAL_FLAGS,
|
|
44
44
|
READ_SINGLE_FLAGS,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
} from "./chunk-QLKGOIWS.js";
|
|
48
48
|
import {
|
|
49
49
|
DESCRIPTIONS
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-GZMSX7CA.js";
|
|
51
51
|
import {
|
|
52
52
|
readFileFlag
|
|
53
53
|
} from "./chunk-JKOQX46J.js";
|
|
@@ -55,7 +55,7 @@ import "./chunk-FDJMAF7D.js";
|
|
|
55
55
|
import {
|
|
56
56
|
isStdinToken
|
|
57
57
|
} from "./chunk-ZYURL5VK.js";
|
|
58
|
-
import "./chunk-
|
|
58
|
+
import "./chunk-DLYVUDNF.js";
|
|
59
59
|
|
|
60
60
|
// src/commands/do-not-contact.ts
|
|
61
61
|
import { defineCommand } from "citty";
|
|
@@ -263,7 +263,7 @@ var getCmd = defineCommand({
|
|
|
263
263
|
var addCmd = defineCommand({
|
|
264
264
|
meta: {
|
|
265
265
|
name: "add",
|
|
266
|
-
description: "Put one person on the list, by Lead id or LinkedIn URL (a URL of someone who is not a Lead yet creates the Lead from stored data), or a whole company with --company (its LinkedIn URL with the numeric id, as a Lead's company_linkedin_url): nobody who works there is contacted or imported. No Campaign contacts them afterwards and writes toward them are refused; with --scope email_only only email stops (No email). One person per call; for many, `do-not-contact import`. Any member may add. Needs
|
|
266
|
+
description: "Put one person on the list, by Lead id or LinkedIn URL (a URL of someone who is not a Lead yet creates the Lead from stored data), or a whole company with --company (its LinkedIn URL with the numeric id, as a Lead's company_linkedin_url): nobody who works there is contacted or imported. No Campaign contacts them afterwards and writes toward them are refused; with --scope email_only only email stops (No email). One person per call; for many, `do-not-contact import`. Any member may add. Needs a subscription.",
|
|
267
267
|
risk: "write",
|
|
268
268
|
rules: {
|
|
269
269
|
changes: "The person joins the list; Campaigns skip them and writes toward them are refused.",
|
|
@@ -272,7 +272,7 @@ var addCmd = defineCommand({
|
|
|
272
272
|
retry: "Safe: a person already on the list answers with their existing entry.",
|
|
273
273
|
undo: "`curviate do-not-contact remove <id>` (Owners and Managers)."
|
|
274
274
|
},
|
|
275
|
-
errors: { TIER_REQUIRED: "your
|
|
275
|
+
errors: { TIER_REQUIRED: "your Team needs a subscription for Do-not-contact writes.", RESOURCE_NOT_FOUND: "no Lead has this id." },
|
|
276
276
|
seeAlso: ["curviate do-not-contact list", "curviate do-not-contact import"],
|
|
277
277
|
examples: [
|
|
278
278
|
"curviate do-not-contact add --lead con_YOUR_LEAD_ID --reason asked_to_stop",
|
|
@@ -293,7 +293,7 @@ var addCmd = defineCommand({
|
|
|
293
293
|
var updateCmd = defineCommand({
|
|
294
294
|
meta: {
|
|
295
295
|
name: "update",
|
|
296
|
-
description: "Change the reason on an entry. Needs
|
|
296
|
+
description: "Change the reason on an entry. Needs a subscription.",
|
|
297
297
|
risk: "write",
|
|
298
298
|
rules: {
|
|
299
299
|
changes: "The entry's reason.",
|
|
@@ -302,7 +302,7 @@ var updateCmd = defineCommand({
|
|
|
302
302
|
retry: "Safe: the same call leaves the same reason.",
|
|
303
303
|
undo: "Update again with the old reason."
|
|
304
304
|
},
|
|
305
|
-
errors: { TIER_REQUIRED: "your
|
|
305
|
+
errors: { TIER_REQUIRED: "your Team needs a subscription for Do-not-contact writes.", RESOURCE_NOT_FOUND: "no such entry." },
|
|
306
306
|
examples: ["curviate do-not-contact update dnc_YOUR_ENTRY_ID --reason existing_customer"]
|
|
307
307
|
},
|
|
308
308
|
args: { ...WRITE_SINGLE_FLAGS, id: ID, reason: { ...REASON_ARG, required: true } },
|
|
@@ -353,7 +353,7 @@ var exportCmd = defineCommand({
|
|
|
353
353
|
var importCmd = defineCommand({
|
|
354
354
|
meta: {
|
|
355
355
|
name: "import",
|
|
356
|
-
description: "Put the people of a CSV, JSON or NDJSON file on the list: a linkedin_url per row and an optional reason (a do-not-contact export works as it is). Each row works as `add`: someone who is not a Lead yet becomes one from stored data, and a person already listed is reported unchanged and keeps their reason. A bad URL or reason skips its row and the server says why. A file over 10,000 rows is sent in several requests. Any member may import. Needs
|
|
356
|
+
description: "Put the people of a CSV, JSON or NDJSON file on the list: a linkedin_url per row and an optional reason (a do-not-contact export works as it is). Each row works as `add`: someone who is not a Lead yet becomes one from stored data, and a person already listed is reported unchanged and keeps their reason. A bad URL or reason skips its row and the server says why. A file over 10,000 rows is sent in several requests. Any member may import. Needs a subscription.",
|
|
357
357
|
risk: "write",
|
|
358
358
|
rules: {
|
|
359
359
|
changes: "The people join the list; Campaigns skip them and writes toward them are refused. Nothing is sent to LinkedIn or to the people.",
|
|
@@ -362,7 +362,7 @@ var importCmd = defineCommand({
|
|
|
362
362
|
retry: "Safe to repeat: a person already listed is reported unchanged. A run stopped part way: run it again.",
|
|
363
363
|
undo: "`curviate do-not-contact remove <id>` per person (Owners and Managers)."
|
|
364
364
|
},
|
|
365
|
-
errors: { TIER_REQUIRED: "your
|
|
365
|
+
errors: { TIER_REQUIRED: "your Team needs a subscription for Do-not-contact writes.", LEAD_LIMIT_REACHED: "the Team is at its Lead cap; rows that would add a Lead past it are skipped." },
|
|
366
366
|
output: ["One report: `total_rows`, summed `counts` (created, unchanged, skipped) and `skipped` rows with their number in the file, a reason and the field."],
|
|
367
367
|
seeAlso: ["curviate do-not-contact export", "curviate do-not-contact list"],
|
|
368
368
|
examples: ["curviate do-not-contact import --file do-not-contact.csv", "curviate do-not-contact import --file - --format ndjson"]
|
|
@@ -379,7 +379,7 @@ var doNotContactCommand = defineCommand({
|
|
|
379
379
|
meta: { name: "do-not-contact", description: DESCRIPTIONS["do-not-contact"] },
|
|
380
380
|
subCommands: { list: listCmd, get: getCmd, add: addCmd, update: updateCmd, remove: removeCmd, export: exportCmd, import: importCmd },
|
|
381
381
|
async run() {
|
|
382
|
-
const { showHelp } = await import("./examples-
|
|
382
|
+
const { showHelp } = await import("./examples-G4IC5TJU.js");
|
|
383
383
|
await showHelp(doNotContactCommand, ["curviate", "do-not-contact"]);
|
|
384
384
|
}
|
|
385
385
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
readablePage
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2NYGMKWI.js";
|
|
5
5
|
import "./chunk-QM57YDJE.js";
|
|
6
6
|
import {
|
|
7
7
|
createClient,
|
|
@@ -10,17 +10,17 @@ import {
|
|
|
10
10
|
readConfigFile,
|
|
11
11
|
resolveEffectiveConfig,
|
|
12
12
|
withoutUserinfo
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-RQ6KL2ZU.js";
|
|
14
14
|
import {
|
|
15
15
|
GLOBAL_FLAGS
|
|
16
16
|
} from "./chunk-QLKGOIWS.js";
|
|
17
17
|
import {
|
|
18
18
|
DESCRIPTIONS
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-GZMSX7CA.js";
|
|
20
20
|
import "./chunk-ZYURL5VK.js";
|
|
21
21
|
import {
|
|
22
22
|
getExitCode
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-DLYVUDNF.js";
|
|
24
24
|
|
|
25
25
|
// src/commands/doctor.ts
|
|
26
26
|
import { defineCommand } from "citty";
|
|
@@ -4,24 +4,24 @@ import {
|
|
|
4
4
|
outputOpts,
|
|
5
5
|
rootClient,
|
|
6
6
|
usage
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-65UHJVXP.js";
|
|
8
8
|
import {
|
|
9
9
|
buildPreviewOutput
|
|
10
10
|
} from "./chunk-TCUYH5GO.js";
|
|
11
11
|
import {
|
|
12
12
|
readableObject
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2NYGMKWI.js";
|
|
14
14
|
import {
|
|
15
15
|
renderSuccess
|
|
16
16
|
} from "./chunk-QM57YDJE.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-RQ6KL2ZU.js";
|
|
18
18
|
import {
|
|
19
19
|
READ_SINGLE_FLAGS,
|
|
20
20
|
readOnly
|
|
21
21
|
} from "./chunk-QLKGOIWS.js";
|
|
22
22
|
import {
|
|
23
23
|
DESCRIPTIONS
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-GZMSX7CA.js";
|
|
25
25
|
import "./chunk-ZYURL5VK.js";
|
|
26
26
|
|
|
27
27
|
// src/commands/domain.ts
|
|
@@ -61,7 +61,7 @@ var domainCommand = defineCommand({
|
|
|
61
61
|
meta: { name: "domain", description: DESCRIPTIONS["domain"] },
|
|
62
62
|
subCommands: { check: checkCmd },
|
|
63
63
|
async run() {
|
|
64
|
-
const { showHelp } = await import("./examples-
|
|
64
|
+
const { showHelp } = await import("./examples-G4IC5TJU.js");
|
|
65
65
|
await showHelp(domainCommand, ["curviate", "domain"]);
|
|
66
66
|
}
|
|
67
67
|
});
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
readablePage,
|
|
21
21
|
rejectPaginationModifiersWithoutAll,
|
|
22
22
|
streamAll
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-2NYGMKWI.js";
|
|
24
24
|
import {
|
|
25
25
|
renderError,
|
|
26
26
|
renderSuccess,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
import {
|
|
31
31
|
createClient,
|
|
32
32
|
resolveEffectiveConfig
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-RQ6KL2ZU.js";
|
|
34
34
|
import {
|
|
35
35
|
GLOBAL_FLAGS,
|
|
36
36
|
READ_SINGLE_FLAGS,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
} from "./chunk-QLKGOIWS.js";
|
|
40
40
|
import {
|
|
41
41
|
DESCRIPTIONS
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-GZMSX7CA.js";
|
|
43
43
|
import {
|
|
44
44
|
resolveTextOrStdin
|
|
45
45
|
} from "./chunk-ZYURL5VK.js";
|
|
@@ -73,7 +73,7 @@ function rejectAllOnNonPaginated(all, out) {
|
|
|
73
73
|
async function handleError(err, outOpts, out) {
|
|
74
74
|
const { CurviateError } = await import("@curviate/sdk");
|
|
75
75
|
if (err instanceof CurviateError) {
|
|
76
|
-
const { getExitCode } = await import("./exit-codes-
|
|
76
|
+
const { getExitCode } = await import("./exit-codes-MMGNZCJ5.js");
|
|
77
77
|
renderError(err, outOpts, out);
|
|
78
78
|
process.exit(getExitCode(err));
|
|
79
79
|
}
|
|
@@ -371,7 +371,7 @@ var draftGetCommand = defineCommand({
|
|
|
371
371
|
var draftCreateCommand = defineCommand({
|
|
372
372
|
meta: {
|
|
373
373
|
name: "create",
|
|
374
|
-
description: "Store a Draft. Every part is optional. With --schedule-at (and an account and text) Curviate publishes it at that time. Each account, and the no-account bucket, has a Draft limit and a media quota (DRAFT_LIMIT_REACHED, MEDIA_QUOTA_EXCEEDED). A retry creates a second Draft. Needs
|
|
374
|
+
description: "Store a Draft. Every part is optional. With --schedule-at (and an account and text) Curviate publishes it at that time. Each account, and the no-account bucket, has a Draft limit and a media quota (DRAFT_LIMIT_REACHED, MEDIA_QUOTA_EXCEEDED). A retry creates a second Draft. Needs a subscription.",
|
|
375
375
|
risk: "write",
|
|
376
376
|
rules: {
|
|
377
377
|
changes: "Stores a Draft; with --schedule-at, an account and text, Curviate publishes it at that time.",
|
|
@@ -380,7 +380,7 @@ var draftCreateCommand = defineCommand({
|
|
|
380
380
|
retry: "Not safe: each call creates another Draft.",
|
|
381
381
|
undo: "`curviate core draft delete <draft_id>`."
|
|
382
382
|
},
|
|
383
|
-
errors: { TIER_REQUIRED: "your
|
|
383
|
+
errors: { TIER_REQUIRED: "your Team needs a subscription for Drafts.", DRAFT_LIMIT_REACHED: "the bucket already holds as many Drafts as it may.", MEDIA_QUOTA_EXCEEDED: "the media quota is used.", SCHEDULE_CONFLICT: "another Draft is scheduled too close to this time." },
|
|
384
384
|
examples: [
|
|
385
385
|
'curviate core draft create "Three things we learned shipping our first agent integration."',
|
|
386
386
|
'curviate core draft create "Launch day." --account acc_YOUR_ACCOUNT_ID --schedule-at 2026-10-12T09:00:00+02:00',
|
|
@@ -401,7 +401,7 @@ var draftCreateCommand = defineCommand({
|
|
|
401
401
|
var draftUpdateCommand = defineCommand({
|
|
402
402
|
meta: {
|
|
403
403
|
name: "update",
|
|
404
|
-
description: "Change a Draft: only the parts you pass change. --attach appends files; --schedule-at schedules or reschedules, --unschedule cancels. Any update to a failed Draft clears its failure. A Draft being published answers DRAFT_PUBLISHING: read it again in a few seconds. Needs
|
|
404
|
+
description: "Change a Draft: only the parts you pass change. --attach appends files; --schedule-at schedules or reschedules, --unschedule cancels. Any update to a failed Draft clears its failure. A Draft being published answers DRAFT_PUBLISHING: read it again in a few seconds. Needs a subscription.",
|
|
405
405
|
risk: "write",
|
|
406
406
|
rules: {
|
|
407
407
|
changes: "Changes the parts of the Draft you pass; --schedule-at schedules or reschedules it, --unschedule cancels.",
|
|
@@ -410,7 +410,7 @@ var draftUpdateCommand = defineCommand({
|
|
|
410
410
|
retry: "Safe for the text and schedule: the same values written again leave the Draft the same. --attach appends the files again.",
|
|
411
411
|
undo: "Run it again with the previous values."
|
|
412
412
|
},
|
|
413
|
-
errors: { TIER_REQUIRED: "your
|
|
413
|
+
errors: { TIER_REQUIRED: "your Team needs a subscription for Drafts.", DRAFT_PUBLISHING: "the Draft is being published: read it again in a few seconds.", MEDIA_QUOTA_EXCEEDED: "the media quota is used.", SCHEDULE_CONFLICT: "another Draft is scheduled too close to this time." },
|
|
414
414
|
examples: [
|
|
415
415
|
'curviate core draft update drf_YOUR_DRAFT_ID --text "New wording."',
|
|
416
416
|
"curviate core draft update drf_YOUR_DRAFT_ID --schedule-at 2026-10-12T09:00:00+02:00",
|
|
@@ -458,7 +458,7 @@ var draftDeleteCommand = defineCommand({
|
|
|
458
458
|
var draftPublishCommand = defineCommand({
|
|
459
459
|
meta: {
|
|
460
460
|
name: "publish",
|
|
461
|
-
description: "Publish a Draft now, under the same rules and safety limits as `curviate core post create`. Success deletes the Draft and prints the post id; a known failure keeps the content and cancels any pending scheduled publish or retry (a time still ahead stays scheduled, one already passed is cleared). If the error says the outcome is unknown, the Draft fails `outcome_unknown` and the post may be live: check the account's posts before retrying. Needs
|
|
461
|
+
description: "Publish a Draft now, under the same rules and safety limits as `curviate core post create`. Success deletes the Draft and prints the post id; a known failure keeps the content and cancels any pending scheduled publish or retry (a time still ahead stays scheduled, one already passed is cleared). If the error says the outcome is unknown, the Draft fails `outcome_unknown` and the post may be live: check the account's posts before retrying. Needs a subscription.",
|
|
462
462
|
risk: "write",
|
|
463
463
|
rules: {
|
|
464
464
|
changes: "Publishes the Draft as a post now and deletes the Draft.",
|
|
@@ -467,7 +467,7 @@ var draftPublishCommand = defineCommand({
|
|
|
467
467
|
retry: "A known failure keeps the content, cancels any pending scheduled publish or retry (a time still ahead stays scheduled, one already passed is cleared) and is safe to retry. If the error says the outcome is unknown, read `curviate core post user-posts me` first.",
|
|
468
468
|
undo: "`curviate core post delete <post_id>`."
|
|
469
469
|
},
|
|
470
|
-
errors: { ...AS_ACCOUNT, ...BUDGET, TIER_REQUIRED: "your
|
|
470
|
+
errors: { ...AS_ACCOUNT, ...BUDGET, TIER_REQUIRED: "your Team needs a subscription for Drafts.", DRAFT_NOT_PUBLISHABLE: "the Draft lacks what a post needs.", DRAFT_PUBLISHING: "the Draft is already being published." },
|
|
471
471
|
examples: ["curviate core draft publish drf_YOUR_DRAFT_ID"]
|
|
472
472
|
},
|
|
473
473
|
args: {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
outputOpts,
|
|
6
6
|
rootClient,
|
|
7
7
|
usage
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-65UHJVXP.js";
|
|
9
9
|
import {
|
|
10
10
|
buildPreviewOutput
|
|
11
11
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -20,12 +20,12 @@ import {
|
|
|
20
20
|
readablePage,
|
|
21
21
|
rejectPaginationModifiersWithoutAll,
|
|
22
22
|
streamAll
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-2NYGMKWI.js";
|
|
24
24
|
import {
|
|
25
25
|
renderSuccess,
|
|
26
26
|
writeNdjsonItem
|
|
27
27
|
} from "./chunk-QM57YDJE.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-RQ6KL2ZU.js";
|
|
29
29
|
import {
|
|
30
30
|
GLOBAL_FLAGS,
|
|
31
31
|
READ_SINGLE_FLAGS,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
} from "./chunk-QLKGOIWS.js";
|
|
35
35
|
import {
|
|
36
36
|
DESCRIPTIONS
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-GZMSX7CA.js";
|
|
38
38
|
import "./chunk-ZYURL5VK.js";
|
|
39
39
|
|
|
40
40
|
// src/commands/enrollment.ts
|
|
@@ -212,7 +212,7 @@ async function runBulk(c, f) {
|
|
|
212
212
|
}
|
|
213
213
|
const firstError = results.find((r) => r.outcome !== "ok");
|
|
214
214
|
if (firstError) {
|
|
215
|
-
const { getExitCode } = await import("./exit-codes-
|
|
215
|
+
const { getExitCode } = await import("./exit-codes-MMGNZCJ5.js");
|
|
216
216
|
process.stderr.write(`error: ${results.filter((r) => r.outcome !== "ok").length} of ${results.length} Enrollments were refused; each refusal is listed.
|
|
217
217
|
`);
|
|
218
218
|
process.exit(getExitCode(firstError.error?.code ?? "INTERNAL"));
|
|
@@ -289,7 +289,7 @@ var pauseCmd = defineCommand({
|
|
|
289
289
|
var resumeCmd = defineCommand({
|
|
290
290
|
meta: {
|
|
291
291
|
name: "resume",
|
|
292
|
-
description: "Without --at: lift your own pause; the Enrollment continues where it was. With --at: jump to that Step of its Sequence version. The jump is not guarded: it re-enters the Step even when that Step already sent, so a message can go out again. To retry a failed Step use `curviate enrollment retry <enrollment_id>`, which acts only on a failure. Needs
|
|
292
|
+
description: "Without --at: lift your own pause; the Enrollment continues where it was. With --at: jump to that Step of its Sequence version. The jump is not guarded: it re-enters the Step even when that Step already sent, so a message can go out again. To retry a failed Step use `curviate enrollment retry <enrollment_id>`, which acts only on a failure. Needs a subscription.",
|
|
293
293
|
risk: "high",
|
|
294
294
|
rules: {
|
|
295
295
|
changes: "The Enrollment runs again from its Account; with --at, from the named Step.",
|
|
@@ -381,7 +381,7 @@ var eventMeta = (name, description, example) => ({
|
|
|
381
381
|
var eventCmd = defineCommand({
|
|
382
382
|
meta: eventMeta(
|
|
383
383
|
"event",
|
|
384
|
-
"Send a custom event to an active or paused Enrollment whose Sequence waits for it, for example once your agent wrote the researched text to the Lead's custom fields. Input only: fires no webhook. Needs
|
|
384
|
+
"Send a custom event to an active or paused Enrollment whose Sequence waits for it, for example once your agent wrote the researched text to the Lead's custom fields. Input only: fires no webhook. Needs a subscription.",
|
|
385
385
|
"curviate enrollment event enr_YOUR_ENROLLMENT_ID research_ready"
|
|
386
386
|
),
|
|
387
387
|
args: EVENT_ARGS,
|
|
@@ -390,7 +390,7 @@ var eventCmd = defineCommand({
|
|
|
390
390
|
var signalCmd = defineCommand({
|
|
391
391
|
meta: eventMeta(
|
|
392
392
|
"signal",
|
|
393
|
-
"Deprecated alias of `curviate enrollment event`, accepted until 2027-01-19. Sends the same event. Needs
|
|
393
|
+
"Deprecated alias of `curviate enrollment event`, accepted until 2027-01-19. Sends the same event. Needs a subscription.",
|
|
394
394
|
"curviate enrollment signal enr_YOUR_ENROLLMENT_ID research_ready"
|
|
395
395
|
),
|
|
396
396
|
args: EVENT_ARGS,
|
|
@@ -402,7 +402,7 @@ var signalCmd = defineCommand({
|
|
|
402
402
|
var reassignCmd = defineCommand({
|
|
403
403
|
meta: {
|
|
404
404
|
name: "reassign",
|
|
405
|
-
description: "Move an Enrollment to another sending Account of its Campaign; it restarts there at the first Step of its version (one you paused stays paused). Refused, nothing changed, when its Account already engaged the person, the target already holds them, or the target has a chat with them. Needs
|
|
405
|
+
description: "Move an Enrollment to another sending Account of its Campaign; it restarts there at the first Step of its version (one you paused stays paused). Refused, nothing changed, when its Account already engaged the person, the target already holds them, or the target has a chat with them. Needs a subscription.",
|
|
406
406
|
risk: "high",
|
|
407
407
|
rules: {
|
|
408
408
|
changes: "The Enrollment restarts on the target Account; Steps already skipped are named in warnings.",
|
|
@@ -479,7 +479,7 @@ var enrollmentCommand = defineCommand({
|
|
|
479
479
|
bulk: bulkCmd
|
|
480
480
|
},
|
|
481
481
|
async run() {
|
|
482
|
-
const { showHelp } = await import("./examples-
|
|
482
|
+
const { showHelp } = await import("./examples-G4IC5TJU.js");
|
|
483
483
|
await showHelp(enrollmentCommand, ["curviate", "enrollment"]);
|
|
484
484
|
}
|
|
485
485
|
});
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
outputOpts,
|
|
8
8
|
rootClient,
|
|
9
9
|
usage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-65UHJVXP.js";
|
|
11
11
|
import {
|
|
12
12
|
renderSuccess
|
|
13
13
|
} from "./chunk-QM57YDJE.js";
|
|
14
14
|
import {
|
|
15
15
|
downloadBinary
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-RQ6KL2ZU.js";
|
|
17
17
|
import {
|
|
18
18
|
GLOBAL_FLAGS,
|
|
19
19
|
READ_SINGLE_FLAGS,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "./chunk-QLKGOIWS.js";
|
|
22
22
|
import {
|
|
23
23
|
DESCRIPTIONS
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-GZMSX7CA.js";
|
|
25
25
|
import "./chunk-ZYURL5VK.js";
|
|
26
26
|
|
|
27
27
|
// src/commands/export.ts
|
|
@@ -87,7 +87,7 @@ var exportCommand = defineCommand({
|
|
|
87
87
|
meta: { name: "export", description: DESCRIPTIONS.export },
|
|
88
88
|
subCommands: { get: getCmd, download: downloadCmd },
|
|
89
89
|
async run() {
|
|
90
|
-
const { showHelp } = await import("./examples-
|
|
90
|
+
const { showHelp } = await import("./examples-G4IC5TJU.js");
|
|
91
91
|
await showHelp(exportCommand, ["curviate", "export"]);
|
|
92
92
|
}
|
|
93
93
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
requireAccount
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KQMTZIXC.js";
|
|
5
5
|
import {
|
|
6
6
|
pageDelayFromFlags,
|
|
7
7
|
readCursorFlag,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
readablePage,
|
|
10
10
|
rejectPaginationModifiersWithoutAll,
|
|
11
11
|
streamAll
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2NYGMKWI.js";
|
|
13
13
|
import {
|
|
14
14
|
renderError,
|
|
15
15
|
renderSuccess,
|
|
@@ -19,16 +19,16 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
createClient,
|
|
21
21
|
resolveEffectiveConfig
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-RQ6KL2ZU.js";
|
|
23
23
|
import {
|
|
24
24
|
GLOBAL_FLAGS,
|
|
25
25
|
readOnly
|
|
26
26
|
} from "./chunk-QLKGOIWS.js";
|
|
27
27
|
import {
|
|
28
28
|
DESCRIPTIONS
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-GZMSX7CA.js";
|
|
30
30
|
import "./chunk-ZYURL5VK.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-DLYVUDNF.js";
|
|
32
32
|
|
|
33
33
|
// src/commands/feed.ts
|
|
34
34
|
import { defineCommand } from "citty";
|
|
@@ -49,7 +49,7 @@ function resolveOutputOpts(flags) {
|
|
|
49
49
|
async function handleSdkError(err, outOpts, out) {
|
|
50
50
|
const { CurviateError } = await import("@curviate/sdk");
|
|
51
51
|
if (err instanceof CurviateError) {
|
|
52
|
-
const { getExitCode } = await import("./exit-codes-
|
|
52
|
+
const { getExitCode } = await import("./exit-codes-MMGNZCJ5.js");
|
|
53
53
|
renderError(err, outOpts, out);
|
|
54
54
|
process.exit(getExitCode(err));
|
|
55
55
|
}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-UEAX6KUB.js";
|
|
5
5
|
import {
|
|
6
6
|
requireAccount
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KQMTZIXC.js";
|
|
8
8
|
import {
|
|
9
9
|
pageDelayFromFlags,
|
|
10
10
|
readCursorFlag,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
readablePage,
|
|
14
14
|
rejectPaginationModifiersWithoutAll,
|
|
15
15
|
streamAll
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2NYGMKWI.js";
|
|
17
17
|
import {
|
|
18
18
|
renderError,
|
|
19
19
|
renderSuccess,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
import {
|
|
24
24
|
createClient,
|
|
25
25
|
resolveEffectiveConfig
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-RQ6KL2ZU.js";
|
|
27
27
|
import {
|
|
28
28
|
GLOBAL_FLAGS,
|
|
29
29
|
READ_SINGLE_FLAGS,
|
|
@@ -31,9 +31,9 @@ import {
|
|
|
31
31
|
} from "./chunk-QLKGOIWS.js";
|
|
32
32
|
import {
|
|
33
33
|
DESCRIPTIONS
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-GZMSX7CA.js";
|
|
35
35
|
import "./chunk-ZYURL5VK.js";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-DLYVUDNF.js";
|
|
37
37
|
|
|
38
38
|
// src/commands/group.ts
|
|
39
39
|
import { defineCommand } from "citty";
|
|
@@ -60,7 +60,7 @@ function resolveOutputOpts(flags) {
|
|
|
60
60
|
async function handleSdkError(err, outOpts, out) {
|
|
61
61
|
const { CurviateError } = await import("@curviate/sdk");
|
|
62
62
|
if (err instanceof CurviateError) {
|
|
63
|
-
const { getExitCode } = await import("./exit-codes-
|
|
63
|
+
const { getExitCode } = await import("./exit-codes-MMGNZCJ5.js");
|
|
64
64
|
renderError(err, outOpts, out);
|
|
65
65
|
process.exit(getExitCode(err));
|
|
66
66
|
}
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-Q3ZPRFUX.js";
|
|
13
13
|
import {
|
|
14
14
|
requireAccount
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KQMTZIXC.js";
|
|
16
16
|
import {
|
|
17
17
|
buildPreviewOutput
|
|
18
18
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
readablePage,
|
|
25
25
|
rejectPaginationModifiersWithoutAll,
|
|
26
26
|
streamAll
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-2NYGMKWI.js";
|
|
28
28
|
import {
|
|
29
29
|
renderError,
|
|
30
30
|
renderSuccess,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
import {
|
|
35
35
|
createClient,
|
|
36
36
|
resolveEffectiveConfig
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-RQ6KL2ZU.js";
|
|
38
38
|
import {
|
|
39
39
|
GLOBAL_FLAGS,
|
|
40
40
|
READ_SINGLE_FLAGS,
|
|
@@ -43,9 +43,9 @@ import {
|
|
|
43
43
|
} from "./chunk-QLKGOIWS.js";
|
|
44
44
|
import {
|
|
45
45
|
DESCRIPTIONS
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-GZMSX7CA.js";
|
|
47
47
|
import "./chunk-ZYURL5VK.js";
|
|
48
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-DLYVUDNF.js";
|
|
49
49
|
|
|
50
50
|
// src/commands/inbox.ts
|
|
51
51
|
import { defineCommand } from "citty";
|
|
@@ -107,7 +107,7 @@ function validateInboxFolder(raw, out) {
|
|
|
107
107
|
async function handleSdkError(err, outOpts, out) {
|
|
108
108
|
const { CurviateError } = await import("@curviate/sdk");
|
|
109
109
|
if (err instanceof CurviateError) {
|
|
110
|
-
const { getExitCode } = await import("./exit-codes-
|
|
110
|
+
const { getExitCode } = await import("./exit-codes-MMGNZCJ5.js");
|
|
111
111
|
renderError(err, outOpts, out);
|
|
112
112
|
process.exit(getExitCode(err));
|
|
113
113
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
requireAccount
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KQMTZIXC.js";
|
|
5
5
|
import {
|
|
6
6
|
pageDelayFromFlags,
|
|
7
7
|
readCursorFlag,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
readablePage,
|
|
11
11
|
rejectPaginationModifiersWithoutAll,
|
|
12
12
|
streamAll
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2NYGMKWI.js";
|
|
14
14
|
import {
|
|
15
15
|
renderError,
|
|
16
16
|
renderSuccess,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
createClient,
|
|
22
22
|
resolveEffectiveConfig
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-RQ6KL2ZU.js";
|
|
24
24
|
import {
|
|
25
25
|
GLOBAL_FLAGS,
|
|
26
26
|
READ_SINGLE_FLAGS,
|
|
@@ -28,9 +28,9 @@ import {
|
|
|
28
28
|
} from "./chunk-QLKGOIWS.js";
|
|
29
29
|
import {
|
|
30
30
|
DESCRIPTIONS
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-GZMSX7CA.js";
|
|
32
32
|
import "./chunk-ZYURL5VK.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-DLYVUDNF.js";
|
|
34
34
|
|
|
35
35
|
// src/commands/inboxes.ts
|
|
36
36
|
import { defineCommand } from "citty";
|
|
@@ -57,7 +57,7 @@ function resolveOutputOpts(flags) {
|
|
|
57
57
|
async function handleSdkError(err, outOpts, out) {
|
|
58
58
|
const { CurviateError } = await import("@curviate/sdk");
|
|
59
59
|
if (err instanceof CurviateError) {
|
|
60
|
-
const { getExitCode } = await import("./exit-codes-
|
|
60
|
+
const { getExitCode } = await import("./exit-codes-MMGNZCJ5.js");
|
|
61
61
|
renderError(err, outOpts, out);
|
|
62
62
|
process.exit(getExitCode(err));
|
|
63
63
|
}
|