@openclaw/line 2026.7.1-beta.2 → 2026.7.1-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.js +1 -1
- package/dist/{card-command-DZVv78B6.js → card-command--jtkAqp8.js} +1 -1
- package/dist/{channel-DIpdZiwc.js → channel-C_8hLniz.js} +83 -37
- package/dist/channel-plugin-api.js +1 -1
- package/dist/channel.runtime-Bh_AQM0k.js +4 -0
- package/dist/{flex-templates-DPBtqQ8R.js → flex-templates-DEIXn69v.js} +6 -2
- package/dist/index.js +1 -1
- package/dist/{markdown-to-line-CFx7ME4o.js → markdown-to-line-DmpZY78n.js} +2 -2
- package/dist/{monitor-DzkYuWhv.js → monitor-0eXlx_Pe.js} +53 -14
- package/dist/monitor.runtime-BGIpxzfB.js +2 -0
- package/dist/{outbound.runtime-BPz8U_hw.js → outbound.runtime-BwC7Y2U9.js} +1 -1
- package/dist/{reply-payload-transform-BwF-zq0G.js → reply-payload-transform-C7r5npxP.js} +3 -2
- package/dist/runtime-api.js +4 -4
- package/node_modules/@line/bot-sdk/dist/channel-access-token/api/channelAccessTokenClient.d.ts +109 -60
- package/node_modules/@line/bot-sdk/dist/channel-access-token/api/channelAccessTokenClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/channel-access-token/api/channelAccessTokenClient.js +116 -100
- package/node_modules/@line/bot-sdk/dist/channel-access-token/api/channelAccessTokenClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/channel-access-token/model/errorResponse.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/channel-access-token/model/errorResponse.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/channel-access-token/model/issueChannelAccessTokenResponse.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/channel-access-token/model/issueShortLivedChannelAccessTokenResponse.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/channel-access-token/model/issueStatelessChannelAccessTokenResponse.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/channel-access-token/model/verifyChannelAccessTokenResponse.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/channel-access-token/model/verifyChannelAccessTokenResponse.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/channel-access-token/api/channelAccessTokenClient.d.ts +109 -60
- package/node_modules/@line/bot-sdk/dist/cjs/channel-access-token/api/channelAccessTokenClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/channel-access-token/api/channelAccessTokenClient.js +150 -101
- package/node_modules/@line/bot-sdk/dist/cjs/channel-access-token/api/channelAccessTokenClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/channel-access-token/model/errorResponse.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/channel-access-token/model/errorResponse.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/channel-access-token/model/issueChannelAccessTokenResponse.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/channel-access-token/model/issueShortLivedChannelAccessTokenResponse.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/channel-access-token/model/issueStatelessChannelAccessTokenResponse.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/channel-access-token/model/verifyChannelAccessTokenResponse.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/channel-access-token/model/verifyChannelAccessTokenResponse.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/exceptions.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/exceptions.js +4 -1
- package/node_modules/@line/bot-sdk/dist/cjs/exceptions.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/http-fetch.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/http-fetch.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/http-fetch.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/index.js +36 -11
- package/node_modules/@line/bot-sdk/dist/cjs/index.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/insight/api/insightClient.d.ts +119 -30
- package/node_modules/@line/bot-sdk/dist/cjs/insight/api/insightClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/insight/api/insightClient.js +172 -51
- package/node_modules/@line/bot-sdk/dist/cjs/insight/api/insightClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/ageTile.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/ageTile.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/appTypeTile.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/appTypeTile.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/areaTile.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/areaTile.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/errorDetail.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/errorDetail.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/genderTile.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/genderTile.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getMessageEventResponseClick.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getMessageEventResponseClick.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getMessageEventResponseMessage.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getMessageEventResponseMessage.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getMessageEventResponseOverview.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getMessageEventResponseOverview.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightDailyResponse.d.ts +38 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightDailyResponse.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightDailyResponse.js +14 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightDailyResponse.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightDailyResponseBounds.d.ts +33 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightDailyResponseBounds.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightDailyResponseBounds.js +14 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightDailyResponseBounds.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightDailyResponseClick.d.ts +24 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightDailyResponseClick.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightDailyResponseClick.js +14 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightDailyResponseClick.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightDailyResponseDailyMetrics.d.ts +30 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightDailyResponseDailyMetrics.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightDailyResponseDailyMetrics.js +14 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightDailyResponseDailyMetrics.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightDailyResponseImpression.d.ts +22 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightDailyResponseImpression.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightDailyResponseImpression.js +14 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightDailyResponseImpression.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightSummaryResponse.d.ts +38 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightSummaryResponse.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightSummaryResponse.js +14 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightSummaryResponse.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightSummaryResponseBounds.d.ts +33 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightSummaryResponseBounds.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightSummaryResponseBounds.js +14 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightSummaryResponseBounds.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightSummaryResponseClick.d.ts +21 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightSummaryResponseClick.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightSummaryResponseClick.js +14 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightSummaryResponseClick.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightSummaryResponseImpression.d.ts +19 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightSummaryResponseImpression.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightSummaryResponseImpression.js +14 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightSummaryResponseImpression.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightSummaryResponseMetrics.d.ts +25 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightSummaryResponseMetrics.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightSummaryResponseMetrics.js +14 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/getRichMenuInsightSummaryResponseMetrics.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/models.d.ts +10 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/models.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/models.js +10 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/models.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/subscriptionPeriodTile.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/insight/model/subscriptionPeriodTile.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/liff/api/liffClient.d.ts +60 -24
- package/node_modules/@line/bot-sdk/dist/cjs/liff/api/liffClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/liff/api/liffClient.js +83 -25
- package/node_modules/@line/bot-sdk/dist/cjs/liff/api/liffClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/liff/model/addLiffAppResponse.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/liff/model/addLiffAppResponse.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/liff/model/getAllLiffAppsResponse.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/liff/model/getAllLiffAppsResponse.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/liff/model/liffApp.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/liff/model/liffApp.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/liff/model/liffFeatures.d.ts +4 -1
- package/node_modules/@line/bot-sdk/dist/cjs/liff/model/liffFeatures.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.factory.generated.js +40 -7
- package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.factory.generated.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.generated.d.ts +948 -600
- package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.generated.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.generated.js +956 -600
- package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.generated.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.js +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/api/manageAudienceBlobClient.d.ts +42 -12
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/api/manageAudienceBlobClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/api/manageAudienceBlobClient.js +65 -13
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/api/manageAudienceBlobClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/api/manageAudienceClient.d.ts +114 -60
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/api/manageAudienceClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/api/manageAudienceClient.js +167 -71
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/api/manageAudienceClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/model/addAudienceToAudienceGroupRequest.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/model/createAudienceGroupRequest.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/model/createClickBasedAudienceGroupRequest.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/model/createClickBasedAudienceGroupResponse.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/model/createImpBasedAudienceGroupRequest.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/model/getAudienceDataResponse.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/model/getSharedAudienceDataResponse.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/model/updateAudienceGroupDescriptionRequest.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/api/messagingApiBlobClient.d.ts +69 -30
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/api/messagingApiBlobClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/api/messagingApiBlobClient.js +92 -31
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/api/messagingApiBlobClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/api/messagingApiClient.d.ts +636 -408
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/api/messagingApiClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/api/messagingApiClient.js +693 -475
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/api/messagingApiClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/altUri.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/broadcastRequest.d.ts +3 -3
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/cashBackPercentagePriceInfoRequest.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/clipboardAction.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/clipboardImagemapAction.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/couponCreateRequest.d.ts +7 -7
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/couponMessage.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/createRichMenuAliasRequest.d.ts +3 -3
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/datetimePickerAction.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/discountPercentagePriceInfoRequest.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/errorResponse.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/flexImage.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/getFollowersResponse.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/getJoinedMembershipUsersResponse.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/getMembershipSubscriptionResponse.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/limit.d.ts +3 -3
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/lotteryAcquisitionConditionRequest.d.ts +3 -3
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/membersIdsResponse.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/membership.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/membershipListResponse.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/multicastRequest.d.ts +6 -6
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/narrowcastRequest.d.ts +3 -3
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/pnpMessagesRequest.d.ts +3 -3
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/postbackAction.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/pushMessageRequest.d.ts +3 -3
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/pushMessageResponse.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/quickReply.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/quickReplyItem.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/replyMessageRequest.d.ts +3 -3
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/replyMessageResponse.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/richMenuBatchRequest.d.ts +4 -4
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/richMenuBounds.d.ts +8 -8
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/richMenuBulkLinkRequest.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/richMenuBulkUnlinkRequest.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/richMenuRequest.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/richMenuResponse.d.ts +6 -3
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/richMenuResponse.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/richMenuSize.d.ts +4 -4
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/richMenuSwitchAction.d.ts +4 -4
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/sender.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/setWebhookEndpointRequest.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/showLoadingAnimationRequest.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/subscribedMembershipPlan.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/testWebhookEndpointRequest.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/validateMessageRequest.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/cjs/middleware.js +39 -3
- package/node_modules/@line/bot-sdk/dist/cjs/middleware.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/module/api/lineModuleClient.d.ts +60 -24
- package/node_modules/@line/bot-sdk/dist/cjs/module/api/lineModuleClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/module/api/lineModuleClient.js +89 -30
- package/node_modules/@line/bot-sdk/dist/cjs/module/api/lineModuleClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/module/model/acquireChatControlRequest.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/module-attach/api/lineModuleAttachClient.d.ts +33 -6
- package/node_modules/@line/bot-sdk/dist/cjs/module-attach/api/lineModuleAttachClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/module-attach/api/lineModuleAttachClient.js +77 -12
- package/node_modules/@line/bot-sdk/dist/cjs/module-attach/api/lineModuleAttachClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/module-attach/model/attachModuleResponse.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/module-attach/model/attachModuleResponse.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/shop/api/shopClient.d.ts +33 -6
- package/node_modules/@line/bot-sdk/dist/cjs/shop/api/shopClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/shop/api/shopClient.js +56 -7
- package/node_modules/@line/bot-sdk/dist/cjs/shop/api/shopClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/version.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/version.js +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/accountLinkEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/accountLinkEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/activatedEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/activatedEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/attachedModuleContent.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/attachedModuleContent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/audioMessageContent.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/audioMessageContent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/beaconContent.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/beaconContent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/beaconEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/beaconEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/botResumedEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/botResumedEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/botSuspendedEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/botSuspendedEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/callbackRequest.d.ts +3 -3
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/chatControl.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/chatControl.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/deactivatedEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/deactivatedEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/detachedModuleContent.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/detachedModuleContent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/fileMessageContent.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/fileMessageContent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/followDetail.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/followDetail.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/followEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/followEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/imageMessageContent.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/imageMessageContent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/joinEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/joinEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/joinedMembers.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/joinedMembers.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/leaveEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/leaveEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/leftMembers.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/leftMembers.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/linkContent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/linkContent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/locationMessageContent.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/locationMessageContent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/memberJoinedEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/memberJoinedEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/memberLeftEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/memberLeftEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/membershipContent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/membershipContent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/membershipEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/membershipEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/messageEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/messageEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/moduleContent.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/moduleContent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/moduleEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/moduleEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/pnpDelivery.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/pnpDelivery.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/pnpDeliveryCompletionEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/pnpDeliveryCompletionEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/postbackContent.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/postbackContent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/postbackEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/postbackEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/stickerMessageContent.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/textMessageContent.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/textMessageContent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/unfollowEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/unfollowEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/unsendDetail.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/unsendDetail.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/unsendEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/unsendEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/videoMessageContent.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/videoMessageContent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/videoPlayComplete.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/videoPlayComplete.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/videoPlayCompleteEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/cjs/webhook/model/videoPlayCompleteEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/exceptions.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/exceptions.js +4 -1
- package/node_modules/@line/bot-sdk/dist/exceptions.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/http-fetch.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/http-fetch.js +3 -0
- package/node_modules/@line/bot-sdk/dist/http-fetch.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/insight/api/insightClient.d.ts +119 -30
- package/node_modules/@line/bot-sdk/dist/insight/api/insightClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/insight/api/insightClient.js +138 -50
- package/node_modules/@line/bot-sdk/dist/insight/api/insightClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/insight/model/ageTile.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/ageTile.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/insight/model/appTypeTile.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/appTypeTile.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/insight/model/areaTile.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/areaTile.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/insight/model/errorDetail.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/errorDetail.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/insight/model/genderTile.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/genderTile.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/insight/model/getMessageEventResponseClick.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getMessageEventResponseClick.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/insight/model/getMessageEventResponseMessage.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getMessageEventResponseMessage.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/insight/model/getMessageEventResponseOverview.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getMessageEventResponseOverview.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightDailyResponse.d.ts +38 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightDailyResponse.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightDailyResponse.js +13 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightDailyResponse.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightDailyResponseBounds.d.ts +33 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightDailyResponseBounds.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightDailyResponseBounds.js +13 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightDailyResponseBounds.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightDailyResponseClick.d.ts +24 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightDailyResponseClick.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightDailyResponseClick.js +13 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightDailyResponseClick.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightDailyResponseDailyMetrics.d.ts +30 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightDailyResponseDailyMetrics.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightDailyResponseDailyMetrics.js +13 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightDailyResponseDailyMetrics.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightDailyResponseImpression.d.ts +22 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightDailyResponseImpression.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightDailyResponseImpression.js +13 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightDailyResponseImpression.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightSummaryResponse.d.ts +38 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightSummaryResponse.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightSummaryResponse.js +13 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightSummaryResponse.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightSummaryResponseBounds.d.ts +33 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightSummaryResponseBounds.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightSummaryResponseBounds.js +13 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightSummaryResponseBounds.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightSummaryResponseClick.d.ts +21 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightSummaryResponseClick.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightSummaryResponseClick.js +13 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightSummaryResponseClick.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightSummaryResponseImpression.d.ts +19 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightSummaryResponseImpression.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightSummaryResponseImpression.js +13 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightSummaryResponseImpression.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightSummaryResponseMetrics.d.ts +25 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightSummaryResponseMetrics.d.ts.map +1 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightSummaryResponseMetrics.js +13 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/getRichMenuInsightSummaryResponseMetrics.js.map +1 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/models.d.ts +10 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/models.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/insight/model/models.js +10 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/models.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/insight/model/subscriptionPeriodTile.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/insight/model/subscriptionPeriodTile.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/liff/api/liffClient.d.ts +60 -24
- package/node_modules/@line/bot-sdk/dist/liff/api/liffClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/liff/api/liffClient.js +49 -24
- package/node_modules/@line/bot-sdk/dist/liff/api/liffClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/liff/model/addLiffAppResponse.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/liff/model/addLiffAppResponse.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/liff/model/getAllLiffAppsResponse.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/liff/model/getAllLiffAppsResponse.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/liff/model/liffApp.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/liff/model/liffApp.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/liff/model/liffFeatures.d.ts +4 -1
- package/node_modules/@line/bot-sdk/dist/liff/model/liffFeatures.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/line-bot-client.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/line-bot-client.generated.d.ts +948 -600
- package/node_modules/@line/bot-sdk/dist/line-bot-client.generated.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/line-bot-client.generated.js +956 -600
- package/node_modules/@line/bot-sdk/dist/line-bot-client.generated.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/line-bot-client.js +1 -1
- package/node_modules/@line/bot-sdk/dist/manage-audience/api/manageAudienceBlobClient.d.ts +42 -12
- package/node_modules/@line/bot-sdk/dist/manage-audience/api/manageAudienceBlobClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/manage-audience/api/manageAudienceBlobClient.js +31 -12
- package/node_modules/@line/bot-sdk/dist/manage-audience/api/manageAudienceBlobClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/manage-audience/api/manageAudienceClient.d.ts +114 -60
- package/node_modules/@line/bot-sdk/dist/manage-audience/api/manageAudienceClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/manage-audience/api/manageAudienceClient.js +133 -70
- package/node_modules/@line/bot-sdk/dist/manage-audience/api/manageAudienceClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/manage-audience/model/addAudienceToAudienceGroupRequest.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/manage-audience/model/createAudienceGroupRequest.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/manage-audience/model/createClickBasedAudienceGroupRequest.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/manage-audience/model/createClickBasedAudienceGroupResponse.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/manage-audience/model/createImpBasedAudienceGroupRequest.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/manage-audience/model/getAudienceDataResponse.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/manage-audience/model/getSharedAudienceDataResponse.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/manage-audience/model/updateAudienceGroupDescriptionRequest.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/messaging-api/api/messagingApiBlobClient.d.ts +69 -30
- package/node_modules/@line/bot-sdk/dist/messaging-api/api/messagingApiBlobClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/messaging-api/api/messagingApiBlobClient.js +58 -30
- package/node_modules/@line/bot-sdk/dist/messaging-api/api/messagingApiBlobClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/messaging-api/api/messagingApiClient.d.ts +636 -408
- package/node_modules/@line/bot-sdk/dist/messaging-api/api/messagingApiClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/messaging-api/api/messagingApiClient.js +659 -474
- package/node_modules/@line/bot-sdk/dist/messaging-api/api/messagingApiClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/altUri.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/broadcastRequest.d.ts +3 -3
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/cashBackPercentagePriceInfoRequest.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/clipboardAction.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/clipboardImagemapAction.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/couponCreateRequest.d.ts +7 -7
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/couponMessage.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/createRichMenuAliasRequest.d.ts +3 -3
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/datetimePickerAction.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/discountPercentagePriceInfoRequest.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/errorResponse.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/flexImage.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/getFollowersResponse.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/getJoinedMembershipUsersResponse.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/getMembershipSubscriptionResponse.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/limit.d.ts +3 -3
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/lotteryAcquisitionConditionRequest.d.ts +3 -3
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/membersIdsResponse.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/membership.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/membershipListResponse.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/multicastRequest.d.ts +6 -6
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/narrowcastRequest.d.ts +3 -3
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/pnpMessagesRequest.d.ts +3 -3
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/postbackAction.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/pushMessageRequest.d.ts +3 -3
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/pushMessageResponse.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/quickReply.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/quickReplyItem.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/replyMessageRequest.d.ts +3 -3
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/replyMessageResponse.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/richMenuBatchRequest.d.ts +4 -4
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/richMenuBounds.d.ts +8 -8
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/richMenuBulkLinkRequest.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/richMenuBulkUnlinkRequest.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/richMenuRequest.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/richMenuResponse.d.ts +6 -3
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/richMenuResponse.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/richMenuSize.d.ts +4 -4
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/richMenuSwitchAction.d.ts +4 -4
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/sender.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/setWebhookEndpointRequest.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/showLoadingAnimationRequest.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/subscribedMembershipPlan.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/testWebhookEndpointRequest.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/messaging-api/model/validateMessageRequest.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/middleware.js +1 -1
- package/node_modules/@line/bot-sdk/dist/middleware.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/module/api/lineModuleClient.d.ts +60 -24
- package/node_modules/@line/bot-sdk/dist/module/api/lineModuleClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/module/api/lineModuleClient.js +55 -29
- package/node_modules/@line/bot-sdk/dist/module/api/lineModuleClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/module/model/acquireChatControlRequest.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/module-attach/api/lineModuleAttachClient.d.ts +33 -6
- package/node_modules/@line/bot-sdk/dist/module-attach/api/lineModuleAttachClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/module-attach/api/lineModuleAttachClient.js +43 -11
- package/node_modules/@line/bot-sdk/dist/module-attach/api/lineModuleAttachClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/module-attach/model/attachModuleResponse.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/module-attach/model/attachModuleResponse.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/shop/api/shopClient.d.ts +33 -6
- package/node_modules/@line/bot-sdk/dist/shop/api/shopClient.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/shop/api/shopClient.js +22 -6
- package/node_modules/@line/bot-sdk/dist/shop/api/shopClient.js.map +1 -1
- package/node_modules/@line/bot-sdk/dist/version.d.ts +1 -1
- package/node_modules/@line/bot-sdk/dist/version.js +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/accountLinkEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/accountLinkEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/activatedEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/activatedEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/attachedModuleContent.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/attachedModuleContent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/audioMessageContent.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/audioMessageContent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/beaconContent.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/beaconContent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/beaconEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/beaconEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/botResumedEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/botResumedEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/botSuspendedEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/botSuspendedEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/callbackRequest.d.ts +3 -3
- package/node_modules/@line/bot-sdk/dist/webhook/model/chatControl.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/chatControl.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/deactivatedEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/deactivatedEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/detachedModuleContent.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/detachedModuleContent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/fileMessageContent.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/fileMessageContent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/followDetail.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/followDetail.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/followEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/followEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/imageMessageContent.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/imageMessageContent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/joinEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/joinEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/joinedMembers.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/joinedMembers.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/leaveEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/leaveEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/leftMembers.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/leftMembers.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/linkContent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/linkContent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/locationMessageContent.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/locationMessageContent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/memberJoinedEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/memberJoinedEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/memberLeftEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/memberLeftEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/membershipContent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/membershipContent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/membershipEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/membershipEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/messageEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/messageEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/moduleContent.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/moduleContent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/moduleEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/moduleEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/pnpDelivery.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/pnpDelivery.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/pnpDeliveryCompletionEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/pnpDeliveryCompletionEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/postbackContent.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/postbackContent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/postbackEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/postbackEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/stickerMessageContent.d.ts +2 -2
- package/node_modules/@line/bot-sdk/dist/webhook/model/textMessageContent.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/textMessageContent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/unfollowEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/unfollowEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/unsendDetail.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/unsendDetail.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/unsendEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/unsendEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/videoMessageContent.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/videoMessageContent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/videoPlayComplete.d.ts +3 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/videoPlayComplete.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/dist/webhook/model/videoPlayCompleteEvent.d.ts +1 -0
- package/node_modules/@line/bot-sdk/dist/webhook/model/videoPlayCompleteEvent.d.ts.map +1 -1
- package/node_modules/@line/bot-sdk/lib/channel-access-token/.openapi-generator/FILES +0 -1
- package/node_modules/@line/bot-sdk/lib/channel-access-token/api/channelAccessTokenClient.ts +129 -100
- package/node_modules/@line/bot-sdk/lib/channel-access-token/model/errorResponse.ts +1 -0
- package/node_modules/@line/bot-sdk/lib/channel-access-token/model/issueChannelAccessTokenResponse.ts +1 -1
- package/node_modules/@line/bot-sdk/lib/channel-access-token/model/issueShortLivedChannelAccessTokenResponse.ts +1 -1
- package/node_modules/@line/bot-sdk/lib/channel-access-token/model/issueStatelessChannelAccessTokenResponse.ts +1 -1
- package/node_modules/@line/bot-sdk/lib/channel-access-token/model/verifyChannelAccessTokenResponse.ts +1 -0
- package/node_modules/@line/bot-sdk/lib/exceptions.ts +4 -1
- package/node_modules/@line/bot-sdk/lib/http-fetch.ts +3 -0
- package/node_modules/@line/bot-sdk/lib/insight/.openapi-generator/FILES +10 -1
- package/node_modules/@line/bot-sdk/lib/insight/api/insightClient.ts +184 -50
- package/node_modules/@line/bot-sdk/lib/insight/model/ageTile.ts +3 -0
- package/node_modules/@line/bot-sdk/lib/insight/model/appTypeTile.ts +3 -0
- package/node_modules/@line/bot-sdk/lib/insight/model/areaTile.ts +3 -0
- package/node_modules/@line/bot-sdk/lib/insight/model/errorDetail.ts +3 -0
- package/node_modules/@line/bot-sdk/lib/insight/model/genderTile.ts +3 -0
- package/node_modules/@line/bot-sdk/lib/insight/model/getMessageEventResponseClick.ts +3 -0
- package/node_modules/@line/bot-sdk/lib/insight/model/getMessageEventResponseMessage.ts +3 -0
- package/node_modules/@line/bot-sdk/lib/insight/model/getMessageEventResponseOverview.ts +1 -0
- package/node_modules/@line/bot-sdk/lib/insight/model/getRichMenuInsightDailyResponse.ts +39 -0
- package/node_modules/@line/bot-sdk/lib/insight/model/getRichMenuInsightDailyResponseBounds.ts +33 -0
- package/node_modules/@line/bot-sdk/lib/insight/model/getRichMenuInsightDailyResponseClick.ts +25 -0
- package/node_modules/@line/bot-sdk/lib/insight/model/getRichMenuInsightDailyResponseDailyMetrics.ts +30 -0
- package/node_modules/@line/bot-sdk/lib/insight/model/getRichMenuInsightDailyResponseImpression.ts +23 -0
- package/node_modules/@line/bot-sdk/lib/insight/model/getRichMenuInsightSummaryResponse.ts +39 -0
- package/node_modules/@line/bot-sdk/lib/insight/model/getRichMenuInsightSummaryResponseBounds.ts +33 -0
- package/node_modules/@line/bot-sdk/lib/insight/model/getRichMenuInsightSummaryResponseClick.ts +22 -0
- package/node_modules/@line/bot-sdk/lib/insight/model/getRichMenuInsightSummaryResponseImpression.ts +20 -0
- package/node_modules/@line/bot-sdk/lib/insight/model/getRichMenuInsightSummaryResponseMetrics.ts +25 -0
- package/node_modules/@line/bot-sdk/lib/insight/model/models.ts +10 -0
- package/node_modules/@line/bot-sdk/lib/insight/model/subscriptionPeriodTile.ts +3 -0
- package/node_modules/@line/bot-sdk/lib/liff/.openapi-generator/FILES +0 -1
- package/node_modules/@line/bot-sdk/lib/liff/api/liffClient.ts +60 -24
- package/node_modules/@line/bot-sdk/lib/liff/model/addLiffAppResponse.ts +3 -0
- package/node_modules/@line/bot-sdk/lib/liff/model/getAllLiffAppsResponse.ts +3 -0
- package/node_modules/@line/bot-sdk/lib/liff/model/liffApp.ts +3 -0
- package/node_modules/@line/bot-sdk/lib/liff/model/liffFeatures.ts +4 -1
- package/node_modules/@line/bot-sdk/lib/line-bot-client.generated.ts +984 -600
- package/node_modules/@line/bot-sdk/lib/line-bot-client.ts +1 -1
- package/node_modules/@line/bot-sdk/lib/manage-audience/.openapi-generator/FILES +0 -2
- package/node_modules/@line/bot-sdk/lib/manage-audience/api/manageAudienceBlobClient.ts +42 -12
- package/node_modules/@line/bot-sdk/lib/manage-audience/api/manageAudienceClient.ts +154 -70
- package/node_modules/@line/bot-sdk/lib/manage-audience/model/addAudienceToAudienceGroupRequest.ts +1 -1
- package/node_modules/@line/bot-sdk/lib/manage-audience/model/createAudienceGroupRequest.ts +2 -2
- package/node_modules/@line/bot-sdk/lib/manage-audience/model/createClickBasedAudienceGroupRequest.ts +2 -2
- package/node_modules/@line/bot-sdk/lib/manage-audience/model/createClickBasedAudienceGroupResponse.ts +1 -1
- package/node_modules/@line/bot-sdk/lib/manage-audience/model/createImpBasedAudienceGroupRequest.ts +2 -2
- package/node_modules/@line/bot-sdk/lib/manage-audience/model/getAudienceDataResponse.ts +1 -1
- package/node_modules/@line/bot-sdk/lib/manage-audience/model/getSharedAudienceDataResponse.ts +1 -1
- package/node_modules/@line/bot-sdk/lib/manage-audience/model/updateAudienceGroupDescriptionRequest.ts +2 -2
- package/node_modules/@line/bot-sdk/lib/messaging-api/.openapi-generator/FILES +0 -2
- package/node_modules/@line/bot-sdk/lib/messaging-api/api/messagingApiBlobClient.ts +69 -30
- package/node_modules/@line/bot-sdk/lib/messaging-api/api/messagingApiClient.ts +681 -474
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/altUri.ts +2 -2
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/broadcastRequest.ts +3 -3
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/cashBackPercentagePriceInfoRequest.ts +2 -2
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/clipboardAction.ts +2 -2
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/clipboardImagemapAction.ts +2 -2
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/couponCreateRequest.ts +7 -7
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/couponMessage.ts +1 -1
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/createRichMenuAliasRequest.ts +3 -3
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/datetimePickerAction.ts +2 -2
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/discountPercentagePriceInfoRequest.ts +2 -2
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/errorResponse.ts +2 -2
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/flexImage.ts +2 -2
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/getFollowersResponse.ts +1 -1
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/getJoinedMembershipUsersResponse.ts +1 -1
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/getMembershipSubscriptionResponse.ts +1 -1
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/limit.ts +3 -3
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/lotteryAcquisitionConditionRequest.ts +3 -3
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/membersIdsResponse.ts +1 -1
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/membership.ts +1 -1
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/membershipListResponse.ts +1 -1
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/multicastRequest.ts +6 -6
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/narrowcastRequest.ts +3 -3
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/pnpMessagesRequest.ts +3 -3
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/postbackAction.ts +2 -2
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/pushMessageRequest.ts +3 -3
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/pushMessageResponse.ts +2 -2
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/quickReply.ts +1 -1
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/quickReplyItem.ts +2 -2
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/replyMessageRequest.ts +3 -3
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/replyMessageResponse.ts +2 -2
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/richMenuBatchRequest.ts +4 -4
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/richMenuBounds.ts +8 -8
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/richMenuBulkLinkRequest.ts +2 -2
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/richMenuBulkUnlinkRequest.ts +2 -2
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/richMenuRequest.ts +2 -2
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/richMenuResponse.ts +6 -3
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/richMenuSize.ts +4 -4
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/richMenuSwitchAction.ts +4 -4
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/sender.ts +2 -2
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/setWebhookEndpointRequest.ts +2 -2
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/showLoadingAnimationRequest.ts +2 -2
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/subscribedMembershipPlan.ts +1 -1
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/testWebhookEndpointRequest.ts +2 -2
- package/node_modules/@line/bot-sdk/lib/messaging-api/model/validateMessageRequest.ts +2 -2
- package/node_modules/@line/bot-sdk/lib/middleware.ts +1 -1
- package/node_modules/@line/bot-sdk/lib/module/.openapi-generator/FILES +0 -1
- package/node_modules/@line/bot-sdk/lib/module/api/lineModuleClient.ts +68 -29
- package/node_modules/@line/bot-sdk/lib/module/model/acquireChatControlRequest.ts +1 -1
- package/node_modules/@line/bot-sdk/lib/module-attach/.openapi-generator/FILES +0 -1
- package/node_modules/@line/bot-sdk/lib/module-attach/api/lineModuleAttachClient.ts +61 -11
- package/node_modules/@line/bot-sdk/lib/module-attach/model/attachModuleResponse.ts +1 -0
- package/node_modules/@line/bot-sdk/lib/shop/.openapi-generator/FILES +0 -1
- package/node_modules/@line/bot-sdk/lib/shop/api/shopClient.ts +33 -6
- package/node_modules/@line/bot-sdk/lib/version.ts +1 -1
- package/node_modules/@line/bot-sdk/lib/webhook/.openapi-generator/FILES +0 -1
- package/node_modules/@line/bot-sdk/lib/webhook/model/accountLinkEvent.ts +1 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/activatedEvent.ts +1 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/attachedModuleContent.ts +3 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/audioMessageContent.ts +3 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/beaconContent.ts +3 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/beaconEvent.ts +1 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/botResumedEvent.ts +1 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/botSuspendedEvent.ts +1 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/callbackRequest.ts +3 -3
- package/node_modules/@line/bot-sdk/lib/webhook/model/chatControl.ts +3 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/deactivatedEvent.ts +1 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/detachedModuleContent.ts +3 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/fileMessageContent.ts +3 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/followDetail.ts +3 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/followEvent.ts +1 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/imageMessageContent.ts +3 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/joinEvent.ts +1 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/joinedMembers.ts +3 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/leaveEvent.ts +1 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/leftMembers.ts +3 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/linkContent.ts +1 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/locationMessageContent.ts +3 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/memberJoinedEvent.ts +1 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/memberLeftEvent.ts +1 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/membershipContent.ts +1 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/membershipEvent.ts +1 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/messageEvent.ts +1 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/moduleContent.ts +3 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/moduleEvent.ts +1 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/pnpDelivery.ts +1 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/pnpDeliveryCompletionEvent.ts +1 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/postbackContent.ts +3 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/postbackEvent.ts +1 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/stickerMessageContent.ts +2 -2
- package/node_modules/@line/bot-sdk/lib/webhook/model/textMessageContent.ts +3 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/unfollowEvent.ts +1 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/unsendDetail.ts +3 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/unsendEvent.ts +1 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/videoMessageContent.ts +3 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/videoPlayComplete.ts +3 -0
- package/node_modules/@line/bot-sdk/lib/webhook/model/videoPlayCompleteEvent.ts +1 -0
- package/node_modules/@line/bot-sdk/package.json +8 -9
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/http2.d.ts +1 -0
- package/node_modules/@types/node/package.json +2 -2
- package/npm-shrinkwrap.json +10 -10
- package/package.json +5 -5
- package/dist/channel.runtime-KvcDpasA.js +0 -4
- package/dist/monitor.runtime-njiPADBe.js +0 -2
|
@@ -16,6 +16,19 @@ import HTTPFetchClient, { mergeHeaders, } from "../../http-fetch.js";
|
|
|
16
16
|
*/
|
|
17
17
|
export class MessagingApiClient {
|
|
18
18
|
httpClient;
|
|
19
|
+
/**
|
|
20
|
+
* Initializes a new `MessagingApiClient`.
|
|
21
|
+
*
|
|
22
|
+
* @param config Configuration for this API client.
|
|
23
|
+
* @param config.baseURL The base URL for requests. Defaults to `https://api.line.me`.
|
|
24
|
+
* @param config.channelAccessToken The channel access token used for authorization.
|
|
25
|
+
* @param config.defaultHeaders Extra headers merged into every request.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* const client = new MessagingApiClient({
|
|
29
|
+
* channelAccessToken: process.env.LINE_CHANNEL_ACCESS_TOKEN!,
|
|
30
|
+
* });
|
|
31
|
+
*/
|
|
19
32
|
constructor(config) {
|
|
20
33
|
const baseURL = config.baseURL || "https://api.line.me";
|
|
21
34
|
const defaultHeaders = mergeHeaders(config.defaultHeaders, {
|
|
@@ -28,22 +41,25 @@ export class MessagingApiClient {
|
|
|
28
41
|
}
|
|
29
42
|
/**
|
|
30
43
|
* Sends a message to multiple users at any time.
|
|
44
|
+
* Calls `POST https://api.line.me/v2/bot/message/broadcast`.
|
|
45
|
+
* To inspect the HTTP status code or response headers, use {@link broadcastWithHttpInfo}.
|
|
31
46
|
* @param broadcastRequest
|
|
32
47
|
* @param xLineRetryKey Retry key. Specifies the UUID in hexadecimal format (e.g., `123e4567-e89b-12d3-a456-426614174000`) generated by any method. The retry key isn't generated by LINE. Each developer must generate their own retry key.
|
|
33
|
-
*
|
|
34
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#send-broadcast-message">
|
|
48
|
+
* @returns A promise resolving to the response body.
|
|
49
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#send-broadcast-message">LINE Developers documentation</a>
|
|
35
50
|
*/
|
|
36
51
|
async broadcast(broadcastRequest, xLineRetryKey) {
|
|
37
52
|
return (await this.broadcastWithHttpInfo(broadcastRequest, xLineRetryKey))
|
|
38
53
|
.body;
|
|
39
54
|
}
|
|
40
55
|
/**
|
|
41
|
-
* Sends a message to multiple users at any time
|
|
42
|
-
*
|
|
56
|
+
* Sends a message to multiple users at any time.
|
|
57
|
+
* Calls `POST https://api.line.me/v2/bot/message/broadcast`.
|
|
58
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
43
59
|
* @param broadcastRequest
|
|
44
60
|
* @param xLineRetryKey Retry key. Specifies the UUID in hexadecimal format (e.g., `123e4567-e89b-12d3-a456-426614174000`) generated by any method. The retry key isn't generated by LINE. Each developer must generate their own retry key.
|
|
45
|
-
*
|
|
46
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#send-broadcast-message">
|
|
61
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
62
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#send-broadcast-message">LINE Developers documentation</a>
|
|
47
63
|
*/
|
|
48
64
|
async broadcastWithHttpInfo(broadcastRequest, xLineRetryKey) {
|
|
49
65
|
const params = broadcastRequest;
|
|
@@ -57,17 +73,20 @@ export class MessagingApiClient {
|
|
|
57
73
|
}
|
|
58
74
|
/**
|
|
59
75
|
* Cancel default rich menu
|
|
60
|
-
*
|
|
61
|
-
* @
|
|
76
|
+
* Calls `DELETE https://api.line.me/v2/bot/user/all/richmenu`.
|
|
77
|
+
* To inspect the HTTP status code or response headers, use {@link cancelDefaultRichMenuWithHttpInfo}.
|
|
78
|
+
* @returns A promise resolving to the response body.
|
|
79
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#cancel-default-rich-menu">LINE Developers documentation</a>
|
|
62
80
|
*/
|
|
63
81
|
async cancelDefaultRichMenu() {
|
|
64
82
|
return (await this.cancelDefaultRichMenuWithHttpInfo()).body;
|
|
65
83
|
}
|
|
66
84
|
/**
|
|
67
|
-
* Cancel default rich menu
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
* @
|
|
85
|
+
* Cancel default rich menu
|
|
86
|
+
* Calls `DELETE https://api.line.me/v2/bot/user/all/richmenu`.
|
|
87
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
88
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
89
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#cancel-default-rich-menu">LINE Developers documentation</a>
|
|
71
90
|
*/
|
|
72
91
|
async cancelDefaultRichMenuWithHttpInfo() {
|
|
73
92
|
const res = await this.httpClient.delete("/v2/bot/user/all/richmenu");
|
|
@@ -77,19 +96,22 @@ export class MessagingApiClient {
|
|
|
77
96
|
}
|
|
78
97
|
/**
|
|
79
98
|
* Close coupon
|
|
99
|
+
* Calls `PUT https://api.line.me/v2/bot/coupon/{couponId}/close`.
|
|
100
|
+
* To inspect the HTTP status code or response headers, use {@link closeCouponWithHttpInfo}.
|
|
80
101
|
* @param couponId
|
|
81
|
-
*
|
|
82
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#discontinue-coupon">
|
|
102
|
+
* @returns A promise resolving to the response body.
|
|
103
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#discontinue-coupon">LINE Developers documentation</a>
|
|
83
104
|
*/
|
|
84
105
|
async closeCoupon(couponId) {
|
|
85
106
|
return (await this.closeCouponWithHttpInfo(couponId)).body;
|
|
86
107
|
}
|
|
87
108
|
/**
|
|
88
|
-
* Close coupon
|
|
89
|
-
*
|
|
109
|
+
* Close coupon
|
|
110
|
+
* Calls `PUT https://api.line.me/v2/bot/coupon/{couponId}/close`.
|
|
111
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
90
112
|
* @param couponId
|
|
91
|
-
*
|
|
92
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#discontinue-coupon">
|
|
113
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
114
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#discontinue-coupon">LINE Developers documentation</a>
|
|
93
115
|
*/
|
|
94
116
|
async closeCouponWithHttpInfo(couponId) {
|
|
95
117
|
const requestPath = buildPath("/v2/bot/coupon/{couponId}/close", {
|
|
@@ -102,19 +124,22 @@ export class MessagingApiClient {
|
|
|
102
124
|
}
|
|
103
125
|
/**
|
|
104
126
|
* Create a new coupon. Define coupon details such as type, title, and validity period.
|
|
127
|
+
* Calls `POST https://api.line.me/v2/bot/coupon`.
|
|
128
|
+
* To inspect the HTTP status code or response headers, use {@link createCouponWithHttpInfo}.
|
|
105
129
|
* @param couponCreateRequest
|
|
106
|
-
*
|
|
107
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#create-coupon">
|
|
130
|
+
* @returns A promise resolving to the response body.
|
|
131
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#create-coupon">LINE Developers documentation</a>
|
|
108
132
|
*/
|
|
109
133
|
async createCoupon(couponCreateRequest) {
|
|
110
134
|
return (await this.createCouponWithHttpInfo(couponCreateRequest)).body;
|
|
111
135
|
}
|
|
112
136
|
/**
|
|
113
|
-
* Create a new coupon. Define coupon details such as type, title, and validity period
|
|
114
|
-
*
|
|
137
|
+
* Create a new coupon. Define coupon details such as type, title, and validity period.
|
|
138
|
+
* Calls `POST https://api.line.me/v2/bot/coupon`.
|
|
139
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
115
140
|
* @param couponCreateRequest
|
|
116
|
-
*
|
|
117
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#create-coupon">
|
|
141
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
142
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#create-coupon">LINE Developers documentation</a>
|
|
118
143
|
*/
|
|
119
144
|
async createCouponWithHttpInfo(couponCreateRequest) {
|
|
120
145
|
const params = couponCreateRequest;
|
|
@@ -125,19 +150,22 @@ export class MessagingApiClient {
|
|
|
125
150
|
}
|
|
126
151
|
/**
|
|
127
152
|
* Create rich menu
|
|
153
|
+
* Calls `POST https://api.line.me/v2/bot/richmenu`.
|
|
154
|
+
* To inspect the HTTP status code or response headers, use {@link createRichMenuWithHttpInfo}.
|
|
128
155
|
* @param richMenuRequest
|
|
129
|
-
*
|
|
130
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#create-rich-menu">
|
|
156
|
+
* @returns A promise resolving to the response body.
|
|
157
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#create-rich-menu">LINE Developers documentation</a>
|
|
131
158
|
*/
|
|
132
159
|
async createRichMenu(richMenuRequest) {
|
|
133
160
|
return (await this.createRichMenuWithHttpInfo(richMenuRequest)).body;
|
|
134
161
|
}
|
|
135
162
|
/**
|
|
136
|
-
* Create rich menu
|
|
137
|
-
*
|
|
163
|
+
* Create rich menu
|
|
164
|
+
* Calls `POST https://api.line.me/v2/bot/richmenu`.
|
|
165
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
138
166
|
* @param richMenuRequest
|
|
139
|
-
*
|
|
140
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#create-rich-menu">
|
|
167
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
168
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#create-rich-menu">LINE Developers documentation</a>
|
|
141
169
|
*/
|
|
142
170
|
async createRichMenuWithHttpInfo(richMenuRequest) {
|
|
143
171
|
const params = richMenuRequest;
|
|
@@ -148,19 +176,22 @@ export class MessagingApiClient {
|
|
|
148
176
|
}
|
|
149
177
|
/**
|
|
150
178
|
* Create rich menu alias
|
|
179
|
+
* Calls `POST https://api.line.me/v2/bot/richmenu/alias`.
|
|
180
|
+
* To inspect the HTTP status code or response headers, use {@link createRichMenuAliasWithHttpInfo}.
|
|
151
181
|
* @param createRichMenuAliasRequest
|
|
152
|
-
*
|
|
153
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#create-rich-menu-alias">
|
|
182
|
+
* @returns A promise resolving to the response body.
|
|
183
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#create-rich-menu-alias">LINE Developers documentation</a>
|
|
154
184
|
*/
|
|
155
185
|
async createRichMenuAlias(createRichMenuAliasRequest) {
|
|
156
186
|
return (await this.createRichMenuAliasWithHttpInfo(createRichMenuAliasRequest)).body;
|
|
157
187
|
}
|
|
158
188
|
/**
|
|
159
|
-
* Create rich menu alias
|
|
160
|
-
*
|
|
189
|
+
* Create rich menu alias
|
|
190
|
+
* Calls `POST https://api.line.me/v2/bot/richmenu/alias`.
|
|
191
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
161
192
|
* @param createRichMenuAliasRequest
|
|
162
|
-
*
|
|
163
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#create-rich-menu-alias">
|
|
193
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
194
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#create-rich-menu-alias">LINE Developers documentation</a>
|
|
164
195
|
*/
|
|
165
196
|
async createRichMenuAliasWithHttpInfo(createRichMenuAliasRequest) {
|
|
166
197
|
const params = createRichMenuAliasRequest;
|
|
@@ -171,19 +202,22 @@ export class MessagingApiClient {
|
|
|
171
202
|
}
|
|
172
203
|
/**
|
|
173
204
|
* Deletes a rich menu.
|
|
205
|
+
* Calls `DELETE https://api.line.me/v2/bot/richmenu/{richMenuId}`.
|
|
206
|
+
* To inspect the HTTP status code or response headers, use {@link deleteRichMenuWithHttpInfo}.
|
|
174
207
|
* @param richMenuId ID of a rich menu
|
|
175
|
-
*
|
|
176
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#delete-rich-menu">
|
|
208
|
+
* @returns A promise resolving to the response body.
|
|
209
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#delete-rich-menu">LINE Developers documentation</a>
|
|
177
210
|
*/
|
|
178
211
|
async deleteRichMenu(richMenuId) {
|
|
179
212
|
return (await this.deleteRichMenuWithHttpInfo(richMenuId)).body;
|
|
180
213
|
}
|
|
181
214
|
/**
|
|
182
|
-
* Deletes a rich menu
|
|
183
|
-
*
|
|
215
|
+
* Deletes a rich menu.
|
|
216
|
+
* Calls `DELETE https://api.line.me/v2/bot/richmenu/{richMenuId}`.
|
|
217
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
184
218
|
* @param richMenuId ID of a rich menu
|
|
185
|
-
*
|
|
186
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#delete-rich-menu">
|
|
219
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
220
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#delete-rich-menu">LINE Developers documentation</a>
|
|
187
221
|
*/
|
|
188
222
|
async deleteRichMenuWithHttpInfo(richMenuId) {
|
|
189
223
|
const requestPath = buildPath("/v2/bot/richmenu/{richMenuId}", {
|
|
@@ -196,19 +230,22 @@ export class MessagingApiClient {
|
|
|
196
230
|
}
|
|
197
231
|
/**
|
|
198
232
|
* Delete rich menu alias
|
|
233
|
+
* Calls `DELETE https://api.line.me/v2/bot/richmenu/alias/{richMenuAliasId}`.
|
|
234
|
+
* To inspect the HTTP status code or response headers, use {@link deleteRichMenuAliasWithHttpInfo}.
|
|
199
235
|
* @param richMenuAliasId Rich menu alias ID that you want to delete.
|
|
200
|
-
*
|
|
201
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#delete-rich-menu-alias">
|
|
236
|
+
* @returns A promise resolving to the response body.
|
|
237
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#delete-rich-menu-alias">LINE Developers documentation</a>
|
|
202
238
|
*/
|
|
203
239
|
async deleteRichMenuAlias(richMenuAliasId) {
|
|
204
240
|
return (await this.deleteRichMenuAliasWithHttpInfo(richMenuAliasId)).body;
|
|
205
241
|
}
|
|
206
242
|
/**
|
|
207
|
-
* Delete rich menu alias
|
|
208
|
-
*
|
|
243
|
+
* Delete rich menu alias
|
|
244
|
+
* Calls `DELETE https://api.line.me/v2/bot/richmenu/alias/{richMenuAliasId}`.
|
|
245
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
209
246
|
* @param richMenuAliasId Rich menu alias ID that you want to delete.
|
|
210
|
-
*
|
|
211
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#delete-rich-menu-alias">
|
|
247
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
248
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#delete-rich-menu-alias">LINE Developers documentation</a>
|
|
212
249
|
*/
|
|
213
250
|
async deleteRichMenuAliasWithHttpInfo(richMenuAliasId) {
|
|
214
251
|
const requestPath = buildPath("/v2/bot/richmenu/alias/{richMenuAliasId}", {
|
|
@@ -221,33 +258,37 @@ export class MessagingApiClient {
|
|
|
221
258
|
}
|
|
222
259
|
/**
|
|
223
260
|
* Get name list of units used this month
|
|
261
|
+
* Calls `GET https://api.line.me/v2/bot/message/aggregation/list`.
|
|
262
|
+
* To inspect the HTTP status code or response headers, use {@link getAggregationUnitNameListWithHttpInfo}.
|
|
224
263
|
* @param limit The maximum number of aggregation units you can get per request.
|
|
225
264
|
* @param start Value of the continuation token found in the next property of the JSON object returned in the response. If you can't get all the aggregation units in one request, include this parameter to get the remaining array.
|
|
226
|
-
*
|
|
227
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-name-list-of-units-used-this-month">
|
|
265
|
+
* @returns A promise resolving to the response body.
|
|
266
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-name-list-of-units-used-this-month">LINE Developers documentation</a>
|
|
228
267
|
*/
|
|
229
268
|
async getAggregationUnitNameList(limit, start) {
|
|
230
269
|
return (await this.getAggregationUnitNameListWithHttpInfo(limit, start))
|
|
231
270
|
.body;
|
|
232
271
|
}
|
|
233
272
|
/**
|
|
234
|
-
* Get name list of units used this month
|
|
235
|
-
*
|
|
273
|
+
* Get name list of units used this month
|
|
274
|
+
* Calls `GET https://api.line.me/v2/bot/message/aggregation/list`.
|
|
275
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
236
276
|
* @param limit The maximum number of aggregation units you can get per request.
|
|
237
277
|
* @param start Value of the continuation token found in the next property of the JSON object returned in the response. If you can't get all the aggregation units in one request, include this parameter to get the remaining array.
|
|
238
|
-
*
|
|
239
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-name-list-of-units-used-this-month">
|
|
278
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
279
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-name-list-of-units-used-this-month">LINE Developers documentation</a>
|
|
240
280
|
*/
|
|
241
281
|
async getAggregationUnitNameListWithHttpInfo(limit, start) {
|
|
242
282
|
const queryParams = {
|
|
243
283
|
limit: limit,
|
|
244
284
|
start: start,
|
|
245
285
|
};
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
286
|
+
if (queryParams["limit"] === undefined) {
|
|
287
|
+
delete queryParams["limit"];
|
|
288
|
+
}
|
|
289
|
+
if (queryParams["start"] === undefined) {
|
|
290
|
+
delete queryParams["start"];
|
|
291
|
+
}
|
|
251
292
|
const res = await this.httpClient.get("/v2/bot/message/aggregation/list", queryParams);
|
|
252
293
|
const text = await res.text();
|
|
253
294
|
const parsedBody = text ? JSON.parse(text) : null;
|
|
@@ -255,17 +296,20 @@ export class MessagingApiClient {
|
|
|
255
296
|
}
|
|
256
297
|
/**
|
|
257
298
|
* Get number of units used this month
|
|
258
|
-
*
|
|
259
|
-
* @
|
|
299
|
+
* Calls `GET https://api.line.me/v2/bot/message/aggregation/info`.
|
|
300
|
+
* To inspect the HTTP status code or response headers, use {@link getAggregationUnitUsageWithHttpInfo}.
|
|
301
|
+
* @returns A promise resolving to the response body.
|
|
302
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-number-of-units-used-this-month">LINE Developers documentation</a>
|
|
260
303
|
*/
|
|
261
304
|
async getAggregationUnitUsage() {
|
|
262
305
|
return (await this.getAggregationUnitUsageWithHttpInfo()).body;
|
|
263
306
|
}
|
|
264
307
|
/**
|
|
265
|
-
* Get number of units used this month
|
|
266
|
-
*
|
|
267
|
-
*
|
|
268
|
-
* @
|
|
308
|
+
* Get number of units used this month
|
|
309
|
+
* Calls `GET https://api.line.me/v2/bot/message/aggregation/info`.
|
|
310
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
311
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
312
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-number-of-units-used-this-month">LINE Developers documentation</a>
|
|
269
313
|
*/
|
|
270
314
|
async getAggregationUnitUsageWithHttpInfo() {
|
|
271
315
|
const res = await this.httpClient.get("/v2/bot/message/aggregation/info");
|
|
@@ -275,17 +319,20 @@ export class MessagingApiClient {
|
|
|
275
319
|
}
|
|
276
320
|
/**
|
|
277
321
|
* Get bot info
|
|
278
|
-
*
|
|
279
|
-
* @
|
|
322
|
+
* Calls `GET https://api.line.me/v2/bot/info`.
|
|
323
|
+
* To inspect the HTTP status code or response headers, use {@link getBotInfoWithHttpInfo}.
|
|
324
|
+
* @returns A promise resolving to the response body.
|
|
325
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-bot-info">LINE Developers documentation</a>
|
|
280
326
|
*/
|
|
281
327
|
async getBotInfo() {
|
|
282
328
|
return (await this.getBotInfoWithHttpInfo()).body;
|
|
283
329
|
}
|
|
284
330
|
/**
|
|
285
|
-
* Get bot info
|
|
286
|
-
*
|
|
287
|
-
*
|
|
288
|
-
* @
|
|
331
|
+
* Get bot info
|
|
332
|
+
* Calls `GET https://api.line.me/v2/bot/info`.
|
|
333
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
334
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
335
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-bot-info">LINE Developers documentation</a>
|
|
289
336
|
*/
|
|
290
337
|
async getBotInfoWithHttpInfo() {
|
|
291
338
|
const res = await this.httpClient.get("/v2/bot/info");
|
|
@@ -295,19 +342,22 @@ export class MessagingApiClient {
|
|
|
295
342
|
}
|
|
296
343
|
/**
|
|
297
344
|
* Get coupon detail
|
|
345
|
+
* Calls `GET https://api.line.me/v2/bot/coupon/{couponId}`.
|
|
346
|
+
* To inspect the HTTP status code or response headers, use {@link getCouponDetailWithHttpInfo}.
|
|
298
347
|
* @param couponId
|
|
299
|
-
*
|
|
300
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-coupon">
|
|
348
|
+
* @returns A promise resolving to the response body.
|
|
349
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-coupon">LINE Developers documentation</a>
|
|
301
350
|
*/
|
|
302
351
|
async getCouponDetail(couponId) {
|
|
303
352
|
return (await this.getCouponDetailWithHttpInfo(couponId)).body;
|
|
304
353
|
}
|
|
305
354
|
/**
|
|
306
|
-
* Get coupon detail
|
|
307
|
-
*
|
|
355
|
+
* Get coupon detail
|
|
356
|
+
* Calls `GET https://api.line.me/v2/bot/coupon/{couponId}`.
|
|
357
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
308
358
|
* @param couponId
|
|
309
|
-
*
|
|
310
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-coupon">
|
|
359
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
360
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-coupon">LINE Developers documentation</a>
|
|
311
361
|
*/
|
|
312
362
|
async getCouponDetailWithHttpInfo(couponId) {
|
|
313
363
|
const requestPath = buildPath("/v2/bot/coupon/{couponId}", {
|
|
@@ -320,17 +370,20 @@ export class MessagingApiClient {
|
|
|
320
370
|
}
|
|
321
371
|
/**
|
|
322
372
|
* Gets the ID of the default rich menu set with the Messaging API.
|
|
323
|
-
*
|
|
324
|
-
* @
|
|
373
|
+
* Calls `GET https://api.line.me/v2/bot/user/all/richmenu`.
|
|
374
|
+
* To inspect the HTTP status code or response headers, use {@link getDefaultRichMenuIdWithHttpInfo}.
|
|
375
|
+
* @returns A promise resolving to the response body.
|
|
376
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-default-rich-menu-id">LINE Developers documentation</a>
|
|
325
377
|
*/
|
|
326
378
|
async getDefaultRichMenuId() {
|
|
327
379
|
return (await this.getDefaultRichMenuIdWithHttpInfo()).body;
|
|
328
380
|
}
|
|
329
381
|
/**
|
|
330
|
-
* Gets the ID of the default rich menu set with the Messaging API
|
|
331
|
-
*
|
|
332
|
-
*
|
|
333
|
-
* @
|
|
382
|
+
* Gets the ID of the default rich menu set with the Messaging API.
|
|
383
|
+
* Calls `GET https://api.line.me/v2/bot/user/all/richmenu`.
|
|
384
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
385
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
386
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-default-rich-menu-id">LINE Developers documentation</a>
|
|
334
387
|
*/
|
|
335
388
|
async getDefaultRichMenuIdWithHttpInfo() {
|
|
336
389
|
const res = await this.httpClient.get("/v2/bot/user/all/richmenu");
|
|
@@ -340,32 +393,36 @@ export class MessagingApiClient {
|
|
|
340
393
|
}
|
|
341
394
|
/**
|
|
342
395
|
* Get a list of users who added your LINE Official Account as a friend
|
|
396
|
+
* Calls `GET https://api.line.me/v2/bot/followers/ids`.
|
|
397
|
+
* To inspect the HTTP status code or response headers, use {@link getFollowersWithHttpInfo}.
|
|
343
398
|
* @param start Value of the continuation token found in the next property of the JSON object returned in the response. Include this parameter to get the next array of user IDs.
|
|
344
399
|
* @param limit The maximum number of user IDs to retrieve in a single request.
|
|
345
|
-
*
|
|
346
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-follower-ids">
|
|
400
|
+
* @returns A promise resolving to the response body.
|
|
401
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-follower-ids">LINE Developers documentation</a>
|
|
347
402
|
*/
|
|
348
403
|
async getFollowers(start, limit) {
|
|
349
404
|
return (await this.getFollowersWithHttpInfo(start, limit)).body;
|
|
350
405
|
}
|
|
351
406
|
/**
|
|
352
|
-
* Get a list of users who added your LINE Official Account as a friend
|
|
353
|
-
*
|
|
407
|
+
* Get a list of users who added your LINE Official Account as a friend
|
|
408
|
+
* Calls `GET https://api.line.me/v2/bot/followers/ids`.
|
|
409
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
354
410
|
* @param start Value of the continuation token found in the next property of the JSON object returned in the response. Include this parameter to get the next array of user IDs.
|
|
355
411
|
* @param limit The maximum number of user IDs to retrieve in a single request.
|
|
356
|
-
*
|
|
357
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-follower-ids">
|
|
412
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
413
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-follower-ids">LINE Developers documentation</a>
|
|
358
414
|
*/
|
|
359
415
|
async getFollowersWithHttpInfo(start, limit) {
|
|
360
416
|
const queryParams = {
|
|
361
417
|
start: start,
|
|
362
418
|
limit: limit,
|
|
363
419
|
};
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
420
|
+
if (queryParams["start"] === undefined) {
|
|
421
|
+
delete queryParams["start"];
|
|
422
|
+
}
|
|
423
|
+
if (queryParams["limit"] === undefined) {
|
|
424
|
+
delete queryParams["limit"];
|
|
425
|
+
}
|
|
369
426
|
const res = await this.httpClient.get("/v2/bot/followers/ids", queryParams);
|
|
370
427
|
const text = await res.text();
|
|
371
428
|
const parsedBody = text ? JSON.parse(text) : null;
|
|
@@ -373,19 +430,22 @@ export class MessagingApiClient {
|
|
|
373
430
|
}
|
|
374
431
|
/**
|
|
375
432
|
* Get number of users in a group chat
|
|
433
|
+
* Calls `GET https://api.line.me/v2/bot/group/{groupId}/members/count`.
|
|
434
|
+
* To inspect the HTTP status code or response headers, use {@link getGroupMemberCountWithHttpInfo}.
|
|
376
435
|
* @param groupId Group ID
|
|
377
|
-
*
|
|
378
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-members-group-count">
|
|
436
|
+
* @returns A promise resolving to the response body.
|
|
437
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-members-group-count">LINE Developers documentation</a>
|
|
379
438
|
*/
|
|
380
439
|
async getGroupMemberCount(groupId) {
|
|
381
440
|
return (await this.getGroupMemberCountWithHttpInfo(groupId)).body;
|
|
382
441
|
}
|
|
383
442
|
/**
|
|
384
|
-
* Get number of users in a group chat
|
|
385
|
-
*
|
|
443
|
+
* Get number of users in a group chat
|
|
444
|
+
* Calls `GET https://api.line.me/v2/bot/group/{groupId}/members/count`.
|
|
445
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
386
446
|
* @param groupId Group ID
|
|
387
|
-
*
|
|
388
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-members-group-count">
|
|
447
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
448
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-members-group-count">LINE Developers documentation</a>
|
|
389
449
|
*/
|
|
390
450
|
async getGroupMemberCountWithHttpInfo(groupId) {
|
|
391
451
|
const requestPath = buildPath("/v2/bot/group/{groupId}/members/count", {
|
|
@@ -398,21 +458,24 @@ export class MessagingApiClient {
|
|
|
398
458
|
}
|
|
399
459
|
/**
|
|
400
460
|
* Get group chat member profile
|
|
461
|
+
* Calls `GET https://api.line.me/v2/bot/group/{groupId}/member/{userId}`.
|
|
462
|
+
* To inspect the HTTP status code or response headers, use {@link getGroupMemberProfileWithHttpInfo}.
|
|
401
463
|
* @param groupId Group ID
|
|
402
464
|
* @param userId User ID
|
|
403
|
-
*
|
|
404
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-group-member-profile">
|
|
465
|
+
* @returns A promise resolving to the response body.
|
|
466
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-group-member-profile">LINE Developers documentation</a>
|
|
405
467
|
*/
|
|
406
468
|
async getGroupMemberProfile(groupId, userId) {
|
|
407
469
|
return (await this.getGroupMemberProfileWithHttpInfo(groupId, userId)).body;
|
|
408
470
|
}
|
|
409
471
|
/**
|
|
410
|
-
* Get group chat member profile
|
|
411
|
-
*
|
|
472
|
+
* Get group chat member profile
|
|
473
|
+
* Calls `GET https://api.line.me/v2/bot/group/{groupId}/member/{userId}`.
|
|
474
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
412
475
|
* @param groupId Group ID
|
|
413
476
|
* @param userId User ID
|
|
414
|
-
*
|
|
415
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-group-member-profile">
|
|
477
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
478
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-group-member-profile">LINE Developers documentation</a>
|
|
416
479
|
*/
|
|
417
480
|
async getGroupMemberProfileWithHttpInfo(groupId, userId) {
|
|
418
481
|
const requestPath = buildPath("/v2/bot/group/{groupId}/member/{userId}", {
|
|
@@ -426,21 +489,24 @@ export class MessagingApiClient {
|
|
|
426
489
|
}
|
|
427
490
|
/**
|
|
428
491
|
* Get group chat member user IDs
|
|
492
|
+
* Calls `GET https://api.line.me/v2/bot/group/{groupId}/members/ids`.
|
|
493
|
+
* To inspect the HTTP status code or response headers, use {@link getGroupMembersIdsWithHttpInfo}.
|
|
429
494
|
* @param groupId Group ID
|
|
430
495
|
* @param start Value of the continuation token found in the `next` property of the JSON object returned in the response. Include this parameter to get the next array of user IDs for the members of the group.
|
|
431
|
-
*
|
|
432
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-group-member-user-ids">
|
|
496
|
+
* @returns A promise resolving to the response body.
|
|
497
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-group-member-user-ids">LINE Developers documentation</a>
|
|
433
498
|
*/
|
|
434
499
|
async getGroupMembersIds(groupId, start) {
|
|
435
500
|
return (await this.getGroupMembersIdsWithHttpInfo(groupId, start)).body;
|
|
436
501
|
}
|
|
437
502
|
/**
|
|
438
|
-
* Get group chat member user IDs
|
|
439
|
-
*
|
|
503
|
+
* Get group chat member user IDs
|
|
504
|
+
* Calls `GET https://api.line.me/v2/bot/group/{groupId}/members/ids`.
|
|
505
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
440
506
|
* @param groupId Group ID
|
|
441
507
|
* @param start Value of the continuation token found in the `next` property of the JSON object returned in the response. Include this parameter to get the next array of user IDs for the members of the group.
|
|
442
|
-
*
|
|
443
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-group-member-user-ids">
|
|
508
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
509
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-group-member-user-ids">LINE Developers documentation</a>
|
|
444
510
|
*/
|
|
445
511
|
async getGroupMembersIdsWithHttpInfo(groupId, start) {
|
|
446
512
|
const requestPath = buildPath("/v2/bot/group/{groupId}/members/ids", {
|
|
@@ -449,11 +515,9 @@ export class MessagingApiClient {
|
|
|
449
515
|
const queryParams = {
|
|
450
516
|
start: start,
|
|
451
517
|
};
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
}
|
|
456
|
-
});
|
|
518
|
+
if (queryParams["start"] === undefined) {
|
|
519
|
+
delete queryParams["start"];
|
|
520
|
+
}
|
|
457
521
|
const res = await this.httpClient.get(requestPath, queryParams);
|
|
458
522
|
const text = await res.text();
|
|
459
523
|
const parsedBody = text ? JSON.parse(text) : null;
|
|
@@ -461,19 +525,22 @@ export class MessagingApiClient {
|
|
|
461
525
|
}
|
|
462
526
|
/**
|
|
463
527
|
* Get group chat summary
|
|
528
|
+
* Calls `GET https://api.line.me/v2/bot/group/{groupId}/summary`.
|
|
529
|
+
* To inspect the HTTP status code or response headers, use {@link getGroupSummaryWithHttpInfo}.
|
|
464
530
|
* @param groupId Group ID
|
|
465
|
-
*
|
|
466
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-group-summary">
|
|
531
|
+
* @returns A promise resolving to the response body.
|
|
532
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-group-summary">LINE Developers documentation</a>
|
|
467
533
|
*/
|
|
468
534
|
async getGroupSummary(groupId) {
|
|
469
535
|
return (await this.getGroupSummaryWithHttpInfo(groupId)).body;
|
|
470
536
|
}
|
|
471
537
|
/**
|
|
472
|
-
* Get group chat summary
|
|
473
|
-
*
|
|
538
|
+
* Get group chat summary
|
|
539
|
+
* Calls `GET https://api.line.me/v2/bot/group/{groupId}/summary`.
|
|
540
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
474
541
|
* @param groupId Group ID
|
|
475
|
-
*
|
|
476
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-group-summary">
|
|
542
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
543
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-group-summary">LINE Developers documentation</a>
|
|
477
544
|
*/
|
|
478
545
|
async getGroupSummaryWithHttpInfo(groupId) {
|
|
479
546
|
const requestPath = buildPath("/v2/bot/group/{groupId}/summary", {
|
|
@@ -486,23 +553,26 @@ export class MessagingApiClient {
|
|
|
486
553
|
}
|
|
487
554
|
/**
|
|
488
555
|
* Get a list of user IDs who joined the membership.
|
|
556
|
+
* Calls `GET https://api.line.me/v2/bot/membership/{membershipId}/users/ids`.
|
|
557
|
+
* To inspect the HTTP status code or response headers, use {@link getJoinedMembershipUsersWithHttpInfo}.
|
|
489
558
|
* @param membershipId Membership plan ID.
|
|
490
559
|
* @param start A continuation token to get next remaining membership user IDs. Returned only when there are remaining user IDs that weren't returned in the userIds property in the previous request. The continuation token expires in 24 hours (86,400 seconds).
|
|
491
560
|
* @param limit The max number of items to return for this API call. The value is set to 300 by default, but the max acceptable value is 1000.
|
|
492
|
-
*
|
|
493
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-membership-user-ids">
|
|
561
|
+
* @returns A promise resolving to the response body.
|
|
562
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-membership-user-ids">LINE Developers documentation</a>
|
|
494
563
|
*/
|
|
495
564
|
async getJoinedMembershipUsers(membershipId, start, limit) {
|
|
496
565
|
return (await this.getJoinedMembershipUsersWithHttpInfo(membershipId, start, limit)).body;
|
|
497
566
|
}
|
|
498
567
|
/**
|
|
499
|
-
* Get a list of user IDs who joined the membership
|
|
500
|
-
*
|
|
568
|
+
* Get a list of user IDs who joined the membership.
|
|
569
|
+
* Calls `GET https://api.line.me/v2/bot/membership/{membershipId}/users/ids`.
|
|
570
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
501
571
|
* @param membershipId Membership plan ID.
|
|
502
572
|
* @param start A continuation token to get next remaining membership user IDs. Returned only when there are remaining user IDs that weren't returned in the userIds property in the previous request. The continuation token expires in 24 hours (86,400 seconds).
|
|
503
573
|
* @param limit The max number of items to return for this API call. The value is set to 300 by default, but the max acceptable value is 1000.
|
|
504
|
-
*
|
|
505
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-membership-user-ids">
|
|
574
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
575
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-membership-user-ids">LINE Developers documentation</a>
|
|
506
576
|
*/
|
|
507
577
|
async getJoinedMembershipUsersWithHttpInfo(membershipId, start, limit) {
|
|
508
578
|
const requestPath = buildPath("/v2/bot/membership/{membershipId}/users/ids", {
|
|
@@ -512,11 +582,12 @@ export class MessagingApiClient {
|
|
|
512
582
|
start: start,
|
|
513
583
|
limit: limit,
|
|
514
584
|
};
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
585
|
+
if (queryParams["start"] === undefined) {
|
|
586
|
+
delete queryParams["start"];
|
|
587
|
+
}
|
|
588
|
+
if (queryParams["limit"] === undefined) {
|
|
589
|
+
delete queryParams["limit"];
|
|
590
|
+
}
|
|
520
591
|
const res = await this.httpClient.get(requestPath, queryParams);
|
|
521
592
|
const text = await res.text();
|
|
522
593
|
const parsedBody = text ? JSON.parse(text) : null;
|
|
@@ -524,17 +595,20 @@ export class MessagingApiClient {
|
|
|
524
595
|
}
|
|
525
596
|
/**
|
|
526
597
|
* Get a list of memberships.
|
|
527
|
-
*
|
|
528
|
-
* @
|
|
598
|
+
* Calls `GET https://api.line.me/v2/bot/membership/list`.
|
|
599
|
+
* To inspect the HTTP status code or response headers, use {@link getMembershipListWithHttpInfo}.
|
|
600
|
+
* @returns A promise resolving to the response body.
|
|
601
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-membership-plans">LINE Developers documentation</a>
|
|
529
602
|
*/
|
|
530
603
|
async getMembershipList() {
|
|
531
604
|
return (await this.getMembershipListWithHttpInfo()).body;
|
|
532
605
|
}
|
|
533
606
|
/**
|
|
534
|
-
* Get a list of memberships
|
|
535
|
-
*
|
|
536
|
-
*
|
|
537
|
-
* @
|
|
607
|
+
* Get a list of memberships.
|
|
608
|
+
* Calls `GET https://api.line.me/v2/bot/membership/list`.
|
|
609
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
610
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
611
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-membership-plans">LINE Developers documentation</a>
|
|
538
612
|
*/
|
|
539
613
|
async getMembershipListWithHttpInfo() {
|
|
540
614
|
const res = await this.httpClient.get("/v2/bot/membership/list");
|
|
@@ -544,19 +618,22 @@ export class MessagingApiClient {
|
|
|
544
618
|
}
|
|
545
619
|
/**
|
|
546
620
|
* Get a user's membership subscription.
|
|
621
|
+
* Calls `GET https://api.line.me/v2/bot/membership/subscription/{userId}`.
|
|
622
|
+
* To inspect the HTTP status code or response headers, use {@link getMembershipSubscriptionWithHttpInfo}.
|
|
547
623
|
* @param userId User ID
|
|
548
|
-
*
|
|
549
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-a-users-membership-subscription-status">
|
|
624
|
+
* @returns A promise resolving to the response body.
|
|
625
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-a-users-membership-subscription-status">LINE Developers documentation</a>
|
|
550
626
|
*/
|
|
551
627
|
async getMembershipSubscription(userId) {
|
|
552
628
|
return (await this.getMembershipSubscriptionWithHttpInfo(userId)).body;
|
|
553
629
|
}
|
|
554
630
|
/**
|
|
555
|
-
* Get a user's membership subscription
|
|
556
|
-
*
|
|
631
|
+
* Get a user's membership subscription.
|
|
632
|
+
* Calls `GET https://api.line.me/v2/bot/membership/subscription/{userId}`.
|
|
633
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
557
634
|
* @param userId User ID
|
|
558
|
-
*
|
|
559
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-a-users-membership-subscription-status">
|
|
635
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
636
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-a-users-membership-subscription-status">LINE Developers documentation</a>
|
|
560
637
|
*/
|
|
561
638
|
async getMembershipSubscriptionWithHttpInfo(userId) {
|
|
562
639
|
const requestPath = buildPath("/v2/bot/membership/subscription/{userId}", {
|
|
@@ -569,17 +646,20 @@ export class MessagingApiClient {
|
|
|
569
646
|
}
|
|
570
647
|
/**
|
|
571
648
|
* Gets the target limit for sending messages in the current month. The total number of the free messages and the additional messages is returned.
|
|
572
|
-
*
|
|
573
|
-
* @
|
|
649
|
+
* Calls `GET https://api.line.me/v2/bot/message/quota`.
|
|
650
|
+
* To inspect the HTTP status code or response headers, use {@link getMessageQuotaWithHttpInfo}.
|
|
651
|
+
* @returns A promise resolving to the response body.
|
|
652
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-quota">LINE Developers documentation</a>
|
|
574
653
|
*/
|
|
575
654
|
async getMessageQuota() {
|
|
576
655
|
return (await this.getMessageQuotaWithHttpInfo()).body;
|
|
577
656
|
}
|
|
578
657
|
/**
|
|
579
|
-
* Gets the target limit for sending messages in the current month. The total number of the free messages and the additional messages is returned
|
|
580
|
-
*
|
|
581
|
-
*
|
|
582
|
-
* @
|
|
658
|
+
* Gets the target limit for sending messages in the current month. The total number of the free messages and the additional messages is returned.
|
|
659
|
+
* Calls `GET https://api.line.me/v2/bot/message/quota`.
|
|
660
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
661
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
662
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-quota">LINE Developers documentation</a>
|
|
583
663
|
*/
|
|
584
664
|
async getMessageQuotaWithHttpInfo() {
|
|
585
665
|
const res = await this.httpClient.get("/v2/bot/message/quota");
|
|
@@ -589,17 +669,20 @@ export class MessagingApiClient {
|
|
|
589
669
|
}
|
|
590
670
|
/**
|
|
591
671
|
* Gets the number of messages sent in the current month.
|
|
592
|
-
*
|
|
593
|
-
* @
|
|
672
|
+
* Calls `GET https://api.line.me/v2/bot/message/quota/consumption`.
|
|
673
|
+
* To inspect the HTTP status code or response headers, use {@link getMessageQuotaConsumptionWithHttpInfo}.
|
|
674
|
+
* @returns A promise resolving to the response body.
|
|
675
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-consumption">LINE Developers documentation</a>
|
|
594
676
|
*/
|
|
595
677
|
async getMessageQuotaConsumption() {
|
|
596
678
|
return (await this.getMessageQuotaConsumptionWithHttpInfo()).body;
|
|
597
679
|
}
|
|
598
680
|
/**
|
|
599
|
-
* Gets the number of messages sent in the current month
|
|
600
|
-
*
|
|
601
|
-
*
|
|
602
|
-
* @
|
|
681
|
+
* Gets the number of messages sent in the current month.
|
|
682
|
+
* Calls `GET https://api.line.me/v2/bot/message/quota/consumption`.
|
|
683
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
684
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
685
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-consumption">LINE Developers documentation</a>
|
|
603
686
|
*/
|
|
604
687
|
async getMessageQuotaConsumptionWithHttpInfo() {
|
|
605
688
|
const res = await this.httpClient.get("/v2/bot/message/quota/consumption");
|
|
@@ -609,29 +692,27 @@ export class MessagingApiClient {
|
|
|
609
692
|
}
|
|
610
693
|
/**
|
|
611
694
|
* Gets the status of a narrowcast message.
|
|
695
|
+
* Calls `GET https://api.line.me/v2/bot/message/progress/narrowcast`.
|
|
696
|
+
* To inspect the HTTP status code or response headers, use {@link getNarrowcastProgressWithHttpInfo}.
|
|
612
697
|
* @param requestId The narrowcast message's request ID. Each Messaging API request has a request ID.
|
|
613
|
-
*
|
|
614
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-narrowcast-progress-status">
|
|
698
|
+
* @returns A promise resolving to the response body.
|
|
699
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-narrowcast-progress-status">LINE Developers documentation</a>
|
|
615
700
|
*/
|
|
616
701
|
async getNarrowcastProgress(requestId) {
|
|
617
702
|
return (await this.getNarrowcastProgressWithHttpInfo(requestId)).body;
|
|
618
703
|
}
|
|
619
704
|
/**
|
|
620
|
-
* Gets the status of a narrowcast message
|
|
621
|
-
*
|
|
705
|
+
* Gets the status of a narrowcast message.
|
|
706
|
+
* Calls `GET https://api.line.me/v2/bot/message/progress/narrowcast`.
|
|
707
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
622
708
|
* @param requestId The narrowcast message's request ID. Each Messaging API request has a request ID.
|
|
623
|
-
*
|
|
624
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-narrowcast-progress-status">
|
|
709
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
710
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-narrowcast-progress-status">LINE Developers documentation</a>
|
|
625
711
|
*/
|
|
626
712
|
async getNarrowcastProgressWithHttpInfo(requestId) {
|
|
627
713
|
const queryParams = {
|
|
628
714
|
requestId: requestId,
|
|
629
715
|
};
|
|
630
|
-
Object.keys(queryParams).forEach((key) => {
|
|
631
|
-
if (queryParams[key] === undefined) {
|
|
632
|
-
delete queryParams[key];
|
|
633
|
-
}
|
|
634
|
-
});
|
|
635
716
|
const res = await this.httpClient.get("/v2/bot/message/progress/narrowcast", queryParams);
|
|
636
717
|
const text = await res.text();
|
|
637
718
|
const parsedBody = text ? JSON.parse(text) : null;
|
|
@@ -639,29 +720,27 @@ export class MessagingApiClient {
|
|
|
639
720
|
}
|
|
640
721
|
/**
|
|
641
722
|
* Get number of sent broadcast messages
|
|
723
|
+
* Calls `GET https://api.line.me/v2/bot/message/delivery/broadcast`.
|
|
724
|
+
* To inspect the HTTP status code or response headers, use {@link getNumberOfSentBroadcastMessagesWithHttpInfo}.
|
|
642
725
|
* @param date Date the messages were sent Format: yyyyMMdd (e.g. 20191231) Timezone: UTC+9
|
|
643
|
-
*
|
|
644
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-number-of-broadcast-messages">
|
|
726
|
+
* @returns A promise resolving to the response body.
|
|
727
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-number-of-broadcast-messages">LINE Developers documentation</a>
|
|
645
728
|
*/
|
|
646
729
|
async getNumberOfSentBroadcastMessages(date) {
|
|
647
730
|
return (await this.getNumberOfSentBroadcastMessagesWithHttpInfo(date)).body;
|
|
648
731
|
}
|
|
649
732
|
/**
|
|
650
|
-
* Get number of sent broadcast messages
|
|
651
|
-
*
|
|
733
|
+
* Get number of sent broadcast messages
|
|
734
|
+
* Calls `GET https://api.line.me/v2/bot/message/delivery/broadcast`.
|
|
735
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
652
736
|
* @param date Date the messages were sent Format: yyyyMMdd (e.g. 20191231) Timezone: UTC+9
|
|
653
|
-
*
|
|
654
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-number-of-broadcast-messages">
|
|
737
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
738
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-number-of-broadcast-messages">LINE Developers documentation</a>
|
|
655
739
|
*/
|
|
656
740
|
async getNumberOfSentBroadcastMessagesWithHttpInfo(date) {
|
|
657
741
|
const queryParams = {
|
|
658
742
|
date: date,
|
|
659
743
|
};
|
|
660
|
-
Object.keys(queryParams).forEach((key) => {
|
|
661
|
-
if (queryParams[key] === undefined) {
|
|
662
|
-
delete queryParams[key];
|
|
663
|
-
}
|
|
664
|
-
});
|
|
665
744
|
const res = await this.httpClient.get("/v2/bot/message/delivery/broadcast", queryParams);
|
|
666
745
|
const text = await res.text();
|
|
667
746
|
const parsedBody = text ? JSON.parse(text) : null;
|
|
@@ -669,29 +748,27 @@ export class MessagingApiClient {
|
|
|
669
748
|
}
|
|
670
749
|
/**
|
|
671
750
|
* Get number of sent multicast messages
|
|
751
|
+
* Calls `GET https://api.line.me/v2/bot/message/delivery/multicast`.
|
|
752
|
+
* To inspect the HTTP status code or response headers, use {@link getNumberOfSentMulticastMessagesWithHttpInfo}.
|
|
672
753
|
* @param date Date the messages were sent Format: `yyyyMMdd` (e.g. `20191231`) Timezone: UTC+9
|
|
673
|
-
*
|
|
674
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-number-of-multicast-messages">
|
|
754
|
+
* @returns A promise resolving to the response body.
|
|
755
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-number-of-multicast-messages">LINE Developers documentation</a>
|
|
675
756
|
*/
|
|
676
757
|
async getNumberOfSentMulticastMessages(date) {
|
|
677
758
|
return (await this.getNumberOfSentMulticastMessagesWithHttpInfo(date)).body;
|
|
678
759
|
}
|
|
679
760
|
/**
|
|
680
|
-
* Get number of sent multicast messages
|
|
681
|
-
*
|
|
761
|
+
* Get number of sent multicast messages
|
|
762
|
+
* Calls `GET https://api.line.me/v2/bot/message/delivery/multicast`.
|
|
763
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
682
764
|
* @param date Date the messages were sent Format: `yyyyMMdd` (e.g. `20191231`) Timezone: UTC+9
|
|
683
|
-
*
|
|
684
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-number-of-multicast-messages">
|
|
765
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
766
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-number-of-multicast-messages">LINE Developers documentation</a>
|
|
685
767
|
*/
|
|
686
768
|
async getNumberOfSentMulticastMessagesWithHttpInfo(date) {
|
|
687
769
|
const queryParams = {
|
|
688
770
|
date: date,
|
|
689
771
|
};
|
|
690
|
-
Object.keys(queryParams).forEach((key) => {
|
|
691
|
-
if (queryParams[key] === undefined) {
|
|
692
|
-
delete queryParams[key];
|
|
693
|
-
}
|
|
694
|
-
});
|
|
695
772
|
const res = await this.httpClient.get("/v2/bot/message/delivery/multicast", queryParams);
|
|
696
773
|
const text = await res.text();
|
|
697
774
|
const parsedBody = text ? JSON.parse(text) : null;
|
|
@@ -699,29 +776,27 @@ export class MessagingApiClient {
|
|
|
699
776
|
}
|
|
700
777
|
/**
|
|
701
778
|
* Get number of sent push messages
|
|
779
|
+
* Calls `GET https://api.line.me/v2/bot/message/delivery/push`.
|
|
780
|
+
* To inspect the HTTP status code or response headers, use {@link getNumberOfSentPushMessagesWithHttpInfo}.
|
|
702
781
|
* @param date Date the messages were sent Format: `yyyyMMdd` (e.g. `20191231`) Timezone: UTC+9
|
|
703
|
-
*
|
|
704
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-number-of-push-messages">
|
|
782
|
+
* @returns A promise resolving to the response body.
|
|
783
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-number-of-push-messages">LINE Developers documentation</a>
|
|
705
784
|
*/
|
|
706
785
|
async getNumberOfSentPushMessages(date) {
|
|
707
786
|
return (await this.getNumberOfSentPushMessagesWithHttpInfo(date)).body;
|
|
708
787
|
}
|
|
709
788
|
/**
|
|
710
|
-
* Get number of sent push messages
|
|
711
|
-
*
|
|
789
|
+
* Get number of sent push messages
|
|
790
|
+
* Calls `GET https://api.line.me/v2/bot/message/delivery/push`.
|
|
791
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
712
792
|
* @param date Date the messages were sent Format: `yyyyMMdd` (e.g. `20191231`) Timezone: UTC+9
|
|
713
|
-
*
|
|
714
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-number-of-push-messages">
|
|
793
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
794
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-number-of-push-messages">LINE Developers documentation</a>
|
|
715
795
|
*/
|
|
716
796
|
async getNumberOfSentPushMessagesWithHttpInfo(date) {
|
|
717
797
|
const queryParams = {
|
|
718
798
|
date: date,
|
|
719
799
|
};
|
|
720
|
-
Object.keys(queryParams).forEach((key) => {
|
|
721
|
-
if (queryParams[key] === undefined) {
|
|
722
|
-
delete queryParams[key];
|
|
723
|
-
}
|
|
724
|
-
});
|
|
725
800
|
const res = await this.httpClient.get("/v2/bot/message/delivery/push", queryParams);
|
|
726
801
|
const text = await res.text();
|
|
727
802
|
const parsedBody = text ? JSON.parse(text) : null;
|
|
@@ -729,29 +804,27 @@ export class MessagingApiClient {
|
|
|
729
804
|
}
|
|
730
805
|
/**
|
|
731
806
|
* Get number of sent reply messages
|
|
807
|
+
* Calls `GET https://api.line.me/v2/bot/message/delivery/reply`.
|
|
808
|
+
* To inspect the HTTP status code or response headers, use {@link getNumberOfSentReplyMessagesWithHttpInfo}.
|
|
732
809
|
* @param date Date the messages were sent Format: `yyyyMMdd` (e.g. `20191231`) Timezone: UTC+9
|
|
733
|
-
*
|
|
734
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-number-of-reply-messages">
|
|
810
|
+
* @returns A promise resolving to the response body.
|
|
811
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-number-of-reply-messages">LINE Developers documentation</a>
|
|
735
812
|
*/
|
|
736
813
|
async getNumberOfSentReplyMessages(date) {
|
|
737
814
|
return (await this.getNumberOfSentReplyMessagesWithHttpInfo(date)).body;
|
|
738
815
|
}
|
|
739
816
|
/**
|
|
740
|
-
* Get number of sent reply messages
|
|
741
|
-
*
|
|
817
|
+
* Get number of sent reply messages
|
|
818
|
+
* Calls `GET https://api.line.me/v2/bot/message/delivery/reply`.
|
|
819
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
742
820
|
* @param date Date the messages were sent Format: `yyyyMMdd` (e.g. `20191231`) Timezone: UTC+9
|
|
743
|
-
*
|
|
744
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-number-of-reply-messages">
|
|
821
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
822
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-number-of-reply-messages">LINE Developers documentation</a>
|
|
745
823
|
*/
|
|
746
824
|
async getNumberOfSentReplyMessagesWithHttpInfo(date) {
|
|
747
825
|
const queryParams = {
|
|
748
826
|
date: date,
|
|
749
827
|
};
|
|
750
|
-
Object.keys(queryParams).forEach((key) => {
|
|
751
|
-
if (queryParams[key] === undefined) {
|
|
752
|
-
delete queryParams[key];
|
|
753
|
-
}
|
|
754
|
-
});
|
|
755
828
|
const res = await this.httpClient.get("/v2/bot/message/delivery/reply", queryParams);
|
|
756
829
|
const text = await res.text();
|
|
757
830
|
const parsedBody = text ? JSON.parse(text) : null;
|
|
@@ -759,29 +832,27 @@ export class MessagingApiClient {
|
|
|
759
832
|
}
|
|
760
833
|
/**
|
|
761
834
|
* Get number of sent LINE notification messages
|
|
835
|
+
* Calls `GET https://api.line.me/v2/bot/message/delivery/pnp`.
|
|
836
|
+
* To inspect the HTTP status code or response headers, use {@link getPNPMessageStatisticsWithHttpInfo}.
|
|
762
837
|
* @param date Date the message was sent Format: `yyyyMMdd` (Example:`20211231`) Time zone: UTC+9
|
|
763
|
-
*
|
|
764
|
-
* @see <a href="https://developers.line.biz/en/reference/partner-docs/#get-number-of-sent-line-notification-messages">
|
|
838
|
+
* @returns A promise resolving to the response body.
|
|
839
|
+
* @see <a href="https://developers.line.biz/en/reference/partner-docs/#get-number-of-sent-line-notification-messages">LINE Developers documentation</a>
|
|
765
840
|
*/
|
|
766
841
|
async getPNPMessageStatistics(date) {
|
|
767
842
|
return (await this.getPNPMessageStatisticsWithHttpInfo(date)).body;
|
|
768
843
|
}
|
|
769
844
|
/**
|
|
770
|
-
* Get number of sent LINE notification messages
|
|
771
|
-
*
|
|
845
|
+
* Get number of sent LINE notification messages
|
|
846
|
+
* Calls `GET https://api.line.me/v2/bot/message/delivery/pnp`.
|
|
847
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
772
848
|
* @param date Date the message was sent Format: `yyyyMMdd` (Example:`20211231`) Time zone: UTC+9
|
|
773
|
-
*
|
|
774
|
-
* @see <a href="https://developers.line.biz/en/reference/partner-docs/#get-number-of-sent-line-notification-messages">
|
|
849
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
850
|
+
* @see <a href="https://developers.line.biz/en/reference/partner-docs/#get-number-of-sent-line-notification-messages">LINE Developers documentation</a>
|
|
775
851
|
*/
|
|
776
852
|
async getPNPMessageStatisticsWithHttpInfo(date) {
|
|
777
853
|
const queryParams = {
|
|
778
854
|
date: date,
|
|
779
855
|
};
|
|
780
|
-
Object.keys(queryParams).forEach((key) => {
|
|
781
|
-
if (queryParams[key] === undefined) {
|
|
782
|
-
delete queryParams[key];
|
|
783
|
-
}
|
|
784
|
-
});
|
|
785
856
|
const res = await this.httpClient.get("/v2/bot/message/delivery/pnp", queryParams);
|
|
786
857
|
const text = await res.text();
|
|
787
858
|
const parsedBody = text ? JSON.parse(text) : null;
|
|
@@ -789,19 +860,22 @@ export class MessagingApiClient {
|
|
|
789
860
|
}
|
|
790
861
|
/**
|
|
791
862
|
* Get profile
|
|
863
|
+
* Calls `GET https://api.line.me/v2/bot/profile/{userId}`.
|
|
864
|
+
* To inspect the HTTP status code or response headers, use {@link getProfileWithHttpInfo}.
|
|
792
865
|
* @param userId User ID
|
|
793
|
-
*
|
|
794
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-profile">
|
|
866
|
+
* @returns A promise resolving to the response body.
|
|
867
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-profile">LINE Developers documentation</a>
|
|
795
868
|
*/
|
|
796
869
|
async getProfile(userId) {
|
|
797
870
|
return (await this.getProfileWithHttpInfo(userId)).body;
|
|
798
871
|
}
|
|
799
872
|
/**
|
|
800
|
-
* Get profile
|
|
801
|
-
*
|
|
873
|
+
* Get profile
|
|
874
|
+
* Calls `GET https://api.line.me/v2/bot/profile/{userId}`.
|
|
875
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
802
876
|
* @param userId User ID
|
|
803
|
-
*
|
|
804
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-profile">
|
|
877
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
878
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-profile">LINE Developers documentation</a>
|
|
805
879
|
*/
|
|
806
880
|
async getProfileWithHttpInfo(userId) {
|
|
807
881
|
const requestPath = buildPath("/v2/bot/profile/{userId}", {
|
|
@@ -814,19 +888,22 @@ export class MessagingApiClient {
|
|
|
814
888
|
}
|
|
815
889
|
/**
|
|
816
890
|
* Gets a rich menu via a rich menu ID.
|
|
891
|
+
* Calls `GET https://api.line.me/v2/bot/richmenu/{richMenuId}`.
|
|
892
|
+
* To inspect the HTTP status code or response headers, use {@link getRichMenuWithHttpInfo}.
|
|
817
893
|
* @param richMenuId ID of a rich menu
|
|
818
|
-
*
|
|
819
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-rich-menu">
|
|
894
|
+
* @returns A promise resolving to the response body.
|
|
895
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-rich-menu">LINE Developers documentation</a>
|
|
820
896
|
*/
|
|
821
897
|
async getRichMenu(richMenuId) {
|
|
822
898
|
return (await this.getRichMenuWithHttpInfo(richMenuId)).body;
|
|
823
899
|
}
|
|
824
900
|
/**
|
|
825
|
-
* Gets a rich menu via a rich menu ID
|
|
826
|
-
*
|
|
901
|
+
* Gets a rich menu via a rich menu ID.
|
|
902
|
+
* Calls `GET https://api.line.me/v2/bot/richmenu/{richMenuId}`.
|
|
903
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
827
904
|
* @param richMenuId ID of a rich menu
|
|
828
|
-
*
|
|
829
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-rich-menu">
|
|
905
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
906
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-rich-menu">LINE Developers documentation</a>
|
|
830
907
|
*/
|
|
831
908
|
async getRichMenuWithHttpInfo(richMenuId) {
|
|
832
909
|
const requestPath = buildPath("/v2/bot/richmenu/{richMenuId}", {
|
|
@@ -839,19 +916,22 @@ export class MessagingApiClient {
|
|
|
839
916
|
}
|
|
840
917
|
/**
|
|
841
918
|
* Get rich menu alias information
|
|
919
|
+
* Calls `GET https://api.line.me/v2/bot/richmenu/alias/{richMenuAliasId}`.
|
|
920
|
+
* To inspect the HTTP status code or response headers, use {@link getRichMenuAliasWithHttpInfo}.
|
|
842
921
|
* @param richMenuAliasId The rich menu alias ID whose information you want to obtain.
|
|
843
|
-
*
|
|
844
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-alias-by-id">
|
|
922
|
+
* @returns A promise resolving to the response body.
|
|
923
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-alias-by-id">LINE Developers documentation</a>
|
|
845
924
|
*/
|
|
846
925
|
async getRichMenuAlias(richMenuAliasId) {
|
|
847
926
|
return (await this.getRichMenuAliasWithHttpInfo(richMenuAliasId)).body;
|
|
848
927
|
}
|
|
849
928
|
/**
|
|
850
|
-
* Get rich menu alias information
|
|
851
|
-
*
|
|
929
|
+
* Get rich menu alias information
|
|
930
|
+
* Calls `GET https://api.line.me/v2/bot/richmenu/alias/{richMenuAliasId}`.
|
|
931
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
852
932
|
* @param richMenuAliasId The rich menu alias ID whose information you want to obtain.
|
|
853
|
-
*
|
|
854
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-alias-by-id">
|
|
933
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
934
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-alias-by-id">LINE Developers documentation</a>
|
|
855
935
|
*/
|
|
856
936
|
async getRichMenuAliasWithHttpInfo(richMenuAliasId) {
|
|
857
937
|
const requestPath = buildPath("/v2/bot/richmenu/alias/{richMenuAliasId}", {
|
|
@@ -864,17 +944,20 @@ export class MessagingApiClient {
|
|
|
864
944
|
}
|
|
865
945
|
/**
|
|
866
946
|
* Get list of rich menu alias
|
|
867
|
-
*
|
|
868
|
-
* @
|
|
947
|
+
* Calls `GET https://api.line.me/v2/bot/richmenu/alias/list`.
|
|
948
|
+
* To inspect the HTTP status code or response headers, use {@link getRichMenuAliasListWithHttpInfo}.
|
|
949
|
+
* @returns A promise resolving to the response body.
|
|
950
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-alias-list">LINE Developers documentation</a>
|
|
869
951
|
*/
|
|
870
952
|
async getRichMenuAliasList() {
|
|
871
953
|
return (await this.getRichMenuAliasListWithHttpInfo()).body;
|
|
872
954
|
}
|
|
873
955
|
/**
|
|
874
|
-
* Get list of rich menu alias
|
|
875
|
-
*
|
|
876
|
-
*
|
|
877
|
-
* @
|
|
956
|
+
* Get list of rich menu alias
|
|
957
|
+
* Calls `GET https://api.line.me/v2/bot/richmenu/alias/list`.
|
|
958
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
959
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
960
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-alias-list">LINE Developers documentation</a>
|
|
878
961
|
*/
|
|
879
962
|
async getRichMenuAliasListWithHttpInfo() {
|
|
880
963
|
const res = await this.httpClient.get("/v2/bot/richmenu/alias/list");
|
|
@@ -884,29 +967,27 @@ export class MessagingApiClient {
|
|
|
884
967
|
}
|
|
885
968
|
/**
|
|
886
969
|
* Get the status of Replace or unlink a linked rich menus in batches.
|
|
970
|
+
* Calls `GET https://api.line.me/v2/bot/richmenu/progress/batch`.
|
|
971
|
+
* To inspect the HTTP status code or response headers, use {@link getRichMenuBatchProgressWithHttpInfo}.
|
|
887
972
|
* @param requestId A request ID used to batch control the rich menu linked to the user. Each Messaging API request has a request ID.
|
|
888
|
-
*
|
|
889
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-batch-control-rich-menus-progress-status">
|
|
973
|
+
* @returns A promise resolving to the response body.
|
|
974
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-batch-control-rich-menus-progress-status">LINE Developers documentation</a>
|
|
890
975
|
*/
|
|
891
976
|
async getRichMenuBatchProgress(requestId) {
|
|
892
977
|
return (await this.getRichMenuBatchProgressWithHttpInfo(requestId)).body;
|
|
893
978
|
}
|
|
894
979
|
/**
|
|
895
|
-
* Get the status of Replace or unlink a linked rich menus in batches
|
|
896
|
-
*
|
|
980
|
+
* Get the status of Replace or unlink a linked rich menus in batches.
|
|
981
|
+
* Calls `GET https://api.line.me/v2/bot/richmenu/progress/batch`.
|
|
982
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
897
983
|
* @param requestId A request ID used to batch control the rich menu linked to the user. Each Messaging API request has a request ID.
|
|
898
|
-
*
|
|
899
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-batch-control-rich-menus-progress-status">
|
|
984
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
985
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-batch-control-rich-menus-progress-status">LINE Developers documentation</a>
|
|
900
986
|
*/
|
|
901
987
|
async getRichMenuBatchProgressWithHttpInfo(requestId) {
|
|
902
988
|
const queryParams = {
|
|
903
989
|
requestId: requestId,
|
|
904
990
|
};
|
|
905
|
-
Object.keys(queryParams).forEach((key) => {
|
|
906
|
-
if (queryParams[key] === undefined) {
|
|
907
|
-
delete queryParams[key];
|
|
908
|
-
}
|
|
909
|
-
});
|
|
910
991
|
const res = await this.httpClient.get("/v2/bot/richmenu/progress/batch", queryParams);
|
|
911
992
|
const text = await res.text();
|
|
912
993
|
const parsedBody = text ? JSON.parse(text) : null;
|
|
@@ -914,19 +995,22 @@ export class MessagingApiClient {
|
|
|
914
995
|
}
|
|
915
996
|
/**
|
|
916
997
|
* Get rich menu ID of user
|
|
998
|
+
* Calls `GET https://api.line.me/v2/bot/user/{userId}/richmenu`.
|
|
999
|
+
* To inspect the HTTP status code or response headers, use {@link getRichMenuIdOfUserWithHttpInfo}.
|
|
917
1000
|
* @param userId User ID. Found in the `source` object of webhook event objects. Do not use the LINE ID used in LINE.
|
|
918
|
-
*
|
|
919
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-id-of-user">
|
|
1001
|
+
* @returns A promise resolving to the response body.
|
|
1002
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-id-of-user">LINE Developers documentation</a>
|
|
920
1003
|
*/
|
|
921
1004
|
async getRichMenuIdOfUser(userId) {
|
|
922
1005
|
return (await this.getRichMenuIdOfUserWithHttpInfo(userId)).body;
|
|
923
1006
|
}
|
|
924
1007
|
/**
|
|
925
|
-
* Get rich menu ID of user
|
|
926
|
-
*
|
|
1008
|
+
* Get rich menu ID of user
|
|
1009
|
+
* Calls `GET https://api.line.me/v2/bot/user/{userId}/richmenu`.
|
|
1010
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
927
1011
|
* @param userId User ID. Found in the `source` object of webhook event objects. Do not use the LINE ID used in LINE.
|
|
928
|
-
*
|
|
929
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-id-of-user">
|
|
1012
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1013
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-id-of-user">LINE Developers documentation</a>
|
|
930
1014
|
*/
|
|
931
1015
|
async getRichMenuIdOfUserWithHttpInfo(userId) {
|
|
932
1016
|
const requestPath = buildPath("/v2/bot/user/{userId}/richmenu", {
|
|
@@ -939,17 +1023,20 @@ export class MessagingApiClient {
|
|
|
939
1023
|
}
|
|
940
1024
|
/**
|
|
941
1025
|
* Get rich menu list
|
|
942
|
-
*
|
|
943
|
-
* @
|
|
1026
|
+
* Calls `GET https://api.line.me/v2/bot/richmenu/list`.
|
|
1027
|
+
* To inspect the HTTP status code or response headers, use {@link getRichMenuListWithHttpInfo}.
|
|
1028
|
+
* @returns A promise resolving to the response body.
|
|
1029
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-list">LINE Developers documentation</a>
|
|
944
1030
|
*/
|
|
945
1031
|
async getRichMenuList() {
|
|
946
1032
|
return (await this.getRichMenuListWithHttpInfo()).body;
|
|
947
1033
|
}
|
|
948
1034
|
/**
|
|
949
|
-
* Get rich menu list
|
|
950
|
-
*
|
|
951
|
-
*
|
|
952
|
-
* @
|
|
1035
|
+
* Get rich menu list
|
|
1036
|
+
* Calls `GET https://api.line.me/v2/bot/richmenu/list`.
|
|
1037
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1038
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1039
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-list">LINE Developers documentation</a>
|
|
953
1040
|
*/
|
|
954
1041
|
async getRichMenuListWithHttpInfo() {
|
|
955
1042
|
const res = await this.httpClient.get("/v2/bot/richmenu/list");
|
|
@@ -959,19 +1046,22 @@ export class MessagingApiClient {
|
|
|
959
1046
|
}
|
|
960
1047
|
/**
|
|
961
1048
|
* Get number of users in a multi-person chat
|
|
1049
|
+
* Calls `GET https://api.line.me/v2/bot/room/{roomId}/members/count`.
|
|
1050
|
+
* To inspect the HTTP status code or response headers, use {@link getRoomMemberCountWithHttpInfo}.
|
|
962
1051
|
* @param roomId Room ID
|
|
963
|
-
*
|
|
964
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-members-room-count">
|
|
1052
|
+
* @returns A promise resolving to the response body.
|
|
1053
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-members-room-count">LINE Developers documentation</a>
|
|
965
1054
|
*/
|
|
966
1055
|
async getRoomMemberCount(roomId) {
|
|
967
1056
|
return (await this.getRoomMemberCountWithHttpInfo(roomId)).body;
|
|
968
1057
|
}
|
|
969
1058
|
/**
|
|
970
|
-
* Get number of users in a multi-person chat
|
|
971
|
-
*
|
|
1059
|
+
* Get number of users in a multi-person chat
|
|
1060
|
+
* Calls `GET https://api.line.me/v2/bot/room/{roomId}/members/count`.
|
|
1061
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
972
1062
|
* @param roomId Room ID
|
|
973
|
-
*
|
|
974
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-members-room-count">
|
|
1063
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1064
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-members-room-count">LINE Developers documentation</a>
|
|
975
1065
|
*/
|
|
976
1066
|
async getRoomMemberCountWithHttpInfo(roomId) {
|
|
977
1067
|
const requestPath = buildPath("/v2/bot/room/{roomId}/members/count", {
|
|
@@ -984,21 +1074,24 @@ export class MessagingApiClient {
|
|
|
984
1074
|
}
|
|
985
1075
|
/**
|
|
986
1076
|
* Get multi-person chat member profile
|
|
1077
|
+
* Calls `GET https://api.line.me/v2/bot/room/{roomId}/member/{userId}`.
|
|
1078
|
+
* To inspect the HTTP status code or response headers, use {@link getRoomMemberProfileWithHttpInfo}.
|
|
987
1079
|
* @param roomId Room ID
|
|
988
1080
|
* @param userId User ID
|
|
989
|
-
*
|
|
990
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-room-member-profile">
|
|
1081
|
+
* @returns A promise resolving to the response body.
|
|
1082
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-room-member-profile">LINE Developers documentation</a>
|
|
991
1083
|
*/
|
|
992
1084
|
async getRoomMemberProfile(roomId, userId) {
|
|
993
1085
|
return (await this.getRoomMemberProfileWithHttpInfo(roomId, userId)).body;
|
|
994
1086
|
}
|
|
995
1087
|
/**
|
|
996
|
-
* Get multi-person chat member profile
|
|
997
|
-
*
|
|
1088
|
+
* Get multi-person chat member profile
|
|
1089
|
+
* Calls `GET https://api.line.me/v2/bot/room/{roomId}/member/{userId}`.
|
|
1090
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
998
1091
|
* @param roomId Room ID
|
|
999
1092
|
* @param userId User ID
|
|
1000
|
-
*
|
|
1001
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-room-member-profile">
|
|
1093
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1094
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-room-member-profile">LINE Developers documentation</a>
|
|
1002
1095
|
*/
|
|
1003
1096
|
async getRoomMemberProfileWithHttpInfo(roomId, userId) {
|
|
1004
1097
|
const requestPath = buildPath("/v2/bot/room/{roomId}/member/{userId}", {
|
|
@@ -1012,21 +1105,24 @@ export class MessagingApiClient {
|
|
|
1012
1105
|
}
|
|
1013
1106
|
/**
|
|
1014
1107
|
* Get multi-person chat member user IDs
|
|
1108
|
+
* Calls `GET https://api.line.me/v2/bot/room/{roomId}/members/ids`.
|
|
1109
|
+
* To inspect the HTTP status code or response headers, use {@link getRoomMembersIdsWithHttpInfo}.
|
|
1015
1110
|
* @param roomId Room ID
|
|
1016
1111
|
* @param start Value of the continuation token found in the `next` property of the JSON object returned in the response. Include this parameter to get the next array of user IDs for the members of the group.
|
|
1017
|
-
*
|
|
1018
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-room-member-user-ids">
|
|
1112
|
+
* @returns A promise resolving to the response body.
|
|
1113
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-room-member-user-ids">LINE Developers documentation</a>
|
|
1019
1114
|
*/
|
|
1020
1115
|
async getRoomMembersIds(roomId, start) {
|
|
1021
1116
|
return (await this.getRoomMembersIdsWithHttpInfo(roomId, start)).body;
|
|
1022
1117
|
}
|
|
1023
1118
|
/**
|
|
1024
|
-
* Get multi-person chat member user IDs
|
|
1025
|
-
*
|
|
1119
|
+
* Get multi-person chat member user IDs
|
|
1120
|
+
* Calls `GET https://api.line.me/v2/bot/room/{roomId}/members/ids`.
|
|
1121
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1026
1122
|
* @param roomId Room ID
|
|
1027
1123
|
* @param start Value of the continuation token found in the `next` property of the JSON object returned in the response. Include this parameter to get the next array of user IDs for the members of the group.
|
|
1028
|
-
*
|
|
1029
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-room-member-user-ids">
|
|
1124
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1125
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-room-member-user-ids">LINE Developers documentation</a>
|
|
1030
1126
|
*/
|
|
1031
1127
|
async getRoomMembersIdsWithHttpInfo(roomId, start) {
|
|
1032
1128
|
const requestPath = buildPath("/v2/bot/room/{roomId}/members/ids", {
|
|
@@ -1035,11 +1131,9 @@ export class MessagingApiClient {
|
|
|
1035
1131
|
const queryParams = {
|
|
1036
1132
|
start: start,
|
|
1037
1133
|
};
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
}
|
|
1042
|
-
});
|
|
1134
|
+
if (queryParams["start"] === undefined) {
|
|
1135
|
+
delete queryParams["start"];
|
|
1136
|
+
}
|
|
1043
1137
|
const res = await this.httpClient.get(requestPath, queryParams);
|
|
1044
1138
|
const text = await res.text();
|
|
1045
1139
|
const parsedBody = text ? JSON.parse(text) : null;
|
|
@@ -1047,17 +1141,20 @@ export class MessagingApiClient {
|
|
|
1047
1141
|
}
|
|
1048
1142
|
/**
|
|
1049
1143
|
* Get webhook endpoint information
|
|
1050
|
-
*
|
|
1051
|
-
* @
|
|
1144
|
+
* Calls `GET https://api.line.me/v2/bot/channel/webhook/endpoint`.
|
|
1145
|
+
* To inspect the HTTP status code or response headers, use {@link getWebhookEndpointWithHttpInfo}.
|
|
1146
|
+
* @returns A promise resolving to the response body.
|
|
1147
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-webhook-endpoint-information">LINE Developers documentation</a>
|
|
1052
1148
|
*/
|
|
1053
1149
|
async getWebhookEndpoint() {
|
|
1054
1150
|
return (await this.getWebhookEndpointWithHttpInfo()).body;
|
|
1055
1151
|
}
|
|
1056
1152
|
/**
|
|
1057
|
-
* Get webhook endpoint information
|
|
1058
|
-
*
|
|
1059
|
-
*
|
|
1060
|
-
* @
|
|
1153
|
+
* Get webhook endpoint information
|
|
1154
|
+
* Calls `GET https://api.line.me/v2/bot/channel/webhook/endpoint`.
|
|
1155
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1156
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1157
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-webhook-endpoint-information">LINE Developers documentation</a>
|
|
1061
1158
|
*/
|
|
1062
1159
|
async getWebhookEndpointWithHttpInfo() {
|
|
1063
1160
|
const res = await this.httpClient.get("/v2/bot/channel/webhook/endpoint");
|
|
@@ -1067,19 +1164,22 @@ export class MessagingApiClient {
|
|
|
1067
1164
|
}
|
|
1068
1165
|
/**
|
|
1069
1166
|
* Issue link token
|
|
1167
|
+
* Calls `POST https://api.line.me/v2/bot/user/{userId}/linkToken`.
|
|
1168
|
+
* To inspect the HTTP status code or response headers, use {@link issueLinkTokenWithHttpInfo}.
|
|
1070
1169
|
* @param userId User ID for the LINE account to be linked. Found in the `source` object of account link event objects. Do not use the LINE ID used in LINE.
|
|
1071
|
-
*
|
|
1072
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#issue-link-token">
|
|
1170
|
+
* @returns A promise resolving to the response body.
|
|
1171
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#issue-link-token">LINE Developers documentation</a>
|
|
1073
1172
|
*/
|
|
1074
1173
|
async issueLinkToken(userId) {
|
|
1075
1174
|
return (await this.issueLinkTokenWithHttpInfo(userId)).body;
|
|
1076
1175
|
}
|
|
1077
1176
|
/**
|
|
1078
|
-
* Issue link token
|
|
1079
|
-
*
|
|
1177
|
+
* Issue link token
|
|
1178
|
+
* Calls `POST https://api.line.me/v2/bot/user/{userId}/linkToken`.
|
|
1179
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1080
1180
|
* @param userId User ID for the LINE account to be linked. Found in the `source` object of account link event objects. Do not use the LINE ID used in LINE.
|
|
1081
|
-
*
|
|
1082
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#issue-link-token">
|
|
1181
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1182
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#issue-link-token">LINE Developers documentation</a>
|
|
1083
1183
|
*/
|
|
1084
1184
|
async issueLinkTokenWithHttpInfo(userId) {
|
|
1085
1185
|
const requestPath = buildPath("/v2/bot/user/{userId}/linkToken", {
|
|
@@ -1092,19 +1192,22 @@ export class MessagingApiClient {
|
|
|
1092
1192
|
}
|
|
1093
1193
|
/**
|
|
1094
1194
|
* Leave group chat
|
|
1195
|
+
* Calls `POST https://api.line.me/v2/bot/group/{groupId}/leave`.
|
|
1196
|
+
* To inspect the HTTP status code or response headers, use {@link leaveGroupWithHttpInfo}.
|
|
1095
1197
|
* @param groupId Group ID
|
|
1096
|
-
*
|
|
1097
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#leave-group">
|
|
1198
|
+
* @returns A promise resolving to the response body.
|
|
1199
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#leave-group">LINE Developers documentation</a>
|
|
1098
1200
|
*/
|
|
1099
1201
|
async leaveGroup(groupId) {
|
|
1100
1202
|
return (await this.leaveGroupWithHttpInfo(groupId)).body;
|
|
1101
1203
|
}
|
|
1102
1204
|
/**
|
|
1103
|
-
* Leave group chat
|
|
1104
|
-
*
|
|
1205
|
+
* Leave group chat
|
|
1206
|
+
* Calls `POST https://api.line.me/v2/bot/group/{groupId}/leave`.
|
|
1207
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1105
1208
|
* @param groupId Group ID
|
|
1106
|
-
*
|
|
1107
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#leave-group">
|
|
1209
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1210
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#leave-group">LINE Developers documentation</a>
|
|
1108
1211
|
*/
|
|
1109
1212
|
async leaveGroupWithHttpInfo(groupId) {
|
|
1110
1213
|
const requestPath = buildPath("/v2/bot/group/{groupId}/leave", {
|
|
@@ -1117,19 +1220,22 @@ export class MessagingApiClient {
|
|
|
1117
1220
|
}
|
|
1118
1221
|
/**
|
|
1119
1222
|
* Leave multi-person chat
|
|
1223
|
+
* Calls `POST https://api.line.me/v2/bot/room/{roomId}/leave`.
|
|
1224
|
+
* To inspect the HTTP status code or response headers, use {@link leaveRoomWithHttpInfo}.
|
|
1120
1225
|
* @param roomId Room ID
|
|
1121
|
-
*
|
|
1122
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#leave-room">
|
|
1226
|
+
* @returns A promise resolving to the response body.
|
|
1227
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#leave-room">LINE Developers documentation</a>
|
|
1123
1228
|
*/
|
|
1124
1229
|
async leaveRoom(roomId) {
|
|
1125
1230
|
return (await this.leaveRoomWithHttpInfo(roomId)).body;
|
|
1126
1231
|
}
|
|
1127
1232
|
/**
|
|
1128
|
-
* Leave multi-person chat
|
|
1129
|
-
*
|
|
1233
|
+
* Leave multi-person chat
|
|
1234
|
+
* Calls `POST https://api.line.me/v2/bot/room/{roomId}/leave`.
|
|
1235
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1130
1236
|
* @param roomId Room ID
|
|
1131
|
-
*
|
|
1132
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#leave-room">
|
|
1237
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1238
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#leave-room">LINE Developers documentation</a>
|
|
1133
1239
|
*/
|
|
1134
1240
|
async leaveRoomWithHttpInfo(roomId) {
|
|
1135
1241
|
const requestPath = buildPath("/v2/bot/room/{roomId}/leave", {
|
|
@@ -1142,22 +1248,25 @@ export class MessagingApiClient {
|
|
|
1142
1248
|
}
|
|
1143
1249
|
/**
|
|
1144
1250
|
* Link rich menu to user.
|
|
1251
|
+
* Calls `POST https://api.line.me/v2/bot/user/{userId}/richmenu/{richMenuId}`.
|
|
1252
|
+
* To inspect the HTTP status code or response headers, use {@link linkRichMenuIdToUserWithHttpInfo}.
|
|
1145
1253
|
* @param userId User ID. Found in the `source` object of webhook event objects. Do not use the LINE ID used in LINE.
|
|
1146
1254
|
* @param richMenuId ID of a rich menu
|
|
1147
|
-
*
|
|
1148
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#link-rich-menu-to-user">
|
|
1255
|
+
* @returns A promise resolving to the response body.
|
|
1256
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#link-rich-menu-to-user">LINE Developers documentation</a>
|
|
1149
1257
|
*/
|
|
1150
1258
|
async linkRichMenuIdToUser(userId, richMenuId) {
|
|
1151
1259
|
return (await this.linkRichMenuIdToUserWithHttpInfo(userId, richMenuId))
|
|
1152
1260
|
.body;
|
|
1153
1261
|
}
|
|
1154
1262
|
/**
|
|
1155
|
-
* Link rich menu to user
|
|
1156
|
-
*
|
|
1263
|
+
* Link rich menu to user.
|
|
1264
|
+
* Calls `POST https://api.line.me/v2/bot/user/{userId}/richmenu/{richMenuId}`.
|
|
1265
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1157
1266
|
* @param userId User ID. Found in the `source` object of webhook event objects. Do not use the LINE ID used in LINE.
|
|
1158
1267
|
* @param richMenuId ID of a rich menu
|
|
1159
|
-
*
|
|
1160
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#link-rich-menu-to-user">
|
|
1268
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1269
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#link-rich-menu-to-user">LINE Developers documentation</a>
|
|
1161
1270
|
*/
|
|
1162
1271
|
async linkRichMenuIdToUserWithHttpInfo(userId, richMenuId) {
|
|
1163
1272
|
const requestPath = buildPath("/v2/bot/user/{userId}/richmenu/{richMenuId}", {
|
|
@@ -1171,19 +1280,22 @@ export class MessagingApiClient {
|
|
|
1171
1280
|
}
|
|
1172
1281
|
/**
|
|
1173
1282
|
* Link rich menu to multiple users
|
|
1283
|
+
* Calls `POST https://api.line.me/v2/bot/richmenu/bulk/link`.
|
|
1284
|
+
* To inspect the HTTP status code or response headers, use {@link linkRichMenuIdToUsersWithHttpInfo}.
|
|
1174
1285
|
* @param richMenuBulkLinkRequest
|
|
1175
|
-
*
|
|
1176
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#link-rich-menu-to-users">
|
|
1286
|
+
* @returns A promise resolving to the response body.
|
|
1287
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#link-rich-menu-to-users">LINE Developers documentation</a>
|
|
1177
1288
|
*/
|
|
1178
1289
|
async linkRichMenuIdToUsers(richMenuBulkLinkRequest) {
|
|
1179
1290
|
return (await this.linkRichMenuIdToUsersWithHttpInfo(richMenuBulkLinkRequest)).body;
|
|
1180
1291
|
}
|
|
1181
1292
|
/**
|
|
1182
|
-
* Link rich menu to multiple users
|
|
1183
|
-
*
|
|
1293
|
+
* Link rich menu to multiple users
|
|
1294
|
+
* Calls `POST https://api.line.me/v2/bot/richmenu/bulk/link`.
|
|
1295
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1184
1296
|
* @param richMenuBulkLinkRequest
|
|
1185
|
-
*
|
|
1186
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#link-rich-menu-to-users">
|
|
1297
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1298
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#link-rich-menu-to-users">LINE Developers documentation</a>
|
|
1187
1299
|
*/
|
|
1188
1300
|
async linkRichMenuIdToUsersWithHttpInfo(richMenuBulkLinkRequest) {
|
|
1189
1301
|
const params = richMenuBulkLinkRequest;
|
|
@@ -1194,35 +1306,42 @@ export class MessagingApiClient {
|
|
|
1194
1306
|
}
|
|
1195
1307
|
/**
|
|
1196
1308
|
* Get a paginated list of coupons.
|
|
1309
|
+
* Calls `GET https://api.line.me/v2/bot/coupon`.
|
|
1310
|
+
* To inspect the HTTP status code or response headers, use {@link listCouponWithHttpInfo}.
|
|
1197
1311
|
* @param status Filter coupons by their status.
|
|
1198
1312
|
* @param start Pagination token to retrieve the next page of results.
|
|
1199
1313
|
* @param limit Maximum number of coupons to return per request.
|
|
1200
|
-
*
|
|
1201
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-coupons-list">
|
|
1314
|
+
* @returns A promise resolving to the response body.
|
|
1315
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-coupons-list">LINE Developers documentation</a>
|
|
1202
1316
|
*/
|
|
1203
1317
|
async listCoupon(status, start, limit) {
|
|
1204
1318
|
return (await this.listCouponWithHttpInfo(status, start, limit)).body;
|
|
1205
1319
|
}
|
|
1206
1320
|
/**
|
|
1207
|
-
* Get a paginated list of coupons
|
|
1208
|
-
*
|
|
1321
|
+
* Get a paginated list of coupons.
|
|
1322
|
+
* Calls `GET https://api.line.me/v2/bot/coupon`.
|
|
1323
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1209
1324
|
* @param status Filter coupons by their status.
|
|
1210
1325
|
* @param start Pagination token to retrieve the next page of results.
|
|
1211
1326
|
* @param limit Maximum number of coupons to return per request.
|
|
1212
|
-
*
|
|
1213
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-coupons-list">
|
|
1327
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1328
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-coupons-list">LINE Developers documentation</a>
|
|
1214
1329
|
*/
|
|
1215
1330
|
async listCouponWithHttpInfo(status, start, limit) {
|
|
1216
1331
|
const queryParams = {
|
|
1217
|
-
status: [...status].join(","),
|
|
1332
|
+
status: status != null ? [...status].join(",") : undefined,
|
|
1218
1333
|
start: start,
|
|
1219
1334
|
limit: limit,
|
|
1220
1335
|
};
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1336
|
+
if (queryParams["status"] === undefined) {
|
|
1337
|
+
delete queryParams["status"];
|
|
1338
|
+
}
|
|
1339
|
+
if (queryParams["start"] === undefined) {
|
|
1340
|
+
delete queryParams["start"];
|
|
1341
|
+
}
|
|
1342
|
+
if (queryParams["limit"] === undefined) {
|
|
1343
|
+
delete queryParams["limit"];
|
|
1344
|
+
}
|
|
1226
1345
|
const res = await this.httpClient.get("/v2/bot/coupon", queryParams);
|
|
1227
1346
|
const text = await res.text();
|
|
1228
1347
|
const parsedBody = text ? JSON.parse(text) : null;
|
|
@@ -1230,19 +1349,22 @@ export class MessagingApiClient {
|
|
|
1230
1349
|
}
|
|
1231
1350
|
/**
|
|
1232
1351
|
* Mark messages from users as read
|
|
1352
|
+
* Calls `POST https://api.line.me/v2/bot/message/markAsRead`.
|
|
1353
|
+
* To inspect the HTTP status code or response headers, use {@link markMessagesAsReadWithHttpInfo}.
|
|
1233
1354
|
* @param markMessagesAsReadRequest
|
|
1234
|
-
*
|
|
1235
|
-
* @see <a href="https://developers.line.biz/en/reference/partner-docs/#mark-messages-from-users-as-read">
|
|
1355
|
+
* @returns A promise resolving to the response body.
|
|
1356
|
+
* @see <a href="https://developers.line.biz/en/reference/partner-docs/#mark-messages-from-users-as-read">LINE Developers documentation</a>
|
|
1236
1357
|
*/
|
|
1237
1358
|
async markMessagesAsRead(markMessagesAsReadRequest) {
|
|
1238
1359
|
return (await this.markMessagesAsReadWithHttpInfo(markMessagesAsReadRequest)).body;
|
|
1239
1360
|
}
|
|
1240
1361
|
/**
|
|
1241
|
-
* Mark messages from users as read
|
|
1242
|
-
*
|
|
1362
|
+
* Mark messages from users as read
|
|
1363
|
+
* Calls `POST https://api.line.me/v2/bot/message/markAsRead`.
|
|
1364
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1243
1365
|
* @param markMessagesAsReadRequest
|
|
1244
|
-
*
|
|
1245
|
-
* @see <a href="https://developers.line.biz/en/reference/partner-docs/#mark-messages-from-users-as-read">
|
|
1366
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1367
|
+
* @see <a href="https://developers.line.biz/en/reference/partner-docs/#mark-messages-from-users-as-read">LINE Developers documentation</a>
|
|
1246
1368
|
*/
|
|
1247
1369
|
async markMessagesAsReadWithHttpInfo(markMessagesAsReadRequest) {
|
|
1248
1370
|
const params = markMessagesAsReadRequest;
|
|
@@ -1253,19 +1375,22 @@ export class MessagingApiClient {
|
|
|
1253
1375
|
}
|
|
1254
1376
|
/**
|
|
1255
1377
|
* Mark messages from users as read by token
|
|
1378
|
+
* Calls `POST https://api.line.me/v2/bot/chat/markAsRead`.
|
|
1379
|
+
* To inspect the HTTP status code or response headers, use {@link markMessagesAsReadByTokenWithHttpInfo}.
|
|
1256
1380
|
* @param markMessagesAsReadByTokenRequest
|
|
1257
|
-
*
|
|
1258
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#mark-as-read">
|
|
1381
|
+
* @returns A promise resolving to the response body.
|
|
1382
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#mark-as-read">LINE Developers documentation</a>
|
|
1259
1383
|
*/
|
|
1260
1384
|
async markMessagesAsReadByToken(markMessagesAsReadByTokenRequest) {
|
|
1261
1385
|
return (await this.markMessagesAsReadByTokenWithHttpInfo(markMessagesAsReadByTokenRequest)).body;
|
|
1262
1386
|
}
|
|
1263
1387
|
/**
|
|
1264
|
-
* Mark messages from users as read by token
|
|
1265
|
-
*
|
|
1388
|
+
* Mark messages from users as read by token
|
|
1389
|
+
* Calls `POST https://api.line.me/v2/bot/chat/markAsRead`.
|
|
1390
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1266
1391
|
* @param markMessagesAsReadByTokenRequest
|
|
1267
|
-
*
|
|
1268
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#mark-as-read">
|
|
1392
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1393
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#mark-as-read">LINE Developers documentation</a>
|
|
1269
1394
|
*/
|
|
1270
1395
|
async markMessagesAsReadByTokenWithHttpInfo(markMessagesAsReadByTokenRequest) {
|
|
1271
1396
|
const params = markMessagesAsReadByTokenRequest;
|
|
@@ -1276,22 +1401,25 @@ export class MessagingApiClient {
|
|
|
1276
1401
|
}
|
|
1277
1402
|
/**
|
|
1278
1403
|
* An API that efficiently sends the same message to multiple user IDs. You can't send messages to group chats or multi-person chats.
|
|
1404
|
+
* Calls `POST https://api.line.me/v2/bot/message/multicast`.
|
|
1405
|
+
* To inspect the HTTP status code or response headers, use {@link multicastWithHttpInfo}.
|
|
1279
1406
|
* @param multicastRequest
|
|
1280
1407
|
* @param xLineRetryKey Retry key. Specifies the UUID in hexadecimal format (e.g., `123e4567-e89b-12d3-a456-426614174000`) generated by any method. The retry key isn't generated by LINE. Each developer must generate their own retry key.
|
|
1281
|
-
*
|
|
1282
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#send-multicast-message">
|
|
1408
|
+
* @returns A promise resolving to the response body.
|
|
1409
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#send-multicast-message">LINE Developers documentation</a>
|
|
1283
1410
|
*/
|
|
1284
1411
|
async multicast(multicastRequest, xLineRetryKey) {
|
|
1285
1412
|
return (await this.multicastWithHttpInfo(multicastRequest, xLineRetryKey))
|
|
1286
1413
|
.body;
|
|
1287
1414
|
}
|
|
1288
1415
|
/**
|
|
1289
|
-
* An API that efficiently sends the same message to multiple user IDs. You can't send messages to group chats or multi-person chats
|
|
1290
|
-
*
|
|
1416
|
+
* An API that efficiently sends the same message to multiple user IDs. You can't send messages to group chats or multi-person chats.
|
|
1417
|
+
* Calls `POST https://api.line.me/v2/bot/message/multicast`.
|
|
1418
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1291
1419
|
* @param multicastRequest
|
|
1292
1420
|
* @param xLineRetryKey Retry key. Specifies the UUID in hexadecimal format (e.g., `123e4567-e89b-12d3-a456-426614174000`) generated by any method. The retry key isn't generated by LINE. Each developer must generate their own retry key.
|
|
1293
|
-
*
|
|
1294
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#send-multicast-message">
|
|
1421
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1422
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#send-multicast-message">LINE Developers documentation</a>
|
|
1295
1423
|
*/
|
|
1296
1424
|
async multicastWithHttpInfo(multicastRequest, xLineRetryKey) {
|
|
1297
1425
|
const params = multicastRequest;
|
|
@@ -1305,22 +1433,25 @@ export class MessagingApiClient {
|
|
|
1305
1433
|
}
|
|
1306
1434
|
/**
|
|
1307
1435
|
* Send narrowcast message
|
|
1436
|
+
* Calls `POST https://api.line.me/v2/bot/message/narrowcast`.
|
|
1437
|
+
* To inspect the HTTP status code or response headers, use {@link narrowcastWithHttpInfo}.
|
|
1308
1438
|
* @param narrowcastRequest
|
|
1309
1439
|
* @param xLineRetryKey Retry key. Specifies the UUID in hexadecimal format (e.g., `123e4567-e89b-12d3-a456-426614174000`) generated by any method. The retry key isn't generated by LINE. Each developer must generate their own retry key.
|
|
1310
|
-
*
|
|
1311
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#send-narrowcast-message">
|
|
1440
|
+
* @returns A promise resolving to the response body.
|
|
1441
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#send-narrowcast-message">LINE Developers documentation</a>
|
|
1312
1442
|
*/
|
|
1313
1443
|
async narrowcast(narrowcastRequest, xLineRetryKey) {
|
|
1314
1444
|
return (await this.narrowcastWithHttpInfo(narrowcastRequest, xLineRetryKey))
|
|
1315
1445
|
.body;
|
|
1316
1446
|
}
|
|
1317
1447
|
/**
|
|
1318
|
-
* Send narrowcast message
|
|
1319
|
-
*
|
|
1448
|
+
* Send narrowcast message
|
|
1449
|
+
* Calls `POST https://api.line.me/v2/bot/message/narrowcast`.
|
|
1450
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1320
1451
|
* @param narrowcastRequest
|
|
1321
1452
|
* @param xLineRetryKey Retry key. Specifies the UUID in hexadecimal format (e.g., `123e4567-e89b-12d3-a456-426614174000`) generated by any method. The retry key isn't generated by LINE. Each developer must generate their own retry key.
|
|
1322
|
-
*
|
|
1323
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#send-narrowcast-message">
|
|
1453
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1454
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#send-narrowcast-message">LINE Developers documentation</a>
|
|
1324
1455
|
*/
|
|
1325
1456
|
async narrowcastWithHttpInfo(narrowcastRequest, xLineRetryKey) {
|
|
1326
1457
|
const params = narrowcastRequest;
|
|
@@ -1334,21 +1465,24 @@ export class MessagingApiClient {
|
|
|
1334
1465
|
}
|
|
1335
1466
|
/**
|
|
1336
1467
|
* Sends a message to a user, group chat, or multi-person chat at any time.
|
|
1468
|
+
* Calls `POST https://api.line.me/v2/bot/message/push`.
|
|
1469
|
+
* To inspect the HTTP status code or response headers, use {@link pushMessageWithHttpInfo}.
|
|
1337
1470
|
* @param pushMessageRequest
|
|
1338
1471
|
* @param xLineRetryKey Retry key. Specifies the UUID in hexadecimal format (e.g., `123e4567-e89b-12d3-a456-426614174000`) generated by any method. The retry key isn't generated by LINE. Each developer must generate their own retry key.
|
|
1339
|
-
*
|
|
1340
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#send-push-message">
|
|
1472
|
+
* @returns A promise resolving to the response body.
|
|
1473
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#send-push-message">LINE Developers documentation</a>
|
|
1341
1474
|
*/
|
|
1342
1475
|
async pushMessage(pushMessageRequest, xLineRetryKey) {
|
|
1343
1476
|
return (await this.pushMessageWithHttpInfo(pushMessageRequest, xLineRetryKey)).body;
|
|
1344
1477
|
}
|
|
1345
1478
|
/**
|
|
1346
|
-
* Sends a message to a user, group chat, or multi-person chat at any time
|
|
1347
|
-
*
|
|
1479
|
+
* Sends a message to a user, group chat, or multi-person chat at any time.
|
|
1480
|
+
* Calls `POST https://api.line.me/v2/bot/message/push`.
|
|
1481
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1348
1482
|
* @param pushMessageRequest
|
|
1349
1483
|
* @param xLineRetryKey Retry key. Specifies the UUID in hexadecimal format (e.g., `123e4567-e89b-12d3-a456-426614174000`) generated by any method. The retry key isn't generated by LINE. Each developer must generate their own retry key.
|
|
1350
|
-
*
|
|
1351
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#send-push-message">
|
|
1484
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1485
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#send-push-message">LINE Developers documentation</a>
|
|
1352
1486
|
*/
|
|
1353
1487
|
async pushMessageWithHttpInfo(pushMessageRequest, xLineRetryKey) {
|
|
1354
1488
|
const params = pushMessageRequest;
|
|
@@ -1364,21 +1498,24 @@ export class MessagingApiClient {
|
|
|
1364
1498
|
}
|
|
1365
1499
|
/**
|
|
1366
1500
|
* Send LINE notification message
|
|
1501
|
+
* Calls `POST https://api.line.me/bot/pnp/push`.
|
|
1502
|
+
* To inspect the HTTP status code or response headers, use {@link pushMessagesByPhoneWithHttpInfo}.
|
|
1367
1503
|
* @param pnpMessagesRequest
|
|
1368
1504
|
* @param xLineDeliveryTag String returned in the delivery.data property of the delivery completion event via Webhook.
|
|
1369
|
-
*
|
|
1370
|
-
* @see <a href="https://developers.line.biz/en/reference/partner-docs/#send-line-notification-message">
|
|
1505
|
+
* @returns A promise resolving to the response body.
|
|
1506
|
+
* @see <a href="https://developers.line.biz/en/reference/partner-docs/#send-line-notification-message">LINE Developers documentation</a>
|
|
1371
1507
|
*/
|
|
1372
1508
|
async pushMessagesByPhone(pnpMessagesRequest, xLineDeliveryTag) {
|
|
1373
1509
|
return (await this.pushMessagesByPhoneWithHttpInfo(pnpMessagesRequest, xLineDeliveryTag)).body;
|
|
1374
1510
|
}
|
|
1375
1511
|
/**
|
|
1376
|
-
* Send LINE notification message
|
|
1377
|
-
*
|
|
1512
|
+
* Send LINE notification message
|
|
1513
|
+
* Calls `POST https://api.line.me/bot/pnp/push`.
|
|
1514
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1378
1515
|
* @param pnpMessagesRequest
|
|
1379
1516
|
* @param xLineDeliveryTag String returned in the delivery.data property of the delivery completion event via Webhook.
|
|
1380
|
-
*
|
|
1381
|
-
* @see <a href="https://developers.line.biz/en/reference/partner-docs/#send-line-notification-message">
|
|
1517
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1518
|
+
* @see <a href="https://developers.line.biz/en/reference/partner-docs/#send-line-notification-message">LINE Developers documentation</a>
|
|
1382
1519
|
*/
|
|
1383
1520
|
async pushMessagesByPhoneWithHttpInfo(pnpMessagesRequest, xLineDeliveryTag) {
|
|
1384
1521
|
const params = pnpMessagesRequest;
|
|
@@ -1396,19 +1533,22 @@ export class MessagingApiClient {
|
|
|
1396
1533
|
}
|
|
1397
1534
|
/**
|
|
1398
1535
|
* Send reply message
|
|
1536
|
+
* Calls `POST https://api.line.me/v2/bot/message/reply`.
|
|
1537
|
+
* To inspect the HTTP status code or response headers, use {@link replyMessageWithHttpInfo}.
|
|
1399
1538
|
* @param replyMessageRequest
|
|
1400
|
-
*
|
|
1401
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#send-reply-message">
|
|
1539
|
+
* @returns A promise resolving to the response body.
|
|
1540
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#send-reply-message">LINE Developers documentation</a>
|
|
1402
1541
|
*/
|
|
1403
1542
|
async replyMessage(replyMessageRequest) {
|
|
1404
1543
|
return (await this.replyMessageWithHttpInfo(replyMessageRequest)).body;
|
|
1405
1544
|
}
|
|
1406
1545
|
/**
|
|
1407
|
-
* Send reply message
|
|
1408
|
-
*
|
|
1546
|
+
* Send reply message
|
|
1547
|
+
* Calls `POST https://api.line.me/v2/bot/message/reply`.
|
|
1548
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1409
1549
|
* @param replyMessageRequest
|
|
1410
|
-
*
|
|
1411
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#send-reply-message">
|
|
1550
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1551
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#send-reply-message">LINE Developers documentation</a>
|
|
1412
1552
|
*/
|
|
1413
1553
|
async replyMessageWithHttpInfo(replyMessageRequest) {
|
|
1414
1554
|
const params = replyMessageRequest;
|
|
@@ -1419,19 +1559,22 @@ export class MessagingApiClient {
|
|
|
1419
1559
|
}
|
|
1420
1560
|
/**
|
|
1421
1561
|
* You can use this endpoint to batch control the rich menu linked to the users using the endpoint such as Link rich menu to user. The following operations are available: 1. Replace a rich menu with another rich menu for all users linked to a specific rich menu 2. Unlink a rich menu for all users linked to a specific rich menu 3. Unlink a rich menu for all users linked the rich menu
|
|
1562
|
+
* Calls `POST https://api.line.me/v2/bot/richmenu/batch`.
|
|
1563
|
+
* To inspect the HTTP status code or response headers, use {@link richMenuBatchWithHttpInfo}.
|
|
1422
1564
|
* @param richMenuBatchRequest
|
|
1423
|
-
*
|
|
1424
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#batch-control-rich-menus-of-users">
|
|
1565
|
+
* @returns A promise resolving to the response body.
|
|
1566
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#batch-control-rich-menus-of-users">LINE Developers documentation</a>
|
|
1425
1567
|
*/
|
|
1426
1568
|
async richMenuBatch(richMenuBatchRequest) {
|
|
1427
1569
|
return (await this.richMenuBatchWithHttpInfo(richMenuBatchRequest)).body;
|
|
1428
1570
|
}
|
|
1429
1571
|
/**
|
|
1430
|
-
* You can use this endpoint to batch control the rich menu linked to the users using the endpoint such as Link rich menu to user. The following operations are available: 1. Replace a rich menu with another rich menu for all users linked to a specific rich menu 2. Unlink a rich menu for all users linked to a specific rich menu 3. Unlink a rich menu for all users linked the rich menu
|
|
1431
|
-
*
|
|
1572
|
+
* You can use this endpoint to batch control the rich menu linked to the users using the endpoint such as Link rich menu to user. The following operations are available: 1. Replace a rich menu with another rich menu for all users linked to a specific rich menu 2. Unlink a rich menu for all users linked to a specific rich menu 3. Unlink a rich menu for all users linked the rich menu
|
|
1573
|
+
* Calls `POST https://api.line.me/v2/bot/richmenu/batch`.
|
|
1574
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1432
1575
|
* @param richMenuBatchRequest
|
|
1433
|
-
*
|
|
1434
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#batch-control-rich-menus-of-users">
|
|
1576
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1577
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#batch-control-rich-menus-of-users">LINE Developers documentation</a>
|
|
1435
1578
|
*/
|
|
1436
1579
|
async richMenuBatchWithHttpInfo(richMenuBatchRequest) {
|
|
1437
1580
|
const params = richMenuBatchRequest;
|
|
@@ -1442,19 +1585,22 @@ export class MessagingApiClient {
|
|
|
1442
1585
|
}
|
|
1443
1586
|
/**
|
|
1444
1587
|
* Set default rich menu
|
|
1588
|
+
* Calls `POST https://api.line.me/v2/bot/user/all/richmenu/{richMenuId}`.
|
|
1589
|
+
* To inspect the HTTP status code or response headers, use {@link setDefaultRichMenuWithHttpInfo}.
|
|
1445
1590
|
* @param richMenuId ID of a rich menu
|
|
1446
|
-
*
|
|
1447
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#set-default-rich-menu">
|
|
1591
|
+
* @returns A promise resolving to the response body.
|
|
1592
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#set-default-rich-menu">LINE Developers documentation</a>
|
|
1448
1593
|
*/
|
|
1449
1594
|
async setDefaultRichMenu(richMenuId) {
|
|
1450
1595
|
return (await this.setDefaultRichMenuWithHttpInfo(richMenuId)).body;
|
|
1451
1596
|
}
|
|
1452
1597
|
/**
|
|
1453
|
-
* Set default rich menu
|
|
1454
|
-
*
|
|
1598
|
+
* Set default rich menu
|
|
1599
|
+
* Calls `POST https://api.line.me/v2/bot/user/all/richmenu/{richMenuId}`.
|
|
1600
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1455
1601
|
* @param richMenuId ID of a rich menu
|
|
1456
|
-
*
|
|
1457
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#set-default-rich-menu">
|
|
1602
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1603
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#set-default-rich-menu">LINE Developers documentation</a>
|
|
1458
1604
|
*/
|
|
1459
1605
|
async setDefaultRichMenuWithHttpInfo(richMenuId) {
|
|
1460
1606
|
const requestPath = buildPath("/v2/bot/user/all/richmenu/{richMenuId}", {
|
|
@@ -1467,19 +1613,22 @@ export class MessagingApiClient {
|
|
|
1467
1613
|
}
|
|
1468
1614
|
/**
|
|
1469
1615
|
* Set webhook endpoint URL
|
|
1616
|
+
* Calls `PUT https://api.line.me/v2/bot/channel/webhook/endpoint`.
|
|
1617
|
+
* To inspect the HTTP status code or response headers, use {@link setWebhookEndpointWithHttpInfo}.
|
|
1470
1618
|
* @param setWebhookEndpointRequest
|
|
1471
|
-
*
|
|
1472
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#set-webhook-endpoint-url">
|
|
1619
|
+
* @returns A promise resolving to the response body.
|
|
1620
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#set-webhook-endpoint-url">LINE Developers documentation</a>
|
|
1473
1621
|
*/
|
|
1474
1622
|
async setWebhookEndpoint(setWebhookEndpointRequest) {
|
|
1475
1623
|
return (await this.setWebhookEndpointWithHttpInfo(setWebhookEndpointRequest)).body;
|
|
1476
1624
|
}
|
|
1477
1625
|
/**
|
|
1478
|
-
* Set webhook endpoint URL
|
|
1479
|
-
*
|
|
1626
|
+
* Set webhook endpoint URL
|
|
1627
|
+
* Calls `PUT https://api.line.me/v2/bot/channel/webhook/endpoint`.
|
|
1628
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1480
1629
|
* @param setWebhookEndpointRequest
|
|
1481
|
-
*
|
|
1482
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#set-webhook-endpoint-url">
|
|
1630
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1631
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#set-webhook-endpoint-url">LINE Developers documentation</a>
|
|
1483
1632
|
*/
|
|
1484
1633
|
async setWebhookEndpointWithHttpInfo(setWebhookEndpointRequest) {
|
|
1485
1634
|
const params = setWebhookEndpointRequest;
|
|
@@ -1490,19 +1639,22 @@ export class MessagingApiClient {
|
|
|
1490
1639
|
}
|
|
1491
1640
|
/**
|
|
1492
1641
|
* Display a loading animation in one-on-one chats between users and LINE Official Accounts.
|
|
1642
|
+
* Calls `POST https://api.line.me/v2/bot/chat/loading/start`.
|
|
1643
|
+
* To inspect the HTTP status code or response headers, use {@link showLoadingAnimationWithHttpInfo}.
|
|
1493
1644
|
* @param showLoadingAnimationRequest
|
|
1494
|
-
*
|
|
1495
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#display-a-loading-indicator">
|
|
1645
|
+
* @returns A promise resolving to the response body.
|
|
1646
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#display-a-loading-indicator">LINE Developers documentation</a>
|
|
1496
1647
|
*/
|
|
1497
1648
|
async showLoadingAnimation(showLoadingAnimationRequest) {
|
|
1498
1649
|
return (await this.showLoadingAnimationWithHttpInfo(showLoadingAnimationRequest)).body;
|
|
1499
1650
|
}
|
|
1500
1651
|
/**
|
|
1501
|
-
* Display a loading animation in one-on-one chats between users and LINE Official Accounts
|
|
1502
|
-
*
|
|
1652
|
+
* Display a loading animation in one-on-one chats between users and LINE Official Accounts.
|
|
1653
|
+
* Calls `POST https://api.line.me/v2/bot/chat/loading/start`.
|
|
1654
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1503
1655
|
* @param showLoadingAnimationRequest
|
|
1504
|
-
*
|
|
1505
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#display-a-loading-indicator">
|
|
1656
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1657
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#display-a-loading-indicator">LINE Developers documentation</a>
|
|
1506
1658
|
*/
|
|
1507
1659
|
async showLoadingAnimationWithHttpInfo(showLoadingAnimationRequest) {
|
|
1508
1660
|
const params = showLoadingAnimationRequest;
|
|
@@ -1513,19 +1665,22 @@ export class MessagingApiClient {
|
|
|
1513
1665
|
}
|
|
1514
1666
|
/**
|
|
1515
1667
|
* Test webhook endpoint
|
|
1668
|
+
* Calls `POST https://api.line.me/v2/bot/channel/webhook/test`.
|
|
1669
|
+
* To inspect the HTTP status code or response headers, use {@link testWebhookEndpointWithHttpInfo}.
|
|
1516
1670
|
* @param testWebhookEndpointRequest
|
|
1517
|
-
*
|
|
1518
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#test-webhook-endpoint">
|
|
1671
|
+
* @returns A promise resolving to the response body.
|
|
1672
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#test-webhook-endpoint">LINE Developers documentation</a>
|
|
1519
1673
|
*/
|
|
1520
1674
|
async testWebhookEndpoint(testWebhookEndpointRequest) {
|
|
1521
1675
|
return (await this.testWebhookEndpointWithHttpInfo(testWebhookEndpointRequest)).body;
|
|
1522
1676
|
}
|
|
1523
1677
|
/**
|
|
1524
|
-
* Test webhook endpoint
|
|
1525
|
-
*
|
|
1678
|
+
* Test webhook endpoint
|
|
1679
|
+
* Calls `POST https://api.line.me/v2/bot/channel/webhook/test`.
|
|
1680
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1526
1681
|
* @param testWebhookEndpointRequest
|
|
1527
|
-
*
|
|
1528
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#test-webhook-endpoint">
|
|
1682
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1683
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#test-webhook-endpoint">LINE Developers documentation</a>
|
|
1529
1684
|
*/
|
|
1530
1685
|
async testWebhookEndpointWithHttpInfo(testWebhookEndpointRequest) {
|
|
1531
1686
|
const params = testWebhookEndpointRequest;
|
|
@@ -1536,19 +1691,22 @@ export class MessagingApiClient {
|
|
|
1536
1691
|
}
|
|
1537
1692
|
/**
|
|
1538
1693
|
* Unlink rich menu from user
|
|
1694
|
+
* Calls `DELETE https://api.line.me/v2/bot/user/{userId}/richmenu`.
|
|
1695
|
+
* To inspect the HTTP status code or response headers, use {@link unlinkRichMenuIdFromUserWithHttpInfo}.
|
|
1539
1696
|
* @param userId User ID. Found in the `source` object of webhook event objects. Do not use the LINE ID used in LINE.
|
|
1540
|
-
*
|
|
1541
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#unlink-rich-menu-from-user">
|
|
1697
|
+
* @returns A promise resolving to the response body.
|
|
1698
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#unlink-rich-menu-from-user">LINE Developers documentation</a>
|
|
1542
1699
|
*/
|
|
1543
1700
|
async unlinkRichMenuIdFromUser(userId) {
|
|
1544
1701
|
return (await this.unlinkRichMenuIdFromUserWithHttpInfo(userId)).body;
|
|
1545
1702
|
}
|
|
1546
1703
|
/**
|
|
1547
|
-
* Unlink rich menu from user
|
|
1548
|
-
*
|
|
1704
|
+
* Unlink rich menu from user
|
|
1705
|
+
* Calls `DELETE https://api.line.me/v2/bot/user/{userId}/richmenu`.
|
|
1706
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1549
1707
|
* @param userId User ID. Found in the `source` object of webhook event objects. Do not use the LINE ID used in LINE.
|
|
1550
|
-
*
|
|
1551
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#unlink-rich-menu-from-user">
|
|
1708
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1709
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#unlink-rich-menu-from-user">LINE Developers documentation</a>
|
|
1552
1710
|
*/
|
|
1553
1711
|
async unlinkRichMenuIdFromUserWithHttpInfo(userId) {
|
|
1554
1712
|
const requestPath = buildPath("/v2/bot/user/{userId}/richmenu", {
|
|
@@ -1561,19 +1719,22 @@ export class MessagingApiClient {
|
|
|
1561
1719
|
}
|
|
1562
1720
|
/**
|
|
1563
1721
|
* Unlink rich menus from multiple users
|
|
1722
|
+
* Calls `POST https://api.line.me/v2/bot/richmenu/bulk/unlink`.
|
|
1723
|
+
* To inspect the HTTP status code or response headers, use {@link unlinkRichMenuIdFromUsersWithHttpInfo}.
|
|
1564
1724
|
* @param richMenuBulkUnlinkRequest
|
|
1565
|
-
*
|
|
1566
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#unlink-rich-menu-from-users">
|
|
1725
|
+
* @returns A promise resolving to the response body.
|
|
1726
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#unlink-rich-menu-from-users">LINE Developers documentation</a>
|
|
1567
1727
|
*/
|
|
1568
1728
|
async unlinkRichMenuIdFromUsers(richMenuBulkUnlinkRequest) {
|
|
1569
1729
|
return (await this.unlinkRichMenuIdFromUsersWithHttpInfo(richMenuBulkUnlinkRequest)).body;
|
|
1570
1730
|
}
|
|
1571
1731
|
/**
|
|
1572
|
-
* Unlink rich menus from multiple users
|
|
1573
|
-
*
|
|
1732
|
+
* Unlink rich menus from multiple users
|
|
1733
|
+
* Calls `POST https://api.line.me/v2/bot/richmenu/bulk/unlink`.
|
|
1734
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1574
1735
|
* @param richMenuBulkUnlinkRequest
|
|
1575
|
-
*
|
|
1576
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#unlink-rich-menu-from-users">
|
|
1736
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1737
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#unlink-rich-menu-from-users">LINE Developers documentation</a>
|
|
1577
1738
|
*/
|
|
1578
1739
|
async unlinkRichMenuIdFromUsersWithHttpInfo(richMenuBulkUnlinkRequest) {
|
|
1579
1740
|
const params = richMenuBulkUnlinkRequest;
|
|
@@ -1584,21 +1745,24 @@ export class MessagingApiClient {
|
|
|
1584
1745
|
}
|
|
1585
1746
|
/**
|
|
1586
1747
|
* Update rich menu alias
|
|
1748
|
+
* Calls `POST https://api.line.me/v2/bot/richmenu/alias/{richMenuAliasId}`.
|
|
1749
|
+
* To inspect the HTTP status code or response headers, use {@link updateRichMenuAliasWithHttpInfo}.
|
|
1587
1750
|
* @param richMenuAliasId The rich menu alias ID you want to update.
|
|
1588
1751
|
* @param updateRichMenuAliasRequest
|
|
1589
|
-
*
|
|
1590
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#update-rich-menu-alias">
|
|
1752
|
+
* @returns A promise resolving to the response body.
|
|
1753
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#update-rich-menu-alias">LINE Developers documentation</a>
|
|
1591
1754
|
*/
|
|
1592
1755
|
async updateRichMenuAlias(richMenuAliasId, updateRichMenuAliasRequest) {
|
|
1593
1756
|
return (await this.updateRichMenuAliasWithHttpInfo(richMenuAliasId, updateRichMenuAliasRequest)).body;
|
|
1594
1757
|
}
|
|
1595
1758
|
/**
|
|
1596
|
-
* Update rich menu alias
|
|
1597
|
-
*
|
|
1759
|
+
* Update rich menu alias
|
|
1760
|
+
* Calls `POST https://api.line.me/v2/bot/richmenu/alias/{richMenuAliasId}`.
|
|
1761
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1598
1762
|
* @param richMenuAliasId The rich menu alias ID you want to update.
|
|
1599
1763
|
* @param updateRichMenuAliasRequest
|
|
1600
|
-
*
|
|
1601
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#update-rich-menu-alias">
|
|
1764
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1765
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#update-rich-menu-alias">LINE Developers documentation</a>
|
|
1602
1766
|
*/
|
|
1603
1767
|
async updateRichMenuAliasWithHttpInfo(richMenuAliasId, updateRichMenuAliasRequest) {
|
|
1604
1768
|
const requestPath = buildPath("/v2/bot/richmenu/alias/{richMenuAliasId}", {
|
|
@@ -1612,20 +1776,23 @@ export class MessagingApiClient {
|
|
|
1612
1776
|
}
|
|
1613
1777
|
/**
|
|
1614
1778
|
* Validate message objects of a broadcast message
|
|
1779
|
+
* Calls `POST https://api.line.me/v2/bot/message/validate/broadcast`.
|
|
1780
|
+
* To inspect the HTTP status code or response headers, use {@link validateBroadcastWithHttpInfo}.
|
|
1615
1781
|
* @param validateMessageRequest
|
|
1616
|
-
*
|
|
1617
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-broadcast-message">
|
|
1782
|
+
* @returns A promise resolving to the response body.
|
|
1783
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-broadcast-message">LINE Developers documentation</a>
|
|
1618
1784
|
*/
|
|
1619
1785
|
async validateBroadcast(validateMessageRequest) {
|
|
1620
1786
|
return (await this.validateBroadcastWithHttpInfo(validateMessageRequest))
|
|
1621
1787
|
.body;
|
|
1622
1788
|
}
|
|
1623
1789
|
/**
|
|
1624
|
-
* Validate message objects of a broadcast message
|
|
1625
|
-
*
|
|
1790
|
+
* Validate message objects of a broadcast message
|
|
1791
|
+
* Calls `POST https://api.line.me/v2/bot/message/validate/broadcast`.
|
|
1792
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1626
1793
|
* @param validateMessageRequest
|
|
1627
|
-
*
|
|
1628
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-broadcast-message">
|
|
1794
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1795
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-broadcast-message">LINE Developers documentation</a>
|
|
1629
1796
|
*/
|
|
1630
1797
|
async validateBroadcastWithHttpInfo(validateMessageRequest) {
|
|
1631
1798
|
const params = validateMessageRequest;
|
|
@@ -1636,20 +1803,23 @@ export class MessagingApiClient {
|
|
|
1636
1803
|
}
|
|
1637
1804
|
/**
|
|
1638
1805
|
* Validate message objects of a multicast message
|
|
1806
|
+
* Calls `POST https://api.line.me/v2/bot/message/validate/multicast`.
|
|
1807
|
+
* To inspect the HTTP status code or response headers, use {@link validateMulticastWithHttpInfo}.
|
|
1639
1808
|
* @param validateMessageRequest
|
|
1640
|
-
*
|
|
1641
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-multicast-message">
|
|
1809
|
+
* @returns A promise resolving to the response body.
|
|
1810
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-multicast-message">LINE Developers documentation</a>
|
|
1642
1811
|
*/
|
|
1643
1812
|
async validateMulticast(validateMessageRequest) {
|
|
1644
1813
|
return (await this.validateMulticastWithHttpInfo(validateMessageRequest))
|
|
1645
1814
|
.body;
|
|
1646
1815
|
}
|
|
1647
1816
|
/**
|
|
1648
|
-
* Validate message objects of a multicast message
|
|
1649
|
-
*
|
|
1817
|
+
* Validate message objects of a multicast message
|
|
1818
|
+
* Calls `POST https://api.line.me/v2/bot/message/validate/multicast`.
|
|
1819
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1650
1820
|
* @param validateMessageRequest
|
|
1651
|
-
*
|
|
1652
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-multicast-message">
|
|
1821
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1822
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-multicast-message">LINE Developers documentation</a>
|
|
1653
1823
|
*/
|
|
1654
1824
|
async validateMulticastWithHttpInfo(validateMessageRequest) {
|
|
1655
1825
|
const params = validateMessageRequest;
|
|
@@ -1660,20 +1830,23 @@ export class MessagingApiClient {
|
|
|
1660
1830
|
}
|
|
1661
1831
|
/**
|
|
1662
1832
|
* Validate message objects of a narrowcast message
|
|
1833
|
+
* Calls `POST https://api.line.me/v2/bot/message/validate/narrowcast`.
|
|
1834
|
+
* To inspect the HTTP status code or response headers, use {@link validateNarrowcastWithHttpInfo}.
|
|
1663
1835
|
* @param validateMessageRequest
|
|
1664
|
-
*
|
|
1665
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-narrowcast-message">
|
|
1836
|
+
* @returns A promise resolving to the response body.
|
|
1837
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-narrowcast-message">LINE Developers documentation</a>
|
|
1666
1838
|
*/
|
|
1667
1839
|
async validateNarrowcast(validateMessageRequest) {
|
|
1668
1840
|
return (await this.validateNarrowcastWithHttpInfo(validateMessageRequest))
|
|
1669
1841
|
.body;
|
|
1670
1842
|
}
|
|
1671
1843
|
/**
|
|
1672
|
-
* Validate message objects of a narrowcast message
|
|
1673
|
-
*
|
|
1844
|
+
* Validate message objects of a narrowcast message
|
|
1845
|
+
* Calls `POST https://api.line.me/v2/bot/message/validate/narrowcast`.
|
|
1846
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1674
1847
|
* @param validateMessageRequest
|
|
1675
|
-
*
|
|
1676
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-narrowcast-message">
|
|
1848
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1849
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-narrowcast-message">LINE Developers documentation</a>
|
|
1677
1850
|
*/
|
|
1678
1851
|
async validateNarrowcastWithHttpInfo(validateMessageRequest) {
|
|
1679
1852
|
const params = validateMessageRequest;
|
|
@@ -1684,19 +1857,22 @@ export class MessagingApiClient {
|
|
|
1684
1857
|
}
|
|
1685
1858
|
/**
|
|
1686
1859
|
* Validate message objects of a push message
|
|
1860
|
+
* Calls `POST https://api.line.me/v2/bot/message/validate/push`.
|
|
1861
|
+
* To inspect the HTTP status code or response headers, use {@link validatePushWithHttpInfo}.
|
|
1687
1862
|
* @param validateMessageRequest
|
|
1688
|
-
*
|
|
1689
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-push-message">
|
|
1863
|
+
* @returns A promise resolving to the response body.
|
|
1864
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-push-message">LINE Developers documentation</a>
|
|
1690
1865
|
*/
|
|
1691
1866
|
async validatePush(validateMessageRequest) {
|
|
1692
1867
|
return (await this.validatePushWithHttpInfo(validateMessageRequest)).body;
|
|
1693
1868
|
}
|
|
1694
1869
|
/**
|
|
1695
|
-
* Validate message objects of a push message
|
|
1696
|
-
*
|
|
1870
|
+
* Validate message objects of a push message
|
|
1871
|
+
* Calls `POST https://api.line.me/v2/bot/message/validate/push`.
|
|
1872
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1697
1873
|
* @param validateMessageRequest
|
|
1698
|
-
*
|
|
1699
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-push-message">
|
|
1874
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1875
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-push-message">LINE Developers documentation</a>
|
|
1700
1876
|
*/
|
|
1701
1877
|
async validatePushWithHttpInfo(validateMessageRequest) {
|
|
1702
1878
|
const params = validateMessageRequest;
|
|
@@ -1707,19 +1883,22 @@ export class MessagingApiClient {
|
|
|
1707
1883
|
}
|
|
1708
1884
|
/**
|
|
1709
1885
|
* Validate message objects of a reply message
|
|
1886
|
+
* Calls `POST https://api.line.me/v2/bot/message/validate/reply`.
|
|
1887
|
+
* To inspect the HTTP status code or response headers, use {@link validateReplyWithHttpInfo}.
|
|
1710
1888
|
* @param validateMessageRequest
|
|
1711
|
-
*
|
|
1712
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-reply-message">
|
|
1889
|
+
* @returns A promise resolving to the response body.
|
|
1890
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-reply-message">LINE Developers documentation</a>
|
|
1713
1891
|
*/
|
|
1714
1892
|
async validateReply(validateMessageRequest) {
|
|
1715
1893
|
return (await this.validateReplyWithHttpInfo(validateMessageRequest)).body;
|
|
1716
1894
|
}
|
|
1717
1895
|
/**
|
|
1718
|
-
* Validate message objects of a reply message
|
|
1719
|
-
*
|
|
1896
|
+
* Validate message objects of a reply message
|
|
1897
|
+
* Calls `POST https://api.line.me/v2/bot/message/validate/reply`.
|
|
1898
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1720
1899
|
* @param validateMessageRequest
|
|
1721
|
-
*
|
|
1722
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-reply-message">
|
|
1900
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1901
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-reply-message">LINE Developers documentation</a>
|
|
1723
1902
|
*/
|
|
1724
1903
|
async validateReplyWithHttpInfo(validateMessageRequest) {
|
|
1725
1904
|
const params = validateMessageRequest;
|
|
@@ -1730,19 +1909,22 @@ export class MessagingApiClient {
|
|
|
1730
1909
|
}
|
|
1731
1910
|
/**
|
|
1732
1911
|
* Validate a request body of the Replace or unlink the linked rich menus in batches endpoint.
|
|
1912
|
+
* Calls `POST https://api.line.me/v2/bot/richmenu/validate/batch`.
|
|
1913
|
+
* To inspect the HTTP status code or response headers, use {@link validateRichMenuBatchRequestWithHttpInfo}.
|
|
1733
1914
|
* @param richMenuBatchRequest
|
|
1734
|
-
*
|
|
1735
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#validate-batch-control-rich-menus-request">
|
|
1915
|
+
* @returns A promise resolving to the response body.
|
|
1916
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#validate-batch-control-rich-menus-request">LINE Developers documentation</a>
|
|
1736
1917
|
*/
|
|
1737
1918
|
async validateRichMenuBatchRequest(richMenuBatchRequest) {
|
|
1738
1919
|
return (await this.validateRichMenuBatchRequestWithHttpInfo(richMenuBatchRequest)).body;
|
|
1739
1920
|
}
|
|
1740
1921
|
/**
|
|
1741
|
-
* Validate a request body of the Replace or unlink the linked rich menus in batches endpoint
|
|
1742
|
-
*
|
|
1922
|
+
* Validate a request body of the Replace or unlink the linked rich menus in batches endpoint.
|
|
1923
|
+
* Calls `POST https://api.line.me/v2/bot/richmenu/validate/batch`.
|
|
1924
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1743
1925
|
* @param richMenuBatchRequest
|
|
1744
|
-
*
|
|
1745
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#validate-batch-control-rich-menus-request">
|
|
1926
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1927
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#validate-batch-control-rich-menus-request">LINE Developers documentation</a>
|
|
1746
1928
|
*/
|
|
1747
1929
|
async validateRichMenuBatchRequestWithHttpInfo(richMenuBatchRequest) {
|
|
1748
1930
|
const params = richMenuBatchRequest;
|
|
@@ -1753,20 +1935,23 @@ export class MessagingApiClient {
|
|
|
1753
1935
|
}
|
|
1754
1936
|
/**
|
|
1755
1937
|
* Validate rich menu object
|
|
1938
|
+
* Calls `POST https://api.line.me/v2/bot/richmenu/validate`.
|
|
1939
|
+
* To inspect the HTTP status code or response headers, use {@link validateRichMenuObjectWithHttpInfo}.
|
|
1756
1940
|
* @param richMenuRequest
|
|
1757
|
-
*
|
|
1758
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#validate-rich-menu-object">
|
|
1941
|
+
* @returns A promise resolving to the response body.
|
|
1942
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#validate-rich-menu-object">LINE Developers documentation</a>
|
|
1759
1943
|
*/
|
|
1760
1944
|
async validateRichMenuObject(richMenuRequest) {
|
|
1761
1945
|
return (await this.validateRichMenuObjectWithHttpInfo(richMenuRequest))
|
|
1762
1946
|
.body;
|
|
1763
1947
|
}
|
|
1764
1948
|
/**
|
|
1765
|
-
* Validate rich menu object
|
|
1766
|
-
*
|
|
1949
|
+
* Validate rich menu object
|
|
1950
|
+
* Calls `POST https://api.line.me/v2/bot/richmenu/validate`.
|
|
1951
|
+
* This method returns the response body together with the underlying `httpResponse`.
|
|
1767
1952
|
* @param richMenuRequest
|
|
1768
|
-
*
|
|
1769
|
-
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#validate-rich-menu-object">
|
|
1953
|
+
* @returns A promise resolving to the response body together with the underlying `httpResponse`.
|
|
1954
|
+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#validate-rich-menu-object">LINE Developers documentation</a>
|
|
1770
1955
|
*/
|
|
1771
1956
|
async validateRichMenuObjectWithHttpInfo(richMenuRequest) {
|
|
1772
1957
|
const params = richMenuRequest;
|