@curviate/cli 0.21.0 → 0.22.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 +190 -116
- package/README.md +18 -18
- package/dist/{account-A3FOYUKC.js → account-QRGWUQXF.js} +25 -25
- package/dist/{chunk-EEMJDJ4W.js → chunk-H6XD3F66.js} +7 -0
- package/dist/{chunk-LMVDURUZ.js → chunk-JA3NNST6.js} +35 -4
- package/dist/{chunk-M6UDWFHX.js → chunk-PMRQXBCP.js} +1 -1
- package/dist/{chunk-ROULHEFW.js → chunk-RFUO2G3M.js} +4 -3
- package/dist/{chunk-Q7XG2VIF.js → chunk-T5LPGAGJ.js} +6 -6
- package/dist/cli.js +58 -26
- package/dist/{comment-RPLZHFJQ.js → comment-MCGXFMN4.js} +3 -3
- package/dist/{company-DFJK2RHM.js → company-WDDLWP7E.js} +12 -12
- package/dist/{connect-ELSSMOIC.js → connect-5OROSY5C.js} +12 -12
- package/dist/{exit-codes-63JE5GM5.js → exit-codes-KAVZN5BQ.js} +1 -1
- package/dist/{feed-23Z7OQNL.js → feed-SFVYEAYP.js} +3 -3
- package/dist/{group-52MP24W3.js → group-HSZY2IJU.js} +3 -3
- package/dist/{inbox-G6KNWWLI.js → inbox-L6JBGZIB.js} +4 -4
- package/dist/{inboxes-NTTYCQPM.js → inboxes-UIO74C5Q.js} +5 -5
- package/dist/{job-WOPIAHOR.js → job-75ML7R7I.js} +4 -4
- package/dist/{message-KJXY5RCD.js → message-DAQHRBSJ.js} +2 -2
- package/dist/{notification-MNEABNVW.js → notification-DYJN4ZHN.js} +3 -3
- package/dist/{post-A7YZWBFG.js → post-RGDOCGC4.js} +5 -5
- package/dist/{profile-XOMDIYSY.js → profile-TJS2YAZD.js} +8 -8
- package/dist/{recruiter-CCLG4PM4.js → recruiter-NSM33IEK.js} +10 -10
- package/dist/{sales-nav-5ZRE2UAQ.js → sales-nav-5O7FR57S.js} +6 -6
- package/dist/{search-NDESJC3Y.js → search-TDSLK2MB.js} +13 -13
- package/dist/{webhook-TNZF3FMN.js → webhook-7ESDSIRU.js} +9 -9
- package/package.json +4 -3
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
slimProfile,
|
|
13
13
|
slimProfileMe
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-RFUO2G3M.js";
|
|
15
15
|
import {
|
|
16
16
|
pageDelayFromFlags,
|
|
17
17
|
streamAll
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-H6XD3F66.js";
|
|
19
19
|
import {
|
|
20
20
|
resolveIdentifier
|
|
21
21
|
} from "./chunk-DMQZEPQE.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
renderSuccess,
|
|
29
29
|
renderUnexpectedError,
|
|
30
30
|
resolveEffectiveConfig
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-JA3NNST6.js";
|
|
32
32
|
import {
|
|
33
33
|
GLOBAL_FLAGS,
|
|
34
34
|
READ_SINGLE_FLAGS,
|
|
@@ -191,7 +191,7 @@ async function runProfileMe(client, flags, out) {
|
|
|
191
191
|
} catch (err) {
|
|
192
192
|
const { CurviateError } = await import("@curviate/sdk");
|
|
193
193
|
if (err instanceof CurviateError) {
|
|
194
|
-
const { getExitCode } = await import("./exit-codes-
|
|
194
|
+
const { getExitCode } = await import("./exit-codes-KAVZN5BQ.js");
|
|
195
195
|
renderError(err, outOpts, out);
|
|
196
196
|
process.exit(getExitCode(err.code));
|
|
197
197
|
}
|
|
@@ -217,7 +217,7 @@ async function runProfileMe(client, flags, out) {
|
|
|
217
217
|
} catch (err) {
|
|
218
218
|
const { CurviateError } = await import("@curviate/sdk");
|
|
219
219
|
if (err instanceof CurviateError) {
|
|
220
|
-
const { getExitCode } = await import("./exit-codes-
|
|
220
|
+
const { getExitCode } = await import("./exit-codes-KAVZN5BQ.js");
|
|
221
221
|
renderError(err, outOpts, out);
|
|
222
222
|
process.exit(getExitCode(err.code));
|
|
223
223
|
}
|
|
@@ -343,7 +343,7 @@ async function runProfileGet(client, flags, out) {
|
|
|
343
343
|
} catch (err) {
|
|
344
344
|
const { CurviateError } = await import("@curviate/sdk");
|
|
345
345
|
if (err instanceof CurviateError) {
|
|
346
|
-
const { getExitCode } = await import("./exit-codes-
|
|
346
|
+
const { getExitCode } = await import("./exit-codes-KAVZN5BQ.js");
|
|
347
347
|
renderError(err, outOpts, out);
|
|
348
348
|
process.exit(getExitCode(err.code));
|
|
349
349
|
}
|
|
@@ -380,7 +380,7 @@ async function runProfileRelations(client, flags, out) {
|
|
|
380
380
|
} catch (err) {
|
|
381
381
|
const { CurviateError } = await import("@curviate/sdk");
|
|
382
382
|
if (err instanceof CurviateError) {
|
|
383
|
-
const { getExitCode } = await import("./exit-codes-
|
|
383
|
+
const { getExitCode } = await import("./exit-codes-KAVZN5BQ.js");
|
|
384
384
|
renderError(err, outOpts, out);
|
|
385
385
|
process.exit(getExitCode(err.code));
|
|
386
386
|
}
|
|
@@ -420,7 +420,7 @@ async function runProfileEndorse(client, flags, out) {
|
|
|
420
420
|
async function handleSdkError(err, outOpts, out) {
|
|
421
421
|
const { CurviateError } = await import("@curviate/sdk");
|
|
422
422
|
if (err instanceof CurviateError) {
|
|
423
|
-
const { getExitCode } = await import("./exit-codes-
|
|
423
|
+
const { getExitCode } = await import("./exit-codes-KAVZN5BQ.js");
|
|
424
424
|
renderError(err, outOpts, out);
|
|
425
425
|
process.exit(getExitCode(err.code));
|
|
426
426
|
}
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
} from "./chunk-BGZW6B7G.js";
|
|
12
12
|
import {
|
|
13
13
|
slimJob
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-RFUO2G3M.js";
|
|
15
15
|
import {
|
|
16
16
|
pageDelayFromFlags,
|
|
17
17
|
streamAll
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-H6XD3F66.js";
|
|
19
19
|
import {
|
|
20
20
|
BinaryOutputError,
|
|
21
21
|
writeBinaryOutput
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
renderSuccess,
|
|
34
34
|
renderUnexpectedError,
|
|
35
35
|
resolveEffectiveConfig
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-JA3NNST6.js";
|
|
37
37
|
import {
|
|
38
38
|
GLOBAL_FLAGS,
|
|
39
39
|
READ_SINGLE_FLAGS,
|
|
@@ -81,7 +81,7 @@ function normalizeAttachPaths(attach) {
|
|
|
81
81
|
async function handleSdkError(err, outOpts, out) {
|
|
82
82
|
const { CurviateError } = await import("@curviate/sdk");
|
|
83
83
|
if (err instanceof CurviateError) {
|
|
84
|
-
const { getExitCode } = await import("./exit-codes-
|
|
84
|
+
const { getExitCode } = await import("./exit-codes-KAVZN5BQ.js");
|
|
85
85
|
renderError(err, outOpts, out);
|
|
86
86
|
process.exit(getExitCode(err.code));
|
|
87
87
|
}
|
|
@@ -897,7 +897,7 @@ var recruiterMessageNewCommand = defineCommand({
|
|
|
897
897
|
...WRITE_FLAGS,
|
|
898
898
|
to: {
|
|
899
899
|
type: "string",
|
|
900
|
-
description: "Recipient's LinkedIn provider ID (AE
|
|
900
|
+
description: "Recipient's LinkedIn provider ID (AE... format, e.g. from a Recruiter search result or profile). Not resolved from a URL/slug. Pass the provider ID directly.",
|
|
901
901
|
required: true
|
|
902
902
|
},
|
|
903
903
|
subject: { type: "string", description: "Message subject line (required for Recruiter InMail).", required: true },
|
|
@@ -932,7 +932,7 @@ var recruiterMessageCommand = defineCommand({
|
|
|
932
932
|
new: recruiterMessageNewCommand
|
|
933
933
|
},
|
|
934
934
|
async run() {
|
|
935
|
-
process.stderr.write('Usage: curviate recruiter message new --to <id> "<text>" [--attach <file
|
|
935
|
+
process.stderr.write('Usage: curviate recruiter message new --to <id> "<text>" [--attach <file>...]\n');
|
|
936
936
|
}
|
|
937
937
|
});
|
|
938
938
|
var recruiterProfileCommand = defineCommand({
|
|
@@ -1133,7 +1133,7 @@ var recruiterProjectCommand = defineCommand({
|
|
|
1133
1133
|
const flags = args;
|
|
1134
1134
|
if (!flags.projectId) {
|
|
1135
1135
|
process.stderr.write(
|
|
1136
|
-
"Usage: curviate recruiter project <project_id>\n curviate recruiter project update <project_id> [flags
|
|
1136
|
+
"Usage: curviate recruiter project <project_id>\n curviate recruiter project update <project_id> [flags...]\n"
|
|
1137
1137
|
);
|
|
1138
1138
|
return;
|
|
1139
1139
|
}
|
|
@@ -1389,7 +1389,7 @@ var recruiterJobCommand = defineCommand({
|
|
|
1389
1389
|
},
|
|
1390
1390
|
async run() {
|
|
1391
1391
|
process.stderr.write(
|
|
1392
|
-
"Usage: curviate recruiter job create [flags
|
|
1392
|
+
"Usage: curviate recruiter job create [flags...]\n curviate recruiter job publish <project_id> <job_id> --mode <FREE|PROMOTED|PROMOTED_PLUS>\n curviate recruiter job close <project_id> <job_id>\n curviate recruiter job get <url|id>\n"
|
|
1393
1393
|
);
|
|
1394
1394
|
}
|
|
1395
1395
|
});
|
|
@@ -1513,7 +1513,7 @@ var recruiterProjectJobCommand = defineCommand({
|
|
|
1513
1513
|
const flags = args;
|
|
1514
1514
|
if (!flags.projectId) {
|
|
1515
1515
|
process.stderr.write(
|
|
1516
|
-
"Usage: curviate recruiter project-job get <project_id>\n curviate recruiter project-job create <project_id> [flags
|
|
1516
|
+
"Usage: curviate recruiter project-job get <project_id>\n curviate recruiter project-job create <project_id> [flags...]\n curviate recruiter project-job budget <project_id> <job_id>\n curviate recruiter project-job update <project_id> <job_id> [flags...]\n"
|
|
1517
1517
|
);
|
|
1518
1518
|
return;
|
|
1519
1519
|
}
|
|
@@ -1648,7 +1648,7 @@ var recruiterCommand = defineCommand({
|
|
|
1648
1648
|
},
|
|
1649
1649
|
async run() {
|
|
1650
1650
|
process.stderr.write(
|
|
1651
|
-
'Usage: curviate recruiter message new --to <id> "<text>"\n curviate recruiter profile <identifier>\n curviate recruiter search people [--keywords <k>]\n curviate recruiter search parameters --source <s> --type <t>\n curviate recruiter search <url>\n curviate recruiter projects\n curviate recruiter project <project_id>\n curviate recruiter project update <project_id> [flags
|
|
1651
|
+
'Usage: curviate recruiter message new --to <id> "<text>"\n curviate recruiter profile <identifier>\n curviate recruiter search people [--keywords <k>]\n curviate recruiter search parameters --source <s> --type <t>\n curviate recruiter search <url>\n curviate recruiter projects\n curviate recruiter project <project_id>\n curviate recruiter project update <project_id> [flags...]\n curviate recruiter pipeline <project_id>\n curviate recruiter project-job get <project_id>\n curviate recruiter project-job create <project_id> [flags...]\n curviate recruiter project-job budget <project_id> <job_id>\n curviate recruiter project-job update <project_id> <job_id> [flags...]\n curviate recruiter talent-search <project_id> --channel-id <id>\n curviate recruiter save-candidate <project_id> --stage-id <id> --candidate-id <id>\n curviate recruiter applicants <project_id> --channel-id <id>\n curviate recruiter jobs\n curviate recruiter job create [flags...]\n curviate recruiter job publish <project_id> <job_id> --mode <FREE|PROMOTED|PROMOTED_PLUS>\n curviate recruiter job close <project_id> <job_id>\n curviate recruiter job get <url|id>\n curviate recruiter applicant <project_id> <applicant_id>\n curviate recruiter applicant resume <project_id> <applicant_id> -o <file>\n'
|
|
1652
1652
|
);
|
|
1653
1653
|
}
|
|
1654
1654
|
});
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
pageDelayFromFlags,
|
|
15
15
|
streamAll
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-H6XD3F66.js";
|
|
17
17
|
import {
|
|
18
18
|
resolveIdentifier
|
|
19
19
|
} from "./chunk-DMQZEPQE.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
renderSuccess,
|
|
27
27
|
renderUnexpectedError,
|
|
28
28
|
resolveEffectiveConfig
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-JA3NNST6.js";
|
|
30
30
|
import {
|
|
31
31
|
GLOBAL_FLAGS,
|
|
32
32
|
READ_SINGLE_FLAGS,
|
|
@@ -69,7 +69,7 @@ function normalizeAttachPaths(attach) {
|
|
|
69
69
|
async function handleSdkError(err, outOpts, out) {
|
|
70
70
|
const { CurviateError } = await import("@curviate/sdk");
|
|
71
71
|
if (err instanceof CurviateError) {
|
|
72
|
-
const { getExitCode } = await import("./exit-codes-
|
|
72
|
+
const { getExitCode } = await import("./exit-codes-KAVZN5BQ.js");
|
|
73
73
|
renderError(err, outOpts, out);
|
|
74
74
|
process.exit(getExitCode(err.code));
|
|
75
75
|
}
|
|
@@ -489,7 +489,7 @@ var salesNavMessageNewCommand = defineCommand({
|
|
|
489
489
|
...WRITE_FLAGS,
|
|
490
490
|
to: {
|
|
491
491
|
type: "string",
|
|
492
|
-
description: "Recipient's LinkedIn provider ID (ACw
|
|
492
|
+
description: "Recipient's LinkedIn provider ID (ACw... format, e.g. from a Sales Navigator search result or profile). Not resolved from a URL/slug. Pass the provider ID directly.",
|
|
493
493
|
required: true
|
|
494
494
|
},
|
|
495
495
|
subject: { type: "string", description: "Message subject line (required for Sales Navigator messaging).", required: true },
|
|
@@ -523,7 +523,7 @@ var salesNavMessageCommand = defineCommand({
|
|
|
523
523
|
new: salesNavMessageNewCommand
|
|
524
524
|
},
|
|
525
525
|
async run() {
|
|
526
|
-
process.stderr.write('Usage: curviate sales-nav message new --to <id> "<text>" [--attach <file
|
|
526
|
+
process.stderr.write('Usage: curviate sales-nav message new --to <id> "<text>" [--attach <file>...]\n');
|
|
527
527
|
}
|
|
528
528
|
});
|
|
529
529
|
var salesNavSearchPeopleCommand = defineCommand({
|
|
@@ -683,7 +683,7 @@ var salesNavSaveLeadCommand = defineCommand({
|
|
|
683
683
|
args: {
|
|
684
684
|
// Write command: WRITE_FLAGS omits pagination/projection flags
|
|
685
685
|
...WRITE_FLAGS,
|
|
686
|
-
userId: { type: "positional", description: "Sales Navigator member ID (ACw
|
|
686
|
+
userId: { type: "positional", description: "Sales Navigator member ID (ACw... format)." },
|
|
687
687
|
list: { type: "string", description: "Lead list ID to save the member into (required; the v2 save always targets a specific list).", required: true }
|
|
688
688
|
},
|
|
689
689
|
async run({ args }) {
|
|
@@ -14,18 +14,18 @@ import {
|
|
|
14
14
|
slimSearchPeopleItem,
|
|
15
15
|
slimSearchPosts,
|
|
16
16
|
slimSearchPostsItem
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-RFUO2G3M.js";
|
|
18
18
|
import {
|
|
19
19
|
pageDelayFromFlags,
|
|
20
20
|
streamAll
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-H6XD3F66.js";
|
|
22
22
|
import {
|
|
23
23
|
createClient,
|
|
24
24
|
renderError,
|
|
25
25
|
renderSuccess,
|
|
26
26
|
renderUnexpectedError,
|
|
27
27
|
resolveEffectiveConfig
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-JA3NNST6.js";
|
|
29
29
|
import {
|
|
30
30
|
GLOBAL_FLAGS
|
|
31
31
|
} from "./chunk-CUTMZWL6.js";
|
|
@@ -222,7 +222,7 @@ async function runSearchPeople(client, flags, out, readers = DEFAULT_FILTER_READ
|
|
|
222
222
|
} catch (err) {
|
|
223
223
|
const { CurviateError } = await import("@curviate/sdk");
|
|
224
224
|
if (err instanceof CurviateError) {
|
|
225
|
-
const { getExitCode } = await import("./exit-codes-
|
|
225
|
+
const { getExitCode } = await import("./exit-codes-KAVZN5BQ.js");
|
|
226
226
|
renderError(err, outOpts, out);
|
|
227
227
|
process.exit(getExitCode(err.code));
|
|
228
228
|
}
|
|
@@ -263,7 +263,7 @@ async function runSearchCompanies(client, flags, out, readers = DEFAULT_FILTER_R
|
|
|
263
263
|
} catch (err) {
|
|
264
264
|
const { CurviateError } = await import("@curviate/sdk");
|
|
265
265
|
if (err instanceof CurviateError) {
|
|
266
|
-
const { getExitCode } = await import("./exit-codes-
|
|
266
|
+
const { getExitCode } = await import("./exit-codes-KAVZN5BQ.js");
|
|
267
267
|
renderError(err, outOpts, out);
|
|
268
268
|
process.exit(getExitCode(err.code));
|
|
269
269
|
}
|
|
@@ -304,7 +304,7 @@ async function runSearchPosts(client, flags, out, readers = DEFAULT_FILTER_READE
|
|
|
304
304
|
} catch (err) {
|
|
305
305
|
const { CurviateError } = await import("@curviate/sdk");
|
|
306
306
|
if (err instanceof CurviateError) {
|
|
307
|
-
const { getExitCode } = await import("./exit-codes-
|
|
307
|
+
const { getExitCode } = await import("./exit-codes-KAVZN5BQ.js");
|
|
308
308
|
renderError(err, outOpts, out);
|
|
309
309
|
process.exit(getExitCode(err.code));
|
|
310
310
|
}
|
|
@@ -345,7 +345,7 @@ async function runSearchJobs(client, flags, out, readers = DEFAULT_FILTER_READER
|
|
|
345
345
|
} catch (err) {
|
|
346
346
|
const { CurviateError } = await import("@curviate/sdk");
|
|
347
347
|
if (err instanceof CurviateError) {
|
|
348
|
-
const { getExitCode } = await import("./exit-codes-
|
|
348
|
+
const { getExitCode } = await import("./exit-codes-KAVZN5BQ.js");
|
|
349
349
|
renderError(err, outOpts, out);
|
|
350
350
|
process.exit(getExitCode(err.code));
|
|
351
351
|
}
|
|
@@ -378,7 +378,7 @@ async function runSearchParameters(client, flags, out) {
|
|
|
378
378
|
} catch (err) {
|
|
379
379
|
const { CurviateError } = await import("@curviate/sdk");
|
|
380
380
|
if (err instanceof CurviateError) {
|
|
381
|
-
const { getExitCode } = await import("./exit-codes-
|
|
381
|
+
const { getExitCode } = await import("./exit-codes-KAVZN5BQ.js");
|
|
382
382
|
renderError(err, outOpts, out);
|
|
383
383
|
process.exit(getExitCode(err.code));
|
|
384
384
|
}
|
|
@@ -418,7 +418,7 @@ async function runSearchGroups(client, flags, out) {
|
|
|
418
418
|
} catch (err) {
|
|
419
419
|
const { CurviateError } = await import("@curviate/sdk");
|
|
420
420
|
if (err instanceof CurviateError) {
|
|
421
|
-
const { getExitCode } = await import("./exit-codes-
|
|
421
|
+
const { getExitCode } = await import("./exit-codes-KAVZN5BQ.js");
|
|
422
422
|
renderError(err, outOpts, out);
|
|
423
423
|
process.exit(getExitCode(err.code));
|
|
424
424
|
}
|
|
@@ -460,7 +460,7 @@ async function runSearchServices(client, flags, out) {
|
|
|
460
460
|
} catch (err) {
|
|
461
461
|
const { CurviateError } = await import("@curviate/sdk");
|
|
462
462
|
if (err instanceof CurviateError) {
|
|
463
|
-
const { getExitCode } = await import("./exit-codes-
|
|
463
|
+
const { getExitCode } = await import("./exit-codes-KAVZN5BQ.js");
|
|
464
464
|
renderError(err, outOpts, out);
|
|
465
465
|
process.exit(getExitCode(err.code));
|
|
466
466
|
}
|
|
@@ -487,7 +487,7 @@ async function runSearchServiceParameters(client, flags, out) {
|
|
|
487
487
|
} catch (err) {
|
|
488
488
|
const { CurviateError } = await import("@curviate/sdk");
|
|
489
489
|
if (err instanceof CurviateError) {
|
|
490
|
-
const { getExitCode } = await import("./exit-codes-
|
|
490
|
+
const { getExitCode } = await import("./exit-codes-KAVZN5BQ.js");
|
|
491
491
|
renderError(err, outOpts, out);
|
|
492
492
|
process.exit(getExitCode(err.code));
|
|
493
493
|
}
|
|
@@ -524,7 +524,7 @@ async function runSearchFromUrl(client, flags, out) {
|
|
|
524
524
|
} catch (err) {
|
|
525
525
|
const { CurviateError } = await import("@curviate/sdk");
|
|
526
526
|
if (err instanceof CurviateError) {
|
|
527
|
-
const { getExitCode } = await import("./exit-codes-
|
|
527
|
+
const { getExitCode } = await import("./exit-codes-KAVZN5BQ.js");
|
|
528
528
|
renderError(err, outOpts, out);
|
|
529
529
|
process.exit(getExitCode(err.code));
|
|
530
530
|
}
|
|
@@ -643,7 +643,7 @@ var searchJobsCommand = defineCommand({
|
|
|
643
643
|
...GLOBAL_FLAGS,
|
|
644
644
|
keywords: { type: "string", description: "Full-text keyword search." },
|
|
645
645
|
...FILTER_FLAGS,
|
|
646
|
-
// On jobs, --location maps to the geo region filter (not a location array
|
|
646
|
+
// On jobs, --location maps to the geo region filter (not a location array, different API shape for jobs vs people)
|
|
647
647
|
location: { type: "string", description: "geo region id (single id; resolve via search parameters --type LOCATION); maps to region filter" },
|
|
648
648
|
industry: { type: "string", description: "Industry ids (comma-separated)." },
|
|
649
649
|
seniority: { type: "string", description: "seniority level, closed enum: executive|director|mid_senior|associate|entry|intern (comma-separated)" },
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
pageDelayFromFlags,
|
|
4
4
|
streamAll
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-H6XD3F66.js";
|
|
6
6
|
import {
|
|
7
7
|
buildPreviewOutput
|
|
8
8
|
} from "./chunk-R3VLWLVV.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
renderSuccess,
|
|
13
13
|
renderUnexpectedError,
|
|
14
14
|
resolveEffectiveConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JA3NNST6.js";
|
|
16
16
|
import {
|
|
17
17
|
GLOBAL_FLAGS
|
|
18
18
|
} from "./chunk-CUTMZWL6.js";
|
|
@@ -52,7 +52,7 @@ function resolveOutputOpts(flags) {
|
|
|
52
52
|
async function handleError(err, outOpts, out) {
|
|
53
53
|
const { CurviateError } = await import("@curviate/sdk");
|
|
54
54
|
if (err instanceof CurviateError) {
|
|
55
|
-
const { getExitCode } = await import("./exit-codes-
|
|
55
|
+
const { getExitCode } = await import("./exit-codes-KAVZN5BQ.js");
|
|
56
56
|
renderError(err, outOpts, out);
|
|
57
57
|
process.exit(getExitCode(err.code));
|
|
58
58
|
}
|
|
@@ -69,7 +69,7 @@ async function runWebhookCreate(client, flags, out) {
|
|
|
69
69
|
process.exit(2);
|
|
70
70
|
}
|
|
71
71
|
if (!flags["account-ids"]) {
|
|
72
|
-
out.stderr.write("error: --account-ids is required (comma-separated list of acc_
|
|
72
|
+
out.stderr.write("error: --account-ids is required (comma-separated list of acc_... ids).\n");
|
|
73
73
|
process.exit(2);
|
|
74
74
|
}
|
|
75
75
|
const accountIds = flags["account-ids"].split(",").map((s) => s.trim()).filter(Boolean);
|
|
@@ -273,7 +273,7 @@ var webhookCreateCommand = defineCommand({
|
|
|
273
273
|
source: { type: "string", description: "Event source: messaging | user | account_status.", required: true },
|
|
274
274
|
"request-url": { type: "string", description: "HTTPS URL to receive webhook deliveries.", required: true },
|
|
275
275
|
"account-ids": { type: "string", description: "Comma-separated account ids to target (required).", required: true },
|
|
276
|
-
name: { type: "string", description: "Human-readable name (1
|
|
276
|
+
name: { type: "string", description: "Human-readable name (1-100 chars)." },
|
|
277
277
|
format: { type: "string", description: "Delivery encoding: json | form (default: json)." },
|
|
278
278
|
enabled: { type: "boolean", description: "Create as enabled (default: true).", default: true },
|
|
279
279
|
events: { type: "string", description: "Comma-separated event names to subscribe to." },
|
|
@@ -340,7 +340,7 @@ var webhookGetCommand = defineCommand({
|
|
|
340
340
|
meta: { name: "get", description: "Get a single webhook owned by the calling tenant." },
|
|
341
341
|
args: {
|
|
342
342
|
...GLOBAL_FLAGS,
|
|
343
|
-
id: { type: "positional", description: "Webhook id (wh_
|
|
343
|
+
id: { type: "positional", description: "Webhook id (wh_...)." }
|
|
344
344
|
},
|
|
345
345
|
async run({ args }) {
|
|
346
346
|
const flags = args;
|
|
@@ -363,7 +363,7 @@ var webhookUpdateCommand = defineCommand({
|
|
|
363
363
|
meta: { name: "update", description: "Update a webhook in place (source is immutable)." },
|
|
364
364
|
args: {
|
|
365
365
|
...GLOBAL_FLAGS,
|
|
366
|
-
id: { type: "positional", description: "Webhook id (wh_
|
|
366
|
+
id: { type: "positional", description: "Webhook id (wh_...)." },
|
|
367
367
|
"request-url": { type: "string", description: "Replace the delivery URL." },
|
|
368
368
|
name: { type: "string", description: "Replace the name (or clear with empty string)." },
|
|
369
369
|
enabled: { type: "boolean", description: "Enable or disable the webhook." },
|
|
@@ -393,7 +393,7 @@ var webhookDeleteCommand = defineCommand({
|
|
|
393
393
|
meta: { name: "delete", description: "Permanently remove a webhook subscription." },
|
|
394
394
|
args: {
|
|
395
395
|
...GLOBAL_FLAGS,
|
|
396
|
-
id: { type: "positional", description: "Webhook id (wh_
|
|
396
|
+
id: { type: "positional", description: "Webhook id (wh_...)." }
|
|
397
397
|
},
|
|
398
398
|
async run({ args }) {
|
|
399
399
|
const flags = args;
|
|
@@ -423,7 +423,7 @@ var webhookVerifyCommand = defineCommand({
|
|
|
423
423
|
},
|
|
424
424
|
header: {
|
|
425
425
|
type: "string",
|
|
426
|
-
description: "The full Curviate-Signature header value from the delivery (t
|
|
426
|
+
description: "The full Curviate-Signature header value from the delivery (t=...,v1=...).",
|
|
427
427
|
required: true
|
|
428
428
|
},
|
|
429
429
|
body: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@curviate/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Official command-line interface for the Curviate API.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,18 +30,19 @@
|
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "tsup",
|
|
33
|
-
"prepack": "node scripts/check-clean.mjs && tsup && node scripts/check-clean.mjs --dist",
|
|
33
|
+
"prepack": "node scripts/check-clean.mjs && node scripts/check-copy.mjs && tsup && node scripts/check-clean.mjs --dist",
|
|
34
34
|
"test": "vitest run",
|
|
35
35
|
"test:watch": "vitest",
|
|
36
36
|
"typecheck": "tsc --noEmit",
|
|
37
37
|
"lint": "eslint src test",
|
|
38
38
|
"check:clean": "node scripts/check-clean.mjs",
|
|
39
39
|
"check:clean:dist": "node scripts/check-clean.mjs --dist",
|
|
40
|
+
"check:copy": "node scripts/check-copy.mjs",
|
|
40
41
|
"verify:dist": "pnpm build && node scripts/verify-dist.mjs",
|
|
41
42
|
"clean": "rm -rf dist *.tsbuildinfo"
|
|
42
43
|
},
|
|
43
44
|
"dependencies": {
|
|
44
|
-
"@curviate/sdk": "^0.
|
|
45
|
+
"@curviate/sdk": "^0.20.0",
|
|
45
46
|
"citty": "^0.1.6",
|
|
46
47
|
"open": "^10.1.0"
|
|
47
48
|
},
|