UNPKG

2.21 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 { DeliveryContext } from "./deliveryContext.js";
13import { EventMode } from "./eventMode.js";
14import { Source } from "./source.js";
15import { AccountLinkEvent } from "./models.js";
16import { ActivatedEvent } from "./models.js";
17import { BeaconEvent } from "./models.js";
18import { BotResumedEvent } from "./models.js";
19import { BotSuspendedEvent } from "./models.js";
20import { DeactivatedEvent } from "./models.js";
21import { PnpDeliveryCompletionEvent } from "./models.js";
22import { FollowEvent } from "./models.js";
23import { JoinEvent } from "./models.js";
24import { LeaveEvent } from "./models.js";
25import { MemberJoinedEvent } from "./models.js";
26import { MemberLeftEvent } from "./models.js";
27import { MessageEvent } from "./models.js";
28import { ModuleEvent } from "./models.js";
29import { PostbackEvent } from "./models.js";
30import { ThingsEvent } from "./models.js";
31import { UnfollowEvent } from "./models.js";
32import { UnsendEvent } from "./models.js";
33import { VideoPlayCompleteEvent } from "./models.js";
34export type Event = AccountLinkEvent | ActivatedEvent | BeaconEvent | BotResumedEvent | BotSuspendedEvent | DeactivatedEvent | PnpDeliveryCompletionEvent | FollowEvent | JoinEvent | LeaveEvent | MemberJoinedEvent | MemberLeftEvent | MessageEvent | ModuleEvent | PostbackEvent | ThingsEvent | UnfollowEvent | UnsendEvent | VideoPlayCompleteEvent;
35/**
36 * Webhook event
37 */
38export type EventBase = {
39 /**
40 * Type of the event
41 */
42 type: string;
43 /**
44 */
45 source?: Source;
46 /**
47 * Time of the event in milliseconds.
48 */
49 timestamp: number;
50 /**
51 */
52 mode: EventMode;
53 /**
54 * Webhook Event ID. An ID that uniquely identifies a webhook event. This is a string in ULID format.
55 */
56 webhookEventId: string;
57 /**
58 */
59 deliveryContext: DeliveryContext;
60};
61export declare namespace Event { }
62//# sourceMappingURL=event.d.ts.map
\No newline at end of file