@line/bot-sdk
Advanced tools
Comparing version 7.4.0 to 7.5.0
@@ -0,1 +1,27 @@ | ||
## 7.5.0 (8 Apr 2022) | ||
### Feature | ||
* add oauth verify api (#291) | ||
* Messaging API Update - November 2021 (#316) | ||
* Update type definition with image set (#305) | ||
* Flex message update 3 (#329) | ||
### Bug fix | ||
* Fix http method of updateRichMenuAlias (#310) | ||
* docs: fix broken link (#308) | ||
### Misc | ||
* add rich menu sample code (#314) | ||
* Bump follow-redirects from 1.14.3 to 1.14.9 (#332) | ||
* Bump follow-redirects from 1.14.4 to 1.14.9 in /examples/rich-menu (#333) | ||
* Bump follow-redirects from 1.14.0 to 1.14.9 in /examples/echo-bot (#335) | ||
* Bump follow-redirects from 1.14.0 to 1.14.9 in /examples/echo-bot-ts (#334) | ||
* Bump ajv from 6.12.2 to 6.12.6 in /examples/kitchensink (#320) | ||
* Bump lodash from 4.17.19 to 4.17.21 in /examples/kitchensink (#286) | ||
* update dependencies by using npm update (#331) | ||
* update ci badge (#313) | ||
* Migrate Travis CI to GitHub Actions (#312) | ||
* Allow pixel values for flex sizing (#309) | ||
* Correct flex text type def (#311) | ||
## 7.4.0 (7 Sep 2021) | ||
@@ -2,0 +28,0 @@ |
@@ -158,2 +158,4 @@ /// <reference types="node" /> | ||
revokeAccessToken(access_token: string): Promise<{}>; | ||
verifyAccessToken(access_token: string): Promise<Types.VerifyAccessToken>; | ||
verifyIdToken(id_token: string, client_id: string, nonce?: string, user_id?: string): Promise<Types.VerifyIDToken>; | ||
issueChannelAccessTokenV2_1(client_assertion: string): Promise<Types.ChannelAccessToken>; | ||
@@ -160,0 +162,0 @@ getChannelAccessTokenKeyIdsV2_1(client_assertion: string): Promise<{ |
@@ -111,3 +111,3 @@ "use strict"; | ||
do { | ||
const res = await this.http.get(`${endpoints_1.MESSAGING_API_PREFIX}/followers/ids`, start ? { start } : null); | ||
const res = await this.http.get(`${endpoints_1.MESSAGING_API_PREFIX}/followers/ids`, start ? { start, limit: 1000 } : { limit: 1000 }); | ||
utils_1.ensureJSON(res); | ||
@@ -174,3 +174,3 @@ userIds = userIds.concat(res.userIds); | ||
async updateRichMenuAlias(richMenuAliasId, richMenuId) { | ||
const res = await this.http.put(`${endpoints_1.MESSAGING_API_PREFIX}/richmenu/alias/${richMenuAliasId}`, { | ||
const res = await this.http.post(`${endpoints_1.MESSAGING_API_PREFIX}/richmenu/alias/${richMenuAliasId}`, { | ||
richMenuId, | ||
@@ -367,2 +367,13 @@ }); | ||
} | ||
verifyAccessToken(access_token) { | ||
return this.http.get(`${endpoints_1.OAUTH_BASE_PREFIX_V2_1}/verify`, { access_token }); | ||
} | ||
verifyIdToken(id_token, client_id, nonce, user_id) { | ||
return this.http.postForm(`${endpoints_1.OAUTH_BASE_PREFIX}/verify`, { | ||
id_token, | ||
client_id, | ||
nonce, | ||
user_id, | ||
}); | ||
} | ||
issueChannelAccessTokenV2_1(client_assertion) { | ||
@@ -369,0 +380,0 @@ return this.http.postForm(`${endpoints_1.OAUTH_BASE_PREFIX_V2_1}/token`, { |
@@ -210,3 +210,3 @@ import { Readable } from "stream"; | ||
`${MESSAGING_API_PREFIX}/followers/ids`, | ||
start ? { start } : null, | ||
start ? { start, limit: 1000 } : { limit: 1000 }, | ||
); | ||
@@ -330,3 +330,3 @@ ensureJSON(res); | ||
): Promise<{}> { | ||
const res = await this.http.put<{}>( | ||
const res = await this.http.post<{}>( | ||
`${MESSAGING_API_PREFIX}/richmenu/alias/${richMenuAliasId}`, | ||
@@ -751,2 +751,22 @@ { | ||
public verifyAccessToken( | ||
access_token: string, | ||
): Promise<Types.VerifyAccessToken> { | ||
return this.http.get(`${OAUTH_BASE_PREFIX_V2_1}/verify`, { access_token }); | ||
} | ||
public verifyIdToken( | ||
id_token: string, | ||
client_id: string, | ||
nonce?: string, | ||
user_id?: string, | ||
): Promise<Types.VerifyIDToken> { | ||
return this.http.postForm(`${OAUTH_BASE_PREFIX}/verify`, { | ||
id_token, | ||
client_id, | ||
nonce, | ||
user_id, | ||
}); | ||
} | ||
public issueChannelAccessTokenV2_1( | ||
@@ -753,0 +773,0 @@ client_assertion: string, |
{ | ||
"name": "@line/bot-sdk", | ||
"version": "7.4.0", | ||
"version": "7.5.0", | ||
"description": "Node.js SDK for LINE Messaging API", | ||
@@ -39,6 +39,6 @@ "engines": { | ||
"dependencies": { | ||
"@types/body-parser": "^1.19.0", | ||
"@types/node": "^14.10.0", | ||
"@types/body-parser": "^1.19.2", | ||
"@types/node": "^14.18.12", | ||
"axios": "^0.21.1", | ||
"body-parser": "^1.19.0", | ||
"body-parser": "^1.20.0", | ||
"file-type": "^15.0.0", | ||
@@ -51,12 +51,12 @@ "form-data": "^3.0.0" | ||
"@types/mocha": "^8.0.3", | ||
"express": "^4.17.1", | ||
"finalhandler": "^1.1.2", | ||
"express": "^4.17.3", | ||
"finalhandler": "^1.2.0", | ||
"husky": "^4.3.0", | ||
"mocha": "^8.1.3", | ||
"nock": "^13.0.4", | ||
"nock": "^13.2.4", | ||
"nyc": "^15.1.0", | ||
"prettier": "^2.1.1", | ||
"prettier": "^2.6.2", | ||
"ts-node": "^9.0.0", | ||
"typescript": "^3.9.7", | ||
"vuepress": "^1.5.4" | ||
"vuepress": "^1.9.7" | ||
}, | ||
@@ -63,0 +63,0 @@ "husky": { |
# LINE Messaging API SDK for nodejs | ||
[![Travis CI](https://travis-ci.org/line/line-bot-sdk-nodejs.svg?branch=master)](https://travis-ci.org/line/line-bot-sdk-nodejs) | ||
[![Github Action](https://github.com/line/line-bot-sdk-nodejs/actions/workflows/test.yml/badge.svg)](https://github.com/line/line-bot-sdk-nodejs/actions/workflows/test.yml) | ||
[![npmjs](https://badge.fury.io/js/%40line%2Fbot-sdk.svg)](https://www.npmjs.com/package/@line/bot-sdk) | ||
@@ -5,0 +5,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
273883
7087
Updated@types/body-parser@^1.19.2
Updated@types/node@^14.18.12
Updatedbody-parser@^1.20.0