@curviate/cli 0.47.0 → 0.48.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.
Files changed (43) hide show
  1. package/CHANGELOG.md +174 -1
  2. package/README.md +101 -87
  3. package/dist/{account-RFJ63QYL.js → account-WKQHMM7P.js} +39 -29
  4. package/dist/chunk-AYKKXGTR.js +1141 -0
  5. package/dist/{chunk-TC4ZPUWI.js → chunk-CVMSQ3OF.js} +19 -80
  6. package/dist/{chunk-HOQ7EUHJ.js → chunk-FDJMAF7D.js} +1 -0
  7. package/dist/chunk-GQKC6E5K.js +36 -0
  8. package/dist/{chunk-V3MVOVQT.js → chunk-MKGVNDMJ.js} +8 -1
  9. package/dist/chunk-NNV2OYEF.js +23 -0
  10. package/dist/{chunk-UJOTQPL6.js → chunk-OHXYFICP.js} +47 -14
  11. package/dist/{chunk-PD2I5TYC.js → chunk-Q63IIPL2.js} +2 -2
  12. package/dist/chunk-TSOIZBBU.js +41 -0
  13. package/dist/{chunk-ERBYEC5P.js → chunk-Y7K4UBFC.js} +1 -1
  14. package/dist/{chunk-FXYK2GTO.js → chunk-YFXLXION.js} +37 -32
  15. package/dist/chunk-ZYURL5VK.js +83 -0
  16. package/dist/cli.js +76 -97
  17. package/dist/{comment-MCXE7B7V.js → comment-7IQ6ZOJF.js} +27 -22
  18. package/dist/{company-EUUN372H.js → company-RD7RDGSA.js} +55 -50
  19. package/dist/{config-K4G3VSBA.js → config-EYBNYRGK.js} +13 -5
  20. package/dist/{connect-2AL7XVJO.js → connect-HVXT67A6.js} +35 -31
  21. package/dist/core-6XYGUNAY.js +46 -0
  22. package/dist/{doctor-WPYI7X2T.js → doctor-HUXQERLQ.js} +8 -4
  23. package/dist/document-AUUCGST2.js +27 -0
  24. package/dist/{draft-G65DVXT7.js → draft-DFO22K6Q.js} +26 -21
  25. package/dist/examples-64YT5V5K.js +53 -0
  26. package/dist/{feed-HV24WME4.js → feed-JWP6ANPI.js} +13 -9
  27. package/dist/{group-HADXNVJW.js → group-SIQFJEZV.js} +15 -11
  28. package/dist/{inbox-G3EE54OB.js → inbox-MMIMCA5O.js} +21 -17
  29. package/dist/{inboxes-237XOBTP.js → inboxes-RND3D4C7.js} +16 -12
  30. package/dist/{job-LIN6RWD7.js → job-ACFKBLFK.js} +29 -25
  31. package/dist/{login-OHAHNBRW.js → login-ZOB5KVKQ.js} +10 -5
  32. package/dist/{message-U2O2JQSW.js → message-OFK6UVXR.js} +9 -7
  33. package/dist/{notification-3VG32LWM.js → notification-KKGAZU7M.js} +17 -13
  34. package/dist/{post-ECDK2KJL.js → post-A5SBCFB2.js} +33 -28
  35. package/dist/{profile-JOHS6SDW.js → profile-4SOOQZ4K.js} +45 -41
  36. package/dist/{recruiter-7VXEIXN3.js → recruiter-YN73STDP.js} +123 -120
  37. package/dist/{sales-nav-K4BMBH7R.js → sales-nav-JXF5RY2K.js} +38 -32
  38. package/dist/{search-C2UYO6PI.js → search-JAL242A2.js} +58 -48
  39. package/dist/{setup-GYEZFDEN.js → setup-WICWH4JG.js} +13 -8
  40. package/dist/{webhook-KCOQOH7D.js → webhook-UGKVYWBC.js} +34 -36
  41. package/package.json +1 -1
  42. package/dist/chunk-KJ24DIAJ.js +0 -60
  43. package/dist/examples-IJL3A6SZ.js +0 -18
@@ -1,30 +1,30 @@
1
1
  #!/usr/bin/env node
2
- import {
3
- parseSectionsFlag,
4
- slimProfile,
5
- slimProfileMe,
6
- withRequestedSections
7
- } from "./chunk-LCGXJGPB.js";
8
- import {
9
- RETRIEVAL_FLAGS,
10
- hasRetrievalFlags,
11
- parseRetrievalFlags
12
- } from "./chunk-PQWDDSV7.js";
13
2
  import {
14
3
  resolveMemberOrMeProviderId,
15
4
  resolveMemberProviderId
16
- } from "./chunk-ERBYEC5P.js";
5
+ } from "./chunk-Y7K4UBFC.js";
17
6
  import {
18
7
  AttachError,
19
8
  readAttachment,
20
9
  toAttachmentPayload
21
10
  } from "./chunk-5I6JJJIV.js";
11
+ import {
12
+ RETRIEVAL_FLAGS,
13
+ hasRetrievalFlags,
14
+ parseRetrievalFlags
15
+ } from "./chunk-PQWDDSV7.js";
22
16
  import {
23
17
  resolveIdentifier
24
18
  } from "./chunk-UEAX6KUB.js";
25
19
  import {
26
20
  requireAccount
27
- } from "./chunk-PD2I5TYC.js";
21
+ } from "./chunk-Q63IIPL2.js";
22
+ import {
23
+ parseSectionsFlag,
24
+ slimProfile,
25
+ slimProfileMe,
26
+ withRequestedSections
27
+ } from "./chunk-LCGXJGPB.js";
28
28
  import {
29
29
  buildPreviewOutput
30
30
  } from "./chunk-TCUYH5GO.js";
@@ -42,17 +42,21 @@ import {
42
42
  resolveEffectiveConfig,
43
43
  streamAll,
44
44
  writeNdjsonItem
45
- } from "./chunk-V3MVOVQT.js";
45
+ } from "./chunk-MKGVNDMJ.js";
46
46
  import "./chunk-76SWLAZ6.js";
47
47
  import {
48
48
  createClient
49
- } from "./chunk-UJOTQPL6.js";
49
+ } from "./chunk-OHXYFICP.js";
50
50
  import {
51
51
  GLOBAL_FLAGS,
52
52
  READ_SINGLE_FLAGS,
53
53
  WRITE_SINGLE_FLAGS,
54
54
  readOnly
55
- } from "./chunk-TC4ZPUWI.js";
55
+ } from "./chunk-CVMSQ3OF.js";
56
+ import {
57
+ DESCRIPTIONS
58
+ } from "./chunk-GQKC6E5K.js";
59
+ import "./chunk-ZYURL5VK.js";
56
60
 
57
61
  // src/commands/profile.ts
58
62
  import { defineCommand } from "citty";
@@ -655,8 +659,8 @@ var profileMeCommand = defineCommand({
655
659
  name: "me",
656
660
  description: "Get your own profile, or list own activity with --posts/--comments/--reactions/--followers.",
657
661
  examples: [
658
- "curviate profile me",
659
- "curviate profile me --posts"
662
+ "curviate core profile me",
663
+ "curviate core profile me --posts"
660
664
  ],
661
665
  requires: [
662
666
  "--all, --max-pages and --page-delay only with a list flag: --posts, --comments, --reactions or --followers."
@@ -671,7 +675,7 @@ var profileMeCommand = defineCommand({
671
675
  },
672
676
  posts: {
673
677
  type: "boolean",
674
- description: "List own activity feed (posts + reposts). For authored-only posts, use 'post user-posts me'.",
678
+ description: "List own activity feed (posts + reposts). For authored-only posts, use `curviate core post user-posts me`.",
675
679
  default: false
676
680
  },
677
681
  comments: {
@@ -713,8 +717,8 @@ var profileRelationsCommand = defineCommand({
713
717
  name: "relations",
714
718
  description: "List your 1st-degree connections.",
715
719
  examples: [
716
- "curviate profile relations",
717
- "curviate profile relations --all"
720
+ "curviate core profile relations",
721
+ "curviate core profile relations --all"
718
722
  ]
719
723
  },
720
724
  args: { ...readOnly(GLOBAL_FLAGS) },
@@ -741,7 +745,7 @@ var profileEndorseCommand = defineCommand({
741
745
  name: "endorse",
742
746
  description: "Endorse a skill on a member's profile.",
743
747
  examples: [
744
- "curviate profile endorse janesmith --endorsement-id 12345"
748
+ "curviate core profile endorse janesmith --endorsement-id 12345"
745
749
  ]
746
750
  },
747
751
  args: {
@@ -749,7 +753,7 @@ var profileEndorseCommand = defineCommand({
749
753
  id: { type: "positional", description: "Member identifier (URL, slug, or provider id). A URL/slug is resolved to the provider id automatically (a slug is not accepted directly by the endorse endpoint)." },
750
754
  "endorsement-id": {
751
755
  type: "string",
752
- description: "Endorsement ID to endorse. Get it from the target's skills section via `curviate profile <id> --sections linkedin_skills`.",
756
+ description: "Endorsement ID to endorse. Get it from the target's skills section via `curviate core profile <id> --sections linkedin_skills`.",
753
757
  required: true
754
758
  }
755
759
  },
@@ -792,8 +796,8 @@ var profileUpdateCommand = defineCommand({
792
796
  name: "update",
793
797
  description: "Update your own profile (headline, bio, name, skills, photos).",
794
798
  examples: [
795
- 'curviate profile update --headline "Building agent infrastructure"',
796
- 'curviate profile update --skills "TypeScript,Agents"'
799
+ 'curviate core profile update --headline "Building agent infrastructure"',
800
+ 'curviate core profile update --skills "TypeScript,Agents"'
797
801
  ],
798
802
  requires: [
799
803
  "At least one of --first-name, --last-name, --headline, --bio, --skills, --picture, --background-picture."
@@ -818,7 +822,7 @@ var profileFollowCommand = defineCommand({
818
822
  name: "follow",
819
823
  description: "Follow a member (sends a connect request if their profile is private).",
820
824
  examples: [
821
- "curviate profile follow janesmith"
825
+ "curviate core profile follow janesmith"
822
826
  ]
823
827
  },
824
828
  args: {
@@ -834,7 +838,7 @@ var profileUnfollowCommand = defineCommand({
834
838
  name: "unfollow",
835
839
  description: "Unfollow a member. Unfollowing someone you do not follow changes nothing.",
836
840
  examples: [
837
- "curviate profile unfollow janesmith"
841
+ "curviate core profile unfollow janesmith"
838
842
  ]
839
843
  },
840
844
  args: {
@@ -850,8 +854,8 @@ var profileFollowersCommand = defineCommand({
850
854
  name: "followers",
851
855
  description: "List a member's followers (accepts 'me').",
852
856
  examples: [
853
- "curviate profile followers me",
854
- "curviate profile followers janesmith --limit 20"
857
+ "curviate core profile followers me",
858
+ "curviate core profile followers janesmith --limit 20"
855
859
  ]
856
860
  },
857
861
  args: {
@@ -867,8 +871,8 @@ var profileFollowingCommand = defineCommand({
867
871
  name: "following",
868
872
  description: "List who a member follows (accepts 'me').",
869
873
  examples: [
870
- "curviate profile following me",
871
- "curviate profile following me --all"
874
+ "curviate core profile following me",
875
+ "curviate core profile following me --all"
872
876
  ]
873
877
  },
874
878
  args: {
@@ -884,7 +888,7 @@ var profileSubscriptionCommand = defineCommand({
884
888
  name: "subscription",
885
889
  description: "Read your premium subscription: entitlements, primary plan, and LinkedIn management links. A free account is a valid result (has_premium:false).",
886
890
  examples: [
887
- "curviate profile subscription"
891
+ "curviate core profile subscription"
888
892
  ]
889
893
  },
890
894
  args: { ...readOnly(READ_SINGLE_FLAGS) },
@@ -897,7 +901,7 @@ var profileAnalyticsCommand = defineCommand({
897
901
  name: "analytics",
898
902
  description: "Read your performance headline metrics: profile viewers, followers, post impressions, and search appearances (fixed LinkedIn reporting windows, no window selector).",
899
903
  examples: [
900
- "curviate profile analytics"
904
+ "curviate core profile analytics"
901
905
  ]
902
906
  },
903
907
  args: { ...readOnly(READ_SINGLE_FLAGS) },
@@ -910,8 +914,8 @@ var profileVisitorsCommand = defineCommand({
910
914
  name: "visitors",
911
915
  description: "List people who recently viewed your profile, classified by disclosure fidelity (identified, semi-anonymous, or aggregate; Premium sees more identified viewers).",
912
916
  examples: [
913
- "curviate profile visitors",
914
- "curviate profile visitors --limit 20"
917
+ "curviate core profile visitors",
918
+ "curviate core profile visitors --limit 20"
915
919
  ]
916
920
  },
917
921
  args: { ...readOnly(GLOBAL_FLAGS) },
@@ -924,7 +928,7 @@ var profileSsiCommand = defineCommand({
924
928
  name: "ssi",
925
929
  description: "Read your Social Selling Index: the overall score, its four pillar breakdowns, and industry/network percentile ranks.",
926
930
  examples: [
927
- "curviate profile ssi"
931
+ "curviate core profile ssi"
928
932
  ]
929
933
  },
930
934
  args: { ...readOnly(READ_SINGLE_FLAGS) },
@@ -935,11 +939,11 @@ var profileSsiCommand = defineCommand({
935
939
  var profileCommand = defineCommand({
936
940
  meta: {
937
941
  name: "profile",
938
- description: "LinkedIn profile operations.",
942
+ description: DESCRIPTIONS.profile,
939
943
  examples: [
940
- "curviate profile janesmith",
941
- "curviate profile https://www.linkedin.com/in/janesmith --posts",
942
- "curviate profile janesmith --sections experience,skills"
944
+ "curviate core profile janesmith",
945
+ "curviate core profile https://www.linkedin.com/in/janesmith --posts",
946
+ "curviate core profile janesmith --sections experience,skills"
943
947
  ],
944
948
  requires: [
945
949
  "--all, --max-pages and --page-delay only with a list flag: --posts, --comments, --reactions or --followers."
@@ -977,7 +981,7 @@ var profileCommand = defineCommand({
977
981
  const flags = args;
978
982
  if (!flags.id) {
979
983
  process.stderr.write(
980
- "Usage: curviate profile <id> [--posts|--comments|--reactions|--followers]\n curviate profile me\n curviate profile relations\n curviate profile followers <id> | following <id>\n curviate profile follow <id> | unfollow <id>\n curviate profile update [--headline|--bio|--first-name|--last-name|--skills|--picture]\n curviate profile endorse <id> --endorsement-id <id>\n"
984
+ "Usage: curviate core profile <id> [--posts|--comments|--reactions|--followers]\n curviate core profile me\n curviate core profile relations\n curviate core profile followers <id> | following <id>\n curviate core profile follow <id> | unfollow <id>\n curviate core profile update [--headline|--bio|--first-name|--last-name|--skills|--picture]\n curviate core profile endorse <id> --endorsement-id <id>\n curviate core profile subscription | analytics | visitors | ssi\n"
981
985
  );
982
986
  process.exit(2);
983
987
  }