//#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/altUri.d.ts /** * 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. */ type AltUri = { /** * Minimum length: 0 * Maximum length: 1000 */ desktop?: string; }; //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/cameraAction.d.ts type CameraAction = ActionBase & { type: "camera"; }; //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/cameraRollAction.d.ts type CameraRollAction = ActionBase & { type: "cameraRoll"; }; //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/clipboardAction.d.ts /** * @see https://developers.line.biz/en/reference/messaging-api/#clipboard-action */ type ClipboardAction$1 = ActionBase & { type: "clipboard"; /** * Text that is copied to the clipboard. Max character limit: 1000 * Minimum length: 1 * Maximum length: 1000 */ clipboardText: string; }; //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/datetimePickerAction.d.ts /** * @see https://developers.line.biz/en/reference/messaging-api/#datetime-picker-action */ type DatetimePickerAction$1 = ActionBase & { type: "datetimepicker"; /** * Minimum length: 0 * Maximum length: 300 */ data?: string; mode?: DatetimePickerAction$1.ModeEnum; initial?: string; max?: string; min?: string; }; declare namespace DatetimePickerAction$1 { type ModeEnum = "date" | "time" | "datetime"; } //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/flexBlockStyle.d.ts /** * 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. */ type FlexBlockStyle$1 = { backgroundColor?: string; separator?: boolean; separatorColor?: string; }; //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/flexBoxBackground.d.ts type FlexBoxBackground$1 = FlexBoxLinearGradient$1; type FlexBoxBackgroundBase = { type: string; }; //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/flexComponent.d.ts type FlexComponent$1 = FlexBox$1 | FlexButton$1 | FlexFiller$1 | FlexIcon$1 | FlexImage$1 | FlexSeparator$1 | FlexSpan$1 | FlexText$1 | FlexVideo$1; type FlexComponentBase = { type: string; }; //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/flexBox.d.ts type FlexBox$1 = FlexComponentBase & { type: "box"; layout: FlexBox$1.LayoutEnum; flex?: number; contents: Array; spacing?: string; margin?: string; position?: FlexBox$1.PositionEnum; offsetTop?: string; offsetBottom?: string; offsetStart?: string; offsetEnd?: string; backgroundColor?: string; borderColor?: string; borderWidth?: string; cornerRadius?: string; width?: string; maxWidth?: string; height?: string; maxHeight?: string; paddingAll?: string; paddingTop?: string; paddingBottom?: string; paddingStart?: string; paddingEnd?: string; action?: Action$1; justifyContent?: FlexBox$1.JustifyContentEnum; alignItems?: FlexBox$1.AlignItemsEnum; background?: FlexBoxBackground$1; }; declare namespace FlexBox$1 { type LayoutEnum = "horizontal" | "vertical" | "baseline"; type PositionEnum = "relative" | "absolute"; type JustifyContentEnum = "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly"; type AlignItemsEnum = "center" | "flex-start" | "flex-end"; } //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/flexBoxLinearGradient.d.ts type FlexBoxLinearGradient$1 = FlexBoxBackgroundBase & { type: "linearGradient"; angle?: string; startColor?: string; endColor?: string; centerColor?: string; centerPosition?: string; }; //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/flexBubbleStyles.d.ts type FlexBubbleStyles = { header?: FlexBlockStyle$1; hero?: FlexBlockStyle$1; body?: FlexBlockStyle$1; footer?: FlexBlockStyle$1; }; //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/flexBubble.d.ts type FlexBubble$1 = FlexContainerBase & { type: "bubble"; direction?: FlexBubble$1.DirectionEnum; styles?: FlexBubbleStyles; header?: FlexBox$1; hero?: FlexComponent$1; body?: FlexBox$1; footer?: FlexBox$1; size?: FlexBubble$1.SizeEnum; action?: Action$1; }; declare namespace FlexBubble$1 { type DirectionEnum = "ltr" | "rtl"; type SizeEnum = "nano" | "micro" | "deca" | "hecto" | "kilo" | "mega" | "giga"; } //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/flexButton.d.ts type FlexButton$1 = FlexComponentBase & { type: "button"; flex?: number; color?: string; style?: FlexButton$1.StyleEnum; action: Action$1; gravity?: FlexButton$1.GravityEnum; margin?: string; position?: FlexButton$1.PositionEnum; offsetTop?: string; offsetBottom?: string; offsetStart?: string; offsetEnd?: string; height?: FlexButton$1.HeightEnum; adjustMode?: FlexButton$1.AdjustModeEnum; scaling?: boolean; }; declare namespace FlexButton$1 { type StyleEnum = "primary" | "secondary" | "link"; type GravityEnum = "top" | "bottom" | "center"; type PositionEnum = "relative" | "absolute"; type HeightEnum = "md" | "sm"; type AdjustModeEnum = "shrink-to-fit"; } //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/flexCarousel.d.ts type FlexCarousel$1 = FlexContainerBase & { type: "carousel"; contents: Array; }; //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/flexContainer.d.ts type FlexContainer$1 = FlexBubble$1 | FlexCarousel$1; type FlexContainerBase = { type: string; }; //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/flexFiller.d.ts type FlexFiller$1 = FlexComponentBase & { type: "filler"; flex?: number; }; //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/flexIcon.d.ts /** * @see https://developers.line.biz/en/reference/messaging-api/#icon */ type FlexIcon$1 = FlexComponentBase & { type: "icon"; url: string; size?: string; aspectRatio?: string; margin?: string; position?: FlexIcon$1.PositionEnum; offsetTop?: string; offsetBottom?: string; offsetStart?: string; offsetEnd?: string; scaling?: boolean; }; declare namespace FlexIcon$1 { type PositionEnum = "relative" | "absolute"; } //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/flexImage.d.ts /** * @see https://developers.line.biz/en/reference/messaging-api/#f-image */ type FlexImage$1 = FlexComponentBase & { type: "image"; /** * Image URL (Max character limit: 2000) Protocol: HTTPS (TLS 1.2 or later) Image format: JPEG or PNG Maximum image size: 1024×1024 pixels Maximum file size: 10 MB (300 KB when the animated property is true) */ url: string; /** * The ratio of the width or height of this component within the parent box. */ flex?: number; /** * The minimum amount of space to include before this component in its parent container. */ margin?: string; /** * Reference for offsetTop, offsetBottom, offsetStart, and offsetEnd. Specify one of the following values: `relative`: Use the previous box as reference. `absolute`: Use the top left of parent element as reference. The default value is relative. */ position?: FlexImage$1.PositionEnum; /** * Offset. */ offsetTop?: string; /** * Offset. */ offsetBottom?: string; /** * Offset. */ offsetStart?: string; /** * Offset. */ offsetEnd?: string; /** * Alignment style in horizontal direction. */ align?: FlexImage$1.AlignEnum; /** * Alignment style in vertical direction. */ gravity?: FlexImage$1.GravityEnum; /** * The maximum image width. This is md by default. * Default: 'md' */ size?: string; /** * Aspect ratio of the image. `{width}:{height}` format. Specify the value of `{width}` and `{height}` in the range from `1` to `100000`. However, you cannot set `{height}` to a value that is more than three times the value of `{width}`. The default value is `1:1`. */ aspectRatio?: string; /** * The display style of the image if the aspect ratio of the image and that specified by the aspectRatio property do not match. */ aspectMode?: FlexImage$1.AspectModeEnum; /** * Background color of the image. Use a hexadecimal color code. */ backgroundColor?: string; action?: Action$1; /** * When this is `true`, an animated image (APNG) plays. You can specify a value of true up to 10 images in a single message. You can't send messages that exceed this limit. This is `false` by default. Animated images larger than 300 KB aren't played back. * Default: false */ animated?: boolean; }; declare namespace FlexImage$1 { type PositionEnum = "relative" | "absolute"; type AlignEnum = "start" | "end" | "center"; type GravityEnum = "top" | "bottom" | "center"; type AspectModeEnum = "fit" | "cover"; } //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/flexMessage.d.ts /** * @see https://developers.line.biz/en/reference/messaging-api/#flex-message */ type FlexMessage$1 = MessageBase & { type: "flex"; altText: string; contents: FlexContainer$1; }; //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/flexSeparator.d.ts type FlexSeparator$1 = FlexComponentBase & { type: "separator"; margin?: string; color?: string; }; //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/flexSpan.d.ts type FlexSpan$1 = FlexComponentBase & { type: "span"; text?: string; size?: string; color?: string; weight?: FlexSpan$1.WeightEnum; style?: FlexSpan$1.StyleEnum; decoration?: FlexSpan$1.DecorationEnum; }; declare namespace FlexSpan$1 { type WeightEnum = "regular" | "bold"; type StyleEnum = "normal" | "italic"; type DecorationEnum = "none" | "underline" | "line-through"; } //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/flexText.d.ts type FlexText$1 = FlexComponentBase & { type: "text"; flex?: number; text?: string; size?: string; align?: FlexText$1.AlignEnum; gravity?: FlexText$1.GravityEnum; color?: string; weight?: FlexText$1.WeightEnum; style?: FlexText$1.StyleEnum; decoration?: FlexText$1.DecorationEnum; wrap?: boolean; lineSpacing?: string; margin?: string; position?: FlexText$1.PositionEnum; offsetTop?: string; offsetBottom?: string; offsetStart?: string; offsetEnd?: string; action?: Action$1; maxLines?: number; contents?: Array; adjustMode?: FlexText$1.AdjustModeEnum; scaling?: boolean; }; declare namespace FlexText$1 { type AlignEnum = "start" | "end" | "center"; type GravityEnum = "top" | "bottom" | "center"; type WeightEnum = "regular" | "bold"; type StyleEnum = "normal" | "italic"; type DecorationEnum = "none" | "underline" | "line-through"; type PositionEnum = "relative" | "absolute"; type AdjustModeEnum = "shrink-to-fit"; } //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/flexVideo.d.ts type FlexVideo$1 = FlexComponentBase & { type: "video"; url: string; previewUrl: string; altContent: FlexComponent$1; aspectRatio?: string; action?: Action$1; }; //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/locationAction.d.ts type LocationAction = ActionBase & { type: "location"; }; //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/messageAction.d.ts type MessageAction$1 = ActionBase & { type: "message"; text?: string; }; //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/postbackAction.d.ts type PostbackAction$1 = ActionBase & { type: "postback"; /** * Minimum length: 0 * Maximum length: 300 */ data?: string; displayText?: string; text?: string; inputOption?: PostbackAction$1.InputOptionEnum; fillInText?: string; }; declare namespace PostbackAction$1 { type InputOptionEnum = "closeRichMenu" | "openRichMenu" | "openKeyboard" | "openVoice"; } //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/richMenuSwitchAction.d.ts type RichMenuSwitchAction = ActionBase & { type: "richmenuswitch"; /** * Minimum length: 0 * Maximum length: 300 */ data?: string; /** * Minimum length: 0 * Maximum length: 32 */ richMenuAliasId?: string; }; //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/sender.d.ts /** * 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. */ /** * Change icon and display name */ type Sender = { /** * Display name. Certain words such as `LINE` may not be used. * Maximum length: 20 */ name?: string; /** * URL of the image to display as an icon when sending a message * Maximum length: 2000 */ iconUrl?: string; }; //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/uRIAction.d.ts type URIAction$1 = ActionBase & { type: "uri"; uri?: string; altUri?: AltUri; }; //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/action.d.ts /** * Action * @see https://developers.line.biz/en/reference/messaging-api/#action-objects */ type Action$1 = CameraAction | CameraRollAction | ClipboardAction$1 | DatetimePickerAction$1 | LocationAction | MessageAction$1 | PostbackAction$1 | RichMenuSwitchAction | URIAction$1; type ActionBase = { /** * Type of action */ type?: string; /** * Label for the action. */ label?: string; }; //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/quickReplyItem.d.ts /** * @see https://developers.line.biz/en/reference/messaging-api/#items-object */ type QuickReplyItem = { /** * URL of the icon that is displayed at the beginning of the button * Maximum length: 2000 */ imageUrl?: string; action?: Action$1; /** * `action` * Default: 'action' */ type?: string; }; //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/quickReply.d.ts /** * Quick reply * @see https://developers.line.biz/en/reference/messaging-api/#items-object */ type QuickReply = { /** * Quick reply button objects. * Maximum items: 13 */ items?: Array; }; //#endregion //#region ../../node_modules/.pnpm/@line+bot-sdk@11.2.0/node_modules/@line/bot-sdk/dist/messaging-api/model/message.d.ts type MessageBase = { /** * Type of message */ type: string; quickReply?: QuickReply; sender?: Sender; }; //#endregion //#region src/types.d.ts type WithId = T & { id?: string; }; type FlexSpacer = { type: 'spacer'; size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'; id?: string; }; type Action = Action$1; type DatetimePickerAction = DatetimePickerAction$1; type FlexBlockStyle = FlexBlockStyle$1; type FlexBox = WithId; type FlexBubble = WithId; type FlexButton = WithId; type FlexCarousel = WithId; type FlexComponent = FlexComponent$1 | FlexSpacer; type FlexContainer = FlexContainer$1; type FlexFiller = WithId; type FlexIcon = WithId; type FlexImage = WithId; type FlexMessage = FlexMessage$1; type FlexSeparator = WithId; type FlexSpan = WithId; type FlexText = WithId; type FlexVideo = WithId; type MessageAction = MessageAction$1; type PostbackAction = PostbackAction$1; type URIAction = URIAction$1; type FlexBoxBackground = FlexBoxBackground$1; type FlexBoxLinearGradient = FlexBoxLinearGradient$1; type ClipboardAction = ClipboardAction$1; //#endregion //#region src/utils/render.d.ts declare const render: (flexJSON: FlexContainer) => string; //#endregion export { type Action, type ClipboardAction, type DatetimePickerAction, type FlexBlockStyle, type FlexBox, type FlexBoxBackground, type FlexBoxLinearGradient, type FlexBubble, type FlexButton, type FlexCarousel, type FlexComponent, type FlexContainer, type FlexFiller, type FlexIcon, type FlexImage, type FlexMessage, type FlexSeparator, type FlexSpacer, type FlexSpan, type FlexText, type FlexVideo, type MessageAction, type PostbackAction, type URIAction, type WithId, render };