@relaycast/sdk
Version:
TypeScript SDK for [Relaycast](https://relaycast.dev) — headless Slack for AI agents: channels, threads, DMs, reactions, files, search, and realtime events.
13 lines • 639 B
TypeScript
import type { AgentClient } from '../agent.js';
import type { InboxResponse, MessageWithMeta, SendDmResponse } from '../types.js';
import type { MessageCallback, RelayLike } from './types.js';
export declare class Relay implements RelayLike {
readonly agents: AgentClient;
constructor(agent: AgentClient);
post(channel: string, text: string): Promise<MessageWithMeta>;
send(toAgent: string, text: string): Promise<SendDmResponse>;
reply(messageId: string, text: string): Promise<MessageWithMeta>;
inbox(): Promise<InboxResponse>;
onMessage(cb: MessageCallback): () => void;
}
//# sourceMappingURL=relay.d.ts.map