@@ -21,8 +21,10 @@ import {
2121 NvSendMessage ,
2222 NvSyncConversation ,
2323 NvSyncInbox ,
24+ ReactToComment ,
2425 ReactToPost ,
2526 RemoveConnection ,
27+ ReplyToComment ,
2628 RetrieveConnectionRequests ,
2729 RetrieveConnections ,
2830 RetrievePendingRequests ,
@@ -125,6 +127,8 @@ class LinkedApi {
125127 this . fetchJob = new FetchJob ( this . httpClient ) ;
126128 this . reactToPost = new ReactToPost ( this . httpClient ) ;
127129 this . commentOnPost = new CommentOnPost ( this . httpClient ) ;
130+ this . reactToComment = new ReactToComment ( this . httpClient ) ;
131+ this . replyToComment = new ReplyToComment ( this . httpClient ) ;
128132 this . createPost = new CreatePost ( this . httpClient ) ;
129133 this . retrieveSSI = new RetrieveSSI ( this . httpClient ) ;
130134 this . retrievePerformance = new RetrievePerformance ( this . httpClient ) ;
@@ -162,6 +166,8 @@ class LinkedApi {
162166 this . fetchJob ,
163167 this . reactToPost ,
164168 this . commentOnPost ,
169+ this . reactToComment ,
170+ this . replyToComment ,
165171 this . createPost ,
166172 this . retrieveSSI ,
167173 this . retrievePerformance ,
@@ -1299,12 +1305,63 @@ class LinkedApi {
12991305 * text: "Great insights! Thanks for sharing this valuable information."
13001306 * });
13011307 *
1302- * await linkedapi.commentOnPost.result(workflow.workflowId);
1303- * console.log("Comment posted successfully" );
1308+ * const { data } = await linkedapi.commentOnPost.result(workflow.workflowId);
1309+ * console.log("Comment posted:", data?.commentUrn, data?.commentUrl );
13041310 * ```
13051311 */
13061312 public commentOnPost : CommentOnPost ;
13071313
1314+ /**
1315+ * React to a LinkedIn comment with an emoji reaction.
1316+ *
1317+ * This method adds a reaction (like, love, celebrate, support, funny, insightful) to a specific
1318+ * comment, identified by its comment URL (as returned by `commentOnPost` / `fetchPost` comments).
1319+ * The reaction type defaults to `like` when omitted.
1320+ *
1321+ * @param params - Parameters including the comment URL and optional reaction type
1322+ * @returns Promise resolving to the reaction action
1323+ *
1324+ * @see {@link https://linkedapi.io/docs/reacting-and-commenting/ Reacting and Commenting Documentation }
1325+ * @see {@link https://linkedapi.io/docs/action-st-react-to-comment/ st.reactToComment Action Documentation }
1326+ *
1327+ * @example
1328+ * ```typescript
1329+ * const workflow = await linkedapi.reactToComment.execute({
1330+ * commentUrl: "https://www.linkedin.com/feed/update/urn:li:activity:123/?dashCommentUrn=urn:li:fsd_comment:(456,urn:li:activity:123)",
1331+ * type: "like"
1332+ * });
1333+ *
1334+ * await linkedapi.reactToComment.result(workflow.workflowId);
1335+ * console.log("Comment reaction added successfully");
1336+ * ```
1337+ */
1338+ public reactToComment : ReactToComment ;
1339+
1340+ /**
1341+ * Reply to a LinkedIn comment.
1342+ *
1343+ * This method posts a text reply to a specific comment, identified by its comment URL. It returns
1344+ * the created reply's `commentUrn` and `commentUrl` so it can be tracked or acted on afterwards.
1345+ *
1346+ * @param params - Parameters including the comment URL and reply text
1347+ * @returns Promise resolving to the created reply's URN and URL
1348+ *
1349+ * @see {@link https://linkedapi.io/docs/reacting-and-commenting/ Reacting and Commenting Documentation }
1350+ * @see {@link https://linkedapi.io/docs/action-st-reply-to-comment/ st.replyToComment Action Documentation }
1351+ *
1352+ * @example
1353+ * ```typescript
1354+ * const workflow = await linkedapi.replyToComment.execute({
1355+ * commentUrl: "https://www.linkedin.com/feed/update/urn:li:activity:123/?dashCommentUrn=urn:li:fsd_comment:(456,urn:li:activity:123)",
1356+ * text: "Totally agree — thanks for adding this!"
1357+ * });
1358+ *
1359+ * const { data } = await linkedapi.replyToComment.result(workflow.workflowId);
1360+ * console.log("Reply posted:", data?.commentUrn, data?.commentUrl);
1361+ * ```
1362+ */
1363+ public replyToComment : ReplyToComment ;
1364+
13081365 /**
13091366 * Create a LinkedIn post on your personal profile or a company page.
13101367 *
0 commit comments