@veroai/sdk 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +290 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +194 -1
- package/dist/index.d.ts +194 -1
- package/dist/index.js +288 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -572,6 +572,107 @@ interface UpdateAgentParams {
|
|
|
572
572
|
/** Status */
|
|
573
573
|
status?: 'draft' | 'active' | 'archived';
|
|
574
574
|
}
|
|
575
|
+
type ConversationType = 'direct' | 'group' | 'channel' | 'support';
|
|
576
|
+
type MessageType = 'text' | 'system' | 'agent' | 'file' | 'call';
|
|
577
|
+
type ParticipantRole = 'admin' | 'member' | 'guest';
|
|
578
|
+
type PresenceStatus = 'online' | 'away' | 'busy' | 'offline';
|
|
579
|
+
interface ChatUser {
|
|
580
|
+
id: string;
|
|
581
|
+
email: string;
|
|
582
|
+
firstName: string | null;
|
|
583
|
+
lastName: string | null;
|
|
584
|
+
isVirtual: boolean;
|
|
585
|
+
agentConfigId?: string | null;
|
|
586
|
+
}
|
|
587
|
+
interface ChatUserWithPresence extends ChatUser {
|
|
588
|
+
status: PresenceStatus;
|
|
589
|
+
statusMessage: string | null;
|
|
590
|
+
lastSeen: string | null;
|
|
591
|
+
createdAt: string;
|
|
592
|
+
}
|
|
593
|
+
interface ConversationParticipant {
|
|
594
|
+
userId: string;
|
|
595
|
+
role: ParticipantRole;
|
|
596
|
+
isActive: boolean;
|
|
597
|
+
joinedAt: string;
|
|
598
|
+
lastSeen?: string | null;
|
|
599
|
+
user?: ChatUser;
|
|
600
|
+
}
|
|
601
|
+
interface MessageRead {
|
|
602
|
+
userId: string;
|
|
603
|
+
readAt: string;
|
|
604
|
+
}
|
|
605
|
+
interface ChatMessage {
|
|
606
|
+
id: string;
|
|
607
|
+
conversationId: string;
|
|
608
|
+
content: string;
|
|
609
|
+
messageType: MessageType;
|
|
610
|
+
senderId: string;
|
|
611
|
+
sender?: ChatUser;
|
|
612
|
+
readBy?: MessageRead[];
|
|
613
|
+
metadata?: Record<string, unknown>;
|
|
614
|
+
createdAt: string;
|
|
615
|
+
editedAt?: string | null;
|
|
616
|
+
}
|
|
617
|
+
interface Conversation {
|
|
618
|
+
id: string;
|
|
619
|
+
name: string | null;
|
|
620
|
+
type: ConversationType;
|
|
621
|
+
isActive: boolean;
|
|
622
|
+
lastMessageAt: string | null;
|
|
623
|
+
agentEnabled: boolean;
|
|
624
|
+
agentConfigId: string | null;
|
|
625
|
+
participants?: ConversationParticipant[];
|
|
626
|
+
unreadCount: number;
|
|
627
|
+
metadata?: Record<string, unknown>;
|
|
628
|
+
createdAt: string;
|
|
629
|
+
updatedAt?: string;
|
|
630
|
+
}
|
|
631
|
+
interface CreateConversationParams {
|
|
632
|
+
type?: ConversationType;
|
|
633
|
+
name?: string;
|
|
634
|
+
participantIds: string[];
|
|
635
|
+
agentConfigId?: string;
|
|
636
|
+
metadata?: Record<string, unknown>;
|
|
637
|
+
}
|
|
638
|
+
interface SendChatMessageParams {
|
|
639
|
+
content: string;
|
|
640
|
+
messageType?: MessageType;
|
|
641
|
+
metadata?: Record<string, unknown>;
|
|
642
|
+
}
|
|
643
|
+
interface ListMessagesParams extends PaginationParams {
|
|
644
|
+
before?: string | Date;
|
|
645
|
+
}
|
|
646
|
+
interface MessagesResponse {
|
|
647
|
+
messages: ChatMessage[];
|
|
648
|
+
total: number;
|
|
649
|
+
hasMore: boolean;
|
|
650
|
+
}
|
|
651
|
+
interface AddAgentParams {
|
|
652
|
+
agentConfigId: string;
|
|
653
|
+
addAsParticipant?: boolean;
|
|
654
|
+
}
|
|
655
|
+
interface ConversationAgent {
|
|
656
|
+
configId: string;
|
|
657
|
+
name: string;
|
|
658
|
+
userId: string | null;
|
|
659
|
+
enabled: boolean;
|
|
660
|
+
}
|
|
661
|
+
interface UserPresence {
|
|
662
|
+
userId: string;
|
|
663
|
+
status: PresenceStatus;
|
|
664
|
+
statusMessage: string | null;
|
|
665
|
+
lastSeen: string | null;
|
|
666
|
+
metadata?: Record<string, unknown>;
|
|
667
|
+
}
|
|
668
|
+
interface UpdatePresenceParams {
|
|
669
|
+
status: PresenceStatus;
|
|
670
|
+
statusMessage?: string;
|
|
671
|
+
metadata?: Record<string, unknown>;
|
|
672
|
+
}
|
|
673
|
+
interface ListUsersParams extends PaginationParams {
|
|
674
|
+
includeVirtual?: boolean;
|
|
675
|
+
}
|
|
575
676
|
interface VeroAIErrorDetails {
|
|
576
677
|
code: string;
|
|
577
678
|
message: string;
|
|
@@ -1105,6 +1206,96 @@ declare class VoiceResource {
|
|
|
1105
1206
|
constructor(http: HttpClient);
|
|
1106
1207
|
}
|
|
1107
1208
|
|
|
1209
|
+
/**
|
|
1210
|
+
* Chat Resources
|
|
1211
|
+
*
|
|
1212
|
+
* Conversations, messages, participants, and user presence management
|
|
1213
|
+
*/
|
|
1214
|
+
|
|
1215
|
+
declare class ConversationsResource {
|
|
1216
|
+
private readonly http;
|
|
1217
|
+
constructor(http: HttpClient);
|
|
1218
|
+
/**
|
|
1219
|
+
* List all conversations for the current user
|
|
1220
|
+
*/
|
|
1221
|
+
list(): Promise<PaginatedResponse<Conversation>>;
|
|
1222
|
+
/**
|
|
1223
|
+
* Get a conversation by ID
|
|
1224
|
+
*/
|
|
1225
|
+
get(conversationId: string): Promise<Conversation>;
|
|
1226
|
+
/**
|
|
1227
|
+
* Create a new conversation
|
|
1228
|
+
*/
|
|
1229
|
+
create(params: CreateConversationParams): Promise<Conversation>;
|
|
1230
|
+
/**
|
|
1231
|
+
* Get messages for a conversation
|
|
1232
|
+
*/
|
|
1233
|
+
getMessages(conversationId: string, params?: ListMessagesParams): Promise<MessagesResponse>;
|
|
1234
|
+
/**
|
|
1235
|
+
* Send a message to a conversation
|
|
1236
|
+
*/
|
|
1237
|
+
sendMessage(conversationId: string, params: SendChatMessageParams): Promise<ChatMessage>;
|
|
1238
|
+
/**
|
|
1239
|
+
* Mark conversation as read
|
|
1240
|
+
*/
|
|
1241
|
+
markRead(conversationId: string): Promise<void>;
|
|
1242
|
+
/**
|
|
1243
|
+
* Add participants to a conversation
|
|
1244
|
+
*/
|
|
1245
|
+
addParticipants(conversationId: string, userIds: string[]): Promise<ConversationParticipant[]>;
|
|
1246
|
+
/**
|
|
1247
|
+
* Leave a conversation
|
|
1248
|
+
*/
|
|
1249
|
+
leave(conversationId: string): Promise<void>;
|
|
1250
|
+
/**
|
|
1251
|
+
* Add an agent to a conversation
|
|
1252
|
+
*/
|
|
1253
|
+
addAgent(conversationId: string, params: AddAgentParams): Promise<ConversationAgent | null>;
|
|
1254
|
+
/**
|
|
1255
|
+
* Remove agent from a conversation
|
|
1256
|
+
*/
|
|
1257
|
+
removeAgent(conversationId: string): Promise<void>;
|
|
1258
|
+
/**
|
|
1259
|
+
* Toggle agent enabled/disabled
|
|
1260
|
+
*/
|
|
1261
|
+
setAgentEnabled(conversationId: string, enabled: boolean): Promise<void>;
|
|
1262
|
+
}
|
|
1263
|
+
declare class ChatUsersResource {
|
|
1264
|
+
private readonly http;
|
|
1265
|
+
constructor(http: HttpClient);
|
|
1266
|
+
/**
|
|
1267
|
+
* List all users in the tenant
|
|
1268
|
+
*/
|
|
1269
|
+
list(params?: ListUsersParams): Promise<PaginatedResponse<ChatUserWithPresence>>;
|
|
1270
|
+
/**
|
|
1271
|
+
* Get online users
|
|
1272
|
+
*/
|
|
1273
|
+
online(): Promise<ChatUserWithPresence[]>;
|
|
1274
|
+
/**
|
|
1275
|
+
* Get current user profile and presence
|
|
1276
|
+
*/
|
|
1277
|
+
me(): Promise<ChatUserWithPresence>;
|
|
1278
|
+
/**
|
|
1279
|
+
* Update current user's presence status
|
|
1280
|
+
*/
|
|
1281
|
+
updateStatus(params: UpdatePresenceParams): Promise<void>;
|
|
1282
|
+
/**
|
|
1283
|
+
* Get a user by ID
|
|
1284
|
+
*/
|
|
1285
|
+
get(userId: string): Promise<ChatUserWithPresence>;
|
|
1286
|
+
/**
|
|
1287
|
+
* Get presence for a specific user
|
|
1288
|
+
*/
|
|
1289
|
+
getPresence(userId: string): Promise<UserPresence>;
|
|
1290
|
+
}
|
|
1291
|
+
declare class ChatResource {
|
|
1292
|
+
/** Conversation management */
|
|
1293
|
+
readonly conversations: ConversationsResource;
|
|
1294
|
+
/** User listing and presence */
|
|
1295
|
+
readonly users: ChatUsersResource;
|
|
1296
|
+
constructor(http: HttpClient);
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1108
1299
|
/**
|
|
1109
1300
|
* Agents Resource
|
|
1110
1301
|
*
|
|
@@ -1450,6 +1641,8 @@ declare class VeroAI {
|
|
|
1450
1641
|
readonly voice: VoiceResource;
|
|
1451
1642
|
/** AI agent configurations */
|
|
1452
1643
|
readonly agents: AgentsResource;
|
|
1644
|
+
/** Chat conversations and users */
|
|
1645
|
+
readonly chat: ChatResource;
|
|
1453
1646
|
/** Real-time event subscriptions via WebSocket */
|
|
1454
1647
|
readonly realtime: RealtimeResource;
|
|
1455
1648
|
/**
|
|
@@ -1566,4 +1759,4 @@ declare class NetworkError extends VeroAIError {
|
|
|
1566
1759
|
constructor(message?: string, cause?: Error);
|
|
1567
1760
|
}
|
|
1568
1761
|
|
|
1569
|
-
export { APIError, type ActivityEvent, type AdapterType, type ApiKey, type ApiKeyEnvironment, AuthenticationError, AuthorizationError, type AvailableNumber, type Call, type CallDirection, type CallEndReason, type CallStatus, type CanonicalType, type Channel, type ChannelDirection, type ChannelHealth, type ChannelOverride, type ChannelStatus, type ConnectionState, type CreateApiKeyParams, type CreateApiKeyResult, type CreateChannelParams, type CreateDomainParams, type CreateVoiceChannelParams, type CreateWebhookParams, type DateRangeParams, type DialParams, type DnsRecord, type Domain, type DomainStatus, type EnrichmentConfig, type EnrichmentResult, type EntityDefinition, type ErrorHandler, type EventDirection, type EventHandler, type EventStats, type ExtractedEntity, type InboundConfig, type InboundHandler, type IntentDefinition, type LanguageConfig, type ListCallsParams, type ListEventsParams, type ListNumbersParams, NetworkError, NotFoundError, type PaginatedResponse, type PaginationParams, type PhoneNumber, type PhoneNumberCapability, type PhoneNumberStatus, type PurchaseNumberParams, RateLimitError, type RealtimeConfig, type RealtimeEvent, RealtimeResource, type RecordingConfig, type RetryConfig, type SearchNumbersParams, type SendMessageParams, type SendMessageResult, type SentimentConfig, ServerError, type StateChangeHandler, type SttConfig, type SubscribeOptions, type SubscriptionType, type TimeSeriesDataPoint, type TimeSeriesGranularity, TimeoutError, type TtsConfig, type UpdateChannelParams, type UpdateNumberParams, type UpdateVoiceChannelParams, type UpdateWebhookParams, ValidationError, type VerifyDomainResult, VeroAI, type VeroAIConfig, VeroAIError, type VeroAIErrorDetails, VoiceCallsResource, type VoiceChannelConfig, VoiceNumbersResource, VoiceResource, type Webhook, type WebhookDelivery, type WebhookStats, type WebhookStatus, createRealtimeResource, VeroAI as default };
|
|
1762
|
+
export { APIError, type ActivityEvent, type AdapterType, type AddAgentParams, type ApiKey, type ApiKeyEnvironment, AuthenticationError, AuthorizationError, type AvailableNumber, type Call, type CallDirection, type CallEndReason, type CallStatus, type CanonicalType, type Channel, type ChannelDirection, type ChannelHealth, type ChannelOverride, type ChannelStatus, type ChatMessage, ChatResource, type ChatUser, type ChatUserWithPresence, ChatUsersResource, type ConnectionState, type Conversation, type ConversationAgent, type ConversationParticipant, type ConversationType, ConversationsResource, type CreateApiKeyParams, type CreateApiKeyResult, type CreateChannelParams, type CreateConversationParams, type CreateDomainParams, type CreateVoiceChannelParams, type CreateWebhookParams, type DateRangeParams, type DialParams, type DnsRecord, type Domain, type DomainStatus, type EnrichmentConfig, type EnrichmentResult, type EntityDefinition, type ErrorHandler, type EventDirection, type EventHandler, type EventStats, type ExtractedEntity, type InboundConfig, type InboundHandler, type IntentDefinition, type LanguageConfig, type ListCallsParams, type ListEventsParams, type ListMessagesParams, type ListNumbersParams, type ListUsersParams, type MessageRead, type MessageType, type MessagesResponse, NetworkError, NotFoundError, type PaginatedResponse, type PaginationParams, type ParticipantRole, type PhoneNumber, type PhoneNumberCapability, type PhoneNumberStatus, type PresenceStatus, type PurchaseNumberParams, RateLimitError, type RealtimeConfig, type RealtimeEvent, RealtimeResource, type RecordingConfig, type RetryConfig, type SearchNumbersParams, type SendChatMessageParams, type SendMessageParams, type SendMessageResult, type SentimentConfig, ServerError, type StateChangeHandler, type SttConfig, type SubscribeOptions, type SubscriptionType, type TimeSeriesDataPoint, type TimeSeriesGranularity, TimeoutError, type TtsConfig, type UpdateChannelParams, type UpdateNumberParams, type UpdatePresenceParams, type UpdateVoiceChannelParams, type UpdateWebhookParams, type UserPresence, ValidationError, type VerifyDomainResult, VeroAI, type VeroAIConfig, VeroAIError, type VeroAIErrorDetails, VoiceCallsResource, type VoiceChannelConfig, VoiceNumbersResource, VoiceResource, type Webhook, type WebhookDelivery, type WebhookStats, type WebhookStatus, createRealtimeResource, VeroAI as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -572,6 +572,107 @@ interface UpdateAgentParams {
|
|
|
572
572
|
/** Status */
|
|
573
573
|
status?: 'draft' | 'active' | 'archived';
|
|
574
574
|
}
|
|
575
|
+
type ConversationType = 'direct' | 'group' | 'channel' | 'support';
|
|
576
|
+
type MessageType = 'text' | 'system' | 'agent' | 'file' | 'call';
|
|
577
|
+
type ParticipantRole = 'admin' | 'member' | 'guest';
|
|
578
|
+
type PresenceStatus = 'online' | 'away' | 'busy' | 'offline';
|
|
579
|
+
interface ChatUser {
|
|
580
|
+
id: string;
|
|
581
|
+
email: string;
|
|
582
|
+
firstName: string | null;
|
|
583
|
+
lastName: string | null;
|
|
584
|
+
isVirtual: boolean;
|
|
585
|
+
agentConfigId?: string | null;
|
|
586
|
+
}
|
|
587
|
+
interface ChatUserWithPresence extends ChatUser {
|
|
588
|
+
status: PresenceStatus;
|
|
589
|
+
statusMessage: string | null;
|
|
590
|
+
lastSeen: string | null;
|
|
591
|
+
createdAt: string;
|
|
592
|
+
}
|
|
593
|
+
interface ConversationParticipant {
|
|
594
|
+
userId: string;
|
|
595
|
+
role: ParticipantRole;
|
|
596
|
+
isActive: boolean;
|
|
597
|
+
joinedAt: string;
|
|
598
|
+
lastSeen?: string | null;
|
|
599
|
+
user?: ChatUser;
|
|
600
|
+
}
|
|
601
|
+
interface MessageRead {
|
|
602
|
+
userId: string;
|
|
603
|
+
readAt: string;
|
|
604
|
+
}
|
|
605
|
+
interface ChatMessage {
|
|
606
|
+
id: string;
|
|
607
|
+
conversationId: string;
|
|
608
|
+
content: string;
|
|
609
|
+
messageType: MessageType;
|
|
610
|
+
senderId: string;
|
|
611
|
+
sender?: ChatUser;
|
|
612
|
+
readBy?: MessageRead[];
|
|
613
|
+
metadata?: Record<string, unknown>;
|
|
614
|
+
createdAt: string;
|
|
615
|
+
editedAt?: string | null;
|
|
616
|
+
}
|
|
617
|
+
interface Conversation {
|
|
618
|
+
id: string;
|
|
619
|
+
name: string | null;
|
|
620
|
+
type: ConversationType;
|
|
621
|
+
isActive: boolean;
|
|
622
|
+
lastMessageAt: string | null;
|
|
623
|
+
agentEnabled: boolean;
|
|
624
|
+
agentConfigId: string | null;
|
|
625
|
+
participants?: ConversationParticipant[];
|
|
626
|
+
unreadCount: number;
|
|
627
|
+
metadata?: Record<string, unknown>;
|
|
628
|
+
createdAt: string;
|
|
629
|
+
updatedAt?: string;
|
|
630
|
+
}
|
|
631
|
+
interface CreateConversationParams {
|
|
632
|
+
type?: ConversationType;
|
|
633
|
+
name?: string;
|
|
634
|
+
participantIds: string[];
|
|
635
|
+
agentConfigId?: string;
|
|
636
|
+
metadata?: Record<string, unknown>;
|
|
637
|
+
}
|
|
638
|
+
interface SendChatMessageParams {
|
|
639
|
+
content: string;
|
|
640
|
+
messageType?: MessageType;
|
|
641
|
+
metadata?: Record<string, unknown>;
|
|
642
|
+
}
|
|
643
|
+
interface ListMessagesParams extends PaginationParams {
|
|
644
|
+
before?: string | Date;
|
|
645
|
+
}
|
|
646
|
+
interface MessagesResponse {
|
|
647
|
+
messages: ChatMessage[];
|
|
648
|
+
total: number;
|
|
649
|
+
hasMore: boolean;
|
|
650
|
+
}
|
|
651
|
+
interface AddAgentParams {
|
|
652
|
+
agentConfigId: string;
|
|
653
|
+
addAsParticipant?: boolean;
|
|
654
|
+
}
|
|
655
|
+
interface ConversationAgent {
|
|
656
|
+
configId: string;
|
|
657
|
+
name: string;
|
|
658
|
+
userId: string | null;
|
|
659
|
+
enabled: boolean;
|
|
660
|
+
}
|
|
661
|
+
interface UserPresence {
|
|
662
|
+
userId: string;
|
|
663
|
+
status: PresenceStatus;
|
|
664
|
+
statusMessage: string | null;
|
|
665
|
+
lastSeen: string | null;
|
|
666
|
+
metadata?: Record<string, unknown>;
|
|
667
|
+
}
|
|
668
|
+
interface UpdatePresenceParams {
|
|
669
|
+
status: PresenceStatus;
|
|
670
|
+
statusMessage?: string;
|
|
671
|
+
metadata?: Record<string, unknown>;
|
|
672
|
+
}
|
|
673
|
+
interface ListUsersParams extends PaginationParams {
|
|
674
|
+
includeVirtual?: boolean;
|
|
675
|
+
}
|
|
575
676
|
interface VeroAIErrorDetails {
|
|
576
677
|
code: string;
|
|
577
678
|
message: string;
|
|
@@ -1105,6 +1206,96 @@ declare class VoiceResource {
|
|
|
1105
1206
|
constructor(http: HttpClient);
|
|
1106
1207
|
}
|
|
1107
1208
|
|
|
1209
|
+
/**
|
|
1210
|
+
* Chat Resources
|
|
1211
|
+
*
|
|
1212
|
+
* Conversations, messages, participants, and user presence management
|
|
1213
|
+
*/
|
|
1214
|
+
|
|
1215
|
+
declare class ConversationsResource {
|
|
1216
|
+
private readonly http;
|
|
1217
|
+
constructor(http: HttpClient);
|
|
1218
|
+
/**
|
|
1219
|
+
* List all conversations for the current user
|
|
1220
|
+
*/
|
|
1221
|
+
list(): Promise<PaginatedResponse<Conversation>>;
|
|
1222
|
+
/**
|
|
1223
|
+
* Get a conversation by ID
|
|
1224
|
+
*/
|
|
1225
|
+
get(conversationId: string): Promise<Conversation>;
|
|
1226
|
+
/**
|
|
1227
|
+
* Create a new conversation
|
|
1228
|
+
*/
|
|
1229
|
+
create(params: CreateConversationParams): Promise<Conversation>;
|
|
1230
|
+
/**
|
|
1231
|
+
* Get messages for a conversation
|
|
1232
|
+
*/
|
|
1233
|
+
getMessages(conversationId: string, params?: ListMessagesParams): Promise<MessagesResponse>;
|
|
1234
|
+
/**
|
|
1235
|
+
* Send a message to a conversation
|
|
1236
|
+
*/
|
|
1237
|
+
sendMessage(conversationId: string, params: SendChatMessageParams): Promise<ChatMessage>;
|
|
1238
|
+
/**
|
|
1239
|
+
* Mark conversation as read
|
|
1240
|
+
*/
|
|
1241
|
+
markRead(conversationId: string): Promise<void>;
|
|
1242
|
+
/**
|
|
1243
|
+
* Add participants to a conversation
|
|
1244
|
+
*/
|
|
1245
|
+
addParticipants(conversationId: string, userIds: string[]): Promise<ConversationParticipant[]>;
|
|
1246
|
+
/**
|
|
1247
|
+
* Leave a conversation
|
|
1248
|
+
*/
|
|
1249
|
+
leave(conversationId: string): Promise<void>;
|
|
1250
|
+
/**
|
|
1251
|
+
* Add an agent to a conversation
|
|
1252
|
+
*/
|
|
1253
|
+
addAgent(conversationId: string, params: AddAgentParams): Promise<ConversationAgent | null>;
|
|
1254
|
+
/**
|
|
1255
|
+
* Remove agent from a conversation
|
|
1256
|
+
*/
|
|
1257
|
+
removeAgent(conversationId: string): Promise<void>;
|
|
1258
|
+
/**
|
|
1259
|
+
* Toggle agent enabled/disabled
|
|
1260
|
+
*/
|
|
1261
|
+
setAgentEnabled(conversationId: string, enabled: boolean): Promise<void>;
|
|
1262
|
+
}
|
|
1263
|
+
declare class ChatUsersResource {
|
|
1264
|
+
private readonly http;
|
|
1265
|
+
constructor(http: HttpClient);
|
|
1266
|
+
/**
|
|
1267
|
+
* List all users in the tenant
|
|
1268
|
+
*/
|
|
1269
|
+
list(params?: ListUsersParams): Promise<PaginatedResponse<ChatUserWithPresence>>;
|
|
1270
|
+
/**
|
|
1271
|
+
* Get online users
|
|
1272
|
+
*/
|
|
1273
|
+
online(): Promise<ChatUserWithPresence[]>;
|
|
1274
|
+
/**
|
|
1275
|
+
* Get current user profile and presence
|
|
1276
|
+
*/
|
|
1277
|
+
me(): Promise<ChatUserWithPresence>;
|
|
1278
|
+
/**
|
|
1279
|
+
* Update current user's presence status
|
|
1280
|
+
*/
|
|
1281
|
+
updateStatus(params: UpdatePresenceParams): Promise<void>;
|
|
1282
|
+
/**
|
|
1283
|
+
* Get a user by ID
|
|
1284
|
+
*/
|
|
1285
|
+
get(userId: string): Promise<ChatUserWithPresence>;
|
|
1286
|
+
/**
|
|
1287
|
+
* Get presence for a specific user
|
|
1288
|
+
*/
|
|
1289
|
+
getPresence(userId: string): Promise<UserPresence>;
|
|
1290
|
+
}
|
|
1291
|
+
declare class ChatResource {
|
|
1292
|
+
/** Conversation management */
|
|
1293
|
+
readonly conversations: ConversationsResource;
|
|
1294
|
+
/** User listing and presence */
|
|
1295
|
+
readonly users: ChatUsersResource;
|
|
1296
|
+
constructor(http: HttpClient);
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1108
1299
|
/**
|
|
1109
1300
|
* Agents Resource
|
|
1110
1301
|
*
|
|
@@ -1450,6 +1641,8 @@ declare class VeroAI {
|
|
|
1450
1641
|
readonly voice: VoiceResource;
|
|
1451
1642
|
/** AI agent configurations */
|
|
1452
1643
|
readonly agents: AgentsResource;
|
|
1644
|
+
/** Chat conversations and users */
|
|
1645
|
+
readonly chat: ChatResource;
|
|
1453
1646
|
/** Real-time event subscriptions via WebSocket */
|
|
1454
1647
|
readonly realtime: RealtimeResource;
|
|
1455
1648
|
/**
|
|
@@ -1566,4 +1759,4 @@ declare class NetworkError extends VeroAIError {
|
|
|
1566
1759
|
constructor(message?: string, cause?: Error);
|
|
1567
1760
|
}
|
|
1568
1761
|
|
|
1569
|
-
export { APIError, type ActivityEvent, type AdapterType, type ApiKey, type ApiKeyEnvironment, AuthenticationError, AuthorizationError, type AvailableNumber, type Call, type CallDirection, type CallEndReason, type CallStatus, type CanonicalType, type Channel, type ChannelDirection, type ChannelHealth, type ChannelOverride, type ChannelStatus, type ConnectionState, type CreateApiKeyParams, type CreateApiKeyResult, type CreateChannelParams, type CreateDomainParams, type CreateVoiceChannelParams, type CreateWebhookParams, type DateRangeParams, type DialParams, type DnsRecord, type Domain, type DomainStatus, type EnrichmentConfig, type EnrichmentResult, type EntityDefinition, type ErrorHandler, type EventDirection, type EventHandler, type EventStats, type ExtractedEntity, type InboundConfig, type InboundHandler, type IntentDefinition, type LanguageConfig, type ListCallsParams, type ListEventsParams, type ListNumbersParams, NetworkError, NotFoundError, type PaginatedResponse, type PaginationParams, type PhoneNumber, type PhoneNumberCapability, type PhoneNumberStatus, type PurchaseNumberParams, RateLimitError, type RealtimeConfig, type RealtimeEvent, RealtimeResource, type RecordingConfig, type RetryConfig, type SearchNumbersParams, type SendMessageParams, type SendMessageResult, type SentimentConfig, ServerError, type StateChangeHandler, type SttConfig, type SubscribeOptions, type SubscriptionType, type TimeSeriesDataPoint, type TimeSeriesGranularity, TimeoutError, type TtsConfig, type UpdateChannelParams, type UpdateNumberParams, type UpdateVoiceChannelParams, type UpdateWebhookParams, ValidationError, type VerifyDomainResult, VeroAI, type VeroAIConfig, VeroAIError, type VeroAIErrorDetails, VoiceCallsResource, type VoiceChannelConfig, VoiceNumbersResource, VoiceResource, type Webhook, type WebhookDelivery, type WebhookStats, type WebhookStatus, createRealtimeResource, VeroAI as default };
|
|
1762
|
+
export { APIError, type ActivityEvent, type AdapterType, type AddAgentParams, type ApiKey, type ApiKeyEnvironment, AuthenticationError, AuthorizationError, type AvailableNumber, type Call, type CallDirection, type CallEndReason, type CallStatus, type CanonicalType, type Channel, type ChannelDirection, type ChannelHealth, type ChannelOverride, type ChannelStatus, type ChatMessage, ChatResource, type ChatUser, type ChatUserWithPresence, ChatUsersResource, type ConnectionState, type Conversation, type ConversationAgent, type ConversationParticipant, type ConversationType, ConversationsResource, type CreateApiKeyParams, type CreateApiKeyResult, type CreateChannelParams, type CreateConversationParams, type CreateDomainParams, type CreateVoiceChannelParams, type CreateWebhookParams, type DateRangeParams, type DialParams, type DnsRecord, type Domain, type DomainStatus, type EnrichmentConfig, type EnrichmentResult, type EntityDefinition, type ErrorHandler, type EventDirection, type EventHandler, type EventStats, type ExtractedEntity, type InboundConfig, type InboundHandler, type IntentDefinition, type LanguageConfig, type ListCallsParams, type ListEventsParams, type ListMessagesParams, type ListNumbersParams, type ListUsersParams, type MessageRead, type MessageType, type MessagesResponse, NetworkError, NotFoundError, type PaginatedResponse, type PaginationParams, type ParticipantRole, type PhoneNumber, type PhoneNumberCapability, type PhoneNumberStatus, type PresenceStatus, type PurchaseNumberParams, RateLimitError, type RealtimeConfig, type RealtimeEvent, RealtimeResource, type RecordingConfig, type RetryConfig, type SearchNumbersParams, type SendChatMessageParams, type SendMessageParams, type SendMessageResult, type SentimentConfig, ServerError, type StateChangeHandler, type SttConfig, type SubscribeOptions, type SubscriptionType, type TimeSeriesDataPoint, type TimeSeriesGranularity, TimeoutError, type TtsConfig, type UpdateChannelParams, type UpdateNumberParams, type UpdatePresenceParams, type UpdateVoiceChannelParams, type UpdateWebhookParams, type UserPresence, ValidationError, type VerifyDomainResult, VeroAI, type VeroAIConfig, VeroAIError, type VeroAIErrorDetails, VoiceCallsResource, type VoiceChannelConfig, VoiceNumbersResource, VoiceResource, type Webhook, type WebhookDelivery, type WebhookStats, type WebhookStatus, createRealtimeResource, VeroAI as default };
|