UNPKG

@longears-mobile/rcs-sdk

Version:

Provider-agnostic SDK for RCS (Rich Communication Services) messaging

38 lines 1.19 kB
import { SendMessageOptions, MessageResponse, ValidationResult } from './interfaces/index.js'; import { SDKConfig } from './interfaces/config.js'; export declare class RCSClient { private provider; private auth; private config; private initialized; constructor(config: SDKConfig); /** * Initialize the RCS client and authenticate with the provider */ initialize(): Promise<void>; /** * Send an RCS message */ sendMessage(options: SendMessageOptions): Promise<MessageResponse>; /** * Check if a phone number is capable of receiving RCS messages * @param phoneNumber The phone number to check in E.164 format * @param options Optional parameters including agentId for Google RBM */ validatePhoneNumber(phoneNumber: string, options?: { agentId?: string; }): Promise<ValidationResult>; /** * Get the current provider name */ getProvider(): string; /** * Check if the client is initialized */ isInitialized(): boolean; /** * Ensure the client is initialized before making calls */ private ensureInitialized; } //# sourceMappingURL=client.d.ts.map