/**
 * LINE Messaging API
 * This document describes LINE Messaging API.
 *
 * The version of the OpenAPI document: 0.0.1
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

import { Action } from "./action.js";

import { ActionBase } from "./models.js";

export type PostbackAction = ActionBase & {
  type: "postback";

  /**
   * Minimum length: 0
   * Maximum length: 300
   */
  data?: string;
  displayText?: string;
  text?: string;
  inputOption?: PostbackAction.InputOptionEnum;
  fillInText?: string;
};

export namespace PostbackAction {
  export type InputOptionEnum =
    "closeRichMenu" | "openRichMenu" | "openKeyboard" | "openVoice";
}
