Defines configuration and message types for integrating Twilio with Chat platform.
// Source: https://github.com/vercel/chat | License: MIT | Copyright 2026 Vercel, Inc
// Provided via justclaw.it.com; keep this notice with the code.
import type { Logger } from "chat";
import type {
TwilioCredential,
TwilioFetch,
TwilioMessageResource,
} from "./api";
import type {
TwilioWebhookPayload,
TwilioWebhookUrl,
TwilioWebhookVerifier,
} from "./webhook";
export interface TwilioThreadId {
recipient: string;
sender: string;
}
export interface TwilioAdapterConfig {
accountSid?: TwilioCredential;
apiUrl?: string;
authToken?: TwilioCredential;
contentApiUrl?: string;
fetch?: TwilioFetch;
logger?: Logger;
messagingApiUrl?: string;
messagingServiceSid?: string;
phoneNumber?: string;
rcsSenderId?: string;
statusCallbackUrl?: string;
userName?: s
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key