@opentabs-dev/opentabs-plugin-linkedin 0.0.74
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/README.md +159 -0
- package/dist/adapter.iife.js +14733 -0
- package/dist/adapter.iife.js.map +7 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +32 -0
- package/dist/index.js.map +1 -0
- package/dist/linkedin-api.d.ts +34 -0
- package/dist/linkedin-api.d.ts.map +1 -0
- package/dist/linkedin-api.js +200 -0
- package/dist/linkedin-api.js.map +1 -0
- package/dist/tools/get-conversation-messages.d.ts +14 -0
- package/dist/tools/get-conversation-messages.d.ts.map +1 -0
- package/dist/tools/get-conversation-messages.js +27 -0
- package/dist/tools/get-conversation-messages.js.map +1 -0
- package/dist/tools/get-current-user.d.ts +14 -0
- package/dist/tools/get-current-user.d.ts.map +1 -0
- package/dist/tools/get-current-user.js +21 -0
- package/dist/tools/get-current-user.js.map +1 -0
- package/dist/tools/get-mailbox-counts.d.ts +8 -0
- package/dist/tools/get-mailbox-counts.d.ts.map +1 -0
- package/dist/tools/get-mailbox-counts.js +26 -0
- package/dist/tools/get-mailbox-counts.js.map +1 -0
- package/dist/tools/get-user-profile.d.ts +19 -0
- package/dist/tools/get-user-profile.d.ts.map +1 -0
- package/dist/tools/get-user-profile.js +37 -0
- package/dist/tools/get-user-profile.js.map +1 -0
- package/dist/tools/list-conversations.d.ts +17 -0
- package/dist/tools/list-conversations.d.ts.map +1 -0
- package/dist/tools/list-conversations.js +26 -0
- package/dist/tools/list-conversations.js.map +1 -0
- package/dist/tools/schemas.d.ts +213 -0
- package/dist/tools/schemas.d.ts.map +1 -0
- package/dist/tools/schemas.js +128 -0
- package/dist/tools/schemas.js.map +1 -0
- package/dist/tools/send-message.d.ts +8 -0
- package/dist/tools/send-message.d.ts.map +1 -0
- package/dist/tools/send-message.js +38 -0
- package/dist/tools/send-message.js.map +1 -0
- package/dist/tools.json +421 -0
- package/package.json +54 -0
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
interface ImageArtifact {
|
|
3
|
+
width?: number;
|
|
4
|
+
fileIdentifyingUrlPathSegment?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const currentUserSchema: z.ZodObject<{
|
|
7
|
+
plain_id: z.ZodNumber;
|
|
8
|
+
first_name: z.ZodString;
|
|
9
|
+
last_name: z.ZodString;
|
|
10
|
+
occupation: z.ZodString;
|
|
11
|
+
public_identifier: z.ZodString;
|
|
12
|
+
profile_urn: z.ZodString;
|
|
13
|
+
profile_picture_url: z.ZodString;
|
|
14
|
+
is_premium: z.ZodBoolean;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export interface RawMeResponse {
|
|
17
|
+
plainId?: number;
|
|
18
|
+
miniProfile?: {
|
|
19
|
+
firstName?: string;
|
|
20
|
+
lastName?: string;
|
|
21
|
+
occupation?: string;
|
|
22
|
+
publicIdentifier?: string;
|
|
23
|
+
dashEntityUrn?: string;
|
|
24
|
+
entityUrn?: string;
|
|
25
|
+
picture?: {
|
|
26
|
+
'com.linkedin.common.VectorImage'?: {
|
|
27
|
+
rootUrl?: string;
|
|
28
|
+
artifacts?: Array<{
|
|
29
|
+
width?: number;
|
|
30
|
+
fileIdentifyingUrlPathSegment?: string;
|
|
31
|
+
}>;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
premiumSubscriber?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export declare const mapCurrentUser: (data: RawMeResponse) => {
|
|
38
|
+
plain_id: number;
|
|
39
|
+
first_name: string;
|
|
40
|
+
last_name: string;
|
|
41
|
+
occupation: string;
|
|
42
|
+
public_identifier: string;
|
|
43
|
+
profile_urn: string;
|
|
44
|
+
profile_picture_url: string;
|
|
45
|
+
is_premium: boolean;
|
|
46
|
+
};
|
|
47
|
+
export declare const profileSchema: z.ZodObject<{
|
|
48
|
+
first_name: z.ZodString;
|
|
49
|
+
last_name: z.ZodString;
|
|
50
|
+
headline: z.ZodString;
|
|
51
|
+
public_identifier: z.ZodString;
|
|
52
|
+
profile_urn: z.ZodString;
|
|
53
|
+
profile_picture_url: z.ZodString;
|
|
54
|
+
location: z.ZodString;
|
|
55
|
+
country: z.ZodString;
|
|
56
|
+
is_premium: z.ZodBoolean;
|
|
57
|
+
is_influencer: z.ZodBoolean;
|
|
58
|
+
is_creator: z.ZodBoolean;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
interface RawProfileElement {
|
|
61
|
+
firstName?: string;
|
|
62
|
+
lastName?: string;
|
|
63
|
+
headline?: string;
|
|
64
|
+
publicIdentifier?: string;
|
|
65
|
+
entityUrn?: string;
|
|
66
|
+
profilePicture?: {
|
|
67
|
+
displayImageReference?: {
|
|
68
|
+
vectorImage?: {
|
|
69
|
+
rootUrl?: string;
|
|
70
|
+
artifacts?: ImageArtifact[];
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
geoLocation?: {
|
|
75
|
+
geo?: {
|
|
76
|
+
defaultLocalizedNameWithoutCountryName?: string;
|
|
77
|
+
country?: {
|
|
78
|
+
defaultLocalizedName?: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
premium?: boolean;
|
|
83
|
+
influencer?: boolean;
|
|
84
|
+
creator?: boolean;
|
|
85
|
+
}
|
|
86
|
+
export declare const mapProfile: (el: RawProfileElement) => {
|
|
87
|
+
first_name: string;
|
|
88
|
+
last_name: string;
|
|
89
|
+
headline: string;
|
|
90
|
+
public_identifier: string;
|
|
91
|
+
profile_urn: string;
|
|
92
|
+
profile_picture_url: string;
|
|
93
|
+
location: string;
|
|
94
|
+
country: string;
|
|
95
|
+
is_premium: boolean;
|
|
96
|
+
is_influencer: boolean;
|
|
97
|
+
is_creator: boolean;
|
|
98
|
+
};
|
|
99
|
+
export declare const conversationSchema: z.ZodObject<{
|
|
100
|
+
conversation_urn: z.ZodString;
|
|
101
|
+
title: z.ZodString;
|
|
102
|
+
last_message_text: z.ZodString;
|
|
103
|
+
last_message_at: z.ZodNumber;
|
|
104
|
+
is_read: z.ZodBoolean;
|
|
105
|
+
notification_status: z.ZodString;
|
|
106
|
+
participants: z.ZodArray<z.ZodObject<{
|
|
107
|
+
name: z.ZodString;
|
|
108
|
+
profile_urn: z.ZodString;
|
|
109
|
+
profile_picture_url: z.ZodString;
|
|
110
|
+
}, z.core.$strip>>;
|
|
111
|
+
}, z.core.$strip>;
|
|
112
|
+
interface RawParticipant {
|
|
113
|
+
hostIdentityUrn?: string;
|
|
114
|
+
entityUrn?: string;
|
|
115
|
+
participantType?: {
|
|
116
|
+
member?: {
|
|
117
|
+
firstName?: {
|
|
118
|
+
text?: string;
|
|
119
|
+
};
|
|
120
|
+
lastName?: {
|
|
121
|
+
text?: string;
|
|
122
|
+
};
|
|
123
|
+
profilePicture?: {
|
|
124
|
+
rootUrl?: string;
|
|
125
|
+
artifacts?: Array<{
|
|
126
|
+
width?: number;
|
|
127
|
+
fileIdentifyingUrlPathSegment?: string;
|
|
128
|
+
}>;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
interface RawConversation {
|
|
134
|
+
entityUrn?: string;
|
|
135
|
+
conversationTitle?: {
|
|
136
|
+
text?: string;
|
|
137
|
+
};
|
|
138
|
+
lastMessage?: {
|
|
139
|
+
body?: {
|
|
140
|
+
text?: string;
|
|
141
|
+
};
|
|
142
|
+
deliveredAt?: number;
|
|
143
|
+
};
|
|
144
|
+
read?: boolean;
|
|
145
|
+
notificationStatus?: string;
|
|
146
|
+
conversationParticipants?: RawParticipant[];
|
|
147
|
+
}
|
|
148
|
+
export declare const mapConversation: (c: RawConversation) => {
|
|
149
|
+
conversation_urn: string;
|
|
150
|
+
title: string;
|
|
151
|
+
last_message_text: string;
|
|
152
|
+
last_message_at: number;
|
|
153
|
+
is_read: boolean;
|
|
154
|
+
notification_status: string;
|
|
155
|
+
participants: {
|
|
156
|
+
name: string;
|
|
157
|
+
profile_urn: string;
|
|
158
|
+
profile_picture_url: string;
|
|
159
|
+
}[];
|
|
160
|
+
};
|
|
161
|
+
export declare const messageSchema: z.ZodObject<{
|
|
162
|
+
message_urn: z.ZodString;
|
|
163
|
+
text: z.ZodString;
|
|
164
|
+
sender_name: z.ZodString;
|
|
165
|
+
sender_profile_urn: z.ZodString;
|
|
166
|
+
delivered_at: z.ZodNumber;
|
|
167
|
+
subject: z.ZodString;
|
|
168
|
+
}, z.core.$strip>;
|
|
169
|
+
interface RawMessage {
|
|
170
|
+
entityUrn?: string;
|
|
171
|
+
body?: {
|
|
172
|
+
text?: string;
|
|
173
|
+
};
|
|
174
|
+
sender?: {
|
|
175
|
+
participantType?: {
|
|
176
|
+
member?: {
|
|
177
|
+
firstName?: {
|
|
178
|
+
text?: string;
|
|
179
|
+
};
|
|
180
|
+
lastName?: {
|
|
181
|
+
text?: string;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
hostIdentityUrn?: string;
|
|
186
|
+
};
|
|
187
|
+
deliveredAt?: number;
|
|
188
|
+
subject?: {
|
|
189
|
+
text?: string;
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
export declare const mapMessage: (m: RawMessage) => {
|
|
193
|
+
message_urn: string;
|
|
194
|
+
text: string;
|
|
195
|
+
sender_name: string;
|
|
196
|
+
sender_profile_urn: string;
|
|
197
|
+
delivered_at: number;
|
|
198
|
+
subject: string;
|
|
199
|
+
};
|
|
200
|
+
export declare const mailboxCountSchema: z.ZodObject<{
|
|
201
|
+
category: z.ZodString;
|
|
202
|
+
unread_count: z.ZodNumber;
|
|
203
|
+
}, z.core.$strip>;
|
|
204
|
+
interface RawMailboxCount {
|
|
205
|
+
category?: string;
|
|
206
|
+
unreadConversationCount?: number;
|
|
207
|
+
}
|
|
208
|
+
export declare const mapMailboxCount: (c: RawMailboxCount) => {
|
|
209
|
+
category: string;
|
|
210
|
+
unread_count: number;
|
|
211
|
+
};
|
|
212
|
+
export {};
|
|
213
|
+
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/tools/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,UAAU,aAAa;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6BAA6B,CAAC,EAAE,MAAM,CAAC;CACxC;AAaD,eAAO,MAAM,iBAAiB;;;;;;;;;iBAS5B,CAAC;AAEH,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE;QACZ,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE;YACR,iCAAiC,CAAC,EAAE;gBAClC,OAAO,CAAC,EAAE,MAAM,CAAC;gBACjB,SAAS,CAAC,EAAE,KAAK,CAAC;oBAChB,KAAK,CAAC,EAAE,MAAM,CAAC;oBACf,6BAA6B,CAAC,EAAE,MAAM,CAAC;iBACxC,CAAC,CAAC;aACJ,CAAC;SACH,CAAC;KACH,CAAC;IACF,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,eAAO,MAAM,cAAc,GAAI,MAAM,aAAa;;;;;;;;;CAcjD,CAAC;AAIF,eAAO,MAAM,aAAa;;;;;;;;;;;;iBAYxB,CAAC;AAEH,UAAU,iBAAiB;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAA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E,MAAM,CAAC;CAClC;AAED,eAAO,MAAM,eAAe,GAAI,GAAG,eAAe;;;CAGhD,CAAC"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Build the highest-resolution picture URL from a LinkedIn vector image. */
|
|
3
|
+
const buildPictureUrl = (rootUrl, artifacts) => {
|
|
4
|
+
const largest = artifacts?.filter(a => a.width !== undefined).sort((a, b) => (b.width ?? 0) - (a.width ?? 0))[0];
|
|
5
|
+
return rootUrl && largest?.fileIdentifyingUrlPathSegment ? `${rootUrl}${largest.fileIdentifyingUrlPathSegment}` : '';
|
|
6
|
+
};
|
|
7
|
+
/** Join first and last name into a full name. */
|
|
8
|
+
const fullName = (first, last) => `${first ?? ''} ${last ?? ''}`.trim();
|
|
9
|
+
// --- Current User (from /voyager/api/me) ---
|
|
10
|
+
export const currentUserSchema = z.object({
|
|
11
|
+
plain_id: z.number().describe('Numeric LinkedIn member ID'),
|
|
12
|
+
first_name: z.string().describe('First name'),
|
|
13
|
+
last_name: z.string().describe('Last name'),
|
|
14
|
+
occupation: z.string().describe('Current headline or occupation'),
|
|
15
|
+
public_identifier: z.string().describe('Public profile slug (e.g., "williamhgates")'),
|
|
16
|
+
profile_urn: z.string().describe('Profile URN (e.g., "urn:li:fsd_profile:...")'),
|
|
17
|
+
profile_picture_url: z.string().describe('Profile picture URL'),
|
|
18
|
+
is_premium: z.boolean().describe('Whether the user has a Premium subscription'),
|
|
19
|
+
});
|
|
20
|
+
export const mapCurrentUser = (data) => {
|
|
21
|
+
const mini = data.miniProfile;
|
|
22
|
+
const picture = mini?.picture?.['com.linkedin.common.VectorImage'];
|
|
23
|
+
return {
|
|
24
|
+
plain_id: data.plainId ?? 0,
|
|
25
|
+
first_name: mini?.firstName ?? '',
|
|
26
|
+
last_name: mini?.lastName ?? '',
|
|
27
|
+
occupation: mini?.occupation ?? '',
|
|
28
|
+
public_identifier: mini?.publicIdentifier ?? '',
|
|
29
|
+
profile_urn: mini?.dashEntityUrn ?? mini?.entityUrn ?? '',
|
|
30
|
+
profile_picture_url: buildPictureUrl(picture?.rootUrl, picture?.artifacts),
|
|
31
|
+
is_premium: data.premiumSubscriber ?? false,
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
// --- Profile (from /voyager/api/identity/dash/profiles) ---
|
|
35
|
+
export const profileSchema = z.object({
|
|
36
|
+
first_name: z.string().describe('First name'),
|
|
37
|
+
last_name: z.string().describe('Last name'),
|
|
38
|
+
headline: z.string().describe('Professional headline'),
|
|
39
|
+
public_identifier: z.string().describe('Public profile slug'),
|
|
40
|
+
profile_urn: z.string().describe('Profile URN'),
|
|
41
|
+
profile_picture_url: z.string().describe('Profile picture URL'),
|
|
42
|
+
location: z.string().describe('Geographic location'),
|
|
43
|
+
country: z.string().describe('Country name'),
|
|
44
|
+
is_premium: z.boolean().describe('Whether the user has a Premium subscription'),
|
|
45
|
+
is_influencer: z.boolean().describe('Whether the user is a LinkedIn influencer'),
|
|
46
|
+
is_creator: z.boolean().describe('Whether the user is a LinkedIn creator'),
|
|
47
|
+
});
|
|
48
|
+
export const mapProfile = (el) => {
|
|
49
|
+
const pic = el.profilePicture?.displayImageReference?.vectorImage;
|
|
50
|
+
return {
|
|
51
|
+
first_name: el.firstName ?? '',
|
|
52
|
+
last_name: el.lastName ?? '',
|
|
53
|
+
headline: el.headline ?? '',
|
|
54
|
+
public_identifier: el.publicIdentifier ?? '',
|
|
55
|
+
profile_urn: el.entityUrn ?? '',
|
|
56
|
+
profile_picture_url: buildPictureUrl(pic?.rootUrl, pic?.artifacts),
|
|
57
|
+
location: el.geoLocation?.geo?.defaultLocalizedNameWithoutCountryName ?? '',
|
|
58
|
+
country: el.geoLocation?.geo?.country?.defaultLocalizedName ?? '',
|
|
59
|
+
is_premium: el.premium ?? false,
|
|
60
|
+
is_influencer: el.influencer ?? false,
|
|
61
|
+
is_creator: el.creator ?? false,
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
// --- Messaging: Conversation ---
|
|
65
|
+
export const conversationSchema = z.object({
|
|
66
|
+
conversation_urn: z.string().describe('Conversation URN identifier'),
|
|
67
|
+
title: z.string().describe('Conversation title or participant name'),
|
|
68
|
+
last_message_text: z.string().describe('Text of the most recent message'),
|
|
69
|
+
last_message_at: z.number().describe('Timestamp of the last message in milliseconds'),
|
|
70
|
+
is_read: z.boolean().describe('Whether the conversation is read'),
|
|
71
|
+
notification_status: z.string().describe('Notification status (ACTIVE, MUTED, etc.)'),
|
|
72
|
+
participants: z
|
|
73
|
+
.array(z.object({
|
|
74
|
+
name: z.string().describe('Participant full name'),
|
|
75
|
+
profile_urn: z.string().describe('Participant profile URN'),
|
|
76
|
+
profile_picture_url: z.string().describe('Participant profile picture URL'),
|
|
77
|
+
}))
|
|
78
|
+
.describe('List of conversation participants'),
|
|
79
|
+
});
|
|
80
|
+
const mapParticipant = (p) => {
|
|
81
|
+
const member = p.participantType?.member;
|
|
82
|
+
const pic = member?.profilePicture;
|
|
83
|
+
return {
|
|
84
|
+
name: fullName(member?.firstName?.text, member?.lastName?.text),
|
|
85
|
+
profile_urn: p.hostIdentityUrn ?? '',
|
|
86
|
+
profile_picture_url: buildPictureUrl(pic?.rootUrl, pic?.artifacts),
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
export const mapConversation = (c) => ({
|
|
90
|
+
conversation_urn: c.entityUrn ?? '',
|
|
91
|
+
title: c.conversationTitle?.text ??
|
|
92
|
+
(c.conversationParticipants ?? [])
|
|
93
|
+
.map(p => fullName(p.participantType?.member?.firstName?.text, p.participantType?.member?.lastName?.text))
|
|
94
|
+
.filter(Boolean)
|
|
95
|
+
.join(', '),
|
|
96
|
+
last_message_text: c.lastMessage?.body?.text ?? '',
|
|
97
|
+
last_message_at: c.lastMessage?.deliveredAt ?? 0,
|
|
98
|
+
is_read: c.read ?? false,
|
|
99
|
+
notification_status: c.notificationStatus ?? '',
|
|
100
|
+
participants: (c.conversationParticipants ?? []).map(mapParticipant),
|
|
101
|
+
});
|
|
102
|
+
// --- Messaging: Message ---
|
|
103
|
+
export const messageSchema = z.object({
|
|
104
|
+
message_urn: z.string().describe('Message URN identifier'),
|
|
105
|
+
text: z.string().describe('Message text content'),
|
|
106
|
+
sender_name: z.string().describe('Sender full name'),
|
|
107
|
+
sender_profile_urn: z.string().describe('Sender profile URN'),
|
|
108
|
+
delivered_at: z.number().describe('Delivery timestamp in milliseconds'),
|
|
109
|
+
subject: z.string().describe('Message subject (if any)'),
|
|
110
|
+
});
|
|
111
|
+
export const mapMessage = (m) => ({
|
|
112
|
+
message_urn: m.entityUrn ?? '',
|
|
113
|
+
text: m.body?.text ?? '',
|
|
114
|
+
sender_name: fullName(m.sender?.participantType?.member?.firstName?.text, m.sender?.participantType?.member?.lastName?.text),
|
|
115
|
+
sender_profile_urn: m.sender?.hostIdentityUrn ?? '',
|
|
116
|
+
delivered_at: m.deliveredAt ?? 0,
|
|
117
|
+
subject: m.subject?.text ?? '',
|
|
118
|
+
});
|
|
119
|
+
// --- Mailbox Counts ---
|
|
120
|
+
export const mailboxCountSchema = z.object({
|
|
121
|
+
category: z.string().describe('Mailbox category (INBOX, SECONDARY_INBOX, ARCHIVE, SPAM, MESSAGE_REQUEST_PENDING)'),
|
|
122
|
+
unread_count: z.number().describe('Number of unread conversations in this category'),
|
|
123
|
+
});
|
|
124
|
+
export const mapMailboxCount = (c) => ({
|
|
125
|
+
category: c.category ?? '',
|
|
126
|
+
unread_count: c.unreadConversationCount ?? 0,
|
|
127
|
+
});
|
|
128
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../src/tools/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,6EAA6E;AAC7E,MAAM,eAAe,GAAG,CAAC,OAAgB,EAAE,SAA2B,EAAU,EAAE;IAChF,MAAM,OAAO,GAAG,SAA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AAuB,IAAI,CAAC;CAC7C,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const sendMessage: import("@opentabs-dev/plugin-sdk").ToolDefinition<z.ZodObject<{
|
|
3
|
+
conversation_urn: z.ZodString;
|
|
4
|
+
text: z.ZodString;
|
|
5
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6
|
+
success: z.ZodBoolean;
|
|
7
|
+
}, z.core.$strip>>;
|
|
8
|
+
//# sourceMappingURL=send-message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-message.d.ts","sourceRoot":"","sources":["../../src/tools/send-message.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,WAAW;;;;;kBAoCtB,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineTool } from '@opentabs-dev/plugin-sdk';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { getMyProfileUrn, messagingAction } from '../linkedin-api.js';
|
|
4
|
+
export const sendMessage = defineTool({
|
|
5
|
+
name: 'send_message',
|
|
6
|
+
displayName: 'Send Message',
|
|
7
|
+
description: 'Send a message in an existing LinkedIn messaging conversation. Requires the conversation URN from list_conversations. The message is sent as the authenticated user.',
|
|
8
|
+
summary: 'Send a message in a conversation',
|
|
9
|
+
icon: 'send',
|
|
10
|
+
group: 'Messaging',
|
|
11
|
+
input: z.object({
|
|
12
|
+
conversation_urn: z
|
|
13
|
+
.string()
|
|
14
|
+
.describe('Conversation URN to send the message in (e.g., "urn:li:msg_conversation:(...)")'),
|
|
15
|
+
text: z.string().describe('Message text to send'),
|
|
16
|
+
}),
|
|
17
|
+
output: z.object({
|
|
18
|
+
success: z.boolean().describe('Whether the message was sent successfully'),
|
|
19
|
+
}),
|
|
20
|
+
handle: async (params) => {
|
|
21
|
+
const profileUrn = await getMyProfileUrn();
|
|
22
|
+
await messagingAction('/voyagerMessagingDashMessengerMessages?action=createMessage', {
|
|
23
|
+
dedupeByClientGeneratedToken: false,
|
|
24
|
+
hostUrn: profileUrn,
|
|
25
|
+
message: {
|
|
26
|
+
body: {
|
|
27
|
+
attributes: [],
|
|
28
|
+
text: params.text,
|
|
29
|
+
},
|
|
30
|
+
conversationUrn: params.conversation_urn,
|
|
31
|
+
originToken: crypto.randomUUID(),
|
|
32
|
+
renderContentUnions: [],
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
return { success: true };
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=send-message.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-message.js","sourceRoot":"","sources":["../../src/tools/send-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAEtE,MAAM,CAAC,MAAM,WAAW,GAAG,UAAU,CAAC;IACpC,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,cAAc;IAC3B,WAAW,EACT,sKAAsK;IACxK,OAAO,EAAE,kCAAkC;IAC3C,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,WAAW;IAClB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,gBAAgB,EAAE,CAAC;aAChB,MAAM,EAAE;aACR,QAAQ,CAAC,iFAAiF,CAAC;QAC9F,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC;KAClD,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,2CAA2C,CAAC;KAC3E,CAAC;IACF,MAAM,EAAE,KAAK,EAA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