@line/bot-sdk
Advanced tools
Comparing version 6.5.0 to 6.6.0
@@ -0,1 +1,16 @@ | ||
## 6.6.0 (4 Mar 2019) | ||
### Feature | ||
* Add DeviceLinkEvent / DeviceUnlinkEvent (#123) | ||
### Type | ||
* Fix FlexSpacer to have optional 'size' property (#122) | ||
### Misc | ||
* Run `npm audit fix` to fix minor dependency vulnerability. | ||
## 6.5.0 (16 Feb 2019) | ||
@@ -2,0 +17,0 @@ |
@@ -37,3 +37,3 @@ export interface Config { | ||
*/ | ||
export declare type WebhookEvent = MessageEvent | FollowEvent | UnfollowEvent | JoinEvent | LeaveEvent | MemberJoinEvent | MemberLeaveEvent | PostbackEvent | BeaconEvent | AccountLinkEvent; | ||
export declare type WebhookEvent = MessageEvent | FollowEvent | UnfollowEvent | JoinEvent | LeaveEvent | MemberJoinEvent | MemberLeaveEvent | PostbackEvent | BeaconEvent | AccountLinkEvent | DeviceLinkEvent | DeviceUnlinkEvent; | ||
export declare type EventBase = { | ||
@@ -196,2 +196,30 @@ /** | ||
}; | ||
/** | ||
* Indicates that a LINE Things-compatible device has been linked with LINE by a user operation. | ||
* For more information, see [Receiving device link events via webhook](https://developers.line.biz/en/docs/line-things/develop-bot/#link-event). | ||
*/ | ||
export declare type DeviceLinkEvent = ReplyableEvent & { | ||
type: "things"; | ||
things: { | ||
/** | ||
* Device ID of the LINE Things-compatible device that was linked with LINE | ||
*/ | ||
deviceId: string; | ||
type: "link"; | ||
}; | ||
}; | ||
/** | ||
* Indicates that a LINE Things-compatible device has been unlinked from LINE by a user operation. | ||
* For more information, see [Receiving device unlink events via webhook](https://developers.line.biz/en/docs/line-things/develop-bot/#unlink-event). | ||
*/ | ||
export declare type DeviceUnlinkEvent = ReplyableEvent & { | ||
type: "things"; | ||
things: { | ||
/** | ||
* Device ID of the LINE Things-compatible device that was unlinked with LINE | ||
*/ | ||
deviceId: string; | ||
type: "unlink"; | ||
}; | ||
}; | ||
export declare type EventMessage = TextEventMessage | ImageEventMessage | VideoEventMessage | AudioEventMessage | LocationEventMessage | FileEventMessage | StickerEventMessage; | ||
@@ -983,3 +1011,3 @@ export declare type EventMessageBase = { | ||
*/ | ||
size: "xs" | "sm" | "md" | "lg" | "xl" | "xxl"; | ||
size?: "xs" | "sm" | "md" | "lg" | "xl" | "xxl"; | ||
}; | ||
@@ -986,0 +1014,0 @@ export declare type FlexText = { |
@@ -53,3 +53,5 @@ export interface Config { | ||
| BeaconEvent | ||
| AccountLinkEvent; | ||
| AccountLinkEvent | ||
| DeviceLinkEvent | ||
| DeviceUnlinkEvent; | ||
@@ -215,2 +217,32 @@ export type EventBase = { | ||
/** | ||
* Indicates that a LINE Things-compatible device has been linked with LINE by a user operation. | ||
* For more information, see [Receiving device link events via webhook](https://developers.line.biz/en/docs/line-things/develop-bot/#link-event). | ||
*/ | ||
export type DeviceLinkEvent = ReplyableEvent & { | ||
type: "things"; | ||
things: { | ||
/** | ||
* Device ID of the LINE Things-compatible device that was linked with LINE | ||
*/ | ||
deviceId: string; | ||
type: "link"; | ||
}; | ||
}; | ||
/** | ||
* Indicates that a LINE Things-compatible device has been unlinked from LINE by a user operation. | ||
* For more information, see [Receiving device unlink events via webhook](https://developers.line.biz/en/docs/line-things/develop-bot/#unlink-event). | ||
*/ | ||
export type DeviceUnlinkEvent = ReplyableEvent & { | ||
type: "things"; | ||
things: { | ||
/** | ||
* Device ID of the LINE Things-compatible device that was unlinked with LINE | ||
*/ | ||
deviceId: string; | ||
type: "unlink"; | ||
}; | ||
}; | ||
export type EventMessage = | ||
@@ -1098,3 +1130,3 @@ | TextEventMessage | ||
*/ | ||
size: "xs" | "sm" | "md" | "lg" | "xl" | "xxl"; | ||
size?: "xs" | "sm" | "md" | "lg" | "xl" | "xxl"; | ||
}; | ||
@@ -1101,0 +1133,0 @@ |
{ | ||
"name": "@line/bot-sdk", | ||
"version": "6.5.0", | ||
"version": "6.6.0", | ||
"description": "Node.js SDK for LINE Messaging API", | ||
@@ -58,3 +58,3 @@ "engines": { | ||
"typescript": "^3.1.6", | ||
"vuepress": "^0.14.8" | ||
"vuepress": "^0.14.10" | ||
}, | ||
@@ -61,0 +61,0 @@ "nyc": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
151266
4024