@@ -10,8 +10,10 @@ import {
1010 FetchJob ,
1111 FetchPerson ,
1212 FetchPost ,
13+ ManageConversation ,
1314 NvFetchCompany ,
1415 NvFetchPerson ,
16+ NvManageConversation ,
1517 NvSearchCompanies ,
1618 NvSearchPeople ,
1719 NvSendMessage ,
@@ -97,6 +99,7 @@ class LinkedApi {
9799 this . sendMessage = new SendMessage ( this . httpClient ) ;
98100 this . syncConversation = new SyncConversation ( this . httpClient ) ;
99101 this . syncInbox = new SyncInbox ( this . httpClient ) ;
102+ this . manageConversation = new ManageConversation ( this . httpClient ) ;
100103 this . checkConnectionStatus = new CheckConnectionStatus ( this . httpClient ) ;
101104 this . sendConnectionRequest = new SendConnectionRequest ( this . httpClient ) ;
102105 this . withdrawConnectionRequest = new WithdrawConnectionRequest ( this . httpClient ) ;
@@ -118,6 +121,7 @@ class LinkedApi {
118121 this . nvSendMessage = new NvSendMessage ( this . httpClient ) ;
119122 this . nvSyncConversation = new NvSyncConversation ( this . httpClient ) ;
120123 this . nvSyncInbox = new NvSyncInbox ( this . httpClient ) ;
124+ this . nvManageConversation = new NvManageConversation ( this . httpClient ) ;
121125 this . nvSearchCompanies = new NvSearchCompanies ( this . httpClient ) ;
122126 this . nvSearchPeople = new NvSearchPeople ( this . httpClient ) ;
123127 this . nvFetchCompany = new NvFetchCompany ( this . httpClient ) ;
@@ -128,6 +132,7 @@ class LinkedApi {
128132 this . sendMessage ,
129133 this . syncConversation ,
130134 this . syncInbox ,
135+ this . manageConversation ,
131136 this . checkConnectionStatus ,
132137 this . sendConnectionRequest ,
133138 this . withdrawConnectionRequest ,
@@ -149,6 +154,7 @@ class LinkedApi {
149154 this . nvSendMessage ,
150155 this . nvSyncConversation ,
151156 this . nvSyncInbox ,
157+ this . nvManageConversation ,
152158 this . nvSearchCompanies ,
153159 this . nvSearchPeople ,
154160 this . nvFetchCompany ,
@@ -273,6 +279,32 @@ class LinkedApi {
273279 */
274280 public syncInbox : SyncInbox ;
275281
282+ /**
283+ * Manage a standard LinkedIn conversation thread.
284+ *
285+ * This method applies a management operation to a conversation thread identified by its `threadId`
286+ * (as returned by {@link pollInbox} or {@link pollConversations}, or read from an open conversation URL).
287+ * Supported operations are `archive`, `unarchive`, `star`, `unstar`, `mute`, and `unmute`. This action
288+ * returns no data and can fail with a `threadNotFound` error if the thread does not exist.
289+ *
290+ * @param params - Parameters including the thread id and the operation to apply
291+ * @returns Promise resolving to the management action
292+ *
293+ * @see {@link https://linkedapi.io/docs/working-with-conversations/ Working with Conversations Documentation }
294+ *
295+ * @example
296+ * ```typescript
297+ * const workflow = await linkedapi.manageConversation.execute({
298+ * threadId: "2-Zjhm...",
299+ * operation: "archive"
300+ * });
301+ *
302+ * await linkedapi.manageConversation.result(workflow.workflowId);
303+ * console.log("Conversation updated successfully");
304+ * ```
305+ */
306+ public manageConversation : ManageConversation ;
307+
276308 /**
277309 * Send a message to a LinkedIn user via Sales Navigator.
278310 *
@@ -348,6 +380,33 @@ class LinkedApi {
348380 */
349381 public nvSyncInbox : NvSyncInbox ;
350382
383+ /**
384+ * Manage a Sales Navigator conversation thread.
385+ *
386+ * This method applies a management operation to a Sales Navigator conversation thread identified by its
387+ * `threadId` (as returned by {@link pollInbox} or {@link pollConversations}, or read from an open
388+ * conversation URL). Supported operations are `archive` and `unarchive`. This action returns no data and
389+ * can fail with a `noSalesNavigator` error if the account does not have Sales Navigator, or a
390+ * `threadNotFound` error if the thread does not exist.
391+ *
392+ * @param params - Parameters including the thread id and the operation to apply
393+ * @returns Promise resolving to the management action
394+ *
395+ * @see {@link https://linkedapi.io/docs/working-with-conversations/ Working with Conversations Documentation }
396+ *
397+ * @example
398+ * ```typescript
399+ * const workflow = await linkedapi.nvManageConversation.execute({
400+ * threadId: "2-Zjhm...",
401+ * operation: "archive"
402+ * });
403+ *
404+ * await linkedapi.nvManageConversation.result(workflow.workflowId);
405+ * console.log("Sales Navigator conversation updated successfully");
406+ * ```
407+ */
408+ public nvManageConversation : NvManageConversation ;
409+
351410 /**
352411 * Poll multiple conversations to retrieve message history and new messages.
353412 *
0 commit comments