UNPKG

twilly

Version:

Node.js Twilio API abstraction layer for Express applications

28 lines (27 loc) 935 B
export interface ActionContext { createdAt?: Date; actionName?: string; flowName?: string; messageSid?: string | string[]; type?: string; } export declare const GetContext: unique symbol; declare const ActionName: unique symbol; export declare const ActionGetContext: unique symbol; export declare const ActionMessageSid: unique symbol; export declare const ActionSetMessageSid: unique symbol; export declare const ActionSetMessageSids: unique symbol; export declare const ActionSetName: unique symbol; export default class Action { private [ActionMessageSid]; private [ActionName]; [GetContext]: () => ActionContext; private addTypeToContext; readonly name: string; readonly sid: string | string[]; [ActionGetContext](): ActionContext; [ActionSetMessageSid](sid: string): void; [ActionSetMessageSids](sids: string[]): void; [ActionSetName](name: string): void; } export {};