1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | import { GetMessageContentTranscodingResponse } from "../model/getMessageContentTranscodingResponse.js";
|
13 | import * as Types from "../../types.js";
|
14 | import { Readable } from "node:stream";
|
15 | interface httpClientConfig {
|
16 | baseURL?: string;
|
17 | channelAccessToken: string;
|
18 | }
|
19 | export declare class MessagingApiBlobClient {
|
20 | private httpClient;
|
21 | constructor(config: httpClientConfig);
|
22 | private parseHTTPResponse;
|
23 | /**
|
24 | * Download image, video, and audio data sent from users.
|
25 | * @param messageId Message ID of video or audio
|
26 | *
|
27 | * @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-content"> Documentation</a>
|
28 | */
|
29 | getMessageContent(messageId: string): Promise<Readable>;
|
30 | /**
|
31 | * Download image, video, and audio data sent from users..
|
32 | * This method includes HttpInfo object to return additional information.
|
33 | * @param messageId Message ID of video or audio
|
34 | *
|
35 | * @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-content"> Documentation</a>
|
36 | */
|
37 | getMessageContentWithHttpInfo(messageId: string): Promise<Types.ApiResponseType<Readable>>;
|
38 | /**
|
39 | * Get a preview image of the image or video
|
40 | * @param messageId Message ID of image or video
|
41 | *
|
42 | * @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-image-or-video-preview"> Documentation</a>
|
43 | */
|
44 | getMessageContentPreview(messageId: string): Promise<Readable>;
|
45 | /**
|
46 | * Get a preview image of the image or video.
|
47 | * This method includes HttpInfo object to return additional information.
|
48 | * @param messageId Message ID of image or video
|
49 | *
|
50 | * @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-image-or-video-preview"> Documentation</a>
|
51 | */
|
52 | getMessageContentPreviewWithHttpInfo(messageId: string): Promise<Types.ApiResponseType<Readable>>;
|
53 | /**
|
54 | * Verify the preparation status of a video or audio for getting
|
55 | * @param messageId Message ID of video or audio
|
56 | *
|
57 | * @see <a href="https://developers.line.biz/en/reference/messaging-api/#verify-video-or-audio-preparation-status"> Documentation</a>
|
58 | */
|
59 | getMessageContentTranscodingByMessageId(messageId: string): Promise<GetMessageContentTranscodingResponse>;
|
60 | /**
|
61 | * Verify the preparation status of a video or audio for getting.
|
62 | * This method includes HttpInfo object to return additional information.
|
63 | * @param messageId Message ID of video or audio
|
64 | *
|
65 | * @see <a href="https://developers.line.biz/en/reference/messaging-api/#verify-video-or-audio-preparation-status"> Documentation</a>
|
66 | */
|
67 | getMessageContentTranscodingByMessageIdWithHttpInfo(messageId: string): Promise<Types.ApiResponseType<GetMessageContentTranscodingResponse>>;
|
68 | /**
|
69 | * Download rich menu image.
|
70 | * @param richMenuId ID of the rich menu with the image to be downloaded
|
71 | *
|
72 | * @see <a href="https://developers.line.biz/en/reference/messaging-api/#download-rich-menu-image"> Documentation</a>
|
73 | */
|
74 | getRichMenuImage(richMenuId: string): Promise<Readable>;
|
75 | /**
|
76 | * Download rich menu image..
|
77 | * This method includes HttpInfo object to return additional information.
|
78 | * @param richMenuId ID of the rich menu with the image to be downloaded
|
79 | *
|
80 | * @see <a href="https://developers.line.biz/en/reference/messaging-api/#download-rich-menu-image"> Documentation</a>
|
81 | */
|
82 | getRichMenuImageWithHttpInfo(richMenuId: string): Promise<Types.ApiResponseType<Readable>>;
|
83 | /**
|
84 | * Upload rich menu image
|
85 | * @param richMenuId The ID of the rich menu to attach the image to
|
86 | * @param body
|
87 | *
|
88 | * @see <a href="https://developers.line.biz/en/reference/messaging-api/#upload-rich-menu-image"> Documentation</a>
|
89 | */
|
90 | setRichMenuImage(richMenuId: string, body?: Blob): Promise<Types.MessageAPIResponseBase>;
|
91 | /**
|
92 | * Upload rich menu image.
|
93 | * This method includes HttpInfo object to return additional information.
|
94 | * @param richMenuId The ID of the rich menu to attach the image to
|
95 | * @param body
|
96 | *
|
97 | * @see <a href="https://developers.line.biz/en/reference/messaging-api/#upload-rich-menu-image"> Documentation</a>
|
98 | */
|
99 | setRichMenuImageWithHttpInfo(richMenuId: string, body?: Blob): Promise<Types.ApiResponseType<Types.MessageAPIResponseBase>>;
|
100 | }
|
101 | export {};
|
102 |
|
\ | No newline at end of file |