@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
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
resolveMemberOrMeProviderId
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DOHBOYXN.js";
|
|
5
5
|
import {
|
|
6
6
|
AttachError,
|
|
7
7
|
readAttachment,
|
|
8
8
|
toAttachmentPayload
|
|
9
9
|
} from "./chunk-5I6JJJIV.js";
|
|
10
|
+
import {
|
|
11
|
+
AS_ACCOUNT,
|
|
12
|
+
BUDGET,
|
|
13
|
+
TARGET
|
|
14
|
+
} from "./chunk-UWQPX4AE.js";
|
|
10
15
|
import "./chunk-UEAX6KUB.js";
|
|
11
16
|
import {
|
|
12
17
|
requireAccount
|
|
13
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-25MO7BYN.js";
|
|
14
19
|
import {
|
|
15
20
|
buildPreviewOutput
|
|
16
21
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -21,30 +26,32 @@ import {
|
|
|
21
26
|
readableObject,
|
|
22
27
|
readablePage,
|
|
23
28
|
rejectPaginationModifiersWithoutAll,
|
|
29
|
+
streamAll
|
|
30
|
+
} from "./chunk-L4CIJT6F.js";
|
|
31
|
+
import {
|
|
24
32
|
renderError,
|
|
25
33
|
renderSuccess,
|
|
26
34
|
renderUnexpectedError,
|
|
27
|
-
resolveEffectiveConfig,
|
|
28
|
-
streamAll,
|
|
29
35
|
writeNdjsonItem
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-76SWLAZ6.js";
|
|
36
|
+
} from "./chunk-QM57YDJE.js";
|
|
32
37
|
import {
|
|
33
|
-
createClient
|
|
34
|
-
|
|
38
|
+
createClient,
|
|
39
|
+
resolveEffectiveConfig
|
|
40
|
+
} from "./chunk-YXVF5UST.js";
|
|
35
41
|
import {
|
|
36
42
|
GLOBAL_FLAGS,
|
|
37
43
|
READ_SINGLE_FLAGS,
|
|
38
44
|
WRITE_FLAGS,
|
|
39
45
|
WRITE_SINGLE_FLAGS,
|
|
40
46
|
readOnly
|
|
41
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-RYWWSZUH.js";
|
|
42
48
|
import {
|
|
43
49
|
DESCRIPTIONS
|
|
44
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-73DJ3KNE.js";
|
|
45
51
|
import {
|
|
46
52
|
resolveTextOrStdin
|
|
47
53
|
} from "./chunk-ZYURL5VK.js";
|
|
54
|
+
import "./chunk-2W4RN5ON.js";
|
|
48
55
|
|
|
49
56
|
// src/commands/post.ts
|
|
50
57
|
import { defineCommand } from "citty";
|
|
@@ -82,7 +89,7 @@ function normalizeAttachPaths(attach) {
|
|
|
82
89
|
async function handleSdkError(err, outOpts, out) {
|
|
83
90
|
const { CurviateError } = await import("@curviate/sdk");
|
|
84
91
|
if (err instanceof CurviateError) {
|
|
85
|
-
const { getExitCode } = await import("./exit-codes-
|
|
92
|
+
const { getExitCode } = await import("./exit-codes-7DBETBDT.js");
|
|
86
93
|
renderError(err, outOpts, out);
|
|
87
94
|
process.exit(getExitCode(err));
|
|
88
95
|
}
|
|
@@ -392,6 +399,10 @@ var postGetCommand = defineCommand({
|
|
|
392
399
|
meta: {
|
|
393
400
|
name: "get",
|
|
394
401
|
description: "Get a post by id.",
|
|
402
|
+
risk: "read",
|
|
403
|
+
rules: {
|
|
404
|
+
budget_rows: ["content_poll", "profile_views"]
|
|
405
|
+
},
|
|
395
406
|
examples: [
|
|
396
407
|
"curviate core post get 7290000000000000000",
|
|
397
408
|
"curviate core post get urn:li:activity:7290000000000000000"
|
|
@@ -426,6 +437,15 @@ var postCreateCommand = defineCommand({
|
|
|
426
437
|
meta: {
|
|
427
438
|
name: "create",
|
|
428
439
|
description: "Create a new post.",
|
|
440
|
+
risk: "write",
|
|
441
|
+
rules: {
|
|
442
|
+
changes: "Publishes a post from your Account.",
|
|
443
|
+
visible_to: "Everyone who can see your posts on LinkedIn.",
|
|
444
|
+
budget_rows: ["posts"],
|
|
445
|
+
retry: "Not safe: requests carry no idempotency key, so a retry after a timeout can repeat it. Read `curviate core post user-posts me` first.",
|
|
446
|
+
undo: "`curviate core post delete <post_id>`."
|
|
447
|
+
},
|
|
448
|
+
errors: { ...AS_ACCOUNT, ...BUDGET },
|
|
429
449
|
examples: [
|
|
430
450
|
'curviate core post create "We just shipped webhooks for inbox events."',
|
|
431
451
|
'curviate core post create "Our latest product update." --attach screenshot.png'
|
|
@@ -462,6 +482,15 @@ var postReactCommand = defineCommand({
|
|
|
462
482
|
meta: {
|
|
463
483
|
name: "react",
|
|
464
484
|
description: "React to a post.",
|
|
485
|
+
risk: "write",
|
|
486
|
+
rules: {
|
|
487
|
+
changes: "Adds your reaction to the post.",
|
|
488
|
+
visible_to: "The post's author and anyone who can see its reactions.",
|
|
489
|
+
budget_rows: ["post_likes"],
|
|
490
|
+
retry: "Reacting again replaces your reaction; it never adds a second.",
|
|
491
|
+
undo: "`curviate core post unreact <post_id>`."
|
|
492
|
+
},
|
|
493
|
+
errors: { ...AS_ACCOUNT, ...BUDGET, ...TARGET },
|
|
465
494
|
examples: [
|
|
466
495
|
"curviate core post react 7290000000000000000 like",
|
|
467
496
|
"curviate core post react 7290000000000000000 celebrate --as-organization 1234567"
|
|
@@ -511,6 +540,10 @@ var postReactionsCommand = defineCommand({
|
|
|
511
540
|
meta: {
|
|
512
541
|
name: "reactions",
|
|
513
542
|
description: "List reactions on a post.",
|
|
543
|
+
risk: "read",
|
|
544
|
+
rules: {
|
|
545
|
+
budget_rows: ["content_poll", "profile_views"]
|
|
546
|
+
},
|
|
514
547
|
examples: [
|
|
515
548
|
"curviate core post reactions 7290000000000000000",
|
|
516
549
|
"curviate core post reactions 7290000000000000000 --all"
|
|
@@ -561,6 +594,17 @@ var postDeleteCommand = defineCommand({
|
|
|
561
594
|
meta: {
|
|
562
595
|
name: "delete",
|
|
563
596
|
description: "Delete a post you own.",
|
|
597
|
+
risk: "high",
|
|
598
|
+
rules: {
|
|
599
|
+
changes: "Deletes one of your posts.",
|
|
600
|
+
visible_to: "Everyone: the post disappears from LinkedIn.",
|
|
601
|
+
budget_rows: [],
|
|
602
|
+
retry: "Safe: a deleted post is gone, so a repeat has nothing to delete.",
|
|
603
|
+
undo: "Cannot be undone.",
|
|
604
|
+
blast_radius: "One post, with its comments and reactions."
|
|
605
|
+
},
|
|
606
|
+
errors: { ...AS_ACCOUNT, ...TARGET },
|
|
607
|
+
seeAlso: ["curviate core post user-posts"],
|
|
564
608
|
examples: [
|
|
565
609
|
"curviate core post delete 7290000000000000000"
|
|
566
610
|
]
|
|
@@ -577,6 +621,15 @@ var postUnreactCommand = defineCommand({
|
|
|
577
621
|
meta: {
|
|
578
622
|
name: "unreact",
|
|
579
623
|
description: "Remove your reaction from a post.",
|
|
624
|
+
risk: "write",
|
|
625
|
+
rules: {
|
|
626
|
+
changes: "Removes your reaction from the post.",
|
|
627
|
+
visible_to: "The post's author and anyone who can see its reactions.",
|
|
628
|
+
budget_rows: [],
|
|
629
|
+
retry: "A second call answers REACTION_NOT_FOUND and changes nothing.",
|
|
630
|
+
undo: "`curviate core post react <post_id>`."
|
|
631
|
+
},
|
|
632
|
+
errors: { ...AS_ACCOUNT, ...TARGET, REACTION_NOT_FOUND: "you have no reaction on the post." },
|
|
580
633
|
examples: [
|
|
581
634
|
"curviate core post unreact 7290000000000000000 like"
|
|
582
635
|
]
|
|
@@ -593,7 +646,8 @@ var postUnreactCommand = defineCommand({
|
|
|
593
646
|
var postSavedCommand = defineCommand({
|
|
594
647
|
meta: {
|
|
595
648
|
name: "saved",
|
|
596
|
-
description: "List your own saved posts (a private bookmark list, newest-saved-first). Each item is a preview
|
|
649
|
+
description: "List your own saved posts (a private bookmark list, newest-saved-first). Each item is a preview, not the full post body.",
|
|
650
|
+
risk: "read",
|
|
597
651
|
examples: [
|
|
598
652
|
"curviate core post saved"
|
|
599
653
|
]
|
|
@@ -607,6 +661,15 @@ var postSaveCommand = defineCommand({
|
|
|
607
661
|
meta: {
|
|
608
662
|
name: "save",
|
|
609
663
|
description: "Save a post to your private bookmark list. Never notifies the author, never visible to third parties. Saving a saved post changes nothing.",
|
|
664
|
+
risk: "write",
|
|
665
|
+
rules: {
|
|
666
|
+
changes: "Adds the post to your private saved list.",
|
|
667
|
+
visible_to: "Only you.",
|
|
668
|
+
budget_rows: [],
|
|
669
|
+
retry: "Safe: saving a saved post changes nothing.",
|
|
670
|
+
undo: "`curviate core post unsave <post_id>`."
|
|
671
|
+
},
|
|
672
|
+
errors: { ...AS_ACCOUNT, ...TARGET },
|
|
610
673
|
examples: [
|
|
611
674
|
"curviate core post save 7290000000000000000"
|
|
612
675
|
]
|
|
@@ -623,6 +686,15 @@ var postUnsaveCommand = defineCommand({
|
|
|
623
686
|
meta: {
|
|
624
687
|
name: "unsave",
|
|
625
688
|
description: "Remove a post from your saved-posts bookmark list. Unsaving a post that is not saved changes nothing.",
|
|
689
|
+
risk: "write",
|
|
690
|
+
rules: {
|
|
691
|
+
changes: "Removes the post from your private saved list.",
|
|
692
|
+
visible_to: "Only you.",
|
|
693
|
+
budget_rows: [],
|
|
694
|
+
retry: "Safe: unsaving a post that is not saved changes nothing.",
|
|
695
|
+
undo: "`curviate core post save <post_id>`."
|
|
696
|
+
},
|
|
697
|
+
errors: { ...AS_ACCOUNT, ...TARGET },
|
|
626
698
|
examples: [
|
|
627
699
|
"curviate core post unsave 7290000000000000000"
|
|
628
700
|
]
|
|
@@ -639,6 +711,10 @@ var postUserPostsCommand = defineCommand({
|
|
|
639
711
|
meta: {
|
|
640
712
|
name: "user-posts",
|
|
641
713
|
description: "List a member's own posts (accepts 'me'). A very recent create/delete may take a few minutes to appear or clear here (LinkedIn-side indexing); `curviate core post get <post_id>` reflects it immediately.",
|
|
714
|
+
risk: "read",
|
|
715
|
+
rules: {
|
|
716
|
+
budget_rows: ["content_poll", "profile_views"]
|
|
717
|
+
},
|
|
642
718
|
examples: [
|
|
643
719
|
"curviate core post user-posts me",
|
|
644
720
|
"curviate core post user-posts janesmith --limit 10"
|
|
@@ -656,6 +732,10 @@ var postUserReactionsCommand = defineCommand({
|
|
|
656
732
|
meta: {
|
|
657
733
|
name: "user-reactions",
|
|
658
734
|
description: "List a member's own reactions (accepts 'me'). Items carry no time of the reaction: `parent_post.created_at` is when the post was created, not when it was reacted to, so the listing cannot be filtered by date; without `--all`, `--limit` caps the read at one page.",
|
|
735
|
+
risk: "read",
|
|
736
|
+
rules: {
|
|
737
|
+
budget_rows: ["content_poll", "profile_views"]
|
|
738
|
+
},
|
|
659
739
|
examples: [
|
|
660
740
|
"curviate core post user-reactions me",
|
|
661
741
|
"curviate core post user-reactions me --all"
|
|
@@ -1,30 +1,35 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
RETRIEVAL_FLAGS,
|
|
4
|
+
hasRetrievalFlags,
|
|
5
|
+
parseRetrievalFlags
|
|
6
|
+
} from "./chunk-L7JH3W56.js";
|
|
2
7
|
import {
|
|
3
8
|
resolveMemberOrMeProviderId,
|
|
4
9
|
resolveMemberProviderId
|
|
5
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DOHBOYXN.js";
|
|
6
11
|
import {
|
|
7
12
|
AttachError,
|
|
8
13
|
readAttachment,
|
|
9
14
|
toAttachmentPayload
|
|
10
15
|
} from "./chunk-5I6JJJIV.js";
|
|
11
16
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./chunk-
|
|
17
|
+
AS_ACCOUNT,
|
|
18
|
+
BUDGET,
|
|
19
|
+
TARGET
|
|
20
|
+
} from "./chunk-UWQPX4AE.js";
|
|
16
21
|
import {
|
|
17
22
|
resolveIdentifier
|
|
18
23
|
} from "./chunk-UEAX6KUB.js";
|
|
19
|
-
import {
|
|
20
|
-
requireAccount
|
|
21
|
-
} from "./chunk-Q63IIPL2.js";
|
|
22
24
|
import {
|
|
23
25
|
parseSectionsFlag,
|
|
24
26
|
slimProfile,
|
|
25
27
|
slimProfileMe,
|
|
26
28
|
withRequestedSections
|
|
27
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-GHMRPX5H.js";
|
|
30
|
+
import {
|
|
31
|
+
requireAccount
|
|
32
|
+
} from "./chunk-25MO7BYN.js";
|
|
28
33
|
import {
|
|
29
34
|
buildPreviewOutput
|
|
30
35
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -36,27 +41,29 @@ import {
|
|
|
36
41
|
readableObject,
|
|
37
42
|
readablePage,
|
|
38
43
|
rejectPaginationModifiersWithoutAll,
|
|
44
|
+
streamAll
|
|
45
|
+
} from "./chunk-L4CIJT6F.js";
|
|
46
|
+
import {
|
|
39
47
|
renderError,
|
|
40
48
|
renderSuccess,
|
|
41
49
|
renderUnexpectedError,
|
|
42
|
-
resolveEffectiveConfig,
|
|
43
|
-
streamAll,
|
|
44
50
|
writeNdjsonItem
|
|
45
|
-
} from "./chunk-
|
|
46
|
-
import "./chunk-76SWLAZ6.js";
|
|
51
|
+
} from "./chunk-QM57YDJE.js";
|
|
47
52
|
import {
|
|
48
|
-
createClient
|
|
49
|
-
|
|
53
|
+
createClient,
|
|
54
|
+
resolveEffectiveConfig
|
|
55
|
+
} from "./chunk-YXVF5UST.js";
|
|
50
56
|
import {
|
|
51
57
|
GLOBAL_FLAGS,
|
|
52
58
|
READ_SINGLE_FLAGS,
|
|
53
59
|
WRITE_SINGLE_FLAGS,
|
|
54
60
|
readOnly
|
|
55
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-RYWWSZUH.js";
|
|
56
62
|
import {
|
|
57
63
|
DESCRIPTIONS
|
|
58
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-73DJ3KNE.js";
|
|
59
65
|
import "./chunk-ZYURL5VK.js";
|
|
66
|
+
import "./chunk-2W4RN5ON.js";
|
|
60
67
|
|
|
61
68
|
// src/commands/profile.ts
|
|
62
69
|
import { defineCommand } from "citty";
|
|
@@ -184,7 +191,7 @@ async function runProfileMe(client, flags, out) {
|
|
|
184
191
|
} catch (err) {
|
|
185
192
|
const { CurviateError } = await import("@curviate/sdk");
|
|
186
193
|
if (err instanceof CurviateError) {
|
|
187
|
-
const { getExitCode } = await import("./exit-codes-
|
|
194
|
+
const { getExitCode } = await import("./exit-codes-7DBETBDT.js");
|
|
188
195
|
renderError(err, outOpts, out);
|
|
189
196
|
process.exit(getExitCode(err));
|
|
190
197
|
}
|
|
@@ -211,7 +218,7 @@ async function runProfileMe(client, flags, out) {
|
|
|
211
218
|
} catch (err) {
|
|
212
219
|
const { CurviateError } = await import("@curviate/sdk");
|
|
213
220
|
if (err instanceof CurviateError) {
|
|
214
|
-
const { getExitCode } = await import("./exit-codes-
|
|
221
|
+
const { getExitCode } = await import("./exit-codes-7DBETBDT.js");
|
|
215
222
|
renderError(err, outOpts, out);
|
|
216
223
|
process.exit(getExitCode(err));
|
|
217
224
|
}
|
|
@@ -343,7 +350,7 @@ async function runProfileGet(client, flags, out) {
|
|
|
343
350
|
} catch (err) {
|
|
344
351
|
const { CurviateError } = await import("@curviate/sdk");
|
|
345
352
|
if (err instanceof CurviateError) {
|
|
346
|
-
const { getExitCode } = await import("./exit-codes-
|
|
353
|
+
const { getExitCode } = await import("./exit-codes-7DBETBDT.js");
|
|
347
354
|
renderError(err, outOpts, out);
|
|
348
355
|
process.exit(getExitCode(err));
|
|
349
356
|
}
|
|
@@ -381,7 +388,7 @@ async function runProfileRelations(client, flags, out) {
|
|
|
381
388
|
} catch (err) {
|
|
382
389
|
const { CurviateError } = await import("@curviate/sdk");
|
|
383
390
|
if (err instanceof CurviateError) {
|
|
384
|
-
const { getExitCode } = await import("./exit-codes-
|
|
391
|
+
const { getExitCode } = await import("./exit-codes-7DBETBDT.js");
|
|
385
392
|
renderError(err, outOpts, out);
|
|
386
393
|
process.exit(getExitCode(err));
|
|
387
394
|
}
|
|
@@ -421,7 +428,7 @@ async function runProfileEndorse(client, flags, out) {
|
|
|
421
428
|
async function handleSdkError(err, outOpts, out) {
|
|
422
429
|
const { CurviateError } = await import("@curviate/sdk");
|
|
423
430
|
if (err instanceof CurviateError) {
|
|
424
|
-
const { getExitCode } = await import("./exit-codes-
|
|
431
|
+
const { getExitCode } = await import("./exit-codes-7DBETBDT.js");
|
|
425
432
|
renderError(err, outOpts, out);
|
|
426
433
|
process.exit(getExitCode(err));
|
|
427
434
|
}
|
|
@@ -658,6 +665,7 @@ var profileMeCommand = defineCommand({
|
|
|
658
665
|
meta: {
|
|
659
666
|
name: "me",
|
|
660
667
|
description: "Get your own profile, or list own activity with --posts/--comments/--reactions/--followers.",
|
|
668
|
+
risk: "read",
|
|
661
669
|
examples: [
|
|
662
670
|
"curviate core profile me",
|
|
663
671
|
"curviate core profile me --posts"
|
|
@@ -715,7 +723,9 @@ var profileMeCommand = defineCommand({
|
|
|
715
723
|
var profileRelationsCommand = defineCommand({
|
|
716
724
|
meta: {
|
|
717
725
|
name: "relations",
|
|
718
|
-
description: "List your 1st-degree connections.",
|
|
726
|
+
description: "List your 1st-degree connections, live from LinkedIn.",
|
|
727
|
+
seeAlso: ["curviate network list (the stored Connections of every Account, no LinkedIn call)"],
|
|
728
|
+
risk: "read",
|
|
719
729
|
examples: [
|
|
720
730
|
"curviate core profile relations",
|
|
721
731
|
"curviate core profile relations --all"
|
|
@@ -744,6 +754,15 @@ var profileEndorseCommand = defineCommand({
|
|
|
744
754
|
meta: {
|
|
745
755
|
name: "endorse",
|
|
746
756
|
description: "Endorse a skill on a member's profile.",
|
|
757
|
+
risk: "write",
|
|
758
|
+
rules: {
|
|
759
|
+
changes: "Adds your endorsement to one skill on the member's profile.",
|
|
760
|
+
visible_to: "The member, on their profile.",
|
|
761
|
+
budget_rows: ["endorsements"],
|
|
762
|
+
retry: "Not safe: requests carry no idempotency key, so a retry after a timeout can repeat it. Read the member's skills with `curviate core profile <id> --sections skills` first.",
|
|
763
|
+
undo: "Cannot be undone from the CLI: remove the endorsement on LinkedIn."
|
|
764
|
+
},
|
|
765
|
+
errors: { ...AS_ACCOUNT, ...BUDGET, ...TARGET },
|
|
747
766
|
examples: [
|
|
748
767
|
"curviate core profile endorse janesmith --endorsement-id 12345"
|
|
749
768
|
]
|
|
@@ -795,6 +814,15 @@ var profileUpdateCommand = defineCommand({
|
|
|
795
814
|
meta: {
|
|
796
815
|
name: "update",
|
|
797
816
|
description: "Update your own profile (headline, bio, name, skills, photos).",
|
|
817
|
+
risk: "write",
|
|
818
|
+
rules: {
|
|
819
|
+
changes: "Overwrites the profile fields you pass; fields you omit stay as they are.",
|
|
820
|
+
visible_to: "Everyone who can view your LinkedIn profile.",
|
|
821
|
+
budget_rows: [],
|
|
822
|
+
retry: "Safe: the same values written again leave the profile the same.",
|
|
823
|
+
undo: "Run it again with the previous values; the CLI keeps no copy of them."
|
|
824
|
+
},
|
|
825
|
+
errors: { ...AS_ACCOUNT },
|
|
798
826
|
examples: [
|
|
799
827
|
'curviate core profile update --headline "Building agent infrastructure"',
|
|
800
828
|
'curviate core profile update --skills "TypeScript,Agents"'
|
|
@@ -821,6 +849,15 @@ var profileFollowCommand = defineCommand({
|
|
|
821
849
|
meta: {
|
|
822
850
|
name: "follow",
|
|
823
851
|
description: "Follow a member (sends a connect request if their profile is private).",
|
|
852
|
+
risk: "write",
|
|
853
|
+
rules: {
|
|
854
|
+
changes: "Follows the member; for a private profile it sends a connection request instead.",
|
|
855
|
+
visible_to: "The member.",
|
|
856
|
+
budget_rows: ["follows"],
|
|
857
|
+
retry: "Following a member you already follow adds nothing; read `curviate core profile following me` first to be sure.",
|
|
858
|
+
undo: "`curviate core profile unfollow <id>`; a connection request stays pending until you cancel it."
|
|
859
|
+
},
|
|
860
|
+
errors: { ...AS_ACCOUNT, ...BUDGET, ...TARGET },
|
|
824
861
|
examples: [
|
|
825
862
|
"curviate core profile follow janesmith"
|
|
826
863
|
]
|
|
@@ -837,6 +874,15 @@ var profileUnfollowCommand = defineCommand({
|
|
|
837
874
|
meta: {
|
|
838
875
|
name: "unfollow",
|
|
839
876
|
description: "Unfollow a member. Unfollowing someone you do not follow changes nothing.",
|
|
877
|
+
risk: "write",
|
|
878
|
+
rules: {
|
|
879
|
+
changes: "Stops following the member.",
|
|
880
|
+
visible_to: "The member's follower count drops.",
|
|
881
|
+
budget_rows: [],
|
|
882
|
+
retry: "Safe: unfollowing a member you do not follow changes nothing.",
|
|
883
|
+
undo: "`curviate core profile follow <id>`."
|
|
884
|
+
},
|
|
885
|
+
errors: { ...AS_ACCOUNT, ...TARGET },
|
|
840
886
|
examples: [
|
|
841
887
|
"curviate core profile unfollow janesmith"
|
|
842
888
|
]
|
|
@@ -853,6 +899,7 @@ var profileFollowersCommand = defineCommand({
|
|
|
853
899
|
meta: {
|
|
854
900
|
name: "followers",
|
|
855
901
|
description: "List a member's followers (accepts 'me').",
|
|
902
|
+
risk: "read",
|
|
856
903
|
examples: [
|
|
857
904
|
"curviate core profile followers me",
|
|
858
905
|
"curviate core profile followers janesmith --limit 20"
|
|
@@ -870,6 +917,7 @@ var profileFollowingCommand = defineCommand({
|
|
|
870
917
|
meta: {
|
|
871
918
|
name: "following",
|
|
872
919
|
description: "List who a member follows (accepts 'me').",
|
|
920
|
+
risk: "read",
|
|
873
921
|
examples: [
|
|
874
922
|
"curviate core profile following me",
|
|
875
923
|
"curviate core profile following me --all"
|
|
@@ -887,6 +935,7 @@ var profileSubscriptionCommand = defineCommand({
|
|
|
887
935
|
meta: {
|
|
888
936
|
name: "subscription",
|
|
889
937
|
description: "Read your premium subscription: entitlements, primary plan, and LinkedIn management links. A free account is a valid result (has_premium:false).",
|
|
938
|
+
risk: "read",
|
|
890
939
|
examples: [
|
|
891
940
|
"curviate core profile subscription"
|
|
892
941
|
]
|
|
@@ -900,6 +949,7 @@ var profileAnalyticsCommand = defineCommand({
|
|
|
900
949
|
meta: {
|
|
901
950
|
name: "analytics",
|
|
902
951
|
description: "Read your performance headline metrics: profile viewers, followers, post impressions, and search appearances (fixed LinkedIn reporting windows, no window selector).",
|
|
952
|
+
risk: "read",
|
|
903
953
|
examples: [
|
|
904
954
|
"curviate core profile analytics"
|
|
905
955
|
]
|
|
@@ -913,6 +963,7 @@ var profileVisitorsCommand = defineCommand({
|
|
|
913
963
|
meta: {
|
|
914
964
|
name: "visitors",
|
|
915
965
|
description: "List people who recently viewed your profile, classified by disclosure fidelity (identified, semi-anonymous, or aggregate; Premium sees more identified viewers).",
|
|
966
|
+
risk: "read",
|
|
916
967
|
examples: [
|
|
917
968
|
"curviate core profile visitors",
|
|
918
969
|
"curviate core profile visitors --limit 20"
|
|
@@ -927,6 +978,7 @@ var profileSsiCommand = defineCommand({
|
|
|
927
978
|
meta: {
|
|
928
979
|
name: "ssi",
|
|
929
980
|
description: "Read your Social Selling Index: the overall score, its four pillar breakdowns, and industry/network percentile ranks.",
|
|
981
|
+
risk: "read",
|
|
930
982
|
examples: [
|
|
931
983
|
"curviate core profile ssi"
|
|
932
984
|
]
|
|
@@ -940,6 +992,10 @@ var profileCommand = defineCommand({
|
|
|
940
992
|
meta: {
|
|
941
993
|
name: "profile",
|
|
942
994
|
description: DESCRIPTIONS.profile,
|
|
995
|
+
risk: "read",
|
|
996
|
+
rules: {
|
|
997
|
+
budget_rows: ["profile_views"]
|
|
998
|
+
},
|
|
943
999
|
examples: [
|
|
944
1000
|
"curviate core profile janesmith",
|
|
945
1001
|
"curviate core profile https://www.linkedin.com/in/janesmith --posts",
|