Skip to content

Commit 72fe2b5

Browse files
Sync period
1 parent 6d3b6dc commit 72fe2b5

5 files changed

Lines changed: 18 additions & 6 deletions

File tree

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"author": "Linked API",
3131
"license": "MIT",
3232
"dependencies": {
33-
"@linkedapi/node": "^2.3.6",
33+
"@linkedapi/node": "^2.3.7",
3434
"@modelcontextprotocol/sdk": "^1.17.4",
3535
"zod": "^4.1.1"
3636
},

src/tools/get-conversation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ operationName: OPERATION_NAME.syncConversation };
5757
return {
5858
name: this.name,
5959
description:
60-
'Retrieve a conversation with a LinkedIn person via standard LinkedIn messaging. Returns the conversation immediately if it has already been synced. If the conversation has not been synced yet, this tool starts a syncConversation workflow and returns its ack ({status, workflowId, operationName: "syncConversation", message}); the client should call get_workflow_result with that workflowId until completion, then call get_conversation again to read the synced messages.',
60+
'Retrieve a conversation with a LinkedIn person via standard LinkedIn messaging. Returns the conversation immediately if it has already been synced. If the conversation has not been synced yet, this tool starts a syncConversation workflow and returns its ack ({status, workflowId, operationName: "syncConversation", message}); the client should call get_workflow_result with that workflowId until completion, then call get_conversation again to read the synced messages. The result carries syncUntil — the moment syncing of this conversation stops. Once it is in the past the messages are still returned but no longer updated; call sync_conversation again for the same person to resume updates.',
6161
inputSchema: {
6262
type: 'object',
6363
properties: {

src/tools/nv-sync-conversation.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export class NvSyncConversationTool extends OperationTool<TNvSyncConversationPar
99
public override readonly operationName = OPERATION_NAME.nvSyncConversation;
1010
protected override readonly schema = z.object({
1111
personUrl: z.string(),
12+
days: z.number().int().min(1).max(90).optional(),
1213
});
1314

1415
public override getTool(): Tool {
@@ -24,6 +25,11 @@ export class NvSyncConversationTool extends OperationTool<TNvSyncConversationPar
2425
description:
2526
"The LinkedIn URL of the person whose Sales Navigator conversation to sync (e.g., 'https://www.linkedin.com/in/john-doe')",
2627
},
28+
days: {
29+
type: 'number',
30+
description:
31+
'How many days the conversation stays synchronized, from 1 to 90. Defaults to 30. Counted from the moment the action starts running; a reply does not extend it. Syncing the same person again starts a new period and keeps the history already collected.',
32+
},
2733
},
2834
required: ['personUrl'],
2935
},

src/tools/sync-conversation.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export class SyncConversationTool extends OperationTool<TSyncConversationParams,
99
public override readonly operationName = OPERATION_NAME.syncConversation;
1010
protected override readonly schema = z.object({
1111
personUrl: z.string(),
12+
days: z.number().int().min(1).max(90).optional(),
1213
});
1314

1415
public override getTool(): Tool {
@@ -24,6 +25,11 @@ export class SyncConversationTool extends OperationTool<TSyncConversationParams,
2425
description:
2526
"The LinkedIn URL of the person whose conversation you want to synchronize (e.g., 'https://www.linkedin.com/in/john-doe')",
2627
},
28+
days: {
29+
type: 'number',
30+
description:
31+
'How many days the conversation stays synchronized, from 1 to 90. Defaults to 30. Counted from the moment the action starts running; a reply does not extend it. Syncing the same person again starts a new period and keeps the history already collected.',
32+
},
2733
},
2834
required: ['personUrl'],
2935
},

0 commit comments

Comments
 (0)