@linkedapi/mcp 2.3.15 → 2.3.16
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/dist/tools/fetch-post.js +1 -1
- package/dist/tools/fetch-post.js.map +1 -1
- package/dist/tools/search-posts.d.ts +5 -0
- package/dist/tools/search-posts.d.ts.map +1 -1
- package/dist/tools/search-posts.js +10 -16
- package/dist/tools/search-posts.js.map +1 -1
- package/package.json +1 -1
- package/src/tools/fetch-post.ts +1 -1
- package/src/tools/search-posts.ts +12 -16
package/dist/tools/fetch-post.js
CHANGED
|
@@ -28,7 +28,7 @@ class FetchPostTool extends linked_api_tool_js_1.OperationTool {
|
|
|
28
28
|
getTool() {
|
|
29
29
|
return {
|
|
30
30
|
name: this.name,
|
|
31
|
-
description: 'Open a LinkedIn post and retrieve its data, with optional comments and reactions. (st.openPost action). The author and reposter carry urn — a member URN (urn:li:member:<id>) for a person actor and an organization URN (urn:li:organization:<id>) for a company actor — and retrieved
|
|
31
|
+
description: 'Open a LinkedIn post and retrieve its data, with optional comments and reactions. (st.openPost action). The author and reposter carry urn — a member URN (urn:li:member:<id>) for a person actor and an organization URN (urn:li:organization:<id>) for a company actor — and each retrieved reaction carries an actor object (type, name, urn, profileUrl or companyUrl, headline, and viewerState.connectionDegree for a person) with the same urn identity; each urn is null when LinkedIn does not expose the identifier. This action reads identifiers from the post page itself, so it resolves actor URNs that post listings such as retrieve_feed cannot. Comment authors carry no URN.',
|
|
32
32
|
inputSchema: {
|
|
33
33
|
type: 'object',
|
|
34
34
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-post.js","sourceRoot":"","sources":["../../src/tools/fetch-post.ts"],"names":[],"mappings":";;;AAAA,0CAAmE;AAEnE,6BAAwB;AAExB,oEAA4D;AAE5D,MAAa,aAAc,SAAQ,kCAAwC;IAChD,IAAI,GAAG,YAAY,CAAC;IACpB,aAAa,GAAG,qBAAc,CAAC,SAAS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AE,SAAS;wBACf,WAAW,EACT,oGAAoG;qBACvG;oBACD,uBAAuB,EAAE;wBACvB,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT,2GAA2G;wBAC7G,UAAU,EAAE;4BACV,KAAK,EAAE;gCACL,IAAI,EAAE,QAAQ;gCACd,WAAW,EACT,4FAA4F;6BAC/F;4BACD,OAAO,EAAE;gCACP,IAAI,EAAE,SAAS;gCACf,WAAW,EAAE,8DAA8D;6BAC5E;4BACD,IAAI,EAAE;gCACJ,IAAI,EAAE,QAAQ;gCACd,IAAI,EAAE,CAAC,cAAc,EAAE,YAAY,CAAC;gCACpC,WAAW,EACT,2EAA2E;6BAC9E;yBACF;qBACF;oBACD,wBAAwB,EAAE;wBACxB,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT,8FAA8F;wBAChG,UAAU,EAAE;4BACV,KAAK,EAAE;gCACL,IAAI,EAAE,QAAQ;gCACd,WAAW,EACT,8FAA8F;6BACjG;yBACF;qBACF;iBACF;gBACD,QAAQ,EAAE,EAAE;aACb;SACF,CAAC;IACJ,CAAC;CACF;AAzFD,sCAyFC"}
|
|
@@ -32,26 +32,31 @@ export declare class SearchPostsTool extends OperationTool<TSearchPostsParams, u
|
|
|
32
32
|
}>>>;
|
|
33
33
|
fromMembers: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
34
34
|
name: z.ZodString;
|
|
35
|
+
id: z.ZodOptional<z.ZodString>;
|
|
35
36
|
urn: z.ZodOptional<z.ZodString>;
|
|
36
37
|
personHashedUrl: z.ZodOptional<z.ZodString>;
|
|
37
38
|
}, z.core.$strip>]>>>;
|
|
38
39
|
fromCompanies: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
39
40
|
name: z.ZodString;
|
|
41
|
+
id: z.ZodOptional<z.ZodString>;
|
|
40
42
|
urn: z.ZodOptional<z.ZodString>;
|
|
41
43
|
companyHashedUrl: z.ZodOptional<z.ZodString>;
|
|
42
44
|
}, z.core.$strip>]>>>;
|
|
43
45
|
mentioningMembers: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
44
46
|
name: z.ZodString;
|
|
47
|
+
id: z.ZodOptional<z.ZodString>;
|
|
45
48
|
urn: z.ZodOptional<z.ZodString>;
|
|
46
49
|
personHashedUrl: z.ZodOptional<z.ZodString>;
|
|
47
50
|
}, z.core.$strip>]>>>;
|
|
48
51
|
mentioningCompanies: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
49
52
|
name: z.ZodString;
|
|
53
|
+
id: z.ZodOptional<z.ZodString>;
|
|
50
54
|
urn: z.ZodOptional<z.ZodString>;
|
|
51
55
|
companyHashedUrl: z.ZodOptional<z.ZodString>;
|
|
52
56
|
}, z.core.$strip>]>>>;
|
|
53
57
|
authorCompanies: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
54
58
|
name: z.ZodString;
|
|
59
|
+
id: z.ZodOptional<z.ZodString>;
|
|
55
60
|
urn: z.ZodOptional<z.ZodString>;
|
|
56
61
|
companyHashedUrl: z.ZodOptional<z.ZodString>;
|
|
57
62
|
}, z.core.$strip>]>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-posts.d.ts","sourceRoot":"","sources":["../../src/tools/search-posts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"search-posts.d.ts","sourceRoot":"","sources":["../../src/tools/search-posts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AA8E5D,qBAAa,eAAgB,SAAQ,aAAa,CAAC,kBAAkB,EAAE,OAAO,CAAC;IAC7E,SAAyB,IAAI,kBAAkB;IAC/C,SAAyB,aAAa,gBAA8B;IACpE,mBAA4B,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAwB7B;IAEW,OAAO,IAAI,IAAI;CAiGhC"}
|
|
@@ -8,6 +8,7 @@ const PERSON_FILTER_ENTRY_SCHEMA = zod_1.z.union([
|
|
|
8
8
|
zod_1.z.string().min(1).max(100),
|
|
9
9
|
zod_1.z.object({
|
|
10
10
|
name: zod_1.z.string().min(1).max(100),
|
|
11
|
+
id: zod_1.z.string().optional(),
|
|
11
12
|
urn: zod_1.z.string().optional(),
|
|
12
13
|
personHashedUrl: zod_1.z.string().optional(),
|
|
13
14
|
}),
|
|
@@ -16,6 +17,7 @@ const COMPANY_FILTER_ENTRY_SCHEMA = zod_1.z.union([
|
|
|
16
17
|
zod_1.z.string().min(1).max(100),
|
|
17
18
|
zod_1.z.object({
|
|
18
19
|
name: zod_1.z.string().min(1).max(100),
|
|
20
|
+
id: zod_1.z.string().optional(),
|
|
19
21
|
urn: zod_1.z.string().optional(),
|
|
20
22
|
companyHashedUrl: zod_1.z.string().optional(),
|
|
21
23
|
}),
|
|
@@ -35,15 +37,11 @@ const PERSON_FILTER_ENTRY_JSON_SCHEMA = {
|
|
|
35
37
|
type: 'string',
|
|
36
38
|
minLength: 1,
|
|
37
39
|
maxLength: 100,
|
|
38
|
-
description: 'Required. Name
|
|
40
|
+
description: 'Required. Name of the person.',
|
|
39
41
|
},
|
|
40
|
-
|
|
42
|
+
id: {
|
|
41
43
|
type: 'string',
|
|
42
|
-
description: 'Optional.
|
|
43
|
-
},
|
|
44
|
-
personHashedUrl: {
|
|
45
|
-
type: 'string',
|
|
46
|
-
description: 'Optional. Hashed LinkedIn URL of the person.',
|
|
44
|
+
description: 'Optional. Any identifier of the person: URN, or public or hashed LinkedIn URL. Pins the filter to exactly that person.',
|
|
47
45
|
},
|
|
48
46
|
},
|
|
49
47
|
required: ['name'],
|
|
@@ -65,15 +63,11 @@ const COMPANY_FILTER_ENTRY_JSON_SCHEMA = {
|
|
|
65
63
|
type: 'string',
|
|
66
64
|
minLength: 1,
|
|
67
65
|
maxLength: 100,
|
|
68
|
-
description: 'Required. Name
|
|
69
|
-
},
|
|
70
|
-
urn: {
|
|
71
|
-
type: 'string',
|
|
72
|
-
description: 'Optional. Organization URN of the company, urn:li:organization:<id>.',
|
|
66
|
+
description: 'Required. Name of the company.',
|
|
73
67
|
},
|
|
74
|
-
|
|
68
|
+
id: {
|
|
75
69
|
type: 'string',
|
|
76
|
-
description: 'Optional.
|
|
70
|
+
description: 'Optional. Any identifier of the company: URN, public or hashed LinkedIn URL, or numeric ID. Pins the filter to exactly that company.',
|
|
77
71
|
},
|
|
78
72
|
},
|
|
79
73
|
required: ['name'],
|
|
@@ -154,12 +148,12 @@ class SearchPostsTool extends linked_api_tool_js_1.OperationTool {
|
|
|
154
148
|
},
|
|
155
149
|
fromMembers: {
|
|
156
150
|
type: 'array',
|
|
157
|
-
description: 'Optional. Array of people whose posts to keep. Each entry is a
|
|
151
|
+
description: 'Optional. Array of people whose posts to keep. Each entry is a name, or { name, id }; both forms can be mixed in one array. A name alone may match a namesake; id pins the exact person. When an entry cannot be applied, the action fails with filterNotApplied rather than filtering by somebody else.',
|
|
158
152
|
items: PERSON_FILTER_ENTRY_JSON_SCHEMA,
|
|
159
153
|
},
|
|
160
154
|
fromCompanies: {
|
|
161
155
|
type: 'array',
|
|
162
|
-
description: 'Optional. Array of companies whose posts to keep. Same entry shape as fromMembers
|
|
156
|
+
description: 'Optional. Array of companies whose posts to keep. Same entry shape as fromMembers.',
|
|
163
157
|
items: COMPANY_FILTER_ENTRY_JSON_SCHEMA,
|
|
164
158
|
},
|
|
165
159
|
mentioningMembers: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-posts.js","sourceRoot":"","sources":["../../src/tools/search-posts.ts"],"names":[],"mappings":";;;AAAA,0CAAqE;AAErE,6BAAwB;AAExB,oEAA4D;AAE5D,MAAM,0BAA0B,GAAG,OAAC,CAAC,KAAK,CAAC;IACzC,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAC1B,OAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;QAChC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC1B,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACvC,CAAC;CACH,CAAC,CAAC;AAEH,MAAM,2BAA2B,GAAG,OAAC,CAAC,KAAK,CAAC;IAC1C,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAC1B,OAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;QAChC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC1B,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACxC,CAAC;CACH,CAAC,CAAC;AAEH,MAAM,+BAA+B,GAAG;IACtC,KAAK,EAAE;QACL;YACE,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,CAAC;YACZ,SAAS,EAAE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AAC,IAAI,EAAE,kBAAkB,EAAE,iBAAiB,CAAC;iCACpD;6BACF;4BACD,WAAW,EAAE;gCACX,IAAI,EAAE,OAAO;gCACb,WAAW,EACT,0SAA0S;gCAC5S,KAAK,EAAE,+BAA+B;6BACvC;4BACD,aAAa,EAAE;gCACb,IAAI,EAAE,OAAO;gCACb,WAAW,EACT,oFAAoF;gCACtF,KAAK,EAAE,gCAAgC;6BACxC;4BACD,iBAAiB,EAAE;gCACjB,IAAI,EAAE,OAAO;gCACb,WAAW,EACT,sFAAsF;gCACxF,KAAK,EAAE,+BAA+B;6BACvC;4BACD,mBAAmB,EAAE;gCACnB,IAAI,EAAE,OAAO;gCACb,WAAW,EACT,2FAA2F;gCAC7F,KAAK,EAAE,gCAAgC;6BACxC;4BACD,eAAe,EAAE;gCACf,IAAI,EAAE,OAAO;gCACb,WAAW,EACT,sFAAsF;gCACxF,KAAK,EAAE,gCAAgC;6BACxC;4BACD,gBAAgB,EAAE;gCAChB,IAAI,EAAE,OAAO;gCACb,WAAW,EACT,yMAAyM;gCAC3M,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;6BAC1B;yBACF;qBACF;oBACD,eAAe,EAAE;wBACf,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT,iIAAiI;qBACpI;iBACF;gBACD,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,iBAAiB,CAAC,EAAE,CAAC;aAC5C;SACzB,CAAC;IACJ,CAAC;CACF;AA9HD,0CA8HC"}
|
package/package.json
CHANGED
package/src/tools/fetch-post.ts
CHANGED
|
@@ -30,7 +30,7 @@ export class FetchPostTool extends OperationTool<TFetchPostParams, unknown> {
|
|
|
30
30
|
return {
|
|
31
31
|
name: this.name,
|
|
32
32
|
description:
|
|
33
|
-
'Open a LinkedIn post and retrieve its data, with optional comments and reactions. (st.openPost action). The author and reposter carry urn — a member URN (urn:li:member:<id>) for a person actor and an organization URN (urn:li:organization:<id>) for a company actor — and retrieved
|
|
33
|
+
'Open a LinkedIn post and retrieve its data, with optional comments and reactions. (st.openPost action). The author and reposter carry urn — a member URN (urn:li:member:<id>) for a person actor and an organization URN (urn:li:organization:<id>) for a company actor — and each retrieved reaction carries an actor object (type, name, urn, profileUrl or companyUrl, headline, and viewerState.connectionDegree for a person) with the same urn identity; each urn is null when LinkedIn does not expose the identifier. This action reads identifiers from the post page itself, so it resolves actor URNs that post listings such as retrieve_feed cannot. Comment authors carry no URN.',
|
|
34
34
|
inputSchema: {
|
|
35
35
|
type: 'object',
|
|
36
36
|
properties: {
|
|
@@ -8,6 +8,7 @@ const PERSON_FILTER_ENTRY_SCHEMA = z.union([
|
|
|
8
8
|
z.string().min(1).max(100),
|
|
9
9
|
z.object({
|
|
10
10
|
name: z.string().min(1).max(100),
|
|
11
|
+
id: z.string().optional(),
|
|
11
12
|
urn: z.string().optional(),
|
|
12
13
|
personHashedUrl: z.string().optional(),
|
|
13
14
|
}),
|
|
@@ -17,6 +18,7 @@ const COMPANY_FILTER_ENTRY_SCHEMA = z.union([
|
|
|
17
18
|
z.string().min(1).max(100),
|
|
18
19
|
z.object({
|
|
19
20
|
name: z.string().min(1).max(100),
|
|
21
|
+
id: z.string().optional(),
|
|
20
22
|
urn: z.string().optional(),
|
|
21
23
|
companyHashedUrl: z.string().optional(),
|
|
22
24
|
}),
|
|
@@ -37,15 +39,12 @@ const PERSON_FILTER_ENTRY_JSON_SCHEMA = {
|
|
|
37
39
|
type: 'string',
|
|
38
40
|
minLength: 1,
|
|
39
41
|
maxLength: 100,
|
|
40
|
-
description: 'Required. Name
|
|
42
|
+
description: 'Required. Name of the person.',
|
|
41
43
|
},
|
|
42
|
-
|
|
44
|
+
id: {
|
|
43
45
|
type: 'string',
|
|
44
|
-
description:
|
|
45
|
-
|
|
46
|
-
personHashedUrl: {
|
|
47
|
-
type: 'string',
|
|
48
|
-
description: 'Optional. Hashed LinkedIn URL of the person.',
|
|
46
|
+
description:
|
|
47
|
+
'Optional. Any identifier of the person: URN, or public or hashed LinkedIn URL. Pins the filter to exactly that person.',
|
|
49
48
|
},
|
|
50
49
|
},
|
|
51
50
|
required: ['name'],
|
|
@@ -68,15 +67,12 @@ const COMPANY_FILTER_ENTRY_JSON_SCHEMA = {
|
|
|
68
67
|
type: 'string',
|
|
69
68
|
minLength: 1,
|
|
70
69
|
maxLength: 100,
|
|
71
|
-
description: 'Required. Name
|
|
72
|
-
},
|
|
73
|
-
urn: {
|
|
74
|
-
type: 'string',
|
|
75
|
-
description: 'Optional. Organization URN of the company, urn:li:organization:<id>.',
|
|
70
|
+
description: 'Required. Name of the company.',
|
|
76
71
|
},
|
|
77
|
-
|
|
72
|
+
id: {
|
|
78
73
|
type: 'string',
|
|
79
|
-
description:
|
|
74
|
+
description:
|
|
75
|
+
'Optional. Any identifier of the company: URN, public or hashed LinkedIn URL, or numeric ID. Pins the filter to exactly that company.',
|
|
80
76
|
},
|
|
81
77
|
},
|
|
82
78
|
required: ['name'],
|
|
@@ -165,13 +161,13 @@ export class SearchPostsTool extends OperationTool<TSearchPostsParams, unknown>
|
|
|
165
161
|
fromMembers: {
|
|
166
162
|
type: 'array',
|
|
167
163
|
description:
|
|
168
|
-
'Optional. Array of people whose posts to keep. Each entry is a
|
|
164
|
+
'Optional. Array of people whose posts to keep. Each entry is a name, or { name, id }; both forms can be mixed in one array. A name alone may match a namesake; id pins the exact person. When an entry cannot be applied, the action fails with filterNotApplied rather than filtering by somebody else.',
|
|
169
165
|
items: PERSON_FILTER_ENTRY_JSON_SCHEMA,
|
|
170
166
|
},
|
|
171
167
|
fromCompanies: {
|
|
172
168
|
type: 'array',
|
|
173
169
|
description:
|
|
174
|
-
'Optional. Array of companies whose posts to keep. Same entry shape as fromMembers
|
|
170
|
+
'Optional. Array of companies whose posts to keep. Same entry shape as fromMembers.',
|
|
175
171
|
items: COMPANY_FILTER_ENTRY_JSON_SCHEMA,
|
|
176
172
|
},
|
|
177
173
|
mentioningMembers: {
|