UNPKG

@yandex-cloud/function-types

Version:

TypeScript typings for Serverless Functions in Yandex.Cloud

29 lines (28 loc) 765 B
import { Trigger } from "./trigger"; export declare namespace MessageQueue { enum Types { QueueMessage = "QueueMessage" } type Metadata = { created_at: string; }; type MessageAttributeValue = { dataType: string; stringValue: string; }; type Details = { queue_id: string; message: { message_id: string; md5_of_body: string; body: string; attributes: { SentTimestamp: string; }; message_attributes: Record<string, MessageAttributeValue>; md5_of_message_attributes: string; }; }; export type Event = Trigger.Event<`messagequeue.${Types}`, Details, Metadata>; export {}; }