Skip to content

Commit 704ef1e

Browse files
Update webhook inbox events
1 parent 4aa8390 commit 704ef1e

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@linkedapi/node",
3-
"version": "2.1.1",
3+
"version": "2.1.2",
44
"description": "Control your LinkedIn accounts and retrieve real-time data, all through this Node.js SDK.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/types/webhooks.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ export type TWebhookEventType =
1010
| 'account.reconnectionRequired'
1111
| 'account.frozen'
1212
| 'account.deleted'
13-
| 'linkedin.messageReceived'
14-
| 'linkedin.messageSent'
13+
| 'inbox.messageReceived'
14+
| 'inbox.messageSent'
1515
| 'webhook.test';
1616

1717
export type TWebhookDeliveryStatus = 'pending' | 'delivering' | 'success' | 'failed';
@@ -83,8 +83,8 @@ export interface TAccountWebhookEvent extends TWebhookEventBase {
8383
};
8484
}
8585

86-
export interface TLinkedInMessageWebhookEvent extends TWebhookEventBase {
87-
type: 'linkedin.messageReceived' | 'linkedin.messageSent';
86+
export interface TInboxMessageWebhookEvent extends TWebhookEventBase {
87+
type: 'inbox.messageReceived' | 'inbox.messageSent';
8888
data: {
8989
accountId: string;
9090
type: TConversationType;
@@ -107,5 +107,5 @@ export interface TWebhookTestEvent extends TWebhookEventBase {
107107
export type TWebhookEvent =
108108
| TWorkflowWebhookEvent
109109
| TAccountWebhookEvent
110-
| TLinkedInMessageWebhookEvent
110+
| TInboxMessageWebhookEvent
111111
| TWebhookTestEvent;

0 commit comments

Comments
 (0)