Skip to content

Commit 18ccfa6

Browse files
committed
update: type.ts
1 parent 7ce5ae9 commit 18ccfa6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/types.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@ export type EventBase = {
7878
* Source user, group, or room object with information about the source of the event.
7979
*/
8080
source: EventSource;
81+
/**
82+
* Webhook Event ID, an ID that uniquely identifies a webhook event
83+
*/
84+
webhookEventId: string;
85+
/**
86+
* Whether the webhook event is a redelivered one or not
87+
*/
88+
deliveryContext: DeliveryContext;
8189
};
8290

8391
export type EventSource = User | Group | Room;
@@ -110,6 +118,8 @@ export type Room = {
110118
userId?: string;
111119
};
112120

121+
export type DeliveryContext = { isRedelivery: boolean };
122+
113123
export type ReplyableEvent = EventBase & { replyToken: string };
114124

115125
/**

0 commit comments

Comments
 (0)