@curviate/cli 0.48.0 → 0.50.0-next.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 +72 -0
- package/README.md +47 -6
- package/dist/{account-WKQHMM7P.js → account-KGCGUYKF.js} +668 -116
- package/dist/analytics-HRAD4ABO.js +27 -0
- package/dist/beta-consent-364JI6IL.js +81 -0
- package/dist/billing-3SSVRS2Y.js +124 -0
- package/dist/{chunk-Q63IIPL2.js → chunk-25MO7BYN.js} +4 -4
- package/dist/{chunk-76SWLAZ6.js → chunk-2W4RN5ON.js} +59 -1
- package/dist/chunk-5S3MJVI5.js +22 -0
- package/dist/chunk-67S4JHZZ.js +339 -0
- package/dist/chunk-73DJ3KNE.js +54 -0
- package/dist/chunk-CQGDMARG.js +525 -0
- package/dist/{chunk-Y7K4UBFC.js → chunk-DOHBOYXN.js} +1 -1
- package/dist/{chunk-TSOIZBBU.js → chunk-DSGKYZDK.js} +1 -1
- package/dist/{chunk-YLSJ4HKU.js → chunk-ENBIMEKS.js} +26 -1
- package/dist/{chunk-LCGXJGPB.js → chunk-GHMRPX5H.js} +7 -1
- package/dist/chunk-GOICALYQ.js +28 -0
- package/dist/chunk-L4CIJT6F.js +144 -0
- package/dist/{chunk-PQWDDSV7.js → chunk-L7JH3W56.js} +1 -1
- package/dist/{chunk-YFXLXION.js → chunk-OE6YFYUM.js} +85 -10
- package/dist/chunk-PPGKQJKU.js +38 -0
- package/dist/{chunk-MKGVNDMJ.js → chunk-QM57YDJE.js} +13 -201
- package/dist/{chunk-CVMSQ3OF.js → chunk-RYWWSZUH.js} +17 -3
- package/dist/chunk-T6GBS5SS.js +58 -0
- package/dist/{chunk-AYKKXGTR.js → chunk-TE3WBPW6.js} +392 -14
- package/dist/chunk-UL53T4O6.js +52 -0
- package/dist/chunk-UWQPX4AE.js +20 -0
- package/dist/{chunk-OHXYFICP.js → chunk-YXVF5UST.js} +77 -4
- package/dist/cli.js +35 -17
- package/dist/{comment-7IQ6ZOJF.js → comment-5JKGNYOY.js} +90 -11
- package/dist/{company-RD7RDGSA.js → company-TXST2VXW.js} +65 -15
- package/dist/{config-EYBNYRGK.js → config-TVIQUVNK.js} +53 -4
- package/dist/{connect-HVXT67A6.js → connect-RBL6U4KV.js} +63 -18
- package/dist/contact-YAHC5QFX.js +32 -0
- package/dist/contact-groups-DKOIBC57.js +399 -0
- package/dist/contact-import-ITSJQV7K.js +336 -0
- package/dist/core-PWMJPPRG.js +46 -0
- package/dist/do-not-contact-WDYIBWYA.js +200 -0
- package/dist/{doctor-HUXQERLQ.js → doctor-F7JLPTED.js} +65 -11
- package/dist/{document-AUUCGST2.js → document-BHYAUJ6F.js} +1 -1
- package/dist/{draft-DFO22K6Q.js → draft-TDJJUXLH.js} +60 -14
- package/dist/enrollment-Q6UOKHPY.js +484 -0
- package/dist/{examples-64YT5V5K.js → examples-DQSVIIXZ.js} +2 -2
- package/dist/{exit-codes-AW6KHDDN.js → exit-codes-7DBETBDT.js} +1 -1
- package/dist/export-HIJSCJS6.js +96 -0
- package/dist/{feed-JWP6ANPI.js → feed-W56ZTA4Z.js} +13 -10
- package/dist/{group-SIQFJEZV.js → group-AUALYK5H.js} +18 -10
- package/dist/{inbox-MMIMCA5O.js → inbox-HLZR2ZPV.js} +31 -12
- package/dist/{inboxes-RND3D4C7.js → inboxes-IZTRD6FE.js} +14 -10
- package/dist/incoming-ULB2RNV4.js +218 -0
- package/dist/{job-ACFKBLFK.js → job-55IKS6LP.js} +65 -13
- package/dist/{login-ZOB5KVKQ.js → login-DPZ6CXNO.js} +13 -4
- package/dist/{message-OFK6UVXR.js → message-J44YKRDS.js} +9 -7
- package/dist/motion-SQI5F2EK.js +868 -0
- package/dist/network-K4QD7APQ.js +235 -0
- package/dist/{notification-KKGAZU7M.js → notification-SEDXZHXO.js} +38 -11
- package/dist/notifications-HGIBRUNQ.js +231 -0
- package/dist/{post-A5SBCFB2.js → post-L467SKIG.js} +92 -12
- package/dist/{profile-4SOOQZ4K.js → profile-A2N6RMR2.js} +79 -23
- package/dist/{recruiter-YN73STDP.js → recruiter-AR75RHBO.js} +132 -21
- package/dist/{sales-nav-JXF5RY2K.js → sales-nav-C2AYFXPV.js} +73 -18
- package/dist/{search-JAL242A2.js → search-Z4DZIG4X.js} +55 -23
- package/dist/{setup-WICWH4JG.js → setup-45BEVX6B.js} +69 -17
- package/dist/team-6QWY4IFP.js +450 -0
- package/dist/tier-2HS3BXDF.js +61 -0
- package/dist/unibox-DHUKG65Z.js +402 -0
- package/dist/{webhook-UGKVYWBC.js → webhook-Q53WUAI2.js} +273 -45
- package/package.json +2 -2
- package/dist/chunk-GQKC6E5K.js +0 -36
- package/dist/core-6XYGUNAY.js +0 -46
|
@@ -9,43 +9,49 @@ import {
|
|
|
9
9
|
writeBinaryOutput
|
|
10
10
|
} from "./chunk-UWO2D4HW.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./chunk-
|
|
12
|
+
AS_ACCOUNT,
|
|
13
|
+
BUDGET,
|
|
14
|
+
TARGET
|
|
15
|
+
} from "./chunk-UWQPX4AE.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveIdentifier,
|
|
18
18
|
resolveJobIdentifier
|
|
19
19
|
} from "./chunk-UEAX6KUB.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
DEFAULT_FILTER_READERS,
|
|
22
|
+
assembleFilters,
|
|
23
|
+
splitCsv
|
|
24
|
+
} from "./chunk-DSGKYZDK.js";
|
|
23
25
|
import {
|
|
24
26
|
slimJob
|
|
25
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-GHMRPX5H.js";
|
|
28
|
+
import {
|
|
29
|
+
requireAccount
|
|
30
|
+
} from "./chunk-25MO7BYN.js";
|
|
26
31
|
import {
|
|
27
32
|
buildPreviewOutput
|
|
28
33
|
} from "./chunk-TCUYH5GO.js";
|
|
29
34
|
import {
|
|
30
|
-
isJsonMode,
|
|
31
35
|
pageDelayFromFlags,
|
|
32
36
|
readCursorFlag,
|
|
33
37
|
readMaxPagesFlag,
|
|
34
38
|
readableObject,
|
|
35
39
|
readablePage,
|
|
36
40
|
rejectPaginationModifiersWithoutAll,
|
|
41
|
+
streamAll
|
|
42
|
+
} from "./chunk-L4CIJT6F.js";
|
|
43
|
+
import {
|
|
44
|
+
isJsonMode,
|
|
37
45
|
renderError,
|
|
38
46
|
renderSuccess,
|
|
39
47
|
renderUnexpectedError,
|
|
40
|
-
resolveEffectiveConfig,
|
|
41
|
-
streamAll,
|
|
42
48
|
writeNdjsonItem
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-76SWLAZ6.js";
|
|
49
|
+
} from "./chunk-QM57YDJE.js";
|
|
45
50
|
import {
|
|
46
51
|
createClient,
|
|
47
|
-
downloadBinary
|
|
48
|
-
|
|
52
|
+
downloadBinary,
|
|
53
|
+
resolveEffectiveConfig
|
|
54
|
+
} from "./chunk-YXVF5UST.js";
|
|
49
55
|
import {
|
|
50
56
|
GLOBAL_FLAGS,
|
|
51
57
|
NON_STREAM_FLAGS,
|
|
@@ -53,19 +59,20 @@ import {
|
|
|
53
59
|
WRITE_FLAGS,
|
|
54
60
|
WRITE_SINGLE_FLAGS,
|
|
55
61
|
readOnly
|
|
56
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-RYWWSZUH.js";
|
|
57
63
|
import {
|
|
58
64
|
DESCRIPTIONS
|
|
59
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-73DJ3KNE.js";
|
|
60
66
|
import {
|
|
61
67
|
documentSchema,
|
|
62
68
|
parseDocument,
|
|
63
69
|
readFileFlag,
|
|
64
70
|
reportIssues,
|
|
65
71
|
validate
|
|
66
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-TE3WBPW6.js";
|
|
67
73
|
import "./chunk-FDJMAF7D.js";
|
|
68
74
|
import "./chunk-ZYURL5VK.js";
|
|
75
|
+
import "./chunk-2W4RN5ON.js";
|
|
69
76
|
|
|
70
77
|
// src/commands/recruiter.ts
|
|
71
78
|
import { defineCommand } from "citty";
|
|
@@ -90,7 +97,7 @@ function normalizeAttachPaths(attach) {
|
|
|
90
97
|
async function handleSdkError(err, outOpts, out) {
|
|
91
98
|
const { CurviateError } = await import("@curviate/sdk");
|
|
92
99
|
if (err instanceof CurviateError) {
|
|
93
|
-
const { getExitCode } = await import("./exit-codes-
|
|
100
|
+
const { getExitCode } = await import("./exit-codes-7DBETBDT.js");
|
|
94
101
|
renderError(err, outOpts, out);
|
|
95
102
|
process.exit(getExitCode(err));
|
|
96
103
|
}
|
|
@@ -883,6 +890,15 @@ var recruiterMessageNewCommand = defineCommand({
|
|
|
883
890
|
meta: {
|
|
884
891
|
name: "new",
|
|
885
892
|
description: "Start a new Recruiter chat with a member.",
|
|
893
|
+
risk: "write",
|
|
894
|
+
rules: {
|
|
895
|
+
changes: "Starts a Recruiter chat with the member and sends the opening message.",
|
|
896
|
+
visible_to: "The recipient.",
|
|
897
|
+
budget_rows: ["inmail"],
|
|
898
|
+
retry: "Not safe: requests carry no idempotency key, so a retry after a timeout can repeat it. Read `curviate core inbox list` first.",
|
|
899
|
+
undo: "Cannot be undone."
|
|
900
|
+
},
|
|
901
|
+
errors: { ...AS_ACCOUNT, ...BUDGET, ...TARGET, LINKEDIN_FEATURE_NOT_SUBSCRIBED: "the Account has no Recruiter subscription.", RECIPIENT_UNREACHABLE: "LinkedIn will not let the Account message this person." },
|
|
886
902
|
examples: [
|
|
887
903
|
'curviate core recruiter message new --to AEMAAA1234567 --subject "Staff Engineer role" --signature "Jane, Acme" "Hi Sam, your work on evals caught my eye."'
|
|
888
904
|
]
|
|
@@ -898,9 +914,9 @@ var recruiterMessageNewCommand = defineCommand({
|
|
|
898
914
|
subject: { type: "string", description: "Message subject line (required for Recruiter InMail).", required: true },
|
|
899
915
|
signature: { type: "string", description: "Sender signature (required for Recruiter InMail).", required: true },
|
|
900
916
|
text: { type: "positional", description: "Opening message text." },
|
|
901
|
-
attach: { type: "string", description: "File to attach (repeatable
|
|
902
|
-
voice: { type: "string", description: "Voice message file
|
|
903
|
-
video: { type: "string", description: "Video message file
|
|
917
|
+
attach: { type: "string", description: "File to attach (repeatable)." },
|
|
918
|
+
voice: { type: "string", description: "Voice message file." },
|
|
919
|
+
video: { type: "string", description: "Video message file." }
|
|
904
920
|
},
|
|
905
921
|
async run({ args }) {
|
|
906
922
|
const flags = args;
|
|
@@ -934,6 +950,10 @@ var recruiterProfileCommand = defineCommand({
|
|
|
934
950
|
meta: {
|
|
935
951
|
name: "profile",
|
|
936
952
|
description: "Get a Recruiter enriched member profile.",
|
|
953
|
+
risk: "read",
|
|
954
|
+
rules: {
|
|
955
|
+
budget_rows: ["profile_views"]
|
|
956
|
+
},
|
|
937
957
|
examples: [
|
|
938
958
|
"curviate core recruiter profile https://www.linkedin.com/in/janesmith"
|
|
939
959
|
]
|
|
@@ -965,6 +985,10 @@ var recruiterSearchPeopleCommand = defineCommand({
|
|
|
965
985
|
meta: {
|
|
966
986
|
name: "people",
|
|
967
987
|
description: "Search Recruiter member profiles.",
|
|
988
|
+
risk: "read",
|
|
989
|
+
rules: {
|
|
990
|
+
budget_rows: ["search"]
|
|
991
|
+
},
|
|
968
992
|
examples: [
|
|
969
993
|
'curviate core recruiter search people --keywords "staff engineer"',
|
|
970
994
|
"curviate core recruiter search people --filters-file filters.json"
|
|
@@ -1001,6 +1025,7 @@ var recruiterSearchParametersCommand = defineCommand({
|
|
|
1001
1025
|
meta: {
|
|
1002
1026
|
name: "parameters",
|
|
1003
1027
|
description: "Resolve Recruiter filter parameter IDs (POST, source-scoped).",
|
|
1028
|
+
risk: "read",
|
|
1004
1029
|
examples: [
|
|
1005
1030
|
"curviate core recruiter search parameters --source SEARCH --type LOCATION --keywords Berlin"
|
|
1006
1031
|
],
|
|
@@ -1051,6 +1076,10 @@ var recruiterSearchCommand = defineCommand({
|
|
|
1051
1076
|
meta: {
|
|
1052
1077
|
name: "search",
|
|
1053
1078
|
description: "Recruiter search operations. Also runs a pasted Recruiter search/talent-pool/applicant URL directly.",
|
|
1079
|
+
risk: "read",
|
|
1080
|
+
rules: {
|
|
1081
|
+
budget_rows: ["search"]
|
|
1082
|
+
},
|
|
1054
1083
|
examples: [
|
|
1055
1084
|
'curviate core recruiter search "https://www.linkedin.com/talent/search?searchContextId=YOUR_SEARCH"'
|
|
1056
1085
|
]
|
|
@@ -1095,6 +1124,7 @@ var recruiterProjectsCommand = defineCommand({
|
|
|
1095
1124
|
meta: {
|
|
1096
1125
|
name: "projects",
|
|
1097
1126
|
description: "List Recruiter hiring projects.",
|
|
1127
|
+
risk: "read",
|
|
1098
1128
|
examples: [
|
|
1099
1129
|
"curviate core recruiter projects",
|
|
1100
1130
|
"curviate core recruiter projects --all"
|
|
@@ -1123,6 +1153,15 @@ var recruiterProjectUpdateCommand = defineCommand({
|
|
|
1123
1153
|
meta: {
|
|
1124
1154
|
name: "update",
|
|
1125
1155
|
description: "Edit a Recruiter project's config. All fields optional; omitted fields are left unchanged.",
|
|
1156
|
+
risk: "write",
|
|
1157
|
+
rules: {
|
|
1158
|
+
changes: "Changes the fields you pass on a Recruiter project.",
|
|
1159
|
+
visible_to: "Your Recruiter seat and the project's collaborators.",
|
|
1160
|
+
budget_rows: [],
|
|
1161
|
+
retry: "Safe: the same values written again leave the project the same.",
|
|
1162
|
+
undo: "Run it again with the previous values."
|
|
1163
|
+
},
|
|
1164
|
+
errors: { ...AS_ACCOUNT, ...TARGET, LINKEDIN_FEATURE_NOT_SUBSCRIBED: "the Account has no Recruiter subscription." },
|
|
1126
1165
|
examples: [
|
|
1127
1166
|
'curviate core recruiter project update PROJECT_ID --name "Staff Engineer 2026"',
|
|
1128
1167
|
"curviate core recruiter project update PROJECT_ID --visibility PRIVATE"
|
|
@@ -1164,6 +1203,7 @@ var recruiterProjectCommand = defineCommand({
|
|
|
1164
1203
|
meta: {
|
|
1165
1204
|
name: "project",
|
|
1166
1205
|
description: "Get a Recruiter hiring project by ID.",
|
|
1206
|
+
risk: "read",
|
|
1167
1207
|
examples: [
|
|
1168
1208
|
"curviate core recruiter project PROJECT_ID"
|
|
1169
1209
|
]
|
|
@@ -1204,6 +1244,7 @@ var recruiterPipelineCommand = defineCommand({
|
|
|
1204
1244
|
meta: {
|
|
1205
1245
|
name: "pipeline",
|
|
1206
1246
|
description: "List candidates in a project's pipeline (POST-as-list).",
|
|
1247
|
+
risk: "read",
|
|
1207
1248
|
examples: [
|
|
1208
1249
|
"curviate core recruiter pipeline PROJECT_ID",
|
|
1209
1250
|
"curviate core recruiter pipeline PROJECT_ID --sort-by LAST_MODIFIED"
|
|
@@ -1239,6 +1280,15 @@ var recruiterSaveCandidateCommand = defineCommand({
|
|
|
1239
1280
|
meta: {
|
|
1240
1281
|
name: "save-candidate",
|
|
1241
1282
|
description: "Save a candidate to a project's pipeline at a given stage.",
|
|
1283
|
+
risk: "write",
|
|
1284
|
+
rules: {
|
|
1285
|
+
changes: "Adds the candidate to the project's pipeline at the given stage.",
|
|
1286
|
+
visible_to: "Your Recruiter seat and the project's collaborators.",
|
|
1287
|
+
budget_rows: [],
|
|
1288
|
+
retry: "Read `curviate core recruiter pipeline <project_id>` first.",
|
|
1289
|
+
undo: "Remove the candidate from the pipeline in Recruiter; the CLI has no command for it."
|
|
1290
|
+
},
|
|
1291
|
+
errors: { ...AS_ACCOUNT, ...TARGET, LINKEDIN_FEATURE_NOT_SUBSCRIBED: "the Account has no Recruiter subscription." },
|
|
1242
1292
|
examples: [
|
|
1243
1293
|
"curviate core recruiter save-candidate PROJECT_ID --stage-id STAGE_ID --candidate-id CANDIDATE_ID"
|
|
1244
1294
|
]
|
|
@@ -1272,6 +1322,7 @@ var recruiterJobsCommand = defineCommand({
|
|
|
1272
1322
|
meta: {
|
|
1273
1323
|
name: "jobs",
|
|
1274
1324
|
description: "List Recruiter job postings.",
|
|
1325
|
+
risk: "read",
|
|
1275
1326
|
examples: [
|
|
1276
1327
|
"curviate core recruiter jobs",
|
|
1277
1328
|
"curviate core recruiter jobs --all"
|
|
@@ -1317,6 +1368,15 @@ var recruiterJobCreateCommand = defineCommand({
|
|
|
1317
1368
|
meta: {
|
|
1318
1369
|
name: "create",
|
|
1319
1370
|
description: "Create a Recruiter job posting draft, opening a brand-new hiring project.",
|
|
1371
|
+
risk: "write",
|
|
1372
|
+
rules: {
|
|
1373
|
+
changes: "Creates a job-posting draft and a new hiring project for it; nothing is published.",
|
|
1374
|
+
visible_to: "Your Recruiter seat, until you publish it.",
|
|
1375
|
+
budget_rows: [],
|
|
1376
|
+
retry: "Not safe: each call creates another project and draft.",
|
|
1377
|
+
undo: "The CLI cannot delete a project or draft: remove them in Recruiter."
|
|
1378
|
+
},
|
|
1379
|
+
errors: { ...AS_ACCOUNT, LINKEDIN_FEATURE_NOT_SUBSCRIBED: "the Account has no Recruiter subscription." },
|
|
1320
1380
|
examples: [
|
|
1321
1381
|
'curviate core recruiter job create --project-name "Staff Engineer 2026" --file job.json',
|
|
1322
1382
|
`curviate core recruiter job create --project-name "Staff Engineer 2026" --file - <<'EOF'
|
|
@@ -1359,6 +1419,17 @@ var recruiterJobPublishCommand = defineCommand({
|
|
|
1359
1419
|
meta: {
|
|
1360
1420
|
name: "publish",
|
|
1361
1421
|
description: "Publish a Recruiter job posting draft. PROMOTED/PROMOTED_PLUS spend real money and require --budget-amount, --budget-currency, and --budget-scope.",
|
|
1422
|
+
risk: "high",
|
|
1423
|
+
rules: {
|
|
1424
|
+
changes: "Publishes the draft on LinkedIn; PROMOTED and PROMOTED_PLUS also spend the budget you pass.",
|
|
1425
|
+
visible_to: "Anyone on LinkedIn who can see job postings.",
|
|
1426
|
+
budget_rows: [],
|
|
1427
|
+
retry: "Not safe for a promoted posting: a repeat can spend again. Read `curviate core recruiter project-job budget <project_id> <job_id>` and the posting first.",
|
|
1428
|
+
undo: "`curviate core recruiter job close <project_id> <job_id>` stops applications; money spent is not returned by the CLI.",
|
|
1429
|
+
blast_radius: "One job posting; with PROMOTED or PROMOTED_PLUS, the --budget-amount in --budget-currency."
|
|
1430
|
+
},
|
|
1431
|
+
errors: { ...AS_ACCOUNT, ...TARGET, LINKEDIN_FEATURE_NOT_SUBSCRIBED: "the Account has no Recruiter subscription." },
|
|
1432
|
+
seeAlso: ["curviate core recruiter project-job budget", "curviate core recruiter job close"],
|
|
1362
1433
|
examples: [
|
|
1363
1434
|
"curviate core recruiter job publish PROJECT_ID JOB_ID --mode FREE"
|
|
1364
1435
|
],
|
|
@@ -1398,6 +1469,7 @@ var recruiterApplicantsCommand = defineCommand({
|
|
|
1398
1469
|
meta: {
|
|
1399
1470
|
name: "applicants",
|
|
1400
1471
|
description: "List applicants in a Recruiter project's talent pool.",
|
|
1472
|
+
risk: "read",
|
|
1401
1473
|
examples: [
|
|
1402
1474
|
"curviate core recruiter applicants PROJECT_ID --channel-id CHANNEL_ID"
|
|
1403
1475
|
]
|
|
@@ -1431,6 +1503,7 @@ var recruiterJobGetCommand = defineCommand({
|
|
|
1431
1503
|
meta: {
|
|
1432
1504
|
name: "get",
|
|
1433
1505
|
description: "Get a job posting via the Recruiter lens (any public posting, not only your own).",
|
|
1506
|
+
risk: "read",
|
|
1434
1507
|
examples: [
|
|
1435
1508
|
"curviate core recruiter job get 4100000000",
|
|
1436
1509
|
"curviate core recruiter job get https://www.linkedin.com/jobs/view/4100000000"
|
|
@@ -1462,6 +1535,17 @@ var recruiterJobCloseCommand = defineCommand({
|
|
|
1462
1535
|
meta: {
|
|
1463
1536
|
name: "close",
|
|
1464
1537
|
description: "Stop a project's job posting from accepting applications (irreversible once LISTED).",
|
|
1538
|
+
risk: "high",
|
|
1539
|
+
rules: {
|
|
1540
|
+
changes: "Stops the project's job posting from accepting applications.",
|
|
1541
|
+
visible_to: "Anyone viewing the posting: it no longer takes applications.",
|
|
1542
|
+
budget_rows: [],
|
|
1543
|
+
retry: "Read `curviate core recruiter project-job get <project_id>` first: a closed posting has nothing left to close.",
|
|
1544
|
+
undo: "Cannot be undone once the posting is listed.",
|
|
1545
|
+
blast_radius: "One job posting."
|
|
1546
|
+
},
|
|
1547
|
+
errors: { ...AS_ACCOUNT, ...TARGET, LINKEDIN_FEATURE_NOT_SUBSCRIBED: "the Account has no Recruiter subscription." },
|
|
1548
|
+
seeAlso: ["curviate core recruiter project-job get", "curviate core recruiter applicants"],
|
|
1465
1549
|
examples: [
|
|
1466
1550
|
"curviate core recruiter job close PROJECT_ID JOB_ID"
|
|
1467
1551
|
]
|
|
@@ -1509,6 +1593,7 @@ var recruiterProjectJobGetCommand = defineCommand({
|
|
|
1509
1593
|
meta: {
|
|
1510
1594
|
name: "get",
|
|
1511
1595
|
description: "Get the single job posting attached to a project (404 when none is attached).",
|
|
1596
|
+
risk: "read",
|
|
1512
1597
|
examples: [
|
|
1513
1598
|
"curviate core recruiter project-job get PROJECT_ID"
|
|
1514
1599
|
]
|
|
@@ -1540,6 +1625,15 @@ var recruiterProjectJobCreateCommand = defineCommand({
|
|
|
1540
1625
|
meta: {
|
|
1541
1626
|
name: "create",
|
|
1542
1627
|
description: "Create a job-posting draft attached to an existing project.",
|
|
1628
|
+
risk: "write",
|
|
1629
|
+
rules: {
|
|
1630
|
+
changes: "Creates a job-posting draft on an existing project; nothing is published.",
|
|
1631
|
+
visible_to: "Your Recruiter seat, until you publish it.",
|
|
1632
|
+
budget_rows: [],
|
|
1633
|
+
retry: "Not safe: each call creates another draft.",
|
|
1634
|
+
undo: "The CLI cannot delete a draft: remove it in Recruiter."
|
|
1635
|
+
},
|
|
1636
|
+
errors: { ...AS_ACCOUNT, ...TARGET, LINKEDIN_FEATURE_NOT_SUBSCRIBED: "the Account has no Recruiter subscription." },
|
|
1543
1637
|
examples: [
|
|
1544
1638
|
"curviate core recruiter project-job create PROJECT_ID --file job.json",
|
|
1545
1639
|
`curviate core recruiter project-job create PROJECT_ID --file - <<'EOF'
|
|
@@ -1582,6 +1676,7 @@ var recruiterProjectJobBudgetCommand = defineCommand({
|
|
|
1582
1676
|
meta: {
|
|
1583
1677
|
name: "budget",
|
|
1584
1678
|
description: "Get pricing to publish a project's job posting.",
|
|
1679
|
+
risk: "read",
|
|
1585
1680
|
examples: [
|
|
1586
1681
|
"curviate core recruiter project-job budget PROJECT_ID JOB_ID"
|
|
1587
1682
|
]
|
|
@@ -1614,6 +1709,15 @@ var recruiterProjectJobUpdateCommand = defineCommand({
|
|
|
1614
1709
|
meta: {
|
|
1615
1710
|
name: "update",
|
|
1616
1711
|
description: "Apply a partial update to a project's job posting.",
|
|
1712
|
+
risk: "write",
|
|
1713
|
+
rules: {
|
|
1714
|
+
changes: "Changes the fields you pass on the project's job posting.",
|
|
1715
|
+
visible_to: "Your Recruiter seat while it is a draft; anyone who can see the posting once it is published.",
|
|
1716
|
+
budget_rows: [],
|
|
1717
|
+
retry: "Safe: the same values written again leave the posting the same.",
|
|
1718
|
+
undo: "Run it again with the previous values."
|
|
1719
|
+
},
|
|
1720
|
+
errors: { ...AS_ACCOUNT, ...TARGET, LINKEDIN_FEATURE_NOT_SUBSCRIBED: "the Account has no Recruiter subscription." },
|
|
1617
1721
|
examples: [
|
|
1618
1722
|
"curviate core recruiter project-job update PROJECT_ID JOB_ID --workplace-type HYBRID",
|
|
1619
1723
|
`curviate core recruiter project-job update PROJECT_ID JOB_ID --file - <<'EOF'
|
|
@@ -1651,6 +1755,7 @@ var recruiterProjectJobCommand = defineCommand({
|
|
|
1651
1755
|
meta: {
|
|
1652
1756
|
name: "project-job",
|
|
1653
1757
|
description: "The single job posting attached to a Recruiter project.",
|
|
1758
|
+
risk: "read",
|
|
1654
1759
|
examples: [
|
|
1655
1760
|
"curviate core recruiter project-job PROJECT_ID"
|
|
1656
1761
|
]
|
|
@@ -1693,6 +1798,10 @@ var recruiterTalentSearchCommand = defineCommand({
|
|
|
1693
1798
|
meta: {
|
|
1694
1799
|
name: "talent-search",
|
|
1695
1800
|
description: "Search a project's talent pool.",
|
|
1801
|
+
risk: "read",
|
|
1802
|
+
rules: {
|
|
1803
|
+
budget_rows: ["search"]
|
|
1804
|
+
},
|
|
1696
1805
|
examples: [
|
|
1697
1806
|
"curviate core recruiter talent-search PROJECT_ID --channel-id CHANNEL_ID",
|
|
1698
1807
|
"curviate core recruiter talent-search PROJECT_ID --channel-id CHANNEL_ID --keywords typescript"
|
|
@@ -1728,6 +1837,7 @@ var recruiterApplicantResumeCommand = defineCommand({
|
|
|
1728
1837
|
meta: {
|
|
1729
1838
|
name: "resume",
|
|
1730
1839
|
description: "Download a job applicant's resume.",
|
|
1840
|
+
risk: "read",
|
|
1731
1841
|
examples: [
|
|
1732
1842
|
"curviate core recruiter applicant resume PROJECT_ID APPLICANT_ID -o resume.pdf"
|
|
1733
1843
|
]
|
|
@@ -1766,6 +1876,7 @@ var recruiterApplicantCommand = defineCommand({
|
|
|
1766
1876
|
meta: {
|
|
1767
1877
|
name: "applicant",
|
|
1768
1878
|
description: "Recruiter job applicant operations.",
|
|
1879
|
+
risk: "read",
|
|
1769
1880
|
examples: [
|
|
1770
1881
|
"curviate core recruiter applicant PROJECT_ID APPLICANT_ID"
|
|
1771
1882
|
]
|
|
@@ -5,16 +5,21 @@ import {
|
|
|
5
5
|
toAttachmentPayload
|
|
6
6
|
} from "./chunk-5I6JJJIV.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./chunk-
|
|
8
|
+
AS_ACCOUNT,
|
|
9
|
+
BUDGET,
|
|
10
|
+
TARGET
|
|
11
|
+
} from "./chunk-UWQPX4AE.js";
|
|
12
12
|
import {
|
|
13
13
|
resolveIdentifier
|
|
14
14
|
} from "./chunk-UEAX6KUB.js";
|
|
15
|
+
import {
|
|
16
|
+
DEFAULT_FILTER_READERS,
|
|
17
|
+
assembleFilters,
|
|
18
|
+
splitCsv
|
|
19
|
+
} from "./chunk-DSGKYZDK.js";
|
|
15
20
|
import {
|
|
16
21
|
requireAccount
|
|
17
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-25MO7BYN.js";
|
|
18
23
|
import {
|
|
19
24
|
buildPreviewOutput
|
|
20
25
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -25,29 +30,31 @@ import {
|
|
|
25
30
|
readableObject,
|
|
26
31
|
readablePage,
|
|
27
32
|
rejectPaginationModifiersWithoutAll,
|
|
33
|
+
streamAll
|
|
34
|
+
} from "./chunk-L4CIJT6F.js";
|
|
35
|
+
import {
|
|
28
36
|
renderError,
|
|
29
37
|
renderSuccess,
|
|
30
38
|
renderUnexpectedError,
|
|
31
|
-
resolveEffectiveConfig,
|
|
32
|
-
streamAll,
|
|
33
39
|
writeNdjsonItem
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-76SWLAZ6.js";
|
|
40
|
+
} from "./chunk-QM57YDJE.js";
|
|
36
41
|
import {
|
|
37
|
-
createClient
|
|
38
|
-
|
|
42
|
+
createClient,
|
|
43
|
+
resolveEffectiveConfig
|
|
44
|
+
} from "./chunk-YXVF5UST.js";
|
|
39
45
|
import {
|
|
40
46
|
GLOBAL_FLAGS,
|
|
41
47
|
READ_SINGLE_FLAGS,
|
|
42
48
|
WRITE_FLAGS,
|
|
43
49
|
readOnly
|
|
44
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-RYWWSZUH.js";
|
|
45
51
|
import {
|
|
46
52
|
DESCRIPTIONS
|
|
47
|
-
} from "./chunk-
|
|
48
|
-
import "./chunk-
|
|
53
|
+
} from "./chunk-73DJ3KNE.js";
|
|
54
|
+
import "./chunk-TE3WBPW6.js";
|
|
49
55
|
import "./chunk-FDJMAF7D.js";
|
|
50
56
|
import "./chunk-ZYURL5VK.js";
|
|
57
|
+
import "./chunk-2W4RN5ON.js";
|
|
51
58
|
|
|
52
59
|
// src/commands/sales-nav.ts
|
|
53
60
|
import { defineCommand } from "citty";
|
|
@@ -71,7 +78,7 @@ function normalizeAttachPaths(attach) {
|
|
|
71
78
|
async function handleSdkError(err, outOpts, out) {
|
|
72
79
|
const { CurviateError } = await import("@curviate/sdk");
|
|
73
80
|
if (err instanceof CurviateError) {
|
|
74
|
-
const { getExitCode } = await import("./exit-codes-
|
|
81
|
+
const { getExitCode } = await import("./exit-codes-7DBETBDT.js");
|
|
75
82
|
renderError(err, outOpts, out);
|
|
76
83
|
process.exit(getExitCode(err));
|
|
77
84
|
}
|
|
@@ -512,6 +519,15 @@ var salesNavMessageNewCommand = defineCommand({
|
|
|
512
519
|
meta: {
|
|
513
520
|
name: "new",
|
|
514
521
|
description: "Start a new Sales Navigator chat.",
|
|
522
|
+
risk: "write",
|
|
523
|
+
rules: {
|
|
524
|
+
changes: "Starts a Sales Navigator chat with the member and sends the opening message.",
|
|
525
|
+
visible_to: "The recipient.",
|
|
526
|
+
budget_rows: ["inmail"],
|
|
527
|
+
retry: "Not safe: requests carry no idempotency key, so a retry after a timeout can repeat it. Read `curviate core inbox list` first.",
|
|
528
|
+
undo: "Cannot be undone."
|
|
529
|
+
},
|
|
530
|
+
errors: { ...AS_ACCOUNT, ...BUDGET, ...TARGET, LINKEDIN_FEATURE_NOT_SUBSCRIBED: "the Account has no Sales Navigator subscription.", RECIPIENT_UNREACHABLE: "LinkedIn will not let the Account message this person." },
|
|
515
531
|
examples: [
|
|
516
532
|
`curviate core sales-nav message new --to ACwAAA1234567 --subject "Quick question" "Hi Jane, a quick question about your team's tooling."`
|
|
517
533
|
]
|
|
@@ -526,9 +542,9 @@ var salesNavMessageNewCommand = defineCommand({
|
|
|
526
542
|
},
|
|
527
543
|
subject: { type: "string", description: "Message subject line (required for Sales Navigator messaging).", required: true },
|
|
528
544
|
text: { type: "positional", description: "Opening message text." },
|
|
529
|
-
attach: { type: "string", description: "File to attach (repeatable
|
|
530
|
-
voice: { type: "string", description: "Voice message file
|
|
531
|
-
video: { type: "string", description: "Video message file
|
|
545
|
+
attach: { type: "string", description: "File to attach (repeatable)." },
|
|
546
|
+
voice: { type: "string", description: "Voice message file." },
|
|
547
|
+
video: { type: "string", description: "Video message file." }
|
|
532
548
|
},
|
|
533
549
|
async run({ args }) {
|
|
534
550
|
const flags = args;
|
|
@@ -562,6 +578,10 @@ var salesNavSearchPeopleCommand = defineCommand({
|
|
|
562
578
|
meta: {
|
|
563
579
|
name: "people",
|
|
564
580
|
description: "Search Sales Navigator member profiles.",
|
|
581
|
+
risk: "read",
|
|
582
|
+
rules: {
|
|
583
|
+
budget_rows: ["search"]
|
|
584
|
+
},
|
|
565
585
|
examples: [
|
|
566
586
|
'curviate core sales-nav search people --keywords "head of data"',
|
|
567
587
|
"curviate core sales-nav search people --filters-file filters.json"
|
|
@@ -599,6 +619,10 @@ var salesNavSearchCompaniesCommand = defineCommand({
|
|
|
599
619
|
meta: {
|
|
600
620
|
name: "companies",
|
|
601
621
|
description: "Search Sales Navigator companies.",
|
|
622
|
+
risk: "read",
|
|
623
|
+
rules: {
|
|
624
|
+
budget_rows: ["search"]
|
|
625
|
+
},
|
|
602
626
|
examples: [
|
|
603
627
|
"curviate core sales-nav search companies --keywords fintech"
|
|
604
628
|
]
|
|
@@ -631,6 +655,7 @@ var salesNavSearchParametersCommand = defineCommand({
|
|
|
631
655
|
meta: {
|
|
632
656
|
name: "parameters",
|
|
633
657
|
description: "Resolve Sales Navigator filter parameter IDs. Paginated: --cursor pages manually, --all streams every page as NDJSON.",
|
|
658
|
+
risk: "read",
|
|
634
659
|
examples: [
|
|
635
660
|
"curviate core sales-nav search parameters --type REGION --keywords Berlin"
|
|
636
661
|
]
|
|
@@ -666,6 +691,10 @@ var salesNavSearchCommand = defineCommand({
|
|
|
666
691
|
meta: {
|
|
667
692
|
name: "search",
|
|
668
693
|
description: "Sales Navigator search operations. Also runs a pasted Sales Navigator search/list URL directly.",
|
|
694
|
+
risk: "read",
|
|
695
|
+
rules: {
|
|
696
|
+
budget_rows: ["search"]
|
|
697
|
+
},
|
|
669
698
|
examples: [
|
|
670
699
|
'curviate core sales-nav search "https://www.linkedin.com/sales/search/people?query=(keywords%3Aai)"'
|
|
671
700
|
]
|
|
@@ -711,6 +740,10 @@ var salesNavProfileCommand = defineCommand({
|
|
|
711
740
|
meta: {
|
|
712
741
|
name: "profile",
|
|
713
742
|
description: "Get a Sales Navigator enriched member profile.",
|
|
743
|
+
risk: "read",
|
|
744
|
+
rules: {
|
|
745
|
+
budget_rows: ["profile_views"]
|
|
746
|
+
},
|
|
714
747
|
examples: [
|
|
715
748
|
"curviate core sales-nav profile https://www.linkedin.com/in/janesmith"
|
|
716
749
|
]
|
|
@@ -742,6 +775,15 @@ var salesNavSaveLeadCommand = defineCommand({
|
|
|
742
775
|
meta: {
|
|
743
776
|
name: "save-lead",
|
|
744
777
|
description: "Save a Sales Navigator member into a lead list.",
|
|
778
|
+
risk: "write",
|
|
779
|
+
rules: {
|
|
780
|
+
changes: "Adds the member to a lead list in Sales Navigator.",
|
|
781
|
+
visible_to: "Your Sales Navigator seat, and whoever the list is shared with.",
|
|
782
|
+
budget_rows: [],
|
|
783
|
+
retry: "Read the list with `curviate core sales-nav browse-lead-list <list_id>` first.",
|
|
784
|
+
undo: "Remove the lead from the list in Sales Navigator; the CLI has no command for it."
|
|
785
|
+
},
|
|
786
|
+
errors: { ...AS_ACCOUNT, ...TARGET, LINKEDIN_FEATURE_NOT_SUBSCRIBED: "the Account has no Sales Navigator subscription." },
|
|
745
787
|
examples: [
|
|
746
788
|
"curviate core sales-nav save-lead ACwAAA1234567 --list 987654"
|
|
747
789
|
]
|
|
@@ -774,6 +816,7 @@ var salesNavAccountListsCommand = defineCommand({
|
|
|
774
816
|
meta: {
|
|
775
817
|
name: "account-lists",
|
|
776
818
|
description: "List the saved-account (company) lists on the operator's Sales Navigator seat.",
|
|
819
|
+
risk: "read",
|
|
777
820
|
examples: [
|
|
778
821
|
"curviate core sales-nav account-lists"
|
|
779
822
|
]
|
|
@@ -801,6 +844,7 @@ var salesNavLeadListsCommand = defineCommand({
|
|
|
801
844
|
meta: {
|
|
802
845
|
name: "lead-lists",
|
|
803
846
|
description: "List the saved-lead (member) lists on the operator's Sales Navigator seat.",
|
|
847
|
+
risk: "read",
|
|
804
848
|
examples: [
|
|
805
849
|
"curviate core sales-nav lead-lists"
|
|
806
850
|
]
|
|
@@ -828,6 +872,7 @@ var salesNavBrowseAccountListCommand = defineCommand({
|
|
|
828
872
|
meta: {
|
|
829
873
|
name: "browse-account-list",
|
|
830
874
|
description: "Browse the saved accounts (companies) in one account list.",
|
|
875
|
+
risk: "read",
|
|
831
876
|
examples: [
|
|
832
877
|
"curviate core sales-nav browse-account-list 987654",
|
|
833
878
|
"curviate core sales-nav browse-account-list 987654 --sort-by DATE_ADDED --sort-order DESCENDING"
|
|
@@ -862,6 +907,7 @@ var salesNavBrowseLeadListCommand = defineCommand({
|
|
|
862
907
|
meta: {
|
|
863
908
|
name: "browse-lead-list",
|
|
864
909
|
description: "Browse the saved leads (members) in one lead list.",
|
|
910
|
+
risk: "read",
|
|
865
911
|
examples: [
|
|
866
912
|
"curviate core sales-nav browse-lead-list 987654",
|
|
867
913
|
"curviate core sales-nav browse-lead-list 987654 --spotlight RECENT_POSITION_CHANGE"
|
|
@@ -896,6 +942,15 @@ var salesNavSaveAccountCommand = defineCommand({
|
|
|
896
942
|
meta: {
|
|
897
943
|
name: "save-account",
|
|
898
944
|
description: "Save a LinkedIn company into an account list.",
|
|
945
|
+
risk: "write",
|
|
946
|
+
rules: {
|
|
947
|
+
changes: "Adds the company to an account list in Sales Navigator.",
|
|
948
|
+
visible_to: "Your Sales Navigator seat, and whoever the list is shared with.",
|
|
949
|
+
budget_rows: [],
|
|
950
|
+
retry: "Read the list with `curviate core sales-nav browse-account-list <list_id>` first.",
|
|
951
|
+
undo: "Remove the company from the list in Sales Navigator; the CLI has no command for it."
|
|
952
|
+
},
|
|
953
|
+
errors: { ...AS_ACCOUNT, ...TARGET, LINKEDIN_FEATURE_NOT_SUBSCRIBED: "the Account has no Sales Navigator subscription." },
|
|
899
954
|
examples: [
|
|
900
955
|
"curviate core sales-nav save-account 1234567 --list 987654"
|
|
901
956
|
]
|