File tree Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,9 @@ export type WebhookEvent =
50
50
| MemberLeaveEvent
51
51
| PostbackEvent
52
52
| BeaconEvent
53
- | AccountLinkEvent ;
53
+ | AccountLinkEvent
54
+ | DeviceLinkEvent
55
+ | DeviceUnlinkEvent ;
54
56
55
57
export type EventBase = {
56
58
/**
@@ -211,6 +213,36 @@ export type AccountLinkEvent = ReplyableEvent & {
211
213
} ;
212
214
} ;
213
215
216
+ /**
217
+ * Indicates that a LINE Things-compatible device has been linked with LINE by a user operation.
218
+ * For more information, see [Receiving device link events via webhook](https://developers.line.biz/en/docs/line-things/develop-bot/#link-event).
219
+ */
220
+ export type DeviceLinkEvent = ReplyableEvent & {
221
+ type : "things" ;
222
+ things : {
223
+ /**
224
+ * Device ID of the LINE Things-compatible device that was linked with LINE
225
+ */
226
+ deviceId : string ;
227
+ type : "link" ;
228
+ } ;
229
+ } ;
230
+
231
+ /**
232
+ * Indicates that a LINE Things-compatible device has been unlinked from LINE by a user operation.
233
+ * For more information, see [Receiving device unlink events via webhook](https://developers.line.biz/en/docs/line-things/develop-bot/#unlink-event).
234
+ */
235
+ export type DeviceUnlinkEvent = ReplyableEvent & {
236
+ type : "things" ;
237
+ things : {
238
+ /**
239
+ * Device ID of the LINE Things-compatible device that was unlinked with LINE
240
+ */
241
+ deviceId : string ;
242
+ type : "unlink" ;
243
+ } ;
244
+ } ;
245
+
214
246
export type EventMessage =
215
247
| TextEventMessage
216
248
| ImageEventMessage
You can’t perform that action at this time.
0 commit comments