deep-chat-dev 9.0.163 → 9.0.165
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/custom-elements.json +3819 -3792
- package/dist/deepChat.bundle.js +1 -1
- package/dist/deepChat.d.ts +24 -23
- package/dist/deepChat.js +1521 -1465
- package/dist/services/assemblyAI/assemblyAIAudioIO.d.ts +6 -5
- package/dist/services/assemblyAI/utils/assemblyAIUtils.d.ts +1 -0
- package/dist/services/azure/azureLanguageIO.d.ts +5 -4
- package/dist/services/azure/azureSpeechIO.d.ts +5 -4
- package/dist/services/azure/azureSpeechToTextIO.d.ts +6 -5
- package/dist/services/azure/azureSummarizationIO.d.ts +7 -6
- package/dist/services/azure/azureTextToSpeechIO.d.ts +7 -6
- package/dist/services/azure/azureTranslationIO.d.ts +6 -5
- package/dist/services/azure/utils/azureUtils.d.ts +2 -1
- package/dist/services/cohere/cohereChatIO.d.ts +6 -5
- package/dist/services/cohere/cohereIO.d.ts +3 -2
- package/dist/services/cohere/cohereSummarizationIO.d.ts +7 -6
- package/dist/services/cohere/cohereTextGenerationIO.d.ts +7 -6
- package/dist/services/cohere/utils/cohereUtils.d.ts +1 -0
- package/dist/services/huggingFace/huggingFaceAudioClassificationIO.d.ts +4 -3
- package/dist/services/huggingFace/huggingFaceAudioRecognitionIO.d.ts +4 -3
- package/dist/services/huggingFace/huggingFaceConversationIO.d.ts +6 -5
- package/dist/services/huggingFace/huggingFaceFileIO.d.ts +7 -6
- package/dist/services/huggingFace/huggingFaceFillMaskIO.d.ts +4 -3
- package/dist/services/huggingFace/huggingFaceIO.d.ts +7 -6
- package/dist/services/huggingFace/huggingFaceImageClassificationIO.d.ts +4 -3
- package/dist/services/huggingFace/huggingFaceQuestionAnswerIO.d.ts +6 -5
- package/dist/services/huggingFace/huggingFaceSummarizationIO.d.ts +4 -3
- package/dist/services/huggingFace/huggingFaceTextGenerationIO.d.ts +4 -3
- package/dist/services/huggingFace/huggingFaceTranslationIO.d.ts +4 -3
- package/dist/services/huggingFace/utils/huggingFaceUtils.d.ts +1 -0
- package/dist/services/mistral/mistralO.d.ts +6 -5
- package/dist/services/mistral/utils/mistralUtils.d.ts +1 -0
- package/dist/services/openAI/openAIAssistantIO.d.ts +7 -6
- package/dist/services/openAI/openAIAssistantIO.d.ts.map +1 -1
- package/dist/services/openAI/openAIChatIO.d.ts +8 -7
- package/dist/services/openAI/openAIImagesIO.d.ts +6 -5
- package/dist/services/openAI/openAISpeechToTextIO.d.ts +6 -5
- package/dist/services/openAI/openAITextToSpeechIO.d.ts +6 -5
- package/dist/services/openAI/utils/openAIAssistantUtils.d.ts +6 -5
- package/dist/services/openAI/utils/openAIAssistantUtils.d.ts.map +1 -1
- package/dist/services/openAI/utils/openAIUtils.d.ts +2 -1
- package/dist/services/serviceIO.d.ts +12 -11
- package/dist/services/serviceIOFactory.d.ts +2 -1
- package/dist/services/stabilityAI/stabilityAIIO.d.ts +6 -5
- package/dist/services/stabilityAI/stabilityAIImageToImageIO.d.ts +6 -5
- package/dist/services/stabilityAI/stabilityAIImageToImageMaskingIO.d.ts +6 -5
- package/dist/services/stabilityAI/stabilityAIImageToImageUpscaleIO.d.ts +6 -5
- package/dist/services/stabilityAI/stabilityAITextToImageIO.d.ts +6 -5
- package/dist/services/stabilityAI/utils/stabilityAIUtils.d.ts +1 -0
- package/dist/services/utils/baseServiceIO.d.ts +10 -9
- package/dist/services/utils/directServiceIO.d.ts +6 -5
- package/dist/services/utils/messageLimitUtils.d.ts +1 -0
- package/dist/services/utils/setFileTypes.d.ts +2 -1
- package/dist/types/avatars.d.ts +1 -0
- package/dist/types/azureResult.d.ts +1 -0
- package/dist/types/button.d.ts +1 -0
- package/dist/types/buttonInternal.d.ts +2 -1
- package/dist/types/buttonTypes.d.ts +1 -0
- package/dist/types/cohere.d.ts +1 -0
- package/dist/types/cohereResult.d.ts +1 -0
- package/dist/types/connect.d.ts +3 -2
- package/dist/types/demo.d.ts +3 -2
- package/dist/types/directConnection.d.ts +8 -7
- package/dist/types/dropupStyles.d.ts +2 -1
- package/dist/types/fileAttachments.d.ts +1 -0
- package/dist/types/fileServiceConfigs.d.ts +6 -5
- package/dist/types/genericInputButton.d.ts +1 -0
- package/dist/types/handler.d.ts +1 -0
- package/dist/types/headers.d.ts +1 -0
- package/dist/types/html.d.ts +1 -0
- package/dist/types/huggingFaceResult.d.ts +1 -0
- package/dist/types/interceptors.d.ts +2 -1
- package/dist/types/keyVerificationDetails.d.ts +1 -0
- package/dist/types/messages.d.ts +3 -2
- package/dist/types/messagesInternal.d.ts +3 -2
- package/dist/types/microphone.d.ts +2 -1
- package/dist/types/names.d.ts +1 -0
- package/dist/types/openAI.d.ts +1 -0
- package/dist/types/openAIInternal.d.ts +2 -1
- package/dist/types/openAIResult.d.ts +2 -0
- package/dist/types/openAIResult.d.ts.map +1 -1
- package/dist/types/response.d.ts +1 -0
- package/dist/types/responseInternal.d.ts +1 -0
- package/dist/types/submitButton.d.ts +1 -0
- package/dist/types/textInput.d.ts +1 -0
- package/dist/types/validationHandler.d.ts +1 -0
- package/dist/types/webModel/webLLM/webLLMChatModule.d.ts +1 -0
- package/dist/types/webModel/webLLM/webLLMClient.d.ts +1 -0
- package/dist/utils/HTTP/HTTPRequest.d.ts +2 -1
- package/dist/utils/HTTP/customHandler.d.ts +3 -2
- package/dist/utils/HTTP/requestUtils.d.ts +7 -6
- package/dist/utils/HTTP/stream.d.ts +5 -4
- package/dist/utils/HTTP/websocket.d.ts +4 -3
- package/dist/utils/buttons/inputButtons.d.ts +1 -0
- package/dist/utils/decorators/property.d.ts +1 -0
- package/dist/utils/decorators/renderControl.d.ts +1 -0
- package/dist/utils/decorators/typeConverters.d.ts +1 -0
- package/dist/utils/demo/demo.d.ts +2 -1
- package/dist/utils/element/statefulEvents.d.ts +1 -0
- package/dist/utils/element/styleUtils.d.ts +1 -0
- package/dist/utils/events/fireEvents.d.ts +2 -1
- package/dist/utils/files/fileTypeButtonIcons.d.ts +1 -0
- package/dist/utils/legacy/legacy.d.ts +4 -3
- package/dist/utils/webComponent/internalHTML.d.ts +2 -1
- package/dist/utils/webComponent/webComponentStyleUtils.d.ts +1 -0
- package/dist/views/chat/chatView.d.ts +2 -1
- package/dist/views/chat/input/buttonContainers/buttonContainers.d.ts +1 -0
- package/dist/views/chat/input/buttons/buttonCSS.d.ts +2 -1
- package/dist/views/chat/input/buttons/camera/cameraButton.d.ts +5 -4
- package/dist/views/chat/input/buttons/customButtonInnerElements.d.ts +1 -0
- package/dist/views/chat/input/buttons/inputButton.d.ts +2 -2
- package/dist/views/chat/input/buttons/microphone/microphoneButton.d.ts +4 -3
- package/dist/views/chat/input/buttons/microphone/recordAudio.d.ts +3 -2
- package/dist/views/chat/input/buttons/microphone/speechToText/silenceSubmit.d.ts +2 -1
- package/dist/views/chat/input/buttons/microphone/speechToText/speechToText.d.ts +6 -5
- package/dist/views/chat/input/buttons/styleAdjustments/inputButtonPositions.d.ts +6 -5
- package/dist/views/chat/input/buttons/styleAdjustments/inputButtonStyleAdjustments.d.ts +2 -1
- package/dist/views/chat/input/buttons/submit/submitButton.d.ts +10 -9
- package/dist/views/chat/input/buttons/submit/submitButton.d.ts.map +1 -1
- package/dist/views/chat/input/buttons/submit/submitButtonStateStyle.d.ts +2 -1
- package/dist/views/chat/input/buttons/uploadFile/uploadFileButton.d.ts +5 -4
- package/dist/views/chat/input/dropup/dropup.d.ts +6 -5
- package/dist/views/chat/input/dropup/dropupItem.d.ts +3 -2
- package/dist/views/chat/input/dropup/dropupMenu.d.ts +2 -1
- package/dist/views/chat/input/fileAttachments/dragAndDrop/dragAndDrop.d.ts +2 -1
- package/dist/views/chat/input/fileAttachments/fileAttachmentTypes/audioFileAttachmentType.d.ts +3 -2
- package/dist/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentTypeFactory.d.ts +4 -3
- package/dist/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.d.ts +3 -2
- package/dist/views/chat/input/fileAttachments/fileAttachments.d.ts +7 -6
- package/dist/views/chat/input/fileAttachments/modal/cameraModal.d.ts +4 -3
- package/dist/views/chat/input/fileAttachments/modal/modal.d.ts +2 -1
- package/dist/views/chat/input/input.d.ts +6 -5
- package/dist/views/chat/input/textInput/textInput.d.ts +3 -2
- package/dist/views/chat/input/textInput/textInputEvents.d.ts +2 -1
- package/dist/views/chat/input/validation/validationHandler.d.ts +5 -4
- package/dist/views/chat/introPanel/introPanel.d.ts +1 -0
- package/dist/views/chat/messages/avatar.d.ts +1 -0
- package/dist/views/chat/messages/fileMessageUtils.d.ts +4 -3
- package/dist/views/chat/messages/fileMessages.d.ts +2 -1
- package/dist/views/chat/messages/html/htmlDeepChatElements.d.ts +3 -2
- package/dist/views/chat/messages/html/htmlMessages.d.ts +3 -2
- package/dist/views/chat/messages/html/htmlUtils.d.ts +2 -1
- package/dist/views/chat/messages/loadingMessageDotsStyle.d.ts +1 -0
- package/dist/views/chat/messages/messageStyleUtils.d.ts +3 -2
- package/dist/views/chat/messages/messageUtils.d.ts +5 -4
- package/dist/views/chat/messages/messages.d.ts +7 -6
- package/dist/views/chat/messages/messagesBase.d.ts +10 -9
- package/dist/views/chat/messages/name.d.ts +1 -0
- package/dist/views/chat/messages/remarkable/remarkableConfig.d.ts +2 -2
- package/dist/views/chat/messages/setupMessages.d.ts +2 -1
- package/dist/views/chat/messages/stream/messageStream.d.ts +9 -1
- package/dist/views/chat/messages/stream/messageStream.d.ts.map +1 -1
- package/dist/views/chat/messages/textToSpeech/textToSpeech.d.ts +1 -0
- package/dist/views/insertKey/insertKeyView.d.ts +1 -0
- package/dist/views/validateKeyProperty/validateKeyPropertyView.d.ts +1 -0
- package/dist/webModel/webModel.d.ts +5 -4
- package/dist/webModel/webModelIntroMessage.d.ts +1 -0
- package/package.json +1 -1
@@ -1,9 +1,10 @@
|
|
1
|
-
import { StabilityAITextToImageResult } from '../../types/stabilityAIResult';
|
2
|
-
import { MessageContentI } from '../../types/messagesInternal';
|
3
|
-
import { Messages } from '../../views/chat/messages/messages';
|
4
|
-
import { StabilityAIIO } from './stabilityAIIO';
|
5
|
-
import { Response } from '../../types/response';
|
6
1
|
import { DeepChat } from '../../deepChat';
|
2
|
+
import { Response } from '../../types/response';
|
3
|
+
import { StabilityAIIO } from './stabilityAIIO';
|
4
|
+
import { Messages } from '../../views/chat/messages/messages';
|
5
|
+
import { MessageContentI } from '../../types/messagesInternal';
|
6
|
+
import { StabilityAITextToImageResult } from '../../types/stabilityAIResult';
|
7
|
+
|
7
8
|
export declare class StabilityAIImageToImageMaskingIO extends StabilityAIIO {
|
8
9
|
url: string;
|
9
10
|
private readonly _imageWeight;
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import { StabilityAITextToImageResult } from '../../types/stabilityAIResult';
|
2
|
-
import { MessageContentI } from '../../types/messagesInternal';
|
3
|
-
import { Messages } from '../../views/chat/messages/messages';
|
4
|
-
import { StabilityAIIO } from './stabilityAIIO';
|
5
|
-
import { Response } from '../../types/response';
|
6
1
|
import { DeepChat } from '../../deepChat';
|
2
|
+
import { Response } from '../../types/response';
|
3
|
+
import { StabilityAIIO } from './stabilityAIIO';
|
4
|
+
import { Messages } from '../../views/chat/messages/messages';
|
5
|
+
import { MessageContentI } from '../../types/messagesInternal';
|
6
|
+
import { StabilityAITextToImageResult } from '../../types/stabilityAIResult';
|
7
|
+
|
7
8
|
export declare class StabilityAIImageToImageUpscaleIO extends StabilityAIIO {
|
8
9
|
url: string;
|
9
10
|
textInputPlaceholderText: string;
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import { StabilityAITextToImageResult } from '../../types/stabilityAIResult';
|
2
|
-
import { MessageContentI } from '../../types/messagesInternal';
|
3
|
-
import { Messages } from '../../views/chat/messages/messages';
|
4
|
-
import { StabilityAIIO } from './stabilityAIIO';
|
5
|
-
import { Response } from '../../types/response';
|
6
1
|
import { DeepChat } from '../../deepChat';
|
2
|
+
import { Response } from '../../types/response';
|
3
|
+
import { StabilityAIIO } from './stabilityAIIO';
|
4
|
+
import { Messages } from '../../views/chat/messages/messages';
|
5
|
+
import { MessageContentI } from '../../types/messagesInternal';
|
6
|
+
import { StabilityAITextToImageResult } from '../../types/stabilityAIResult';
|
7
|
+
|
7
8
|
export declare class StabilityAITextToImageIO extends StabilityAIIO {
|
8
9
|
url: string;
|
9
10
|
private readonly _imageWeight;
|
@@ -1,13 +1,14 @@
|
|
1
|
-
import { CameraFilesServiceConfig, MicrophoneFilesServiceConfig } from '../../types/fileServiceConfigs';
|
2
|
-
import { MessageContentI } from '../../types/messagesInternal';
|
3
|
-
import { Messages } from '../../views/chat/messages/messages';
|
4
|
-
import { ValidateInput } from '../../types/validateInput';
|
5
|
-
import { Stream as StreamI } from '../../types/stream';
|
6
|
-
import { Demo as DemoT } from '../../types/demo';
|
7
|
-
import { Response } from '../../types/response';
|
8
|
-
import { Connect } from '../../types/connect';
|
9
|
-
import { DeepChat } from '../../deepChat';
|
10
1
|
import { KeyVerificationHandlers, CompletionsHandlers, ServiceFileTypes, RequestContents, StreamHandlers, ServiceIO } from '../serviceIO';
|
2
|
+
import { DeepChat } from '../../deepChat';
|
3
|
+
import { Connect } from '../../types/connect';
|
4
|
+
import { Response } from '../../types/response';
|
5
|
+
import { Demo as DemoT } from '../../types/demo';
|
6
|
+
import { Stream as StreamI } from '../../types/stream';
|
7
|
+
import { ValidateInput } from '../../types/validateInput';
|
8
|
+
import { Messages } from '../../views/chat/messages/messages';
|
9
|
+
import { MessageContentI } from '../../types/messagesInternal';
|
10
|
+
import { CameraFilesServiceConfig, MicrophoneFilesServiceConfig } from '../../types/fileServiceConfigs';
|
11
|
+
|
11
12
|
export declare class BaseServiceIO implements ServiceIO {
|
12
13
|
readonly rawBody: any;
|
13
14
|
deepChat: DeepChat;
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import { KeyVerificationDetails } from '../../types/keyVerificationDetails';
|
2
|
-
import { KeyVerificationHandlers, ServiceFileTypes } from '../serviceIO';
|
3
|
-
import { BuildHeadersFunc } from '../../types/headers';
|
4
|
-
import { BaseServiceIO } from './baseServiceIO';
|
5
|
-
import { APIKey } from '../../types/APIKey';
|
6
1
|
import { DeepChat } from '../../deepChat';
|
2
|
+
import { APIKey } from '../../types/APIKey';
|
3
|
+
import { BaseServiceIO } from './baseServiceIO';
|
4
|
+
import { BuildHeadersFunc } from '../../types/headers';
|
5
|
+
import { KeyVerificationHandlers, ServiceFileTypes } from '../serviceIO';
|
6
|
+
import { KeyVerificationDetails } from '../../types/keyVerificationDetails';
|
7
|
+
|
7
8
|
export declare class DirectServiceIO extends BaseServiceIO {
|
8
9
|
key?: string;
|
9
10
|
insertKeyPlaceholderText: string;
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import { ServiceFileTypes, ServiceIO } from '../serviceIO';
|
2
1
|
import { DeepChat } from '../../deepChat';
|
2
|
+
import { ServiceFileTypes, ServiceIO } from '../serviceIO';
|
3
|
+
|
3
4
|
export declare class SetFileTypes {
|
4
5
|
private static parseConfig;
|
5
6
|
private static processMixedFiles;
|
package/dist/types/avatars.d.ts
CHANGED
package/dist/types/button.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
-
import { OverrideTypes } from './utilityTypes';
|
2
1
|
import { ButtonStyles } from './button';
|
2
|
+
import { OverrideTypes } from './utilityTypes';
|
3
|
+
|
3
4
|
export type ButtonInnerElement = HTMLElement | SVGGraphicsElement;
|
4
5
|
export type ButtonInnerElements<T> = {
|
5
6
|
[P in keyof T]?: ButtonInnerElement;
|
package/dist/types/cohere.d.ts
CHANGED
package/dist/types/connect.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
import { GenericObject } from './object';
|
2
|
-
import { Handler } from './handler';
|
3
1
|
import { Stream } from './stream';
|
2
|
+
import { Handler } from './handler';
|
3
|
+
import { GenericObject } from './object';
|
4
|
+
|
4
5
|
export interface Connect {
|
5
6
|
url?: string;
|
6
7
|
method?: string;
|
package/dist/types/demo.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
import { ErrorMessageOverrides } from './error';
|
2
|
-
import { MessageContent } from './messages';
|
3
1
|
import { Response } from './response';
|
2
|
+
import { MessageContent } from './messages';
|
3
|
+
import { ErrorMessageOverrides } from './error';
|
4
|
+
|
4
5
|
export type DemoErrors = {
|
5
6
|
[key in keyof ErrorMessageOverrides]?: boolean;
|
6
7
|
};
|
@@ -1,11 +1,12 @@
|
|
1
|
-
import { HuggingFace } from './huggingFace';
|
2
|
-
import { StabilityAI } from './stabilityAI';
|
3
|
-
import { AssemblyAI } from './assemblyAI';
|
4
|
-
import { Mistral } from './mistral';
|
5
|
-
import { APIKey } from './APIKey';
|
6
|
-
import { Cohere } from './cohere';
|
7
|
-
import { OpenAI } from './openAI';
|
8
1
|
import { Azure } from './azure';
|
2
|
+
import { OpenAI } from './openAI';
|
3
|
+
import { Cohere } from './cohere';
|
4
|
+
import { APIKey } from './APIKey';
|
5
|
+
import { Mistral } from './mistral';
|
6
|
+
import { AssemblyAI } from './assemblyAI';
|
7
|
+
import { StabilityAI } from './stabilityAI';
|
8
|
+
import { HuggingFace } from './huggingFace';
|
9
|
+
|
9
10
|
export interface DirectConnection {
|
10
11
|
openAI?: OpenAI & APIKey;
|
11
12
|
huggingFace?: HuggingFace & APIKey;
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import { AudioRecordingFiles, MicrophoneStyles } from './microphone';
|
2
|
-
import { FileAttachments } from './fileAttachments';
|
3
|
-
import { CameraFiles } from './camera';
|
4
|
-
import { CustomStyle } from './styles';
|
5
|
-
import { Connect } from './connect';
|
6
1
|
import { Button } from './button';
|
2
|
+
import { Connect } from './connect';
|
3
|
+
import { CustomStyle } from './styles';
|
4
|
+
import { CameraFiles } from './camera';
|
5
|
+
import { FileAttachments } from './fileAttachments';
|
6
|
+
import { AudioRecordingFiles, MicrophoneStyles } from './microphone';
|
7
|
+
|
7
8
|
export type FilesServiceConfig = {
|
8
9
|
connect?: Connect;
|
9
10
|
files?: FileAttachments;
|
package/dist/types/handler.d.ts
CHANGED
package/dist/types/headers.d.ts
CHANGED
package/dist/types/html.d.ts
CHANGED
package/dist/types/messages.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
import { InterfacesUnion } from './utilityTypes';
|
2
|
-
import { MessageFile } from './messageFile';
|
3
1
|
import { CustomStyle } from './styles';
|
2
|
+
import { MessageFile } from './messageFile';
|
3
|
+
import { InterfacesUnion } from './utilityTypes';
|
4
|
+
|
4
5
|
export interface MessageElementsStyles {
|
5
6
|
outerContainer?: CustomStyle;
|
6
7
|
innerContainer?: CustomStyle;
|
@@ -1,6 +1,7 @@
|
|
1
|
-
import { MessageFileType } from './messageFile';
|
2
|
-
import { PropsRequired } from './utilityTypes';
|
3
1
|
import { MessageContent } from './messages';
|
2
|
+
import { PropsRequired } from './utilityTypes';
|
3
|
+
import { MessageFileType } from './messageFile';
|
4
|
+
|
4
5
|
export type MessageContentI = PropsRequired<MessageContent, 'role'>;
|
5
6
|
export type UserContentI = {
|
6
7
|
text?: string;
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import { AzureOptions, Commands, TextColor, Translations, WebSpeechOptions } from 'speech-to-element/dist/types/options';
|
2
1
|
import { ButtonStyles, ButtonPosition } from './button';
|
2
|
+
import { AzureOptions, Commands, TextColor, Translations, WebSpeechOptions } from 'speech-to-element/dist/types/options';
|
3
|
+
|
3
4
|
export interface MicrophoneStyles {
|
4
5
|
default?: ButtonStyles;
|
5
6
|
active?: ButtonStyles;
|
package/dist/types/names.d.ts
CHANGED
package/dist/types/openAI.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { InterfacesUnion } from './utilityTypes';
|
2
|
+
|
2
3
|
export type OpenAIAssistantInitReqResult = OpenAIRunResult & {
|
3
4
|
id: string;
|
4
5
|
error?: {
|
@@ -12,6 +13,7 @@ export type OpenAIAssistantInitReqResult = OpenAIRunResult & {
|
|
12
13
|
};
|
13
14
|
};
|
14
15
|
file_ids?: string[];
|
16
|
+
content?: OpenAIAssistantContent[];
|
15
17
|
};
|
16
18
|
export interface OpenAINewAssistantResult {
|
17
19
|
id: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"openAIResult.d.ts","sourceRoot":"","sources":["../../src/types/openAIResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAM/C,MAAM,MAAM,4BAA4B,GAAG,eAAe,GAAG;IAC3D,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAC,CAAC;IAExC,KAAK,CAAC,EAAE;QACN,OAAO,CAAC,EAAE,sBAAsB,EAAE,CAAC;QACnC,YAAY,CAAC,EAAE;YACb,UAAU,CAAC,EAAE,SAAS,CAAC;SACxB,CAAC;KACH,CAAC;IAEF,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;
|
1
|
+
{"version":3,"file":"openAIResult.d.ts","sourceRoot":"","sources":["../../src/types/openAIResult.ts"],"names":[],"mappings":"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"}
|
package/dist/types/response.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
-
import { Messages } from '../../views/chat/messages/messages';
|
2
1
|
import { ServiceIO } from '../../services/serviceIO';
|
2
|
+
import { Messages } from '../../views/chat/messages/messages';
|
3
|
+
|
3
4
|
export type HandleVerificationResult = (result: object, key: string, onSuccess: (key: string) => void, onFail: (message: string) => void) => void;
|
4
5
|
export declare class HTTPRequest {
|
5
6
|
static request(io: ServiceIO, body: object, messages: Messages, stringifyBody?: boolean): Promise<void>;
|
@@ -1,6 +1,7 @@
|
|
1
|
-
import { Messages } from '../../views/chat/messages/messages';
|
2
|
-
import { RequestDetails } from '../../types/interceptors';
|
3
1
|
import { ServiceIO } from '../../services/serviceIO';
|
2
|
+
import { RequestDetails } from '../../types/interceptors';
|
3
|
+
import { Messages } from '../../views/chat/messages/messages';
|
4
|
+
|
4
5
|
export interface IWebsocketHandler {
|
5
6
|
isOpen: boolean;
|
6
7
|
newUserMessage: {
|
@@ -1,10 +1,11 @@
|
|
1
|
-
import { Messages } from '../../views/chat/messages/messages';
|
2
|
-
import { Response as ResponseI } from '../../types/response';
|
3
|
-
import { RequestDetails } from '../../types/interceptors';
|
4
|
-
import { ServiceIO } from '../../services/serviceIO';
|
5
|
-
import { GenericObject } from '../../types/object';
|
6
|
-
import { Connect } from '../../types/connect';
|
7
1
|
import { DeepChat } from '../../deepChat';
|
2
|
+
import { Connect } from '../../types/connect';
|
3
|
+
import { GenericObject } from '../../types/object';
|
4
|
+
import { ServiceIO } from '../../services/serviceIO';
|
5
|
+
import { RequestDetails } from '../../types/interceptors';
|
6
|
+
import { Response as ResponseI } from '../../types/response';
|
7
|
+
import { Messages } from '../../views/chat/messages/messages';
|
8
|
+
|
8
9
|
export type FetchFunc = (body: any) => Promise<Response>;
|
9
10
|
export type InterceptorResult = RequestDetails & {
|
10
11
|
error?: string;
|
@@ -1,8 +1,9 @@
|
|
1
|
-
import { MessageStream } from '../../views/chat/messages/stream/messageStream';
|
2
|
-
import { ServiceIO, StreamHandlers } from '../../services/serviceIO';
|
3
|
-
import { Messages } from '../../views/chat/messages/messages';
|
4
|
-
import { Response as ResponseI } from '../../types/response';
|
5
1
|
import { Stream as StreamI } from '../../types/stream';
|
2
|
+
import { Response as ResponseI } from '../../types/response';
|
3
|
+
import { Messages } from '../../views/chat/messages/messages';
|
4
|
+
import { ServiceIO, StreamHandlers } from '../../services/serviceIO';
|
5
|
+
import { MessageStream } from '../../views/chat/messages/stream/messageStream';
|
6
|
+
|
6
7
|
type UpsertFunc = (response?: ResponseI) => MessageStream | void;
|
7
8
|
export declare class Stream {
|
8
9
|
static request(io: ServiceIO, body: object, messages: Messages, stringifyBody?: boolean, canBeEmpty?: boolean): Promise<void | MessageStream>;
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import { MessageStream } from '../../views/chat/messages/stream/messageStream';
|
2
|
-
import { Messages } from '../../views/chat/messages/messages';
|
3
|
-
import { ServiceIO } from '../../services/serviceIO';
|
4
1
|
import { Response } from '../../types/response';
|
2
|
+
import { ServiceIO } from '../../services/serviceIO';
|
3
|
+
import { Messages } from '../../views/chat/messages/messages';
|
4
|
+
import { MessageStream } from '../../views/chat/messages/stream/messageStream';
|
5
|
+
|
5
6
|
export type RoleToStream = {
|
6
7
|
[role: string]: MessageStream;
|
7
8
|
};
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import { ServiceIO, StreamHandlers } from '../../services/serviceIO';
|
2
1
|
import { Messages } from '../../views/chat/messages/messages';
|
2
|
+
import { ServiceIO, StreamHandlers } from '../../services/serviceIO';
|
3
|
+
|
3
4
|
export declare class Demo {
|
4
5
|
static readonly URL = "deep-chat-demo";
|
5
6
|
private static generateResponse;
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import { MessageContentI } from '../../types/messagesInternal';
|
2
1
|
import { DeepChat } from '../../deepChat';
|
2
|
+
import { MessageContentI } from '../../types/messagesInternal';
|
3
|
+
|
3
4
|
export declare class FireEvents {
|
4
5
|
static onMessage(deepChat: DeepChat, message: MessageContentI, isHistory: boolean): void;
|
5
6
|
static onClearMessages(deepChat: DeepChat): void;
|
@@ -1,6 +1,7 @@
|
|
1
|
-
import { MessageContent } from '../../types/messages';
|
2
|
-
import { ValidateInput } from '../../types/validateInput';
|
3
1
|
import { DeepChat } from '../../deepChat';
|
2
|
+
import { ValidateInput } from '../../types/validateInput';
|
3
|
+
import { MessageContent } from '../../types/messages';
|
4
|
+
|
4
5
|
export declare class Legacy {
|
5
6
|
static checkForContainerStyles(deepChat: DeepChat, containerRef: HTMLElement): void;
|
6
7
|
static handleResponseProperty(result: any | Response): any;
|
@@ -12,7 +13,7 @@ export declare class Legacy {
|
|
12
13
|
};
|
13
14
|
static flagHTMLUpdateClass(bubbleElement: HTMLElement): void;
|
14
15
|
static processConnect(deepChat: DeepChat): void;
|
15
|
-
static checkForStream(deepChat: DeepChat): true | import(
|
16
|
+
static checkForStream(deepChat: DeepChat): true | import('../../types/stream').StreamSimulation | undefined;
|
16
17
|
static fireOnNewMessage(deepChat: DeepChat, updateBody: {
|
17
18
|
message: MessageContent;
|
18
19
|
isHistory: boolean;
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import { AttributeTypeConverter } from '../../types/typeConverters';
|
2
1
|
import { GenericObject } from '../../types/object';
|
2
|
+
import { AttributeTypeConverter } from '../../types/typeConverters';
|
3
|
+
|
3
4
|
export declare class InternalHTML extends HTMLElement {
|
4
5
|
_waitingToRender_: boolean;
|
5
6
|
_propUpdated_: boolean;
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import { ServiceIO } from '../../services/serviceIO';
|
2
1
|
import { DeepChat } from '../../deepChat';
|
2
|
+
import { ServiceIO } from '../../services/serviceIO';
|
3
|
+
|
3
4
|
export declare class ChatView {
|
4
5
|
private static createElements;
|
5
6
|
static render(deepChat: DeepChat, containerRef: HTMLElement, serviceIO: ServiceIO, panel?: HTMLElement): void;
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import { StatefulStyles } from '../../../../types/styles';
|
2
1
|
import { ButtonStyles } from '../../../../types/button';
|
2
|
+
import { StatefulStyles } from '../../../../types/styles';
|
3
|
+
|
3
4
|
export declare class ButtonCSS {
|
4
5
|
static unsetAllCSS(button: HTMLElement, styles: ButtonStyles): void;
|
5
6
|
static unsetActionCSS(button: HTMLElement, styles: ButtonStyles): void;
|