@curviate/cli 0.23.0 → 0.23.2

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 (31) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/README.md +65 -23
  3. package/dist/{account-MIPWTAG5.js → account-JBSYX6D2.js} +9 -10
  4. package/dist/{chunk-H6XD3F66.js → chunk-766W25QS.js} +1 -1
  5. package/dist/{chunk-ZYURL5VK.js → chunk-AHYUM2XQ.js} +93 -1
  6. package/dist/{chunk-56ORAZJO.js → chunk-LCIUD7S2.js} +1 -1
  7. package/dist/{chunk-3BO6GVS2.js → chunk-LCLYFE54.js} +1 -1
  8. package/dist/{chunk-MBO4LBLY.js → chunk-S6VAMUCC.js} +4 -6
  9. package/dist/{chunk-CUTMZWL6.js → chunk-SYRFLZ4D.js} +2 -94
  10. package/dist/{chunk-JA3NNST6.js → chunk-TKWW6BV6.js} +2 -2
  11. package/dist/{chunk-RFUO2G3M.js → chunk-VAUKRTRG.js} +5 -4
  12. package/dist/cli.js +107 -68
  13. package/dist/{comment-TUXC7K72.js → comment-SXYTJPXI.js} +6 -7
  14. package/dist/{company-LHYDAO2C.js → company-3UB4P77N.js} +9 -10
  15. package/dist/{config-FPWWYG7G.js → config-YKQ4QEBI.js} +4 -3
  16. package/dist/{connect-5S4TFQAF.js → connect-DFZEYMLV.js} +6 -6
  17. package/dist/{feed-ISNH4NXB.js → feed-ZY27EY52.js} +5 -5
  18. package/dist/{group-PHGUOOJE.js → group-DBE25EID.js} +5 -5
  19. package/dist/{inbox-3IQPPQMH.js → inbox-E6ME3ROZ.js} +5 -5
  20. package/dist/{inboxes-JK36F6SK.js → inboxes-JRX3J32A.js} +5 -5
  21. package/dist/{job-JQG34ATV.js → job-URLZ4GU7.js} +6 -6
  22. package/dist/{login-ZLDDIAFW.js → login-ERQVI27Q.js} +3 -3
  23. package/dist/{message-2WIZESSM.js → message-NPX7UX46.js} +5 -5
  24. package/dist/{notification-ORSZY2IJ.js → notification-XSSA5QOJ.js} +5 -5
  25. package/dist/{post-JRJMGV2I.js → post-OSM7JH65.js} +6 -7
  26. package/dist/{profile-SUKHRWQP.js → profile-HPZII6A5.js} +8 -8
  27. package/dist/{recruiter-NIKKDGMR.js → recruiter-VAZV2JJJ.js} +8 -9
  28. package/dist/{sales-nav-4MFL2JSE.js → sales-nav-LSUBIJWZ.js} +6 -6
  29. package/dist/{search-MZQJDJTX.js → search-52CISWQV.js} +19 -19
  30. package/dist/{webhook-7ESDSIRU.js → webhook-C43C5BK7.js} +5 -10
  31. package/package.json +2 -2
@@ -11,17 +11,17 @@ import {
11
11
  import {
12
12
  slimProfile,
13
13
  slimProfileMe
14
- } from "./chunk-RFUO2G3M.js";
14
+ } from "./chunk-VAUKRTRG.js";
15
15
  import {
16
16
  pageDelayFromFlags,
17
17
  streamAll
18
- } from "./chunk-H6XD3F66.js";
18
+ } from "./chunk-766W25QS.js";
19
19
  import {
20
20
  resolveIdentifier
21
21
  } from "./chunk-UEAX6KUB.js";
22
22
  import {
23
23
  requireAccount
24
- } from "./chunk-3BO6GVS2.js";
24
+ } from "./chunk-LCLYFE54.js";
25
25
  import {
26
26
  buildPreviewOutput
27
27
  } from "./chunk-R3VLWLVV.js";
@@ -31,13 +31,13 @@ import {
31
31
  renderSuccess,
32
32
  renderUnexpectedError,
33
33
  resolveEffectiveConfig
34
- } from "./chunk-JA3NNST6.js";
34
+ } from "./chunk-TKWW6BV6.js";
35
+ import "./chunk-SYRFLZ4D.js";
35
36
  import {
36
37
  GLOBAL_FLAGS,
37
38
  READ_SINGLE_FLAGS,
38
39
  WRITE_SINGLE_FLAGS
39
- } from "./chunk-CUTMZWL6.js";
40
- import "./chunk-ZYURL5VK.js";
40
+ } from "./chunk-AHYUM2XQ.js";
41
41
  import "./chunk-PMRQXBCP.js";
42
42
 
43
43
  // src/commands/profile.ts
@@ -655,7 +655,7 @@ var profileMeCommand = defineCommand({
655
655
  },
656
656
  posts: {
657
657
  type: "boolean",
658
- description: "List own activity feed (posts + reposts). For authored-only posts, use 'post list'.",
658
+ description: "List own activity feed (posts + reposts). For authored-only posts, use 'post user-posts me'.",
659
659
  default: false
660
660
  },
661
661
  comments: {
@@ -720,7 +720,7 @@ var profileEndorseCommand = defineCommand({
720
720
  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)." },
721
721
  "endorsement-id": {
722
722
  type: "string",
723
- description: "Endorsement ID to endorse. Get it from the target's skills section via `profile <id> --sections linkedin_skills`.",
723
+ description: "Endorsement ID to endorse. Get it from the target's skills section via `curviate profile <id> --sections linkedin_skills`.",
724
724
  required: true
725
725
  }
726
726
  },
@@ -3,7 +3,7 @@ import {
3
3
  DEFAULT_FILTER_READERS,
4
4
  assembleFilters,
5
5
  splitCsv
6
- } from "./chunk-56ORAZJO.js";
6
+ } from "./chunk-LCIUD7S2.js";
7
7
  import {
8
8
  AttachError,
9
9
  readAttachment,
@@ -11,11 +11,11 @@ import {
11
11
  } from "./chunk-BGZW6B7G.js";
12
12
  import {
13
13
  slimJob
14
- } from "./chunk-RFUO2G3M.js";
14
+ } from "./chunk-VAUKRTRG.js";
15
15
  import {
16
16
  pageDelayFromFlags,
17
17
  streamAll
18
- } from "./chunk-H6XD3F66.js";
18
+ } from "./chunk-766W25QS.js";
19
19
  import {
20
20
  BinaryOutputError,
21
21
  writeBinaryOutput
@@ -26,7 +26,7 @@ import {
26
26
  } from "./chunk-UEAX6KUB.js";
27
27
  import {
28
28
  requireAccount
29
- } from "./chunk-3BO6GVS2.js";
29
+ } from "./chunk-LCLYFE54.js";
30
30
  import {
31
31
  buildPreviewOutput
32
32
  } from "./chunk-R3VLWLVV.js";
@@ -36,16 +36,15 @@ import {
36
36
  renderSuccess,
37
37
  renderUnexpectedError,
38
38
  resolveEffectiveConfig
39
- } from "./chunk-JA3NNST6.js";
39
+ } from "./chunk-TKWW6BV6.js";
40
+ import "./chunk-SYRFLZ4D.js";
40
41
  import {
41
42
  GLOBAL_FLAGS,
42
43
  READ_SINGLE_FLAGS,
43
44
  WRITE_FLAGS,
44
- WRITE_SINGLE_FLAGS
45
- } from "./chunk-CUTMZWL6.js";
46
- import {
45
+ WRITE_SINGLE_FLAGS,
47
46
  isStdinToken
48
- } from "./chunk-ZYURL5VK.js";
47
+ } from "./chunk-AHYUM2XQ.js";
49
48
  import "./chunk-PMRQXBCP.js";
50
49
 
51
50
  // src/commands/recruiter.ts
@@ -4,7 +4,7 @@ import {
4
4
  assembleFilters,
5
5
  splitCsv,
6
6
  splitCsvNumbers
7
- } from "./chunk-56ORAZJO.js";
7
+ } from "./chunk-LCIUD7S2.js";
8
8
  import {
9
9
  AttachError,
10
10
  readAttachment,
@@ -13,13 +13,13 @@ import {
13
13
  import {
14
14
  pageDelayFromFlags,
15
15
  streamAll
16
- } from "./chunk-H6XD3F66.js";
16
+ } from "./chunk-766W25QS.js";
17
17
  import {
18
18
  resolveIdentifier
19
19
  } from "./chunk-UEAX6KUB.js";
20
20
  import {
21
21
  requireAccount
22
- } from "./chunk-3BO6GVS2.js";
22
+ } from "./chunk-LCLYFE54.js";
23
23
  import {
24
24
  buildPreviewOutput
25
25
  } from "./chunk-R3VLWLVV.js";
@@ -29,13 +29,13 @@ import {
29
29
  renderSuccess,
30
30
  renderUnexpectedError,
31
31
  resolveEffectiveConfig
32
- } from "./chunk-JA3NNST6.js";
32
+ } from "./chunk-TKWW6BV6.js";
33
+ import "./chunk-SYRFLZ4D.js";
33
34
  import {
34
35
  GLOBAL_FLAGS,
35
36
  READ_SINGLE_FLAGS,
36
37
  WRITE_FLAGS
37
- } from "./chunk-CUTMZWL6.js";
38
- import "./chunk-ZYURL5VK.js";
38
+ } from "./chunk-AHYUM2XQ.js";
39
39
  import "./chunk-PMRQXBCP.js";
40
40
 
41
41
  // src/commands/sales-nav.ts
@@ -4,7 +4,7 @@ import {
4
4
  assembleFilters,
5
5
  splitCsv,
6
6
  splitCsvNumbers
7
- } from "./chunk-56ORAZJO.js";
7
+ } from "./chunk-LCIUD7S2.js";
8
8
  import {
9
9
  slimSearchCompanies,
10
10
  slimSearchCompaniesItem,
@@ -14,25 +14,25 @@ import {
14
14
  slimSearchPeopleItem,
15
15
  slimSearchPosts,
16
16
  slimSearchPostsItem
17
- } from "./chunk-RFUO2G3M.js";
17
+ } from "./chunk-VAUKRTRG.js";
18
18
  import {
19
19
  pageDelayFromFlags,
20
20
  streamAll
21
- } from "./chunk-H6XD3F66.js";
21
+ } from "./chunk-766W25QS.js";
22
22
  import {
23
23
  requireAccount
24
- } from "./chunk-3BO6GVS2.js";
24
+ } from "./chunk-LCLYFE54.js";
25
25
  import {
26
26
  createClient,
27
27
  renderError,
28
28
  renderSuccess,
29
29
  renderUnexpectedError,
30
30
  resolveEffectiveConfig
31
- } from "./chunk-JA3NNST6.js";
31
+ } from "./chunk-TKWW6BV6.js";
32
+ import "./chunk-SYRFLZ4D.js";
32
33
  import {
33
34
  GLOBAL_FLAGS
34
- } from "./chunk-CUTMZWL6.js";
35
- import "./chunk-ZYURL5VK.js";
35
+ } from "./chunk-AHYUM2XQ.js";
36
36
  import "./chunk-PMRQXBCP.js";
37
37
 
38
38
  // src/commands/search.ts
@@ -541,8 +541,8 @@ var searchPeopleCommand = defineCommand({
541
541
  "past-company": { type: "string", description: "Past company ids (comma-separated)." },
542
542
  school: { type: "string", description: "School ids (comma-separated)." },
543
543
  "network-distance": { type: "string", description: "Network distance, 1-3 (comma-separated)." },
544
- "connections-of": { type: "string", description: 'member id(s), comma-separated (resolve: search parameters --type CONNECTIONS --keywords "<name>")' },
545
- "followers-of": { type: "string", description: 'member id(s), comma-separated (resolve: search parameters --type PEOPLE --keywords "<name>")' },
544
+ "connections-of": { type: "string", description: 'member id(s), comma-separated (resolve: `curviate search parameters --type CONNECTIONS --keywords "<name>"`)' },
545
+ "followers-of": { type: "string", description: 'member id(s), comma-separated (resolve: `curviate search parameters --type PEOPLE --keywords "<name>"`)' },
546
546
  // People-specific filter flags
547
547
  title: { type: "string", description: "Job title keyword filter (maps to advanced_keywords.title)." },
548
548
  "profile-language": { type: "string", description: "Profile language codes (comma-separated, e.g. en,de)." }
@@ -607,13 +607,13 @@ var searchPostsCommand = defineCommand({
607
607
  "sort-by": { type: "string", description: "Sort order (e.g. relevance, date)." },
608
608
  "date-posted": { type: "string", description: "time window: past_day, past_week, or past_month (hyphens also accepted: past-day, past-week, past-month)" },
609
609
  "content-type": { type: "string", description: "content type: videos, images, live_videos, collaborative_articles, documents" },
610
- "posted-by-member": { type: "string", description: "member id(s), comma-separated (resolve: search parameters --type PEOPLE); merges into posted_by" },
611
- "posted-by-company": { type: "string", description: "company id(s), comma-separated (resolve: search parameters --type COMPANY); merges into posted_by" },
610
+ "posted-by-member": { type: "string", description: "member id(s), comma-separated (resolve: `curviate search parameters --type PEOPLE`); merges into posted_by" },
611
+ "posted-by-company": { type: "string", description: "company id(s), comma-separated (resolve: `curviate search parameters --type COMPANY`); merges into posted_by" },
612
612
  "posted-by-me": { type: "boolean", description: "only posts authored by you; merges into posted_by" },
613
- "mentioning-member": { type: "string", description: "member id(s) mentioned in the post, comma-separated (resolve: search parameters --type PEOPLE); merges into mentioning" },
614
- "mentioning-company": { type: "string", description: "company id(s) mentioned in the post, comma-separated (resolve: search parameters --type COMPANY); merges into mentioning" },
615
- "author-industry": { type: "string", description: "author's industry id(s), comma-separated (resolve: search parameters --type INDUSTRY); merges into author" },
616
- "author-company": { type: "string", description: "author's company id(s), comma-separated (resolve: search parameters --type COMPANY); merges into author" },
613
+ "mentioning-member": { type: "string", description: "member id(s) mentioned in the post, comma-separated (resolve: `curviate search parameters --type PEOPLE`); merges into mentioning" },
614
+ "mentioning-company": { type: "string", description: "company id(s) mentioned in the post, comma-separated (resolve: `curviate search parameters --type COMPANY`); merges into mentioning" },
615
+ "author-industry": { type: "string", description: "author's industry id(s), comma-separated (resolve: `curviate search parameters --type INDUSTRY`); merges into author" },
616
+ "author-company": { type: "string", description: "author's company id(s), comma-separated (resolve: `curviate search parameters --type COMPANY`); merges into author" },
617
617
  "author-keywords": { type: "string", description: "author keyword filter (free text); merges into author" }
618
618
  },
619
619
  async run({ args }) {
@@ -641,7 +641,7 @@ var searchJobsCommand = defineCommand({
641
641
  keywords: { type: "string", description: "Full-text keyword search." },
642
642
  ...FILTER_FLAGS,
643
643
  // On jobs, --location maps to the geo region filter (not a location array, different API shape for jobs vs people)
644
- location: { type: "string", description: "geo region id (single id; resolve via search parameters --type LOCATION); maps to region filter" },
644
+ location: { type: "string", description: "geo region id (single id; resolve via `curviate search parameters --type LOCATION`); maps to region filter" },
645
645
  industry: { type: "string", description: "Industry ids (comma-separated)." },
646
646
  seniority: { type: "string", description: "seniority level, closed enum: executive|director|mid_senior|associate|entry|intern (comma-separated)" },
647
647
  function: { type: "string", description: "Job function ids (comma-separated)." },
@@ -652,7 +652,7 @@ var searchJobsCommand = defineCommand({
652
652
  region: { type: "string", description: "alias for --location (same body field: region)" },
653
653
  title: {
654
654
  type: "string",
655
- description: "job title id(s), comma-separated (resolve: search parameters --type JOB_TITLE); ID-based targeting, unlike search people --title, which is free-text"
655
+ description: "job title id(s), comma-separated (resolve: `curviate search parameters --type JOB_TITLE`); ID-based targeting, unlike `curviate search people --title`, which is free-text"
656
656
  },
657
657
  presence: { type: "string", description: "work presence, comma-separated: on_site, hybrid, remote" },
658
658
  benefits: { type: "string", description: "benefit ids, comma-separated" },
@@ -745,8 +745,8 @@ var searchServicesCommand = defineCommand({
745
745
  args: {
746
746
  ...GLOBAL_FLAGS,
747
747
  keywords: { type: "string", description: "Free-text keyword match." },
748
- "service-category": { type: "string", description: "Opaque service-category ids (comma-separated; resolve via search service-parameters --type service_category)." },
749
- location: { type: "string", description: "Opaque location ids (comma-separated; resolve via search service-parameters --type location)." },
748
+ "service-category": { type: "string", description: "Opaque service-category ids (comma-separated; resolve via `curviate search service-parameters --type service_category`)." },
749
+ location: { type: "string", description: "Opaque location ids (comma-separated; resolve via `curviate search service-parameters --type location`)." },
750
750
  connections: { type: "string", description: "Connection degree filter, comma-separated: 1 (1st), 2 (2nd), 3 (3rd+)." },
751
751
  language: { type: "string", description: "Profile-language ISO 639-1 codes, comma-separated (e.g. en,de,es,fr)." }
752
752
  },
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  pageDelayFromFlags,
4
4
  streamAll
5
- } from "./chunk-H6XD3F66.js";
5
+ } from "./chunk-766W25QS.js";
6
6
  import {
7
7
  buildPreviewOutput
8
8
  } from "./chunk-R3VLWLVV.js";
@@ -12,14 +12,13 @@ import {
12
12
  renderSuccess,
13
13
  renderUnexpectedError,
14
14
  resolveEffectiveConfig
15
- } from "./chunk-JA3NNST6.js";
16
- import {
17
- GLOBAL_FLAGS
18
- } from "./chunk-CUTMZWL6.js";
15
+ } from "./chunk-TKWW6BV6.js";
16
+ import "./chunk-SYRFLZ4D.js";
19
17
  import {
18
+ GLOBAL_FLAGS,
20
19
  defaultReadStdin,
21
20
  isStdinToken
22
- } from "./chunk-ZYURL5VK.js";
21
+ } from "./chunk-AHYUM2XQ.js";
23
22
 
24
23
  // src/commands/webhook.ts
25
24
  import { defineCommand } from "citty";
@@ -79,7 +78,6 @@ async function runWebhookCreate(client, flags, out) {
79
78
  account_ids: accountIds
80
79
  };
81
80
  if (flags.name) body["name"] = flags.name;
82
- if (flags.format) body["format"] = flags.format;
83
81
  if (flags.enabled !== void 0) body["enabled"] = flags.enabled;
84
82
  if (flags.events) {
85
83
  body["events"] = flags.events.split(",").map((s) => s.trim()).filter(Boolean);
@@ -160,7 +158,6 @@ async function runWebhookUpdate(client, flags, out) {
160
158
  if (flags.name !== void 0) body["name"] = flags.name;
161
159
  if (flags["request-url"]) body["request_url"] = flags["request-url"];
162
160
  if (flags.enabled !== void 0) body["enabled"] = flags.enabled;
163
- if (flags.format) body["format"] = flags.format;
164
161
  if (flags.events) {
165
162
  body["events"] = flags.events.split(",").map((s) => s.trim()).filter(Boolean);
166
163
  }
@@ -274,7 +271,6 @@ var webhookCreateCommand = defineCommand({
274
271
  "request-url": { type: "string", description: "HTTPS URL to receive webhook deliveries.", required: true },
275
272
  "account-ids": { type: "string", description: "Comma-separated account ids to target (required).", required: true },
276
273
  name: { type: "string", description: "Human-readable name (1-100 chars)." },
277
- format: { type: "string", description: "Delivery encoding: json | form (default: json)." },
278
274
  enabled: { type: "boolean", description: "Create as enabled (default: true).", default: true },
279
275
  events: { type: "string", description: "Comma-separated event names to subscribe to." },
280
276
  data: { type: "string", description: "Comma-separated field-remapping keys." }
@@ -367,7 +363,6 @@ var webhookUpdateCommand = defineCommand({
367
363
  "request-url": { type: "string", description: "Replace the delivery URL." },
368
364
  name: { type: "string", description: "Replace the name (or clear with empty string)." },
369
365
  enabled: { type: "boolean", description: "Enable or disable the webhook." },
370
- format: { type: "string", description: "Replace the delivery encoding: json | form." },
371
366
  events: { type: "string", description: "Replace subscribed events (comma-separated)." },
372
367
  data: { type: "string", description: "Replace field-remapping keys (comma-separated)." },
373
368
  "account-ids": { type: "string", description: "Replace targeted accounts (comma-separated)." }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curviate/cli",
3
- "version": "0.23.0",
3
+ "version": "0.23.2",
4
4
  "private": false,
5
5
  "description": "Official command-line interface for the Curviate API.",
6
6
  "license": "MIT",
@@ -42,7 +42,7 @@
42
42
  "clean": "rm -rf dist *.tsbuildinfo"
43
43
  },
44
44
  "dependencies": {
45
- "@curviate/sdk": "^0.20.1",
45
+ "@curviate/sdk": "^0.21.0",
46
46
  "citty": "^0.1.6",
47
47
  "open": "^10.1.0"
48
48
  },