UNPKG

1.16 kBTypeScriptView Raw
1/**
2 * Webhook Type Definition
3 * Webhook event definition of the LINE Messaging API
4 *
5 * The version of the OpenAPI document: 1.0.0
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 { Event } from "./event";
13/**
14 * The request body contains a JSON object with the user ID of a bot that should receive webhook events and an array of webhook event objects.
15 */
16export type CallbackRequest = {
17 /**
18 * User ID of a bot that should receive webhook events. The user ID value is a string that matches the regular expression, `U[0-9a-f]{32}`.
19 *
20 * @see <a href="https://developers.line.biz/en/reference/messaging-api/#request-body">destination Documentation</a>
21 */
22 destination: string;
23 /**
24 * Array of webhook event objects. The LINE Platform may send an empty array that doesn\'t include a webhook event object to confirm communication.
25 *
26 * @see <a href="https://developers.line.biz/en/reference/messaging-api/#request-body">events Documentation</a>
27 */
28 events: Array<Event>;
29};