@tellescope/types-models 1.255.9 → 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 +54 -0
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +54 -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 +56 -1
package/lib/cjs/index.d.ts
CHANGED
|
@@ -1014,6 +1014,12 @@ export interface Enduser extends Enduser_readonly, Enduser_required, Enduser_upd
|
|
|
1014
1014
|
pronouns?: string;
|
|
1015
1015
|
height?: GenericQuantityWithUnit;
|
|
1016
1016
|
weight?: GenericQuantityWithUnit;
|
|
1017
|
+
dailyCalorieTarget?: number;
|
|
1018
|
+
dailyProteinTarget?: number;
|
|
1019
|
+
dailyCarbTarget?: number;
|
|
1020
|
+
dailyFatTarget?: number;
|
|
1021
|
+
dailyFiberTarget?: number;
|
|
1022
|
+
dailyWaterTarget?: number;
|
|
1017
1023
|
source?: string;
|
|
1018
1024
|
usingV1SMS?: boolean;
|
|
1019
1025
|
addressLineOne?: string;
|
|
@@ -2146,6 +2152,7 @@ export interface Form extends Form_readonly, Form_required, Form_updatesDisabled
|
|
|
2146
2152
|
syncToCanvasAsDataImport?: boolean;
|
|
2147
2153
|
matchCareTeamTagsForCanvasPractitionerResolution?: ListOfStringsWithQualifier;
|
|
2148
2154
|
dontSyncToCanvasOnSubmission?: boolean;
|
|
2155
|
+
dontAssociateCanvasResponsesWithAppointments?: boolean;
|
|
2149
2156
|
belugaVisitType?: string;
|
|
2150
2157
|
belugaVerificationId?: string;
|
|
2151
2158
|
belugaPharmacyMappings?: BelugaPharmacyMapping[];
|
|
@@ -3706,6 +3713,18 @@ export type ObservationValue = {
|
|
|
3706
3713
|
value: number;
|
|
3707
3714
|
unit: string;
|
|
3708
3715
|
};
|
|
3716
|
+
export type ObservationComponentCoding = {
|
|
3717
|
+
system: string;
|
|
3718
|
+
code: string;
|
|
3719
|
+
display?: string;
|
|
3720
|
+
};
|
|
3721
|
+
export type ObservationComponent = {
|
|
3722
|
+
code: {
|
|
3723
|
+
text: string;
|
|
3724
|
+
coding?: ObservationComponentCoding[];
|
|
3725
|
+
};
|
|
3726
|
+
valueQuantity: ObservationValue;
|
|
3727
|
+
};
|
|
3709
3728
|
export type ObservationStatusCode = ('registered' | 'preliminary' | 'final' | 'amended' | 'corrected' | 'cancelled' | 'entered-in-error' | 'unknown');
|
|
3710
3729
|
export type ObservationCategory = 'vital-signs' | 'laboratory';
|
|
3711
3730
|
export interface EnduserObservation_readonly extends ClientRecord {
|
|
@@ -3746,6 +3765,7 @@ export interface EnduserObservation extends EnduserObservation_readonly, Enduser
|
|
|
3746
3765
|
showWithPlotsByUnit?: string[];
|
|
3747
3766
|
invalidationReason?: string;
|
|
3748
3767
|
excludeFromVitalCountLookback?: boolean;
|
|
3768
|
+
components?: ObservationComponent[];
|
|
3749
3769
|
}
|
|
3750
3770
|
export type BlockType = 'h1' | 'h2' | 'html' | 'raw-html' | 'image' | 'youtube' | 'pdf' | 'iframe' | 'content-link';
|
|
3751
3771
|
export type BlockStyle = {
|
|
@@ -5062,6 +5082,9 @@ export type PhoneTreeEvents = {
|
|
|
5062
5082
|
'If No Users Match': PhoneTreeEventBuilder<'If No Users Match', {}>;
|
|
5063
5083
|
'If No Users Answer': PhoneTreeEventBuilder<'If No Users Answer', {}>;
|
|
5064
5084
|
'After Action': PhoneTreeEventBuilder<'After Action', {}>;
|
|
5085
|
+
'On Agent Outcome': PhoneTreeEventBuilder<'On Agent Outcome', {
|
|
5086
|
+
outcome: string;
|
|
5087
|
+
}>;
|
|
5065
5088
|
};
|
|
5066
5089
|
export type PhoneTreeEventType = keyof PhoneTreeEvents;
|
|
5067
5090
|
export type PhoneTreeEvent = PhoneTreeEvents[PhoneTreeEventType];
|
|
@@ -5153,6 +5176,21 @@ export type PhoneTreeActions = {
|
|
|
5153
5176
|
'Add to Journey': PhoneTreeActionBuilder<"Add to Journey", {
|
|
5154
5177
|
journeyId: string;
|
|
5155
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
|
+
}>;
|
|
5156
5194
|
};
|
|
5157
5195
|
export type PhoneTreeActionType = keyof PhoneTreeActions;
|
|
5158
5196
|
export type PhoneTreeAction = PhoneTreeActions[PhoneTreeActionType];
|
|
@@ -5754,6 +5792,7 @@ export type AICOnversationMessageContent = {
|
|
|
5754
5792
|
type: 'text' | 'image' | 'file';
|
|
5755
5793
|
text?: string;
|
|
5756
5794
|
};
|
|
5795
|
+
export type AIConversationMessageStatus = 'pending' | 'completed' | 'errored_pre_stream' | 'errored_mid_stream' | 'rejected_pre_request';
|
|
5757
5796
|
export type AIConversationMessage = {
|
|
5758
5797
|
role: 'user' | 'assistant';
|
|
5759
5798
|
text: string;
|
|
@@ -5762,6 +5801,18 @@ export type AIConversationMessage = {
|
|
|
5762
5801
|
content?: AICOnversationMessageContent[];
|
|
5763
5802
|
userId?: string;
|
|
5764
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;
|
|
5765
5816
|
};
|
|
5766
5817
|
export interface AIConversation_readonly extends ClientRecord {
|
|
5767
5818
|
}
|
|
@@ -5777,6 +5828,9 @@ export interface AIConversation extends AIConversation_readonly, AIConversation_
|
|
|
5777
5828
|
enduserId?: string;
|
|
5778
5829
|
journeyId?: string;
|
|
5779
5830
|
automationStepId?: string;
|
|
5831
|
+
callSid?: string;
|
|
5832
|
+
phoneTreeId?: string;
|
|
5833
|
+
nodeId?: string;
|
|
5780
5834
|
}
|
|
5781
5835
|
export interface InboxThread_readonly extends ClientRecord {
|
|
5782
5836
|
searchKeywords?: string[];
|