@tellescope/types-models 1.255.10 → 1.255.11
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/lib/cjs/index.d.ts +34 -0
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +34 -0
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/index.ts +39 -1
package/lib/cjs/index.d.ts
CHANGED
|
@@ -5082,6 +5082,9 @@ export type PhoneTreeEvents = {
|
|
|
5082
5082
|
'If No Users Match': PhoneTreeEventBuilder<'If No Users Match', {}>;
|
|
5083
5083
|
'If No Users Answer': PhoneTreeEventBuilder<'If No Users Answer', {}>;
|
|
5084
5084
|
'After Action': PhoneTreeEventBuilder<'After Action', {}>;
|
|
5085
|
+
'On Agent Outcome': PhoneTreeEventBuilder<'On Agent Outcome', {
|
|
5086
|
+
outcome: string;
|
|
5087
|
+
}>;
|
|
5085
5088
|
};
|
|
5086
5089
|
export type PhoneTreeEventType = keyof PhoneTreeEvents;
|
|
5087
5090
|
export type PhoneTreeEvent = PhoneTreeEvents[PhoneTreeEventType];
|
|
@@ -5173,6 +5176,21 @@ export type PhoneTreeActions = {
|
|
|
5173
5176
|
'Add to Journey': PhoneTreeActionBuilder<"Add to Journey", {
|
|
5174
5177
|
journeyId: string;
|
|
5175
5178
|
}>;
|
|
5179
|
+
'AI Agent': PhoneTreeActionBuilder<"AI Agent", {
|
|
5180
|
+
prompt: string;
|
|
5181
|
+
greeting?: string;
|
|
5182
|
+
voice?: string;
|
|
5183
|
+
language?: string;
|
|
5184
|
+
interruptible?: boolean;
|
|
5185
|
+
maxTokensPerTurn?: number;
|
|
5186
|
+
maxTurns?: number;
|
|
5187
|
+
maxDurationSeconds?: number;
|
|
5188
|
+
maxCreditsPerCall?: number;
|
|
5189
|
+
outcomes: {
|
|
5190
|
+
value: string;
|
|
5191
|
+
description: string;
|
|
5192
|
+
}[];
|
|
5193
|
+
}>;
|
|
5176
5194
|
};
|
|
5177
5195
|
export type PhoneTreeActionType = keyof PhoneTreeActions;
|
|
5178
5196
|
export type PhoneTreeAction = PhoneTreeActions[PhoneTreeActionType];
|
|
@@ -5774,6 +5792,7 @@ export type AICOnversationMessageContent = {
|
|
|
5774
5792
|
type: 'text' | 'image' | 'file';
|
|
5775
5793
|
text?: string;
|
|
5776
5794
|
};
|
|
5795
|
+
export type AIConversationMessageStatus = 'pending' | 'completed' | 'errored_pre_stream' | 'errored_mid_stream' | 'rejected_pre_request';
|
|
5777
5796
|
export type AIConversationMessage = {
|
|
5778
5797
|
role: 'user' | 'assistant';
|
|
5779
5798
|
text: string;
|
|
@@ -5782,6 +5801,18 @@ export type AIConversationMessage = {
|
|
|
5782
5801
|
content?: AICOnversationMessageContent[];
|
|
5783
5802
|
userId?: string;
|
|
5784
5803
|
systemPrompt?: string;
|
|
5804
|
+
invocationId?: string;
|
|
5805
|
+
turnId?: string;
|
|
5806
|
+
toolRound?: number;
|
|
5807
|
+
status?: AIConversationMessageStatus;
|
|
5808
|
+
estimated?: boolean;
|
|
5809
|
+
stopReason?: string;
|
|
5810
|
+
interrupted?: boolean;
|
|
5811
|
+
latencyMs?: number;
|
|
5812
|
+
cacheReadInputTokens?: number;
|
|
5813
|
+
cacheWriteInputTokens?: number;
|
|
5814
|
+
ratedAt?: Date;
|
|
5815
|
+
creditsCharged?: number;
|
|
5785
5816
|
};
|
|
5786
5817
|
export interface AIConversation_readonly extends ClientRecord {
|
|
5787
5818
|
}
|
|
@@ -5797,6 +5828,9 @@ export interface AIConversation extends AIConversation_readonly, AIConversation_
|
|
|
5797
5828
|
enduserId?: string;
|
|
5798
5829
|
journeyId?: string;
|
|
5799
5830
|
automationStepId?: string;
|
|
5831
|
+
callSid?: string;
|
|
5832
|
+
phoneTreeId?: string;
|
|
5833
|
+
nodeId?: string;
|
|
5800
5834
|
}
|
|
5801
5835
|
export interface InboxThread_readonly extends ClientRecord {
|
|
5802
5836
|
searchKeywords?: string[];
|