zcatalyst-integ-cliq
Version:
Node.js SDK for integrating Zoho Catalyst with Zoho Cliq
24 lines (23 loc) • 858 B
TypeScript
/// <reference types="node" />
import { Access, Attachment, Chat, Environment, Location, Mention, MessageObject, User, Messages } from '../common.js';
import HandlerResponse from '../response-objects/handler-response.js';
interface MessageActionHandlerRequest {
name: string;
mentions: Array<Mention>;
user: User;
chat: Chat;
environment: Environment;
access: Access;
message: MessageObject;
messages: Messages;
attachments: Array<Attachment>;
location: Location;
}
export default class MessageActionHandler {
executionHandler(handler: (req: MessageActionHandlerRequest, res: HandlerResponse, ...args: Array<unknown>) => Promise<unknown>): void;
newHandlerResponse(): HandlerResponse;
util: {
getAttachedFile(attachments: Array<Attachment>): Promise<Array<Buffer | undefined>>;
};
}
export {};