@curviate/cli 0.54.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 +24 -0
- package/README.md +34 -17
- package/dist/{account-DW5N5MJ6.js → account-6L33JFZS.js} +98 -116
- package/dist/{analytics-T2K3OWVQ.js → analytics-HGJGXRAM.js} +5 -5
- package/dist/{beta-consent-O736ONE7.js → beta-consent-LIND4PPN.js} +4 -4
- package/dist/{billing-NTBL32EX.js → billing-QKPP5NPR.js} +5 -5
- package/dist/{chunk-5B4T6BMN.js → chunk-AMMAA62Z.js} +44 -44
- package/dist/{chunk-FBLCSVIU.js → chunk-BC4N5X3N.js} +47 -47
- package/dist/{chunk-N4IYTFIY.js → chunk-EA5LJ4CS.js} +1 -1
- package/dist/{chunk-A3UNS44U.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-V3HHYTBY.js → chunk-KLXDFFHT.js} +1 -1
- package/dist/{chunk-HOMRAZ6S.js → chunk-LGUZ52BU.js} +2 -2
- package/dist/{chunk-Q57PZJLX.js → chunk-OYZ27Q3B.js} +88 -88
- package/dist/{chunk-UFHT2KZG.js → chunk-Q5Z7FMXI.js} +2 -2
- package/dist/{chunk-R4HS2MWM.js → chunk-QBY6L77D.js} +14 -12
- package/dist/{chunk-KXJJFHSD.js → chunk-R7USRN52.js} +1 -1
- package/dist/{chunk-QW5K5DTC.js → chunk-RDKTHFQ6.js} +25 -6
- package/dist/{chunk-N76WNJ5T.js → chunk-S234PC5E.js} +1 -1
- package/dist/{chunk-ACKKHLUH.js → chunk-Z3RPQ5K4.js} +2 -2
- package/dist/cli.js +27 -25
- package/dist/{comment-ATVJOTWV.js → comment-IIKLEAEK.js} +8 -8
- package/dist/{company-BRKFROPE.js → company-CX5TZNB5.js} +11 -11
- package/dist/{config-E223SS5K.js → config-Y4FC7QKM.js} +2 -2
- package/dist/{connect-XVDQ5FTT.js → connect-GUUBX23F.js} +15 -15
- package/dist/{contact-4HOUOVD7.js → contact-OCYSFRTS.js} +8 -8
- package/dist/{contact-groups-ENA3VGGL.js → contact-groups-HWJSYRFJ.js} +85 -85
- package/dist/{contact-import-4EKVDFPV.js → contact-import-CTWSFT64.js} +10 -10
- package/dist/core-37XZS2RG.js +46 -0
- package/dist/{do-not-contact-S2WGHSQL.js → do-not-contact-6UVY3UKT.js} +29 -29
- package/dist/{doctor-OFIUGRUG.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-DD3DTXBM.js → draft-SII6E6Z6.js} +4 -4
- package/dist/{enrollment-ESCHKQ5X.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-GUAGB7TF.js → export-D32J5GRN.js} +5 -5
- package/dist/{feed-ZC4FY4BA.js → feed-HOFHCP6W.js} +6 -6
- package/dist/{group-42ZE7K3K.js → group-AMYOAGNS.js} +6 -6
- package/dist/{inbox-2YS7CTXH.js → inbox-NS2LB2WQ.js} +9 -9
- package/dist/{inboxes-5RB3BGCQ.js → inboxes-XWUZJ5PN.js} +6 -6
- package/dist/{incoming-ATZN6JJA.js → incoming-UIWRL6QS.js} +13 -13
- package/dist/{job-WD3Z3P3Q.js → job-TKGPXU26.js} +10 -10
- package/dist/{login-JQ57YHEJ.js → login-B2YWX2JP.js} +2 -2
- package/dist/mailbox-LLSGX2FF.js +406 -0
- package/dist/{message-WGS2IIDC.js → message-M4THMNRZ.js} +7 -7
- package/dist/{motion-BRVBJJJP.js → motion-2OUGYR3O.js} +147 -147
- package/dist/{network-CODIWCJQ.js → network-MFWKXTEV.js} +5 -5
- package/dist/{notification-RLVF4NLJ.js → notification-5K4TCYQA.js} +6 -6
- package/dist/{notifications-HGEHM5KW.js → notifications-2GKUJB7C.js} +6 -6
- package/dist/{post-3GH2IPO6.js → post-BHH7YKGM.js} +8 -8
- package/dist/{profile-6RFJQMIB.js → profile-GKMRRKZF.js} +15 -15
- package/dist/{recruiter-GK3UNS62.js → recruiter-J53ZSD4P.js} +17 -17
- package/dist/{sales-nav-SLS3ABF4.js → sales-nav-6I5SYTRX.js} +15 -15
- package/dist/{search-45WRT5T3.js → search-HS2YAA33.js} +17 -17
- package/dist/{setup-5QZOM2Q2.js → setup-IYVOGVC6.js} +4 -4
- package/dist/{team-WM3RKOQ2.js → team-N6ILUHAD.js} +6 -6
- package/dist/{tier-5AMLO5KE.js → tier-QWXKFESB.js} +4 -4
- package/dist/{unibox-TTCF7YVO.js → unibox-D4WIHIZX.js} +34 -34
- package/dist/{webhook-UCCCSKDO.js → webhook-PKWGZZO2.js} +18 -18
- package/package.json +2 -2
- package/dist/core-6VDDV2NM.js +0 -46
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
BinaryOutputError,
|
|
4
4
|
writeBinaryOutput
|
|
5
5
|
} from "./chunk-UWO2D4HW.js";
|
|
6
|
-
import {
|
|
7
|
-
AS_ACCOUNT,
|
|
8
|
-
BUDGET,
|
|
9
|
-
TARGET
|
|
10
|
-
} from "./chunk-Q3ZPRFUX.js";
|
|
11
6
|
import {
|
|
12
7
|
normalizeChatId,
|
|
13
8
|
resolveIdentifier,
|
|
14
9
|
resolveJobIdentifier
|
|
15
10
|
} from "./chunk-UEAX6KUB.js";
|
|
11
|
+
import {
|
|
12
|
+
AS_ACCOUNT,
|
|
13
|
+
BUDGET,
|
|
14
|
+
TARGET
|
|
15
|
+
} from "./chunk-Q3ZPRFUX.js";
|
|
16
16
|
import {
|
|
17
17
|
AttachError,
|
|
18
18
|
isAudioFile,
|
|
@@ -21,14 +21,14 @@ import {
|
|
|
21
21
|
} from "./chunk-VHNF6OZD.js";
|
|
22
22
|
import {
|
|
23
23
|
requireAccount
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-Z3RPQ5K4.js";
|
|
25
25
|
import {
|
|
26
26
|
buildPreviewOutput
|
|
27
27
|
} from "./chunk-TCUYH5GO.js";
|
|
28
28
|
import {
|
|
29
29
|
readableId,
|
|
30
30
|
readableObject
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-R7USRN52.js";
|
|
32
32
|
import {
|
|
33
33
|
renderError,
|
|
34
34
|
renderSuccess,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
createClient,
|
|
39
39
|
downloadBinary,
|
|
40
40
|
resolveEffectiveConfig
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-S234PC5E.js";
|
|
42
42
|
import {
|
|
43
43
|
READ_SINGLE_FLAGS,
|
|
44
44
|
WRITE_FLAGS,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
} from "./chunk-QLKGOIWS.js";
|
|
47
47
|
import {
|
|
48
48
|
DESCRIPTIONS
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-QBY6L77D.js";
|
|
50
50
|
import {
|
|
51
51
|
looksLikeCommandWord,
|
|
52
52
|
nearestSubcommand
|
|
@@ -153,7 +153,7 @@ var MEMBER_PROVIDER_ID_RE = /^A[CDE][A-Za-z0-9_-]{4,}$/;
|
|
|
153
153
|
async function handleSdkError(err, outOpts, out) {
|
|
154
154
|
const { CurviateError } = await import("@curviate/sdk");
|
|
155
155
|
if (err instanceof CurviateError) {
|
|
156
|
-
const { getExitCode } = await import("./exit-codes-
|
|
156
|
+
const { getExitCode } = await import("./exit-codes-ZSOLAXQO.js");
|
|
157
157
|
renderError(err, outOpts, out);
|
|
158
158
|
process.exit(getExitCode(err));
|
|
159
159
|
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
readlineSync
|
|
4
|
+
} from "./chunk-ENBIMEKS.js";
|
|
5
|
+
import {
|
|
6
|
+
defaultReadStdin
|
|
7
|
+
} from "./chunk-ZYURL5VK.js";
|
|
8
|
+
|
|
9
|
+
// src/lib/credential-resolve.ts
|
|
10
|
+
var STDIN_TTY_CUE = "Reading secret from stdin (paste + Enter): ";
|
|
11
|
+
function defaultReadSingleLine() {
|
|
12
|
+
return readlineSync("", { mask: true });
|
|
13
|
+
}
|
|
14
|
+
async function resolveSecret(params) {
|
|
15
|
+
if (params.flagValue !== void 0 && params.flagValue !== "") {
|
|
16
|
+
return params.flagValue;
|
|
17
|
+
}
|
|
18
|
+
if (params.stdinRequested) {
|
|
19
|
+
if (params.isTTY) {
|
|
20
|
+
const stdinReadAllowed = params.allowInteractiveStdinRead ?? params.allowInteractive;
|
|
21
|
+
if (stdinReadAllowed !== false) {
|
|
22
|
+
params.out.stderr.write(STDIN_TTY_CUE);
|
|
23
|
+
const reader = params.readSingleLine ?? defaultReadSingleLine;
|
|
24
|
+
const raw = await reader(STDIN_TTY_CUE);
|
|
25
|
+
const trimmed = raw.trim();
|
|
26
|
+
if (trimmed !== "") {
|
|
27
|
+
return trimmed;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
} else {
|
|
31
|
+
const reader = params.readStdin ?? defaultReadStdin;
|
|
32
|
+
const raw = await reader();
|
|
33
|
+
const trimmed = raw.trimEnd();
|
|
34
|
+
if (/[\r\n]/.test(trimmed)) {
|
|
35
|
+
params.out.stderr.write("error: stdin held more than one line. Pipe the secret alone, on one line.\n");
|
|
36
|
+
process.exit(2);
|
|
37
|
+
}
|
|
38
|
+
if (trimmed !== "") {
|
|
39
|
+
return trimmed;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
const envValue = params.envVar ? process.env[params.envVar] : void 0;
|
|
44
|
+
if (envValue !== void 0 && envValue !== "") {
|
|
45
|
+
return envValue;
|
|
46
|
+
}
|
|
47
|
+
if (!params.required) {
|
|
48
|
+
return void 0;
|
|
49
|
+
}
|
|
50
|
+
if (params.allowInteractive === false) {
|
|
51
|
+
return void 0;
|
|
52
|
+
}
|
|
53
|
+
if (params.prompt && params.prompt.isTTY) {
|
|
54
|
+
const value = await params.prompt.readline(params.prompt.promptText, { mask: true });
|
|
55
|
+
if (value) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
params.out.stderr.write(`error: ${params.failMessage ?? "missing required credential"}
|
|
60
|
+
`);
|
|
61
|
+
process.exit(2);
|
|
62
|
+
}
|
|
63
|
+
function checkCredentialConflicts(flags, out) {
|
|
64
|
+
const passwordStdin = flags["password-stdin"] ?? false;
|
|
65
|
+
const liAtStdin = flags["li-at-stdin"] ?? false;
|
|
66
|
+
if (flags.password !== void 0 && passwordStdin) {
|
|
67
|
+
failConflict(out, "--password and --password-stdin cannot both be set. Choose one source.");
|
|
68
|
+
}
|
|
69
|
+
if (flags["li-at"] !== void 0 && liAtStdin) {
|
|
70
|
+
failConflict(out, "--li-at and --li-at-stdin cannot both be set. Choose one source.");
|
|
71
|
+
}
|
|
72
|
+
if (passwordStdin && liAtStdin) {
|
|
73
|
+
failConflict(
|
|
74
|
+
out,
|
|
75
|
+
"--password-stdin and --li-at-stdin cannot both be set. stdin can feed only one secret per invocation."
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
if (liAtStdin && flags["auth-method"] === "credentials") {
|
|
79
|
+
failConflict(out, "--li-at-stdin requires --auth-method cookie (it does not apply to the credentials method).");
|
|
80
|
+
}
|
|
81
|
+
if (passwordStdin && flags["auth-method"] === "cookie") {
|
|
82
|
+
failConflict(out, "--password-stdin requires --auth-method credentials (it does not apply to the cookie method).");
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
function failConflict(out, message) {
|
|
86
|
+
out.stderr.write(`error: ${message}
|
|
87
|
+
`);
|
|
88
|
+
process.exit(2);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export {
|
|
92
|
+
resolveSecret,
|
|
93
|
+
checkCredentialConflicts
|
|
94
|
+
};
|
|
@@ -895,7 +895,7 @@ var documents_default = {
|
|
|
895
895
|
},
|
|
896
896
|
additionalProperties: false
|
|
897
897
|
},
|
|
898
|
-
"
|
|
898
|
+
"campaign create": {
|
|
899
899
|
type: "object",
|
|
900
900
|
properties: {
|
|
901
901
|
name: {
|
|
@@ -903,7 +903,7 @@ var documents_default = {
|
|
|
903
903
|
minLength: 1,
|
|
904
904
|
maxLength: 100
|
|
905
905
|
},
|
|
906
|
-
|
|
906
|
+
lead_list_ids: {
|
|
907
907
|
type: "array",
|
|
908
908
|
items: {
|
|
909
909
|
type: "string",
|
|
@@ -987,7 +987,7 @@ var documents_default = {
|
|
|
987
987
|
"prioritized"
|
|
988
988
|
]
|
|
989
989
|
},
|
|
990
|
-
|
|
990
|
+
accounts_per_lead: {
|
|
991
991
|
type: "integer",
|
|
992
992
|
minimum: 1,
|
|
993
993
|
maximum: 10
|
|
@@ -1008,7 +1008,7 @@ var documents_default = {
|
|
|
1008
1008
|
exclude: {
|
|
1009
1009
|
type: "object",
|
|
1010
1010
|
properties: {
|
|
1011
|
-
|
|
1011
|
+
other_campaigns: {
|
|
1012
1012
|
type: "boolean"
|
|
1013
1013
|
},
|
|
1014
1014
|
known_chats: {
|
|
@@ -1092,7 +1092,7 @@ var documents_default = {
|
|
|
1092
1092
|
"archived_at"
|
|
1093
1093
|
]
|
|
1094
1094
|
},
|
|
1095
|
-
"
|
|
1095
|
+
"campaign update": {
|
|
1096
1096
|
type: "object",
|
|
1097
1097
|
properties: {
|
|
1098
1098
|
name: {
|
|
@@ -1100,7 +1100,7 @@ var documents_default = {
|
|
|
1100
1100
|
minLength: 1,
|
|
1101
1101
|
maxLength: 100
|
|
1102
1102
|
},
|
|
1103
|
-
|
|
1103
|
+
lead_list_ids: {
|
|
1104
1104
|
type: "array",
|
|
1105
1105
|
items: {
|
|
1106
1106
|
type: "string",
|
|
@@ -1184,7 +1184,7 @@ var documents_default = {
|
|
|
1184
1184
|
"prioritized"
|
|
1185
1185
|
]
|
|
1186
1186
|
},
|
|
1187
|
-
|
|
1187
|
+
accounts_per_lead: {
|
|
1188
1188
|
type: "integer",
|
|
1189
1189
|
minimum: 1,
|
|
1190
1190
|
maximum: 10
|
|
@@ -1205,7 +1205,7 @@ var documents_default = {
|
|
|
1205
1205
|
exclude: {
|
|
1206
1206
|
type: "object",
|
|
1207
1207
|
properties: {
|
|
1208
|
-
|
|
1208
|
+
other_campaigns: {
|
|
1209
1209
|
type: "boolean"
|
|
1210
1210
|
},
|
|
1211
1211
|
known_chats: {
|
|
@@ -1298,7 +1298,7 @@ var ANNOTATIONS = /* @__PURE__ */ new Set(["description", "title", "default", "d
|
|
|
1298
1298
|
function documentSchema(key) {
|
|
1299
1299
|
const s = documents_default[key];
|
|
1300
1300
|
if (!s) throw new Error(`no document schema for ${key}`);
|
|
1301
|
-
return key === "
|
|
1301
|
+
return key === "campaign create" || key === "campaign update" ? withoutScheduleTimezone(s) : s;
|
|
1302
1302
|
}
|
|
1303
1303
|
function withoutScheduleTimezone(s) {
|
|
1304
1304
|
const copy = structuredClone(s);
|
|
@@ -275,7 +275,7 @@ function slimAccountGet(data) {
|
|
|
275
275
|
// Curviate's inference of how LinkedIn sees the account: {state, factor, reasons, until}; absent on an Account you can see but not operate
|
|
276
276
|
...d["health"] !== void 0 ? { health: d["health"] } : {},
|
|
277
277
|
// absent without Automate: shown only when the API sends them
|
|
278
|
-
...d["
|
|
278
|
+
...d["save_connections_as_leads"] !== void 0 ? { save_connections_as_leads: d["save_connections_as_leads"], save_connections_paused_reason: d["save_connections_paused_reason"] ?? null } : {}
|
|
279
279
|
};
|
|
280
280
|
}
|
|
281
281
|
function slimJob(data) {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
createClient,
|
|
8
8
|
resolveEffectiveConfig
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-S234PC5E.js";
|
|
10
10
|
|
|
11
11
|
// src/lib/root-command.ts
|
|
12
12
|
var outputOpts = (f) => ({
|
|
@@ -35,7 +35,7 @@ async function rootClient(f) {
|
|
|
35
35
|
async function fail(err, f) {
|
|
36
36
|
const { CurviateError } = await import("@curviate/sdk");
|
|
37
37
|
if (err instanceof CurviateError) {
|
|
38
|
-
const { getExitCode } = await import("./exit-codes-
|
|
38
|
+
const { getExitCode } = await import("./exit-codes-ZSOLAXQO.js");
|
|
39
39
|
renderError(err, outputOpts(f), process);
|
|
40
40
|
process.exit(getExitCode(err));
|
|
41
41
|
}
|