@smartspace/chat-ui 1.14.6-main.84a0dbd → 1.14.6-main.9899093
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.d.ts +24 -139
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -557,10 +557,7 @@ declare const messagesResponseSchema: z.ZodObject<{
|
|
|
557
557
|
createdByUserId: z.ZodString;
|
|
558
558
|
id: z.ZodString;
|
|
559
559
|
name: z.ZodString;
|
|
560
|
-
type: z.
|
|
561
|
-
Input: "Input";
|
|
562
|
-
Output: "Output";
|
|
563
|
-
}>;
|
|
560
|
+
type: z.ZodString;
|
|
564
561
|
value: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
565
562
|
}, z.core.$strip>>;
|
|
566
563
|
}, z.core.$strip>>;
|
|
@@ -576,6 +573,8 @@ type MessageErrorDto = NonNullable<MessageDto['errors']>[number] & {
|
|
|
576
573
|
};
|
|
577
574
|
type MessageError = NonNullable<Message['errors']>[number];
|
|
578
575
|
declare function mapMessageValueDtoToModel(dto: MessageValueDto): MessageValue;
|
|
576
|
+
/** `type` is an extensible enum; a value this UI cannot place is dropped. */
|
|
577
|
+
declare const mapMessageValuesDtoToModels: (dtos: MessageValueDto[]) => MessageValue[];
|
|
579
578
|
declare function mapMessageErrorDtoToModel(dto: MessageErrorDto): MessageError;
|
|
580
579
|
declare function mapMessageDtoToModel(dto: MessageDto): Message;
|
|
581
580
|
declare function mapMessagesDtoToModels(dto: MessageDto[]): Message[];
|
|
@@ -776,11 +775,7 @@ declare const workspaceResponseSchema: z.ZodObject<{
|
|
|
776
775
|
schema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
777
776
|
}, z.core.$strip>>>>;
|
|
778
777
|
variables: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
779
|
-
access: z.
|
|
780
|
-
None: "None";
|
|
781
|
-
Read: "Read";
|
|
782
|
-
Write: "Write";
|
|
783
|
-
}>;
|
|
778
|
+
access: z.ZodString;
|
|
784
779
|
schema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
785
780
|
}, z.core.$strip>>>>;
|
|
786
781
|
}, z.core.$strip>>;
|
|
@@ -803,10 +798,7 @@ declare const workspaceResponseSchema: z.ZodObject<{
|
|
|
803
798
|
honourSourceDeletes: z.ZodBoolean;
|
|
804
799
|
id: z.ZodString;
|
|
805
800
|
inputName: z.ZodString;
|
|
806
|
-
type: z.
|
|
807
|
-
Periodic: "Periodic";
|
|
808
|
-
Container: "Container";
|
|
809
|
-
}>;
|
|
801
|
+
type: z.ZodString;
|
|
810
802
|
}, z.core.$strip>>;
|
|
811
803
|
}, z.core.$strip>>;
|
|
812
804
|
id: z.ZodString;
|
|
@@ -851,13 +843,7 @@ declare const workspaceResponseSchema: z.ZodObject<{
|
|
|
851
843
|
providerDeploymentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
852
844
|
providerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
853
845
|
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
854
|
-
status: z.
|
|
855
|
-
Deploying: "Deploying";
|
|
856
|
-
Ready: "Ready";
|
|
857
|
-
Failed: "Failed";
|
|
858
|
-
Deleting: "Deleting";
|
|
859
|
-
Deleted: "Deleted";
|
|
860
|
-
}>;
|
|
846
|
+
status: z.ZodString;
|
|
861
847
|
statusMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
862
848
|
statusUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
863
849
|
steps: z.ZodArray<z.ZodObject<{
|
|
@@ -865,68 +851,28 @@ declare const workspaceResponseSchema: z.ZodObject<{
|
|
|
865
851
|
id: z.ZodString;
|
|
866
852
|
index: z.ZodNumber;
|
|
867
853
|
message: z.ZodString;
|
|
868
|
-
name: z.
|
|
869
|
-
DeployVNet: "DeployVNet";
|
|
870
|
-
DeployVM: "DeployVM";
|
|
871
|
-
InstallDependencies: "InstallDependencies";
|
|
872
|
-
DownloadModel: "DownloadModel";
|
|
873
|
-
TestModel: "TestModel";
|
|
874
|
-
}>;
|
|
854
|
+
name: z.ZodString;
|
|
875
855
|
progress: z.ZodNumber;
|
|
876
856
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
877
857
|
}, z.core.$strip>>;
|
|
878
858
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
879
|
-
virtualMachineServerType: z.ZodOptional<z.
|
|
880
|
-
TextGenerationInference: "TextGenerationInference";
|
|
881
|
-
VLlm: "VLlm";
|
|
882
|
-
}>>;
|
|
859
|
+
virtualMachineServerType: z.ZodOptional<z.ZodString>;
|
|
883
860
|
virtualMachineUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
884
861
|
vmSize: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
885
862
|
}, z.core.$strip>>;
|
|
886
863
|
displayName: z.ZodString;
|
|
887
864
|
id: z.ZodString;
|
|
888
|
-
modelDeploymentProviderType: z.ZodOptional<z.
|
|
889
|
-
|
|
890
|
-
AzureOpenAi: "AzureOpenAi";
|
|
891
|
-
HuggingFace: "HuggingFace";
|
|
892
|
-
Cohere: "Cohere";
|
|
893
|
-
Anthropic: "Anthropic";
|
|
894
|
-
Gemini: "Gemini";
|
|
895
|
-
VertexAi: "VertexAi";
|
|
896
|
-
AzureFoundry: "AzureFoundry";
|
|
897
|
-
}>>;
|
|
898
|
-
modelPublisher: z.ZodOptional<z.ZodEnum<{
|
|
899
|
-
OpenAi: "OpenAi";
|
|
900
|
-
HuggingFace: "HuggingFace";
|
|
901
|
-
Cohere: "Cohere";
|
|
902
|
-
Anthropic: "Anthropic";
|
|
903
|
-
Google: "Google";
|
|
904
|
-
Meta: "Meta";
|
|
905
|
-
Mistral: "Mistral";
|
|
906
|
-
Microsoft: "Microsoft";
|
|
907
|
-
DeepSeek: "DeepSeek";
|
|
908
|
-
XAi: "XAi";
|
|
909
|
-
Amazon: "Amazon";
|
|
910
|
-
Qwen: "Qwen";
|
|
911
|
-
Other: "Other";
|
|
912
|
-
}>>;
|
|
865
|
+
modelDeploymentProviderType: z.ZodOptional<z.ZodString>;
|
|
866
|
+
modelPublisher: z.ZodOptional<z.ZodString>;
|
|
913
867
|
name: z.ZodString;
|
|
914
868
|
properties: z.ZodArray<z.ZodObject<{
|
|
915
869
|
name: z.ZodString;
|
|
916
|
-
type: z.
|
|
917
|
-
Boolean: "Boolean";
|
|
918
|
-
Number: "Number";
|
|
919
|
-
String: "String";
|
|
920
|
-
}>;
|
|
870
|
+
type: z.ZodString;
|
|
921
871
|
}, z.core.$strip>>;
|
|
922
872
|
}, z.core.$strip>;
|
|
923
873
|
prePrompt: z.ZodString;
|
|
924
874
|
presencePenalty: z.ZodNumber;
|
|
925
|
-
role: z.
|
|
926
|
-
Document: "Document";
|
|
927
|
-
Agent: "Agent";
|
|
928
|
-
Analyzer: "Analyzer";
|
|
929
|
-
}>;
|
|
875
|
+
role: z.ZodString;
|
|
930
876
|
temperature: z.ZodNumber;
|
|
931
877
|
topP: z.ZodNumber;
|
|
932
878
|
}, z.core.$strip>>;
|
|
@@ -940,11 +886,7 @@ declare const workspaceResponseSchema: z.ZodObject<{
|
|
|
940
886
|
supportsFiles: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
941
887
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
942
888
|
variables: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
943
|
-
access: z.
|
|
944
|
-
None: "None";
|
|
945
|
-
Read: "Read";
|
|
946
|
-
Write: "Write";
|
|
947
|
-
}>;
|
|
889
|
+
access: z.ZodString;
|
|
948
890
|
schema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
949
891
|
}, z.core.$strip>>;
|
|
950
892
|
}, z.core.$strip>;
|
|
@@ -1019,11 +961,7 @@ declare const workspacesListResponseSchema: z.ZodObject<{
|
|
|
1019
961
|
schema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
1020
962
|
}, z.core.$strip>>>>;
|
|
1021
963
|
variables: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1022
|
-
access: z.
|
|
1023
|
-
None: "None";
|
|
1024
|
-
Read: "Read";
|
|
1025
|
-
Write: "Write";
|
|
1026
|
-
}>;
|
|
964
|
+
access: z.ZodString;
|
|
1027
965
|
schema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
1028
966
|
}, z.core.$strip>>>>;
|
|
1029
967
|
}, z.core.$strip>>;
|
|
@@ -1046,10 +984,7 @@ declare const workspacesListResponseSchema: z.ZodObject<{
|
|
|
1046
984
|
honourSourceDeletes: z.ZodBoolean;
|
|
1047
985
|
id: z.ZodString;
|
|
1048
986
|
inputName: z.ZodString;
|
|
1049
|
-
type: z.
|
|
1050
|
-
Periodic: "Periodic";
|
|
1051
|
-
Container: "Container";
|
|
1052
|
-
}>;
|
|
987
|
+
type: z.ZodString;
|
|
1053
988
|
}, z.core.$strip>>;
|
|
1054
989
|
}, z.core.$strip>>;
|
|
1055
990
|
id: z.ZodString;
|
|
@@ -1094,13 +1029,7 @@ declare const workspacesListResponseSchema: z.ZodObject<{
|
|
|
1094
1029
|
providerDeploymentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1095
1030
|
providerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1096
1031
|
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1097
|
-
status: z.
|
|
1098
|
-
Deploying: "Deploying";
|
|
1099
|
-
Ready: "Ready";
|
|
1100
|
-
Failed: "Failed";
|
|
1101
|
-
Deleting: "Deleting";
|
|
1102
|
-
Deleted: "Deleted";
|
|
1103
|
-
}>;
|
|
1032
|
+
status: z.ZodString;
|
|
1104
1033
|
statusMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1105
1034
|
statusUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
1106
1035
|
steps: z.ZodArray<z.ZodObject<{
|
|
@@ -1108,68 +1037,28 @@ declare const workspacesListResponseSchema: z.ZodObject<{
|
|
|
1108
1037
|
id: z.ZodString;
|
|
1109
1038
|
index: z.ZodNumber;
|
|
1110
1039
|
message: z.ZodString;
|
|
1111
|
-
name: z.
|
|
1112
|
-
DeployVNet: "DeployVNet";
|
|
1113
|
-
DeployVM: "DeployVM";
|
|
1114
|
-
InstallDependencies: "InstallDependencies";
|
|
1115
|
-
DownloadModel: "DownloadModel";
|
|
1116
|
-
TestModel: "TestModel";
|
|
1117
|
-
}>;
|
|
1040
|
+
name: z.ZodString;
|
|
1118
1041
|
progress: z.ZodNumber;
|
|
1119
1042
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
1120
1043
|
}, z.core.$strip>>;
|
|
1121
1044
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1122
|
-
virtualMachineServerType: z.ZodOptional<z.
|
|
1123
|
-
TextGenerationInference: "TextGenerationInference";
|
|
1124
|
-
VLlm: "VLlm";
|
|
1125
|
-
}>>;
|
|
1045
|
+
virtualMachineServerType: z.ZodOptional<z.ZodString>;
|
|
1126
1046
|
virtualMachineUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1127
1047
|
vmSize: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1128
1048
|
}, z.core.$strip>>;
|
|
1129
1049
|
displayName: z.ZodString;
|
|
1130
1050
|
id: z.ZodString;
|
|
1131
|
-
modelDeploymentProviderType: z.ZodOptional<z.
|
|
1132
|
-
|
|
1133
|
-
AzureOpenAi: "AzureOpenAi";
|
|
1134
|
-
HuggingFace: "HuggingFace";
|
|
1135
|
-
Cohere: "Cohere";
|
|
1136
|
-
Anthropic: "Anthropic";
|
|
1137
|
-
Gemini: "Gemini";
|
|
1138
|
-
VertexAi: "VertexAi";
|
|
1139
|
-
AzureFoundry: "AzureFoundry";
|
|
1140
|
-
}>>;
|
|
1141
|
-
modelPublisher: z.ZodOptional<z.ZodEnum<{
|
|
1142
|
-
OpenAi: "OpenAi";
|
|
1143
|
-
HuggingFace: "HuggingFace";
|
|
1144
|
-
Cohere: "Cohere";
|
|
1145
|
-
Anthropic: "Anthropic";
|
|
1146
|
-
Google: "Google";
|
|
1147
|
-
Meta: "Meta";
|
|
1148
|
-
Mistral: "Mistral";
|
|
1149
|
-
Microsoft: "Microsoft";
|
|
1150
|
-
DeepSeek: "DeepSeek";
|
|
1151
|
-
XAi: "XAi";
|
|
1152
|
-
Amazon: "Amazon";
|
|
1153
|
-
Qwen: "Qwen";
|
|
1154
|
-
Other: "Other";
|
|
1155
|
-
}>>;
|
|
1051
|
+
modelDeploymentProviderType: z.ZodOptional<z.ZodString>;
|
|
1052
|
+
modelPublisher: z.ZodOptional<z.ZodString>;
|
|
1156
1053
|
name: z.ZodString;
|
|
1157
1054
|
properties: z.ZodArray<z.ZodObject<{
|
|
1158
1055
|
name: z.ZodString;
|
|
1159
|
-
type: z.
|
|
1160
|
-
Boolean: "Boolean";
|
|
1161
|
-
Number: "Number";
|
|
1162
|
-
String: "String";
|
|
1163
|
-
}>;
|
|
1056
|
+
type: z.ZodString;
|
|
1164
1057
|
}, z.core.$strip>>;
|
|
1165
1058
|
}, z.core.$strip>;
|
|
1166
1059
|
prePrompt: z.ZodString;
|
|
1167
1060
|
presencePenalty: z.ZodNumber;
|
|
1168
|
-
role: z.
|
|
1169
|
-
Document: "Document";
|
|
1170
|
-
Agent: "Agent";
|
|
1171
|
-
Analyzer: "Analyzer";
|
|
1172
|
-
}>;
|
|
1061
|
+
role: z.ZodString;
|
|
1173
1062
|
temperature: z.ZodNumber;
|
|
1174
1063
|
topP: z.ZodNumber;
|
|
1175
1064
|
}, z.core.$strip>>;
|
|
@@ -1183,11 +1072,7 @@ declare const workspacesListResponseSchema: z.ZodObject<{
|
|
|
1183
1072
|
supportsFiles: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1184
1073
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1185
1074
|
variables: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1186
|
-
access: z.
|
|
1187
|
-
None: "None";
|
|
1188
|
-
Read: "Read";
|
|
1189
|
-
Write: "Write";
|
|
1190
|
-
}>;
|
|
1075
|
+
access: z.ZodString;
|
|
1191
1076
|
schema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
1192
1077
|
}, z.core.$strip>>;
|
|
1193
1078
|
}, z.core.$strip>>;
|
|
@@ -1576,4 +1461,4 @@ declare function useModels({ search, take, skip, }?: {
|
|
|
1576
1461
|
*/
|
|
1577
1462
|
declare function useSpeechConfig(): _tanstack_react_query.UseQueryResult<SpeechConfig, Error>;
|
|
1578
1463
|
|
|
1579
|
-
export { type ChatContextIds, type ChatIdentity, ChatProvider, type ChatProviderProps, type ChatService, ChatVariablesForm, DRAFT_THREAD_PREFIX, DateFromApi, DictationButton, type DictationButtonProps, type DictationError, type DictationState, type FileInfo$1 as FileInfo, type FileScope, type FlowRunVariables, MarkdownEditor, type MarkdownEditorHandle, type MentionUser, type Message, MessageComposer, type MessageComposerProps, type MessageContentItem, type MessageError, type MessageErrorLike, MessageList, type MessageListProps, MessageListSkeleton, MessageMarkdown, type MessageThread, type MessageValue, MessageValueType, type Model, type ModelProperty, NEW_THREAD_ID, type RetryStatus, type SpeechConfig, type SpeechToken, THREAD_LIST_PAGE_SIZE, type ThreadsResponse, type UseDictationOptions, type Variables, type Workspace, applyDeltaToMessage, applyThreadToCache, createDraftThreadId, createThreadId, downloadFileBlobOptions, filesKeys, flowRunsKeys, getMessageErrorDetail, getMessageErrorText, getModelIcon, getRetryStatusText, getThreadPlaceholderFromListCache, getUserPhotoUrl, invalidateWorkspaceThreadLists, isDraftThreadId, mapFileInfoDtoToModel, mapMentionUserDtoToModel, mapMessageDtoToModel, mapMessageErrorDtoToModel, mapMessageValueDtoToModel, mapMessagesDtoToModels, mapSignalRThreadSummaryToModel, mapThreadDtoToModel, mapThreadsResponseDtoToModel, mapWorkspaceDtoToModel, mapWorkspacesDtoToModels, markDraftThreadId, messagesKeys, messagesListOptions, messagesMutationsKeys, modelsKeys, parseDateTime, parseDateTimeHuman, parseRetryStatus, randomUUID, setThreadOptimisticRunning, setThreadRunningInLists, speechKeys, taggableUsersOptions, threadDetailOptions, threadsKeys, unmarkDraftThreadId, useAddInputToMessage, useChatContext, useChatIdentity, useChatService, useDictation, useDownloadFileBlobQuery, useFileMutations, useFlowRunVariables, useIsDraftThreadId, useMessages, useModels, useSendMessage, useSpeechConfig, useTaggableWorkspaceUsers, useThread, useThreadIsRunning, useUpdateFlowRunVariable, useWorkspace, utcDate, workspaceDetailOptions, workspaceKeys };
|
|
1464
|
+
export { type ChatContextIds, type ChatIdentity, ChatProvider, type ChatProviderProps, type ChatService, ChatVariablesForm, DRAFT_THREAD_PREFIX, DateFromApi, DictationButton, type DictationButtonProps, type DictationError, type DictationState, type FileInfo$1 as FileInfo, type FileScope, type FlowRunVariables, MarkdownEditor, type MarkdownEditorHandle, type MentionUser, type Message, MessageComposer, type MessageComposerProps, type MessageContentItem, type MessageError, type MessageErrorLike, MessageList, type MessageListProps, MessageListSkeleton, MessageMarkdown, type MessageThread, type MessageValue, MessageValueType, type Model, type ModelProperty, NEW_THREAD_ID, type RetryStatus, type SpeechConfig, type SpeechToken, THREAD_LIST_PAGE_SIZE, type ThreadsResponse, type UseDictationOptions, type Variables, type Workspace, applyDeltaToMessage, applyThreadToCache, createDraftThreadId, createThreadId, downloadFileBlobOptions, filesKeys, flowRunsKeys, getMessageErrorDetail, getMessageErrorText, getModelIcon, getRetryStatusText, getThreadPlaceholderFromListCache, getUserPhotoUrl, invalidateWorkspaceThreadLists, isDraftThreadId, mapFileInfoDtoToModel, mapMentionUserDtoToModel, mapMessageDtoToModel, mapMessageErrorDtoToModel, mapMessageValueDtoToModel, mapMessageValuesDtoToModels, mapMessagesDtoToModels, mapSignalRThreadSummaryToModel, mapThreadDtoToModel, mapThreadsResponseDtoToModel, mapWorkspaceDtoToModel, mapWorkspacesDtoToModels, markDraftThreadId, messagesKeys, messagesListOptions, messagesMutationsKeys, modelsKeys, parseDateTime, parseDateTimeHuman, parseRetryStatus, randomUUID, setThreadOptimisticRunning, setThreadRunningInLists, speechKeys, taggableUsersOptions, threadDetailOptions, threadsKeys, unmarkDraftThreadId, useAddInputToMessage, useChatContext, useChatIdentity, useChatService, useDictation, useDownloadFileBlobQuery, useFileMutations, useFlowRunVariables, useIsDraftThreadId, useMessages, useModels, useSendMessage, useSpeechConfig, useTaggableWorkspaceUsers, useThread, useThreadIsRunning, useUpdateFlowRunVariable, useWorkspace, utcDate, workspaceDetailOptions, workspaceKeys };
|
package/dist/index.js
CHANGED
|
@@ -21147,6 +21147,11 @@ function MessageListSkeleton() {
|
|
|
21147
21147
|
i
|
|
21148
21148
|
)) });
|
|
21149
21149
|
}
|
|
21150
|
+
|
|
21151
|
+
// src/shared/utils/enums.ts
|
|
21152
|
+
var isMember = (e, value) => Object.values(e).includes(value);
|
|
21153
|
+
|
|
21154
|
+
// src/domains/messages/mapper.ts
|
|
21150
21155
|
var {
|
|
21151
21156
|
messageThreadsThreadMessagesIdMessagesResponse: messagesResponseSchema
|
|
21152
21157
|
} = ChatZod;
|
|
@@ -21173,6 +21178,7 @@ function mapMessageValueDtoToModel(dto) {
|
|
|
21173
21178
|
createdByUserId: dto.createdByUserId ?? void 0
|
|
21174
21179
|
};
|
|
21175
21180
|
}
|
|
21181
|
+
var mapMessageValuesDtoToModels = (dtos) => dtos.filter((dto) => isMember(MessageValueType, dto.type)).map(mapMessageValueDtoToModel);
|
|
21176
21182
|
function mapMessageErrorDtoToModel(dto) {
|
|
21177
21183
|
const { error_code, ...rest } = dto;
|
|
21178
21184
|
return {
|
|
@@ -21190,7 +21196,7 @@ function mapMessageDtoToModel(dto) {
|
|
|
21190
21196
|
createdByUserId: dto.createdByUserId ?? void 0,
|
|
21191
21197
|
messageThreadId: dto.messageThreadId ?? void 0,
|
|
21192
21198
|
errors: dto.errors?.map(mapMessageErrorDtoToModel) ?? void 0,
|
|
21193
|
-
values: dto.values
|
|
21199
|
+
values: dto.values && mapMessageValuesDtoToModels(dto.values)
|
|
21194
21200
|
};
|
|
21195
21201
|
}
|
|
21196
21202
|
function mapMessagesDtoToModels(dto) {
|
|
@@ -21320,6 +21326,6 @@ function getUserPhotoUrl(userId) {
|
|
|
21320
21326
|
return `${base2}/users/${userId}/photo`;
|
|
21321
21327
|
}
|
|
21322
21328
|
|
|
21323
|
-
export { ChatProvider, ChatVariablesForm, DRAFT_THREAD_PREFIX, DateFromApi, DictationButton, MarkdownEditor, MessageComposer, MessageList, MessageListSkeleton, MessageMarkdown, MessageValueType, NEW_THREAD_ID, THREAD_LIST_PAGE_SIZE, applyDeltaToMessage, applyThreadToCache, createDraftThreadId, createThreadId, downloadFileBlobOptions, filesKeys, flowRunsKeys, getMessageErrorDetail, getMessageErrorText, getModelIcon, getRetryStatusText, getThreadPlaceholderFromListCache, getUserPhotoUrl, invalidateWorkspaceThreadLists, isDraftThreadId, mapFileInfoDtoToModel, mapMentionUserDtoToModel, mapMessageDtoToModel, mapMessageErrorDtoToModel, mapMessageValueDtoToModel, mapMessagesDtoToModels, mapSignalRThreadSummaryToModel, mapThreadDtoToModel, mapThreadsResponseDtoToModel, mapWorkspaceDtoToModel, mapWorkspacesDtoToModels, markDraftThreadId, messagesKeys, messagesListOptions, messagesMutationsKeys, modelsKeys, parseDateTime, parseDateTimeHuman, parseRetryStatus, randomUUID, setThreadOptimisticRunning, setThreadRunningInLists, speechKeys, taggableUsersOptions, threadDetailOptions, threadsKeys, unmarkDraftThreadId, useAddInputToMessage, useChatContext, useChatIdentity, useChatService, useDictation, useDownloadFileBlobQuery, useFileMutations, useFlowRunVariables, useIsDraftThreadId, useMessages, useModels, useSendMessage, useSpeechConfig, useTaggableWorkspaceUsers, useThread, useThreadIsRunning, useUpdateFlowRunVariable, useWorkspace, utcDate, workspaceDetailOptions, workspaceKeys };
|
|
21329
|
+
export { ChatProvider, ChatVariablesForm, DRAFT_THREAD_PREFIX, DateFromApi, DictationButton, MarkdownEditor, MessageComposer, MessageList, MessageListSkeleton, MessageMarkdown, MessageValueType, NEW_THREAD_ID, THREAD_LIST_PAGE_SIZE, applyDeltaToMessage, applyThreadToCache, createDraftThreadId, createThreadId, downloadFileBlobOptions, filesKeys, flowRunsKeys, getMessageErrorDetail, getMessageErrorText, getModelIcon, getRetryStatusText, getThreadPlaceholderFromListCache, getUserPhotoUrl, invalidateWorkspaceThreadLists, isDraftThreadId, mapFileInfoDtoToModel, mapMentionUserDtoToModel, mapMessageDtoToModel, mapMessageErrorDtoToModel, mapMessageValueDtoToModel, mapMessageValuesDtoToModels, mapMessagesDtoToModels, mapSignalRThreadSummaryToModel, mapThreadDtoToModel, mapThreadsResponseDtoToModel, mapWorkspaceDtoToModel, mapWorkspacesDtoToModels, markDraftThreadId, messagesKeys, messagesListOptions, messagesMutationsKeys, modelsKeys, parseDateTime, parseDateTimeHuman, parseRetryStatus, randomUUID, setThreadOptimisticRunning, setThreadRunningInLists, speechKeys, taggableUsersOptions, threadDetailOptions, threadsKeys, unmarkDraftThreadId, useAddInputToMessage, useChatContext, useChatIdentity, useChatService, useDictation, useDownloadFileBlobQuery, useFileMutations, useFlowRunVariables, useIsDraftThreadId, useMessages, useModels, useSendMessage, useSpeechConfig, useTaggableWorkspaceUsers, useThread, useThreadIsRunning, useUpdateFlowRunVariable, useWorkspace, utcDate, workspaceDetailOptions, workspaceKeys };
|
|
21324
21330
|
//# sourceMappingURL=index.js.map
|
|
21325
21331
|
//# sourceMappingURL=index.js.map
|