/opt/canhelp/node_modules/svix/dist/api
Edit: /opt/canhelp/node_modules/svix/dist/api/message.d.ts (1912B)
import { type ExpungeAllContentsOut } from "../models/expungeAllContentsOut";
import { type ListResponseMessageOut } from "../models/listResponseMessageOut";
import { type MessageOut } from "../models/messageOut";
import { type MessagePrecheckIn } from "../models/messagePrecheckIn";
import { type MessagePrecheckOut } from "../models/messagePrecheckOut";
import { MessagePoller } from "./messagePoller";
import { type SvixRequestContext } from "../request";
import { type MessageIn } from "../models/messageIn";
export interface MessageListOptions {
limit?: number;
iterator?: string | null;
channel?: string;
before?: Date | null;
after?: Date | null;
withContent?: boolean;
tag?: string;
eventTypes?: string[];
}
export interface MessageCreateOptions {
withContent?: boolean;
idempotencyKey?: string;
}
export interface MessageExpungeAllContentsOptions {
idempotencyKey?: string;
}
export interface MessagePrecheckOptions {
idempotencyKey?: string;
}
export interface MessageGetOptions {
withContent?: boolean;
}
export declare class Message {
private readonly requestCtx;
constructor(requestCtx: SvixRequestContext);
get poller(): MessagePoller;
list(appId: string, options?: MessageListOptions): Promise
;
create(appId: string, messageIn: MessageIn, options?: MessageCreateOptions): Promise;
expungeAllContents(appId: string, options?: MessageExpungeAllContentsOptions): Promise;
precheck(appId: string, messagePrecheckIn: MessagePrecheckIn, options?: MessagePrecheckOptions): Promise;
get(appId: string, msgId: string, options?: MessageGetOptions): Promise;
expungeContent(appId: string, msgId: string): Promise;
}
export declare function messageInRaw(eventType: string, payload: string, contentType?: string): MessageIn;