UNPKG

1.38 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 { CameraAction } from "./models";
13import { CameraRollAction } from "./models";
14import { ClipboardAction } from "./models";
15import { DatetimePickerAction } from "./models";
16import { LocationAction } from "./models";
17import { MessageAction } from "./models";
18import { PostbackAction } from "./models";
19import { RichMenuSwitchAction } from "./models";
20import { URIAction } from "./models";
21export type Action = CameraAction | CameraRollAction | ClipboardAction | DatetimePickerAction | LocationAction | MessageAction | PostbackAction | RichMenuSwitchAction | URIAction | UnknownAction;
22export type UnknownAction = ActionBase & {
23 [key: string]: unknown;
24};
25/**
26 * Action
27 */
28export type ActionBase = {
29 /**
30 * Type of action
31 *
32 * @see <a href="https://developers.line.biz/en/reference/messaging-api/#action-objects">type Documentation</a>
33 */
34 type?: string;
35 /**
36 * Label for the action.
37 *
38 * @see <a href="https://developers.line.biz/en/reference/messaging-api/#action-objects">label Documentation</a>
39 */
40 label?: string;
41};