UNPKG

5.52 kBTypeScriptView Raw
1/**
2 * LINE Messaging API
3 * This document describes LINE Messaging API.
4 *
5 * The version of the OpenAPI document: 0.0.1
6 *
7 *
8 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 * https://openapi-generator.tech
10 * Do not edit the class manually.
11 */
12import { AcquireChatControlRequest } from "../model/acquireChatControlRequest.js";
13import { DetachModuleRequest } from "../model/detachModuleRequest.js";
14import { GetModulesResponse } from "../model/getModulesResponse.js";
15import * as Types from "../../types.js";
16interface httpClientConfig {
17 baseURL?: string;
18 channelAccessToken: string;
19}
20export declare class LineModuleClient {
21 private httpClient;
22 constructor(config: httpClientConfig);
23 private parseHTTPResponse;
24 /**
25 * If the Standby Channel wants to take the initiative (Chat Control), it calls the Acquire Control API. The channel that was previously an Active Channel will automatically switch to a Standby Channel.
26 * @param chatId The `userId`, `roomId`, or `groupId`
27 * @param acquireChatControlRequest
28 *
29 * @see <a href="https://developers.line.biz/en/reference/partner-docs/#acquire-control-api"> Documentation</a>
30 */
31 acquireChatControl(chatId: string, acquireChatControlRequest?: AcquireChatControlRequest): Promise<Types.MessageAPIResponseBase>;
32 /**
33 * If the Standby Channel wants to take the initiative (Chat Control), it calls the Acquire Control API. The channel that was previously an Active Channel will automatically switch to a Standby Channel. .
34 * This method includes HttpInfo object to return additional information.
35 * @param chatId The `userId`, `roomId`, or `groupId`
36 * @param acquireChatControlRequest
37 *
38 * @see <a href="https://developers.line.biz/en/reference/partner-docs/#acquire-control-api"> Documentation</a>
39 */
40 acquireChatControlWithHttpInfo(chatId: string, acquireChatControlRequest?: AcquireChatControlRequest): Promise<Types.ApiResponseType<Types.MessageAPIResponseBase>>;
41 /**
42 * The module channel admin calls the Detach API to detach the module channel from a LINE Official Account.
43 * @param detachModuleRequest
44 *
45 * @see <a href="https://developers.line.biz/en/reference/partner-docs/#unlink-detach-module-channel-by-operation-mc-admin"> Documentation</a>
46 */
47 detachModule(detachModuleRequest?: DetachModuleRequest): Promise<Types.MessageAPIResponseBase>;
48 /**
49 * The module channel admin calls the Detach API to detach the module channel from a LINE Official Account..
50 * This method includes HttpInfo object to return additional information.
51 * @param detachModuleRequest
52 *
53 * @see <a href="https://developers.line.biz/en/reference/partner-docs/#unlink-detach-module-channel-by-operation-mc-admin"> Documentation</a>
54 */
55 detachModuleWithHttpInfo(detachModuleRequest?: DetachModuleRequest): Promise<Types.ApiResponseType<Types.MessageAPIResponseBase>>;
56 /**
57 * Gets a list of basic information about the bots of multiple LINE Official Accounts that have attached module channels.
58 * @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 basic information about the bots in one request, include this parameter to get the remaining array.
59 * @param limit Specify the maximum number of bots that you get basic information from. The default value is 100. Max value: 100
60 *
61 * @see <a href="https://developers.line.biz/en/reference/partner-docs/#get-multiple-bot-info-api"> Documentation</a>
62 */
63 getModules(start?: string, limit?: number): Promise<GetModulesResponse>;
64 /**
65 * Gets a list of basic information about the bots of multiple LINE Official Accounts that have attached module channels..
66 * This method includes HttpInfo object to return additional information.
67 * @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 basic information about the bots in one request, include this parameter to get the remaining array.
68 * @param limit Specify the maximum number of bots that you get basic information from. The default value is 100. Max value: 100
69 *
70 * @see <a href="https://developers.line.biz/en/reference/partner-docs/#get-multiple-bot-info-api"> Documentation</a>
71 */
72 getModulesWithHttpInfo(start?: string, limit?: number): Promise<Types.ApiResponseType<GetModulesResponse>>;
73 /**
74 * To return the initiative (Chat Control) of Active Channel to Primary Channel, call the Release Control API.
75 * @param chatId The `userId`, `roomId`, or `groupId`
76 *
77 * @see <a href="https://developers.line.biz/en/reference/partner-docs/#release-control-api"> Documentation</a>
78 */
79 releaseChatControl(chatId: string): Promise<Types.MessageAPIResponseBase>;
80 /**
81 * To return the initiative (Chat Control) of Active Channel to Primary Channel, call the Release Control API. .
82 * This method includes HttpInfo object to return additional information.
83 * @param chatId The `userId`, `roomId`, or `groupId`
84 *
85 * @see <a href="https://developers.line.biz/en/reference/partner-docs/#release-control-api"> Documentation</a>
86 */
87 releaseChatControlWithHttpInfo(chatId: string): Promise<Types.ApiResponseType<Types.MessageAPIResponseBase>>;
88}
89export {};
90//# sourceMappingURL=lineModuleClient.d.ts.map
\No newline at end of file