Skip to content

Commit f9771d7

Browse files
dlacktyHyunje Jun
authored andcommitted
Add type definition for account link event (#117)
1 parent fca9483 commit f9771d7

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

lib/types.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ export type WebhookEvent =
4949
| MemberJoinEvent
5050
| MemberLeaveEvent
5151
| PostbackEvent
52-
| BeaconEvent;
52+
| BeaconEvent
53+
| AccountLinkEvent;
5354

5455
export type EventBase = {
5556
/**
@@ -195,6 +196,21 @@ export type BeaconEvent = ReplyableEvent & {
195196
};
196197
};
197198

199+
/**
200+
* Event object for when a user has linked his/her LINE account with a provider's service account.
201+
*/
202+
export type AccountLinkEvent = ReplyableEvent & {
203+
type: "accountLink";
204+
link: {
205+
result: "ok" | "failed";
206+
207+
/**
208+
* Specified nonce when verifying the user ID
209+
*/
210+
nonce: string;
211+
};
212+
};
213+
198214
export type EventMessage =
199215
| TextEventMessage
200216
| ImageEventMessage

0 commit comments

Comments
 (0)