@curviate/cli 0.4.1 → 0.5.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
CHANGED
|
@@ -8,6 +8,16 @@ a new command or flag is a minor; a breaking command/flag/exit-code change is a
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [0.5.0] - 2026-06-29
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- `message inmail --surface classic` — send an InMail from the account's own premium
|
|
16
|
+
InMail credits (in addition to `sales_nav` and `recruiter`). Use this to reach an
|
|
17
|
+
out-of-network member from a LinkedIn Premium/Core account.
|
|
18
|
+
- `message inmail --to` now accepts a member **provider id** (`ACoAAA…`) as well as a
|
|
19
|
+
member URN (`urn:li:member:<id>`). The server resolves the recipient either way.
|
|
20
|
+
|
|
11
21
|
## [0.4.1] - 2026-06-29
|
|
12
22
|
|
|
13
23
|
### Changed
|
package/dist/cli.js
CHANGED
|
@@ -144,7 +144,7 @@ var main = defineCommand({
|
|
|
144
144
|
connect: () => import("./connect-ZXD7P5CA.js").then((m) => m.connectCommand),
|
|
145
145
|
search: () => import("./search-M4WK3PDC.js").then((m) => m.searchCommand),
|
|
146
146
|
inbox: () => import("./inbox-ME4TXGFV.js").then((m) => m.inboxCommand),
|
|
147
|
-
message: () => import("./message-
|
|
147
|
+
message: () => import("./message-O7QN2L6Q.js").then((m) => m.messageCommand),
|
|
148
148
|
post: () => import("./post-VDQF23WS.js").then((m) => m.postCommand),
|
|
149
149
|
account: () => import("./account-47TRPUKL.js").then((m) => m.accountCommand),
|
|
150
150
|
webhook: () => import("./webhook-2SSNW25K.js").then((m) => m.webhookCommand),
|
|
@@ -62,8 +62,9 @@ function normalizeAttachPaths(attach) {
|
|
|
62
62
|
if (!attach) return [];
|
|
63
63
|
return Array.isArray(attach) ? attach : [attach];
|
|
64
64
|
}
|
|
65
|
-
var INMAIL_SURFACES = ["sales_nav", "recruiter"];
|
|
65
|
+
var INMAIL_SURFACES = ["sales_nav", "recruiter", "classic"];
|
|
66
66
|
var MEMBER_URN_RE = /^urn:li:member:\d+$/;
|
|
67
|
+
var MEMBER_PROVIDER_ID_RE = /^A[CDE][A-Za-z0-9_-]{16,}$/;
|
|
67
68
|
async function handleSdkError(err, outOpts, out) {
|
|
68
69
|
const { CurviateError } = await import("@curviate/sdk");
|
|
69
70
|
if (err instanceof CurviateError) {
|
|
@@ -279,9 +280,9 @@ async function runMessageInMail(client, flags, out) {
|
|
|
279
280
|
process.exit(2);
|
|
280
281
|
}
|
|
281
282
|
const recipientUrn = resolveIdentifier(flags.to ?? "");
|
|
282
|
-
if (!MEMBER_URN_RE.test(recipientUrn)) {
|
|
283
|
+
if (!MEMBER_URN_RE.test(recipientUrn) && !MEMBER_PROVIDER_ID_RE.test(recipientUrn)) {
|
|
283
284
|
out.stderr.write(
|
|
284
|
-
"error: --to must be a LinkedIn member URN (e.g. urn:li:member:99999), not a URL or slug.\n"
|
|
285
|
+
"error: --to must be a LinkedIn member URN (e.g. urn:li:member:99999) or a member provider id (e.g. ACoAAA\u2026), not a URL or slug.\n"
|
|
285
286
|
);
|
|
286
287
|
process.exit(2);
|
|
287
288
|
}
|
|
@@ -484,8 +485,8 @@ var messageInMailCommand = defineCommand({
|
|
|
484
485
|
meta: { name: "inmail", description: "Send an InMail to a member." },
|
|
485
486
|
args: {
|
|
486
487
|
...GLOBAL_FLAGS,
|
|
487
|
-
to: { type: "string", description: "Recipient member URN (urn:li:member:<id>)
|
|
488
|
-
surface: { type: "string", description: "InMail surface: sales_nav or
|
|
488
|
+
to: { type: "string", description: "Recipient member URN (urn:li:member:<id>) or provider id (ACoAAA\u2026). Not a URL or slug.", required: true },
|
|
489
|
+
surface: { type: "string", description: "InMail surface: sales_nav, recruiter, or classic (classic uses the account's own premium InMail credits).", required: true },
|
|
489
490
|
subject: { type: "string", description: "InMail subject line.", required: true },
|
|
490
491
|
text: { type: "positional", description: "InMail body text." }
|
|
491
492
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@curviate/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Official command-line interface for the Curviate API.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"clean": "rm -rf dist *.tsbuildinfo"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@curviate/sdk": "^0.
|
|
43
|
+
"@curviate/sdk": "^0.3.0",
|
|
44
44
|
"citty": "^0.1.6"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|