From 4d20fbf9f4c59aaf3ff435e9e1a22dd6a0ac57ef Mon Sep 17 00:00:00 2001 From: Ovidijus Parsiunas Date: Sat, 10 Feb 2024 19:13:52 +0000 Subject: [PATCH] 1.4.11 - updates to OpenAI Assistants, streaming functionality and more --- component/custom-elements.json | 20301 ++++++++-------- component/package-lock.json | 4 +- component/package.json | 2 +- example-servers/nextjs/package-lock.json | 30 +- example-servers/nextjs/package.json | 2 +- example-servers/sveltekit/package-lock.json | 14 +- example-servers/sveltekit/package.json | 2 +- other-packages/react/package-lock.json | 18 +- other-packages/react/package.json | 4 +- website/docs/docs/connect.mdx | 5 +- website/docs/docs/directConnection/OpenAI.mdx | 4 + website/docs/docs/installation.mdx | 2 +- website/docs/docs/messages/HTML.mdx | 4 +- website/package-lock.json | 30 +- website/package.json | 2 +- .../playground/serviceModal/serviceModal.js | 13 +- 16 files changed, 10394 insertions(+), 10043 deletions(-) diff --git a/component/custom-elements.json b/component/custom-elements.json index 734633416..36acac71d 100644 --- a/component/custom-elements.json +++ b/component/custom-elements.json @@ -508,54 +508,6 @@ } ] }, - { - "kind": "javascript-module", - "path": "src/services/serviceIO.ts", - "declarations": [], - "exports": [] - }, - { - "kind": "javascript-module", - "path": "src/services/serviceIOFactory.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "ServiceIOFactory", - "members": [ - { - "kind": "method", - "name": "create", - "privacy": "public", - "static": true, - "return": { - "type": { - "text": "ServiceIO" - } - }, - "parameters": [ - { - "name": "deepChat", - "type": { - "text": "DeepChat" - } - } - ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "ServiceIOFactory", - "declaration": { - "name": "ServiceIOFactory", - "module": "src/services/serviceIOFactory.ts" - } - } - ] - }, { "kind": "javascript-module", "path": "src/icons/audioIcon.ts", @@ -913,6 +865,54 @@ } ] }, + { + "kind": "javascript-module", + "path": "src/services/serviceIO.ts", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "src/services/serviceIOFactory.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "ServiceIOFactory", + "members": [ + { + "kind": "method", + "name": "create", + "privacy": "public", + "static": true, + "return": { + "type": { + "text": "ServiceIO" + } + }, + "parameters": [ + { + "name": "deepChat", + "type": { + "text": "DeepChat" + } + } + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "ServiceIOFactory", + "declaration": { + "name": "ServiceIOFactory", + "module": "src/services/serviceIOFactory.ts" + } + } + ] + }, { "kind": "javascript-module", "path": "src/webModel/webModel.ts", @@ -1822,20 +1822,6 @@ } ] }, - { - "kind": "javascript-module", - "path": "src/webModel/webModelConfig2.ts", - "declarations": [], - "exports": [ - { - "kind": "js", - "name": "default", - "declaration": { - "module": "src/webModel/webModelConfig2.ts" - } - } - ] - }, { "kind": "javascript-module", "path": "src/webModel/webModelIntroMessage.ts", @@ -2339,302 +2325,246 @@ }, { "kind": "javascript-module", - "path": "src/services/assemblyAI/assemblyAIAudioIO.ts", + "path": "src/views/chat/chatView.ts", "declarations": [ { "kind": "class", "description": "", - "name": "AssemblyAIAudioIO", + "name": "ChatView", "members": [ - { - "kind": "field", - "name": "insertKeyPlaceholderText", - "type": { - "text": "string" - }, - "default": "'AssemblyAI API Key'", - "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" - } - }, - { - "kind": "field", - "name": "keyHelpUrl", - "type": { - "text": "string" - }, - "default": "'https://www.assemblyai.com/app/account'", - "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" - } - }, - { - "kind": "field", - "name": "introPanelMarkUp", - "default": "`\n
AssemblyAI Audio
\n

Upload an audio file to transcribe it into text.\n

\n Click here for more info.\n

`" - }, - { - "kind": "field", - "name": "url", - "type": { - "text": "string" - }, - "default": "'https://api.assemblyai.com/v2/upload'" - }, - { - "kind": "field", - "name": "isTextInputDisabled", - "type": { - "text": "boolean" - }, - "default": "true" - }, - { - "kind": "field", - "name": "textInputPlaceholderText", - "type": { - "text": "string" - }, - "default": "'Upload an audio file'" - }, - { - "kind": "field", - "name": "permittedErrorPrefixes", - "type": { - "text": "array" - }, - "default": "['Authentication', 'Invalid']" - }, { "kind": "method", - "name": "canFileSendMessage", + "name": "createElements", "privacy": "private", "static": true, "parameters": [ { - "name": "_", - "optional": true, + "name": "deepChat", "type": { - "text": "string" + "text": "DeepChat" } }, { - "name": "files", + "name": "serviceIO", + "type": { + "text": "ServiceIO" + } + }, + { + "name": "panel", "optional": true, "type": { - "text": "File[]" + "text": "HTMLElement" } } ] }, { "kind": "method", - "name": "callServiceAPI", + "name": "render", + "privacy": "public", + "static": true, "parameters": [ { - "name": "messages", + "name": "deepChat", "type": { - "text": "Messages" + "text": "DeepChat" } }, { - "name": "_", + "name": "containerRef", "type": { - "text": "MessageContentI[]" + "text": "HTMLElement" } }, { - "name": "files", - "optional": true, + "name": "serviceIO", "type": { - "text": "File[]" + "text": "ServiceIO" } - } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, - { - "kind": "method", - "name": "extractResultData", - "return": { - "type": { - "text": "Promise" - } - }, - "parameters": [ + }, { - "name": "result", + "name": "panel", + "optional": true, "type": { - "text": "AssemblyAIResult" + "text": "HTMLElement" } } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "ChatView", + "declaration": { + "name": "ChatView", + "module": "src/views/chat/chatView.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/error/errorView.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "ErrorView", + "members": [ { - "kind": "field", - "name": "canSendMessage", - "privacy": "private", + "kind": "method", + "name": "render", + "privacy": "public", "static": true, "parameters": [ { - "name": "text", - "optional": true, - "type": { - "text": "string" - } - }, - { - "name": "files", - "optional": true, + "name": "containerElement", "type": { - "text": "File[]" + "text": "HTMLElement" } }, { - "name": "isProgrammatic", - "optional": true, + "name": "text", "type": { - "text": "boolean" + "text": "string" } } - ], - "type": { - "text": "ValidateInput" - }, - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, - { - "kind": "field", - "name": "key", - "type": { - "text": "string | undefined" - }, - "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" - } - }, + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "ErrorView", + "declaration": { + "name": "ErrorView", + "module": "src/views/error/errorView.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/insertKey/insertKeyView.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "InsertKeyView", + "members": [ { - "kind": "field", - "name": "sessionId", - "type": { - "text": "string | undefined" - }, - "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" - } + "kind": "method", + "name": "createCautionText", + "privacy": "private", + "static": true }, { - "kind": "field", - "name": "keyVerificationDetails", - "type": { - "text": "KeyVerificationDetails" - }, + "kind": "method", + "name": "createHelpLink", "privacy": "private", - "default": "keyVerificationDetails", - "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" - } + "static": true, + "parameters": [ + { + "name": "keyHelpUrl", + "type": { + "text": "string" + } + } + ] }, { - "kind": "field", - "name": "buildHeadersFunc", - "type": { - "text": "BuildHeadersFunc" - }, + "kind": "method", + "name": "createFailText", "privacy": "private", - "default": "buildHeadersFunc", - "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" - } + "static": true }, { "kind": "method", - "name": "setApiKeyProperties", + "name": "createHelpTextContainer", "privacy": "private", + "static": true, "parameters": [ { - "name": "apiKey", + "name": "keyHelpUrl", + "optional": true, "type": { - "text": "APIKey" + "text": "string" } + }, + { + "name": "displayCaution", + "default": "true" } - ], - "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" - } + ] }, { "kind": "method", - "name": "buildRequestSettings", + "name": "onFail", "privacy": "private", + "static": true, "parameters": [ { - "name": "key", + "name": "inputEl", "type": { - "text": "string" + "text": "HTMLInputElement" } }, { - "name": "requestSettings", - "optional": true, + "name": "startEl", "type": { - "text": "Request" + "text": "HTMLElement" + } + }, + { + "name": "failTextEl", + "type": { + "text": "HTMLElement" + } + }, + { + "name": "message", + "type": { + "text": "string" } } - ], - "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" - } + ] }, { "kind": "method", - "name": "keyAuthenticated", + "name": "onLoad", "privacy": "private", + "static": true, "parameters": [ { - "name": "onSuccess", + "name": "inputEl", "type": { - "text": "() => void" + "text": "HTMLInputElement" } }, { - "name": "key", + "name": "startEl", "type": { - "text": "string" + "text": "HTMLElement" } } - ], - "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" - } + ] }, { "kind": "method", "name": "verifyKey", + "privacy": "private", + "static": true, "parameters": [ { - "name": "key", + "name": "inputElement", "type": { - "text": "string" + "text": "HTMLInputElement" } }, { @@ -2642,345 +2572,344 @@ "type": { "text": "KeyVerificationHandlers" } + }, + { + "name": "serviceIO", + "type": { + "text": "ServiceIO" + } } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } + ] }, { "kind": "method", - "name": "isDirectConnection", - "privacy": "public", - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, - { - "kind": "field", - "name": "requestSettings", - "type": { - "text": "Request" - }, - "default": "{}", - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } + "name": "addVerificationEvents", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "inputEl", + "type": { + "text": "HTMLInputElement" + } + }, + { + "name": "startEl", + "type": { + "text": "HTMLElement" + } + }, + { + "name": "failTextEl", + "type": { + "text": "HTMLElement" + } + }, + { + "name": "changeToChat", + "type": { + "text": "() => void" + } + }, + { + "name": "serviceIO", + "type": { + "text": "ServiceIO" + } + } + ] }, { - "kind": "field", - "name": "rawBody", - "type": { - "text": "any" - }, - "default": "{}", - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, - { - "kind": "field", - "name": "deepChat", - "type": { - "text": "DeepChat" - }, - "default": "deepChat", - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, - { - "kind": "field", - "name": "validateConfigKey", - "type": { - "text": "boolean" - }, - "default": "false", - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, - { - "kind": "field", - "name": "fileTypes", - "type": { - "text": "ServiceFileTypes" - }, - "default": "{}", - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, - { - "kind": "field", - "name": "camera", - "type": { - "text": "CameraFilesServiceConfig | undefined" - }, - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, - { - "kind": "field", - "name": "recordAudio", - "type": { - "text": "MicrophoneFilesServiceConfig | undefined" - }, - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, - { - "kind": "field", - "name": "totalMessagesMaxCharLength", - "type": { - "text": "number | undefined" - }, - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, - { - "kind": "field", - "name": "maxMessages", - "type": { - "text": "number | undefined" - }, - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, - { - "kind": "field", - "name": "demo", - "type": { - "text": "DemoT | undefined" - }, - "default": "demo", - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, - { - "kind": "field", - "name": "completionsHandlers", - "type": { - "text": "CompletionsHandlers" - }, - "default": "{}", - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } + "kind": "method", + "name": "createStartButton", + "privacy": "private", + "static": true }, { - "kind": "field", - "name": "streamHandlers", - "type": { - "text": "StreamHandlers" - }, - "default": "{}", - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } + "kind": "method", + "name": "onInputFocus", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "event", + "type": { + "text": "FocusEvent" + } + } + ] }, { "kind": "method", - "name": "createCustomFormDataBody", + "name": "createInput", "privacy": "private", "static": true, "parameters": [ { - "name": "body", + "name": "placeholderText", + "optional": true, "type": { - "text": "any" + "text": "string" } - }, + } + ] + }, + { + "kind": "method", + "name": "createContents", + "privacy": "private", + "static": true, + "parameters": [ { - "name": "messages", + "name": "changeToChat", "type": { - "text": "MessageContentI[]" + "text": "() => void" } }, { - "name": "files", + "name": "serviceIO", "type": { - "text": "File[]" + "text": "ServiceIO" } } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } + ] }, { "kind": "method", - "name": "getServiceIOByType", + "name": "createElements", "privacy": "private", + "static": true, "parameters": [ { - "name": "file", + "name": "changeToChat", "type": { - "text": "File" + "text": "() => void" + } + }, + { + "name": "serviceIO", + "type": { + "text": "ServiceIO" } } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } + ] }, { "kind": "method", - "name": "request", - "privacy": "private", + "name": "render", + "privacy": "public", + "static": true, "parameters": [ { - "name": "body", + "name": "containerRef", "type": { - "text": "any" + "text": "HTMLElement" } }, { - "name": "messages", + "name": "changeToChat", "type": { - "text": "Messages" + "text": "() => void" } }, { - "name": "stringifyBody", - "default": "true" + "name": "serviceIO", + "type": { + "text": "ServiceIO" + } } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "InsertKeyView", + "declaration": { + "name": "InsertKeyView", + "module": "src/views/insertKey/insertKeyView.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/insertKey/visibilityIcon.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "VisibilityIcon", + "members": [ + { + "kind": "field", + "name": "VISIBLE_ICON_ID", + "type": { + "text": "string" + }, + "privacy": "private", + "static": true, + "default": "'visible-icon'" }, { "kind": "method", - "name": "callAPIWithText", + "name": "changeVisibility", "privacy": "private", + "static": true, "parameters": [ { - "name": "messages", + "name": "inputElement", "type": { - "text": "Messages" + "text": "HTMLInputElement" } }, { - "name": "pMessages", + "name": "visibleIcon", "type": { - "text": "MessageContentI[]" + "text": "SVGGraphicsElement" + } + }, + { + "name": "notVisibleIcon", + "type": { + "text": "SVGGraphicsElement" + } + }, + { + "name": "event", + "type": { + "text": "MouseEvent" } } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } + ] }, { "kind": "method", - "name": "callApiWithFiles", + "name": "createIconElement", "privacy": "private", + "static": true, "parameters": [ { - "name": "messages", - "type": { - "text": "Messages" - } - }, - { - "name": "pMessages", + "name": "iconString", "type": { - "text": "MessageContentI[]" + "text": "string" } }, { - "name": "files", + "name": "id", "type": { - "text": "File[]" + "text": "string" } } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } + ] }, { "kind": "method", - "name": "callAPI", + "name": "create", + "privacy": "public", + "static": true, "parameters": [ { - "name": "requestContents", + "name": "inputElement", "type": { - "text": "RequestContents" + "text": "HTMLInputElement" } - }, + } + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "VisibilityIcon", + "declaration": { + "name": "VisibilityIcon", + "module": "src/views/insertKey/visibilityIcon.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/validateKeyProperty/validateKeyPropertyView.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "ValidateKeyPropertyView", + "members": [ + { + "kind": "method", + "name": "onLoad", + "privacy": "private", + "static": true, + "parameters": [ { - "name": "messages", + "name": "startElement", "type": { - "text": "Messages" + "text": "HTMLElement" } } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } + ] }, { "kind": "method", - "name": "isWebModel", + "name": "createElements", + "privacy": "private", + "static": true + }, + { + "kind": "method", + "name": "render", "privacy": "public", - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } + "static": true, + "parameters": [ + { + "name": "containerRef", + "type": { + "text": "HTMLElement" + } + }, + { + "name": "changeToChat", + "type": { + "text": "() => void" + } + }, + { + "name": "serviceIO", + "type": { + "text": "ServiceIO" + } + } + ] } - ], - "superclass": { - "name": "DirectServiceIO", - "module": "/src/services/utils/directServiceIO" - } + ] } ], "exports": [ { "kind": "js", - "name": "AssemblyAIAudioIO", + "name": "ValidateKeyPropertyView", "declaration": { - "name": "AssemblyAIAudioIO", - "module": "src/services/assemblyAI/assemblyAIAudioIO.ts" + "name": "ValidateKeyPropertyView", + "module": "src/views/validateKeyProperty/validateKeyPropertyView.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/azure/azureLanguageIO.ts", + "path": "src/services/assemblyAI/assemblyAIAudioIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "AzureLanguageIO", + "name": "AssemblyAIAudioIO", "members": [ { "kind": "field", @@ -2988,7 +2917,7 @@ "type": { "text": "string" }, - "default": "'Azure Language Subscription Key'", + "default": "'AssemblyAI API Key'", "inheritedFrom": { "name": "DirectServiceIO", "module": "src/services/utils/directServiceIO.ts" @@ -3000,7 +2929,7 @@ "type": { "text": "string" }, - "default": "'https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal'", + "default": "'https://www.assemblyai.com/app/account'", "inheritedFrom": { "name": "DirectServiceIO", "module": "src/services/utils/directServiceIO.ts" @@ -3008,127 +2937,264 @@ }, { "kind": "field", - "name": "permittedErrorPrefixes", - "type": { - "text": "array" - }, - "default": "['Access']" + "name": "introPanelMarkUp", + "default": "`\n
AssemblyAI Audio
\n

Upload an audio file to transcribe it into text.\n

\n Click here for more info.\n

`" }, { "kind": "field", - "name": "key", + "name": "url", "type": { - "text": "string | undefined" + "text": "string" }, - "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" - } + "default": "'https://api.assemblyai.com/v2/upload'" }, { "kind": "field", - "name": "sessionId", + "name": "isTextInputDisabled", "type": { - "text": "string | undefined" + "text": "boolean" }, - "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" - } + "default": "true" }, { "kind": "field", - "name": "keyVerificationDetails", + "name": "textInputPlaceholderText", "type": { - "text": "KeyVerificationDetails" + "text": "string" }, - "privacy": "private", - "default": "keyVerificationDetails", - "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" - } + "default": "'Upload an audio file'" }, { "kind": "field", - "name": "buildHeadersFunc", + "name": "permittedErrorPrefixes", "type": { - "text": "BuildHeadersFunc" + "text": "array" }, - "privacy": "private", - "default": "buildHeadersFunc", - "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" - } - }, - { - "kind": "method", - "name": "setApiKeyProperties", - "privacy": "private", - "parameters": [ - { - "name": "apiKey", - "type": { - "text": "APIKey" - } - } - ], - "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" - } + "default": "['Authentication', 'Invalid']" }, { "kind": "method", - "name": "buildRequestSettings", + "name": "canFileSendMessage", "privacy": "private", + "static": true, "parameters": [ { - "name": "key", + "name": "_", + "optional": true, "type": { "text": "string" } }, { - "name": "requestSettings", + "name": "files", "optional": true, "type": { - "text": "Request" + "text": "File[]" } } - ], - "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" - } + ] }, { "kind": "method", - "name": "keyAuthenticated", - "privacy": "private", + "name": "callServiceAPI", "parameters": [ { - "name": "onSuccess", + "name": "messages", "type": { - "text": "() => void" + "text": "Messages" } }, { - "name": "key", + "name": "_", "type": { - "text": "string" + "text": "MessageContentI[]" + } + }, + { + "name": "files", + "optional": true, + "type": { + "text": "File[]" } } ], "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" } }, { "kind": "method", - "name": "verifyKey", + "name": "extractResultData", + "return": { + "type": { + "text": "Promise" + } + }, + "parameters": [ + { + "name": "result", + "type": { + "text": "AssemblyAIResult" + } + } + ], + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, + { + "kind": "field", + "name": "canSendMessage", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "text", + "optional": true, + "type": { + "text": "string" + } + }, + { + "name": "files", + "optional": true, + "type": { + "text": "File[]" + } + }, + { + "name": "isProgrammatic", + "optional": true, + "type": { + "text": "boolean" + } + } + ], + "type": { + "text": "ValidateInput" + }, + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, + { + "kind": "field", + "name": "key", + "type": { + "text": "string | undefined" + }, + "inheritedFrom": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" + } + }, + { + "kind": "field", + "name": "sessionId", + "type": { + "text": "string | undefined" + }, + "inheritedFrom": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" + } + }, + { + "kind": "field", + "name": "keyVerificationDetails", + "type": { + "text": "KeyVerificationDetails" + }, + "privacy": "private", + "default": "keyVerificationDetails", + "inheritedFrom": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" + } + }, + { + "kind": "field", + "name": "buildHeadersFunc", + "type": { + "text": "BuildHeadersFunc" + }, + "privacy": "private", + "default": "buildHeadersFunc", + "inheritedFrom": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" + } + }, + { + "kind": "method", + "name": "setApiKeyProperties", + "privacy": "private", + "parameters": [ + { + "name": "apiKey", + "type": { + "text": "APIKey" + } + } + ], + "inheritedFrom": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" + } + }, + { + "kind": "method", + "name": "buildRequestSettings", + "privacy": "private", + "parameters": [ + { + "name": "key", + "type": { + "text": "string" + } + }, + { + "name": "requestSettings", + "optional": true, + "type": { + "text": "Request" + } + } + ], + "inheritedFrom": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" + } + }, + { + "kind": "method", + "name": "keyAuthenticated", + "privacy": "private", + "parameters": [ + { + "name": "onSuccess", + "type": { + "text": "() => void" + } + }, + { + "name": "key", + "type": { + "text": "string" + } + } + ], + "inheritedFrom": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" + } + }, + { + "kind": "method", + "name": "verifyKey", "parameters": [ { "name": "key", @@ -3205,42 +3271,6 @@ "module": "src/services/utils/baseServiceIO.ts" } }, - { - "kind": "field", - "name": "canSendMessage", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "text", - "optional": true, - "type": { - "text": "string" - } - }, - { - "name": "files", - "optional": true, - "type": { - "text": "File[]" - } - }, - { - "name": "isProgrammatic", - "optional": true, - "type": { - "text": "boolean" - } - } - ], - "type": { - "text": "ValidateInput" - }, - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, { "kind": "field", "name": "fileTypes", @@ -3459,35 +3489,6 @@ "module": "src/services/utils/baseServiceIO.ts" } }, - { - "kind": "method", - "name": "callServiceAPI", - "parameters": [ - { - "name": "messages", - "type": { - "text": "Messages" - } - }, - { - "name": "pMessages", - "type": { - "text": "MessageContentI[]" - } - }, - { - "name": "files", - "optional": true, - "type": { - "text": "File[]" - } - } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, { "kind": "method", "name": "callAPI", @@ -3510,27 +3511,6 @@ "module": "src/services/utils/baseServiceIO.ts" } }, - { - "kind": "method", - "name": "extractResultData", - "return": { - "type": { - "text": "Promise" - } - }, - "parameters": [ - { - "name": "result", - "type": { - "text": "any | Response" - } - } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, { "kind": "method", "name": "isWebModel", @@ -3550,22 +3530,22 @@ "exports": [ { "kind": "js", - "name": "AzureLanguageIO", + "name": "AssemblyAIAudioIO", "declaration": { - "name": "AzureLanguageIO", - "module": "src/services/azure/azureLanguageIO.ts" + "name": "AssemblyAIAudioIO", + "module": "src/services/assemblyAI/assemblyAIAudioIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/azure/azureSpeechIO.ts", + "path": "src/services/azure/azureLanguageIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "AzureSpeechIO", + "name": "AzureLanguageIO", "members": [ { "kind": "field", @@ -3573,7 +3553,7 @@ "type": { "text": "string" }, - "default": "'Azure Speech Subscription Key'", + "default": "'Azure Language Subscription Key'", "inheritedFrom": { "name": "DirectServiceIO", "module": "src/services/utils/directServiceIO.ts" @@ -3591,6 +3571,14 @@ "module": "src/services/utils/directServiceIO.ts" } }, + { + "kind": "field", + "name": "permittedErrorPrefixes", + "type": { + "text": "array" + }, + "default": "['Access']" + }, { "kind": "field", "name": "key", @@ -4127,182 +4115,23 @@ "exports": [ { "kind": "js", - "name": "AzureSpeechIO", + "name": "AzureLanguageIO", "declaration": { - "name": "AzureSpeechIO", - "module": "src/services/azure/azureSpeechIO.ts" + "name": "AzureLanguageIO", + "module": "src/services/azure/azureLanguageIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/azure/azureSpeechToTextIO.ts", + "path": "src/services/azure/azureSpeechIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "AzureSpeechToTextIO", + "name": "AzureSpeechIO", "members": [ - { - "kind": "field", - "name": "HELP_LINK", - "type": { - "text": "string" - }, - "privacy": "private", - "static": true, - "default": "'https://learn.microsoft.com/en-GB/azure/cognitive-services/speech-service/get-started-text-to-speech?tabs=windows%2Cterminal&pivots=programming-language-rest'" - }, - { - "kind": "field", - "name": "introPanelMarkUp", - "default": "`\n
Azure Speech To Text
\n

Upload a .wav or .ogg audio file to transcribe it into text.\n

\n Click here for more info.\n

`" - }, - { - "kind": "field", - "name": "url", - "type": { - "text": "string" - }, - "default": "`https://${config.region}.stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/v1?language=${lang}&format=detailed`" - }, - { - "kind": "field", - "name": "isTextInputDisabled", - "type": { - "text": "boolean" - }, - "default": "true" - }, - { - "kind": "field", - "name": "textInputPlaceholderText", - "type": { - "text": "string" - }, - "default": "'Upload an audio file'" - }, - { - "kind": "method", - "name": "canFileSendMessage", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "_", - "optional": true, - "type": { - "text": "string" - } - }, - { - "name": "files", - "optional": true, - "type": { - "text": "File[]" - } - } - ] - }, - { - "kind": "method", - "name": "callServiceAPI", - "parameters": [ - { - "name": "messages", - "type": { - "text": "Messages" - } - }, - { - "name": "_", - "type": { - "text": "MessageContentI[]" - } - }, - { - "name": "files", - "optional": true, - "type": { - "text": "File[]" - } - } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, - { - "kind": "method", - "name": "extractResultData", - "return": { - "type": { - "text": "Promise" - } - }, - "parameters": [ - { - "name": "result", - "type": { - "text": "AzureSpeechToTextResult" - } - } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, - { - "kind": "field", - "name": "canSendMessage", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "text", - "optional": true, - "type": { - "text": "string" - } - }, - { - "name": "files", - "optional": true, - "type": { - "text": "File[]" - } - }, - { - "name": "isProgrammatic", - "optional": true, - "type": { - "text": "boolean" - } - } - ], - "type": { - "text": "ValidateInput" - }, - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, - { - "kind": "field", - "name": "recordAudio", - "type": { - "text": "MicrophoneFilesServiceConfig | undefined" - }, - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - }, - "default": "undefined" - }, { "kind": "field", "name": "insertKeyPlaceholderText", @@ -4518,6 +4347,42 @@ "module": "src/services/utils/baseServiceIO.ts" } }, + { + "kind": "field", + "name": "canSendMessage", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "text", + "optional": true, + "type": { + "text": "string" + } + }, + { + "name": "files", + "optional": true, + "type": { + "text": "File[]" + } + }, + { + "name": "isProgrammatic", + "optional": true, + "type": { + "text": "boolean" + } + } + ], + "type": { + "text": "ValidateInput" + }, + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, { "kind": "field", "name": "fileTypes", @@ -4541,6 +4406,17 @@ "module": "src/services/utils/baseServiceIO.ts" } }, + { + "kind": "field", + "name": "recordAudio", + "type": { + "text": "MicrophoneFilesServiceConfig | undefined" + }, + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, { "kind": "field", "name": "totalMessagesMaxCharLength", @@ -4725,6 +4601,35 @@ "module": "src/services/utils/baseServiceIO.ts" } }, + { + "kind": "method", + "name": "callServiceAPI", + "parameters": [ + { + "name": "messages", + "type": { + "text": "Messages" + } + }, + { + "name": "pMessages", + "type": { + "text": "MessageContentI[]" + } + }, + { + "name": "files", + "optional": true, + "type": { + "text": "File[]" + } + } + ], + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, { "kind": "method", "name": "callAPI", @@ -4747,6 +4652,27 @@ "module": "src/services/utils/baseServiceIO.ts" } }, + { + "kind": "method", + "name": "extractResultData", + "return": { + "type": { + "text": "Promise" + } + }, + "parameters": [ + { + "name": "result", + "type": { + "text": "any | Response" + } + } + ], + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, { "kind": "method", "name": "isWebModel", @@ -4758,69 +4684,88 @@ } ], "superclass": { - "name": "AzureSpeechIO", - "module": "/src/services/azure/azureSpeechIO" + "name": "DirectServiceIO", + "module": "/src/services/utils/directServiceIO" } } ], "exports": [ { "kind": "js", - "name": "AzureSpeechToTextIO", + "name": "AzureSpeechIO", "declaration": { - "name": "AzureSpeechToTextIO", - "module": "src/services/azure/azureSpeechToTextIO.ts" + "name": "AzureSpeechIO", + "module": "src/services/azure/azureSpeechIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/azure/azureSummarizationIO.ts", + "path": "src/services/azure/azureSpeechToTextIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "AzureSummarizationIO", + "name": "AzureSpeechToTextIO", "members": [ { "kind": "field", - "name": "url", + "name": "HELP_LINK", "type": { "text": "string" }, - "default": "`${config.endpoint}/language/analyze-text/jobs?api-version=2022-10-01-preview`" + "privacy": "private", + "static": true, + "default": "'https://learn.microsoft.com/en-GB/azure/cognitive-services/speech-service/get-started-text-to-speech?tabs=windows%2Cterminal&pivots=programming-language-rest'" }, { "kind": "field", - "name": "textInputPlaceholderText", + "name": "introPanelMarkUp", + "default": "`\n
Azure Speech To Text
\n

Upload a .wav or .ogg audio file to transcribe it into text.\n

\n Click here for more info.\n

`" + }, + { + "kind": "field", + "name": "url", "type": { "text": "string" }, - "default": "'Insert text to summarize'" + "default": "`https://${config.region}.stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/v1?language=${lang}&format=detailed`" }, { "kind": "field", - "name": "messages", + "name": "isTextInputDisabled", "type": { - "text": "Messages | undefined" + "text": "boolean" }, - "privacy": "private" + "default": "true" + }, + { + "kind": "field", + "name": "textInputPlaceholderText", + "type": { + "text": "string" + }, + "default": "'Upload an audio file'" }, { "kind": "method", - "name": "preprocessBody", + "name": "canFileSendMessage", + "privacy": "private", + "static": true, "parameters": [ { - "name": "body", + "name": "_", + "optional": true, "type": { - "text": "RawBody" + "text": "string" } }, { - "name": "messages", + "name": "files", + "optional": true, "type": { - "text": "MessageContentI[]" + "text": "File[]" } } ] @@ -4836,10 +4781,17 @@ } }, { - "name": "pMessages", + "name": "_", "type": { "text": "MessageContentI[]" } + }, + { + "name": "files", + "optional": true, + "type": { + "text": "File[]" + } } ], "inheritedFrom": { @@ -4852,14 +4804,14 @@ "name": "extractResultData", "return": { "type": { - "text": "Promise<{makingAnotherRequest: true}>" + "text": "Promise" } }, "parameters": [ { "name": "result", "type": { - "text": "Response & AzureAuthenticationError" + "text": "AzureSpeechToTextResult" } } ], @@ -4869,29 +4821,52 @@ } }, { - "kind": "method", - "name": "extractPollResultData", - "return": { - "type": { - "text": "PollResult" - } - }, + "kind": "field", + "name": "canSendMessage", + "privacy": "private", + "static": true, "parameters": [ { - "name": "result", + "name": "text", + "optional": true, "type": { - "text": "AzureSummarizationResult" + "text": "string" + } + }, + { + "name": "files", + "optional": true, + "type": { + "text": "File[]" + } + }, + { + "name": "isProgrammatic", + "optional": true, + "type": { + "text": "boolean" } } - ] + ], + "type": { + "text": "ValidateInput" + }, + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } }, { "kind": "field", - "name": "language", + "name": "recordAudio", "type": { - "text": "string" + "text": "MicrophoneFilesServiceConfig | undefined" }, - "default": "'en'" + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + }, + "default": "undefined" }, { "kind": "field", @@ -4899,7 +4874,7 @@ "type": { "text": "string" }, - "default": "'Azure Language Subscription Key'", + "default": "'Azure Speech Subscription Key'", "inheritedFrom": { "name": "DirectServiceIO", "module": "src/services/utils/directServiceIO.ts" @@ -4917,18 +4892,6 @@ "module": "src/services/utils/directServiceIO.ts" } }, - { - "kind": "field", - "name": "permittedErrorPrefixes", - "type": { - "text": "array" - }, - "default": "['Access']", - "inheritedFrom": { - "name": "AzureLanguageIO", - "module": "src/services/azure/azureLanguageIO.ts" - } - }, { "kind": "field", "name": "key", @@ -5120,42 +5083,6 @@ "module": "src/services/utils/baseServiceIO.ts" } }, - { - "kind": "field", - "name": "canSendMessage", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "text", - "optional": true, - "type": { - "text": "string" - } - }, - { - "name": "files", - "optional": true, - "type": { - "text": "File[]" - } - }, - { - "name": "isProgrammatic", - "optional": true, - "type": { - "text": "boolean" - } - } - ], - "type": { - "text": "ValidateInput" - }, - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, { "kind": "field", "name": "fileTypes", @@ -5179,17 +5106,6 @@ "module": "src/services/utils/baseServiceIO.ts" } }, - { - "kind": "field", - "name": "recordAudio", - "type": { - "text": "MicrophoneFilesServiceConfig | undefined" - }, - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, { "kind": "field", "name": "totalMessagesMaxCharLength", @@ -5407,53 +5323,54 @@ } ], "superclass": { - "name": "AzureLanguageIO", - "module": "/src/services/azure/azureLanguageIO" + "name": "AzureSpeechIO", + "module": "/src/services/azure/azureSpeechIO" } } ], "exports": [ { "kind": "js", - "name": "AzureSummarizationIO", + "name": "AzureSpeechToTextIO", "declaration": { - "name": "AzureSummarizationIO", - "module": "src/services/azure/azureSummarizationIO.ts" + "name": "AzureSpeechToTextIO", + "module": "src/services/azure/azureSpeechToTextIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/azure/azureTextToSpeechIO.ts", + "path": "src/services/azure/azureSummarizationIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "AzureTextToSpeechIO", + "name": "AzureSummarizationIO", "members": [ { "kind": "field", - "name": "HELP_LINK", + "name": "url", "type": { "text": "string" }, - "privacy": "private", - "static": true, - "default": "'https://learn.microsoft.com/en-GB/azure/cognitive-services/speech-service/get-started-text-to-speech?tabs=windows%2Cterminal&pivots=programming-language-rest'" + "default": "`${config.endpoint}/language/analyze-text/jobs?api-version=2022-10-01-preview`" }, { "kind": "field", - "name": "introPanelMarkUp", - "default": "`\n
Azure Text To Speech
\n

Insert text to synthesize it to audio.\n

\n Click here for more info.\n

`" + "name": "textInputPlaceholderText", + "type": { + "text": "string" + }, + "default": "'Insert text to summarize'" }, { "kind": "field", - "name": "url", + "name": "messages", "type": { - "text": "string" + "text": "Messages | undefined" }, - "default": "`https://${config.region}.tts.speech.microsoft.com/cognitiveservices/v1`" + "privacy": "private" }, { "kind": "method", @@ -5462,7 +5379,7 @@ { "name": "body", "type": { - "text": "AzureTextToSpeechConfig" + "text": "RawBody" } }, { @@ -5500,14 +5417,14 @@ "name": "extractResultData", "return": { "type": { - "text": "Promise" + "text": "Promise<{makingAnotherRequest: true}>" } }, "parameters": [ { "name": "result", "type": { - "text": "AzureTextToSpeechResult" + "text": "Response & AzureAuthenticationError" } } ], @@ -5517,28 +5434,29 @@ } }, { - "kind": "field", - "name": "lang", - "type": { - "text": "string" - }, - "default": "'en-US'" - }, - { - "kind": "field", - "name": "name", - "type": { - "text": "string" + "kind": "method", + "name": "extractPollResultData", + "return": { + "type": { + "text": "PollResult" + } }, - "default": "'en-US-JennyNeural'" + "parameters": [ + { + "name": "result", + "type": { + "text": "AzureSummarizationResult" + } + } + ] }, { "kind": "field", - "name": "gender", + "name": "language", "type": { "text": "string" }, - "default": "'Female'" + "default": "'en'" }, { "kind": "field", @@ -5546,7 +5464,7 @@ "type": { "text": "string" }, - "default": "'Azure Speech Subscription Key'", + "default": "'Azure Language Subscription Key'", "inheritedFrom": { "name": "DirectServiceIO", "module": "src/services/utils/directServiceIO.ts" @@ -5564,6 +5482,18 @@ "module": "src/services/utils/directServiceIO.ts" } }, + { + "kind": "field", + "name": "permittedErrorPrefixes", + "type": { + "text": "array" + }, + "default": "['Access']", + "inheritedFrom": { + "name": "AzureLanguageIO", + "module": "src/services/azure/azureLanguageIO.ts" + } + }, { "kind": "field", "name": "key", @@ -6042,54 +5972,45 @@ } ], "superclass": { - "name": "AzureSpeechIO", - "module": "/src/services/azure/azureSpeechIO" + "name": "AzureLanguageIO", + "module": "/src/services/azure/azureLanguageIO" } } ], "exports": [ { "kind": "js", - "name": "AzureTextToSpeechIO", + "name": "AzureSummarizationIO", "declaration": { - "name": "AzureTextToSpeechIO", - "module": "src/services/azure/azureTextToSpeechIO.ts" + "name": "AzureSummarizationIO", + "module": "src/services/azure/azureSummarizationIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/azure/azureTranslationIO.ts", + "path": "src/services/azure/azureTextToSpeechIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "AzureTranslationIO", + "name": "AzureTextToSpeechIO", "members": [ { "kind": "field", - "name": "insertKeyPlaceholderText", + "name": "HELP_LINK", "type": { "text": "string" }, - "default": "'Azure Translate Subscription Key'", - "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" - } + "privacy": "private", + "static": true, + "default": "'https://learn.microsoft.com/en-GB/azure/cognitive-services/speech-service/get-started-text-to-speech?tabs=windows%2Cterminal&pivots=programming-language-rest'" }, { "kind": "field", - "name": "keyHelpUrl", - "type": { - "text": "string" - }, - "default": "'https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal'", - "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" - } + "name": "introPanelMarkUp", + "default": "`\n
Azure Text To Speech
\n

Insert text to synthesize it to audio.\n

\n Click here for more info.\n

`" }, { "kind": "field", @@ -6097,12 +6018,18 @@ "type": { "text": "string" }, - "default": "`https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&to=${config.language || 'es'}`" + "default": "`https://${config.region}.tts.speech.microsoft.com/cognitiveservices/v1`" }, { "kind": "method", "name": "preprocessBody", "parameters": [ + { + "name": "body", + "type": { + "text": "AzureTextToSpeechConfig" + } + }, { "name": "messages", "type": { @@ -6145,7 +6072,7 @@ { "name": "result", "type": { - "text": "AzureTranslationResult" + "text": "AzureTextToSpeechResult" } } ], @@ -6154,6 +6081,54 @@ "module": "src/services/utils/baseServiceIO.ts" } }, + { + "kind": "field", + "name": "lang", + "type": { + "text": "string" + }, + "default": "'en-US'" + }, + { + "kind": "field", + "name": "name", + "type": { + "text": "string" + }, + "default": "'en-US-JennyNeural'" + }, + { + "kind": "field", + "name": "gender", + "type": { + "text": "string" + }, + "default": "'Female'" + }, + { + "kind": "field", + "name": "insertKeyPlaceholderText", + "type": { + "text": "string" + }, + "default": "'Azure Speech Subscription Key'", + "inheritedFrom": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" + } + }, + { + "kind": "field", + "name": "keyHelpUrl", + "type": { + "text": "string" + }, + "default": "'https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal'", + "inheritedFrom": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" + } + }, { "kind": "field", "name": "key", @@ -6632,44 +6607,69 @@ } ], "superclass": { - "name": "DirectServiceIO", - "module": "/src/services/utils/directServiceIO" + "name": "AzureSpeechIO", + "module": "/src/services/azure/azureSpeechIO" } } ], "exports": [ { "kind": "js", - "name": "AzureTranslationIO", + "name": "AzureTextToSpeechIO", "declaration": { - "name": "AzureTranslationIO", - "module": "src/services/azure/azureTranslationIO.ts" + "name": "AzureTextToSpeechIO", + "module": "src/services/azure/azureTextToSpeechIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/cohere/cohereChatIO.ts", + "path": "src/services/azure/azureTranslationIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "CohereChatIO", + "name": "AzureTranslationIO", "members": [ + { + "kind": "field", + "name": "insertKeyPlaceholderText", + "type": { + "text": "string" + }, + "default": "'Azure Translate Subscription Key'", + "inheritedFrom": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" + } + }, + { + "kind": "field", + "name": "keyHelpUrl", + "type": { + "text": "string" + }, + "default": "'https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal'", + "inheritedFrom": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" + } + }, + { + "kind": "field", + "name": "url", + "type": { + "text": "string" + }, + "default": "`https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&to=${config.language || 'es'}`" + }, { "kind": "method", "name": "preprocessBody", - "privacy": "private", "parameters": [ { - "name": "body", - "type": { - "text": "CohereChatConfig" - } - }, - { - "name": "pMessages", + "name": "messages", "type": { "text": "MessageContentI[]" } @@ -6710,7 +6710,7 @@ { "name": "result", "type": { - "text": "CohereChatResult" + "text": "AzureTranslationResult" } } ], @@ -6719,78 +6719,6 @@ "module": "src/services/utils/baseServiceIO.ts" } }, - { - "kind": "field", - "name": "maxMessages", - "type": { - "text": "number | undefined" - }, - "default": "-1", - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, - { - "kind": "field", - "name": "insertKeyPlaceholderText", - "type": { - "text": "string" - }, - "default": "'Cohere API Key'", - "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" - } - }, - { - "kind": "field", - "name": "keyHelpUrl", - "type": { - "text": "string" - }, - "default": "'https://dashboard.cohere.ai/api-keys'", - "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" - } - }, - { - "kind": "field", - "name": "textInputPlaceholderText", - "type": { - "text": "string" - }, - "default": "inputPlaceholder", - "inheritedFrom": { - "name": "CohereIO", - "module": "src/services/cohere/cohereIO.ts" - } - }, - { - "kind": "field", - "name": "permittedErrorPrefixes", - "type": { - "text": "array" - }, - "default": "['invalid']", - "inheritedFrom": { - "name": "CohereIO", - "module": "src/services/cohere/cohereIO.ts" - } - }, - { - "kind": "field", - "name": "url", - "type": { - "text": "string" - }, - "default": "url", - "inheritedFrom": { - "name": "CohereIO", - "module": "src/services/cohere/cohereIO.ts" - } - }, { "kind": "field", "name": "key", @@ -7063,6 +6991,17 @@ "module": "src/services/utils/baseServiceIO.ts" } }, + { + "kind": "field", + "name": "maxMessages", + "type": { + "text": "number | undefined" + }, + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, { "kind": "field", "name": "demo", @@ -7258,31 +7197,105 @@ } ], "superclass": { - "name": "CohereIO", - "module": "/src/services/cohere/cohereIO" + "name": "DirectServiceIO", + "module": "/src/services/utils/directServiceIO" } } ], "exports": [ { "kind": "js", - "name": "CohereChatIO", + "name": "AzureTranslationIO", "declaration": { - "name": "CohereChatIO", - "module": "src/services/cohere/cohereChatIO.ts" + "name": "AzureTranslationIO", + "module": "src/services/azure/azureTranslationIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/cohere/cohereIO.ts", + "path": "src/services/cohere/cohereChatIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "CohereIO", + "name": "CohereChatIO", "members": [ + { + "kind": "method", + "name": "preprocessBody", + "privacy": "private", + "parameters": [ + { + "name": "body", + "type": { + "text": "CohereChatConfig" + } + }, + { + "name": "pMessages", + "type": { + "text": "MessageContentI[]" + } + } + ] + }, + { + "kind": "method", + "name": "callServiceAPI", + "parameters": [ + { + "name": "messages", + "type": { + "text": "Messages" + } + }, + { + "name": "pMessages", + "type": { + "text": "MessageContentI[]" + } + } + ], + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, + { + "kind": "method", + "name": "extractResultData", + "return": { + "type": { + "text": "Promise" + } + }, + "parameters": [ + { + "name": "result", + "type": { + "text": "CohereChatResult" + } + } + ], + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, + { + "kind": "field", + "name": "maxMessages", + "type": { + "text": "number | undefined" + }, + "default": "-1", + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, { "kind": "field", "name": "insertKeyPlaceholderText", @@ -7313,7 +7326,11 @@ "type": { "text": "string" }, - "default": "inputPlaceholder" + "default": "inputPlaceholder", + "inheritedFrom": { + "name": "CohereIO", + "module": "src/services/cohere/cohereIO.ts" + } }, { "kind": "field", @@ -7321,7 +7338,11 @@ "type": { "text": "array" }, - "default": "['invalid']" + "default": "['invalid']", + "inheritedFrom": { + "name": "CohereIO", + "module": "src/services/cohere/cohereIO.ts" + } }, { "kind": "field", @@ -7329,7 +7350,11 @@ "type": { "text": "string" }, - "default": "url" + "default": "url", + "inheritedFrom": { + "name": "CohereIO", + "module": "src/services/cohere/cohereIO.ts" + } }, { "kind": "field", @@ -7603,17 +7628,6 @@ "module": "src/services/utils/baseServiceIO.ts" } }, - { - "kind": "field", - "name": "maxMessages", - "type": { - "text": "number | undefined" - }, - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, { "kind": "field", "name": "demo", @@ -7776,35 +7790,6 @@ "module": "src/services/utils/baseServiceIO.ts" } }, - { - "kind": "method", - "name": "callServiceAPI", - "parameters": [ - { - "name": "messages", - "type": { - "text": "Messages" - } - }, - { - "name": "pMessages", - "type": { - "text": "MessageContentI[]" - } - }, - { - "name": "files", - "optional": true, - "type": { - "text": "File[]" - } - } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, { "kind": "method", "name": "callAPI", @@ -7827,27 +7812,6 @@ "module": "src/services/utils/baseServiceIO.ts" } }, - { - "kind": "method", - "name": "extractResultData", - "return": { - "type": { - "text": "Promise" - } - }, - "parameters": [ - { - "name": "result", - "type": { - "text": "any | Response" - } - } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, { "kind": "method", "name": "isWebModel", @@ -7859,92 +7823,31 @@ } ], "superclass": { - "name": "DirectServiceIO", - "module": "/src/services/utils/directServiceIO" + "name": "CohereIO", + "module": "/src/services/cohere/cohereIO" } } ], "exports": [ { "kind": "js", - "name": "CohereIO", + "name": "CohereChatIO", "declaration": { - "name": "CohereIO", - "module": "src/services/cohere/cohereIO.ts" + "name": "CohereChatIO", + "module": "src/services/cohere/cohereChatIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/cohere/cohereSummarizationIO.ts", + "path": "src/services/cohere/cohereIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "CohereSummarizationIO", + "name": "CohereIO", "members": [ - { - "kind": "method", - "name": "preprocessBody", - "parameters": [ - { - "name": "body", - "type": { - "text": "CohereSummarizationConfig" - } - }, - { - "name": "messages", - "type": { - "text": "MessageContentI[]" - } - } - ] - }, - { - "kind": "method", - "name": "callServiceAPI", - "parameters": [ - { - "name": "messages", - "type": { - "text": "Messages" - } - }, - { - "name": "pMessages", - "type": { - "text": "MessageContentI[]" - } - } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, - { - "kind": "method", - "name": "extractResultData", - "return": { - "type": { - "text": "Promise" - } - }, - "parameters": [ - { - "name": "result", - "type": { - "text": "CohereSummarizationResult" - } - } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, { "kind": "field", "name": "insertKeyPlaceholderText", @@ -7975,11 +7878,7 @@ "type": { "text": "string" }, - "default": "inputPlaceholder", - "inheritedFrom": { - "name": "CohereIO", - "module": "src/services/cohere/cohereIO.ts" - } + "default": "inputPlaceholder" }, { "kind": "field", @@ -7987,11 +7886,7 @@ "type": { "text": "array" }, - "default": "['invalid']", - "inheritedFrom": { - "name": "CohereIO", - "module": "src/services/cohere/cohereIO.ts" - } + "default": "['invalid']" }, { "kind": "field", @@ -7999,11 +7894,7 @@ "type": { "text": "string" }, - "default": "url", - "inheritedFrom": { - "name": "CohereIO", - "module": "src/services/cohere/cohereIO.ts" - } + "default": "url" }, { "kind": "field", @@ -8450,6 +8341,35 @@ "module": "src/services/utils/baseServiceIO.ts" } }, + { + "kind": "method", + "name": "callServiceAPI", + "parameters": [ + { + "name": "messages", + "type": { + "text": "Messages" + } + }, + { + "name": "pMessages", + "type": { + "text": "MessageContentI[]" + } + }, + { + "name": "files", + "optional": true, + "type": { + "text": "File[]" + } + } + ], + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, { "kind": "method", "name": "callAPI", @@ -8472,6 +8392,27 @@ "module": "src/services/utils/baseServiceIO.ts" } }, + { + "kind": "method", + "name": "extractResultData", + "return": { + "type": { + "text": "Promise" + } + }, + "parameters": [ + { + "name": "result", + "type": { + "text": "any | Response" + } + } + ], + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, { "kind": "method", "name": "isWebModel", @@ -8483,30 +8424,30 @@ } ], "superclass": { - "name": "CohereIO", - "module": "/src/services/cohere/cohereIO" + "name": "DirectServiceIO", + "module": "/src/services/utils/directServiceIO" } } ], "exports": [ { "kind": "js", - "name": "CohereSummarizationIO", + "name": "CohereIO", "declaration": { - "name": "CohereSummarizationIO", - "module": "src/services/cohere/cohereSummarizationIO.ts" + "name": "CohereIO", + "module": "src/services/cohere/cohereIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/cohere/cohereTextGenerationIO.ts", + "path": "src/services/cohere/cohereSummarizationIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "CohereTextGenerationIO", + "name": "CohereSummarizationIO", "members": [ { "kind": "method", @@ -8515,7 +8456,7 @@ { "name": "body", "type": { - "text": "CohereGenerateConfig" + "text": "CohereSummarizationConfig" } }, { @@ -8560,7 +8501,7 @@ { "name": "result", "type": { - "text": "CohereCompletionsResult" + "text": "CohereSummarizationResult" } } ], @@ -9115,105 +9056,40 @@ "exports": [ { "kind": "js", - "name": "CohereTextGenerationIO", + "name": "CohereSummarizationIO", "declaration": { - "name": "CohereTextGenerationIO", - "module": "src/services/cohere/cohereTextGenerationIO.ts" + "name": "CohereSummarizationIO", + "module": "src/services/cohere/cohereSummarizationIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/huggingFace/huggingFaceAudioClassificationIO.ts", + "path": "src/services/cohere/cohereTextGenerationIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "HuggingFaceAudioClassificationIO", + "name": "CohereTextGenerationIO", "members": [ - { - "kind": "method", - "name": "extractPollResultData", - "return": { - "type": { - "text": "PollResult" - } - }, - "parameters": [ - { - "name": "result", - "type": { - "text": "HuggingFaceClassificationResult" - } - } - ] - }, - { - "kind": "field", - "name": "isTextInputDisabled", - "type": { - "text": "boolean" - }, - "default": "true", - "inheritedFrom": { - "name": "HuggingFaceFileIO", - "module": "src/services/huggingFace/huggingFaceFileIO.ts" - } - }, - { - "kind": "method", - "name": "canSendFile", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "_", - "optional": true, - "type": { - "text": "string" - } - }, - { - "name": "files", - "optional": true, - "type": { - "text": "File[]" - } - } - ], - "inheritedFrom": { - "name": "HuggingFaceFileIO", - "module": "src/services/huggingFace/huggingFaceFileIO.ts" - } - }, { "kind": "method", "name": "preprocessBody", "parameters": [ { - "name": "_", + "name": "body", "type": { - "text": "{}" + "text": "CohereGenerateConfig" } }, { - "name": "__", + "name": "messages", "type": { "text": "MessageContentI[]" } - }, - { - "name": "files", - "type": { - "text": "File[]" - } } - ], - "inheritedFrom": { - "name": "HuggingFaceIO", - "module": "src/services/huggingFace/huggingFaceIO.ts" - } + ] }, { "kind": "method", @@ -9226,17 +9102,10 @@ } }, { - "name": "_", + "name": "pMessages", "type": { "text": "MessageContentI[]" } - }, - { - "name": "files", - "optional": true, - "type": { - "text": "File[]" - } } ], "inheritedFrom": { @@ -9245,36 +9114,21 @@ } }, { - "kind": "field", - "name": "canSendMessage", - "privacy": "private", - "static": true, + "kind": "method", + "name": "extractResultData", + "return": { + "type": { + "text": "Promise" + } + }, "parameters": [ { - "name": "text", - "optional": true, - "type": { - "text": "string" - } - }, - { - "name": "files", - "optional": true, - "type": { - "text": "File[]" - } - }, - { - "name": "isProgrammatic", - "optional": true, + "name": "result", "type": { - "text": "boolean" + "text": "CohereCompletionsResult" } } ], - "type": { - "text": "ValidateInput" - }, "inheritedFrom": { "name": "BaseServiceIO", "module": "src/services/utils/baseServiceIO.ts" @@ -9286,7 +9140,7 @@ "type": { "text": "string" }, - "default": "'Hugging Face Token'", + "default": "'Cohere API Key'", "inheritedFrom": { "name": "DirectServiceIO", "module": "src/services/utils/directServiceIO.ts" @@ -9298,7 +9152,7 @@ "type": { "text": "string" }, - "default": "'https://huggingface.co/settings/tokens'", + "default": "'https://dashboard.cohere.ai/api-keys'", "inheritedFrom": { "name": "DirectServiceIO", "module": "src/services/utils/directServiceIO.ts" @@ -9306,25 +9160,14 @@ }, { "kind": "field", - "name": "URL_PREFIX", + "name": "textInputPlaceholderText", "type": { "text": "string" }, - "privacy": "private", - "static": true, - "default": "'https://api-inference.huggingface.co/models/'", - "inheritedFrom": { - "name": "HuggingFaceIO", - "module": "src/services/huggingFace/huggingFaceIO.ts" - } - }, - { - "kind": "field", - "name": "introPanelMarkUp", - "default": "`\n
Hugging Face
\n

First message may take an extented amount of time to complete as the model needs to be initialized.

`", + "default": "inputPlaceholder", "inheritedFrom": { - "name": "HuggingFaceIO", - "module": "src/services/huggingFace/huggingFaceIO.ts" + "name": "CohereIO", + "module": "src/services/cohere/cohereIO.ts" } }, { @@ -9333,10 +9176,10 @@ "type": { "text": "array" }, - "default": "['Authorization header']", + "default": "['invalid']", "inheritedFrom": { - "name": "HuggingFaceIO", - "module": "src/services/huggingFace/huggingFaceIO.ts" + "name": "CohereIO", + "module": "src/services/cohere/cohereIO.ts" } }, { @@ -9345,22 +9188,10 @@ "type": { "text": "string" }, - "default": "`${HuggingFaceIO.URL_PREFIX}${defaultModel}`", - "inheritedFrom": { - "name": "HuggingFaceIO", - "module": "src/services/huggingFace/huggingFaceIO.ts" - } - }, - { - "kind": "field", - "name": "textInputPlaceholderText", - "type": { - "text": "string" - }, - "default": "textInputPlaceholderText", + "default": "url", "inheritedFrom": { - "name": "HuggingFaceIO", - "module": "src/services/huggingFace/huggingFaceIO.ts" + "name": "CohereIO", + "module": "src/services/cohere/cohereIO.ts" } }, { @@ -9554,6 +9385,42 @@ "module": "src/services/utils/baseServiceIO.ts" } }, + { + "kind": "field", + "name": "canSendMessage", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "text", + "optional": true, + "type": { + "text": "string" + } + }, + { + "name": "files", + "optional": true, + "type": { + "text": "File[]" + } + }, + { + "name": "isProgrammatic", + "optional": true, + "type": { + "text": "boolean" + } + } + ], + "type": { + "text": "ValidateInput" + }, + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, { "kind": "field", "name": "fileTypes", @@ -9794,27 +9661,6 @@ "module": "src/services/utils/baseServiceIO.ts" } }, - { - "kind": "method", - "name": "extractResultData", - "return": { - "type": { - "text": "Promise" - } - }, - "parameters": [ - { - "name": "result", - "type": { - "text": "any | Response" - } - } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, { "kind": "method", "name": "isWebModel", @@ -9826,30 +9672,30 @@ } ], "superclass": { - "name": "HuggingFaceFileIO", - "module": "/src/services/huggingFace/huggingFaceFileIO" + "name": "CohereIO", + "module": "/src/services/cohere/cohereIO" } } ], "exports": [ { "kind": "js", - "name": "HuggingFaceAudioClassificationIO", + "name": "CohereTextGenerationIO", "declaration": { - "name": "HuggingFaceAudioClassificationIO", - "module": "src/services/huggingFace/huggingFaceAudioClassificationIO.ts" + "name": "CohereTextGenerationIO", + "module": "src/services/cohere/cohereTextGenerationIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/huggingFace/huggingFaceAudioRecognitionIO.ts", + "path": "src/services/huggingFace/huggingFaceAudioClassificationIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "HuggingFaceAudioRecognitionIO", + "name": "HuggingFaceAudioClassificationIO", "members": [ { "kind": "method", @@ -9863,7 +9709,7 @@ { "name": "result", "type": { - "text": "HuggingFaceAudioRecognitionResult" + "text": "HuggingFaceClassificationResult" } } ] @@ -10553,51 +10399,99 @@ "exports": [ { "kind": "js", - "name": "HuggingFaceAudioRecognitionIO", + "name": "HuggingFaceAudioClassificationIO", "declaration": { - "name": "HuggingFaceAudioRecognitionIO", - "module": "src/services/huggingFace/huggingFaceAudioRecognitionIO.ts" + "name": "HuggingFaceAudioClassificationIO", + "module": "src/services/huggingFace/huggingFaceAudioClassificationIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/huggingFace/huggingFaceConversationIO.ts", + "path": "src/services/huggingFace/huggingFaceAudioRecognitionIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "HuggingFaceConversationIO", + "name": "HuggingFaceAudioRecognitionIO", "members": [ { "kind": "method", - "name": "processMessages", - "privacy": "private", + "name": "extractPollResultData", + "return": { + "type": { + "text": "PollResult" + } + }, "parameters": [ { - "name": "messages", + "name": "result", "type": { - "text": "MessageContentI[]" + "text": "HuggingFaceAudioRecognitionResult" } } ] }, + { + "kind": "field", + "name": "isTextInputDisabled", + "type": { + "text": "boolean" + }, + "default": "true", + "inheritedFrom": { + "name": "HuggingFaceFileIO", + "module": "src/services/huggingFace/huggingFaceFileIO.ts" + } + }, + { + "kind": "method", + "name": "canSendFile", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "_", + "optional": true, + "type": { + "text": "string" + } + }, + { + "name": "files", + "optional": true, + "type": { + "text": "File[]" + } + } + ], + "inheritedFrom": { + "name": "HuggingFaceFileIO", + "module": "src/services/huggingFace/huggingFaceFileIO.ts" + } + }, { "kind": "method", "name": "preprocessBody", "parameters": [ { - "name": "body", + "name": "_", "type": { - "text": "HuggingFaceQuestionAnswerConfig" + "text": "{}" } }, { - "name": "messages", + "name": "__", "type": { "text": "MessageContentI[]" } + }, + { + "name": "files", + "type": { + "text": "File[]" + } } ], "inheritedFrom": { @@ -10607,17 +10501,25 @@ }, { "kind": "method", - "name": "extractResultData", - "return": { - "type": { - "text": "Promise" - } - }, + "name": "callServiceAPI", "parameters": [ { - "name": "result", + "name": "messages", "type": { - "text": "HuggingFaceConversationResult" + "text": "Messages" + } + }, + { + "name": "_", + "type": { + "text": "MessageContentI[]" + } + }, + { + "name": "files", + "optional": true, + "type": { + "text": "File[]" } } ], @@ -10628,11 +10530,35 @@ }, { "kind": "field", - "name": "maxMessages", + "name": "canSendMessage", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "text", + "optional": true, + "type": { + "text": "string" + } + }, + { + "name": "files", + "optional": true, + "type": { + "text": "File[]" + } + }, + { + "name": "isProgrammatic", + "optional": true, + "type": { + "text": "boolean" + } + } + ], "type": { - "text": "number | undefined" + "text": "ValidateInput" }, - "default": "-1", "inheritedFrom": { "name": "BaseServiceIO", "module": "src/services/utils/baseServiceIO.ts" @@ -10721,35 +10647,6 @@ "module": "src/services/huggingFace/huggingFaceIO.ts" } }, - { - "kind": "method", - "name": "callServiceAPI", - "parameters": [ - { - "name": "messages", - "type": { - "text": "Messages" - } - }, - { - "name": "pMessages", - "type": { - "text": "MessageContentI[]" - } - }, - { - "name": "files", - "optional": true, - "type": { - "text": "File[]" - } - } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, { "kind": "field", "name": "key", @@ -10941,42 +10838,6 @@ "module": "src/services/utils/baseServiceIO.ts" } }, - { - "kind": "field", - "name": "canSendMessage", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "text", - "optional": true, - "type": { - "text": "string" - } - }, - { - "name": "files", - "optional": true, - "type": { - "text": "File[]" - } - }, - { - "name": "isProgrammatic", - "optional": true, - "type": { - "text": "boolean" - } - } - ], - "type": { - "text": "ValidateInput" - }, - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, { "kind": "field", "name": "fileTypes", @@ -11022,6 +10883,17 @@ "module": "src/services/utils/baseServiceIO.ts" } }, + { + "kind": "field", + "name": "maxMessages", + "type": { + "text": "number | undefined" + }, + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, { "kind": "field", "name": "demo", @@ -11206,6 +11078,27 @@ "module": "src/services/utils/baseServiceIO.ts" } }, + { + "kind": "method", + "name": "extractResultData", + "return": { + "type": { + "text": "Promise" + } + }, + "parameters": [ + { + "name": "result", + "type": { + "text": "any | Response" + } + } + ], + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, { "kind": "method", "name": "isWebModel", @@ -11217,57 +11110,40 @@ } ], "superclass": { - "name": "HuggingFaceIO", - "module": "/src/services/huggingFace/huggingFaceIO" + "name": "HuggingFaceFileIO", + "module": "/src/services/huggingFace/huggingFaceFileIO" } } ], "exports": [ { "kind": "js", - "name": "HuggingFaceConversationIO", + "name": "HuggingFaceAudioRecognitionIO", "declaration": { - "name": "HuggingFaceConversationIO", - "module": "src/services/huggingFace/huggingFaceConversationIO.ts" + "name": "HuggingFaceAudioRecognitionIO", + "module": "src/services/huggingFace/huggingFaceAudioRecognitionIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/huggingFace/huggingFaceFileIO.ts", + "path": "src/services/huggingFace/huggingFaceConversationIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "HuggingFaceFileIO", + "name": "HuggingFaceConversationIO", "members": [ - { - "kind": "field", - "name": "isTextInputDisabled", - "type": { - "text": "boolean" - }, - "default": "true" - }, { "kind": "method", - "name": "canSendFile", + "name": "processMessages", "privacy": "private", - "static": true, "parameters": [ { - "name": "_", - "optional": true, - "type": { - "text": "string" - } - }, - { - "name": "files", - "optional": true, + "name": "messages", "type": { - "text": "File[]" + "text": "MessageContentI[]" } } ] @@ -11277,22 +11153,16 @@ "name": "preprocessBody", "parameters": [ { - "name": "_", + "name": "body", "type": { - "text": "{}" + "text": "HuggingFaceQuestionAnswerConfig" } }, { - "name": "__", + "name": "messages", "type": { "text": "MessageContentI[]" } - }, - { - "name": "files", - "type": { - "text": "File[]" - } } ], "inheritedFrom": { @@ -11302,25 +11172,17 @@ }, { "kind": "method", - "name": "callServiceAPI", + "name": "extractResultData", + "return": { + "type": { + "text": "Promise" + } + }, "parameters": [ { - "name": "messages", - "type": { - "text": "Messages" - } - }, - { - "name": "_", - "type": { - "text": "MessageContentI[]" - } - }, - { - "name": "files", - "optional": true, + "name": "result", "type": { - "text": "File[]" + "text": "HuggingFaceConversationResult" } } ], @@ -11331,35 +11193,11 @@ }, { "kind": "field", - "name": "canSendMessage", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "text", - "optional": true, - "type": { - "text": "string" - } - }, - { - "name": "files", - "optional": true, - "type": { - "text": "File[]" - } - }, - { - "name": "isProgrammatic", - "optional": true, - "type": { - "text": "boolean" - } - } - ], + "name": "maxMessages", "type": { - "text": "ValidateInput" + "text": "number | undefined" }, + "default": "-1", "inheritedFrom": { "name": "BaseServiceIO", "module": "src/services/utils/baseServiceIO.ts" @@ -11448,6 +11286,35 @@ "module": "src/services/huggingFace/huggingFaceIO.ts" } }, + { + "kind": "method", + "name": "callServiceAPI", + "parameters": [ + { + "name": "messages", + "type": { + "text": "Messages" + } + }, + { + "name": "pMessages", + "type": { + "text": "MessageContentI[]" + } + }, + { + "name": "files", + "optional": true, + "type": { + "text": "File[]" + } + } + ], + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, { "kind": "field", "name": "key", @@ -11641,11 +11508,35 @@ }, { "kind": "field", - "name": "fileTypes", + "name": "canSendMessage", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "text", + "optional": true, + "type": { + "text": "string" + } + }, + { + "name": "files", + "optional": true, + "type": { + "text": "File[]" + } + }, + { + "name": "isProgrammatic", + "optional": true, + "type": { + "text": "boolean" + } + } + ], "type": { - "text": "ServiceFileTypes" + "text": "ValidateInput" }, - "default": "{}", "inheritedFrom": { "name": "BaseServiceIO", "module": "src/services/utils/baseServiceIO.ts" @@ -11653,10 +11544,11 @@ }, { "kind": "field", - "name": "camera", + "name": "fileTypes", "type": { - "text": "CameraFilesServiceConfig | undefined" + "text": "ServiceFileTypes" }, + "default": "{}", "inheritedFrom": { "name": "BaseServiceIO", "module": "src/services/utils/baseServiceIO.ts" @@ -11664,9 +11556,9 @@ }, { "kind": "field", - "name": "recordAudio", + "name": "camera", "type": { - "text": "MicrophoneFilesServiceConfig | undefined" + "text": "CameraFilesServiceConfig | undefined" }, "inheritedFrom": { "name": "BaseServiceIO", @@ -11675,9 +11567,9 @@ }, { "kind": "field", - "name": "totalMessagesMaxCharLength", + "name": "recordAudio", "type": { - "text": "number | undefined" + "text": "MicrophoneFilesServiceConfig | undefined" }, "inheritedFrom": { "name": "BaseServiceIO", @@ -11686,7 +11578,7 @@ }, { "kind": "field", - "name": "maxMessages", + "name": "totalMessagesMaxCharLength", "type": { "text": "number | undefined" }, @@ -11879,27 +11771,6 @@ "module": "src/services/utils/baseServiceIO.ts" } }, - { - "kind": "method", - "name": "extractResultData", - "return": { - "type": { - "text": "Promise" - } - }, - "parameters": [ - { - "name": "result", - "type": { - "text": "any | Response" - } - } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, { "kind": "method", "name": "isWebModel", @@ -11919,146 +11790,71 @@ "exports": [ { "kind": "js", - "name": "HuggingFaceFileIO", + "name": "HuggingFaceConversationIO", "declaration": { - "name": "HuggingFaceFileIO", - "module": "src/services/huggingFace/huggingFaceFileIO.ts" + "name": "HuggingFaceConversationIO", + "module": "src/services/huggingFace/huggingFaceConversationIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/huggingFace/huggingFaceFillMaskIO.ts", + "path": "src/services/huggingFace/huggingFaceFileIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "HuggingFaceFillMaskIO", + "name": "HuggingFaceFileIO", "members": [ { "kind": "field", - "name": "introPanelMarkUp", - "default": "`\n
Hugging Face
\n

Insert a sentence with the word [MASK] and the model will try to fill it for you. E.g. I want [MASK].

\n

First message may take an extented amount of time to complete as the model needs to be initialized.

`", - "inheritedFrom": { - "name": "HuggingFaceIO", - "module": "src/services/huggingFace/huggingFaceIO.ts" - } - }, - { - "kind": "field", - "name": "permittedErrorPrefixes", + "name": "isTextInputDisabled", "type": { - "text": "array" + "text": "boolean" }, - "default": "['Authorization header', 'No mask_token']", - "inheritedFrom": { - "name": "HuggingFaceIO", - "module": "src/services/huggingFace/huggingFaceIO.ts" - } + "default": "true" }, { "kind": "method", - "name": "extractResultData", - "return": { - "type": { - "text": "Promise" - } - }, + "name": "canSendFile", + "privacy": "private", + "static": true, "parameters": [ { - "name": "result", + "name": "_", + "optional": true, "type": { - "text": "HuggingFaceFillMaskResult" + "text": "string" + } + }, + { + "name": "files", + "optional": true, + "type": { + "text": "File[]" } } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, - { - "kind": "field", - "name": "insertKeyPlaceholderText", - "type": { - "text": "string" - }, - "default": "'Hugging Face Token'", - "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" - } - }, - { - "kind": "field", - "name": "keyHelpUrl", - "type": { - "text": "string" - }, - "default": "'https://huggingface.co/settings/tokens'", - "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" - } - }, - { - "kind": "field", - "name": "URL_PREFIX", - "type": { - "text": "string" - }, - "privacy": "private", - "static": true, - "default": "'https://api-inference.huggingface.co/models/'", - "inheritedFrom": { - "name": "HuggingFaceIO", - "module": "src/services/huggingFace/huggingFaceIO.ts" - } - }, - { - "kind": "field", - "name": "url", - "type": { - "text": "string" - }, - "default": "`${HuggingFaceIO.URL_PREFIX}${defaultModel}`", - "inheritedFrom": { - "name": "HuggingFaceIO", - "module": "src/services/huggingFace/huggingFaceIO.ts" - } - }, - { - "kind": "field", - "name": "textInputPlaceholderText", - "type": { - "text": "string" - }, - "default": "textInputPlaceholderText", - "inheritedFrom": { - "name": "HuggingFaceIO", - "module": "src/services/huggingFace/huggingFaceIO.ts" - } + ] }, { "kind": "method", "name": "preprocessBody", "parameters": [ { - "name": "body", + "name": "_", "type": { - "text": "HuggingFaceServiceConfigObj" + "text": "{}" } }, { - "name": "messages", + "name": "__", "type": { "text": "MessageContentI[]" } }, { - "name": "_", - "optional": true, + "name": "files", "type": { "text": "File[]" } @@ -12080,7 +11876,7 @@ } }, { - "name": "pMessages", + "name": "_", "type": { "text": "MessageContentI[]" } @@ -12098,6 +11894,125 @@ "module": "src/services/utils/baseServiceIO.ts" } }, + { + "kind": "field", + "name": "canSendMessage", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "text", + "optional": true, + "type": { + "text": "string" + } + }, + { + "name": "files", + "optional": true, + "type": { + "text": "File[]" + } + }, + { + "name": "isProgrammatic", + "optional": true, + "type": { + "text": "boolean" + } + } + ], + "type": { + "text": "ValidateInput" + }, + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, + { + "kind": "field", + "name": "insertKeyPlaceholderText", + "type": { + "text": "string" + }, + "default": "'Hugging Face Token'", + "inheritedFrom": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" + } + }, + { + "kind": "field", + "name": "keyHelpUrl", + "type": { + "text": "string" + }, + "default": "'https://huggingface.co/settings/tokens'", + "inheritedFrom": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" + } + }, + { + "kind": "field", + "name": "URL_PREFIX", + "type": { + "text": "string" + }, + "privacy": "private", + "static": true, + "default": "'https://api-inference.huggingface.co/models/'", + "inheritedFrom": { + "name": "HuggingFaceIO", + "module": "src/services/huggingFace/huggingFaceIO.ts" + } + }, + { + "kind": "field", + "name": "introPanelMarkUp", + "default": "`\n
Hugging Face
\n

First message may take an extented amount of time to complete as the model needs to be initialized.

`", + "inheritedFrom": { + "name": "HuggingFaceIO", + "module": "src/services/huggingFace/huggingFaceIO.ts" + } + }, + { + "kind": "field", + "name": "permittedErrorPrefixes", + "type": { + "text": "array" + }, + "default": "['Authorization header']", + "inheritedFrom": { + "name": "HuggingFaceIO", + "module": "src/services/huggingFace/huggingFaceIO.ts" + } + }, + { + "kind": "field", + "name": "url", + "type": { + "text": "string" + }, + "default": "`${HuggingFaceIO.URL_PREFIX}${defaultModel}`", + "inheritedFrom": { + "name": "HuggingFaceIO", + "module": "src/services/huggingFace/huggingFaceIO.ts" + } + }, + { + "kind": "field", + "name": "textInputPlaceholderText", + "type": { + "text": "string" + }, + "default": "textInputPlaceholderText", + "inheritedFrom": { + "name": "HuggingFaceIO", + "module": "src/services/huggingFace/huggingFaceIO.ts" + } + }, { "kind": "field", "name": "key", @@ -12289,42 +12204,6 @@ "module": "src/services/utils/baseServiceIO.ts" } }, - { - "kind": "field", - "name": "canSendMessage", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "text", - "optional": true, - "type": { - "text": "string" - } - }, - { - "name": "files", - "optional": true, - "type": { - "text": "File[]" - } - }, - { - "name": "isProgrammatic", - "optional": true, - "type": { - "text": "boolean" - } - } - ], - "type": { - "text": "ValidateInput" - }, - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, { "kind": "field", "name": "fileTypes", @@ -12565,6 +12444,27 @@ "module": "src/services/utils/baseServiceIO.ts" } }, + { + "kind": "method", + "name": "extractResultData", + "return": { + "type": { + "text": "Promise" + } + }, + "parameters": [ + { + "name": "result", + "type": { + "text": "any | Response" + } + } + ], + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, { "kind": "method", "name": "isWebModel", @@ -12584,23 +12484,65 @@ "exports": [ { "kind": "js", - "name": "HuggingFaceFillMaskIO", + "name": "HuggingFaceFileIO", "declaration": { - "name": "HuggingFaceFillMaskIO", - "module": "src/services/huggingFace/huggingFaceFillMaskIO.ts" + "name": "HuggingFaceFileIO", + "module": "src/services/huggingFace/huggingFaceFileIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/huggingFace/huggingFaceIO.ts", + "path": "src/services/huggingFace/huggingFaceFillMaskIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "HuggingFaceIO", + "name": "HuggingFaceFillMaskIO", "members": [ + { + "kind": "field", + "name": "introPanelMarkUp", + "default": "`\n
Hugging Face
\n

Insert a sentence with the word [MASK] and the model will try to fill it for you. E.g. I want [MASK].

\n

First message may take an extented amount of time to complete as the model needs to be initialized.

`", + "inheritedFrom": { + "name": "HuggingFaceIO", + "module": "src/services/huggingFace/huggingFaceIO.ts" + } + }, + { + "kind": "field", + "name": "permittedErrorPrefixes", + "type": { + "text": "array" + }, + "default": "['Authorization header', 'No mask_token']", + "inheritedFrom": { + "name": "HuggingFaceIO", + "module": "src/services/huggingFace/huggingFaceIO.ts" + } + }, + { + "kind": "method", + "name": "extractResultData", + "return": { + "type": { + "text": "Promise" + } + }, + "parameters": [ + { + "name": "result", + "type": { + "text": "HuggingFaceFillMaskResult" + } + } + ], + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, { "kind": "field", "name": "insertKeyPlaceholderText", @@ -12633,20 +12575,11 @@ }, "privacy": "private", "static": true, - "default": "'https://api-inference.huggingface.co/models/'" - }, - { - "kind": "field", - "name": "introPanelMarkUp", - "default": "`\n
Hugging Face
\n

First message may take an extented amount of time to complete as the model needs to be initialized.

`" - }, - { - "kind": "field", - "name": "permittedErrorPrefixes", - "type": { - "text": "array" - }, - "default": "['Authorization header']" + "default": "'https://api-inference.huggingface.co/models/'", + "inheritedFrom": { + "name": "HuggingFaceIO", + "module": "src/services/huggingFace/huggingFaceIO.ts" + } }, { "kind": "field", @@ -12654,7 +12587,11 @@ "type": { "text": "string" }, - "default": "`${HuggingFaceIO.URL_PREFIX}${defaultModel}`" + "default": "`${HuggingFaceIO.URL_PREFIX}${defaultModel}`", + "inheritedFrom": { + "name": "HuggingFaceIO", + "module": "src/services/huggingFace/huggingFaceIO.ts" + } }, { "kind": "field", @@ -12662,7 +12599,11 @@ "type": { "text": "string" }, - "default": "textInputPlaceholderText" + "default": "textInputPlaceholderText", + "inheritedFrom": { + "name": "HuggingFaceIO", + "module": "src/services/huggingFace/huggingFaceIO.ts" + } }, { "kind": "method", @@ -12687,7 +12628,11 @@ "text": "File[]" } } - ] + ], + "inheritedFrom": { + "name": "HuggingFaceIO", + "module": "src/services/huggingFace/huggingFaceIO.ts" + } }, { "kind": "method", @@ -13185,27 +13130,6 @@ "module": "src/services/utils/baseServiceIO.ts" } }, - { - "kind": "method", - "name": "extractResultData", - "return": { - "type": { - "text": "Promise" - } - }, - "parameters": [ - { - "name": "result", - "type": { - "text": "any | Response" - } - } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, { "kind": "method", "name": "isWebModel", @@ -13217,113 +13141,118 @@ } ], "superclass": { - "name": "DirectServiceIO", - "module": "/src/services/utils/directServiceIO" + "name": "HuggingFaceIO", + "module": "/src/services/huggingFace/huggingFaceIO" } } ], "exports": [ { "kind": "js", - "name": "HuggingFaceIO", + "name": "HuggingFaceFillMaskIO", "declaration": { - "name": "HuggingFaceIO", - "module": "src/services/huggingFace/huggingFaceIO.ts" + "name": "HuggingFaceFillMaskIO", + "module": "src/services/huggingFace/huggingFaceFillMaskIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/huggingFace/huggingFaceImageClassificationIO.ts", + "path": "src/services/huggingFace/huggingFaceIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "HuggingFaceImageClassificationIO", + "name": "HuggingFaceIO", "members": [ { - "kind": "method", - "name": "extractPollResultData", - "return": { - "type": { - "text": "PollResult" - } + "kind": "field", + "name": "insertKeyPlaceholderText", + "type": { + "text": "string" }, - "parameters": [ - { - "name": "result", - "type": { - "text": "HuggingFaceClassificationResult" - } - } - ] + "default": "'Hugging Face Token'", + "inheritedFrom": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" + } }, { "kind": "field", - "name": "isTextInputDisabled", + "name": "keyHelpUrl", "type": { - "text": "boolean" + "text": "string" }, - "default": "true", + "default": "'https://huggingface.co/settings/tokens'", "inheritedFrom": { - "name": "HuggingFaceFileIO", - "module": "src/services/huggingFace/huggingFaceFileIO.ts" + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" } }, { - "kind": "method", - "name": "canSendFile", + "kind": "field", + "name": "URL_PREFIX", + "type": { + "text": "string" + }, "privacy": "private", "static": true, - "parameters": [ - { - "name": "_", - "optional": true, - "type": { - "text": "string" - } - }, - { - "name": "files", - "optional": true, - "type": { - "text": "File[]" - } - } - ], - "inheritedFrom": { - "name": "HuggingFaceFileIO", - "module": "src/services/huggingFace/huggingFaceFileIO.ts" - } + "default": "'https://api-inference.huggingface.co/models/'" + }, + { + "kind": "field", + "name": "introPanelMarkUp", + "default": "`\n
Hugging Face
\n

First message may take an extented amount of time to complete as the model needs to be initialized.

`" + }, + { + "kind": "field", + "name": "permittedErrorPrefixes", + "type": { + "text": "array" + }, + "default": "['Authorization header']" + }, + { + "kind": "field", + "name": "url", + "type": { + "text": "string" + }, + "default": "`${HuggingFaceIO.URL_PREFIX}${defaultModel}`" + }, + { + "kind": "field", + "name": "textInputPlaceholderText", + "type": { + "text": "string" + }, + "default": "textInputPlaceholderText" }, { "kind": "method", "name": "preprocessBody", "parameters": [ { - "name": "_", + "name": "body", "type": { - "text": "{}" + "text": "HuggingFaceServiceConfigObj" } }, { - "name": "__", + "name": "messages", "type": { "text": "MessageContentI[]" } }, { - "name": "files", + "name": "_", + "optional": true, "type": { "text": "File[]" } } - ], - "inheritedFrom": { - "name": "HuggingFaceIO", - "module": "src/services/huggingFace/huggingFaceIO.ts" - } + ] }, { "kind": "method", @@ -13336,7 +13265,7 @@ } }, { - "name": "_", + "name": "pMessages", "type": { "text": "MessageContentI[]" } @@ -13354,125 +13283,6 @@ "module": "src/services/utils/baseServiceIO.ts" } }, - { - "kind": "field", - "name": "canSendMessage", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "text", - "optional": true, - "type": { - "text": "string" - } - }, - { - "name": "files", - "optional": true, - "type": { - "text": "File[]" - } - }, - { - "name": "isProgrammatic", - "optional": true, - "type": { - "text": "boolean" - } - } - ], - "type": { - "text": "ValidateInput" - }, - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, - { - "kind": "field", - "name": "insertKeyPlaceholderText", - "type": { - "text": "string" - }, - "default": "'Hugging Face Token'", - "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" - } - }, - { - "kind": "field", - "name": "keyHelpUrl", - "type": { - "text": "string" - }, - "default": "'https://huggingface.co/settings/tokens'", - "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" - } - }, - { - "kind": "field", - "name": "URL_PREFIX", - "type": { - "text": "string" - }, - "privacy": "private", - "static": true, - "default": "'https://api-inference.huggingface.co/models/'", - "inheritedFrom": { - "name": "HuggingFaceIO", - "module": "src/services/huggingFace/huggingFaceIO.ts" - } - }, - { - "kind": "field", - "name": "introPanelMarkUp", - "default": "`\n
Hugging Face
\n

First message may take an extented amount of time to complete as the model needs to be initialized.

`", - "inheritedFrom": { - "name": "HuggingFaceIO", - "module": "src/services/huggingFace/huggingFaceIO.ts" - } - }, - { - "kind": "field", - "name": "permittedErrorPrefixes", - "type": { - "text": "array" - }, - "default": "['Authorization header']", - "inheritedFrom": { - "name": "HuggingFaceIO", - "module": "src/services/huggingFace/huggingFaceIO.ts" - } - }, - { - "kind": "field", - "name": "url", - "type": { - "text": "string" - }, - "default": "`${HuggingFaceIO.URL_PREFIX}${defaultModel}`", - "inheritedFrom": { - "name": "HuggingFaceIO", - "module": "src/services/huggingFace/huggingFaceIO.ts" - } - }, - { - "kind": "field", - "name": "textInputPlaceholderText", - "type": { - "text": "string" - }, - "default": "textInputPlaceholderText", - "inheritedFrom": { - "name": "HuggingFaceIO", - "module": "src/services/huggingFace/huggingFaceIO.ts" - } - }, { "kind": "field", "name": "key", @@ -13664,6 +13474,42 @@ "module": "src/services/utils/baseServiceIO.ts" } }, + { + "kind": "field", + "name": "canSendMessage", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "text", + "optional": true, + "type": { + "text": "string" + } + }, + { + "name": "files", + "optional": true, + "type": { + "text": "File[]" + } + }, + { + "name": "isProgrammatic", + "optional": true, + "type": { + "text": "boolean" + } + } + ], + "type": { + "text": "ValidateInput" + }, + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, { "kind": "field", "name": "fileTypes", @@ -13936,50 +13782,85 @@ } ], "superclass": { - "name": "HuggingFaceFileIO", - "module": "/src/services/huggingFace/huggingFaceFileIO" + "name": "DirectServiceIO", + "module": "/src/services/utils/directServiceIO" } } ], "exports": [ { "kind": "js", - "name": "HuggingFaceImageClassificationIO", + "name": "HuggingFaceIO", "declaration": { - "name": "HuggingFaceImageClassificationIO", - "module": "src/services/huggingFace/huggingFaceImageClassificationIO.ts" + "name": "HuggingFaceIO", + "module": "src/services/huggingFace/huggingFaceIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/huggingFace/huggingFaceQuestionAnswerIO.ts", + "path": "src/services/huggingFace/huggingFaceImageClassificationIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "HuggingFaceQuestionAnswerIO", + "name": "HuggingFaceImageClassificationIO", "members": [ + { + "kind": "method", + "name": "extractPollResultData", + "return": { + "type": { + "text": "PollResult" + } + }, + "parameters": [ + { + "name": "result", + "type": { + "text": "HuggingFaceClassificationResult" + } + } + ] + }, { "kind": "field", - "name": "permittedErrorPrefixes", + "name": "isTextInputDisabled", "type": { - "text": "array" + "text": "boolean" }, - "default": "['Authorization header', 'Error in']", + "default": "true", "inheritedFrom": { - "name": "HuggingFaceIO", - "module": "src/services/huggingFace/huggingFaceIO.ts" + "name": "HuggingFaceFileIO", + "module": "src/services/huggingFace/huggingFaceFileIO.ts" } }, { - "kind": "field", - "name": "context", - "type": { - "text": "string" - }, - "privacy": "private" + "kind": "method", + "name": "canSendFile", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "_", + "optional": true, + "type": { + "text": "string" + } + }, + { + "name": "files", + "optional": true, + "type": { + "text": "File[]" + } + } + ], + "inheritedFrom": { + "name": "HuggingFaceFileIO", + "module": "src/services/huggingFace/huggingFaceFileIO.ts" + } }, { "kind": "method", @@ -13988,14 +13869,20 @@ { "name": "_", "type": { - "text": "HuggingFaceQuestionAnswerConfig" + "text": "{}" } }, { - "name": "messages", + "name": "__", "type": { "text": "MessageContentI[]" } + }, + { + "name": "files", + "type": { + "text": "File[]" + } } ], "inheritedFrom": { @@ -14005,20 +13892,64 @@ }, { "kind": "method", - "name": "extractResultData", - "return": { - "type": { - "text": "Promise" + "name": "callServiceAPI", + "parameters": [ + { + "name": "messages", + "type": { + "text": "Messages" + } + }, + { + "name": "_", + "type": { + "text": "MessageContentI[]" + } + }, + { + "name": "files", + "optional": true, + "type": { + "text": "File[]" + } } - }, + ], + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, + { + "kind": "field", + "name": "canSendMessage", + "privacy": "private", + "static": true, "parameters": [ { - "name": "result", + "name": "text", + "optional": true, "type": { - "text": "HuggingFaceQuestionAnswerResult" + "text": "string" + } + }, + { + "name": "files", + "optional": true, + "type": { + "text": "File[]" + } + }, + { + "name": "isProgrammatic", + "optional": true, + "type": { + "text": "boolean" } } ], + "type": { + "text": "ValidateInput" + }, "inheritedFrom": { "name": "BaseServiceIO", "module": "src/services/utils/baseServiceIO.ts" @@ -14071,6 +14002,18 @@ "module": "src/services/huggingFace/huggingFaceIO.ts" } }, + { + "kind": "field", + "name": "permittedErrorPrefixes", + "type": { + "text": "array" + }, + "default": "['Authorization header']", + "inheritedFrom": { + "name": "HuggingFaceIO", + "module": "src/services/huggingFace/huggingFaceIO.ts" + } + }, { "kind": "field", "name": "url", @@ -14095,35 +14038,6 @@ "module": "src/services/huggingFace/huggingFaceIO.ts" } }, - { - "kind": "method", - "name": "callServiceAPI", - "parameters": [ - { - "name": "messages", - "type": { - "text": "Messages" - } - }, - { - "name": "pMessages", - "type": { - "text": "MessageContentI[]" - } - }, - { - "name": "files", - "optional": true, - "type": { - "text": "File[]" - } - } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, { "kind": "field", "name": "key", @@ -14315,42 +14229,6 @@ "module": "src/services/utils/baseServiceIO.ts" } }, - { - "kind": "field", - "name": "canSendMessage", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "text", - "optional": true, - "type": { - "text": "string" - } - }, - { - "name": "files", - "optional": true, - "type": { - "text": "File[]" - } - }, - { - "name": "isProgrammatic", - "optional": true, - "type": { - "text": "boolean" - } - } - ], - "type": { - "text": "ValidateInput" - }, - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, { "kind": "field", "name": "fileTypes", @@ -14591,6 +14469,27 @@ "module": "src/services/utils/baseServiceIO.ts" } }, + { + "kind": "method", + "name": "extractResultData", + "return": { + "type": { + "text": "Promise" + } + }, + "parameters": [ + { + "name": "result", + "type": { + "text": "any | Response" + } + } + ], + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, { "kind": "method", "name": "isWebModel", @@ -14602,31 +14501,73 @@ } ], "superclass": { - "name": "HuggingFaceIO", - "module": "/src/services/huggingFace/huggingFaceIO" + "name": "HuggingFaceFileIO", + "module": "/src/services/huggingFace/huggingFaceFileIO" } } ], "exports": [ { "kind": "js", - "name": "HuggingFaceQuestionAnswerIO", + "name": "HuggingFaceImageClassificationIO", "declaration": { - "name": "HuggingFaceQuestionAnswerIO", - "module": "src/services/huggingFace/huggingFaceQuestionAnswerIO.ts" + "name": "HuggingFaceImageClassificationIO", + "module": "src/services/huggingFace/huggingFaceImageClassificationIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/huggingFace/huggingFaceSummarizationIO.ts", + "path": "src/services/huggingFace/huggingFaceQuestionAnswerIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "HuggingFaceSummarizationIO", + "name": "HuggingFaceQuestionAnswerIO", "members": [ + { + "kind": "field", + "name": "permittedErrorPrefixes", + "type": { + "text": "array" + }, + "default": "['Authorization header', 'Error in']", + "inheritedFrom": { + "name": "HuggingFaceIO", + "module": "src/services/huggingFace/huggingFaceIO.ts" + } + }, + { + "kind": "field", + "name": "context", + "type": { + "text": "string" + }, + "privacy": "private" + }, + { + "kind": "method", + "name": "preprocessBody", + "parameters": [ + { + "name": "_", + "type": { + "text": "HuggingFaceQuestionAnswerConfig" + } + }, + { + "name": "messages", + "type": { + "text": "MessageContentI[]" + } + } + ], + "inheritedFrom": { + "name": "HuggingFaceIO", + "module": "src/services/huggingFace/huggingFaceIO.ts" + } + }, { "kind": "method", "name": "extractResultData", @@ -14639,7 +14580,7 @@ { "name": "result", "type": { - "text": "HuggingFaceSummarizationResult" + "text": "HuggingFaceQuestionAnswerResult" } } ], @@ -14695,18 +14636,6 @@ "module": "src/services/huggingFace/huggingFaceIO.ts" } }, - { - "kind": "field", - "name": "permittedErrorPrefixes", - "type": { - "text": "array" - }, - "default": "['Authorization header']", - "inheritedFrom": { - "name": "HuggingFaceIO", - "module": "src/services/huggingFace/huggingFaceIO.ts" - } - }, { "kind": "field", "name": "url", @@ -14731,35 +14660,6 @@ "module": "src/services/huggingFace/huggingFaceIO.ts" } }, - { - "kind": "method", - "name": "preprocessBody", - "parameters": [ - { - "name": "body", - "type": { - "text": "HuggingFaceServiceConfigObj" - } - }, - { - "name": "messages", - "type": { - "text": "MessageContentI[]" - } - }, - { - "name": "_", - "optional": true, - "type": { - "text": "File[]" - } - } - ], - "inheritedFrom": { - "name": "HuggingFaceIO", - "module": "src/services/huggingFace/huggingFaceIO.ts" - } - }, { "kind": "method", "name": "callServiceAPI", @@ -15275,22 +15175,22 @@ "exports": [ { "kind": "js", - "name": "HuggingFaceSummarizationIO", + "name": "HuggingFaceQuestionAnswerIO", "declaration": { - "name": "HuggingFaceSummarizationIO", - "module": "src/services/huggingFace/huggingFaceSummarizationIO.ts" + "name": "HuggingFaceQuestionAnswerIO", + "module": "src/services/huggingFace/huggingFaceQuestionAnswerIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/huggingFace/huggingFaceTextGenerationIO.ts", + "path": "src/services/huggingFace/huggingFaceSummarizationIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "HuggingFaceTextGenerationIO", + "name": "HuggingFaceSummarizationIO", "members": [ { "kind": "method", @@ -15304,7 +15204,7 @@ { "name": "result", "type": { - "text": "HuggingFaceTextGenerationResult" + "text": "HuggingFaceSummarizationResult" } } ], @@ -15940,22 +15840,22 @@ "exports": [ { "kind": "js", - "name": "HuggingFaceTextGenerationIO", + "name": "HuggingFaceSummarizationIO", "declaration": { - "name": "HuggingFaceTextGenerationIO", - "module": "src/services/huggingFace/huggingFaceTextGenerationIO.ts" + "name": "HuggingFaceSummarizationIO", + "module": "src/services/huggingFace/huggingFaceSummarizationIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/huggingFace/huggingFaceTranslationIO.ts", + "path": "src/services/huggingFace/huggingFaceTextGenerationIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "HuggingFaceTranslationIO", + "name": "HuggingFaceTextGenerationIO", "members": [ { "kind": "method", @@ -15969,7 +15869,7 @@ { "name": "result", "type": { - "text": "HuggingFaceTranslationResult" + "text": "HuggingFaceTextGenerationResult" } } ], @@ -16605,30 +16505,51 @@ "exports": [ { "kind": "js", - "name": "HuggingFaceTranslationIO", + "name": "HuggingFaceTextGenerationIO", "declaration": { - "name": "HuggingFaceTranslationIO", - "module": "src/services/huggingFace/huggingFaceTranslationIO.ts" + "name": "HuggingFaceTextGenerationIO", + "module": "src/services/huggingFace/huggingFaceTextGenerationIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/openAI/openAIAssistantIO.ts", + "path": "src/services/huggingFace/huggingFaceTranslationIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "OpenAIAssistantIO", + "name": "HuggingFaceTranslationIO", "members": [ + { + "kind": "method", + "name": "extractResultData", + "return": { + "type": { + "text": "Promise" + } + }, + "parameters": [ + { + "name": "result", + "type": { + "text": "HuggingFaceTranslationResult" + } + } + ], + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, { "kind": "field", "name": "insertKeyPlaceholderText", "type": { "text": "string" }, - "default": "'OpenAI API Key'", + "default": "'Hugging Face Token'", "inheritedFrom": { "name": "DirectServiceIO", "module": "src/services/utils/directServiceIO.ts" @@ -16640,7 +16561,7 @@ "type": { "text": "string" }, - "default": "'https://platform.openai.com/account/api-keys'", + "default": "'https://huggingface.co/settings/tokens'", "inheritedFrom": { "name": "DirectServiceIO", "module": "src/services/utils/directServiceIO.ts" @@ -16648,49 +16569,26 @@ }, { "kind": "field", - "name": "url", - "type": { - "text": "string" - }, - "default": "''" - }, - { - "kind": "field", - "name": "THREAD_PREFIX", - "type": { - "text": "string" - }, - "privacy": "private", - "static": true, - "default": "'https://api.openai.com/v1/threads'" - }, - { - "kind": "field", - "name": "NEW_ASSISTANT_URL", + "name": "URL_PREFIX", "type": { "text": "string" }, "privacy": "private", "static": true, - "default": "'https://api.openai.com/v1/assistants'" - }, - { - "kind": "field", - "name": "POLLING_TIMEOUT_MS", - "type": { - "text": "number" - }, - "privacy": "private", - "static": true, - "default": "800" + "default": "'https://api-inference.huggingface.co/models/'", + "inheritedFrom": { + "name": "HuggingFaceIO", + "module": "src/services/huggingFace/huggingFaceIO.ts" + } }, { "kind": "field", - "name": "_functionHandler", - "type": { - "text": "AssistantFunctionHandler | undefined" - }, - "privacy": "private" + "name": "introPanelMarkUp", + "default": "`\n
Hugging Face
\n

First message may take an extented amount of time to complete as the model needs to be initialized.

`", + "inheritedFrom": { + "name": "HuggingFaceIO", + "module": "src/services/huggingFace/huggingFaceIO.ts" + } }, { "kind": "field", @@ -16698,122 +16596,64 @@ "type": { "text": "array" }, - "default": "['Incorrect']" - }, - { - "kind": "field", - "name": "messages", - "type": { - "text": "Messages | undefined" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "run_id", - "type": { - "text": "string | undefined" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "searchedForThreadId", - "type": { - "text": "boolean" - }, - "privacy": "private", - "default": "false" + "default": "['Authorization header']", + "inheritedFrom": { + "name": "HuggingFaceIO", + "module": "src/services/huggingFace/huggingFaceIO.ts" + } }, { "kind": "field", - "name": "config", + "name": "url", "type": { - "text": "OpenAIAssistant" + "text": "string" }, - "privacy": "private", - "default": "{}" + "default": "`${HuggingFaceIO.URL_PREFIX}${defaultModel}`", + "inheritedFrom": { + "name": "HuggingFaceIO", + "module": "src/services/huggingFace/huggingFaceIO.ts" + } }, { "kind": "field", - "name": "newAssistantDetails", + "name": "textInputPlaceholderText", "type": { - "text": "OpenAINewAssistant" + "text": "string" }, - "privacy": "private", - "default": "{model: 'gpt-4'}" - }, - { - "kind": "method", - "name": "processMessage", - "privacy": "private", - "parameters": [ - { - "name": "pMessages", - "type": { - "text": "MessageContentI[]" - } - }, - { - "name": "file_ids", - "optional": true, - "type": { - "text": "string[]" - } - } - ] + "default": "textInputPlaceholderText", + "inheritedFrom": { + "name": "HuggingFaceIO", + "module": "src/services/huggingFace/huggingFaceIO.ts" + } }, { "kind": "method", - "name": "createNewThreadMessages", - "privacy": "private", + "name": "preprocessBody", "parameters": [ { "name": "body", "type": { - "text": "OpenAIConverseBodyInternal" - } - }, - { - "name": "pMessages", - "type": { - "text": "MessageContentI[]" + "text": "HuggingFaceServiceConfigObj" } }, - { - "name": "file_ids", - "optional": true, - "type": { - "text": "string[]" - } - } - ] - }, - { - "kind": "method", - "name": "callService", - "privacy": "private", - "parameters": [ { "name": "messages", - "type": { - "text": "Messages" - } - }, - { - "name": "pMessages", "type": { "text": "MessageContentI[]" } }, { - "name": "file_ids", + "name": "_", "optional": true, "type": { - "text": "string[]" + "text": "File[]" } } - ] + ], + "inheritedFrom": { + "name": "HuggingFaceIO", + "module": "src/services/huggingFace/huggingFaceIO.ts" + } }, { "kind": "method", @@ -16844,120 +16684,6 @@ "module": "src/services/utils/baseServiceIO.ts" } }, - { - "kind": "method", - "name": "createNewAssistant", - "privacy": "private" - }, - { - "kind": "method", - "name": "searchPreviousMessagesForThreadId", - "privacy": "private", - "parameters": [ - { - "name": "messages", - "type": { - "text": "MessageContentI[]" - } - } - ] - }, - { - "kind": "method", - "name": "extractResultData", - "return": { - "type": { - "text": "Promise<{makingAnotherRequest: true}>" - } - }, - "parameters": [ - { - "name": "result", - "type": { - "text": "OpenAIAssistantInitReqResult" - } - } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, - { - "kind": "method", - "name": "assignThreadAndRun", - "privacy": "private", - "parameters": [ - { - "name": "result", - "type": { - "text": "OpenAIAssistantInitReqResult" - } - } - ] - }, - { - "kind": "method", - "name": "extractPollResultData", - "return": { - "type": { - "text": "PollResult" - } - }, - "parameters": [ - { - "name": "result", - "type": { - "text": "OpenAIRunResult" - } - } - ] - }, - { - "kind": "method", - "name": "handleTools", - "privacy": "private", - "return": { - "type": { - "text": "PollResult" - } - }, - "parameters": [ - { - "name": "toolCalls", - "type": { - "text": "ToolCalls" - } - } - ] - }, - { - "kind": "field", - "name": "headers", - "type": { - "text": "object" - }, - "default": "{}" - }, - { - "kind": "field", - "type": { - "text": "string" - }, - "default": "'assistants=v1'" - }, - { - "kind": "field", - "name": "maxMessages", - "type": { - "text": "number | undefined" - }, - "default": "1", - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, { "kind": "field", "name": "key", @@ -17230,6 +16956,17 @@ "module": "src/services/utils/baseServiceIO.ts" } }, + { + "kind": "field", + "name": "maxMessages", + "type": { + "text": "number | undefined" + }, + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, { "kind": "field", "name": "demo", @@ -17425,30 +17162,30 @@ } ], "superclass": { - "name": "DirectServiceIO", - "module": "/src/services/utils/directServiceIO" + "name": "HuggingFaceIO", + "module": "/src/services/huggingFace/huggingFaceIO" } } ], "exports": [ { "kind": "js", - "name": "OpenAIAssistantIO", + "name": "HuggingFaceTranslationIO", "declaration": { - "name": "OpenAIAssistantIO", - "module": "src/services/openAI/openAIAssistantIO.ts" + "name": "HuggingFaceTranslationIO", + "module": "src/services/huggingFace/huggingFaceTranslationIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/openAI/openAIChatIO.ts", + "path": "src/services/openAI/openAIAssistantIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "OpenAIChatIO", + "name": "OpenAIAssistantIO", "members": [ { "kind": "field", @@ -17480,7 +17217,45 @@ "type": { "text": "string" }, - "default": "'https://api.openai.com/v1/chat/completions'" + "default": "''" + }, + { + "kind": "field", + "name": "THREAD_PREFIX", + "type": { + "text": "string" + }, + "privacy": "private", + "static": true, + "default": "'https://api.openai.com/v1/threads'" + }, + { + "kind": "field", + "name": "NEW_ASSISTANT_URL", + "type": { + "text": "string" + }, + "privacy": "private", + "static": true, + "default": "'https://api.openai.com/v1/assistants'" + }, + { + "kind": "field", + "name": "POLLING_TIMEOUT_MS", + "type": { + "text": "number" + }, + "privacy": "private", + "static": true, + "default": "800" + }, + { + "kind": "field", + "name": "_functionHandler", + "type": { + "text": "AssistantFunctionHandler | undefined" + }, + "privacy": "private" }, { "kind": "field", @@ -17492,75 +17267,123 @@ }, { "kind": "field", - "name": "_functionHandler", + "name": "messages", "type": { - "text": "ChatFunctionHandler | undefined" + "text": "Messages | undefined" }, "privacy": "private" }, { "kind": "field", - "name": "_systemMessage", + "name": "run_id", "type": { - "text": "SystemMessageInternal" + "text": "string | undefined" }, "privacy": "private" }, { - "kind": "method", - "name": "generateSystemMessage", + "kind": "field", + "name": "searchedForThreadId", + "type": { + "text": "boolean" + }, "privacy": "private", - "static": true, - "return": { - "type": { - "text": "SystemMessageInternal" - } + "default": "false" + }, + { + "kind": "field", + "name": "config", + "type": { + "text": "OpenAIAssistant" }, - "parameters": [ - { - "name": "system_prompt", - "type": { - "text": "string" - } - } - ] + "privacy": "private", + "default": "{}" + }, + { + "kind": "field", + "name": "newAssistantDetails", + "type": { + "text": "OpenAINewAssistant" + }, + "privacy": "private", + "default": "{model: 'gpt-4'}" + }, + { + "kind": "field", + "name": "shouldFetchHistory", + "type": { + "text": "boolean" + }, + "privacy": "private", + "default": "false" + }, + { + "kind": "field", + "name": "fetchHistory", + "type": { + "text": "() => Promise | undefined" + } }, { "kind": "method", - "name": "cleanConfig", + "name": "fetchHistoryFunc", + "privacy": "private" + }, + { + "kind": "method", + "name": "processMessage", "privacy": "private", "parameters": [ { - "name": "config", + "name": "pMessages", "type": { - "text": "OpenAIChat" + "text": "MessageContentI[]" + } + }, + { + "name": "file_ids", + "optional": true, + "type": { + "text": "string[]" } } ] }, { "kind": "method", - "name": "getContent", + "name": "createNewThreadMessages", "privacy": "private", - "static": true, "parameters": [ { - "name": "message", + "name": "body", "type": { - "text": "MessageContentI" + "text": "OpenAIConverseBodyInternal" + } + }, + { + "name": "pMessages", + "type": { + "text": "MessageContentI[]" + } + }, + { + "name": "file_ids", + "optional": true, + "type": { + "text": "string[]" } } ] }, { "kind": "method", - "name": "preprocessBody", + "name": "callService", "privacy": "private", "parameters": [ { - "name": "body", + "name": "messages", "type": { - "text": "OpenAIConverseBodyInternal" + "text": "Messages" } }, { @@ -17568,6 +17391,13 @@ "type": { "text": "MessageContentI[]" } + }, + { + "name": "file_ids", + "optional": true, + "type": { + "text": "string[]" + } } ] }, @@ -17586,6 +17416,13 @@ "type": { "text": "MessageContentI[]" } + }, + { + "name": "files", + "optional": true, + "type": { + "text": "File[]" + } } ], "inheritedFrom": { @@ -17593,33 +17430,37 @@ "module": "src/services/utils/baseServiceIO.ts" } }, + { + "kind": "method", + "name": "createNewAssistant", + "privacy": "private" + }, + { + "kind": "method", + "name": "searchPreviousMessagesForThreadId", + "privacy": "private", + "parameters": [ + { + "name": "messages", + "type": { + "text": "MessageContentI[]" + } + } + ] + }, { "kind": "method", "name": "extractResultData", "return": { "type": { - "text": "Promise" + "text": "Promise<{makingAnotherRequest: true}>" } }, "parameters": [ { "name": "result", "type": { - "text": "OpenAIConverseResult" - } - }, - { - "name": "fetchFunc", - "optional": true, - "type": { - "text": "FetchFunc" - } - }, - { - "name": "prevBody", - "optional": true, - "type": { - "text": "OpenAIChat" + "text": "OpenAIAssistantInitReqResult" } } ], @@ -17630,55 +17471,95 @@ }, { "kind": "method", - "name": "handleTools", + "name": "assignThreadAndRun", "privacy": "private", - "return": { - "type": { - "text": "Promise" + "parameters": [ + { + "name": "result", + "type": { + "text": "OpenAIAssistantInitReqResult" + } } - }, + ] + }, + { + "kind": "method", + "name": "getThreadMessages", + "privacy": "private", "parameters": [ { - "name": "message", + "name": "thread_id", "type": { - "text": "OpenAIMessage" + "text": "string" } }, { - "name": "fetchFunc", - "optional": true, + "name": "isInitial", + "default": "false" + } + ] + }, + { + "kind": "method", + "name": "extractPollResultData", + "return": { + "type": { + "text": "PollResult" + } + }, + "parameters": [ + { + "name": "result", "type": { - "text": "FetchFunc" + "text": "OpenAIRunResult" } - }, + } + ] + }, + { + "kind": "method", + "name": "handleTools", + "privacy": "private", + "return": { + "type": { + "text": "PollResult" + } + }, + "parameters": [ { - "name": "prevBody", - "optional": true, + "name": "toolCalls", "type": { - "text": "OpenAIChat" + "text": "ToolCalls" } } ] }, { "kind": "field", - "name": "maxMessages", + "name": "headers", "type": { - "text": "number | undefined" + "text": "object" }, - "default": "-1", - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } + "default": "{}" }, { "kind": "field", - "name": "model", "type": { "text": "string" }, - "default": "'gpt-3.5-turbo'" + "default": "'assistants=v1'" + }, + { + "kind": "field", + "name": "maxMessages", + "type": { + "text": "number | undefined" + }, + "default": "1", + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } }, { "kind": "field", @@ -18155,22 +18036,22 @@ "exports": [ { "kind": "js", - "name": "OpenAIChatIO", + "name": "OpenAIAssistantIO", "declaration": { - "name": "OpenAIChatIO", - "module": "src/services/openAI/openAIChatIO.ts" + "name": "OpenAIAssistantIO", + "module": "src/services/openAI/openAIAssistantIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/openAI/openAIImagesIO.ts", + "path": "src/services/openAI/openAIChatIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "OpenAIImagesIO", + "name": "OpenAIChatIO", "members": [ { "kind": "field", @@ -18198,133 +18079,107 @@ }, { "kind": "field", - "name": "IMAGE_GENERATION_URL", + "name": "url", "type": { "text": "string" }, - "privacy": "private", - "static": true, - "default": "'https://api.openai.com/v1/images/generations'" + "default": "'https://api.openai.com/v1/chat/completions'" }, { "kind": "field", - "name": "IMAGE_VARIATIONS_URL", + "name": "permittedErrorPrefixes", "type": { - "text": "string" + "text": "array" }, - "privacy": "private", - "static": true, - "default": "'https://api.openai.com/v1/images/variations'" + "default": "['Incorrect']" }, { "kind": "field", - "name": "IMAGE_EDIT_URL", + "name": "_functionHandler", "type": { - "text": "string" + "text": "ChatFunctionHandler | undefined" }, - "privacy": "private", - "static": true, - "default": "'https://api.openai.com/v1/images/edits'" + "privacy": "private" }, { "kind": "field", - "name": "introPanelMarkUp", - "default": "`\n
OpenAI DALL·E
\n

Insert text to generate an image.

\n

Upload 1 PNG image to generate its variation and optionally insert text to specify the change.

\n

Upload 2 PNG images where the second is a copy of the first with a transparent area where the edit should\n take place and text to specify the edit.

\n

Click here for more info.

`" + "name": "_streamToolCalls", + "type": { + "text": "ToolCalls | undefined" + }, + "privacy": "private" }, { "kind": "field", - "name": "url", + "name": "asyncCallInProgress", "type": { - "text": "string" + "text": "boolean" }, - "default": "''" + "default": "false" }, { "kind": "field", - "name": "permittedErrorPrefixes", + "name": "_systemMessage", "type": { - "text": "array" + "text": "SystemMessageInternal" }, - "default": "['Incorrect', 'Invalid input image']" + "privacy": "private" }, { "kind": "method", - "name": "canFileSendMessage", + "name": "generateSystemMessage", "privacy": "private", "static": true, + "return": { + "type": { + "text": "SystemMessageInternal" + } + }, "parameters": [ { - "name": "text", - "optional": true, + "name": "system_prompt", "type": { "text": "string" } - }, - { - "name": "files", - "optional": true, - "type": { - "text": "File[]" - } } ] }, { "kind": "method", - "name": "createFormDataBody", + "name": "cleanConfig", "privacy": "private", - "static": true, "parameters": [ { - "name": "body", - "type": { - "text": "OpenAIImages" - } - }, - { - "name": "image", - "type": { - "text": "File" - } - }, - { - "name": "mask", - "optional": true, + "name": "config", "type": { - "text": "File" + "text": "OpenAIChat" } } ] }, { "kind": "method", - "name": "preprocessBody", + "name": "getContent", "privacy": "private", + "static": true, "parameters": [ { - "name": "body", - "type": { - "text": "OpenAIImages" - } - }, - { - "name": "lastMessage", - "optional": true, + "name": "message", "type": { - "text": "string" + "text": "MessageContentI" } } ] }, { "kind": "method", - "name": "callApiWithImage", + "name": "preprocessBody", "privacy": "private", "parameters": [ { - "name": "messages", + "name": "body", "type": { - "text": "Messages" + "text": "OpenAIConverseBodyInternal" } }, { @@ -18332,12 +18187,6 @@ "type": { "text": "MessageContentI[]" } - }, - { - "name": "files", - "type": { - "text": "File[]" - } } ] }, @@ -18356,13 +18205,6 @@ "type": { "text": "MessageContentI[]" } - }, - { - "name": "files", - "optional": true, - "type": { - "text": "File[]" - } } ], "inheritedFrom": { @@ -18375,14 +18217,28 @@ "name": "extractResultData", "return": { "type": { - "text": "Promise" + "text": "Promise" } }, "parameters": [ { "name": "result", "type": { - "text": "OpenAIImageResult" + "text": "OpenAIConverseResult" + } + }, + { + "name": "fetchFunc", + "optional": true, + "type": { + "text": "FetchFunc" + } + }, + { + "name": "prevBody", + "optional": true, + "type": { + "text": "OpenAIChat" } } ], @@ -18392,41 +18248,84 @@ } }, { - "kind": "field", - "name": "canSendMessage", + "kind": "method", + "name": "extractStreamResult", "privacy": "private", - "static": true, "parameters": [ { - "name": "text", + "name": "choice", + "type": { + "text": "ResultChoice" + } + }, + { + "name": "fetchFunc", "optional": true, "type": { - "text": "string" + "text": "FetchFunc" } }, { - "name": "files", + "name": "prevBody", "optional": true, "type": { - "text": "File[]" + "text": "OpenAIChat" + } + } + ] + }, + { + "kind": "method", + "name": "handleTools", + "privacy": "private", + "return": { + "type": { + "text": "Promise" + } + }, + "parameters": [ + { + "name": "tools", + "type": { + "text": "ToolAPI" } }, { - "name": "isProgrammatic", + "name": "fetchFunc", "optional": true, "type": { - "text": "boolean" + "text": "FetchFunc" + } + }, + { + "name": "prevBody", + "optional": true, + "type": { + "text": "OpenAIChat" } } - ], + ] + }, + { + "kind": "field", + "name": "maxMessages", "type": { - "text": "ValidateInput" + "text": "number | undefined" }, + "default": "-1", "inheritedFrom": { "name": "BaseServiceIO", "module": "src/services/utils/baseServiceIO.ts" } }, + { + "kind": "field", + "name": "model", + "type": { + "text": "string" + }, + "default": "'gpt-3.5-turbo'" + }, { "kind": "field", "name": "key", @@ -18620,11 +18519,35 @@ }, { "kind": "field", - "name": "fileTypes", + "name": "canSendMessage", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "text", + "optional": true, + "type": { + "text": "string" + } + }, + { + "name": "files", + "optional": true, + "type": { + "text": "File[]" + } + }, + { + "name": "isProgrammatic", + "optional": true, + "type": { + "text": "boolean" + } + } + ], "type": { - "text": "ServiceFileTypes" + "text": "ValidateInput" }, - "default": "{}", "inheritedFrom": { "name": "BaseServiceIO", "module": "src/services/utils/baseServiceIO.ts" @@ -18632,10 +18555,11 @@ }, { "kind": "field", - "name": "camera", + "name": "fileTypes", "type": { - "text": "CameraFilesServiceConfig | undefined" + "text": "ServiceFileTypes" }, + "default": "{}", "inheritedFrom": { "name": "BaseServiceIO", "module": "src/services/utils/baseServiceIO.ts" @@ -18643,9 +18567,9 @@ }, { "kind": "field", - "name": "recordAudio", + "name": "camera", "type": { - "text": "MicrophoneFilesServiceConfig | undefined" + "text": "CameraFilesServiceConfig | undefined" }, "inheritedFrom": { "name": "BaseServiceIO", @@ -18654,9 +18578,9 @@ }, { "kind": "field", - "name": "totalMessagesMaxCharLength", + "name": "recordAudio", "type": { - "text": "number | undefined" + "text": "MicrophoneFilesServiceConfig | undefined" }, "inheritedFrom": { "name": "BaseServiceIO", @@ -18665,7 +18589,7 @@ }, { "kind": "field", - "name": "maxMessages", + "name": "totalMessagesMaxCharLength", "type": { "text": "number | undefined" }, @@ -18877,22 +18801,22 @@ "exports": [ { "kind": "js", - "name": "OpenAIImagesIO", + "name": "OpenAIChatIO", "declaration": { - "name": "OpenAIImagesIO", - "module": "src/services/openAI/openAIImagesIO.ts" + "name": "OpenAIChatIO", + "module": "src/services/openAI/openAIChatIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/openAI/openAISpeechToTextIO.ts", + "path": "src/services/openAI/openAIImagesIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "OpenAISpeechToTextIO", + "name": "OpenAIImagesIO", "members": [ { "kind": "field", @@ -18920,38 +18844,38 @@ }, { "kind": "field", - "name": "AUDIO_TRANSCRIPTIONS_URL", + "name": "IMAGE_GENERATION_URL", "type": { "text": "string" }, "privacy": "private", "static": true, - "default": "'https://api.openai.com/v1/audio/transcriptions'" + "default": "'https://api.openai.com/v1/images/generations'" }, { "kind": "field", - "name": "AUDIO_TRANSLATIONS_URL", + "name": "IMAGE_VARIATIONS_URL", "type": { "text": "string" }, "privacy": "private", "static": true, - "default": "'https://api.openai.com/v1/audio/translations'" + "default": "'https://api.openai.com/v1/images/variations'" }, { "kind": "field", - "name": "DEFAULT_MODEL", + "name": "IMAGE_EDIT_URL", "type": { "text": "string" }, "privacy": "private", "static": true, - "default": "'whisper-1'" + "default": "'https://api.openai.com/v1/images/edits'" }, { "kind": "field", "name": "introPanelMarkUp", - "default": "`\n
OpenAI : Speech To Text
\n

Upload an audio file to transcribe it into text. You can optionally provide text to guide the audio\n processing.\n

Click here for more info.

`" + "default": "`\n
OpenAI DALL·E
\n

Insert text to generate an image.

\n

Upload 1 PNG image to generate its variation and optionally insert text to specify the change.

\n

Upload 2 PNG images where the second is a copy of the first with a transparent area where the edit should\n take place and text to specify the edit.

\n

Click here for more info.

`" }, { "kind": "field", @@ -18967,32 +18891,16 @@ "type": { "text": "array" }, - "default": "['Invalid']" - }, - { - "kind": "field", - "name": "textInputPlaceholderText", - "type": { - "text": "string" - }, - "default": "'Upload an audio file'" - }, - { - "kind": "field", - "name": "_service_url", - "type": { - "text": "string" - }, - "privacy": "private" + "default": "['Incorrect', 'Invalid input image']" }, { "kind": "method", - "name": "canSendFileMessage", + "name": "canFileSendMessage", "privacy": "private", "static": true, "parameters": [ { - "name": "_", + "name": "text", "optional": true, "type": { "text": "string" @@ -19009,68 +18917,73 @@ }, { "kind": "method", - "name": "processConfig", + "name": "createFormDataBody", "privacy": "private", + "static": true, "parameters": [ { - "name": "config", - "optional": true, + "name": "body", "type": { - "text": "OpenAISpeechToText" + "text": "OpenAIImages" } - } - ] - }, - { - "kind": "method", - "name": "cleanConfig", - "privacy": "private", - "static": true, - "parameters": [ + }, { - "name": "config", + "name": "image", "type": { - "text": "OpenAISpeechToText" + "text": "File" + } + }, + { + "name": "mask", + "optional": true, + "type": { + "text": "File" } } ] }, { "kind": "method", - "name": "createFormDataBody", + "name": "preprocessBody", "privacy": "private", - "static": true, "parameters": [ { "name": "body", "type": { - "text": "OpenAISpeechToText" + "text": "OpenAIImages" } }, { - "name": "audio", + "name": "lastMessage", + "optional": true, "type": { - "text": "File" + "text": "string" } } ] }, { "kind": "method", - "name": "preprocessBody", + "name": "callApiWithImage", "privacy": "private", "parameters": [ { - "name": "body", + "name": "messages", "type": { - "text": "OpenAISpeechToText" + "text": "Messages" } }, { - "name": "messages", + "name": "pMessages", "type": { "text": "MessageContentI[]" } + }, + { + "name": "files", + "type": { + "text": "File[]" + } } ] }, @@ -19115,7 +19028,7 @@ { "name": "result", "type": { - "text": "OpenAIAudioResult" + "text": "OpenAIImageResult" } } ], @@ -19124,18 +19037,6 @@ "module": "src/services/utils/baseServiceIO.ts" } }, - { - "kind": "field", - "name": "model" - }, - { - "kind": "field", - "name": "response_format", - "type": { - "text": "string" - }, - "default": "'json'" - }, { "kind": "field", "name": "canSendMessage", @@ -19622,22 +19523,22 @@ "exports": [ { "kind": "js", - "name": "OpenAISpeechToTextIO", + "name": "OpenAIImagesIO", "declaration": { - "name": "OpenAISpeechToTextIO", - "module": "src/services/openAI/openAISpeechToTextIO.ts" + "name": "OpenAIImagesIO", + "module": "src/services/openAI/openAIImagesIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/openAI/openAITextToSpeechIO.ts", + "path": "src/services/openAI/openAISpeechToTextIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "OpenAITextToSpeechIO", + "name": "OpenAISpeechToTextIO", "members": [ { "kind": "field", @@ -19665,19 +19566,23 @@ }, { "kind": "field", - "name": "url", + "name": "AUDIO_TRANSCRIPTIONS_URL", "type": { "text": "string" }, - "default": "'https://api.openai.com/v1/audio/speech'" + "privacy": "private", + "static": true, + "default": "'https://api.openai.com/v1/audio/transcriptions'" }, { "kind": "field", - "name": "permittedErrorPrefixes", + "name": "AUDIO_TRANSLATIONS_URL", "type": { - "text": "array" + "text": "string" }, - "default": "['Invalid']" + "privacy": "private", + "static": true, + "default": "'https://api.openai.com/v1/audio/translations'" }, { "kind": "field", @@ -19687,17 +19592,28 @@ }, "privacy": "private", "static": true, - "default": "'tts-1'" + "default": "'whisper-1'" }, { "kind": "field", - "name": "DEFAULT_VOIDE", + "name": "introPanelMarkUp", + "default": "`\n
OpenAI : Speech To Text
\n

Upload an audio file to transcribe it into text. You can optionally provide text to guide the audio\n processing.\n

Click here for more info.

`" + }, + { + "kind": "field", + "name": "url", "type": { "text": "string" }, - "privacy": "private", - "static": true, - "default": "'alloy'" + "default": "''" + }, + { + "kind": "field", + "name": "permittedErrorPrefixes", + "type": { + "text": "array" + }, + "default": "['Invalid']" }, { "kind": "field", @@ -19705,217 +19621,126 @@ "type": { "text": "string" }, - "default": "'Insert text to generate audio'" + "default": "'Upload an audio file'" }, { "kind": "field", - "name": "introPanelMarkUp", - "default": "`\n
OpenAI : Text To Speech
\n

Generate an audio file based on your text input.

\n

Click here for more information.

`" + "name": "_service_url", + "type": { + "text": "string" + }, + "privacy": "private" }, { "kind": "method", - "name": "preprocessBody", + "name": "canSendFileMessage", "privacy": "private", + "static": true, "parameters": [ { - "name": "body", + "name": "_", + "optional": true, "type": { - "text": "OpenAITextToSpeech" + "text": "string" } }, { - "name": "messages", + "name": "files", + "optional": true, "type": { - "text": "MessageContentI[]" + "text": "File[]" } } ] }, { "kind": "method", - "name": "callServiceAPI", - "parameters": [ - { - "name": "messages", - "type": { - "text": "Messages" - } - }, - { - "name": "pMessages", - "type": { - "text": "MessageContentI[]" - } - } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, - { - "kind": "method", - "name": "extractResultData", - "return": { - "type": { - "text": "Promise" - } - }, + "name": "processConfig", + "privacy": "private", "parameters": [ { - "name": "result", + "name": "config", + "optional": true, "type": { - "text": "OpenAITextToSpeechResult" + "text": "OpenAISpeechToText" } } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, - { - "kind": "field", - "name": "model" - }, - { - "kind": "field", - "name": "voice" - }, - { - "kind": "field", - "name": "response_format", - "type": { - "text": "string" - }, - "default": "'mp3'" - }, - { - "kind": "field", - "name": "key", - "type": { - "text": "string | undefined" - }, - "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" - } - }, - { - "kind": "field", - "name": "sessionId", - "type": { - "text": "string | undefined" - }, - "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" - } - }, - { - "kind": "field", - "name": "keyVerificationDetails", - "type": { - "text": "KeyVerificationDetails" - }, - "privacy": "private", - "default": "keyVerificationDetails", - "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" - } - }, - { - "kind": "field", - "name": "buildHeadersFunc", - "type": { - "text": "BuildHeadersFunc" - }, - "privacy": "private", - "default": "buildHeadersFunc", - "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" - } + ] }, { "kind": "method", - "name": "setApiKeyProperties", + "name": "cleanConfig", "privacy": "private", + "static": true, "parameters": [ { - "name": "apiKey", + "name": "config", "type": { - "text": "APIKey" + "text": "OpenAISpeechToText" } } - ], - "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" - } + ] }, { "kind": "method", - "name": "buildRequestSettings", + "name": "createFormDataBody", "privacy": "private", + "static": true, "parameters": [ { - "name": "key", + "name": "body", "type": { - "text": "string" + "text": "OpenAISpeechToText" } }, { - "name": "requestSettings", - "optional": true, + "name": "audio", "type": { - "text": "Request" + "text": "File" } } - ], - "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" - } + ] }, { "kind": "method", - "name": "keyAuthenticated", + "name": "preprocessBody", "privacy": "private", "parameters": [ { - "name": "onSuccess", + "name": "body", "type": { - "text": "() => void" + "text": "OpenAISpeechToText" } }, { - "name": "key", + "name": "messages", "type": { - "text": "string" + "text": "MessageContentI[]" } } - ], - "inheritedFrom": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" - } + ] }, { "kind": "method", - "name": "verifyKey", + "name": "callServiceAPI", "parameters": [ { - "name": "key", + "name": "messages", "type": { - "text": "string" + "text": "Messages" } }, { - "name": "keyVerificationHandlers", + "name": "pMessages", "type": { - "text": "KeyVerificationHandlers" + "text": "MessageContentI[]" + } + }, + { + "name": "files", + "optional": true, + "type": { + "text": "File[]" } } ], @@ -19926,32 +19751,20 @@ }, { "kind": "method", - "name": "isDirectConnection", - "privacy": "public", - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, - { - "kind": "field", - "name": "requestSettings", - "type": { - "text": "Request" - }, - "default": "{}", - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, - { - "kind": "field", - "name": "rawBody", - "type": { - "text": "any" + "name": "extractResultData", + "return": { + "type": { + "text": "Promise" + } }, - "default": "{}", + "parameters": [ + { + "name": "result", + "type": { + "text": "OpenAIAudioResult" + } + } + ], "inheritedFrom": { "name": "BaseServiceIO", "module": "src/services/utils/baseServiceIO.ts" @@ -19959,27 +19772,15 @@ }, { "kind": "field", - "name": "deepChat", - "type": { - "text": "DeepChat" - }, - "default": "deepChat", - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } + "name": "model" }, { "kind": "field", - "name": "validateConfigKey", + "name": "response_format", "type": { - "text": "boolean" + "text": "string" }, - "default": "false", - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } + "default": "'json'" }, { "kind": "field", @@ -20017,6 +19818,197 @@ "module": "src/services/utils/baseServiceIO.ts" } }, + { + "kind": "field", + "name": "key", + "type": { + "text": "string | undefined" + }, + "inheritedFrom": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" + } + }, + { + "kind": "field", + "name": "sessionId", + "type": { + "text": "string | undefined" + }, + "inheritedFrom": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" + } + }, + { + "kind": "field", + "name": "keyVerificationDetails", + "type": { + "text": "KeyVerificationDetails" + }, + "privacy": "private", + "default": "keyVerificationDetails", + "inheritedFrom": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" + } + }, + { + "kind": "field", + "name": "buildHeadersFunc", + "type": { + "text": "BuildHeadersFunc" + }, + "privacy": "private", + "default": "buildHeadersFunc", + "inheritedFrom": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" + } + }, + { + "kind": "method", + "name": "setApiKeyProperties", + "privacy": "private", + "parameters": [ + { + "name": "apiKey", + "type": { + "text": "APIKey" + } + } + ], + "inheritedFrom": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" + } + }, + { + "kind": "method", + "name": "buildRequestSettings", + "privacy": "private", + "parameters": [ + { + "name": "key", + "type": { + "text": "string" + } + }, + { + "name": "requestSettings", + "optional": true, + "type": { + "text": "Request" + } + } + ], + "inheritedFrom": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" + } + }, + { + "kind": "method", + "name": "keyAuthenticated", + "privacy": "private", + "parameters": [ + { + "name": "onSuccess", + "type": { + "text": "() => void" + } + }, + { + "name": "key", + "type": { + "text": "string" + } + } + ], + "inheritedFrom": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" + } + }, + { + "kind": "method", + "name": "verifyKey", + "parameters": [ + { + "name": "key", + "type": { + "text": "string" + } + }, + { + "name": "keyVerificationHandlers", + "type": { + "text": "KeyVerificationHandlers" + } + } + ], + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, + { + "kind": "method", + "name": "isDirectConnection", + "privacy": "public", + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, + { + "kind": "field", + "name": "requestSettings", + "type": { + "text": "Request" + }, + "default": "{}", + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, + { + "kind": "field", + "name": "rawBody", + "type": { + "text": "any" + }, + "default": "{}", + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, + { + "kind": "field", + "name": "deepChat", + "type": { + "text": "DeepChat" + }, + "default": "deepChat", + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, + { + "kind": "field", + "name": "validateConfigKey", + "type": { + "text": "boolean" + }, + "default": "false", + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, { "kind": "field", "name": "fileTypes", @@ -20276,22 +20268,22 @@ "exports": [ { "kind": "js", - "name": "OpenAITextToSpeechIO", + "name": "OpenAISpeechToTextIO", "declaration": { - "name": "OpenAITextToSpeechIO", - "module": "src/services/openAI/openAITextToSpeechIO.ts" + "name": "OpenAISpeechToTextIO", + "module": "src/services/openAI/openAISpeechToTextIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/stabilityAI/stabilityAIIO.ts", + "path": "src/services/openAI/openAITextToSpeechIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "StabilityAIIO", + "name": "OpenAITextToSpeechIO", "members": [ { "kind": "field", @@ -20299,7 +20291,7 @@ "type": { "text": "string" }, - "default": "'Stability AI API Key'", + "default": "'OpenAI API Key'", "inheritedFrom": { "name": "DirectServiceIO", "module": "src/services/utils/directServiceIO.ts" @@ -20311,19 +20303,138 @@ "type": { "text": "string" }, - "default": "'https://platform.stability.ai/docs/getting-started/authentication'", + "default": "'https://platform.openai.com/account/api-keys'", "inheritedFrom": { "name": "DirectServiceIO", "module": "src/services/utils/directServiceIO.ts" } }, + { + "kind": "field", + "name": "url", + "type": { + "text": "string" + }, + "default": "'https://api.openai.com/v1/audio/speech'" + }, { "kind": "field", "name": "permittedErrorPrefixes", "type": { "text": "array" }, - "default": "['Incorrect', 'invalid_']" + "default": "['Invalid']" + }, + { + "kind": "field", + "name": "DEFAULT_MODEL", + "type": { + "text": "string" + }, + "privacy": "private", + "static": true, + "default": "'tts-1'" + }, + { + "kind": "field", + "name": "DEFAULT_VOIDE", + "type": { + "text": "string" + }, + "privacy": "private", + "static": true, + "default": "'alloy'" + }, + { + "kind": "field", + "name": "textInputPlaceholderText", + "type": { + "text": "string" + }, + "default": "'Insert text to generate audio'" + }, + { + "kind": "field", + "name": "introPanelMarkUp", + "default": "`\n
OpenAI : Text To Speech
\n

Generate an audio file based on your text input.

\n

Click here for more information.

`" + }, + { + "kind": "method", + "name": "preprocessBody", + "privacy": "private", + "parameters": [ + { + "name": "body", + "type": { + "text": "OpenAITextToSpeech" + } + }, + { + "name": "messages", + "type": { + "text": "MessageContentI[]" + } + } + ] + }, + { + "kind": "method", + "name": "callServiceAPI", + "parameters": [ + { + "name": "messages", + "type": { + "text": "Messages" + } + }, + { + "name": "pMessages", + "type": { + "text": "MessageContentI[]" + } + } + ], + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, + { + "kind": "method", + "name": "extractResultData", + "return": { + "type": { + "text": "Promise" + } + }, + "parameters": [ + { + "name": "result", + "type": { + "text": "OpenAITextToSpeechResult" + } + } + ], + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, + { + "kind": "field", + "name": "model" + }, + { + "kind": "field", + "name": "voice" + }, + { + "kind": "field", + "name": "response_format", + "type": { + "text": "string" + }, + "default": "'mp3'" }, { "kind": "field", @@ -20770,35 +20881,6 @@ "module": "src/services/utils/baseServiceIO.ts" } }, - { - "kind": "method", - "name": "callServiceAPI", - "parameters": [ - { - "name": "messages", - "type": { - "text": "Messages" - } - }, - { - "name": "pMessages", - "type": { - "text": "MessageContentI[]" - } - }, - { - "name": "files", - "optional": true, - "type": { - "text": "File[]" - } - } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, { "kind": "method", "name": "callAPI", @@ -20821,27 +20903,6 @@ "module": "src/services/utils/baseServiceIO.ts" } }, - { - "kind": "method", - "name": "extractResultData", - "return": { - "type": { - "text": "Promise" - } - }, - "parameters": [ - { - "name": "result", - "type": { - "text": "any | Response" - } - } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, { "kind": "method", "name": "isWebModel", @@ -20861,200 +20922,23 @@ "exports": [ { "kind": "js", - "name": "StabilityAIIO", + "name": "OpenAITextToSpeechIO", "declaration": { - "name": "StabilityAIIO", - "module": "src/services/stabilityAI/stabilityAIIO.ts" + "name": "OpenAITextToSpeechIO", + "module": "src/services/openAI/openAITextToSpeechIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/stabilityAI/stabilityAIImageToImageIO.ts", + "path": "src/services/stabilityAI/stabilityAIIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "StabilityAIImageToImageIO", + "name": "StabilityAIIO", "members": [ - { - "kind": "field", - "name": "url", - "type": { - "text": "string" - }, - "default": "'https://api.stability.ai/v1/generation/stable-diffusion-v1-6/image-to-image'" - }, - { - "kind": "field", - "name": "_imageWeight", - "type": { - "text": "number | undefined" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "textInputPlaceholderText", - "type": { - "text": "string" - }, - "default": "'Describe image changes'" - }, - { - "kind": "field", - "name": "introPanelMarkUp", - "default": "`\n
Stability AI: Image to Image
\n

Upload an image to create a new one with the changes you have described.

\n

Click here for more info.

`" - }, - { - "kind": "method", - "name": "cleanConfig", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "config", - "type": { - "text": "StabilityAIImageToImage" - } - } - ] - }, - { - "kind": "method", - "name": "canSendFileTextMessage", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "text", - "optional": true, - "type": { - "text": "string" - } - }, - { - "name": "files", - "optional": true, - "type": { - "text": "File[]" - } - } - ] - }, - { - "kind": "method", - "name": "createFormDataBody", - "privacy": "private", - "parameters": [ - { - "name": "body", - "type": { - "text": "StabilityAIImageToImage" - } - }, - { - "name": "image", - "type": { - "text": "File" - } - }, - { - "name": "text", - "optional": true, - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "callServiceAPI", - "parameters": [ - { - "name": "messages", - "type": { - "text": "Messages" - } - }, - { - "name": "pMessages", - "type": { - "text": "MessageContentI[]" - } - }, - { - "name": "files", - "optional": true, - "type": { - "text": "File[]" - } - } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, - { - "kind": "method", - "name": "extractResultData", - "return": { - "type": { - "text": "Promise" - } - }, - "parameters": [ - { - "name": "result", - "type": { - "text": "StabilityAITextToImageResult" - } - } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, - { - "kind": "field", - "name": "canSendMessage", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "text", - "optional": true, - "type": { - "text": "string" - } - }, - { - "name": "files", - "optional": true, - "type": { - "text": "File[]" - } - }, - { - "name": "isProgrammatic", - "optional": true, - "type": { - "text": "boolean" - } - } - ], - "type": { - "text": "ValidateInput" - }, - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, { "kind": "field", "name": "insertKeyPlaceholderText", @@ -21085,11 +20969,7 @@ "type": { "text": "array" }, - "default": "['Incorrect', 'invalid_']", - "inheritedFrom": { - "name": "StabilityAIIO", - "module": "src/services/stabilityAI/stabilityAIIO.ts" - } + "default": "['Incorrect', 'invalid_']" }, { "kind": "field", @@ -21282,6 +21162,42 @@ "module": "src/services/utils/baseServiceIO.ts" } }, + { + "kind": "field", + "name": "canSendMessage", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "text", + "optional": true, + "type": { + "text": "string" + } + }, + { + "name": "files", + "optional": true, + "type": { + "text": "File[]" + } + }, + { + "name": "isProgrammatic", + "optional": true, + "type": { + "text": "boolean" + } + } + ], + "type": { + "text": "ValidateInput" + }, + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, { "kind": "field", "name": "fileTypes", @@ -21500,6 +21416,35 @@ "module": "src/services/utils/baseServiceIO.ts" } }, + { + "kind": "method", + "name": "callServiceAPI", + "parameters": [ + { + "name": "messages", + "type": { + "text": "Messages" + } + }, + { + "name": "pMessages", + "type": { + "text": "MessageContentI[]" + } + }, + { + "name": "files", + "optional": true, + "type": { + "text": "File[]" + } + } + ], + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, { "kind": "method", "name": "callAPI", @@ -21522,6 +21467,27 @@ "module": "src/services/utils/baseServiceIO.ts" } }, + { + "kind": "method", + "name": "extractResultData", + "return": { + "type": { + "text": "Promise" + } + }, + "parameters": [ + { + "name": "result", + "type": { + "text": "any | Response" + } + } + ], + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, { "kind": "method", "name": "isWebModel", @@ -21533,30 +21499,30 @@ } ], "superclass": { - "name": "StabilityAIIO", - "module": "/src/services/stabilityAI/stabilityAIIO" + "name": "DirectServiceIO", + "module": "/src/services/utils/directServiceIO" } } ], "exports": [ { "kind": "js", - "name": "StabilityAIImageToImageIO", + "name": "StabilityAIIO", "declaration": { - "name": "StabilityAIImageToImageIO", - "module": "src/services/stabilityAI/stabilityAIImageToImageIO.ts" + "name": "StabilityAIIO", + "module": "src/services/stabilityAI/stabilityAIIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/stabilityAI/stabilityAIImageToImageMaskingIO.ts", + "path": "src/services/stabilityAI/stabilityAIImageToImageIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "StabilityAIImageToImageMaskingIO", + "name": "StabilityAIImageToImageIO", "members": [ { "kind": "field", @@ -21564,7 +21530,7 @@ "type": { "text": "string" }, - "default": "'https://api.stability.ai/v1/generation/stable-diffusion-xl-1024-v1-0/image-to-image/masking'" + "default": "'https://api.stability.ai/v1/generation/stable-diffusion-v1-6/image-to-image'" }, { "kind": "field", @@ -21574,15 +21540,6 @@ }, "privacy": "private" }, - { - "kind": "field", - "name": "_maskSource", - "type": { - "text": "StabilityAIImageToImageMasking['mask_source']" - }, - "privacy": "private", - "default": "'MASK_IMAGE_WHITE'" - }, { "kind": "field", "name": "textInputPlaceholderText", @@ -21594,7 +21551,7 @@ { "kind": "field", "name": "introPanelMarkUp", - "default": "`\n
Stability AI
\n
Image to Image Masking
\n

Upload an image, its mask image to create a new one based on the changes you have described for the mask area.

\n

Click here for more info.

`" + "default": "`\n
Stability AI: Image to Image
\n

Upload an image to create a new one with the changes you have described.

\n

Click here for more info.

`" }, { "kind": "method", @@ -21605,7 +21562,7 @@ { "name": "config", "type": { - "text": "StabilityAIImageToImageMasking" + "text": "StabilityAIImageToImage" } } ] @@ -21640,7 +21597,7 @@ { "name": "body", "type": { - "text": "StabilityAIImageToImageMasking" + "text": "StabilityAIImageToImage" } }, { @@ -21649,12 +21606,6 @@ "text": "File" } }, - { - "name": "mask", - "type": { - "text": "File" - } - }, { "name": "text", "optional": true, @@ -22236,22 +22187,22 @@ "exports": [ { "kind": "js", - "name": "StabilityAIImageToImageMaskingIO", + "name": "StabilityAIImageToImageIO", "declaration": { - "name": "StabilityAIImageToImageMaskingIO", - "module": "src/services/stabilityAI/stabilityAIImageToImageMaskingIO.ts" + "name": "StabilityAIImageToImageIO", + "module": "src/services/stabilityAI/stabilityAIImageToImageIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/stabilityAI/stabilityAIImageToImageUpscaleIO.ts", + "path": "src/services/stabilityAI/stabilityAIImageToImageMaskingIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "StabilityAIImageToImageUpscaleIO", + "name": "StabilityAIImageToImageMaskingIO", "members": [ { "kind": "field", @@ -22259,7 +22210,24 @@ "type": { "text": "string" }, - "default": "'https://api.stability.ai/v1/generation/esrgan-v1-x2plus/image-to-image/upscale'" + "default": "'https://api.stability.ai/v1/generation/stable-diffusion-xl-1024-v1-0/image-to-image/masking'" + }, + { + "kind": "field", + "name": "_imageWeight", + "type": { + "text": "number | undefined" + }, + "privacy": "private" + }, + { + "kind": "field", + "name": "_maskSource", + "type": { + "text": "StabilityAIImageToImageMasking['mask_source']" + }, + "privacy": "private", + "default": "'MASK_IMAGE_WHITE'" }, { "kind": "field", @@ -22272,7 +22240,7 @@ { "kind": "field", "name": "introPanelMarkUp", - "default": "`\n
Stability AI
\n
Image to Image Upscale
\n

Upload an image to generate a new one with higher resolution.

\n

Click here for more info.

`" + "default": "`\n
Stability AI
\n
Image to Image Masking
\n

Upload an image, its mask image to create a new one based on the changes you have described for the mask area.

\n

Click here for more info.

`" }, { "kind": "method", @@ -22283,19 +22251,19 @@ { "name": "config", "type": { - "text": "StabilityAIImageToImageUpscale" + "text": "StabilityAIImageToImageMasking" } } ] }, { "kind": "method", - "name": "canSendFileMessage", + "name": "canSendFileTextMessage", "privacy": "private", "static": true, "parameters": [ { - "name": "_", + "name": "text", "optional": true, "type": { "text": "string" @@ -22318,7 +22286,7 @@ { "name": "body", "type": { - "text": "StabilityAIImageToImageUpscale" + "text": "StabilityAIImageToImageMasking" } }, { @@ -22326,6 +22294,19 @@ "type": { "text": "File" } + }, + { + "name": "mask", + "type": { + "text": "File" + } + }, + { + "name": "text", + "optional": true, + "type": { + "text": "string" + } } ] }, @@ -22340,7 +22321,7 @@ } }, { - "name": "_", + "name": "pMessages", "type": { "text": "MessageContentI[]" } @@ -22901,22 +22882,22 @@ "exports": [ { "kind": "js", - "name": "StabilityAIImageToImageUpscaleIO", + "name": "StabilityAIImageToImageMaskingIO", "declaration": { - "name": "StabilityAIImageToImageUpscaleIO", - "module": "src/services/stabilityAI/stabilityAIImageToImageUpscaleIO.ts" + "name": "StabilityAIImageToImageMaskingIO", + "module": "src/services/stabilityAI/stabilityAIImageToImageMaskingIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/stabilityAI/stabilityAITextToImageIO.ts", + "path": "src/services/stabilityAI/stabilityAIImageToImageUpscaleIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "StabilityAITextToImageIO", + "name": "StabilityAIImageToImageUpscaleIO", "members": [ { "kind": "field", @@ -22924,15 +22905,7 @@ "type": { "text": "string" }, - "default": "'https://api.stability.ai/v1/generation/stable-diffusion-v1-6/text-to-image'" - }, - { - "kind": "field", - "name": "_imageWeight", - "type": { - "text": "number | undefined" - }, - "privacy": "private" + "default": "'https://api.stability.ai/v1/generation/esrgan-v1-x2plus/image-to-image/upscale'" }, { "kind": "field", @@ -22940,12 +22913,12 @@ "type": { "text": "string" }, - "default": "'Describe an image'" + "default": "'Describe image changes'" }, { "kind": "field", "name": "introPanelMarkUp", - "default": "`\n
Stability AI: Text to Image
\n

Insert text to generate an image.

\n

Click here for more info.

`" + "default": "`\n
Stability AI
\n
Image to Image Upscale
\n

Upload an image to generate a new one with higher resolution.

\n

Click here for more info.

`" }, { "kind": "method", @@ -22956,42 +22929,48 @@ { "name": "config", "type": { - "text": "StabilityAITextToImage" + "text": "StabilityAIImageToImageUpscale" } } ] }, { "kind": "method", - "name": "canSendTextMessage", + "name": "canSendFileMessage", "privacy": "private", "static": true, "parameters": [ { - "name": "text", + "name": "_", "optional": true, "type": { "text": "string" } + }, + { + "name": "files", + "optional": true, + "type": { + "text": "File[]" + } } ] }, { "kind": "method", - "name": "preprocessBody", + "name": "createFormDataBody", "privacy": "private", "parameters": [ { "name": "body", "type": { - "text": "StabilityAITextToImage" + "text": "StabilityAIImageToImageUpscale" } }, { - "name": "lastMessage", - "optional": true, + "name": "image", "type": { - "text": "string" + "text": "File" } } ] @@ -23007,10 +22986,17 @@ } }, { - "name": "pMessages", + "name": "_", "type": { "text": "MessageContentI[]" } + }, + { + "name": "files", + "optional": true, + "type": { + "text": "File[]" + } } ], "inheritedFrom": { @@ -23561,124 +23547,146 @@ "exports": [ { "kind": "js", - "name": "StabilityAITextToImageIO", + "name": "StabilityAIImageToImageUpscaleIO", "declaration": { - "name": "StabilityAITextToImageIO", - "module": "src/services/stabilityAI/stabilityAITextToImageIO.ts" + "name": "StabilityAIImageToImageUpscaleIO", + "module": "src/services/stabilityAI/stabilityAIImageToImageUpscaleIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/utils/baseServiceIO.ts", + "path": "src/services/stabilityAI/stabilityAITextToImageIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "BaseServiceIO", + "name": "StabilityAITextToImageIO", "members": [ { "kind": "field", - "name": "rawBody", - "type": { - "text": "any" - }, - "default": "{}" - }, - { - "kind": "field", - "name": "deepChat", + "name": "url", "type": { - "text": "DeepChat" + "text": "string" }, - "default": "deepChat" + "default": "'https://api.stability.ai/v1/generation/stable-diffusion-v1-6/text-to-image'" }, { "kind": "field", - "name": "validateConfigKey", + "name": "_imageWeight", "type": { - "text": "boolean" + "text": "number | undefined" }, - "default": "false" - }, - { - "kind": "field", - "name": "canSendMessage", - "type": { - "text": "ValidateInput" - } + "privacy": "private" }, { "kind": "field", - "name": "requestSettings", + "name": "textInputPlaceholderText", "type": { - "text": "Request" + "text": "string" }, - "default": "{}" + "default": "'Describe an image'" }, { "kind": "field", - "name": "fileTypes", - "type": { - "text": "ServiceFileTypes" - }, - "default": "{}" + "name": "introPanelMarkUp", + "default": "`\n
Stability AI: Text to Image
\n

Insert text to generate an image.

\n

Click here for more info.

`" }, { - "kind": "field", - "name": "camera", - "type": { - "text": "CameraFilesServiceConfig | undefined" - } + "kind": "method", + "name": "cleanConfig", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "config", + "type": { + "text": "StabilityAITextToImage" + } + } + ] }, { - "kind": "field", - "name": "recordAudio", - "type": { - "text": "MicrophoneFilesServiceConfig | undefined" - } + "kind": "method", + "name": "canSendTextMessage", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "text", + "optional": true, + "type": { + "text": "string" + } + } + ] }, { - "kind": "field", - "name": "totalMessagesMaxCharLength", - "type": { - "text": "number | undefined" - } + "kind": "method", + "name": "preprocessBody", + "privacy": "private", + "parameters": [ + { + "name": "body", + "type": { + "text": "StabilityAITextToImage" + } + }, + { + "name": "lastMessage", + "optional": true, + "type": { + "text": "string" + } + } + ] }, { - "kind": "field", - "name": "maxMessages", - "type": { - "text": "number | undefined" + "kind": "method", + "name": "callServiceAPI", + "parameters": [ + { + "name": "messages", + "type": { + "text": "Messages" + } + }, + { + "name": "pMessages", + "type": { + "text": "MessageContentI[]" + } + } + ], + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" } }, { - "kind": "field", - "name": "demo", - "type": { - "text": "DemoT | undefined" - }, - "default": "demo" - }, - { - "kind": "field", - "name": "completionsHandlers", - "type": { - "text": "CompletionsHandlers" + "kind": "method", + "name": "extractResultData", + "return": { + "type": { + "text": "Promise" + } }, - "default": "{}" + "parameters": [ + { + "name": "result", + "type": { + "text": "StabilityAITextToImageResult" + } + } + ], + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } }, { "kind": "field", - "name": "streamHandlers", - "type": { - "text": "StreamHandlers" - }, - "default": "{}" - }, - { - "kind": "method", "name": "canSendMessage", "privacy": "private", "static": true, @@ -23704,253 +23712,71 @@ "text": "boolean" } } - ] - }, - { - "kind": "method", - "name": "verifyKey", - "parameters": [ - { - "name": "_key", - "type": { - "text": "string" - } - }, - { - "name": "_keyVerificationHandlers", - "type": { - "text": "KeyVerificationHandlers" - } - } - ] - }, - { - "kind": "method", - "name": "createCustomFormDataBody", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "body", - "type": { - "text": "any" - } - }, - { - "name": "messages", - "type": { - "text": "MessageContentI[]" - } - }, - { - "name": "files", - "type": { - "text": "File[]" - } - } - ] - }, - { - "kind": "method", - "name": "getServiceIOByType", - "privacy": "private", - "parameters": [ - { - "name": "file", - "type": { - "text": "File" - } - } - ] - }, - { - "kind": "method", - "name": "request", - "privacy": "private", - "parameters": [ - { - "name": "body", - "type": { - "text": "any" - } - }, - { - "name": "messages", - "type": { - "text": "Messages" - } - }, - { - "name": "stringifyBody", - "default": "true" - } - ] - }, - { - "kind": "method", - "name": "callAPIWithText", - "privacy": "private", - "parameters": [ - { - "name": "messages", - "type": { - "text": "Messages" - } - }, - { - "name": "pMessages", - "type": { - "text": "MessageContentI[]" - } - } - ] - }, - { - "kind": "method", - "name": "callApiWithFiles", - "privacy": "private", - "parameters": [ - { - "name": "messages", - "type": { - "text": "Messages" - } - }, - { - "name": "pMessages", - "type": { - "text": "MessageContentI[]" - } - }, - { - "name": "files", - "type": { - "text": "File[]" - } - } - ] - }, - { - "kind": "method", - "name": "callServiceAPI", - "parameters": [ - { - "name": "messages", - "type": { - "text": "Messages" - } - }, - { - "name": "pMessages", - "type": { - "text": "MessageContentI[]" - } - }, - { - "name": "files", - "optional": true, - "type": { - "text": "File[]" - } - } - ] - }, - { - "kind": "method", - "name": "callAPI", - "parameters": [ - { - "name": "requestContents", - "type": { - "text": "RequestContents" - } - }, - { - "name": "messages", - "type": { - "text": "Messages" - } - } - ] - }, - { - "kind": "method", - "name": "extractResultData", - "return": { - "type": { - "text": "Promise" - } + ], + "type": { + "text": "ValidateInput" }, - "parameters": [ - { - "name": "result", - "type": { - "text": "any | Response" - } - } - ] + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } }, { - "kind": "method", - "name": "isDirectConnection", - "privacy": "public" + "kind": "field", + "name": "insertKeyPlaceholderText", + "type": { + "text": "string" + }, + "default": "'Stability AI API Key'", + "inheritedFrom": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" + } }, - { - "kind": "method", - "name": "isWebModel", - "privacy": "public" - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "BaseServiceIO", - "declaration": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/services/utils/directServiceIO.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "DirectServiceIO", - "members": [ { "kind": "field", - "name": "key", + "name": "keyHelpUrl", "type": { - "text": "string | undefined" + "text": "string" + }, + "default": "'https://platform.stability.ai/docs/getting-started/authentication'", + "inheritedFrom": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" } }, { "kind": "field", - "name": "insertKeyPlaceholderText", + "name": "permittedErrorPrefixes", "type": { - "text": "string" + "text": "array" }, - "default": "'API Key'" + "default": "['Incorrect', 'invalid_']", + "inheritedFrom": { + "name": "StabilityAIIO", + "module": "src/services/stabilityAI/stabilityAIIO.ts" + } }, { "kind": "field", - "name": "keyHelpUrl", + "name": "key", "type": { - "text": "string" + "text": "string | undefined" }, - "default": "''" + "inheritedFrom": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" + } }, { "kind": "field", "name": "sessionId", "type": { "text": "string | undefined" + }, + "inheritedFrom": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" } }, { @@ -23960,7 +23786,11 @@ "text": "KeyVerificationDetails" }, "privacy": "private", - "default": "keyVerificationDetails" + "default": "keyVerificationDetails", + "inheritedFrom": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" + } }, { "kind": "field", @@ -23969,7 +23799,11 @@ "text": "BuildHeadersFunc" }, "privacy": "private", - "default": "buildHeadersFunc" + "default": "buildHeadersFunc", + "inheritedFrom": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" + } }, { "kind": "method", @@ -23982,7 +23816,11 @@ "text": "APIKey" } } - ] + ], + "inheritedFrom": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" + } }, { "kind": "method", @@ -24002,7 +23840,11 @@ "text": "Request" } } - ] + ], + "inheritedFrom": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" + } }, { "kind": "method", @@ -24021,7 +23863,11 @@ "text": "string" } } - ] + ], + "inheritedFrom": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" + } }, { "kind": "method", @@ -24102,42 +23948,6 @@ "module": "src/services/utils/baseServiceIO.ts" } }, - { - "kind": "field", - "name": "canSendMessage", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "text", - "optional": true, - "type": { - "text": "string" - } - }, - { - "name": "files", - "optional": true, - "type": { - "text": "File[]" - } - }, - { - "name": "isProgrammatic", - "optional": true, - "type": { - "text": "boolean" - } - } - ], - "type": { - "text": "ValidateInput" - }, - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, { "kind": "field", "name": "fileTypes", @@ -24356,35 +24166,6 @@ "module": "src/services/utils/baseServiceIO.ts" } }, - { - "kind": "method", - "name": "callServiceAPI", - "parameters": [ - { - "name": "messages", - "type": { - "text": "Messages" - } - }, - { - "name": "pMessages", - "type": { - "text": "MessageContentI[]" - } - }, - { - "name": "files", - "optional": true, - "type": { - "text": "File[]" - } - } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, { "kind": "method", "name": "callAPI", @@ -24407,27 +24188,6 @@ "module": "src/services/utils/baseServiceIO.ts" } }, - { - "kind": "method", - "name": "extractResultData", - "return": { - "type": { - "text": "Promise" - } - }, - "parameters": [ - { - "name": "result", - "type": { - "text": "any | Response" - } - } - ], - "inheritedFrom": { - "name": "BaseServiceIO", - "module": "src/services/utils/baseServiceIO.ts" - } - }, { "kind": "method", "name": "isWebModel", @@ -24439,391 +24199,352 @@ } ], "superclass": { - "name": "BaseServiceIO", - "module": "/src/services/utils/baseServiceIO" + "name": "StabilityAIIO", + "module": "/src/services/stabilityAI/stabilityAIIO" } } ], "exports": [ { "kind": "js", - "name": "DirectServiceIO", + "name": "StabilityAITextToImageIO", "declaration": { - "name": "DirectServiceIO", - "module": "src/services/utils/directServiceIO.ts" + "name": "StabilityAITextToImageIO", + "module": "src/services/stabilityAI/stabilityAITextToImageIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/utils/messageLimitUtils.ts", + "path": "src/services/utils/baseServiceIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "MessageLimitUtils", + "name": "BaseServiceIO", "members": [ + { + "kind": "field", + "name": "rawBody", + "type": { + "text": "any" + }, + "default": "{}" + }, + { + "kind": "field", + "name": "deepChat", + "type": { + "text": "DeepChat" + }, + "default": "deepChat" + }, + { + "kind": "field", + "name": "validateConfigKey", + "type": { + "text": "boolean" + }, + "default": "false" + }, + { + "kind": "field", + "name": "canSendMessage", + "type": { + "text": "ValidateInput" + } + }, + { + "kind": "field", + "name": "requestSettings", + "type": { + "text": "Request" + }, + "default": "{}" + }, + { + "kind": "field", + "name": "fileTypes", + "type": { + "text": "ServiceFileTypes" + }, + "default": "{}" + }, + { + "kind": "field", + "name": "camera", + "type": { + "text": "CameraFilesServiceConfig | undefined" + } + }, + { + "kind": "field", + "name": "recordAudio", + "type": { + "text": "MicrophoneFilesServiceConfig | undefined" + } + }, + { + "kind": "field", + "name": "totalMessagesMaxCharLength", + "type": { + "text": "number | undefined" + } + }, + { + "kind": "field", + "name": "maxMessages", + "type": { + "text": "number | undefined" + } + }, + { + "kind": "field", + "name": "demo", + "type": { + "text": "DemoT | undefined" + }, + "default": "demo" + }, + { + "kind": "field", + "name": "completionsHandlers", + "type": { + "text": "CompletionsHandlers" + }, + "default": "{}" + }, + { + "kind": "field", + "name": "streamHandlers", + "type": { + "text": "StreamHandlers" + }, + "default": "{}" + }, { "kind": "method", - "name": "getCharacterLimitMessages", - "privacy": "public", + "name": "canSendMessage", + "privacy": "private", "static": true, "parameters": [ { - "name": "messages", + "name": "text", + "optional": true, "type": { - "text": "MessageContentI[]" + "text": "string" } }, { - "name": "limit", + "name": "files", + "optional": true, "type": { - "text": "number" - } - } - ] - }, - { - "kind": "method", - "name": "getMaxMessages", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "messages", - "type": { - "text": "MessageContentI[]" + "text": "File[]" } }, { - "name": "maxMessages", + "name": "isProgrammatic", + "optional": true, "type": { - "text": "number" + "text": "boolean" } } ] }, { "kind": "method", - "name": "processMessages", - "privacy": "public", - "static": true, + "name": "verifyKey", "parameters": [ { - "name": "messages", - "type": { - "text": "MessageContentI[]" - } - }, - { - "name": "maxMessages", - "optional": true, + "name": "_key", "type": { - "text": "number" + "text": "string" } }, { - "name": "totalMessagesMaxCharLength", - "optional": true, + "name": "_keyVerificationHandlers", "type": { - "text": "number" + "text": "KeyVerificationHandlers" } } ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "MessageLimitUtils", - "declaration": { - "name": "MessageLimitUtils", - "module": "src/services/utils/messageLimitUtils.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/services/utils/setFileTypes.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "SetFileTypes", - "members": [ + }, { "kind": "method", - "name": "parseConfig", + "name": "createCustomFormDataBody", "privacy": "private", "static": true, "parameters": [ { - "name": "requestSettings", - "type": { - "text": "Request" - } - }, - { - "name": "defFiles", + "name": "body", "type": { - "text": "FileAttachments" + "text": "any" } }, { - "name": "remark", + "name": "messages", "type": { - "text": "Remarkable" + "text": "MessageContentI[]" } }, { - "name": "fileType", - "optional": true, + "name": "files", "type": { - "text": "boolean | FilesServiceConfig" + "text": "File[]" } } ] }, { "kind": "method", - "name": "processMixedFiles", + "name": "getServiceIOByType", "privacy": "private", - "static": true, "parameters": [ { - "name": "serviceIO", - "type": { - "text": "ServiceIO" - } - }, - { - "name": "remark", - "type": { - "text": "Remarkable" - } - }, - { - "name": "mixedFiles", + "name": "file", "type": { - "text": "DeepChat['mixedFiles']" + "text": "File" } } ] }, { "kind": "method", - "name": "processMicrophone", + "name": "request", "privacy": "private", - "static": true, "parameters": [ { - "name": "serviceIO", - "type": { - "text": "ServiceIO" - } - }, - { - "name": "remark", + "name": "body", "type": { - "text": "Remarkable" + "text": "any" } }, { - "name": "microphone", + "name": "messages", "type": { - "text": "DeepChat['microphone']" + "text": "Messages" } }, { - "name": "audio", - "type": { - "text": "DeepChat['audio']" - } + "name": "stringifyBody", + "default": "true" } ] }, { "kind": "method", - "name": "processAudioConfig", + "name": "callAPIWithText", "privacy": "private", - "static": true, "parameters": [ { - "name": "serviceIO", - "type": { - "text": "ServiceIO" - } - }, - { - "name": "remark", - "type": { - "text": "Remarkable" - } - }, - { - "name": "audio", + "name": "messages", "type": { - "text": "DeepChat['audio']" + "text": "Messages" } }, { - "name": "fileIO", - "optional": true, + "name": "pMessages", "type": { - "text": "FileServiceIO" + "text": "MessageContentI[]" } } ] }, { "kind": "method", - "name": "processGifConfig", + "name": "callApiWithFiles", "privacy": "private", - "static": true, "parameters": [ { - "name": "serviceIO", - "type": { - "text": "ServiceIO" - } - }, - { - "name": "remark", + "name": "messages", "type": { - "text": "Remarkable" + "text": "Messages" } }, { - "name": "gifs", + "name": "pMessages", "type": { - "text": "DeepChat['gifs']" + "text": "MessageContentI[]" } }, { - "name": "fileIO", - "optional": true, + "name": "files", "type": { - "text": "FileServiceIO" + "text": "File[]" } } ] }, { "kind": "method", - "name": "processCamera", - "privacy": "private", - "static": true, + "name": "callServiceAPI", "parameters": [ { - "name": "serviceIO", - "type": { - "text": "ServiceIO" - } - }, - { - "name": "remark", + "name": "messages", "type": { - "text": "Remarkable" + "text": "Messages" } }, { - "name": "camera", + "name": "pMessages", "type": { - "text": "DeepChat['camera']" + "text": "MessageContentI[]" } }, { - "name": "images", + "name": "files", "optional": true, "type": { - "text": "DeepChat['images']" + "text": "File[]" } } ] }, { "kind": "method", - "name": "processImagesConfig", - "privacy": "private", - "static": true, + "name": "callAPI", "parameters": [ { - "name": "serviceIO", - "type": { - "text": "ServiceIO" - } - }, - { - "name": "remark", - "type": { - "text": "Remarkable" - } - }, - { - "name": "images", + "name": "requestContents", "type": { - "text": "DeepChat['images']" + "text": "RequestContents" } }, { - "name": "fileIO", - "optional": true, + "name": "messages", "type": { - "text": "FileServiceIO" + "text": "Messages" } } ] }, { "kind": "method", - "name": "populateDefaultFileIO", - "privacy": "private", - "static": true, + "name": "extractResultData", + "return": { + "type": { + "text": "Promise" + } + }, "parameters": [ { - "name": "fileIO", - "type": { - "text": "FileServiceIO | undefined" - } - }, - { - "name": "acceptedFormats", + "name": "result", "type": { - "text": "string" + "text": "any | Response" } } ] }, { "kind": "method", - "name": "set", - "privacy": "public", - "static": true, - "parameters": [ - { - "name": "deepChat", - "type": { - "text": "DeepChat" - } - }, - { - "name": "serviceIO", - "type": { - "text": "ServiceIO" - } - }, - { - "name": "existingFileTypes", - "optional": true, - "type": { - "text": "ServiceFileTypes" - } - } - ] + "name": "isDirectConnection", + "privacy": "public" + }, + { + "kind": "method", + "name": "isWebModel", + "privacy": "public" } ] } @@ -24831,120 +24552,126 @@ "exports": [ { "kind": "js", - "name": "SetFileTypes", + "name": "BaseServiceIO", "declaration": { - "name": "SetFileTypes", - "module": "src/services/utils/setFileTypes.ts" + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" } } ] }, { "kind": "javascript-module", - "path": "src/utils/HTTP/HTTPRequest.ts", + "path": "src/services/utils/directServiceIO.ts", "declarations": [ { "kind": "class", "description": "", - "name": "HTTPRequest", + "name": "DirectServiceIO", "members": [ + { + "kind": "field", + "name": "key", + "type": { + "text": "string | undefined" + } + }, + { + "kind": "field", + "name": "insertKeyPlaceholderText", + "type": { + "text": "string" + }, + "default": "'API Key'" + }, + { + "kind": "field", + "name": "keyHelpUrl", + "type": { + "text": "string" + }, + "default": "''" + }, + { + "kind": "field", + "name": "sessionId", + "type": { + "text": "string | undefined" + } + }, + { + "kind": "field", + "name": "keyVerificationDetails", + "type": { + "text": "KeyVerificationDetails" + }, + "privacy": "private", + "default": "keyVerificationDetails" + }, + { + "kind": "field", + "name": "buildHeadersFunc", + "type": { + "text": "BuildHeadersFunc" + }, + "privacy": "private", + "default": "buildHeadersFunc" + }, { "kind": "method", - "name": "request", - "privacy": "public", - "static": true, + "name": "setApiKeyProperties", + "privacy": "private", "parameters": [ { - "name": "io", - "type": { - "text": "ServiceIO" - } - }, - { - "name": "body", - "type": { - "text": "object" - } - }, - { - "name": "messages", + "name": "apiKey", "type": { - "text": "Messages" + "text": "APIKey" } - }, - { - "name": "stringifyBody", - "default": "true" } ] }, { "kind": "method", - "name": "executePollRequest", - "privacy": "public", - "static": true, + "name": "buildRequestSettings", + "privacy": "private", "parameters": [ { - "name": "io", - "type": { - "text": "ServiceIO" - } - }, - { - "name": "url", + "name": "key", "type": { "text": "string" } }, { - "name": "requestInit", - "type": { - "text": "RequestInit" - } - }, - { - "name": "messages", + "name": "requestSettings", + "optional": true, "type": { - "text": "Messages" + "text": "Request" } } ] }, { "kind": "method", - "name": "poll", - "privacy": "public", - "static": true, + "name": "keyAuthenticated", + "privacy": "private", "parameters": [ { - "name": "io", - "type": { - "text": "ServiceIO" - } - }, - { - "name": "body", + "name": "onSuccess", "type": { - "text": "object" + "text": "() => void" } }, { - "name": "messages", + "name": "key", "type": { - "text": "Messages" + "text": "string" } - }, - { - "name": "stringifyBody", - "default": "true" } ] }, { "kind": "method", "name": "verifyKey", - "privacy": "public", - "static": true, "parameters": [ { "name": "key", @@ -24953,121 +24680,258 @@ } }, { - "name": "url", - "type": { - "text": "string" - } - }, - { - "name": "headers", + "name": "keyVerificationHandlers", "type": { - "text": "HeadersInit" + "text": "KeyVerificationHandlers" } - }, + } + ], + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, + { + "kind": "method", + "name": "isDirectConnection", + "privacy": "public", + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, + { + "kind": "field", + "name": "requestSettings", + "type": { + "text": "Request" + }, + "default": "{}", + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, + { + "kind": "field", + "name": "rawBody", + "type": { + "text": "any" + }, + "default": "{}", + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, + { + "kind": "field", + "name": "deepChat", + "type": { + "text": "DeepChat" + }, + "default": "deepChat", + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, + { + "kind": "field", + "name": "validateConfigKey", + "type": { + "text": "boolean" + }, + "default": "false", + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, + { + "kind": "field", + "name": "canSendMessage", + "privacy": "private", + "static": true, + "parameters": [ { - "name": "method", + "name": "text", + "optional": true, "type": { "text": "string" } }, { - "name": "onSuccess", - "type": { - "text": "(key: string) => void" - } - }, - { - "name": "onFail", - "type": { - "text": "(message: string) => void" - } - }, - { - "name": "onLoad", - "type": { - "text": "() => void" - } - }, - { - "name": "handleVerificationResult", + "name": "files", + "optional": true, "type": { - "text": "HandleVerificationResult" + "text": "File[]" } }, { - "name": "body", + "name": "isProgrammatic", "optional": true, "type": { - "text": "string" + "text": "boolean" } } - ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "HTTPRequest", - "declaration": { - "name": "HTTPRequest", - "module": "src/utils/HTTP/HTTPRequest.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/utils/HTTP/customHandler.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "CustomHandler", - "members": [ + ], + "type": { + "text": "ValidateInput" + }, + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, + { + "kind": "field", + "name": "fileTypes", + "type": { + "text": "ServiceFileTypes" + }, + "default": "{}", + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, + { + "kind": "field", + "name": "camera", + "type": { + "text": "CameraFilesServiceConfig | undefined" + }, + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, + { + "kind": "field", + "name": "recordAudio", + "type": { + "text": "MicrophoneFilesServiceConfig | undefined" + }, + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, + { + "kind": "field", + "name": "totalMessagesMaxCharLength", + "type": { + "text": "number | undefined" + }, + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, + { + "kind": "field", + "name": "maxMessages", + "type": { + "text": "number | undefined" + }, + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, + { + "kind": "field", + "name": "demo", + "type": { + "text": "DemoT | undefined" + }, + "default": "demo", + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, + { + "kind": "field", + "name": "completionsHandlers", + "type": { + "text": "CompletionsHandlers" + }, + "default": "{}", + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, + { + "kind": "field", + "name": "streamHandlers", + "type": { + "text": "StreamHandlers" + }, + "default": "{}", + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, { "kind": "method", - "name": "request", - "privacy": "public", + "name": "createCustomFormDataBody", + "privacy": "private", "static": true, "parameters": [ { - "name": "io", + "name": "body", "type": { - "text": "ServiceIO" + "text": "any" } }, { - "name": "body", + "name": "messages", "type": { - "text": "RequestDetails['body']" + "text": "MessageContentI[]" } }, { - "name": "messages", + "name": "files", "type": { - "text": "Messages" + "text": "File[]" } } - ] + ], + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } }, { "kind": "method", - "name": "stream", - "privacy": "public", - "static": true, + "name": "getServiceIOByType", + "privacy": "private", "parameters": [ { - "name": "io", + "name": "file", "type": { - "text": "ServiceIO" + "text": "File" } - }, + } + ], + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + }, + { + "kind": "method", + "name": "request", + "privacy": "private", + "parameters": [ { "name": "body", "type": { - "text": "RequestDetails['body']" + "text": "any" } }, { @@ -25075,99 +24939,72 @@ "type": { "text": "Messages" } + }, + { + "name": "stringifyBody", + "default": "true" } - ] + ], + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } }, { "kind": "method", - "name": "websocket", - "privacy": "public", - "static": true, + "name": "callAPIWithText", + "privacy": "private", "parameters": [ { - "name": "io", + "name": "messages", "type": { - "text": "ServiceIO" + "text": "Messages" } }, { - "name": "messages", + "name": "pMessages", "type": { - "text": "Messages" + "text": "MessageContentI[]" } } - ] + ], + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } }, { "kind": "method", - "name": "generateOptionalSignals", + "name": "callApiWithFiles", "privacy": "private", - "static": true - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "CustomHandler", - "declaration": { - "name": "CustomHandler", - "module": "src/utils/HTTP/customHandler.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/utils/HTTP/requestUtils.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "RequestUtils", - "members": [ - { - "kind": "field", - "name": "CONTENT_TYPE", - "type": { - "text": "string" - }, - "privacy": "public", - "static": true, - "default": "'Content-Type'" - }, - { - "kind": "method", - "name": "tempRemoveContentHeader", - "privacy": "public", - "static": true, "parameters": [ { - "name": "requestSettings", + "name": "messages", "type": { - "text": "Request | undefined" + "text": "Messages" } }, { - "name": "request", + "name": "pMessages", "type": { - "text": "(stringifyBody?: boolean) => Promise" + "text": "MessageContentI[]" } }, { - "name": "stringifyBody", + "name": "files", "type": { - "text": "boolean" + "text": "File[]" } } - ] + ], + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } }, { "kind": "method", - "name": "displayError", - "privacy": "public", - "static": true, + "name": "callServiceAPI", "parameters": [ { "name": "messages", @@ -25176,125 +25013,167 @@ } }, { - "name": "err", + "name": "pMessages", "type": { - "text": "object | string" + "text": "MessageContentI[]" } }, { - "name": "defMessage", - "default": "'Service error, please try again.'" + "name": "files", + "optional": true, + "type": { + "text": "File[]" + } } - ] + ], + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } }, { "kind": "method", - "name": "fetch", - "privacy": "public", - "static": true, + "name": "callAPI", "parameters": [ { - "name": "io", - "type": { - "text": "ServiceIO" - } - }, - { - "name": "headers", - "type": { - "text": "GenericObject | undefined" - } - }, - { - "name": "stringifyBody", + "name": "requestContents", "type": { - "text": "boolean" + "text": "RequestContents" } }, { - "name": "body", + "name": "messages", "type": { - "text": "any" + "text": "Messages" } } - ] + ], + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } }, { "kind": "method", - "name": "processResponseByType", - "privacy": "public", - "static": true, + "name": "extractResultData", + "return": { + "type": { + "text": "Promise" + } + }, "parameters": [ { - "name": "response", + "name": "result", "type": { - "text": "Response" + "text": "any | Response" } } - ] + ], + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } }, { "kind": "method", - "name": "processRequestInterceptor", + "name": "isWebModel", + "privacy": "public", + "inheritedFrom": { + "name": "BaseServiceIO", + "module": "src/services/utils/baseServiceIO.ts" + } + } + ], + "superclass": { + "name": "BaseServiceIO", + "module": "/src/services/utils/baseServiceIO" + } + } + ], + "exports": [ + { + "kind": "js", + "name": "DirectServiceIO", + "declaration": { + "name": "DirectServiceIO", + "module": "src/services/utils/directServiceIO.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/services/utils/messageLimitUtils.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "MessageLimitUtils", + "members": [ + { + "kind": "method", + "name": "getCharacterLimitMessages", "privacy": "public", "static": true, - "return": { - "type": { - "text": "InterceptorResultP" - } - }, "parameters": [ { - "name": "deepChat", + "name": "messages", "type": { - "text": "DeepChat" + "text": "MessageContentI[]" } }, { - "name": "requestDetails", + "name": "limit", "type": { - "text": "RequestDetails" + "text": "number" } } ] }, { "kind": "method", - "name": "validateResponseFormat", - "privacy": "public", + "name": "getMaxMessages", + "privacy": "private", "static": true, "parameters": [ { - "name": "response", + "name": "messages", "type": { - "text": "ResponseT" + "text": "MessageContentI[]" + } + }, + { + "name": "maxMessages", + "type": { + "text": "number" } } ] }, { "kind": "method", - "name": "onInterceptorError", + "name": "processMessages", "privacy": "public", "static": true, "parameters": [ { "name": "messages", "type": { - "text": "Messages" + "text": "MessageContentI[]" } }, { - "name": "error", + "name": "maxMessages", + "optional": true, "type": { - "text": "string" + "text": "number" } }, { - "name": "onFinish", + "name": "totalMessagesMaxCharLength", "optional": true, "type": { - "text": "() => void" + "text": "number" } } ] @@ -25305,312 +25184,289 @@ "exports": [ { "kind": "js", - "name": "RequestUtils", + "name": "MessageLimitUtils", "declaration": { - "name": "RequestUtils", - "module": "src/utils/HTTP/requestUtils.ts" + "name": "MessageLimitUtils", + "module": "src/services/utils/messageLimitUtils.ts" } } ] }, { "kind": "javascript-module", - "path": "src/utils/HTTP/stream.ts", + "path": "src/services/utils/setFileTypes.ts", "declarations": [ { "kind": "class", "description": "", - "name": "Stream", + "name": "SetFileTypes", "members": [ { "kind": "method", - "name": "request", - "privacy": "public", + "name": "parseConfig", + "privacy": "private", "static": true, "parameters": [ { - "name": "io", + "name": "requestSettings", "type": { - "text": "ServiceIO" + "text": "Request" } }, { - "name": "body", + "name": "defFiles", "type": { - "text": "object" + "text": "FileAttachments" } }, { - "name": "messages", + "name": "remark", "type": { - "text": "Messages" + "text": "Remarkable" } }, { - "name": "stringifyBody", - "default": "true" + "name": "fileType", + "optional": true, + "type": { + "text": "boolean | FilesServiceConfig" + } } ] }, { "kind": "method", - "name": "simulate", - "privacy": "public", + "name": "processMixedFiles", + "privacy": "private", "static": true, "parameters": [ { - "name": "messages", + "name": "serviceIO", "type": { - "text": "Messages" + "text": "ServiceIO" } }, { - "name": "sh", + "name": "remark", "type": { - "text": "StreamHandlers" + "text": "Remarkable" } }, { - "name": "result", + "name": "mixedFiles", "type": { - "text": "ResponseI" + "text": "DeepChat['mixedFiles']" } } ] }, { "kind": "method", - "name": "populateMessages", + "name": "processMicrophone", "privacy": "private", "static": true, "parameters": [ { - "name": "responseText", + "name": "serviceIO", "type": { - "text": "string[]" + "text": "ServiceIO" } }, { - "name": "stream", + "name": "remark", "type": { - "text": "MessageStream" + "text": "Remarkable" } }, { - "name": "sh", + "name": "microphone", "type": { - "text": "SimulationSH" + "text": "DeepChat['microphone']" } }, { - "name": "charIndex", - "default": "0" + "name": "audio", + "type": { + "text": "DeepChat['audio']" + } } ] }, { "kind": "method", - "name": "isSimulation", - "privacy": "public", + "name": "processAudioConfig", + "privacy": "private", "static": true, "parameters": [ { - "name": "stream", + "name": "serviceIO", + "type": { + "text": "ServiceIO" + } + }, + { + "name": "remark", + "type": { + "text": "Remarkable" + } + }, + { + "name": "audio", + "type": { + "text": "DeepChat['audio']" + } + }, + { + "name": "fileIO", "optional": true, "type": { - "text": "StreamI" + "text": "FileServiceIO" } } ] }, { "kind": "method", - "name": "abort", + "name": "processGifConfig", "privacy": "private", "static": true, "parameters": [ { - "name": "timeout", + "name": "serviceIO", "type": { - "text": "number" + "text": "ServiceIO" } }, { - "name": "stream", + "name": "remark", "type": { - "text": "MessageStream" + "text": "Remarkable" } }, { - "name": "onClose", + "name": "gifs", "type": { - "text": "() => void" + "text": "DeepChat['gifs']" } - } - ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "Stream", - "declaration": { - "name": "Stream", - "module": "src/utils/HTTP/stream.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/utils/HTTP/websocket.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "Websocket", - "members": [ - { - "kind": "method", - "name": "setup", - "privacy": "public", - "static": true, - "parameters": [ + }, { - "name": "io", + "name": "fileIO", + "optional": true, "type": { - "text": "ServiceIO" + "text": "FileServiceIO" } } ] }, { "kind": "method", - "name": "createConnection", - "privacy": "public", + "name": "processCamera", + "privacy": "private", "static": true, "parameters": [ { - "name": "io", + "name": "serviceIO", "type": { "text": "ServiceIO" } }, { - "name": "messages", + "name": "remark", "type": { - "text": "Messages" + "text": "Remarkable" } - } - ] - }, - { - "kind": "method", - "name": "retryConnection", - "privacy": "private", - "static": true, - "parameters": [ + }, { - "name": "io", + "name": "camera", "type": { - "text": "ServiceIO" + "text": "DeepChat['camera']" } }, { - "name": "messages", + "name": "images", + "optional": true, "type": { - "text": "Messages" + "text": "DeepChat['images']" } } ] }, { "kind": "method", - "name": "assignListeners", + "name": "processImagesConfig", "privacy": "private", "static": true, "parameters": [ { - "name": "io", + "name": "serviceIO", "type": { "text": "ServiceIO" } }, { - "name": "ws", + "name": "remark", "type": { - "text": "WebSocket" + "text": "Remarkable" } }, { - "name": "messages", + "name": "images", "type": { - "text": "Messages" + "text": "DeepChat['images']" + } + }, + { + "name": "fileIO", + "optional": true, + "type": { + "text": "FileServiceIO" } } ] }, { "kind": "method", - "name": "sendWebsocket", - "privacy": "public", + "name": "populateDefaultFileIO", + "privacy": "private", "static": true, "parameters": [ { - "name": "io", - "type": { - "text": "ServiceIO" - } - }, - { - "name": "body", + "name": "fileIO", "type": { - "text": "object" + "text": "FileServiceIO | undefined" } }, { - "name": "messages", + "name": "acceptedFormats", "type": { - "text": "Messages" + "text": "string" } - }, - { - "name": "stringifyBody", - "default": "true" } ] }, { "kind": "method", - "name": "canSendMessage", + "name": "set", "privacy": "public", "static": true, "parameters": [ { - "name": "websocket", + "name": "deepChat", "type": { - "text": "ServiceIO['websocket']" + "text": "DeepChat" } - } - ] - }, - { - "kind": "method", - "name": "isWebSocket", - "privacy": "private", - "static": true, - "return": { - "type": { - "text": "websocket is WebSocket" - } - }, - "parameters": [ + }, { - "name": "websocket", + "name": "serviceIO", "type": { - "text": "WebSocket | IWebsocketHandler" + "text": "ServiceIO" + } + }, + { + "name": "existingFileTypes", + "optional": true, + "type": { + "text": "ServiceFileTypes" } } ] @@ -25621,266 +25477,174 @@ "exports": [ { "kind": "js", - "name": "Websocket", - "declaration": { - "name": "Websocket", - "module": "src/utils/HTTP/websocket.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/utils/browser/browser.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "Browser", - "members": [ - { - "kind": "field", - "name": "IS_SAFARI", - "privacy": "public", - "static": true - }, - { - "kind": "field", - "name": "IS_CHROMIUM", - "privacy": "public", - "static": true - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "Browser", - "declaration": { - "name": "Browser", - "module": "src/utils/browser/browser.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/utils/buttons/inputButtons.ts", - "declarations": [ - { - "kind": "variable", - "name": "BUTTON_ORDER", - "type": { - "text": "readonly BUTTON_TYPES[]" - }, - "default": "[\n 'camera',\n 'gifs',\n 'images',\n 'audio',\n 'mixedFiles',\n 'submit',\n 'microphone',\n]" - } - ], - "exports": [ - { - "kind": "js", - "name": "BUTTON_ORDER", + "name": "SetFileTypes", "declaration": { - "name": "BUTTON_ORDER", - "module": "src/utils/buttons/inputButtons.ts" + "name": "SetFileTypes", + "module": "src/services/utils/setFileTypes.ts" } } ] }, { "kind": "javascript-module", - "path": "src/utils/buttons/keyboardKeys.ts", - "declarations": [], - "exports": [] - }, - { - "kind": "javascript-module", - "path": "src/utils/data/objectUtils.ts", + "path": "src/utils/HTTP/HTTPRequest.ts", "declarations": [ { "kind": "class", "description": "", - "name": "ObjectUtils", + "name": "HTTPRequest", "members": [ { "kind": "method", - "name": "setPropertyValueIfDoesNotExist", + "name": "request", "privacy": "public", "static": true, "parameters": [ { - "name": "object", + "name": "io", "type": { - "text": "T" + "text": "ServiceIO" } }, { - "name": "nestedKeys", + "name": "body", "type": { - "text": "string[]" + "text": "object" } }, { - "name": "value", + "name": "messages", "type": { - "text": "unknown" + "text": "Messages" } + }, + { + "name": "stringifyBody", + "default": "true" } ] }, { "kind": "method", - "name": "setPropertyValue", + "name": "executePollRequest", "privacy": "public", "static": true, "parameters": [ { - "name": "object", + "name": "io", "type": { - "text": "T" + "text": "ServiceIO" } }, { - "name": "nestedKeys", + "name": "url", "type": { - "text": "string[]" + "text": "string" } }, { - "name": "value", + "name": "requestInit", "type": { - "text": "unknown" + "text": "RequestInit" + } + }, + { + "name": "messages", + "type": { + "text": "Messages" } } ] }, { "kind": "method", - "name": "getObjectValue", + "name": "poll", "privacy": "public", "static": true, - "return": { - "type": { - "text": "object | undefined" - } - }, "parameters": [ { - "name": "object", + "name": "io", "type": { - "text": "T" + "text": "ServiceIO" } }, { - "name": "nestedKeys", + "name": "body", "type": { - "text": "string[]" + "text": "object" + } + }, + { + "name": "messages", + "type": { + "text": "Messages" } + }, + { + "name": "stringifyBody", + "default": "true" } ] }, { "kind": "method", - "name": "overwritePropertyObjectFromAnother", + "name": "verifyKey", "privacy": "public", "static": true, "parameters": [ { - "name": "target", + "name": "key", "type": { - "text": "T" + "text": "string" } }, { - "name": "source", + "name": "url", "type": { - "text": "T" + "text": "string" } }, { - "name": "nestedKeys", + "name": "headers", "type": { - "text": "string[]" + "text": "HeadersInit" } - } - ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "ObjectUtils", - "declaration": { - "name": "ObjectUtils", - "module": "src/utils/data/objectUtils.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/utils/decorators/property.ts", - "declarations": [ - { - "kind": "function", - "name": "Property", - "parameters": [ - { - "name": "type", - "type": { - "text": "AvailableTypes" - } - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "Property", - "declaration": { - "name": "Property", - "module": "src/utils/decorators/property.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/utils/decorators/renderControl.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "RenderControl", - "members": [ - { - "kind": "method", - "name": "waitForPropertiesToBeUpdatedBeforeRender", - "privacy": "private", - "static": true, - "parameters": [ + }, { - "name": "deepChat", + "name": "method", "type": { - "text": "InternalHTML" + "text": "string" } - } - ] - }, - { - "kind": "method", - "name": "attemptRender", - "privacy": "public", - "static": true, - "parameters": [ + }, { - "name": "deepChat", + "name": "onSuccess", "type": { - "text": "InternalHTML" + "text": "(key: string) => void" + } + }, + { + "name": "onFail", + "type": { + "text": "(message: string) => void" + } + }, + { + "name": "onLoad", + "type": { + "text": "() => void" + } + }, + { + "name": "handleVerificationResult", + "type": { + "text": "HandleVerificationResult" + } + }, + { + "name": "body", + "optional": true, + "type": { + "text": "string" } } ] @@ -25891,111 +25655,61 @@ "exports": [ { "kind": "js", - "name": "RenderControl", - "declaration": { - "name": "RenderControl", - "module": "src/utils/decorators/renderControl.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/utils/decorators/typeConverters.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "TypeConverters", - "members": [ - { - "kind": "field", - "name": "attibutes", - "type": { - "text": "AttributeTypeConverters" - }, - "privacy": "public", - "static": true, - "default": "{\n string: (value: string) => value,\n number: (value: string) => parseFloat(value),\n boolean: (value: string) => value === 'true',\n object: (value: string) => JSON.parse(value),\n array: (value: string) => JSON.parse(value),\n function: (value: string) => new Function(`return ${value}`)(),\n }" - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "TypeConverters", + "name": "HTTPRequest", "declaration": { - "name": "TypeConverters", - "module": "src/utils/decorators/typeConverters.ts" + "name": "HTTPRequest", + "module": "src/utils/HTTP/HTTPRequest.ts" } } ] }, { "kind": "javascript-module", - "path": "src/utils/demo/demo.ts", + "path": "src/utils/HTTP/customHandler.ts", "declarations": [ { "kind": "class", "description": "", - "name": "Demo", + "name": "CustomHandler", "members": [ - { - "kind": "field", - "name": "URL", - "type": { - "text": "string" - }, - "privacy": "public", - "static": true, - "default": "'deep-chat-demo'" - }, { "kind": "method", - "name": "generateResponse", - "privacy": "private", + "name": "request", + "privacy": "public", "static": true, "parameters": [ { - "name": "messages", + "name": "io", "type": { - "text": "Messages" + "text": "ServiceIO" } - } - ] - }, - { - "kind": "method", - "name": "getCustomResponse", - "privacy": "private", - "static": true, - "parameters": [ + }, { - "name": "customResponse", + "name": "body", "type": { - "text": "DemoResponse" + "text": "RequestDetails['body']" } }, { - "name": "requestMessage", + "name": "messages", "type": { - "text": "MessageContentI" + "text": "Messages" } } ] }, { "kind": "method", - "name": "getResponse", + "name": "attemptToFinaliseStream", "privacy": "private", "static": true, - "return": { - "type": { - "text": "Response" - } - }, "parameters": [ + { + "name": "stream", + "type": { + "text": "MessageStream" + } + }, { "name": "messages", "type": { @@ -26006,7 +25720,7 @@ }, { "kind": "method", - "name": "request", + "name": "stream", "privacy": "public", "static": true, "parameters": [ @@ -26016,6 +25730,12 @@ "text": "ServiceIO" } }, + { + "name": "body", + "type": { + "text": "RequestDetails['body']" + } + }, { "name": "messages", "type": { @@ -26026,129 +25746,221 @@ }, { "kind": "method", - "name": "requestStream", + "name": "websocket", "privacy": "public", "static": true, "parameters": [ { - "name": "messages", + "name": "io", "type": { - "text": "Messages" + "text": "ServiceIO" } }, { - "name": "sh", + "name": "messages", "type": { - "text": "StreamHandlers" + "text": "Messages" } } ] - } - ] - } - ], - "exports": [ + }, + { + "kind": "method", + "name": "generateOptionalSignals", + "privacy": "private", + "static": true + } + ] + } + ], + "exports": [ { "kind": "js", - "name": "Demo", + "name": "CustomHandler", "declaration": { - "name": "Demo", - "module": "src/utils/demo/demo.ts" + "name": "CustomHandler", + "module": "src/utils/HTTP/customHandler.ts" } } ] }, { "kind": "javascript-module", - "path": "src/utils/element/elementUtils.ts", + "path": "src/utils/HTTP/requestUtils.ts", "declarations": [ { "kind": "class", "description": "", - "name": "ElementUtils", + "name": "RequestUtils", "members": [ { "kind": "field", - "name": "CODE_SNIPPET_GENERATION_JUMP", + "name": "CONTENT_TYPE", "type": { - "text": "number" + "text": "string" }, - "privacy": "private", + "privacy": "public", "static": true, - "default": "0.5" + "default": "'Content-Type'" }, { "kind": "method", - "name": "addElements", + "name": "tempRemoveContentHeader", "privacy": "public", "static": true, "parameters": [ { - "name": "parent", + "name": "requestSettings", "type": { - "text": "HTMLElement" + "text": "Request | undefined" } }, { - "name": "elements", + "name": "request", "type": { - "text": "HTMLElement[]" + "text": "(stringifyBody?: boolean) => Promise" + } + }, + { + "name": "stringifyBody", + "type": { + "text": "boolean" } } ] }, { "kind": "method", - "name": "isScrollbarAtBottomOfElement", + "name": "displayError", "privacy": "public", "static": true, "parameters": [ { - "name": "element", + "name": "messages", "type": { - "text": "HTMLElement" + "text": "Messages" + } + }, + { + "name": "err", + "type": { + "text": "object | string" } + }, + { + "name": "defMessage", + "default": "'Service error, please try again.'" } ] }, { "kind": "method", - "name": "cloneElement", + "name": "fetch", "privacy": "public", "static": true, "parameters": [ { - "name": "element", + "name": "io", "type": { - "text": "HTMLElement" + "text": "ServiceIO" + } + }, + { + "name": "headers", + "type": { + "text": "GenericObject | undefined" + } + }, + { + "name": "stringifyBody", + "type": { + "text": "boolean" + } + }, + { + "name": "body", + "type": { + "text": "any" } } ] }, { "kind": "method", - "name": "scrollToBottom", + "name": "processResponseByType", "privacy": "public", "static": true, "parameters": [ { - "name": "element", + "name": "response", "type": { - "text": "HTMLElement" + "text": "Response" } } ] }, { "kind": "method", - "name": "scrollToTop", + "name": "processRequestInterceptor", + "privacy": "public", + "static": true, + "return": { + "type": { + "text": "InterceptorResultP" + } + }, + "parameters": [ + { + "name": "deepChat", + "type": { + "text": "DeepChat" + } + }, + { + "name": "requestDetails", + "type": { + "text": "RequestDetails" + } + } + ] + }, + { + "kind": "method", + "name": "validateResponseFormat", "privacy": "public", "static": true, "parameters": [ { - "name": "element", + "name": "response", "type": { - "text": "HTMLElement" + "text": "ResponseT" + } + } + ] + }, + { + "kind": "method", + "name": "onInterceptorError", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "messages", + "type": { + "text": "Messages" + } + }, + { + "name": "error", + "type": { + "text": "string" + } + }, + { + "name": "onFinish", + "optional": true, + "type": { + "text": "() => void" } } ] @@ -26159,143 +25971,202 @@ "exports": [ { "kind": "js", - "name": "ElementUtils", - "declaration": { - "name": "ElementUtils", - "module": "src/utils/element/elementUtils.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/utils/element/imageUtils.ts", - "declarations": [ - { - "kind": "variable", - "name": "BASE_64_PREFIX", - "type": { - "text": "string" - }, - "default": "'data:image/png;base64,'" - } - ], - "exports": [ - { - "kind": "js", - "name": "BASE_64_PREFIX", + "name": "RequestUtils", "declaration": { - "name": "BASE_64_PREFIX", - "module": "src/utils/element/imageUtils.ts" + "name": "RequestUtils", + "module": "src/utils/HTTP/requestUtils.ts" } } ] }, { "kind": "javascript-module", - "path": "src/utils/element/statefulEvents.ts", + "path": "src/utils/HTTP/stream.ts", "declarations": [ { "kind": "class", "description": "", - "name": "StatefulEvents", + "name": "Stream", "members": [ { "kind": "method", - "name": "mouseUp", - "privacy": "private", + "name": "request", + "privacy": "public", "static": true, "parameters": [ { - "name": "element", + "name": "io", "type": { - "text": "HTMLElement" + "text": "ServiceIO" } }, { - "name": "styles", + "name": "body", "type": { - "text": "StatefulStyles" + "text": "object" + } + }, + { + "name": "messages", + "type": { + "text": "Messages" } + }, + { + "name": "stringifyBody", + "default": "true" } ] }, { "kind": "method", - "name": "mouseDown", - "privacy": "private", + "name": "simulate", + "privacy": "public", "static": true, "parameters": [ { - "name": "element", + "name": "messages", "type": { - "text": "HTMLElement" + "text": "Messages" } }, { - "name": "styles", + "name": "sh", "type": { - "text": "StatefulStyles" + "text": "StreamHandlers" + } + }, + { + "name": "result", + "type": { + "text": "ResponseI" } } ] }, { "kind": "method", - "name": "mouseLeave", + "name": "populateMessages", "privacy": "private", "static": true, "parameters": [ { - "name": "element", + "name": "responseText", "type": { - "text": "HTMLElement" + "text": "string[]" } }, { - "name": "styles", + "name": "stream", "type": { - "text": "StatefulStyles" + "text": "MessageStream" + } + }, + { + "name": "sh", + "type": { + "text": "SimulationSH" } + }, + { + "name": "charIndex", + "default": "0" } ] }, { "kind": "method", - "name": "mouseEnter", + "name": "isSimulation", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "stream", + "optional": true, + "type": { + "text": "StreamI" + } + } + ] + }, + { + "kind": "method", + "name": "isSimulatable", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "stream", + "optional": true, + "type": { + "text": "StreamI" + } + }, + { + "name": "respone", + "optional": true, + "type": { + "text": "ResponseI" + } + } + ] + }, + { + "kind": "method", + "name": "abort", "privacy": "private", "static": true, "parameters": [ { - "name": "element", + "name": "timeout", "type": { - "text": "HTMLElement" + "text": "number" } }, { - "name": "styles", + "name": "stream", "type": { - "text": "StatefulStyles" + "text": "MessageStream" + } + }, + { + "name": "onClose", + "type": { + "text": "() => void" } } ] }, { "kind": "method", - "name": "add", + "name": "upsertWFiles", "privacy": "public", "static": true, "parameters": [ { - "name": "element", + "name": "messages", "type": { - "text": "HTMLElement" + "text": "Messages" } }, { - "name": "styles", + "name": "upsert", "type": { - "text": "StatefulStyles" + "text": "UpsertFunc" + } + }, + { + "name": "stream", + "optional": true, + "type": { + "text": "MessageStream" + } + }, + { + "name": "response", + "optional": true, + "type": { + "text": "ResponseI" } } ] @@ -26306,169 +26177,195 @@ "exports": [ { "kind": "js", - "name": "StatefulEvents", + "name": "Stream", "declaration": { - "name": "StatefulEvents", - "module": "src/utils/element/statefulEvents.ts" + "name": "Stream", + "module": "src/utils/HTTP/stream.ts" } } ] }, { "kind": "javascript-module", - "path": "src/utils/element/styleUtils.ts", + "path": "src/utils/HTTP/websocket.ts", "declarations": [ { "kind": "class", "description": "", - "name": "StyleUtils", + "name": "Websocket", "members": [ { "kind": "method", - "name": "unsetStyle", + "name": "setup", "privacy": "public", "static": true, "parameters": [ { - "name": "element", + "name": "io", "type": { - "text": "HTMLElement" + "text": "ServiceIO" + } + } + ] + }, + { + "kind": "method", + "name": "createConnection", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "io", + "type": { + "text": "ServiceIO" } }, { - "name": "style", + "name": "messages", "type": { - "text": "CustomStyle" + "text": "Messages" } } ] }, { "kind": "method", - "name": "unsetActivityCSSMouseStates", - "privacy": "public", + "name": "retryConnection", + "privacy": "private", "static": true, "parameters": [ { - "name": "element", + "name": "io", "type": { - "text": "HTMLElement" + "text": "ServiceIO" } }, { - "name": "statefulStyle", + "name": "messages", "type": { - "text": "StatefulStyles" + "text": "Messages" } } ] }, { "kind": "method", - "name": "unsetAllCSSMouseStates", - "privacy": "public", + "name": "assignListeners", + "privacy": "private", "static": true, "parameters": [ { - "name": "element", + "name": "io", "type": { - "text": "HTMLElement" + "text": "ServiceIO" } }, { - "name": "statefulStyle", + "name": "ws", "type": { - "text": "StatefulStyles" + "text": "WebSocket" + } + }, + { + "name": "messages", + "type": { + "text": "Messages" } } ] }, { "kind": "method", - "name": "processStateful", + "name": "sendWebsocket", "privacy": "public", "static": true, - "return": { - "type": { - "text": "StatefulStyles" - } - }, "parameters": [ { - "name": "styles", + "name": "io", "type": { - "text": "StatefulStyles" + "text": "ServiceIO" } }, { - "name": "defHover", + "name": "body", "type": { - "text": "CustomStyle" + "text": "object" } }, { - "name": "defClick", + "name": "messages", "type": { - "text": "CustomStyle" + "text": "Messages" } + }, + { + "name": "stringifyBody", + "default": "true" } ] }, { "kind": "method", - "name": "mergeStatefulStyles", + "name": "canSendMessage", "privacy": "public", "static": true, + "parameters": [ + { + "name": "websocket", + "type": { + "text": "ServiceIO['websocket']" + } + } + ] + }, + { + "kind": "method", + "name": "isWebSocket", + "privacy": "private", + "static": true, "return": { "type": { - "text": "StatefulStyles" + "text": "websocket is WebSocket" } }, "parameters": [ { - "name": "stylesArr", + "name": "websocket", "type": { - "text": "StatefulStyles[]" + "text": "WebSocket | IWebsocketHandler" } } ] }, { "kind": "method", - "name": "overwriteDefaultWithAlreadyApplied", + "name": "stream", "privacy": "public", "static": true, "parameters": [ { - "name": "styles", + "name": "io", "type": { - "text": "StatefulStyles" + "text": "ServiceIO" } }, { - "name": "element", + "name": "messages", "type": { - "text": "HTMLElement" + "text": "Messages" } - } - ] - }, - { - "kind": "method", - "name": "applyToStyleIfNotDefined", - "privacy": "public", - "static": true, - "parameters": [ + }, { - "name": "cssDeclaration", + "name": "roleToStream", "type": { - "text": "CSSStyleDeclaration" + "text": "RoleToStream" } }, { - "name": "source", + "name": "result", + "optional": true, "type": { - "text": "CustomStyle" + "text": "Response" } } ] @@ -26479,117 +26376,187 @@ "exports": [ { "kind": "js", - "name": "StyleUtils", + "name": "Websocket", "declaration": { - "name": "StyleUtils", - "module": "src/utils/element/styleUtils.ts" + "name": "Websocket", + "module": "src/utils/HTTP/websocket.ts" } } ] }, { "kind": "javascript-module", - "path": "src/utils/errorMessages/errorMessages.ts", + "path": "src/utils/browser/browser.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "Browser", + "members": [ + { + "kind": "field", + "name": "IS_SAFARI", + "privacy": "public", + "static": true + }, + { + "kind": "field", + "name": "IS_CHROMIUM", + "privacy": "public", + "static": true + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "Browser", + "declaration": { + "name": "Browser", + "module": "src/utils/browser/browser.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/utils/buttons/inputButtons.ts", "declarations": [ { "kind": "variable", - "name": "ErrorMessages", + "name": "BUTTON_ORDER", "type": { - "text": "object" + "text": "readonly BUTTON_TYPES[]" }, - "default": "{\n INVALID_KEY: 'Invalid API Key',\n CONNECTION_FAILED: 'Failed to connect',\n INVALID_RESPONSE: getInvalidResponseMessage,\n INVALID_MODEL_REQUEST: getModelRequestMessage,\n INVALID_MODEL_RESPONSE: getModelResponseMessage,\n INVALID_STREAM_EVENT,\n INVALID_STREAM_EVENT_MIX: 'Cannot mix {text: string} and {html: string} responses.',\n NO_VALID_STREAM_EVENTS_SENT: `No valid stream events were sent.\\n${INVALID_STREAM_EVENT}`,\n}" + "default": "[\n 'camera',\n 'gifs',\n 'images',\n 'audio',\n 'mixedFiles',\n 'submit',\n 'microphone',\n]" } ], "exports": [ { "kind": "js", - "name": "ErrorMessages", + "name": "BUTTON_ORDER", "declaration": { - "name": "ErrorMessages", - "module": "src/utils/errorMessages/errorMessages.ts" + "name": "BUTTON_ORDER", + "module": "src/utils/buttons/inputButtons.ts" } } ] }, { "kind": "javascript-module", - "path": "src/utils/events/fireEvents.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "FireEvents", + "path": "src/utils/buttons/keyboardKeys.ts", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "src/utils/data/objectUtils.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "ObjectUtils", "members": [ { "kind": "method", - "name": "onNewMessage", + "name": "setPropertyValueIfDoesNotExist", "privacy": "public", "static": true, "parameters": [ { - "name": "deepChat", + "name": "object", "type": { - "text": "DeepChat" + "text": "T" } }, { - "name": "message", + "name": "nestedKeys", "type": { - "text": "MessageContentI" + "text": "string[]" } }, { - "name": "isInitial", + "name": "value", "type": { - "text": "boolean" + "text": "unknown" } } ] }, { "kind": "method", - "name": "onClearMessages", + "name": "setPropertyValue", "privacy": "public", "static": true, "parameters": [ { - "name": "deepChat", + "name": "object", "type": { - "text": "DeepChat" + "text": "T" + } + }, + { + "name": "nestedKeys", + "type": { + "text": "string[]" + } + }, + { + "name": "value", + "type": { + "text": "unknown" } } ] }, { "kind": "method", - "name": "onRender", + "name": "getObjectValue", "privacy": "public", "static": true, + "return": { + "type": { + "text": "object | undefined" + } + }, "parameters": [ { - "name": "deepChat", + "name": "object", "type": { - "text": "DeepChat" + "text": "T" + } + }, + { + "name": "nestedKeys", + "type": { + "text": "string[]" } } ] }, { "kind": "method", - "name": "onError", + "name": "overwritePropertyObjectFromAnother", "privacy": "public", "static": true, "parameters": [ { - "name": "deepChat", + "name": "target", "type": { - "text": "DeepChat" + "text": "T" } }, { - "name": "error", + "name": "source", "type": { - "text": "string" + "text": "T" + } + }, + { + "name": "nestedKeys", + "type": { + "text": "string[]" } } ] @@ -26600,62 +26567,75 @@ "exports": [ { "kind": "js", - "name": "FireEvents", + "name": "ObjectUtils", "declaration": { - "name": "FireEvents", - "module": "src/utils/events/fireEvents.ts" + "name": "ObjectUtils", + "module": "src/utils/data/objectUtils.ts" } } ] }, { "kind": "javascript-module", - "path": "src/utils/files/fileTypeButtonIcons.ts", + "path": "src/utils/decorators/property.ts", "declarations": [ { - "kind": "variable", - "name": "FILE_TYPE_BUTTON_ICONS", - "type": { - "text": "ServiceFileTypes" - }, - "default": "{\n images: {id: 'upload-images-icon', svgString: IMAGE_ICON_STRING, dropupText: 'Image'},\n gifs: {id: 'upload-gifs-icon', svgString: GIF_ICON_STRING, dropupText: 'GIF'},\n audio: {id: 'upload-audio-icon', svgString: AUDIO_ICON_STRING, dropupText: 'Audio'},\n mixedFiles: {id: 'upload-mixed-files-icon', svgString: MIXED_FILES_ICON_STRING, dropupText: 'File'},\n}" + "kind": "function", + "name": "Property", + "parameters": [ + { + "name": "type", + "type": { + "text": "AvailableTypes" + } + } + ] } ], "exports": [ { "kind": "js", - "name": "FILE_TYPE_BUTTON_ICONS", + "name": "Property", "declaration": { - "name": "FILE_TYPE_BUTTON_ICONS", - "module": "src/utils/files/fileTypeButtonIcons.ts" + "name": "Property", + "module": "src/utils/decorators/property.ts" } } ] }, { "kind": "javascript-module", - "path": "src/utils/files/fileUtils.ts", + "path": "src/utils/decorators/renderControl.ts", "declarations": [ { "kind": "class", "description": "", - "name": "FileUtils", + "name": "RenderControl", "members": [ { "kind": "method", - "name": "load", - "privacy": "public", + "name": "waitForPropertiesToBeUpdatedBeforeRender", + "privacy": "private", "static": true, - "return": { - "type": { - "text": "Promise" + "parameters": [ + { + "name": "deepChat", + "type": { + "text": "InternalHTML" + } } - }, + ] + }, + { + "kind": "method", + "name": "attemptRender", + "privacy": "public", + "static": true, "parameters": [ { - "name": "file", + "name": "deepChat", "type": { - "text": "File" + "text": "InternalHTML" } } ] @@ -26666,109 +26646,155 @@ "exports": [ { "kind": "js", - "name": "FileUtils", + "name": "RenderControl", "declaration": { - "name": "FileUtils", - "module": "src/utils/files/fileUtils.ts" + "name": "RenderControl", + "module": "src/utils/decorators/renderControl.ts" } } ] }, { "kind": "javascript-module", - "path": "src/utils/legacy/legacy.ts", + "path": "src/utils/decorators/typeConverters.ts", "declarations": [ { "kind": "class", "description": "", - "name": "Legacy", + "name": "TypeConverters", "members": [ { - "kind": "method", - "name": "checkForContainerStyles", + "kind": "field", + "name": "attibutes", + "type": { + "text": "AttributeTypeConverters" + }, "privacy": "public", "static": true, - "parameters": [ - { - "name": "deepChat", - "type": { - "text": "DeepChat" - } - }, - { - "name": "containerRef", - "type": { - "text": "HTMLElement" - } - } - ] + "default": "{\n string: (value: string) => value,\n number: (value: string) => parseFloat(value),\n boolean: (value: string) => value === 'true',\n object: (value: string) => JSON.parse(value),\n array: (value: string) => JSON.parse(value),\n function: (value: string) => new Function(`return ${value}`)(),\n }" + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "TypeConverters", + "declaration": { + "name": "TypeConverters", + "module": "src/utils/decorators/typeConverters.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/utils/demo/demo.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "Demo", + "members": [ + { + "kind": "field", + "name": "URL", + "type": { + "text": "string" + }, + "privacy": "public", + "static": true, + "default": "'deep-chat-demo'" }, { "kind": "method", - "name": "handleResponseProperty", - "privacy": "public", + "name": "generateResponse", + "privacy": "private", "static": true, "parameters": [ { - "name": "result", + "name": "messages", "type": { - "text": "any | Response" + "text": "Messages" } } ] }, { "kind": "method", - "name": "processInitialMessageFile", - "privacy": "public", + "name": "getCustomResponse", + "privacy": "private", "static": true, "parameters": [ { - "name": "message", + "name": "customResponse", "type": { - "text": "MessageContent" + "text": "DemoResponse" + } + }, + { + "name": "requestMessage", + "type": { + "text": "MessageContentI" } } ] }, { "kind": "method", - "name": "processValidateInput", - "privacy": "public", + "name": "getResponse", + "privacy": "private", "static": true, + "return": { + "type": { + "text": "Response" + } + }, "parameters": [ { - "name": "deepChat", + "name": "messages", "type": { - "text": "DeepChat" + "text": "Messages" } } ] }, { "kind": "method", - "name": "processSubmitUserMessage", + "name": "request", "privacy": "public", "static": true, "parameters": [ { - "name": "content", + "name": "io", "type": { - "text": "string" + "text": "ServiceIO" + } + }, + { + "name": "messages", + "type": { + "text": "Messages" } } ] }, { "kind": "method", - "name": "flagHTMLUpdateClass", + "name": "requestStream", "privacy": "public", "static": true, "parameters": [ { - "name": "bubbleElement", + "name": "messages", "type": { - "text": "HTMLElement" + "text": "Messages" + } + }, + { + "name": "sh", + "type": { + "text": "StreamHandlers" } } ] @@ -26779,38 +26805,105 @@ "exports": [ { "kind": "js", - "name": "Legacy", + "name": "Demo", "declaration": { - "name": "Legacy", - "module": "src/utils/legacy/legacy.ts" + "name": "Demo", + "module": "src/utils/demo/demo.ts" } } ] }, { "kind": "javascript-module", - "path": "src/utils/svg/svgIconUtils.ts", + "path": "src/utils/element/elementUtils.ts", "declarations": [ { "kind": "class", "description": "", - "name": "SVGIconUtils", + "name": "ElementUtils", "members": [ + { + "kind": "field", + "name": "CODE_SNIPPET_GENERATION_JUMP", + "type": { + "text": "number" + }, + "privacy": "private", + "static": true, + "default": "0.5" + }, { "kind": "method", - "name": "createSVGElement", + "name": "addElements", "privacy": "public", "static": true, - "return": { - "type": { - "text": "SVGGraphicsElement" + "parameters": [ + { + "name": "parent", + "type": { + "text": "HTMLElement" + } + }, + { + "name": "elements", + "type": { + "text": "HTMLElement[]" + } } - }, + ] + }, + { + "kind": "method", + "name": "isScrollbarAtBottomOfElement", + "privacy": "public", + "static": true, "parameters": [ { - "name": "svgString", + "name": "element", "type": { - "text": "string" + "text": "HTMLElement" + } + } + ] + }, + { + "kind": "method", + "name": "cloneElement", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "element", + "type": { + "text": "HTMLElement" + } + } + ] + }, + { + "kind": "method", + "name": "scrollToBottom", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "element", + "type": { + "text": "HTMLElement" + } + } + ] + }, + { + "kind": "method", + "name": "scrollToTop", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "element", + "type": { + "text": "HTMLElement" } } ] @@ -26821,234 +26914,143 @@ "exports": [ { "kind": "js", - "name": "SVGIconUtils", + "name": "ElementUtils", "declaration": { - "name": "SVGIconUtils", - "module": "src/utils/svg/svgIconUtils.ts" + "name": "ElementUtils", + "module": "src/utils/element/elementUtils.ts" } } ] }, { "kind": "javascript-module", - "path": "src/utils/webComponent/googleFont.ts", + "path": "src/utils/element/imageUtils.ts", "declarations": [ { - "kind": "class", - "description": "", - "name": "GoogleFont", - "members": [ - { - "kind": "field", - "name": "FONT_URL", - "type": { - "text": "string" - }, - "privacy": "private", - "static": true, - "default": "'https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap'" - }, - { - "kind": "method", - "name": "appendStyleSheetToHead", - "privacy": "public", - "static": true - } - ] + "kind": "variable", + "name": "BASE_64_PREFIX", + "type": { + "text": "string" + }, + "default": "'data:image/png;base64,'" } ], "exports": [ { "kind": "js", - "name": "GoogleFont", + "name": "BASE_64_PREFIX", "declaration": { - "name": "GoogleFont", - "module": "src/utils/webComponent/googleFont.ts" + "name": "BASE_64_PREFIX", + "module": "src/utils/element/imageUtils.ts" } } ] }, { "kind": "javascript-module", - "path": "src/utils/webComponent/internalHTML.ts", + "path": "src/utils/element/statefulEvents.ts", "declarations": [ { "kind": "class", "description": "", - "name": "InternalHTML", + "name": "StatefulEvents", "members": [ - { - "kind": "field", - "name": "_waitingToRender_", - "type": { - "text": "boolean" - }, - "default": "false" - }, - { - "kind": "field", - "name": "_propUpdated_", - "type": { - "text": "boolean" - }, - "default": "false" - }, - { - "kind": "field", - "name": "_attributes_", - "type": { - "text": "GenericObject" - }, - "static": true, - "default": "{}" - }, - { - "kind": "field", - "name": "_attributeToProperty_", - "type": { - "text": "GenericObject" - }, - "static": true, - "default": "{}" - }, { "kind": "method", - "name": "constructPropertyAccessors", + "name": "mouseUp", "privacy": "private", + "static": true, "parameters": [ { - "name": "propertyKey", + "name": "element", "type": { - "text": "string" + "text": "HTMLElement" } }, { - "name": "attributeName", - "optional": true, + "name": "styles", "type": { - "text": "string" + "text": "StatefulStyles" } } ] }, { "kind": "method", - "name": "onRender" - } - ], - "superclass": { - "name": "HTMLElement" - }, - "customElement": true - } - ], - "exports": [ - { - "kind": "js", - "name": "InternalHTML", - "declaration": { - "name": "InternalHTML", - "module": "src/utils/webComponent/internalHTML.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/utils/webComponent/webComponentStyleUtils.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "WebComponentStyleUtils", - "members": [ - { - "kind": "field", - "name": "DEFAULT_COMPONENT_STYLE", - "type": { - "text": "Partial" - }, + "name": "mouseDown", "privacy": "private", "static": true, - "default": "{\n height: '350px',\n width: '320px',\n border: '1px solid #cacaca',\n fontFamily: `'Inter', sans-serif, Avenir, Helvetica, Arial`,\n fontSize: '0.9rem',\n backgroundColor: 'white',\n position: 'relative',\n // this is used to prevent inputAreaStyle background color from going beyond the container's rounded border\n // it will cause issues if there are elements that are meant to be outside of the chat component and in\n // that instance they should overwrite this\n // this is also causing the chat to squeeze when there is no space\n overflow: 'hidden',\n }" - }, - { - "kind": "method", - "name": "apply", - "privacy": "public", - "static": true, "parameters": [ { - "name": "style", + "name": "element", "type": { - "text": "string" + "text": "HTMLElement" } }, { - "name": "shadowRoot", + "name": "styles", "type": { - "text": "ShadowRoot | null" + "text": "StatefulStyles" } } ] }, { "kind": "method", - "name": "applyStyleSheet", + "name": "mouseLeave", "privacy": "private", "static": true, "parameters": [ { - "name": "style", + "name": "element", "type": { - "text": "string" + "text": "HTMLElement" } }, { - "name": "shadowRoot", + "name": "styles", "type": { - "text": "ShadowRoot" + "text": "StatefulStyles" } } ] }, { "kind": "method", - "name": "addStyleElement", + "name": "mouseEnter", "privacy": "private", "static": true, "parameters": [ { - "name": "style", + "name": "element", "type": { - "text": "string" + "text": "HTMLElement" } }, { - "name": "shadowRoot", + "name": "styles", "type": { - "text": "ShadowRoot" + "text": "StatefulStyles" } } ] }, { "kind": "method", - "name": "applyDefaultStyleToComponent", + "name": "add", "privacy": "public", "static": true, "parameters": [ { - "name": "style", + "name": "element", "type": { - "text": "CSSStyleDeclaration" + "text": "HTMLElement" } }, { - "name": "chatStyle", - "optional": true, + "name": "styles", "type": { - "text": "CustomStyle" + "text": "StatefulStyles" } } ] @@ -27059,240 +27061,147 @@ "exports": [ { "kind": "js", - "name": "WebComponentStyleUtils", + "name": "StatefulEvents", "declaration": { - "name": "WebComponentStyleUtils", - "module": "src/utils/webComponent/webComponentStyleUtils.ts" + "name": "StatefulEvents", + "module": "src/utils/element/statefulEvents.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/chatView.ts", + "path": "src/utils/element/styleUtils.ts", "declarations": [ { "kind": "class", "description": "", - "name": "ChatView", + "name": "StyleUtils", "members": [ { "kind": "method", - "name": "createElements", - "privacy": "private", + "name": "unsetStyle", + "privacy": "public", "static": true, "parameters": [ { - "name": "deepChat", - "type": { - "text": "DeepChat" - } - }, - { - "name": "serviceIO", + "name": "element", "type": { - "text": "ServiceIO" + "text": "HTMLElement" } }, { - "name": "panel", - "optional": true, + "name": "style", "type": { - "text": "HTMLElement" + "text": "CustomStyle" } } ] }, { "kind": "method", - "name": "render", + "name": "unsetActivityCSSMouseStates", "privacy": "public", "static": true, "parameters": [ { - "name": "deepChat", - "type": { - "text": "DeepChat" - } - }, - { - "name": "containerRef", + "name": "element", "type": { "text": "HTMLElement" } }, { - "name": "serviceIO", - "type": { - "text": "ServiceIO" - } - }, - { - "name": "panel", - "optional": true, + "name": "statefulStyle", "type": { - "text": "HTMLElement" + "text": "StatefulStyles" } } ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "ChatView", - "declaration": { - "name": "ChatView", - "module": "src/views/chat/chatView.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/error/errorView.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "ErrorView", - "members": [ + }, { "kind": "method", - "name": "render", + "name": "unsetAllCSSMouseStates", "privacy": "public", "static": true, "parameters": [ { - "name": "containerElement", + "name": "element", "type": { "text": "HTMLElement" } }, { - "name": "text", + "name": "statefulStyle", "type": { - "text": "string" + "text": "StatefulStyles" } } ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "ErrorView", - "declaration": { - "name": "ErrorView", - "module": "src/views/error/errorView.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/insertKey/insertKeyView.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "InsertKeyView", - "members": [ - { - "kind": "method", - "name": "createCautionText", - "privacy": "private", - "static": true }, { "kind": "method", - "name": "createHelpLink", - "privacy": "private", + "name": "processStateful", + "privacy": "public", "static": true, + "return": { + "type": { + "text": "StatefulStyles" + } + }, "parameters": [ { - "name": "keyHelpUrl", + "name": "styles", "type": { - "text": "string" + "text": "StatefulStyles" } - } - ] - }, - { - "kind": "method", - "name": "createFailText", - "privacy": "private", - "static": true - }, - { - "kind": "method", - "name": "createHelpTextContainer", - "privacy": "private", - "static": true, - "parameters": [ + }, { - "name": "keyHelpUrl", - "optional": true, + "name": "defHover", "type": { - "text": "string" + "text": "CustomStyle" } }, { - "name": "displayCaution", - "default": "true" + "name": "defClick", + "type": { + "text": "CustomStyle" + } } ] }, { "kind": "method", - "name": "onFail", - "privacy": "private", + "name": "mergeStatefulStyles", + "privacy": "public", "static": true, + "return": { + "type": { + "text": "StatefulStyles" + } + }, "parameters": [ { - "name": "inputEl", - "type": { - "text": "HTMLInputElement" - } - }, - { - "name": "startEl", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "failTextEl", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "message", + "name": "stylesArr", "type": { - "text": "string" + "text": "StatefulStyles[]" } } ] }, { "kind": "method", - "name": "onLoad", - "privacy": "private", + "name": "overwriteDefaultWithAlreadyApplied", + "privacy": "public", "static": true, "parameters": [ { - "name": "inputEl", + "name": "styles", "type": { - "text": "HTMLInputElement" + "text": "StatefulStyles" } }, { - "name": "startEl", + "name": "element", "type": { "text": "HTMLElement" } @@ -27301,165 +27210,207 @@ }, { "kind": "method", - "name": "verifyKey", - "privacy": "private", + "name": "applyToStyleIfNotDefined", + "privacy": "public", "static": true, "parameters": [ { - "name": "inputElement", - "type": { - "text": "HTMLInputElement" - } - }, - { - "name": "keyVerificationHandlers", + "name": "cssDeclaration", "type": { - "text": "KeyVerificationHandlers" + "text": "CSSStyleDeclaration" } }, { - "name": "serviceIO", + "name": "source", "type": { - "text": "ServiceIO" + "text": "CustomStyle" } } ] - }, + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "StyleUtils", + "declaration": { + "name": "StyleUtils", + "module": "src/utils/element/styleUtils.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/utils/errorMessages/errorMessages.ts", + "declarations": [ + { + "kind": "variable", + "name": "ErrorMessages", + "type": { + "text": "object" + }, + "default": "{\n INVALID_KEY: 'Invalid API Key',\n CONNECTION_FAILED: 'Failed to connect',\n INVALID_RESPONSE: getInvalidResponseMessage,\n INVALID_MODEL_REQUEST: getModelRequestMessage,\n INVALID_MODEL_RESPONSE: getModelResponseMessage,\n INVALID_STREAM_EVENT,\n INVALID_STREAM_EVENT_MIX: 'Cannot mix {text: string} and {html: string} responses.',\n NO_VALID_STREAM_EVENTS_SENT: `No valid stream events were sent.\\n${INVALID_STREAM_EVENT}`,\n}" + } + ], + "exports": [ + { + "kind": "js", + "name": "ErrorMessages", + "declaration": { + "name": "ErrorMessages", + "module": "src/utils/errorMessages/errorMessages.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/utils/events/fireEvents.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "FireEvents", + "members": [ { "kind": "method", - "name": "addVerificationEvents", - "privacy": "private", + "name": "onNewMessage", + "privacy": "public", "static": true, "parameters": [ { - "name": "inputEl", - "type": { - "text": "HTMLInputElement" - } - }, - { - "name": "startEl", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "failTextEl", + "name": "deepChat", "type": { - "text": "HTMLElement" + "text": "DeepChat" } }, { - "name": "changeToChat", + "name": "message", "type": { - "text": "() => void" + "text": "MessageContentI" } }, { - "name": "serviceIO", - "type": { - "text": "ServiceIO" - } - } - ] - }, - { - "kind": "method", - "name": "createStartButton", - "privacy": "private", - "static": true - }, - { - "kind": "method", - "name": "onInputFocus", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "event", + "name": "isInitial", "type": { - "text": "FocusEvent" + "text": "boolean" } } ] }, { "kind": "method", - "name": "createInput", - "privacy": "private", + "name": "onClearMessages", + "privacy": "public", "static": true, "parameters": [ { - "name": "placeholderText", - "optional": true, + "name": "deepChat", "type": { - "text": "string" + "text": "DeepChat" } } ] }, { "kind": "method", - "name": "createContents", - "privacy": "private", + "name": "onRender", + "privacy": "public", "static": true, "parameters": [ { - "name": "changeToChat", - "type": { - "text": "() => void" - } - }, - { - "name": "serviceIO", + "name": "deepChat", "type": { - "text": "ServiceIO" + "text": "DeepChat" } } ] }, { "kind": "method", - "name": "createElements", - "privacy": "private", + "name": "onError", + "privacy": "public", "static": true, "parameters": [ { - "name": "changeToChat", + "name": "deepChat", "type": { - "text": "() => void" + "text": "DeepChat" } }, { - "name": "serviceIO", + "name": "error", "type": { - "text": "ServiceIO" + "text": "string" } } ] - }, + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "FireEvents", + "declaration": { + "name": "FireEvents", + "module": "src/utils/events/fireEvents.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/utils/files/fileTypeButtonIcons.ts", + "declarations": [ + { + "kind": "variable", + "name": "FILE_TYPE_BUTTON_ICONS", + "type": { + "text": "ServiceFileTypes" + }, + "default": "{\n images: {id: 'upload-images-icon', svgString: IMAGE_ICON_STRING, dropupText: 'Image'},\n gifs: {id: 'upload-gifs-icon', svgString: GIF_ICON_STRING, dropupText: 'GIF'},\n audio: {id: 'upload-audio-icon', svgString: AUDIO_ICON_STRING, dropupText: 'Audio'},\n mixedFiles: {id: 'upload-mixed-files-icon', svgString: MIXED_FILES_ICON_STRING, dropupText: 'File'},\n}" + } + ], + "exports": [ + { + "kind": "js", + "name": "FILE_TYPE_BUTTON_ICONS", + "declaration": { + "name": "FILE_TYPE_BUTTON_ICONS", + "module": "src/utils/files/fileTypeButtonIcons.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/utils/files/fileUtils.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "FileUtils", + "members": [ { "kind": "method", - "name": "render", + "name": "load", "privacy": "public", "static": true, + "return": { + "type": { + "text": "Promise" + } + }, "parameters": [ { - "name": "containerRef", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "changeToChat", - "type": { - "text": "() => void" - } - }, - { - "name": "serviceIO", + "name": "file", "type": { - "text": "ServiceIO" + "text": "File" } } ] @@ -27470,79 +27421,93 @@ "exports": [ { "kind": "js", - "name": "InsertKeyView", + "name": "FileUtils", "declaration": { - "name": "InsertKeyView", - "module": "src/views/insertKey/insertKeyView.ts" + "name": "FileUtils", + "module": "src/utils/files/fileUtils.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/insertKey/visibilityIcon.ts", + "path": "src/utils/legacy/legacy.ts", "declarations": [ { "kind": "class", "description": "", - "name": "VisibilityIcon", + "name": "Legacy", "members": [ - { - "kind": "field", - "name": "VISIBLE_ICON_ID", - "type": { - "text": "string" - }, - "privacy": "private", - "static": true, - "default": "'visible-icon'" - }, { "kind": "method", - "name": "changeVisibility", - "privacy": "private", + "name": "checkForContainerStyles", + "privacy": "public", "static": true, "parameters": [ { - "name": "inputElement", + "name": "deepChat", "type": { - "text": "HTMLInputElement" + "text": "DeepChat" } }, { - "name": "visibleIcon", + "name": "containerRef", "type": { - "text": "SVGGraphicsElement" + "text": "HTMLElement" } - }, + } + ] + }, + { + "kind": "method", + "name": "handleResponseProperty", + "privacy": "public", + "static": true, + "parameters": [ { - "name": "notVisibleIcon", + "name": "result", "type": { - "text": "SVGGraphicsElement" + "text": "any | Response" } - }, + } + ] + }, + { + "kind": "method", + "name": "processInitialMessageFile", + "privacy": "public", + "static": true, + "parameters": [ { - "name": "event", + "name": "message", "type": { - "text": "MouseEvent" + "text": "MessageContent" } } ] }, { "kind": "method", - "name": "createIconElement", - "privacy": "private", + "name": "processValidateInput", + "privacy": "public", "static": true, "parameters": [ { - "name": "iconString", + "name": "deepChat", "type": { - "text": "string" + "text": "DeepChat" } - }, + } + ] + }, + { + "kind": "method", + "name": "processSubmitUserMessage", + "privacy": "public", + "static": true, + "parameters": [ { - "name": "id", + "name": "content", "type": { "text": "string" } @@ -27551,14 +27516,14 @@ }, { "kind": "method", - "name": "create", + "name": "flagHTMLUpdateClass", "privacy": "public", "static": true, "parameters": [ { - "name": "inputElement", + "name": "bubbleElement", "type": { - "text": "HTMLInputElement" + "text": "HTMLElement" } } ] @@ -27569,174 +27534,279 @@ "exports": [ { "kind": "js", - "name": "VisibilityIcon", + "name": "Legacy", "declaration": { - "name": "VisibilityIcon", - "module": "src/views/insertKey/visibilityIcon.ts" + "name": "Legacy", + "module": "src/utils/legacy/legacy.ts" } } ] }, { "kind": "javascript-module", - "path": "src/types/webModel/webModel.ts", - "declarations": [], - "exports": [] - }, - { - "kind": "javascript-module", - "path": "src/views/validateKeyProperty/validateKeyPropertyView.ts", + "path": "src/utils/svg/svgIconUtils.ts", "declarations": [ { "kind": "class", "description": "", - "name": "ValidateKeyPropertyView", + "name": "SVGIconUtils", "members": [ { "kind": "method", - "name": "onLoad", - "privacy": "private", + "name": "createSVGElement", + "privacy": "public", "static": true, + "return": { + "type": { + "text": "SVGGraphicsElement" + } + }, "parameters": [ { - "name": "startElement", + "name": "svgString", "type": { - "text": "HTMLElement" + "text": "string" } } ] - }, + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "SVGIconUtils", + "declaration": { + "name": "SVGIconUtils", + "module": "src/utils/svg/svgIconUtils.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/utils/webComponent/googleFont.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "GoogleFont", + "members": [ { - "kind": "method", - "name": "createElements", + "kind": "field", + "name": "FONT_URL", + "type": { + "text": "string" + }, "privacy": "private", - "static": true + "static": true, + "default": "'https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap'" }, { "kind": "method", - "name": "render", + "name": "appendStyleSheetToHead", "privacy": "public", + "static": true + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "GoogleFont", + "declaration": { + "name": "GoogleFont", + "module": "src/utils/webComponent/googleFont.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/utils/webComponent/internalHTML.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "InternalHTML", + "members": [ + { + "kind": "field", + "name": "_waitingToRender_", + "type": { + "text": "boolean" + }, + "default": "false" + }, + { + "kind": "field", + "name": "_propUpdated_", + "type": { + "text": "boolean" + }, + "default": "false" + }, + { + "kind": "field", + "name": "_attributes_", + "type": { + "text": "GenericObject" + }, + "static": true, + "default": "{}" + }, + { + "kind": "field", + "name": "_attributeToProperty_", + "type": { + "text": "GenericObject" + }, "static": true, + "default": "{}" + }, + { + "kind": "method", + "name": "constructPropertyAccessors", + "privacy": "private", "parameters": [ { - "name": "containerRef", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "changeToChat", + "name": "propertyKey", "type": { - "text": "() => void" + "text": "string" } }, { - "name": "serviceIO", + "name": "attributeName", + "optional": true, "type": { - "text": "ServiceIO" + "text": "string" } } ] + }, + { + "kind": "method", + "name": "onRender" } - ] + ], + "superclass": { + "name": "HTMLElement" + }, + "customElement": true } ], "exports": [ { "kind": "js", - "name": "ValidateKeyPropertyView", + "name": "InternalHTML", "declaration": { - "name": "ValidateKeyPropertyView", - "module": "src/views/validateKeyProperty/validateKeyPropertyView.ts" + "name": "InternalHTML", + "module": "src/utils/webComponent/internalHTML.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/assemblyAI/utils/assemblyAIUtils.ts", + "path": "src/utils/webComponent/webComponentStyleUtils.ts", "declarations": [ { "kind": "class", "description": "", - "name": "AssemblyAIUtils", + "name": "WebComponentStyleUtils", "members": [ + { + "kind": "field", + "name": "DEFAULT_COMPONENT_STYLE", + "type": { + "text": "Partial" + }, + "privacy": "private", + "static": true, + "default": "{\n height: '350px',\n width: '320px',\n border: '1px solid #cacaca',\n fontFamily: `'Inter', sans-serif, Avenir, Helvetica, Arial`,\n fontSize: '0.9rem',\n backgroundColor: 'white',\n position: 'relative',\n // this is used to prevent inputAreaStyle background color from going beyond the container's rounded border\n // it will cause issues if there are elements that are meant to be outside of the chat component and in\n // that instance they should overwrite this\n // this is also causing the chat to squeeze when there is no space\n overflow: 'hidden',\n }" + }, { "kind": "method", - "name": "poll", + "name": "apply", "privacy": "public", "static": true, "parameters": [ { - "name": "api_token", + "name": "style", "type": { "text": "string" } }, { - "name": "audio_url", + "name": "shadowRoot", "type": { - "text": "string" + "text": "ShadowRoot | null" } } ] }, { "kind": "method", - "name": "buildHeaders", - "privacy": "public", + "name": "applyStyleSheet", + "privacy": "private", "static": true, "parameters": [ { - "name": "key", + "name": "style", "type": { "text": "string" } + }, + { + "name": "shadowRoot", + "type": { + "text": "ShadowRoot" + } } ] }, { "kind": "method", - "name": "handleVerificationResult", + "name": "addStyleElement", "privacy": "private", "static": true, "parameters": [ { - "name": "result", - "type": { - "text": "object" - } - }, - { - "name": "key", + "name": "style", "type": { "text": "string" } }, { - "name": "onSuccess", - "type": { - "text": "(key: string) => void" - } - }, - { - "name": "onFail", + "name": "shadowRoot", "type": { - "text": "(message: string) => void" + "text": "ShadowRoot" } } ] }, { "kind": "method", - "name": "buildKeyVerificationDetails", + "name": "applyDefaultStyleToComponent", "privacy": "public", "static": true, - "return": { - "type": { - "text": "KeyVerificationDetails" + "parameters": [ + { + "name": "style", + "type": { + "text": "CSSStyleDeclaration" + } + }, + { + "name": "chatStyle", + "optional": true, + "type": { + "text": "CustomStyle" + } } - } + ] } ] } @@ -27744,79 +27814,176 @@ "exports": [ { "kind": "js", - "name": "AssemblyAIUtils", + "name": "WebComponentStyleUtils", "declaration": { - "name": "AssemblyAIUtils", - "module": "src/services/assemblyAI/utils/assemblyAIUtils.ts" + "name": "WebComponentStyleUtils", + "module": "src/utils/webComponent/webComponentStyleUtils.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/cohere/utils/cohereUtils.ts", + "path": "src/types/webModel/webModel.ts", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "src/views/chat/input/input.ts", "declarations": [ { "kind": "class", "description": "", - "name": "CohereUtils", + "name": "Input", "members": [ + { + "kind": "field", + "name": "elementRef", + "type": { + "text": "HTMLElement" + } + }, { "kind": "method", - "name": "buildHeaders", - "privacy": "public", + "name": "createPanelElement", + "privacy": "private", "static": true, "parameters": [ { - "name": "key", + "name": "customStyle", + "optional": true, "type": { - "text": "string" + "text": "CustomStyle" } } ] }, { "kind": "method", - "name": "handleVerificationResult", + "name": "createFileUploadComponents", + "privacy": "private", + "parameters": [ + { + "name": "deepChat", + "type": { + "text": "DeepChat" + } + }, + { + "name": "serviceIO", + "type": { + "text": "ServiceIO" + } + }, + { + "name": "containerElement", + "type": { + "text": "HTMLElement" + } + }, + { + "name": "buttons", + "type": { + "text": "Buttons" + } + } + ] + }, + { + "kind": "method", + "name": "createUploadButtons", "privacy": "private", "static": true, "parameters": [ { - "name": "result", + "name": "deepChat", "type": { - "text": "object" + "text": "DeepChat" } }, { - "name": "key", + "name": "fileTypes", "type": { - "text": "string" + "text": "ServiceFileTypes" } }, { - "name": "onSuccess", + "name": "fileAtt", "type": { - "text": "(key: string) => void" + "text": "FileAttachments" } }, { - "name": "onFail", + "name": "containerEl", "type": { - "text": "(message: string) => void" + "text": "HTMLElement" + } + }, + { + "name": "buttons", + "type": { + "text": "Buttons" } } ] }, { "kind": "method", - "name": "buildKeyVerificationDetails", - "privacy": "public", + "name": "addElements", + "privacy": "private", "static": true, - "return": { - "type": { - "text": "KeyVerificationDetails" + "parameters": [ + { + "name": "panel", + "type": { + "text": "HTMLElement" + } + }, + { + "name": "textInput", + "type": { + "text": "TextInputEl" + } + }, + { + "name": "buttons", + "type": { + "text": "Buttons" + } + }, + { + "name": "container", + "type": { + "text": "HTMLElement" + } + }, + { + "name": "fileAttachments", + "type": { + "text": "FileAttachments" + } + }, + { + "name": "dropupStyles", + "optional": true, + "type": { + "text": "DropupStyles" + } } - } + ] + }, + { + "kind": "field", + "name": "submit", + "type": { + "text": "object" + }, + "default": "{button: submitButton}" + }, + { + "kind": "field", + "name": "submitUserMessage" } ] } @@ -27824,79 +27991,103 @@ "exports": [ { "kind": "js", - "name": "CohereUtils", + "name": "Input", "declaration": { - "name": "CohereUtils", - "module": "src/services/cohere/utils/cohereUtils.ts" + "name": "Input", + "module": "src/views/chat/input/input.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/huggingFace/utils/huggingFaceUtils.ts", + "path": "src/views/chat/introPanel/introPanel.ts", "declarations": [ { "kind": "class", "description": "", - "name": "HuggingFaceUtils", + "name": "IntroPanel", "members": [ + { + "kind": "field", + "name": "_elementRef", + "type": { + "text": "HTMLElement | undefined" + } + }, + { + "kind": "field", + "name": "_isDisplayed", + "type": { + "text": "boolean" + }, + "privacy": "private", + "default": "false" + }, { "kind": "method", - "name": "buildHeaders", - "privacy": "public", + "name": "createIntroPanel", + "privacy": "private", "static": true, "parameters": [ { - "name": "key", + "name": "introPanelStyle", + "optional": true, "type": { - "text": "string" + "text": "CustomStyle" } } ] }, { "kind": "method", - "name": "handleVerificationResult", + "name": "createIntroPanelWithChild", "privacy": "private", - "static": true, "parameters": [ { - "name": "result", + "name": "childElement", "type": { - "text": "object" + "text": "HTMLElement" } }, { - "name": "key", + "name": "introPanelStyle", + "optional": true, "type": { - "text": "string" + "text": "CustomStyle" } - }, + } + ] + }, + { + "kind": "method", + "name": "createInternalIntroPanel", + "privacy": "private", + "parameters": [ { - "name": "onSuccess", + "name": "introPanelMarkUp", "type": { - "text": "(key: string) => void" + "text": "string" } }, { - "name": "onFail", + "name": "introPanelStyle", + "optional": true, "type": { - "text": "(message: string) => void" + "text": "CustomStyle" } } ] }, { "kind": "method", - "name": "buildKeyVerificationDetails", - "privacy": "public", - "static": true, - "return": { - "type": { - "text": "KeyVerificationDetails" - } - } + "name": "hide", + "privacy": "public" + }, + { + "kind": "method", + "name": "display", + "privacy": "public" } ] } @@ -27904,10 +28095,10 @@ "exports": [ { "kind": "js", - "name": "HuggingFaceUtils", + "name": "IntroPanel", "declaration": { - "name": "HuggingFaceUtils", - "module": "src/services/huggingFace/utils/huggingFaceUtils.ts" + "name": "IntroPanel", + "module": "src/views/chat/introPanel/introPanel.ts" } } ] @@ -28159,13 +28350,33 @@ }, { "kind": "javascript-module", - "path": "src/services/stabilityAI/utils/stabilityAIUtils.ts", + "path": "src/services/assemblyAI/utils/assemblyAIUtils.ts", "declarations": [ { "kind": "class", "description": "", - "name": "StabilityAIUtils", + "name": "AssemblyAIUtils", "members": [ + { + "kind": "method", + "name": "poll", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "api_token", + "type": { + "text": "string" + } + }, + { + "name": "audio_url", + "type": { + "text": "string" + } + } + ] + }, { "kind": "method", "name": "buildHeaders", @@ -28229,102 +28440,99 @@ "exports": [ { "kind": "js", - "name": "StabilityAIUtils", + "name": "AssemblyAIUtils", "declaration": { - "name": "StabilityAIUtils", - "module": "src/services/stabilityAI/utils/stabilityAIUtils.ts" + "name": "AssemblyAIUtils", + "module": "src/services/assemblyAI/utils/assemblyAIUtils.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/openAI/utils/openAIAssistantFiles.ts", + "path": "src/views/chat/messages/avatar.ts", "declarations": [ { "kind": "class", "description": "", - "name": "OpenAIAssistantFiles", + "name": "Avatar", "members": [ + { + "kind": "field", + "name": "CONTAINER_CLASS", + "type": { + "text": "string" + }, + "privacy": "private", + "static": true, + "default": "'avatar-container'" + }, { "kind": "method", - "name": "storeFiles", + "name": "hide", "privacy": "public", "static": true, "parameters": [ { - "name": "serviceIO", + "name": "innerContainer", "type": { - "text": "ServiceIO" - } - }, - { - "name": "messages", - "type": { - "text": "Messages" - } - }, - { - "name": "files", - "type": { - "text": "File[]" + "text": "HTMLElement" } } ] }, { "kind": "method", - "name": "getType", + "name": "applyCustomStylesToElements", "privacy": "private", "static": true, - "return": { - "type": { - "text": "MessageFileType" - } - }, "parameters": [ { - "name": "fileDetails", + "name": "container", "type": { - "text": "FileDetails" + "text": "HTMLElement" } }, { - "name": "index", + "name": "avatar", "type": { - "text": "number" + "text": "HTMLElement" + } + }, + { + "name": "style", + "type": { + "text": "AvatarStyles" } } ] }, { "kind": "method", - "name": "getFiles", + "name": "applyCustomStyles", "privacy": "private", "static": true, "parameters": [ { - "name": "serviceIO", + "name": "container", "type": { - "text": "ServiceIO" + "text": "HTMLElement" } }, { - "name": "fileDetails", + "name": "avatar", "type": { - "text": "FileDetails" + "text": "HTMLElement" } - } - ] - }, - { - "kind": "method", - "name": "getFileName", - "privacy": "private", - "static": true, - "parameters": [ + }, { - "name": "path", + "name": "avatars", + "type": { + "text": "CustomAvatars" + } + }, + { + "name": "role", "type": { "text": "string" } @@ -28333,75 +28541,68 @@ }, { "kind": "method", - "name": "getFileDetails", + "name": "createAvatar", "privacy": "private", "static": true, "parameters": [ { - "name": "lastMessage", + "name": "role", "type": { - "text": "OpenAIAssistantData" + "text": "string" } }, { - "name": "content", + "name": "avatars", "optional": true, "type": { - "text": "OpenAIAssistantContent" + "text": "CustomAvatars" } } ] }, { "kind": "method", - "name": "getFilesAndNewText", + "name": "getPosition", "privacy": "private", "static": true, "parameters": [ { - "name": "io", - "type": { - "text": "ServiceIO" - } - }, - { - "name": "fileDetails", + "name": "role", "type": { - "text": "FileDetails" + "text": "string" } }, { - "name": "content", + "name": "avatars", "optional": true, "type": { - "text": "OpenAIAssistantContent" + "text": "CustomAvatars" } } ] }, { "kind": "method", - "name": "getFilesAndText", + "name": "add", "privacy": "public", "static": true, "parameters": [ { - "name": "io", + "name": "messageText", "type": { - "text": "ServiceIO" + "text": "HTMLElement" } }, { - "name": "lastMessage", + "name": "role", "type": { - "text": "OpenAIAssistantData" + "text": "string" } }, { - "name": "content", - "optional": true, + "name": "avatars", "type": { - "text": "OpenAIAssistantContent" + "text": "Avatars" } } ] @@ -28412,31 +28613,59 @@ "exports": [ { "kind": "js", - "name": "OpenAIAssistantFiles", + "name": "Avatar", "declaration": { - "name": "OpenAIAssistantFiles", - "module": "src/services/openAI/utils/openAIAssistantFiles.ts" + "name": "Avatar", + "module": "src/views/chat/messages/avatar.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/openAI/utils/openAIUtils.ts", + "path": "src/views/chat/messages/fileMessageUtils.ts", "declarations": [ { "kind": "class", "description": "", - "name": "OpenAIUtils", + "name": "FileMessageUtils", "members": [ + { + "kind": "field", + "name": "DEFAULT_FILE_NAME", + "type": { + "text": "string" + }, + "privacy": "public", + "static": true, + "default": "'file'" + }, { "kind": "method", - "name": "buildHeaders", + "name": "addMessage", "privacy": "public", "static": true, "parameters": [ { - "name": "key", + "name": "messages", + "type": { + "text": "MessagesBase" + } + }, + { + "name": "elements", + "type": { + "text": "MessageElements" + } + }, + { + "name": "styles", + "type": { + "text": "keyof MessageStyles" + } + }, + { + "name": "role", "type": { "text": "string" } @@ -28445,74 +28674,155 @@ }, { "kind": "method", - "name": "handleVerificationResult", + "name": "wrapInLink", "privacy": "private", "static": true, "parameters": [ { - "name": "result", + "name": "element", "type": { - "text": "object" + "text": "HTMLElement" } }, { - "name": "key", + "name": "url", "type": { "text": "string" } }, { - "name": "onSuccess", + "name": "name", + "optional": true, "type": { - "text": "(key: string) => void" + "text": "string" + } + } + ] + }, + { + "kind": "method", + "name": "isNonLinkableDataUrl", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "type", + "type": { + "text": "MessageFileType" } }, { - "name": "onFail", + "name": "url", "type": { - "text": "(message: string) => void" + "text": "string" } } ] }, { "kind": "method", - "name": "buildKeyVerificationDetails", + "name": "processContent", "privacy": "public", "static": true, - "return": { - "type": { - "text": "KeyVerificationDetails" + "parameters": [ + { + "name": "type", + "type": { + "text": "MessageFileType" + } + }, + { + "name": "contentEl", + "type": { + "text": "HTMLElement" + } + }, + { + "name": "url", + "optional": true, + "type": { + "text": "string" + } + }, + { + "name": "name", + "optional": true, + "type": { + "text": "string" + } } - } + ] }, { "kind": "method", - "name": "directFetch", + "name": "waitToLoadThenScroll", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "messagesContainerEl", + "type": { + "text": "HTMLElement" + } + } + ] + }, + { + "kind": "method", + "name": "scrollDownOnImageLoad", "privacy": "public", "static": true, "parameters": [ { - "name": "serviceIO", + "name": "url", "type": { - "text": "ServiceIO" + "text": "string" } }, { - "name": "body", + "name": "messagesContainerEl", "type": { - "text": "any" + "text": "HTMLElement" } - }, + } + ] + }, + { + "kind": "method", + "name": "reAddFileRefToObject", + "privacy": "public", + "static": true, + "parameters": [ { - "name": "method", + "name": "message", "type": { - "text": "'POST' | 'GET'" + "text": "MessageContent" } }, { - "name": "stringify", - "default": "true" + "name": "body", + "type": { + "text": "{message: MessageContent; isInitial: boolean}" + } + } + ] + }, + { + "kind": "method", + "name": "removeFileRef", + "privacy": "public", + "static": true, + "return": { + "type": { + "text": "Omit" + } + }, + "parameters": [ + { + "name": "messageFile", + "type": { + "text": "MessageFile" + } } ] } @@ -28522,170 +28832,180 @@ "exports": [ { "kind": "js", - "name": "OpenAIUtils", + "name": "FileMessageUtils", "declaration": { - "name": "OpenAIUtils", - "module": "src/services/openAI/utils/openAIUtils.ts" + "name": "FileMessageUtils", + "module": "src/views/chat/messages/fileMessageUtils.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/input.ts", + "path": "src/views/chat/messages/fileMessages.ts", "declarations": [ { "kind": "class", "description": "", - "name": "Input", + "name": "FileMessages", "members": [ - { - "kind": "field", - "name": "elementRef", - "type": { - "text": "HTMLElement" - } - }, { "kind": "method", - "name": "createPanelElement", + "name": "createImage", "privacy": "private", "static": true, "parameters": [ { - "name": "customStyle", - "optional": true, + "name": "imageData", "type": { - "text": "CustomStyle" + "text": "MessageFile" + } + }, + { + "name": "messagesContainerEl", + "type": { + "text": "HTMLElement" } } ] }, { "kind": "method", - "name": "createFileUploadComponents", + "name": "addNewImageMessage", "privacy": "private", + "static": true, "parameters": [ { - "name": "deepChat", - "type": { - "text": "DeepChat" - } - }, - { - "name": "serviceIO", + "name": "messages", "type": { - "text": "ServiceIO" + "text": "Messages" } }, { - "name": "containerElement", + "name": "imageData", "type": { - "text": "HTMLElement" + "text": "MessageFile" } }, { - "name": "buttons", + "name": "role", "type": { - "text": "Buttons" + "text": "string" } } ] }, { "kind": "method", - "name": "createUploadButtons", + "name": "createAudioElement", "privacy": "private", "static": true, "parameters": [ { - "name": "deepChat", + "name": "audioData", "type": { - "text": "DeepChat" + "text": "MessageFile" } }, { - "name": "fileTypes", + "name": "role", "type": { - "text": "ServiceFileTypes" + "text": "string" } - }, + } + ] + }, + { + "kind": "method", + "name": "addNewAudioMessage", + "privacy": "private", + "static": true, + "parameters": [ { - "name": "fileAtt", + "name": "messages", "type": { - "text": "FileAttachments" + "text": "Messages" } }, { - "name": "containerEl", + "name": "audioData", "type": { - "text": "HTMLElement" + "text": "MessageFile" } }, { - "name": "buttons", + "name": "role", "type": { - "text": "Buttons" + "text": "string" } } ] }, { "kind": "method", - "name": "addElements", + "name": "createAnyFile", "privacy": "private", "static": true, "parameters": [ { - "name": "panel", + "name": "imageData", "type": { - "text": "HTMLElement" + "text": "MessageFile" } - }, + } + ] + }, + { + "kind": "method", + "name": "addNewAnyFileMessage", + "privacy": "private", + "static": true, + "parameters": [ { - "name": "textInput", + "name": "messages", "type": { - "text": "TextInputEl" + "text": "Messages" } }, { - "name": "buttons", + "name": "data", "type": { - "text": "Buttons" + "text": "MessageFile" } }, { - "name": "container", + "name": "role", "type": { - "text": "HTMLElement" + "text": "string" + } + } + ] + }, + { + "kind": "method", + "name": "addMessages", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "messages", + "type": { + "text": "Messages" } }, { - "name": "fileAttachments", + "name": "files", "type": { - "text": "FileAttachments" + "text": "MessageFiles" } }, { - "name": "dropupStyles", - "optional": true, + "name": "role", "type": { - "text": "DropupStyles" + "text": "string" } } ] - }, - { - "kind": "field", - "name": "submit", - "type": { - "text": "object" - }, - "default": "{button: submitButton}" - }, - { - "kind": "field", - "name": "submitUserMessage" } ] } @@ -28693,346 +29013,224 @@ "exports": [ { "kind": "js", - "name": "Input", + "name": "FileMessages", "declaration": { - "name": "Input", - "module": "src/views/chat/input/input.ts" + "name": "FileMessages", + "module": "src/views/chat/messages/fileMessages.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/introPanel/introPanel.ts", + "path": "src/views/chat/messages/loadingMessageDotsStyle.ts", "declarations": [ { "kind": "class", "description": "", - "name": "IntroPanel", + "name": "LoadingMessageDotsStyle", "members": [ - { - "kind": "field", - "name": "_elementRef", - "type": { - "text": "HTMLElement | undefined" - } - }, - { - "kind": "field", - "name": "_isDisplayed", - "type": { - "text": "boolean" - }, - "privacy": "private", - "default": "false" - }, { "kind": "method", - "name": "createIntroPanel", + "name": "colorToHex", "privacy": "private", "static": true, "parameters": [ { - "name": "introPanelStyle", - "optional": true, + "name": "color", "type": { - "text": "CustomStyle" + "text": "string" } } ] }, { "kind": "method", - "name": "createIntroPanelWithChild", - "privacy": "private", + "name": "set", + "privacy": "public", + "static": true, "parameters": [ { - "name": "childElement", + "name": "bubbleElement", "type": { "text": "HTMLElement" } }, { - "name": "introPanelStyle", + "name": "messageStyles", "optional": true, "type": { - "text": "CustomStyle" + "text": "MessageStyles" } } ] - }, + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "LoadingMessageDotsStyle", + "declaration": { + "name": "LoadingMessageDotsStyle", + "module": "src/views/chat/messages/loadingMessageDotsStyle.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/chat/messages/messageStyleUtils.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "MessageStyleUtils", + "members": [ { "kind": "method", - "name": "createInternalIntroPanel", - "privacy": "private", + "name": "applyCustomStylesToElements", + "privacy": "public", + "static": true, "parameters": [ { - "name": "introPanelMarkUp", + "name": "elements", "type": { - "text": "string" + "text": "MessageElements" } }, { - "name": "introPanelStyle", + "name": "isMedia", + "type": { + "text": "boolean" + } + }, + { + "name": "styles", "optional": true, "type": { - "text": "CustomStyle" + "text": "MessageElementsStyles" } } ] }, { "kind": "method", - "name": "hide", - "privacy": "public" - }, - { - "kind": "method", - "name": "display", - "privacy": "public" - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "IntroPanel", - "declaration": { - "name": "IntroPanel", - "module": "src/views/chat/introPanel/introPanel.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/types/webModel/webLLM/webLLM.ts", - "declarations": [], - "exports": [ - { - "kind": "js", - "name": "ChatWorkerClient", - "declaration": { - "name": "ChatWorkerClient", - "module": "./webLLMClient" - } - }, - { - "kind": "js", - "name": "ChatModule", - "declaration": { - "name": "ChatModule", - "module": "./webLLMChatModule" - } - }, - { - "kind": "js", - "name": "*", - "declaration": { - "name": "*", - "package": "./webLLMShared" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/types/webModel/webLLM/webLLMChatModule.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "ChatModule", - "members": [ - { - "kind": "field", - "name": "logger", - "privacy": "private" - }, - { - "kind": "field", - "name": "pipeline", - "privacy": "private" - }, - { - "kind": "field", - "name": "initProgressCallback", - "privacy": "private" - }, - { - "kind": "field", - "name": "interruptSignal", - "privacy": "private" - }, - { - "kind": "method", - "name": "setInitProgressCallback", - "return": { - "type": { - "text": "void" - } - }, + "name": "applySideStyles", + "privacy": "private", + "static": true, "parameters": [ { - "name": "initProgressCallback", + "name": "elements", "type": { - "text": "InitProgressCallback" + "text": "MessageElements" } - } - ] - }, - { - "kind": "method", - "name": "reload", - "return": { - "type": { - "text": "Promise" - } - }, - "parameters": [ + }, { - "name": "localId", + "name": "role", "type": { "text": "string" } }, { - "name": "chatOpts", - "optional": true, + "name": "media", "type": { - "text": "ChatOptions" + "text": "boolean" } }, { - "name": "appConfig", + "name": "styles", "optional": true, "type": { - "text": "AppConfig" + "text": "MessageRoleStyles" } } ] }, { "kind": "method", - "name": "generate", + "name": "isMessageSideStyles", + "privacy": "private", + "static": true, "return": { "type": { - "text": "Promise" + "text": "styles is MessageRoleStyles" } }, "parameters": [ { - "name": "input", + "name": "styles", + "type": { + "text": "MessageRoleStyles | MessageElementsStyles" + } + } + ] + }, + { + "kind": "method", + "name": "applyCustomStyles", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "messageStyles", + "type": { + "text": "MessageStyles" + } + }, + { + "name": "elements", + "type": { + "text": "MessageElements" + } + }, + { + "name": "role", "type": { "text": "string" } }, { - "name": "progressCallback", - "optional": true, + "name": "media", "type": { - "text": "GenerateProgressCallback" + "text": "boolean" } }, { - "name": "streamInterval", + "name": "otherStyles", "optional": true, "type": { - "text": "number" + "text": "MessageRoleStyles | MessageElementsStyles" } } ] }, { "kind": "method", - "name": "interruptGenerate", - "return": { - "type": { - "text": "Promise" - } - } - }, - { - "kind": "method", - "name": "runtimeStatsText", - "return": { - "type": { - "text": "Promise" - } - } - }, - { - "kind": "method", - "name": "resetChat", - "return": { - "type": { - "text": "Promise" - } - } - }, - { - "kind": "method", - "name": "unload", - "return": { - "type": { - "text": "Promise" - } - } - }, - { - "kind": "method", - "name": "stopped", - "return": { - "type": { - "text": "boolean" - } - } - }, - { - "kind": "method", - "name": "getMessage", - "return": { - "type": { - "text": "string" - } - } - }, - { - "kind": "method", - "name": "prefill", + "name": "extractParticularSharedStyles", + "privacy": "public", + "static": true, "return": { "type": { - "text": "Promise" + "text": "MessageElementsStyles | undefined" } }, "parameters": [ { - "name": "input", + "name": "specificStyles", "type": { - "text": "string" + "text": "(keyof CustomStyle)[]" + } + }, + { + "name": "otherStyles", + "optional": true, + "type": { + "text": "MessageRoleStyles" } } ] - }, - { - "kind": "method", - "name": "decode", - "return": { - "type": { - "text": "Promise" - } - } - }, - { - "kind": "field", - "name": "getPipeline", - "privacy": "private" - }, - { - "kind": "field", - "name": "asyncLoadTokenizer", - "privacy": "private" } ] } @@ -29040,230 +29238,309 @@ "exports": [ { "kind": "js", - "name": "ChatModule", + "name": "MessageStyleUtils", "declaration": { - "name": "ChatModule", - "module": "src/types/webModel/webLLM/webLLMChatModule.ts" + "name": "MessageStyleUtils", + "module": "src/views/chat/messages/messageStyleUtils.ts" } } ] }, { "kind": "javascript-module", - "path": "src/types/webModel/webLLM/webLLMClient.ts", + "path": "src/views/chat/messages/messageUtils.ts", "declarations": [ { "kind": "class", "description": "", - "name": "ChatWorkerHandler", + "name": "MessageUtils", "members": [ { "kind": "field", - "name": "chat", - "privacy": "private" + "name": "AI_ROLE", + "type": { + "text": "string" + }, + "privacy": "public", + "static": true, + "default": "'ai'" }, { - "kind": "method", - "name": "handleTask", - "return": { - "type": { - "text": "Promise" - } + "kind": "field", + "name": "USER_ROLE", + "type": { + "text": "string" + }, + "privacy": "public", + "static": true, + "default": "'user'" + }, + { + "kind": "field", + "name": "EMPTY_MESSAGE_CLASS", + "type": { + "text": "string" }, + "privacy": "private", + "static": true, + "default": "'empty-message'" + }, + { + "kind": "method", + "name": "getLastElementsByClass", + "privacy": "public", + "static": true, "parameters": [ { - "name": "uuid", + "name": "messagesElements", "type": { - "text": "string" + "text": "MessageElements[]" } }, { - "name": "task", + "name": "classes", "type": { - "text": "() => Promise" + "text": "string[]" + } + }, + { + "name": "avoidedClasses", + "optional": true, + "type": { + "text": "string[]" } } ] }, { "kind": "method", - "name": "onmessage", - "return": { - "type": { - "text": "void" - } - }, + "name": "getLastMessage", + "privacy": "public", + "static": true, "parameters": [ { - "name": "event", + "name": "messages", "type": { - "text": "MessageEvent" + "text": "MessageContentI[]" + } + }, + { + "name": "role", + "type": { + "text": "string" + } + }, + { + "name": "content", + "optional": true, + "type": { + "text": "keyof Omit" } } ] - } - ] - }, - { - "kind": "class", - "description": "", - "name": "ChatWorkerClient", - "members": [ - { - "kind": "field", - "name": "worker", - "type": { - "text": "ChatWorker" - } - }, - { - "kind": "field", - "name": "initProgressCallback", - "privacy": "private" - }, - { - "kind": "field", - "name": "generateCallbackRegistry", - "privacy": "private" - }, - { - "kind": "field", - "name": "pendingPromise", - "privacy": "private" }, { "kind": "method", - "name": "setInitProgressCallback", - "return": { - "type": { - "text": "void" - } - }, + "name": "getLastTextToElement", + "privacy": "public", + "static": true, "parameters": [ { - "name": "initProgressCallback", + "name": "elemsToText", "type": { - "text": "InitProgressCallback" + "text": "[MessageElements, string][]" + } + }, + { + "name": "elems", + "type": { + "text": "MessageElements" } } ] }, - { - "kind": "field", - "name": "getPromise", - "privacy": "private" - }, { "kind": "method", - "name": "reload", - "return": { - "type": { - "text": "Promise" - } - }, + "name": "overwriteMessage", + "privacy": "public", + "static": true, "parameters": [ { - "name": "localIdOrUrl", + "name": "messages", + "type": { + "text": "MessageContentI[]" + } + }, + { + "name": "messagesElements", + "type": { + "text": "MessageElements[]" + } + }, + { + "name": "content", "type": { "text": "string" } }, { - "name": "chatOpts", - "optional": true, + "name": "role", "type": { - "text": "ChatOptions" + "text": "string" } }, { - "name": "appConfig", - "optional": true, + "name": "contentType", "type": { - "text": "AppConfig" + "text": "'text' | 'html'" + } + }, + { + "name": "className", + "type": { + "text": "string" } } ] }, { "kind": "method", - "name": "generate", - "return": { - "type": { - "text": "Promise" - } - }, + "name": "getRoleClass", + "privacy": "public", + "static": true, "parameters": [ { - "name": "input", + "name": "role", "type": { "text": "string" } - }, + } + ] + }, + { + "kind": "method", + "name": "fillEmptyMessageElement", + "privacy": "public", + "static": true, + "parameters": [ { - "name": "progressCallback", - "optional": true, + "name": "bubbleElement", "type": { - "text": "GenerateProgressCallback" + "text": "HTMLElement" } }, { - "name": "streamInterval", - "optional": true, + "name": "content", "type": { - "text": "number" + "text": "string" } } ] }, { "kind": "method", - "name": "runtimeStatsText", - "return": { - "type": { - "text": "Promise" + "name": "unfillEmptyMessageElement", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "bubbleElement", + "type": { + "text": "HTMLElement" + } + }, + { + "name": "newContent", + "type": { + "text": "string" + } } - } + ] }, { "kind": "method", - "name": "interruptGenerate", - "return": { - "type": { - "text": "void" + "name": "getLastMessageBubbleElement", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "messagesEl", + "type": { + "text": "HTMLElement" + } } - } + ] }, { "kind": "method", - "name": "unload", - "return": { - "type": { - "text": "Promise" + "name": "getLastMessageElement", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "messagesEl", + "type": { + "text": "HTMLElement" + } } - } + ] }, { "kind": "method", - "name": "resetChat", - "return": { - "type": { - "text": "Promise" - } - } + "name": "addRoleElements", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "bubbleElement", + "type": { + "text": "HTMLElement" + } + }, + { + "name": "role", + "type": { + "text": "string" + } + }, + { + "name": "avatars", + "optional": true, + "type": { + "text": "Avatars" + } + }, + { + "name": "names", + "optional": true, + "type": { + "text": "Names" + } + } + ] }, { "kind": "method", - "name": "onmessage", - "return": { - "type": { - "text": "void" - } - }, + "name": "hideRoleElements", + "privacy": "public", + "static": true, "parameters": [ { - "name": "event", + "name": "messageElementRefs", "type": { - "text": "any" + "text": "MessageElements[]" + } + }, + { + "name": "avatars", + "type": { + "text": "boolean" + } + }, + { + "name": "names", + "type": { + "text": "boolean" } } ] @@ -29274,117 +29551,592 @@ "exports": [ { "kind": "js", - "name": "ChatWorkerHandler", - "declaration": { - "name": "ChatWorkerHandler", - "module": "src/types/webModel/webLLM/webLLMClient.ts" - } - }, - { - "kind": "js", - "name": "ChatWorkerClient", - "declaration": { - "name": "ChatWorkerClient", - "module": "src/types/webModel/webLLM/webLLMClient.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/types/webModel/webLLM/webLLMShared.ts", - "declarations": [ - { - "kind": "variable", - "name": "prebuiltAppConfig", - "type": { - "text": "AppConfig" - } - } - ], - "exports": [ - { - "kind": "js", - "name": "prebuiltAppConfig", + "name": "MessageUtils", "declaration": { - "name": "prebuiltAppConfig", - "module": "src/types/webModel/webLLM/webLLMShared.ts" + "name": "MessageUtils", + "module": "src/views/chat/messages/messageUtils.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/messages/avatar.ts", + "path": "src/views/chat/messages/messages.ts", "declarations": [ { "kind": "class", "description": "", - "name": "AvatarEl", + "name": "Messages", "members": [ + { + "kind": "field", + "name": "_errorMessageOverrides", + "type": { + "text": "ErrorMessageOverrides | undefined" + }, + "privacy": "private" + }, + { + "kind": "field", + "name": "_onClearMessages", + "type": { + "text": "() => void | undefined" + }, + "privacy": "private" + }, + { + "kind": "field", + "name": "_onError", + "type": { + "text": "(error: string) => void | undefined" + }, + "privacy": "private" + }, + { + "kind": "field", + "name": "_displayLoadingMessage", + "type": { + "text": "boolean | undefined" + }, + "privacy": "private" + }, + { + "kind": "field", + "name": "_permittedErrorPrefixes", + "type": { + "text": "CustomErrors | undefined" + }, + "privacy": "private", + "default": "permittedErrorPrefixes" + }, + { + "kind": "field", + "name": "_displayServiceErrorMessages", + "type": { + "text": "boolean | undefined" + }, + "privacy": "private" + }, + { + "kind": "field", + "name": "_introMessage", + "type": { + "text": "IntroMessage | undefined" + }, + "privacy": "private" + }, + { + "kind": "field", + "name": "customDemoResponse", + "type": { + "text": "DemoResponse | undefined" + } + }, { "kind": "method", - "name": "applyCustomStylesToElements", + "name": "getDisplayLoadingMessage", "privacy": "private", "static": true, "parameters": [ { - "name": "container", + "name": "deepChat", "type": { - "text": "HTMLElement" + "text": "DeepChat" } }, { - "name": "avatar", + "name": "serviceIO", + "type": { + "text": "ServiceIO" + } + } + ] + }, + { + "kind": "method", + "name": "prepareDemo", + "privacy": "private", + "parameters": [ + { + "name": "demo", + "type": { + "text": "Demo" + } + } + ] + }, + { + "kind": "method", + "name": "addSetupMessageIfNeeded", + "privacy": "private", + "parameters": [ + { + "name": "deepChat", + "type": { + "text": "DeepChat" + } + }, + { + "name": "serviceIO", + "type": { + "text": "ServiceIO" + } + } + ] + }, + { + "kind": "method", + "name": "addIntroductoryMessage", + "privacy": "private", + "parameters": [ + { + "name": "deepChat", + "optional": true, + "type": { + "text": "DeepChat" + } + }, + { + "name": "serviceIO", + "optional": true, + "type": { + "text": "ServiceIO" + } + } + ] + }, + { + "kind": "method", + "name": "removeIntroductoryMessage", + "privacy": "public" + }, + { + "kind": "method", + "name": "populateInitialMessages", + "privacy": "private", + "parameters": [ + { + "name": "initialMessages", + "type": { + "text": "MessageContent[]" + } + } + ] + }, + { + "kind": "method", + "name": "fetchHistory", + "privacy": "private", + "parameters": [ + { + "name": "ioFetchHistory", + "type": { + "text": "Required['fetchHistory']" + } + } + ] + }, + { + "kind": "method", + "name": "addNewMessage", + "privacy": "public", + "parameters": [ + { + "name": "data", + "type": { + "text": "ResponseI" + } + }, + { + "name": "isInitial", + "default": "false" + } + ] + }, + { + "kind": "method", + "name": "isValidMessageContent", + "privacy": "private", + "parameters": [ + { + "name": "messageContent", + "type": { + "text": "MessageContentI" + } + } + ] + }, + { + "kind": "method", + "name": "updateStateOnMessage", + "privacy": "private", + "parameters": [ + { + "name": "messageContent", + "type": { + "text": "MessageContentI" + } + }, + { + "name": "overwritten", + "optional": true, + "type": { + "text": "boolean" + } + }, + { + "name": "update", + "default": "true" + }, + { + "name": "initial", + "default": "false" + } + ] + }, + { + "kind": "method", + "name": "removeMessageOnError", + "privacy": "private" + }, + { + "kind": "method", + "name": "addNewErrorMessage", + "privacy": "public", + "parameters": [ + { + "name": "type", + "type": { + "text": "keyof Omit" + } + }, + { + "name": "message", + "optional": true, + "type": { + "text": "string" + } + } + ] + }, + { + "kind": "method", + "name": "checkPermittedErrorPrefixes", + "privacy": "private", + "static": true, + "return": { + "type": { + "text": "string | undefined" + } + }, + "parameters": [ + { + "name": "errorPrefixes", + "type": { + "text": "string[]" + } + }, + { + "name": "message", + "type": { + "text": "string" + } + } + ] + }, + { + "kind": "method", + "name": "getPermittedMessage", + "privacy": "private", + "parameters": [ + { + "name": "message", + "optional": true, + "type": { + "text": "string" + } + } + ] + }, + { + "kind": "method", + "name": "removeError", + "privacy": "public" + }, + { + "kind": "method", + "name": "addLoadingMessage", + "privacy": "public" + }, + { + "kind": "method", + "name": "populateIntroPanel", + "privacy": "private", + "parameters": [ + { + "name": "childElement", + "optional": true, "type": { "text": "HTMLElement" } }, { - "name": "style", + "name": "introPanelMarkUp", + "optional": true, "type": { - "text": "AvatarStyles" + "text": "string" + } + }, + { + "name": "introPanelStyle", + "optional": true, + "type": { + "text": "CustomStyle" + } + } + ] + }, + { + "kind": "method", + "name": "addMultipleFiles", + "privacy": "public", + "parameters": [ + { + "name": "filesData", + "type": { + "text": "{file: File; type: MessageFileType}[]" + } + } + ] + }, + { + "kind": "method", + "name": "clearMessages", + "privacy": "private", + "parameters": [ + { + "name": "serviceIO", + "type": { + "text": "ServiceIO" + } + }, + { + "name": "isReset", + "optional": true, + "type": { + "text": "boolean" } } ] }, + { + "kind": "field", + "name": "getMessages" + }, + { + "kind": "field", + "name": "refreshMessages" + }, + { + "kind": "field", + "name": "_addMessage" + }, + { + "kind": "field", + "name": "messageElementRefs", + "type": { + "text": "MessageElements[]" + }, + "default": "[]", + "inheritedFrom": { + "name": "MessagesBase", + "module": "src/views/chat/messages/messagesBase.ts" + } + }, + { + "kind": "field", + "name": "textToSpeech", + "type": { + "text": "ProcessedTextToSpeechConfig | undefined" + }, + "inheritedFrom": { + "name": "MessagesBase", + "module": "src/views/chat/messages/messagesBase.ts" + } + }, + { + "kind": "field", + "name": "submitUserMessage", + "type": { + "text": "(content: UserContent) => void | undefined" + }, + "inheritedFrom": { + "name": "MessagesBase", + "module": "src/views/chat/messages/messagesBase.ts" + } + }, + { + "kind": "field", + "name": "elementRef", + "type": { + "text": "HTMLElement" + }, + "inheritedFrom": { + "name": "MessagesBase", + "module": "src/views/chat/messages/messagesBase.ts" + } + }, + { + "kind": "field", + "name": "messageStyles", + "type": { + "text": "MessageStyles | undefined" + }, + "inheritedFrom": { + "name": "MessagesBase", + "module": "src/views/chat/messages/messagesBase.ts" + } + }, + { + "kind": "field", + "name": "messages", + "type": { + "text": "MessageContentI[]" + }, + "default": "[]", + "inheritedFrom": { + "name": "MessagesBase", + "module": "src/views/chat/messages/messagesBase.ts" + } + }, + { + "kind": "field", + "name": "htmlClassUtilities", + "type": { + "text": "HTMLClassUtilities" + }, + "default": "{}", + "inheritedFrom": { + "name": "MessagesBase", + "module": "src/views/chat/messages/messagesBase.ts" + } + }, + { + "kind": "field", + "name": "textElementsToText", + "type": { + "text": "[MessageElements, string][]" + }, + "default": "[]", + "inheritedFrom": { + "name": "MessagesBase", + "module": "src/views/chat/messages/messagesBase.ts" + } + }, + { + "kind": "field", + "name": "_introPanel", + "type": { + "text": "IntroPanel | undefined" + }, + "privacy": "protected", + "inheritedFrom": { + "name": "MessagesBase", + "module": "src/views/chat/messages/messagesBase.ts" + } + }, + { + "kind": "field", + "name": "_avatars", + "type": { + "text": "Avatars | undefined" + }, + "privacy": "protected", + "inheritedFrom": { + "name": "MessagesBase", + "module": "src/views/chat/messages/messagesBase.ts" + } + }, + { + "kind": "field", + "name": "_names", + "type": { + "text": "Names | undefined" + }, + "privacy": "protected", + "inheritedFrom": { + "name": "MessagesBase", + "module": "src/views/chat/messages/messagesBase.ts" + } + }, + { + "kind": "field", + "name": "_remarkable", + "type": { + "text": "Remarkable" + }, + "privacy": "private", + "inheritedFrom": { + "name": "MessagesBase", + "module": "src/views/chat/messages/messagesBase.ts" + } + }, + { + "kind": "field", + "name": "_onNewMessage", + "type": { + "text": "(message: MessageContentI, isInitial: boolean) => void | undefined" + }, + "privacy": "private", + "inheritedFrom": { + "name": "MessagesBase", + "module": "src/views/chat/messages/messagesBase.ts" + } + }, + { + "kind": "method", + "name": "createContainerElement", + "privacy": "private", + "static": true, + "inheritedFrom": { + "name": "MessagesBase", + "module": "src/views/chat/messages/messagesBase.ts" + } + }, { "kind": "method", - "name": "applyCustomStyles", - "privacy": "private", - "static": true, + "name": "addNewTextMessage", + "privacy": "public", "parameters": [ { - "name": "container", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "avatar", + "name": "text", "type": { - "text": "HTMLElement" + "text": "string" } }, { - "name": "avatars", + "name": "role", "type": { - "text": "CustomAvatars" + "text": "string" } }, { - "name": "role", + "name": "overwrite", + "optional": true, "type": { - "text": "string" + "text": "Overwrite" } } - ] + ], + "inheritedFrom": { + "name": "MessagesBase", + "module": "src/views/chat/messages/messagesBase.ts" + } }, { "kind": "method", - "name": "createAvatar", + "name": "overwriteText", "privacy": "private", - "static": true, "parameters": [ { "name": "role", @@ -29393,45 +30145,55 @@ } }, { - "name": "avatars", - "optional": true, + "name": "text", "type": { - "text": "CustomAvatars" + "text": "string" + } + }, + { + "name": "elementRefs", + "type": { + "text": "MessageElements[]" } } - ] + ], + "inheritedFrom": { + "name": "MessagesBase", + "module": "src/views/chat/messages/messagesBase.ts" + } }, { "kind": "method", - "name": "getPosition", - "privacy": "private", - "static": true, + "name": "createAndAppendNewMessageElement", + "privacy": "protected", "parameters": [ { - "name": "role", + "name": "text", "type": { "text": "string" } }, { - "name": "avatars", - "optional": true, + "name": "role", "type": { - "text": "CustomAvatars" + "text": "string" } } - ] + ], + "inheritedFrom": { + "name": "MessagesBase", + "module": "src/views/chat/messages/messagesBase.ts" + } }, { "kind": "method", - "name": "add", + "name": "createNewMessageElement", "privacy": "public", - "static": true, "parameters": [ { - "name": "messageText", + "name": "text", "type": { - "text": "HTMLElement" + "text": "string" } }, { @@ -29439,70 +30201,40 @@ "type": { "text": "string" } - }, - { - "name": "avatars", - "type": { - "text": "Avatars" - } } - ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "AvatarEl", - "declaration": { - "name": "AvatarEl", - "module": "src/views/chat/messages/avatar.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/messages/fileMessageUtils.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "FileMessageUtils", - "members": [ - { - "kind": "field", - "name": "DEFAULT_FILE_NAME", - "type": { - "text": "string" - }, - "privacy": "public", - "static": true, - "default": "'file'" + ], + "inheritedFrom": { + "name": "MessagesBase", + "module": "src/views/chat/messages/messagesBase.ts" + } }, { "kind": "method", - "name": "addMessage", - "privacy": "public", + "name": "isTemporaryElement", + "privacy": "protected", "static": true, "parameters": [ - { - "name": "messages", - "type": { - "text": "MessagesBase" - } - }, { "name": "elements", "type": { "text": "MessageElements" } - }, + } + ], + "inheritedFrom": { + "name": "MessagesBase", + "module": "src/views/chat/messages/messagesBase.ts" + } + }, + { + "kind": "method", + "name": "createMessageElements", + "privacy": "protected", + "parameters": [ { - "name": "styles", + "name": "text", "type": { - "text": "keyof MessageStyles" + "text": "string" } }, { @@ -29511,307 +30243,379 @@ "text": "string" } } - ] + ], + "inheritedFrom": { + "name": "MessagesBase", + "module": "src/views/chat/messages/messagesBase.ts" + } }, { "kind": "method", - "name": "wrapInLink", - "privacy": "private", + "name": "createBaseElements", + "privacy": "protected", "static": true, + "return": { + "type": { + "text": "MessageElements" + } + }, + "inheritedFrom": { + "name": "MessagesBase", + "module": "src/views/chat/messages/messagesBase.ts" + } + }, + { + "kind": "method", + "name": "addInnerContainerElements", + "privacy": "private", "parameters": [ { - "name": "element", + "name": "bubbleElement", "type": { "text": "HTMLElement" } }, { - "name": "url", - "type": { - "text": "string" - } - }, - { - "name": "name", - "optional": true, + "name": "text", "type": { "text": "string" } - } - ] - }, - { - "kind": "method", - "name": "isNonLinkableDataUrl", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "type", - "type": { - "text": "MessageFileType" - } }, { - "name": "url", + "name": "role", "type": { "text": "string" } } - ] + ], + "inheritedFrom": { + "name": "MessagesBase", + "module": "src/views/chat/messages/messagesBase.ts" + } }, { "kind": "method", - "name": "processContent", + "name": "applyCustomStyles", "privacy": "public", - "static": true, "parameters": [ { - "name": "type", + "name": "elements", "type": { - "text": "MessageFileType" + "text": "MessageElements | undefined" } }, { - "name": "contentEl", + "name": "role", "type": { - "text": "HTMLElement" + "text": "string" } }, { - "name": "url", - "optional": true, + "name": "media", "type": { - "text": "string" + "text": "boolean" } }, { - "name": "name", + "name": "otherStyles", "optional": true, "type": { - "text": "string" + "text": "MessageRoleStyles | MessageElementsStyles" } } - ] + ], + "inheritedFrom": { + "name": "MessagesBase", + "module": "src/views/chat/messages/messagesBase.ts" + } }, { "kind": "method", - "name": "waitToLoadThenScroll", - "privacy": "private", + "name": "createMessageContent", + "privacy": "public", "static": true, + "return": { + "type": { + "text": "MessageContentI" + } + }, "parameters": [ { - "name": "messagesContainerEl", + "name": "content", "type": { - "text": "HTMLElement" + "text": "Response" } } - ] + ], + "inheritedFrom": { + "name": "MessagesBase", + "module": "src/views/chat/messages/messagesBase.ts" + } }, { "kind": "method", - "name": "scrollDownOnImageLoad", + "name": "removeLastMessage", + "privacy": "public", + "inheritedFrom": { + "name": "MessagesBase", + "module": "src/views/chat/messages/messagesBase.ts" + } + }, + { + "kind": "method", + "name": "isLastMessageError", + "privacy": "public", + "inheritedFrom": { + "name": "MessagesBase", + "module": "src/views/chat/messages/messagesBase.ts" + } + }, + { + "kind": "method", + "name": "sendClientUpdate", "privacy": "public", - "static": true, "parameters": [ { - "name": "url", + "name": "message", "type": { - "text": "string" + "text": "MessageContentI" } }, { - "name": "messagesContainerEl", - "type": { - "text": "HTMLElement" - } + "name": "isInitial", + "default": "false" } - ] + ], + "inheritedFrom": { + "name": "MessagesBase", + "module": "src/views/chat/messages/messagesBase.ts" + } }, { "kind": "method", - "name": "reAddFileRefToObject", + "name": "renderText", "privacy": "public", - "static": true, "parameters": [ { - "name": "message", + "name": "bubbleElement", "type": { - "text": "MessageContent" + "text": "HTMLElement" } }, { - "name": "body", + "name": "text", "type": { - "text": "{message: MessageContent; isInitial: boolean}" + "text": "string" } } - ] + ], + "inheritedFrom": { + "name": "MessagesBase", + "module": "src/views/chat/messages/messagesBase.ts" + } }, { "kind": "method", - "name": "removeFileRef", - "privacy": "public", - "static": true, - "return": { - "type": { - "text": "Omit" - } - }, - "parameters": [ - { - "name": "messageFile", - "type": { - "text": "MessageFile" - } - } - ] + "name": "refreshTextMessages", + "privacy": "protected", + "inheritedFrom": { + "name": "MessagesBase", + "module": "src/views/chat/messages/messagesBase.ts" + } } - ] + ], + "superclass": { + "name": "MessagesBase", + "module": "/src/views/chat/messages/messagesBase" + } } ], "exports": [ { "kind": "js", - "name": "FileMessageUtils", + "name": "Messages", "declaration": { - "name": "FileMessageUtils", - "module": "src/views/chat/messages/fileMessageUtils.ts" + "name": "Messages", + "module": "src/views/chat/messages/messages.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/messages/fileMessages.ts", + "path": "src/views/chat/messages/messagesBase.ts", "declarations": [ { "kind": "class", "description": "", - "name": "FileMessages", + "name": "MessagesBase", "members": [ { - "kind": "method", - "name": "createImage", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "imageData", - "type": { - "text": "MessageFile" - } - }, - { - "name": "messagesContainerEl", - "type": { - "text": "HTMLElement" - } - } - ] + "kind": "field", + "name": "messageElementRefs", + "type": { + "text": "MessageElements[]" + }, + "default": "[]" }, { - "kind": "method", - "name": "addNewImageMessage", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "messages", - "type": { - "text": "Messages" - } - }, - { - "name": "imageData", - "type": { - "text": "MessageFile" - } - }, - { - "name": "role", - "type": { - "text": "string" - } - } - ] + "kind": "field", + "name": "textToSpeech", + "type": { + "text": "ProcessedTextToSpeechConfig | undefined" + } + }, + { + "kind": "field", + "name": "submitUserMessage", + "type": { + "text": "(content: UserContent) => void | undefined" + } + }, + { + "kind": "field", + "name": "elementRef", + "type": { + "text": "HTMLElement" + } + }, + { + "kind": "field", + "name": "messageStyles", + "type": { + "text": "MessageStyles | undefined" + } + }, + { + "kind": "field", + "name": "messages", + "type": { + "text": "MessageContentI[]" + }, + "default": "[]" + }, + { + "kind": "field", + "name": "htmlClassUtilities", + "type": { + "text": "HTMLClassUtilities" + }, + "default": "{}" + }, + { + "kind": "field", + "name": "textElementsToText", + "type": { + "text": "[MessageElements, string][]" + }, + "default": "[]" + }, + { + "kind": "field", + "name": "_introPanel", + "type": { + "text": "IntroPanel | undefined" + }, + "privacy": "protected" + }, + { + "kind": "field", + "name": "_avatars", + "type": { + "text": "Avatars | undefined" + }, + "privacy": "protected" + }, + { + "kind": "field", + "name": "_names", + "type": { + "text": "Names | undefined" + }, + "privacy": "protected" + }, + { + "kind": "field", + "name": "_remarkable", + "type": { + "text": "Remarkable" + }, + "privacy": "private" + }, + { + "kind": "field", + "name": "_onNewMessage", + "type": { + "text": "(message: MessageContentI, isInitial: boolean) => void | undefined" + }, + "privacy": "private" }, { "kind": "method", - "name": "createAudioElement", + "name": "createContainerElement", "privacy": "private", - "static": true, - "parameters": [ - { - "name": "audioData", - "type": { - "text": "MessageFile" - } - }, - { - "name": "role", - "type": { - "text": "string" - } - } - ] + "static": true }, { "kind": "method", - "name": "addNewAudioMessage", - "privacy": "private", - "static": true, + "name": "addNewTextMessage", + "privacy": "public", "parameters": [ { - "name": "messages", + "name": "text", "type": { - "text": "Messages" + "text": "string" } }, { - "name": "audioData", + "name": "role", "type": { - "text": "MessageFile" + "text": "string" } }, { - "name": "role", + "name": "overwrite", + "optional": true, "type": { - "text": "string" + "text": "Overwrite" } } ] }, { "kind": "method", - "name": "createAnyFile", + "name": "overwriteText", "privacy": "private", - "static": true, "parameters": [ { - "name": "imageData", + "name": "role", "type": { - "text": "MessageFile" + "text": "string" + } + }, + { + "name": "text", + "type": { + "text": "string" + } + }, + { + "name": "elementRefs", + "type": { + "text": "MessageElements[]" } } ] }, { "kind": "method", - "name": "addNewAnyFileMessage", - "privacy": "private", - "static": true, + "name": "createAndAppendNewMessageElement", + "privacy": "protected", "parameters": [ { - "name": "messages", - "type": { - "text": "Messages" - } - }, - { - "name": "data", + "name": "text", "type": { - "text": "MessageFile" + "text": "string" } }, { @@ -29824,20 +30628,13 @@ }, { "kind": "method", - "name": "addMessages", + "name": "createNewMessageElement", "privacy": "public", - "static": true, "parameters": [ { - "name": "messages", - "type": { - "text": "Messages" - } - }, - { - "name": "files", + "name": "text", "type": { - "text": "MessageFiles" + "text": "string" } }, { @@ -29847,125 +30644,85 @@ } } ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "FileMessages", - "declaration": { - "name": "FileMessages", - "module": "src/views/chat/messages/fileMessages.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/messages/loadingMessageDotsStyle.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "LoadingMessageDotsStyle", - "members": [ + }, { "kind": "method", - "name": "colorToHex", - "privacy": "private", + "name": "isTemporaryElement", + "privacy": "protected", "static": true, "parameters": [ { - "name": "color", + "name": "elements", "type": { - "text": "string" + "text": "MessageElements" } } ] }, { "kind": "method", - "name": "set", - "privacy": "public", - "static": true, + "name": "createMessageElements", + "privacy": "protected", "parameters": [ { - "name": "bubbleElement", + "name": "text", "type": { - "text": "HTMLElement" + "text": "string" } }, { - "name": "messageStyles", - "optional": true, + "name": "role", "type": { - "text": "MessageStyles" + "text": "string" } } ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "LoadingMessageDotsStyle", - "declaration": { - "name": "LoadingMessageDotsStyle", - "module": "src/views/chat/messages/loadingMessageDotsStyle.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/messages/messageStyleUtils.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "MessageStyleUtils", - "members": [ + }, { "kind": "method", - "name": "applyCustomStylesToElements", - "privacy": "public", + "name": "createBaseElements", + "privacy": "protected", "static": true, + "return": { + "type": { + "text": "MessageElements" + } + } + }, + { + "kind": "method", + "name": "addInnerContainerElements", + "privacy": "private", "parameters": [ { - "name": "elements", + "name": "bubbleElement", "type": { - "text": "MessageElements" + "text": "HTMLElement" } }, { - "name": "isMedia", + "name": "text", "type": { - "text": "boolean" + "text": "string" } }, { - "name": "styles", - "optional": true, + "name": "role", "type": { - "text": "MessageElementsStyles" + "text": "string" } } ] }, { "kind": "method", - "name": "applySideStyles", - "privacy": "private", - "static": true, + "name": "applyCustomStyles", + "privacy": "public", "parameters": [ { "name": "elements", "type": { - "text": "MessageElements" + "text": "MessageElements | undefined" } }, { @@ -29981,97 +30738,83 @@ } }, { - "name": "styles", + "name": "otherStyles", "optional": true, "type": { - "text": "MessageRoleStyles" + "text": "MessageRoleStyles | MessageElementsStyles" } } ] }, { "kind": "method", - "name": "isMessageSideStyles", - "privacy": "private", + "name": "createMessageContent", + "privacy": "public", "static": true, "return": { "type": { - "text": "styles is MessageRoleStyles" + "text": "MessageContentI" } }, "parameters": [ { - "name": "styles", + "name": "content", "type": { - "text": "MessageRoleStyles | MessageElementsStyles" + "text": "Response" } } ] }, { "kind": "method", - "name": "applyCustomStyles", + "name": "removeLastMessage", + "privacy": "public" + }, + { + "kind": "method", + "name": "isLastMessageError", + "privacy": "public" + }, + { + "kind": "method", + "name": "sendClientUpdate", "privacy": "public", - "static": true, "parameters": [ { - "name": "messageStyles", - "type": { - "text": "MessageStyles" - } - }, - { - "name": "elements", - "type": { - "text": "MessageElements" - } - }, - { - "name": "role", - "type": { - "text": "string" - } - }, - { - "name": "media", + "name": "message", "type": { - "text": "boolean" + "text": "MessageContentI" } }, { - "name": "otherStyles", - "optional": true, - "type": { - "text": "MessageRoleStyles | MessageElementsStyles" - } + "name": "isInitial", + "default": "false" } ] }, { "kind": "method", - "name": "extractParticularSharedStyles", + "name": "renderText", "privacy": "public", - "static": true, - "return": { - "type": { - "text": "MessageElementsStyles | undefined" - } - }, "parameters": [ { - "name": "specificStyles", + "name": "bubbleElement", "type": { - "text": "(keyof CustomStyle)[]" + "text": "HTMLElement" } }, { - "name": "otherStyles", - "optional": true, + "name": "text", "type": { - "text": "MessageRoleStyles" + "text": "string" } } ] + }, + { + "kind": "method", + "name": "refreshTextMessages", + "privacy": "protected" } ] } @@ -30079,92 +30822,53 @@ "exports": [ { "kind": "js", - "name": "MessageStyleUtils", + "name": "MessagesBase", "declaration": { - "name": "MessageStyleUtils", - "module": "src/views/chat/messages/messageStyleUtils.ts" + "name": "MessagesBase", + "module": "src/views/chat/messages/messagesBase.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/messages/messageUtils.ts", + "path": "src/views/chat/messages/name.ts", "declarations": [ { "kind": "class", "description": "", - "name": "MessageUtils", + "name": "Name", "members": [ { "kind": "field", - "name": "AI_ROLE", - "type": { - "text": "string" - }, - "privacy": "public", - "static": true, - "default": "'ai'" - }, - { - "kind": "field", - "name": "USER_ROLE", - "type": { - "text": "string" - }, - "privacy": "public", - "static": true, - "default": "'user'" - }, - { - "kind": "field", - "name": "EMPTY_MESSAGE_CLASS", + "name": "NAME_CLASS", "type": { "text": "string" }, "privacy": "private", "static": true, - "default": "'empty-message'" + "default": "'name'" }, { "kind": "method", - "name": "getLastElementsByClass", + "name": "hide", "privacy": "public", "static": true, "parameters": [ { - "name": "messagesElements", - "type": { - "text": "MessageElements[]" - } - }, - { - "name": "classes", - "type": { - "text": "string[]" - } - }, - { - "name": "avoidedClasses", - "optional": true, + "name": "innerContainer", "type": { - "text": "string[]" + "text": "HTMLElement" } } ] }, { "kind": "method", - "name": "getLastMessage", - "privacy": "public", + "name": "getPosition", + "privacy": "private", "static": true, "parameters": [ - { - "name": "messages", - "type": { - "text": "MessageContentI[]" - } - }, { "name": "role", "type": { @@ -30172,56 +30876,23 @@ } }, { - "name": "content", - "optional": true, - "type": { - "text": "keyof Omit" - } - } - ] - }, - { - "kind": "method", - "name": "getLastTextToElement", - "privacy": "public", - "static": true, - "parameters": [ - { - "name": "elemsToText", - "type": { - "text": "[MessageElements, string][]" - } - }, - { - "name": "elems", + "name": "names", "type": { - "text": "MessageElements" + "text": "CustomNames" } } ] }, { "kind": "method", - "name": "overwriteMessage", - "privacy": "public", + "name": "applyStyle", + "privacy": "private", "static": true, "parameters": [ { - "name": "messages", - "type": { - "text": "MessageContentI[]" - } - }, - { - "name": "messagesElements", - "type": { - "text": "MessageElements[]" - } - }, - { - "name": "content", + "name": "element", "type": { - "text": "string" + "text": "HTMLElement" } }, { @@ -30231,23 +30902,17 @@ } }, { - "name": "contentType", - "type": { - "text": "'text' | 'html'" - } - }, - { - "name": "className", + "name": "names", "type": { - "text": "string" + "text": "CustomNames" } } ] }, { "kind": "method", - "name": "getRoleClass", - "privacy": "public", + "name": "getNameText", + "privacy": "private", "static": true, "parameters": [ { @@ -30255,73 +30920,57 @@ "type": { "text": "string" } + }, + { + "name": "names", + "type": { + "text": "CustomNames" + } } ] }, { "kind": "method", - "name": "fillEmptyMessageElement", - "privacy": "public", + "name": "createName", + "privacy": "private", "static": true, "parameters": [ { - "name": "bubbleElement", + "name": "role", "type": { - "text": "HTMLElement" + "text": "string" } }, { - "name": "content", + "name": "names", "type": { - "text": "string" + "text": "CustomNames" } } ] }, { "kind": "method", - "name": "unfillEmptyMessageElement", + "name": "add", "privacy": "public", "static": true, "parameters": [ { - "name": "bubbleElement", + "name": "messageText", "type": { "text": "HTMLElement" } }, { - "name": "newContent", + "name": "role", "type": { "text": "string" } - } - ] - }, - { - "kind": "method", - "name": "getLastMessageBubbleElement", - "privacy": "public", - "static": true, - "parameters": [ - { - "name": "messagesEl", - "type": { - "text": "HTMLElement" - } - } - ] - }, - { - "kind": "method", - "name": "getLastMessageElement", - "privacy": "public", - "static": true, - "parameters": [ + }, { - "name": "messagesEl", + "name": "names", "type": { - "text": "HTMLElement" + "text": "Names" } } ] @@ -30332,124 +30981,28 @@ "exports": [ { "kind": "js", - "name": "MessageUtils", + "name": "Name", "declaration": { - "name": "MessageUtils", - "module": "src/views/chat/messages/messageUtils.ts" + "name": "Name", + "module": "src/views/chat/messages/name.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/messages/messages.ts", + "path": "src/views/chat/messages/setupMessages.ts", "declarations": [ { "kind": "class", - "description": "", - "name": "Messages", - "members": [ - { - "kind": "field", - "name": "_errorMessageOverrides", - "type": { - "text": "ErrorMessageOverrides | undefined" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "_onClearMessages", - "type": { - "text": "() => void | undefined" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "_onError", - "type": { - "text": "(error: string) => void | undefined" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "_displayLoadingMessage", - "type": { - "text": "boolean | undefined" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "_permittedErrorPrefixes", - "type": { - "text": "CustomErrors | undefined" - }, - "privacy": "private", - "default": "permittedErrorPrefixes" - }, - { - "kind": "field", - "name": "_displayServiceErrorMessages", - "type": { - "text": "boolean | undefined" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "_introMessage", - "type": { - "text": "IntroMessage | undefined" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "customDemoResponse", - "type": { - "text": "DemoResponse | undefined" - } - }, - { - "kind": "method", - "name": "getDisplayLoadingMessage", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "deepChat", - "type": { - "text": "DeepChat" - } - }, - { - "name": "serviceIO", - "type": { - "text": "ServiceIO" - } - } - ] - }, - { - "kind": "method", - "name": "prepareDemo", - "privacy": "private", - "parameters": [ - { - "name": "demo", - "type": { - "text": "Demo" - } - } - ] - }, + "description": "", + "name": "SetupMessages", + "members": [ { "kind": "method", - "name": "addSetupMessageIfNeeded", - "privacy": "private", + "name": "getText", + "privacy": "public", + "static": true, "parameters": [ { "name": "deepChat", @@ -30464,1116 +31017,1143 @@ } } ] - }, + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "SetupMessages", + "declaration": { + "name": "SetupMessages", + "module": "src/views/chat/messages/setupMessages.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/services/cohere/utils/cohereUtils.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "CohereUtils", + "members": [ { "kind": "method", - "name": "addIntroductoryMessage", - "privacy": "private", + "name": "buildHeaders", + "privacy": "public", + "static": true, "parameters": [ { - "name": "deepChat", - "optional": true, - "type": { - "text": "DeepChat" - } - }, - { - "name": "serviceIO", - "optional": true, + "name": "key", "type": { - "text": "ServiceIO" + "text": "string" } } ] }, { "kind": "method", - "name": "removeIntroductoryMessage", - "privacy": "public" - }, - { - "kind": "method", - "name": "populateInitialMessages", + "name": "handleVerificationResult", "privacy": "private", + "static": true, "parameters": [ { - "name": "initialMessages", + "name": "result", "type": { - "text": "MessageContent[]" + "text": "object" } - } - ] - }, - { - "kind": "method", - "name": "addNewMessage", - "privacy": "public", - "parameters": [ + }, { - "name": "data", + "name": "key", "type": { - "text": "ResponseI" + "text": "string" } }, { - "name": "isInitial", - "default": "false" + "name": "onSuccess", + "type": { + "text": "(key: string) => void" + } + }, + { + "name": "onFail", + "type": { + "text": "(message: string) => void" + } } ] }, { "kind": "method", - "name": "isValidMessageContent", - "privacy": "private", + "name": "buildKeyVerificationDetails", + "privacy": "public", + "static": true, + "return": { + "type": { + "text": "KeyVerificationDetails" + } + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "CohereUtils", + "declaration": { + "name": "CohereUtils", + "module": "src/services/cohere/utils/cohereUtils.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/services/huggingFace/utils/huggingFaceUtils.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "HuggingFaceUtils", + "members": [ + { + "kind": "method", + "name": "buildHeaders", + "privacy": "public", + "static": true, "parameters": [ { - "name": "messageContent", + "name": "key", "type": { - "text": "MessageContentI" + "text": "string" } } ] }, { "kind": "method", - "name": "updateStateOnMessage", + "name": "handleVerificationResult", "privacy": "private", + "static": true, "parameters": [ { - "name": "messageContent", + "name": "result", "type": { - "text": "MessageContentI" + "text": "object" } }, { - "name": "overwritten", - "optional": true, + "name": "key", "type": { - "text": "boolean" + "text": "string" } }, { - "name": "update", - "default": "true" + "name": "onSuccess", + "type": { + "text": "(key: string) => void" + } }, { - "name": "initial", - "default": "false" + "name": "onFail", + "type": { + "text": "(message: string) => void" + } } ] }, { "kind": "method", - "name": "removeMessageOnError", - "privacy": "private" - }, + "name": "buildKeyVerificationDetails", + "privacy": "public", + "static": true, + "return": { + "type": { + "text": "KeyVerificationDetails" + } + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "HuggingFaceUtils", + "declaration": { + "name": "HuggingFaceUtils", + "module": "src/services/huggingFace/utils/huggingFaceUtils.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/services/openAI/utils/openAIAssistantFiles.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "OpenAIAssistantFiles", + "members": [ { "kind": "method", - "name": "addNewErrorMessage", + "name": "storeFiles", "privacy": "public", + "static": true, "parameters": [ { - "name": "type", + "name": "serviceIO", "type": { - "text": "keyof Omit" + "text": "ServiceIO" } }, { - "name": "message", - "optional": true, + "name": "messages", "type": { - "text": "string" + "text": "Messages" + } + }, + { + "name": "files", + "type": { + "text": "File[]" } } ] }, { "kind": "method", - "name": "checkPermittedErrorPrefixes", + "name": "getType", "privacy": "private", "static": true, "return": { "type": { - "text": "string | undefined" + "text": "MessageFileType" } }, "parameters": [ { - "name": "errorPrefixes", + "name": "fileDetails", "type": { - "text": "string[]" + "text": "FileDetails" } }, { - "name": "message", + "name": "index", "type": { - "text": "string" + "text": "number" } } ] }, { "kind": "method", - "name": "getPermittedMessage", + "name": "getFiles", "privacy": "private", + "static": true, "parameters": [ { - "name": "message", - "optional": true, + "name": "serviceIO", "type": { - "text": "string" + "text": "ServiceIO" + } + }, + { + "name": "fileDetails", + "type": { + "text": "FileDetails" } } ] }, { "kind": "method", - "name": "isLastMessageError", - "privacy": "public" - }, - { - "kind": "method", - "name": "removeError", - "privacy": "public" + "name": "getFileName", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "path", + "type": { + "text": "string" + } + } + ] }, { "kind": "method", - "name": "addLoadingMessage", - "privacy": "public" + "name": "getFileDetails", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "lastMessage", + "type": { + "text": "OpenAIAssistantData" + } + }, + { + "name": "content", + "optional": true, + "type": { + "text": "OpenAIAssistantContent" + } + } + ] }, { "kind": "method", - "name": "populateIntroPanel", + "name": "getFilesAndNewText", "privacy": "private", + "static": true, "parameters": [ { - "name": "childElement", - "optional": true, + "name": "io", "type": { - "text": "HTMLElement" + "text": "ServiceIO" } }, { - "name": "introPanelMarkUp", + "name": "fileDetails", + "type": { + "text": "FileDetails" + } + }, + { + "name": "role", "optional": true, "type": { "text": "string" } }, { - "name": "introPanelStyle", + "name": "content", "optional": true, "type": { - "text": "CustomStyle" + "text": "OpenAIAssistantContent" } } ] }, { "kind": "method", - "name": "addMultipleFiles", + "name": "getFilesAndText", "privacy": "public", + "static": true, "parameters": [ { - "name": "filesData", + "name": "io", "type": { - "text": "{file: File; type: MessageFileType}[]" + "text": "ServiceIO" } - } - ] - }, - { - "kind": "method", - "name": "clearMessages", - "privacy": "private", - "parameters": [ + }, { - "name": "serviceIO", + "name": "message", "type": { - "text": "ServiceIO" + "text": "OpenAIAssistantData" } }, { - "name": "isReset", + "name": "content", "optional": true, "type": { - "text": "boolean" + "text": "OpenAIAssistantContent" } } ] - }, - { - "kind": "field", - "name": "getMessages" - }, - { - "kind": "field", - "name": "refreshMessages" - }, - { - "kind": "field", - "name": "_addMessage" - }, - { - "kind": "field", - "name": "messageElementRefs", - "type": { - "text": "MessageElements[]" - }, - "default": "[]", - "inheritedFrom": { - "name": "MessagesBase", - "module": "src/views/chat/messages/messagesBase.ts" - } - }, - { - "kind": "field", - "name": "textToSpeech", - "type": { - "text": "ProcessedTextToSpeechConfig | undefined" - }, - "inheritedFrom": { - "name": "MessagesBase", - "module": "src/views/chat/messages/messagesBase.ts" - } - }, - { - "kind": "field", - "name": "submitUserMessage", - "type": { - "text": "(content: UserContent) => void | undefined" - }, - "inheritedFrom": { - "name": "MessagesBase", - "module": "src/views/chat/messages/messagesBase.ts" - } - }, - { - "kind": "field", - "name": "elementRef", - "type": { - "text": "HTMLElement" - }, - "inheritedFrom": { - "name": "MessagesBase", - "module": "src/views/chat/messages/messagesBase.ts" - } - }, - { - "kind": "field", - "name": "messageStyles", - "type": { - "text": "MessageStyles | undefined" - }, - "inheritedFrom": { - "name": "MessagesBase", - "module": "src/views/chat/messages/messagesBase.ts" - } - }, - { - "kind": "field", - "name": "messages", - "type": { - "text": "MessageContentI[]" - }, - "default": "[]", - "inheritedFrom": { - "name": "MessagesBase", - "module": "src/views/chat/messages/messagesBase.ts" - } - }, - { - "kind": "field", - "name": "htmlClassUtilities", - "type": { - "text": "HTMLClassUtilities" - }, - "default": "{}", - "inheritedFrom": { - "name": "MessagesBase", - "module": "src/views/chat/messages/messagesBase.ts" - } - }, - { - "kind": "field", - "name": "textElementsToText", - "type": { - "text": "[MessageElements, string][]" - }, - "default": "[]", - "inheritedFrom": { - "name": "MessagesBase", - "module": "src/views/chat/messages/messagesBase.ts" - } - }, - { - "kind": "field", - "name": "_introPanel", - "type": { - "text": "IntroPanel | undefined" - }, - "privacy": "protected", - "inheritedFrom": { - "name": "MessagesBase", - "module": "src/views/chat/messages/messagesBase.ts" - } - }, - { - "kind": "field", - "name": "_avatars", - "type": { - "text": "Avatars | undefined" - }, - "privacy": "protected", - "inheritedFrom": { - "name": "MessagesBase", - "module": "src/views/chat/messages/messagesBase.ts" - } - }, - { - "kind": "field", - "name": "_names", - "type": { - "text": "Names | undefined" - }, - "privacy": "protected", - "inheritedFrom": { - "name": "MessagesBase", - "module": "src/views/chat/messages/messagesBase.ts" - } - }, - { - "kind": "field", - "name": "_remarkable", - "type": { - "text": "Remarkable" - }, - "privacy": "private", - "inheritedFrom": { - "name": "MessagesBase", - "module": "src/views/chat/messages/messagesBase.ts" - } - }, + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "OpenAIAssistantFiles", + "declaration": { + "name": "OpenAIAssistantFiles", + "module": "src/services/openAI/utils/openAIAssistantFiles.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/services/openAI/utils/openAIUtils.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "OpenAIUtils", + "members": [ { - "kind": "field", - "name": "_onNewMessage", - "type": { - "text": "(message: MessageContentI, isInitial: boolean) => void | undefined" - }, - "privacy": "private", - "inheritedFrom": { - "name": "MessagesBase", - "module": "src/views/chat/messages/messagesBase.ts" - } + "kind": "method", + "name": "buildHeaders", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "key", + "type": { + "text": "string" + } + } + ] }, { "kind": "method", - "name": "createContainerElement", + "name": "handleVerificationResult", "privacy": "private", "static": true, - "inheritedFrom": { - "name": "MessagesBase", - "module": "src/views/chat/messages/messagesBase.ts" - } - }, - { - "kind": "method", - "name": "addNewTextMessage", - "privacy": "public", "parameters": [ { - "name": "text", + "name": "result", "type": { - "text": "string" + "text": "object" } }, { - "name": "role", + "name": "key", "type": { "text": "string" } }, { - "name": "overwrite", - "optional": true, + "name": "onSuccess", "type": { - "text": "Overwrite" + "text": "(key: string) => void" + } + }, + { + "name": "onFail", + "type": { + "text": "(message: string) => void" } } - ], - "inheritedFrom": { - "name": "MessagesBase", - "module": "src/views/chat/messages/messagesBase.ts" + ] + }, + { + "kind": "method", + "name": "buildKeyVerificationDetails", + "privacy": "public", + "static": true, + "return": { + "type": { + "text": "KeyVerificationDetails" + } } }, { "kind": "method", - "name": "overwriteText", - "privacy": "private", + "name": "directFetch", + "privacy": "public", + "static": true, "parameters": [ { - "name": "role", + "name": "serviceIO", "type": { - "text": "string" + "text": "ServiceIO" } }, { - "name": "text", + "name": "body", "type": { - "text": "string" + "text": "any" } }, { - "name": "elementRefs", + "name": "method", "type": { - "text": "MessageElements[]" + "text": "'POST' | 'GET'" } + }, + { + "name": "stringify", + "default": "true" } - ], - "inheritedFrom": { - "name": "MessagesBase", - "module": "src/views/chat/messages/messagesBase.ts" - } - }, + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "OpenAIUtils", + "declaration": { + "name": "OpenAIUtils", + "module": "src/services/openAI/utils/openAIUtils.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/services/stabilityAI/utils/stabilityAIUtils.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "StabilityAIUtils", + "members": [ { "kind": "method", - "name": "createAndAppendNewMessageElement", - "privacy": "protected", + "name": "buildHeaders", + "privacy": "public", + "static": true, "parameters": [ { - "name": "text", - "type": { - "text": "string" - } - }, - { - "name": "role", + "name": "key", "type": { "text": "string" } } - ], - "inheritedFrom": { - "name": "MessagesBase", - "module": "src/views/chat/messages/messagesBase.ts" - } + ] }, { "kind": "method", - "name": "createNewMessageElement", - "privacy": "public", + "name": "handleVerificationResult", + "privacy": "private", + "static": true, "parameters": [ { - "name": "text", + "name": "result", "type": { - "text": "string" + "text": "object" } }, { - "name": "role", + "name": "key", "type": { "text": "string" } + }, + { + "name": "onSuccess", + "type": { + "text": "(key: string) => void" + } + }, + { + "name": "onFail", + "type": { + "text": "(message: string) => void" + } } - ], - "inheritedFrom": { - "name": "MessagesBase", - "module": "src/views/chat/messages/messagesBase.ts" - } + ] }, { "kind": "method", - "name": "isTemporaryElement", - "privacy": "protected", + "name": "buildKeyVerificationDetails", + "privacy": "public", "static": true, - "parameters": [ - { - "name": "elements", - "type": { - "text": "MessageElements" - } + "return": { + "type": { + "text": "KeyVerificationDetails" } - ], - "inheritedFrom": { - "name": "MessagesBase", - "module": "src/views/chat/messages/messagesBase.ts" } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "StabilityAIUtils", + "declaration": { + "name": "StabilityAIUtils", + "module": "src/services/stabilityAI/utils/stabilityAIUtils.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/types/webModel/webLLM/webLLM.ts", + "declarations": [], + "exports": [ + { + "kind": "js", + "name": "ChatWorkerClient", + "declaration": { + "name": "ChatWorkerClient", + "module": "./webLLMClient" + } + }, + { + "kind": "js", + "name": "ChatModule", + "declaration": { + "name": "ChatModule", + "module": "./webLLMChatModule" + } + }, + { + "kind": "js", + "name": "*", + "declaration": { + "name": "*", + "package": "./webLLMShared" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/types/webModel/webLLM/webLLMChatModule.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "ChatModule", + "members": [ + { + "kind": "field", + "name": "logger", + "privacy": "private" + }, + { + "kind": "field", + "name": "pipeline", + "privacy": "private" + }, + { + "kind": "field", + "name": "initProgressCallback", + "privacy": "private" + }, + { + "kind": "field", + "name": "interruptSignal", + "privacy": "private" }, { "kind": "method", - "name": "createMessageElements", - "privacy": "protected", + "name": "setInitProgressCallback", + "return": { + "type": { + "text": "void" + } + }, "parameters": [ { - "name": "text", - "type": { - "text": "string" - } - }, - { - "name": "role", + "name": "initProgressCallback", "type": { - "text": "string" + "text": "InitProgressCallback" } } - ], - "inheritedFrom": { - "name": "MessagesBase", - "module": "src/views/chat/messages/messagesBase.ts" - } + ] }, { "kind": "method", - "name": "createBaseElements", - "privacy": "protected", - "static": true, + "name": "reload", "return": { "type": { - "text": "MessageElements" + "text": "Promise" } }, - "inheritedFrom": { - "name": "MessagesBase", - "module": "src/views/chat/messages/messagesBase.ts" - } - }, - { - "kind": "method", - "name": "addInnerContainerElements", - "privacy": "private", "parameters": [ { - "name": "bubbleElement", + "name": "localId", "type": { - "text": "HTMLElement" + "text": "string" } }, { - "name": "text", + "name": "chatOpts", + "optional": true, "type": { - "text": "string" + "text": "ChatOptions" } }, { - "name": "role", + "name": "appConfig", + "optional": true, "type": { - "text": "string" + "text": "AppConfig" } } - ], - "inheritedFrom": { - "name": "MessagesBase", - "module": "src/views/chat/messages/messagesBase.ts" - } + ] }, { "kind": "method", - "name": "applyCustomStyles", - "privacy": "public", + "name": "generate", + "return": { + "type": { + "text": "Promise" + } + }, "parameters": [ { - "name": "elements", - "type": { - "text": "MessageElements | undefined" - } - }, - { - "name": "role", + "name": "input", "type": { "text": "string" } }, { - "name": "media", + "name": "progressCallback", + "optional": true, "type": { - "text": "boolean" + "text": "GenerateProgressCallback" } }, { - "name": "otherStyles", + "name": "streamInterval", "optional": true, "type": { - "text": "MessageRoleStyles | MessageElementsStyles" + "text": "number" } } - ], - "inheritedFrom": { - "name": "MessagesBase", - "module": "src/views/chat/messages/messagesBase.ts" + ] + }, + { + "kind": "method", + "name": "interruptGenerate", + "return": { + "type": { + "text": "Promise" + } } }, { "kind": "method", - "name": "createMessageContent", - "privacy": "public", - "static": true, + "name": "runtimeStatsText", "return": { "type": { - "text": "MessageContentI" + "text": "Promise" } - }, - "parameters": [ - { - "name": "content", - "type": { - "text": "Response" - } + } + }, + { + "kind": "method", + "name": "resetChat", + "return": { + "type": { + "text": "Promise" } - ], - "inheritedFrom": { - "name": "MessagesBase", - "module": "src/views/chat/messages/messagesBase.ts" } }, { "kind": "method", - "name": "removeLastMessage", - "privacy": "public", - "inheritedFrom": { - "name": "MessagesBase", - "module": "src/views/chat/messages/messagesBase.ts" + "name": "unload", + "return": { + "type": { + "text": "Promise" + } } }, { "kind": "method", - "name": "sendClientUpdate", - "privacy": "public", - "parameters": [ - { - "name": "message", - "type": { - "text": "MessageContentI" - } - }, - { - "name": "isInitial", - "default": "false" + "name": "stopped", + "return": { + "type": { + "text": "boolean" } - ], - "inheritedFrom": { - "name": "MessagesBase", - "module": "src/views/chat/messages/messagesBase.ts" } }, { "kind": "method", - "name": "renderText", - "privacy": "public", + "name": "getMessage", + "return": { + "type": { + "text": "string" + } + } + }, + { + "kind": "method", + "name": "prefill", + "return": { + "type": { + "text": "Promise" + } + }, "parameters": [ { - "name": "bubbleElement", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "text", + "name": "input", "type": { "text": "string" } } - ], - "inheritedFrom": { - "name": "MessagesBase", - "module": "src/views/chat/messages/messagesBase.ts" - } + ] }, { "kind": "method", - "name": "refreshTextMessages", - "privacy": "protected", - "inheritedFrom": { - "name": "MessagesBase", - "module": "src/views/chat/messages/messagesBase.ts" + "name": "decode", + "return": { + "type": { + "text": "Promise" + } } + }, + { + "kind": "field", + "name": "getPipeline", + "privacy": "private" + }, + { + "kind": "field", + "name": "asyncLoadTokenizer", + "privacy": "private" } - ], - "superclass": { - "name": "MessagesBase", - "module": "/src/views/chat/messages/messagesBase" - } + ] } ], "exports": [ { "kind": "js", - "name": "Messages", + "name": "ChatModule", "declaration": { - "name": "Messages", - "module": "src/views/chat/messages/messages.ts" + "name": "ChatModule", + "module": "src/types/webModel/webLLM/webLLMChatModule.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/messages/messagesBase.ts", + "path": "src/types/webModel/webLLM/webLLMClient.ts", "declarations": [ { "kind": "class", "description": "", - "name": "MessagesBase", + "name": "ChatWorkerHandler", "members": [ { "kind": "field", - "name": "messageElementRefs", - "type": { - "text": "MessageElements[]" - }, - "default": "[]" - }, - { - "kind": "field", - "name": "textToSpeech", - "type": { - "text": "ProcessedTextToSpeechConfig | undefined" - } - }, - { - "kind": "field", - "name": "submitUserMessage", - "type": { - "text": "(content: UserContent) => void | undefined" - } - }, - { - "kind": "field", - "name": "elementRef", - "type": { - "text": "HTMLElement" - } - }, - { - "kind": "field", - "name": "messageStyles", - "type": { - "text": "MessageStyles | undefined" - } - }, - { - "kind": "field", - "name": "messages", - "type": { - "text": "MessageContentI[]" - }, - "default": "[]" - }, - { - "kind": "field", - "name": "htmlClassUtilities", - "type": { - "text": "HTMLClassUtilities" - }, - "default": "{}" - }, - { - "kind": "field", - "name": "textElementsToText", - "type": { - "text": "[MessageElements, string][]" - }, - "default": "[]" + "name": "chat", + "privacy": "private" }, { - "kind": "field", - "name": "_introPanel", - "type": { - "text": "IntroPanel | undefined" + "kind": "method", + "name": "handleTask", + "return": { + "type": { + "text": "Promise" + } }, - "privacy": "protected" + "parameters": [ + { + "name": "uuid", + "type": { + "text": "string" + } + }, + { + "name": "task", + "type": { + "text": "() => Promise" + } + } + ] }, { - "kind": "field", - "name": "_avatars", - "type": { - "text": "Avatars | undefined" + "kind": "method", + "name": "onmessage", + "return": { + "type": { + "text": "void" + } }, - "privacy": "protected" - }, + "parameters": [ + { + "name": "event", + "type": { + "text": "MessageEvent" + } + } + ] + } + ] + }, + { + "kind": "class", + "description": "", + "name": "ChatWorkerClient", + "members": [ { "kind": "field", - "name": "_names", + "name": "worker", "type": { - "text": "Names | undefined" - }, - "privacy": "protected" + "text": "ChatWorker" + } }, { "kind": "field", - "name": "_remarkable", - "type": { - "text": "Remarkable" - }, + "name": "initProgressCallback", "privacy": "private" }, { "kind": "field", - "name": "_onNewMessage", - "type": { - "text": "(message: MessageContentI, isInitial: boolean) => void | undefined" - }, + "name": "generateCallbackRegistry", "privacy": "private" }, { - "kind": "method", - "name": "createContainerElement", - "privacy": "private", - "static": true + "kind": "field", + "name": "pendingPromise", + "privacy": "private" }, { "kind": "method", - "name": "addNewTextMessage", - "privacy": "public", + "name": "setInitProgressCallback", + "return": { + "type": { + "text": "void" + } + }, "parameters": [ { - "name": "text", - "type": { - "text": "string" - } - }, - { - "name": "role", - "type": { - "text": "string" - } - }, - { - "name": "overwrite", - "optional": true, + "name": "initProgressCallback", "type": { - "text": "Overwrite" + "text": "InitProgressCallback" } } ] }, + { + "kind": "field", + "name": "getPromise", + "privacy": "private" + }, { "kind": "method", - "name": "overwriteText", - "privacy": "private", + "name": "reload", + "return": { + "type": { + "text": "Promise" + } + }, "parameters": [ { - "name": "role", + "name": "localIdOrUrl", "type": { "text": "string" } }, { - "name": "text", + "name": "chatOpts", + "optional": true, "type": { - "text": "string" + "text": "ChatOptions" } }, { - "name": "elementRefs", + "name": "appConfig", + "optional": true, "type": { - "text": "MessageElements[]" + "text": "AppConfig" } } ] }, { "kind": "method", - "name": "createAndAppendNewMessageElement", - "privacy": "protected", + "name": "generate", + "return": { + "type": { + "text": "Promise" + } + }, "parameters": [ { - "name": "text", + "name": "input", "type": { "text": "string" } }, { - "name": "role", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "createNewMessageElement", - "privacy": "public", - "parameters": [ - { - "name": "text", + "name": "progressCallback", + "optional": true, "type": { - "text": "string" + "text": "GenerateProgressCallback" } }, { - "name": "role", + "name": "streamInterval", + "optional": true, "type": { - "text": "string" + "text": "number" } } ] }, { "kind": "method", - "name": "isTemporaryElement", - "privacy": "protected", - "static": true, - "parameters": [ - { - "name": "elements", - "type": { - "text": "MessageElements" - } + "name": "runtimeStatsText", + "return": { + "type": { + "text": "Promise" } - ] + } }, { "kind": "method", - "name": "createMessageElements", - "privacy": "protected", - "parameters": [ - { - "name": "text", - "type": { - "text": "string" - } - }, - { - "name": "role", - "type": { - "text": "string" - } + "name": "interruptGenerate", + "return": { + "type": { + "text": "void" } - ] + } }, { "kind": "method", - "name": "createBaseElements", - "privacy": "protected", - "static": true, + "name": "unload", "return": { "type": { - "text": "MessageElements" + "text": "Promise" } } }, { "kind": "method", - "name": "addInnerContainerElements", - "privacy": "private", + "name": "resetChat", + "return": { + "type": { + "text": "Promise" + } + } + }, + { + "kind": "method", + "name": "onmessage", + "return": { + "type": { + "text": "void" + } + }, "parameters": [ { - "name": "bubbleElement", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "text", - "type": { - "text": "string" - } - }, - { - "name": "role", + "name": "event", "type": { - "text": "string" + "text": "any" } } ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "ChatWorkerHandler", + "declaration": { + "name": "ChatWorkerHandler", + "module": "src/types/webModel/webLLM/webLLMClient.ts" + } + }, + { + "kind": "js", + "name": "ChatWorkerClient", + "declaration": { + "name": "ChatWorkerClient", + "module": "src/types/webModel/webLLM/webLLMClient.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/types/webModel/webLLM/webLLMShared.ts", + "declarations": [ + { + "kind": "variable", + "name": "prebuiltAppConfig", + "type": { + "text": "AppConfig" + } + } + ], + "exports": [ + { + "kind": "js", + "name": "prebuiltAppConfig", + "declaration": { + "name": "prebuiltAppConfig", + "module": "src/types/webModel/webLLM/webLLMShared.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/chat/input/buttonContainers/buttonContainers.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "ButtonContainers", + "members": [ + { + "kind": "method", + "name": "create", + "privacy": "public", + "static": true }, { "kind": "method", - "name": "applyCustomStyles", + "name": "add", "privacy": "public", + "static": true, "parameters": [ { - "name": "elements", - "type": { - "text": "MessageElements | undefined" - } - }, - { - "name": "role", - "type": { - "text": "string" - } - }, - { - "name": "media", + "name": "inputContainer", "type": { - "text": "boolean" + "text": "HTMLElement" } }, { - "name": "otherStyles", - "optional": true, + "name": "buttonContainers", "type": { - "text": "MessageRoleStyles | MessageElementsStyles" + "text": "ButtonContainersT" } } ] }, { "kind": "method", - "name": "createMessageContent", - "privacy": "public", + "name": "getContainerIndex", + "privacy": "private", "static": true, - "return": { - "type": { - "text": "MessageContentI" - } - }, "parameters": [ { - "name": "content", + "name": "position", "type": { - "text": "Response" + "text": "ButtonPosition" } } ] }, { "kind": "method", - "name": "removeLastMessage", - "privacy": "public" - }, - { - "kind": "method", - "name": "sendClientUpdate", + "name": "addButton", "privacy": "public", + "static": true, "parameters": [ { - "name": "message", + "name": "buttonContainers", "type": { - "text": "MessageContentI" + "text": "ButtonContainersT" } }, { - "name": "isInitial", - "default": "false" - } - ] - }, - { - "kind": "method", - "name": "renderText", - "privacy": "public", - "parameters": [ - { - "name": "bubbleElement", + "name": "elementRef", "type": { "text": "HTMLElement" } }, { - "name": "text", + "name": "position", "type": { - "text": "string" + "text": "ButtonPosition" } } ] - }, - { - "kind": "method", - "name": "refreshTextMessages", - "privacy": "protected" } ] } @@ -31581,131 +32161,111 @@ "exports": [ { "kind": "js", - "name": "MessagesBase", + "name": "ButtonContainers", "declaration": { - "name": "MessagesBase", - "module": "src/views/chat/messages/messagesBase.ts" + "name": "ButtonContainers", + "module": "src/views/chat/input/buttonContainers/buttonContainers.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/messages/name.ts", + "path": "src/views/chat/input/buttons/buttonCSS.ts", "declarations": [ { "kind": "class", "description": "", - "name": "Name", + "name": "ButtonCSS", "members": [ { "kind": "method", - "name": "getPosition", - "privacy": "private", + "name": "unsetAllCSS", + "privacy": "public", "static": true, "parameters": [ { - "name": "role", + "name": "button", "type": { - "text": "string" + "text": "HTMLElement" } }, { - "name": "names", + "name": "styles", "type": { - "text": "CustomNames" + "text": "ButtonStyles" } } ] }, { "kind": "method", - "name": "applyStyle", - "privacy": "private", + "name": "unsetActionCSS", + "privacy": "public", "static": true, "parameters": [ { - "name": "element", + "name": "button", "type": { "text": "HTMLElement" } }, { - "name": "role", - "type": { - "text": "string" - } - }, - { - "name": "names", + "name": "styles", "type": { - "text": "CustomNames" + "text": "ButtonStyles" } } ] }, { "kind": "method", - "name": "getNameText", - "privacy": "private", + "name": "setElementsCSS", + "privacy": "public", "static": true, "parameters": [ { - "name": "role", + "name": "button", "type": { - "text": "string" + "text": "HTMLElement" } }, { - "name": "names", - "type": { - "text": "CustomNames" - } - } - ] - }, - { - "kind": "method", - "name": "createName", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "role", + "name": "styles", "type": { - "text": "string" + "text": "ButtonStyles" } }, { - "name": "names", + "name": "style", "type": { - "text": "CustomNames" + "text": "keyof StatefulStyles" } } ] }, { "kind": "method", - "name": "add", + "name": "setElementCssUpToState", "privacy": "public", "static": true, "parameters": [ { - "name": "messageText", + "name": "button", "type": { "text": "HTMLElement" } }, { - "name": "role", + "name": "styles", "type": { - "text": "string" + "text": "ButtonStyles" } }, { - "name": "names", + "name": "style", "type": { - "text": "Names" + "text": "keyof StatefulStyles" } } ] @@ -31716,128 +32276,154 @@ "exports": [ { "kind": "js", - "name": "Name", + "name": "ButtonCSS", "declaration": { - "name": "Name", - "module": "src/views/chat/messages/name.ts" + "name": "ButtonCSS", + "module": "src/views/chat/input/buttons/buttonCSS.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/messages/setupMessages.ts", + "path": "src/views/chat/input/buttons/customButtonInnerElements.ts", "declarations": [ { "kind": "class", "description": "", - "name": "SetupMessages", + "name": "CustomButtonInnerElements", "members": [ { "kind": "method", - "name": "getText", - "privacy": "public", + "name": "createTextElement", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "text", + "type": { + "text": "string" + } + } + ] + }, + { + "kind": "method", + "name": "createElement", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "string", + "type": { + "text": "string" + } + }, + { + "name": "isText", + "type": { + "text": "boolean" + } + } + ] + }, + { + "kind": "method", + "name": "createCustomElement", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "state", + "type": { + "text": "keyof T" + } + }, + { + "name": "customStyles", + "optional": true, + "type": { + "text": "ButtonStateStyles" + } + } + ] + }, + { + "kind": "method", + "name": "processElement", + "privacy": "private", "static": true, "parameters": [ { - "name": "deepChat", + "name": "parentEl", "type": { - "text": "DeepChat" + "text": "HTMLElement" } }, { - "name": "serviceIO", + "name": "element", + "optional": true, "type": { - "text": "ServiceIO" + "text": "Element" } } ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "SetupMessages", - "declaration": { - "name": "SetupMessages", - "module": "src/views/chat/messages/setupMessages.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/input/buttonContainers/buttonContainers.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "ButtonContainers", - "members": [ - { - "kind": "method", - "name": "create", - "privacy": "public", - "static": true }, { "kind": "method", - "name": "add", + "name": "createSpecificStateElement", "privacy": "public", "static": true, "parameters": [ { - "name": "inputContainer", + "name": "parentEl", "type": { "text": "HTMLElement" } }, { - "name": "buttonContainers", + "name": "state", "type": { - "text": "ButtonContainersT" + "text": "keyof T" } - } - ] - }, - { - "kind": "method", - "name": "getContainerIndex", - "privacy": "private", - "static": true, - "parameters": [ + }, { - "name": "position", + "name": "customStyles", + "optional": true, "type": { - "text": "ButtonPosition" + "text": "ButtonStateStyles" } } ] }, { "kind": "method", - "name": "addButton", + "name": "create", "privacy": "public", "static": true, + "return": { + "type": { + "text": "ButtonInnerElements" + } + }, "parameters": [ { - "name": "buttonContainers", + "name": "parentEl", "type": { - "text": "ButtonContainersT" + "text": "HTMLElement" } }, { - "name": "elementRef", + "name": "states", "type": { - "text": "HTMLElement" + "text": "(keyof T)[]" } }, { - "name": "position", + "name": "styles", + "optional": true, "type": { - "text": "ButtonPosition" + "text": "ButtonStateStyles" } } ] @@ -31848,168 +32434,164 @@ "exports": [ { "kind": "js", - "name": "ButtonContainers", + "name": "CustomButtonInnerElements", "declaration": { - "name": "ButtonContainers", - "module": "src/views/chat/input/buttonContainers/buttonContainers.ts" + "name": "CustomButtonInnerElements", + "module": "src/views/chat/input/buttons/customButtonInnerElements.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/fileAttachments/fileAttachments.ts", + "path": "src/views/chat/input/buttons/inputButton.ts", "declarations": [ { "kind": "class", "description": "", - "name": "FileAttachments", + "name": "InputButton", "members": [ { "kind": "field", - "name": "_fileAttachmentsTypes", + "name": "elementRef", "type": { - "text": "FileAttachmentsType[]" + "text": "HTMLElement" }, - "privacy": "private", - "default": "[]" + "default": "buttonElement" }, { "kind": "field", - "name": "elementRef", + "name": "_mouseState", "type": { - "text": "HTMLElement" - } + "text": "MouseState" + }, + "privacy": "protected", + "default": "{state: 'default'}" + }, + { + "kind": "field", + "name": "_customStyles", + "type": { + "text": "T | undefined" + }, + "privacy": "protected", + "default": "customStyles" + }, + { + "kind": "field", + "name": "position", + "type": { + "text": "ButtonPositionT | undefined" + }, + "default": "position" + }, + { + "kind": "field", + "name": "dropupText", + "type": { + "text": "string | undefined" + }, + "default": "dropupText" }, { "kind": "method", - "name": "addType", + "name": "buttonMouseLeave", + "privacy": "private", "parameters": [ { - "name": "deepChat", - "type": { - "text": "DeepChat" - } - }, - { - "name": "files", - "type": { - "text": "FileAttachmentsT" - } - }, - { - "name": "type", + "name": "customStyles", + "optional": true, "type": { - "text": "keyof ServiceFileTypes" + "text": "ButtonStyles" } } ] }, { "kind": "method", - "name": "createAttachmentContainer", - "privacy": "private" - }, - { - "kind": "method", - "name": "toggleContainerDisplay", + "name": "buttonMouseEnter", "privacy": "private", "parameters": [ { - "name": "display", + "name": "customStyles", + "optional": true, "type": { - "text": "boolean" + "text": "ButtonStyles" } } ] }, { "kind": "method", - "name": "getAllFileData" - }, - { - "kind": "method", - "name": "completePlaceholders" - }, - { - "kind": "method", - "name": "addFilesToType", - "privacy": "public", - "static": true, + "name": "buttonMouseUp", + "privacy": "private", "parameters": [ { - "name": "files", + "name": "customStyles", + "optional": true, "type": { - "text": "File[]" + "text": "ButtonStyles" } - }, + } + ] + }, + { + "kind": "method", + "name": "buttonMouseDown", + "privacy": "private", + "parameters": [ { - "name": "fileAttachmentTypes", + "name": "customStyles", + "optional": true, "type": { - "text": "FileAttachmentsType[]" + "text": "ButtonStyles" } } ] }, { "kind": "method", - "name": "addFilesToAnyType", + "name": "setEvents", + "privacy": "private", "parameters": [ { - "name": "files", + "name": "customStyles", + "optional": true, "type": { - "text": "File[]" + "text": "ButtonStyles" } } ] }, { "kind": "method", - "name": "removeAllFiles" + "name": "unsetCustomStateStyles", + "privacy": "public", + "parameters": [ + { + "name": "unsetTypes", + "type": { + "text": "(keyof T)[]" + } + } + ] }, { "kind": "method", - "name": "getNumberOfTypes" - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "FileAttachments", - "declaration": { - "name": "FileAttachments", - "module": "src/views/chat/input/fileAttachments/fileAttachments.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/input/fileAttachments/newFileName.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "NewFileName", - "members": [ - { - "kind": "method", - "name": "getFileName", + "name": "reapplyStateStyle", "privacy": "public", - "static": true, "parameters": [ { - "name": "prefix", + "name": "setType", "type": { - "text": "string" + "text": "keyof T" } }, { - "name": "extension", + "name": "unsetTypes", + "optional": true, "type": { - "text": "string" + "text": "(keyof T)[]" } } ] @@ -32020,10 +32602,10 @@ "exports": [ { "kind": "js", - "name": "NewFileName", + "name": "InputButton", "declaration": { - "name": "NewFileName", - "module": "src/views/chat/input/fileAttachments/newFileName.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } } ] @@ -32682,358 +33264,85 @@ "parameters": [ { "name": "containerStyle", - "optional": true, - "type": { - "text": "CustomStyle" - } - } - ] - }, - { - "kind": "method", - "name": "open", - "privacy": "private" - }, - { - "kind": "method", - "name": "close" - }, - { - "kind": "method", - "name": "toggle" - }, - { - "kind": "method", - "name": "addItem", - "parameters": [ - { - "name": "inputButton", - "type": { - "text": "InputButton" - } - } - ] - }, - { - "kind": "method", - "name": "addWindowEvents", - "privacy": "private", - "parameters": [ - { - "name": "containerElement", - "type": { - "text": "HTMLElement" - } - } - ] - }, - { - "kind": "method", - "name": "windowClick", - "privacy": "private", - "parameters": [ - { - "name": "containerElement", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "event", - "type": { - "text": "MouseEvent" - } - } - ] - }, - { - "kind": "method", - "name": "windowKeyDown", - "privacy": "private", - "parameters": [ - { - "name": "containerElement", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "event", - "type": { - "text": "KeyboardEvent" - } - } - ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "DropupMenu", - "declaration": { - "name": "DropupMenu", - "module": "src/views/chat/input/dropup/dropupMenu.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/input/buttons/buttonCSS.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "ButtonCSS", - "members": [ - { - "kind": "method", - "name": "unsetAllCSS", - "privacy": "public", - "static": true, - "parameters": [ - { - "name": "button", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "styles", - "type": { - "text": "ButtonStyles" - } - } - ] - }, - { - "kind": "method", - "name": "unsetActionCSS", - "privacy": "public", - "static": true, - "parameters": [ - { - "name": "button", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "styles", - "type": { - "text": "ButtonStyles" - } - } - ] - }, - { - "kind": "method", - "name": "setElementsCSS", - "privacy": "public", - "static": true, - "parameters": [ - { - "name": "button", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "styles", - "type": { - "text": "ButtonStyles" - } - }, - { - "name": "style", - "type": { - "text": "keyof StatefulStyles" - } - } - ] - }, - { - "kind": "method", - "name": "setElementCssUpToState", - "privacy": "public", - "static": true, - "parameters": [ - { - "name": "button", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "styles", - "type": { - "text": "ButtonStyles" - } - }, - { - "name": "style", - "type": { - "text": "keyof StatefulStyles" - } - } - ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "ButtonCSS", - "declaration": { - "name": "ButtonCSS", - "module": "src/views/chat/input/buttons/buttonCSS.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/input/buttons/customButtonInnerElements.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "CustomButtonInnerElements", - "members": [ - { - "kind": "method", - "name": "createTextElement", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "text", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "createElement", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "string", - "type": { - "text": "string" - } - }, - { - "name": "isText", + "optional": true, "type": { - "text": "boolean" + "text": "CustomStyle" } } ] }, { "kind": "method", - "name": "createCustomElement", - "privacy": "public", - "static": true, + "name": "open", + "privacy": "private" + }, + { + "kind": "method", + "name": "close" + }, + { + "kind": "method", + "name": "toggle" + }, + { + "kind": "method", + "name": "addItem", "parameters": [ { - "name": "state", - "type": { - "text": "keyof T" - } - }, - { - "name": "customStyles", - "optional": true, + "name": "inputButton", "type": { - "text": "ButtonStateStyles" + "text": "InputButton" } } ] }, { "kind": "method", - "name": "processElement", + "name": "addWindowEvents", "privacy": "private", - "static": true, "parameters": [ { - "name": "parentEl", + "name": "containerElement", "type": { "text": "HTMLElement" } - }, - { - "name": "element", - "optional": true, - "type": { - "text": "Element" - } } ] }, { "kind": "method", - "name": "createSpecificStateElement", - "privacy": "public", - "static": true, + "name": "windowClick", + "privacy": "private", "parameters": [ { - "name": "parentEl", + "name": "containerElement", "type": { "text": "HTMLElement" } }, { - "name": "state", - "type": { - "text": "keyof T" - } - }, - { - "name": "customStyles", - "optional": true, + "name": "event", "type": { - "text": "ButtonStateStyles" + "text": "MouseEvent" } } ] }, { "kind": "method", - "name": "create", - "privacy": "public", - "static": true, - "return": { - "type": { - "text": "ButtonInnerElements" - } - }, + "name": "windowKeyDown", + "privacy": "private", "parameters": [ { - "name": "parentEl", + "name": "containerElement", "type": { "text": "HTMLElement" } }, { - "name": "states", - "type": { - "text": "(keyof T)[]" - } - }, - { - "name": "styles", - "optional": true, + "name": "event", "type": { - "text": "ButtonStateStyles" + "text": "KeyboardEvent" } } ] @@ -33044,164 +33353,168 @@ "exports": [ { "kind": "js", - "name": "CustomButtonInnerElements", + "name": "DropupMenu", "declaration": { - "name": "CustomButtonInnerElements", - "module": "src/views/chat/input/buttons/customButtonInnerElements.ts" + "name": "DropupMenu", + "module": "src/views/chat/input/dropup/dropupMenu.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/buttons/inputButton.ts", + "path": "src/views/chat/input/fileAttachments/fileAttachments.ts", "declarations": [ { "kind": "class", "description": "", - "name": "InputButton", + "name": "FileAttachments", "members": [ { "kind": "field", - "name": "elementRef", - "type": { - "text": "HTMLElement" - }, - "default": "buttonElement" - }, - { - "kind": "field", - "name": "_mouseState", - "type": { - "text": "MouseState" - }, - "privacy": "protected", - "default": "{state: 'default'}" - }, - { - "kind": "field", - "name": "_customStyles", - "type": { - "text": "T | undefined" - }, - "privacy": "protected", - "default": "customStyles" - }, - { - "kind": "field", - "name": "position", + "name": "_fileAttachmentsTypes", "type": { - "text": "ButtonPositionT | undefined" + "text": "FileAttachmentsType[]" }, - "default": "position" + "privacy": "private", + "default": "[]" }, { "kind": "field", - "name": "dropupText", + "name": "elementRef", "type": { - "text": "string | undefined" - }, - "default": "dropupText" + "text": "HTMLElement" + } }, { "kind": "method", - "name": "buttonMouseLeave", - "privacy": "private", + "name": "addType", "parameters": [ { - "name": "customStyles", - "optional": true, + "name": "deepChat", "type": { - "text": "ButtonStyles" + "text": "DeepChat" } - } - ] - }, - { - "kind": "method", - "name": "buttonMouseEnter", - "privacy": "private", - "parameters": [ + }, { - "name": "customStyles", - "optional": true, + "name": "files", "type": { - "text": "ButtonStyles" + "text": "FileAttachmentsT" } - } - ] - }, - { - "kind": "method", - "name": "buttonMouseUp", - "privacy": "private", - "parameters": [ + }, { - "name": "customStyles", - "optional": true, + "name": "type", "type": { - "text": "ButtonStyles" + "text": "keyof ServiceFileTypes" } } ] }, { "kind": "method", - "name": "buttonMouseDown", + "name": "createAttachmentContainer", + "privacy": "private" + }, + { + "kind": "method", + "name": "toggleContainerDisplay", "privacy": "private", "parameters": [ { - "name": "customStyles", - "optional": true, + "name": "display", "type": { - "text": "ButtonStyles" + "text": "boolean" } } ] }, { "kind": "method", - "name": "setEvents", - "privacy": "private", + "name": "getAllFileData" + }, + { + "kind": "method", + "name": "completePlaceholders" + }, + { + "kind": "method", + "name": "addFilesToType", + "privacy": "public", + "static": true, "parameters": [ { - "name": "customStyles", - "optional": true, + "name": "files", "type": { - "text": "ButtonStyles" + "text": "File[]" + } + }, + { + "name": "fileAttachmentTypes", + "type": { + "text": "FileAttachmentsType[]" } } ] }, { "kind": "method", - "name": "unsetCustomStateStyles", - "privacy": "public", + "name": "addFilesToAnyType", "parameters": [ { - "name": "unsetTypes", + "name": "files", "type": { - "text": "(keyof T)[]" + "text": "File[]" } } ] }, { "kind": "method", - "name": "reapplyStateStyle", + "name": "removeAllFiles" + }, + { + "kind": "method", + "name": "getNumberOfTypes" + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "FileAttachments", + "declaration": { + "name": "FileAttachments", + "module": "src/views/chat/input/fileAttachments/fileAttachments.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/chat/input/fileAttachments/newFileName.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "NewFileName", + "members": [ + { + "kind": "method", + "name": "getFileName", "privacy": "public", + "static": true, "parameters": [ { - "name": "setType", + "name": "prefix", "type": { - "text": "keyof T" + "text": "string" } }, { - "name": "unsetTypes", - "optional": true, + "name": "extension", "type": { - "text": "(keyof T)[]" + "text": "string" } } ] @@ -33212,10 +33525,10 @@ "exports": [ { "kind": "js", - "name": "InputButton", + "name": "NewFileName", "declaration": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "NewFileName", + "module": "src/views/chat/input/fileAttachments/newFileName.ts" } } ] @@ -34299,6 +34612,15 @@ "static": true, "default": "'streamed-message'" }, + { + "kind": "field", + "name": "_fileAdded", + "type": { + "text": "boolean" + }, + "privacy": "private", + "default": "false" + }, { "kind": "field", "name": "_streamedContent", @@ -34342,6 +34664,14 @@ }, "privacy": "private" }, + { + "kind": "field", + "name": "_message", + "type": { + "text": "MessageContentI | undefined" + }, + "privacy": "private" + }, { "kind": "field", "name": "_messages", @@ -34484,6 +34814,11 @@ "kind": "method", "name": "finaliseStreamedMessage", "privacy": "public" + }, + { + "kind": "method", + "name": "markFileAded", + "privacy": "public" } ] } @@ -34574,1915 +34909,1868 @@ }, { "kind": "javascript-module", - "path": "src/views/chat/input/fileAttachments/dragAndDrop/dragAndDrop.ts", + "path": "src/views/chat/input/buttons/camera/cameraButton.ts", "declarations": [ { "kind": "class", "description": "", - "name": "DragAndDrop", + "name": "CameraButton", "members": [ { "kind": "method", - "name": "create", - "privacy": "public", - "static": true, + "name": "createInnerElements", + "privacy": "private", "parameters": [ { - "name": "containerElement", + "name": "customStyles", + "optional": true, "type": { - "text": "HTMLElement" + "text": "Styles" + } + } + ] + }, + { + "kind": "method", + "name": "createInnerElement", + "privacy": "private", + "parameters": [ + { + "name": "baseButton", + "type": { + "text": "SVGGraphicsElement" } }, { - "name": "fileAttachments", + "name": "state", "type": { - "text": "FileAttachments" + "text": "'styles'" } }, { - "name": "dnd", + "name": "customStyles", "optional": true, "type": { - "text": "boolean | CustomStyle" + "text": "Styles" } } ] }, { "kind": "method", - "name": "createElement", + "name": "createButtonElement", "privacy": "private", - "static": true, - "parameters": [ - { - "name": "dnd", - "optional": true, - "type": { - "text": "boolean | CustomStyle" - } - } - ] + "static": true }, { "kind": "method", - "name": "addEvents", + "name": "createSVGIconElement", + "privacy": "private", + "static": true + }, + { + "kind": "method", + "name": "addClickEvent", "privacy": "private", - "static": true, "parameters": [ { - "name": "fileDropElement", + "name": "containerElement", "type": { "text": "HTMLElement" } }, { - "name": "containerElement", + "name": "fileAttachmentsType", "type": { - "text": "HTMLElement" + "text": "FileAttachmentsType" } }, { - "name": "fileAttachments", + "name": "modalContainerStyle", + "optional": true, "type": { - "text": "FileAttachments" + "text": "CustomStyle" + } + }, + { + "name": "cameraFiles", + "optional": true, + "type": { + "text": "CameraFiles" } } ] }, + { + "kind": "field", + "name": "elementRef", + "type": { + "text": "HTMLElement" + }, + "default": "buttonElement", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + }, + { + "kind": "field", + "name": "_mouseState", + "type": { + "text": "MouseState" + }, + "privacy": "protected", + "default": "{state: 'default'}", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + }, + { + "kind": "field", + "name": "_customStyles", + "type": { + "text": "T | undefined" + }, + "privacy": "protected", + "default": "customStyles", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + }, + { + "kind": "field", + "name": "position", + "type": { + "text": "ButtonPositionT | undefined" + }, + "default": "position", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + }, + { + "kind": "field", + "name": "dropupText", + "type": { + "text": "string | undefined" + }, + "default": "dropupText", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + }, { "kind": "method", - "name": "uploadFile", + "name": "buttonMouseLeave", "privacy": "private", - "static": true, "parameters": [ { - "name": "fileAttachments", + "name": "customStyles", + "optional": true, "type": { - "text": "FileAttachments" + "text": "ButtonStyles" } - }, + } + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + }, + { + "kind": "method", + "name": "buttonMouseEnter", + "privacy": "private", + "parameters": [ { - "name": "event", + "name": "customStyles", + "optional": true, "type": { - "text": "DragEvent" + "text": "ButtonStyles" } } - ] + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "method", - "name": "display", + "name": "buttonMouseUp", "privacy": "private", - "static": true, "parameters": [ { - "name": "fileDropElement", + "name": "customStyles", + "optional": true, "type": { - "text": "HTMLElement" + "text": "ButtonStyles" } } - ] + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "method", - "name": "hide", + "name": "buttonMouseDown", "privacy": "private", - "static": true, "parameters": [ { - "name": "fileDropElement", + "name": "customStyles", + "optional": true, "type": { - "text": "HTMLElement" + "text": "ButtonStyles" } } - ] + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + }, + { + "kind": "method", + "name": "setEvents", + "privacy": "private", + "parameters": [ + { + "name": "customStyles", + "optional": true, + "type": { + "text": "ButtonStyles" + } + } + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + }, + { + "kind": "method", + "name": "unsetCustomStateStyles", + "privacy": "public", + "parameters": [ + { + "name": "unsetTypes", + "type": { + "text": "(keyof T)[]" + } + } + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "method", - "name": "isEnabled", + "name": "reapplyStateStyle", "privacy": "public", - "static": true, "parameters": [ { - "name": "fileAttachments", + "name": "setType", "type": { - "text": "FileAttachments" + "text": "keyof T" } }, { - "name": "dragAndDrop", + "name": "unsetTypes", "optional": true, "type": { - "text": "boolean | CustomStyle" + "text": "(keyof T)[]" } } - ] + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } } - ] + ], + "superclass": { + "name": "InputButton", + "module": "/src/views/chat/input/buttons/inputButton" + } } ], "exports": [ { "kind": "js", - "name": "DragAndDrop", + "name": "CameraButton", "declaration": { - "name": "DragAndDrop", - "module": "src/views/chat/input/fileAttachments/dragAndDrop/dragAndDrop.ts" + "name": "CameraButton", + "module": "src/views/chat/input/buttons/camera/cameraButton.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/fileAttachments/fileAttachmentTypes/audioFileAttachmentType.ts", + "path": "src/views/chat/input/buttons/microphone/microphoneButton.ts", "declarations": [ { "kind": "class", "description": "", - "name": "AudioFileAttachmentType", + "name": "MicrophoneButton", "members": [ { "kind": "field", - "name": "stopPlaceholderCallback", - "type": { - "text": "() => Promise | undefined" - } - }, - { - "kind": "field", - "name": "_activePlaceholderTimer", - "type": { - "text": "number | undefined" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "_activePlaceholderAttachment", + "name": "_innerElements", "type": { - "text": "AttachmentObject | undefined" + "text": "DefinedButtonInnerElements" }, "privacy": "private" }, { "kind": "field", - "name": "TIMER_LIMIT_S", + "name": "isActive", "type": { - "text": "number" + "text": "boolean" }, - "privacy": "private", - "static": true, - "default": "5999" - }, - { - "kind": "method", - "name": "createAudioContainer", - "privacy": "private", - "static": true + "default": "false" }, { "kind": "method", - "name": "addAudioElements", + "name": "createInnerElements", "privacy": "private", - "static": true, "parameters": [ { - "name": "oldContainer", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "fileReaderResult", + "name": "customStyles", + "optional": true, "type": { - "text": "string" + "text": "Styles" } } ] }, { "kind": "method", - "name": "createAudioAttachment", - "privacy": "public", - "static": true, + "name": "createInnerElement", + "privacy": "private", "parameters": [ { - "name": "fileReaderResult", + "name": "baseButton", "type": { - "text": "string" + "text": "SVGGraphicsElement" } - } - ] - }, - { - "kind": "method", - "name": "createTimer", - "privacy": "private", - "parameters": [ + }, { - "name": "text", + "name": "state", "type": { - "text": "HTMLElement" + "text": "keyof MicrophoneButton['_innerElements']" } }, { - "name": "customTimeLimit", + "name": "customStyles", "optional": true, "type": { - "text": "number" + "text": "Styles" } } ] }, { "kind": "method", - "name": "createPlaceholderAudioAttachment", + "name": "createMicrophoneElement", "privacy": "private", - "parameters": [ - { - "name": "customTimeLimit", - "optional": true, - "type": { - "text": "number" - } - } - ] + "static": true }, { "kind": "method", - "name": "addPlaceholderAudioAttachmentEvents", + "name": "createSVGIconElement", "privacy": "private", - "parameters": [ - { - "name": "container", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "stop", - "type": { - "text": "SVGElement" - } - }, - { - "name": "textContainer", - "type": { - "text": "HTMLElement" - } - } - ] + "static": true }, { "kind": "method", - "name": "addPlaceholderAttachment", - "parameters": [ - { - "name": "stopCallback", - "type": { - "text": "() => Promise" - } - }, - { - "name": "customTimeLimit", - "optional": true, - "type": { - "text": "number" - } - } - ] + "name": "changeToActive", + "privacy": "public" }, { "kind": "method", - "name": "completePlaceholderAttachment", - "parameters": [ - { - "name": "file", - "type": { - "text": "File" - } - }, - { - "name": "fileReaderResult", - "type": { - "text": "string" - } - } - ] + "name": "changeToDefault", + "privacy": "public" }, { "kind": "method", - "name": "removePlaceholderAttachment" + "name": "changeToCommandMode", + "privacy": "public" }, { "kind": "method", - "name": "clearTimer", - "privacy": "private" + "name": "changeToUnsupported", + "privacy": "public" }, { "kind": "method", - "name": "stopAttachmentPlayback", - "privacy": "public", - "static": true, + "name": "toggleIconFilter", + "privacy": "private", "parameters": [ { - "name": "attachmentContainerEl", + "name": "mode", "type": { - "text": "HTMLElement" + "text": "'default' | 'active' | 'command'" } } ] }, { "kind": "field", - "name": "_attachments", - "type": { - "text": "AttachmentObject[]" - }, - "privacy": "private", - "default": "[]", - "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" - } - }, - { - "kind": "field", - "name": "_fileCountLimit", + "name": "elementRef", "type": { - "text": "number" + "text": "HTMLElement" }, - "privacy": "private", - "default": "99", + "default": "buttonElement", "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } }, { "kind": "field", - "name": "_toggleContainerDisplay", + "name": "_mouseState", "type": { - "text": "(display: boolean) => void" + "text": "MouseState" }, - "privacy": "private", - "default": "toggleContainer", + "privacy": "protected", + "default": "{state: 'default'}", "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } }, { "kind": "field", - "name": "_fileAttachmentsContainerRef", + "name": "_customStyles", "type": { - "text": "HTMLElement" + "text": "T | undefined" }, - "privacy": "private", - "default": "container", + "privacy": "protected", + "default": "customStyles", "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } }, { "kind": "field", - "name": "_acceptedFormat", + "name": "position", "type": { - "text": "string" + "text": "ButtonPositionT | undefined" }, - "privacy": "private", - "default": "''", + "default": "position", "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } }, { "kind": "field", - "name": "_validationHandler", + "name": "dropupText", "type": { - "text": "ValidationHandler | undefined" + "text": "string | undefined" }, - "privacy": "private", - "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" - } - }, - { - "kind": "method", - "name": "attemptAddFile", - "parameters": [ - { - "name": "file", - "type": { - "text": "File" - } - }, - { - "name": "fileReaderResult", - "type": { - "text": "string" - } - } - ], + "default": "dropupText", "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } }, { "kind": "method", - "name": "isFileTypeValid", + "name": "buttonMouseLeave", "privacy": "private", - "static": true, - "parameters": [ - { - "name": "file", - "type": { - "text": "File" - } - }, - { - "name": "accept", - "type": { - "text": "string" - } - } - ], - "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" - } - }, - { - "kind": "method", - "name": "getTypeFromBlob", - "privacy": "public", - "static": true, - "return": { - "type": { - "text": "MessageFileType" - } - }, "parameters": [ { - "name": "file", + "name": "customStyles", + "optional": true, "type": { - "text": "File" + "text": "ButtonStyles" } } ], "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } }, { "kind": "method", - "name": "addAttachmentBasedOnType", + "name": "buttonMouseEnter", "privacy": "private", "parameters": [ { - "name": "file", - "type": { - "text": "File" - } - }, - { - "name": "fileReaderResult", - "type": { - "text": "string" - } - }, - { - "name": "removable", + "name": "customStyles", + "optional": true, "type": { - "text": "boolean" + "text": "ButtonStyles" } } ], "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } }, { "kind": "method", - "name": "createImageAttachment", + "name": "buttonMouseUp", "privacy": "private", - "static": true, "parameters": [ { - "name": "src", + "name": "customStyles", + "optional": true, "type": { - "text": "string" + "text": "ButtonStyles" } } ], "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } }, { "kind": "method", - "name": "createAnyFileAttachment", + "name": "buttonMouseDown", "privacy": "private", - "static": true, - "parameters": [ - { - "name": "fileName", - "type": { - "text": "string" - } - } - ], - "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" - } - }, - { - "kind": "method", - "name": "addFileAttachment", "parameters": [ { - "name": "file", - "type": { - "text": "File" - } - }, - { - "name": "fileType", - "type": { - "text": "MessageFileType" - } - }, - { - "name": "attachmentElement", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "removable", + "name": "customStyles", + "optional": true, "type": { - "text": "boolean" + "text": "ButtonStyles" } } ], "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } }, { "kind": "method", - "name": "createContainer", + "name": "setEvents", "privacy": "private", - "static": true, - "parameters": [ - { - "name": "attachmentElement", - "type": { - "text": "HTMLElement" - } - } - ], - "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" - } - }, - { - "kind": "method", - "name": "createRemoveAttachmentButton", "parameters": [ { - "name": "attachmentObject", + "name": "customStyles", + "optional": true, "type": { - "text": "AttachmentObject" + "text": "ButtonStyles" } } ], "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } }, { "kind": "method", - "name": "removeAttachment", + "name": "unsetCustomStateStyles", + "privacy": "public", "parameters": [ { - "name": "attachmentObject", + "name": "unsetTypes", "type": { - "text": "AttachmentObject" + "text": "(keyof T)[]" } } ], - "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" - } - }, - { - "kind": "method", - "name": "getFiles", - "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" - } - }, - { - "kind": "method", - "name": "removeAllAttachments", - "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" - } - } - ], - "superclass": { - "name": "FileAttachmentsType", - "module": "/src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType" - } - } - ], - "exports": [ - { - "kind": "js", - "name": "AudioFileAttachmentType", - "declaration": { - "name": "AudioFileAttachmentType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/audioFileAttachmentType.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentTypeFactory.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "FileAttachmentTypeFactory", - "members": [ - { - "kind": "method", - "name": "create", - "privacy": "public", - "static": true, - "parameters": [ - { - "name": "deepChat", - "type": { - "text": "DeepChat" - } - }, - { - "name": "files", - "type": { - "text": "FileAttachments" - } - }, - { - "name": "toggleContainer", - "type": { - "text": "(display: boolean) => void" - } - }, + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + }, + { + "kind": "method", + "name": "reapplyStateStyle", + "privacy": "public", + "parameters": [ { - "name": "container", + "name": "setType", "type": { - "text": "HTMLElement" + "text": "keyof T" } }, { - "name": "type", + "name": "unsetTypes", + "optional": true, "type": { - "text": "keyof ServiceFileTypes" + "text": "(keyof T)[]" } } - ] + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } } - ] + ], + "superclass": { + "name": "InputButton", + "module": "/src/views/chat/input/buttons/inputButton" + } } ], "exports": [ { "kind": "js", - "name": "FileAttachmentTypeFactory", + "name": "MicrophoneButton", "declaration": { - "name": "FileAttachmentTypeFactory", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentTypeFactory.ts" + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts", + "path": "src/views/chat/input/buttons/microphone/recordAudio.ts", "declarations": [ { "kind": "class", "description": "", - "name": "FileAttachmentsType", + "name": "RecordAudio", "members": [ { "kind": "field", - "name": "_attachments", + "name": "_mediaRecorder", "type": { - "text": "AttachmentObject[]" + "text": "MediaRecorder | undefined" }, - "privacy": "private", - "default": "[]" + "privacy": "private" }, { "kind": "field", - "name": "_fileCountLimit", + "name": "_mediaStream", "type": { - "text": "number" + "text": "MediaStream | undefined" }, - "privacy": "private", - "default": "99" + "privacy": "private" }, { "kind": "field", - "name": "_toggleContainerDisplay", + "name": "_waitingForBrowserApproval", "type": { - "text": "(display: boolean) => void" + "text": "boolean" }, "privacy": "private", - "default": "toggleContainer" + "default": "false" }, { "kind": "field", - "name": "_fileAttachmentsContainerRef", + "name": "_audioType", "type": { - "text": "HTMLElement" + "text": "AudioFileAttachmentType" }, "privacy": "private", - "default": "container" + "default": "audioType" }, { "kind": "field", - "name": "_acceptedFormat", + "name": "_extension", "type": { - "text": "string" + "text": "AudioFormat" }, - "privacy": "private", - "default": "''" + "privacy": "private" }, { "kind": "field", - "name": "_validationHandler", + "name": "_maxDurationSeconds", "type": { - "text": "ValidationHandler | undefined" + "text": "number | undefined" }, "privacy": "private" }, { - "kind": "method", - "name": "attemptAddFile", - "parameters": [ - { - "name": "file", - "type": { - "text": "File" - } - }, - { - "name": "fileReaderResult", - "type": { - "text": "string" - } - } - ] + "kind": "field", + "name": "_newFilePrefix", + "type": { + "text": "string | undefined" + }, + "privacy": "private" }, { "kind": "method", - "name": "isFileTypeValid", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "file", - "type": { - "text": "File" - } - }, - { - "name": "accept", - "type": { - "text": "string" - } - } - ] + "name": "buttonClick", + "privacy": "private" }, { "kind": "method", - "name": "getTypeFromBlob", - "privacy": "public", - "static": true, + "name": "stop", + "privacy": "private", "return": { "type": { - "text": "MessageFileType" - } - }, - "parameters": [ - { - "name": "file", - "type": { - "text": "File" - } + "text": "Promise" } - ] + } }, { "kind": "method", - "name": "addAttachmentBasedOnType", - "privacy": "private", - "parameters": [ - { - "name": "file", - "type": { - "text": "File" - } - }, - { - "name": "fileReaderResult", - "type": { - "text": "string" - } - }, - { - "name": "removable", - "type": { - "text": "boolean" - } - } - ] + "name": "record", + "privacy": "private" }, { "kind": "method", - "name": "createImageAttachment", + "name": "createFile", "privacy": "private", - "static": true, "parameters": [ { - "name": "src", + "name": "event", "type": { - "text": "string" + "text": "BlobEvent" } } ] }, + { + "kind": "field", + "name": "onclick" + }, + { + "kind": "field", + "name": "_innerElements", + "type": { + "text": "DefinedButtonInnerElements" + }, + "privacy": "private", + "inheritedFrom": { + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" + } + }, + { + "kind": "field", + "name": "isActive", + "type": { + "text": "boolean" + }, + "default": "false", + "inheritedFrom": { + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" + } + }, { "kind": "method", - "name": "createAnyFileAttachment", + "name": "createInnerElements", "privacy": "private", - "static": true, "parameters": [ { - "name": "fileName", + "name": "customStyles", + "optional": true, "type": { - "text": "string" + "text": "Styles" } } - ] + ], + "inheritedFrom": { + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" + } }, { "kind": "method", - "name": "addFileAttachment", + "name": "createInnerElement", + "privacy": "private", "parameters": [ { - "name": "file", - "type": { - "text": "File" - } - }, - { - "name": "fileType", + "name": "baseButton", "type": { - "text": "MessageFileType" + "text": "SVGGraphicsElement" } }, { - "name": "attachmentElement", + "name": "state", "type": { - "text": "HTMLElement" + "text": "keyof MicrophoneButton['_innerElements']" } }, { - "name": "removable", + "name": "customStyles", + "optional": true, "type": { - "text": "boolean" + "text": "Styles" } } - ] + ], + "inheritedFrom": { + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" + } }, { "kind": "method", - "name": "createContainer", + "name": "createMicrophoneElement", "privacy": "private", "static": true, - "parameters": [ - { - "name": "attachmentElement", - "type": { - "text": "HTMLElement" - } - } - ] + "inheritedFrom": { + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" + } }, { "kind": "method", - "name": "createRemoveAttachmentButton", - "parameters": [ - { - "name": "attachmentObject", - "type": { - "text": "AttachmentObject" - } - } - ] + "name": "createSVGIconElement", + "privacy": "private", + "static": true, + "inheritedFrom": { + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" + } }, { "kind": "method", - "name": "removeAttachment", - "parameters": [ - { - "name": "attachmentObject", - "type": { - "text": "AttachmentObject" - } - } - ] + "name": "changeToActive", + "privacy": "public", + "inheritedFrom": { + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" + } }, { "kind": "method", - "name": "getFiles" + "name": "changeToDefault", + "privacy": "public", + "inheritedFrom": { + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" + } }, { "kind": "method", - "name": "removeAllAttachments" - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "FileAttachmentsType", - "declaration": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/input/fileAttachments/modal/cameraModal.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "CameraModal", - "members": [ + "name": "changeToCommandMode", + "privacy": "public", + "inheritedFrom": { + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" + } + }, { - "kind": "field", - "name": "_dataURL", - "type": { - "text": "string | undefined" - }, - "privacy": "private" + "kind": "method", + "name": "changeToUnsupported", + "privacy": "public", + "inheritedFrom": { + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" + } }, { - "kind": "field", - "name": "_stopped", - "type": { - "text": "boolean" - }, + "kind": "method", + "name": "toggleIconFilter", "privacy": "private", - "default": "false" + "parameters": [ + { + "name": "mode", + "type": { + "text": "'default' | 'active' | 'command'" + } + } + ], + "inheritedFrom": { + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" + } }, { "kind": "field", - "name": "_captureButton", + "name": "elementRef", "type": { "text": "HTMLElement" }, - "privacy": "private", - "default": "captureButton" + "default": "buttonElement", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "field", - "name": "_submitButton", + "name": "_mouseState", "type": { - "text": "HTMLElement" + "text": "MouseState" }, - "privacy": "private", - "default": "submitButton" + "privacy": "protected", + "default": "{state: 'default'}", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "field", - "name": "_canvas", + "name": "_customStyles", "type": { - "text": "HTMLCanvasElement" + "text": "T | undefined" }, - "privacy": "private" + "privacy": "protected", + "default": "customStyles", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "field", - "name": "_captureIcon", + "name": "position", "type": { - "text": "SVGGraphicsElement" + "text": "ButtonPositionT | undefined" }, - "privacy": "private", - "default": "this._captureButton.children[0]" + "default": "position", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "field", - "name": "_refreshIcon", + "name": "dropupText", "type": { - "text": "SVGGraphicsElement" + "text": "string | undefined" }, - "privacy": "private" + "default": "dropupText", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { - "kind": "field", - "name": "_mediaStream", - "type": { - "text": "MediaStream | undefined" - }, - "privacy": "private" + "kind": "method", + "name": "buttonMouseLeave", + "privacy": "private", + "parameters": [ + { + "name": "customStyles", + "optional": true, + "type": { + "text": "ButtonStyles" + } + } + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { - "kind": "field", - "name": "_format", - "type": { - "text": "'image/png' | 'image/jpeg'" - }, + "kind": "method", + "name": "buttonMouseEnter", "privacy": "private", - "default": "'image/png'" + "parameters": [ + { + "name": "customStyles", + "optional": true, + "type": { + "text": "ButtonStyles" + } + } + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { - "kind": "field", - "name": "_newFilePrefix", - "type": { - "text": "string | undefined" - }, - "privacy": "private" + "kind": "method", + "name": "buttonMouseUp", + "privacy": "private", + "parameters": [ + { + "name": "customStyles", + "optional": true, + "type": { + "text": "ButtonStyles" + } + } + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { - "kind": "field", - "name": "_dimensions", - "type": { - "text": "CameraDimensions | undefined" - }, - "privacy": "private" + "kind": "method", + "name": "buttonMouseDown", + "privacy": "private", + "parameters": [ + { + "name": "customStyles", + "optional": true, + "type": { + "text": "ButtonStyles" + } + } + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + }, + { + "kind": "method", + "name": "setEvents", + "privacy": "private", + "parameters": [ + { + "name": "customStyles", + "optional": true, + "type": { + "text": "ButtonStyles" + } + } + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "method", - "name": "addButtonsAndTheirEvents", - "privacy": "private", + "name": "unsetCustomStateStyles", + "privacy": "public", "parameters": [ { - "name": "fileAttachmentsType", + "name": "unsetTypes", "type": { - "text": "FileAttachmentsType" + "text": "(keyof T)[]" } } - ] + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "method", - "name": "addButtonEvents", - "privacy": "private", + "name": "reapplyStateStyle", + "privacy": "public", "parameters": [ { - "name": "captureButton", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "closeButton", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "submitButton", + "name": "setType", "type": { - "text": "HTMLElement" + "text": "keyof T" } }, { - "name": "fileAttachmentsType", + "name": "unsetTypes", + "optional": true, "type": { - "text": "FileAttachmentsType" + "text": "(keyof T)[]" } } - ] - }, - { - "kind": "method", - "name": "stop", - "privacy": "private" - }, - { - "kind": "method", - "name": "start" - }, - { - "kind": "method", - "name": "capture", - "privacy": "private" - }, + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + } + ], + "superclass": { + "name": "MicrophoneButton", + "module": "/src/views/chat/input/buttons/microphone/microphoneButton" + } + } + ], + "exports": [ + { + "kind": "js", + "name": "RecordAudio", + "declaration": { + "name": "RecordAudio", + "module": "src/views/chat/input/buttons/microphone/recordAudio.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/chat/input/buttons/microphone/speechToText.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "SpeechToText", + "members": [ { - "kind": "method", - "name": "getFile", - "privacy": "private" + "kind": "field", + "name": "_addErrorMessage", + "type": { + "text": "AddErrorMessage" + }, + "privacy": "private", + "default": "addErrorMessage" }, { "kind": "method", - "name": "updateCanvas", + "name": "processConfiguration", "privacy": "private", + "static": true, + "return": { + "type": { + "text": "{serviceName: string, processedConfig: ProcessedConfig}" + } + }, "parameters": [ { - "name": "video", + "name": "textInput", "type": { - "text": "HTMLVideoElement" + "text": "TextInputEl" } }, { - "name": "canvas", + "name": "config", + "optional": true, "type": { - "text": "HTMLCanvasElement" + "text": "boolean | SpeechToTextConfig" } } ] }, { "kind": "method", - "name": "openCameraModal", + "name": "getServiceName", "privacy": "private", + "static": true, "parameters": [ { - "name": "cameraModal", + "name": "config", "type": { - "text": "CameraModal" + "text": "SpeechToTextConfig" } } ] }, { "kind": "method", - "name": "createCameraModalFunc", - "privacy": "public", - "static": true, + "name": "buttonClick", + "privacy": "private", "parameters": [ { - "name": "viewContainerElement", + "name": "textInput", "type": { - "text": "HTMLElement" + "text": "TextInputEl" } }, { - "name": "fileAttachmentsType", + "name": "isInputEnabled", "type": { - "text": "FileAttachmentsType" + "text": "boolean" } }, { - "name": "modalContainerStyle", - "optional": true, + "name": "serviceName", "type": { - "text": "CustomStyle" + "text": "string" } }, { - "name": "cameraFiles", + "name": "config", "optional": true, "type": { - "text": "CameraFiles" + "text": "SpeechToTextConfig" } } ] }, { - "kind": "field", - "name": "extensionCloseCallback", - "type": { - "text": "() => void | undefined" - }, - "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" - } - }, - { - "kind": "field", - "name": "MODAL_CLOSE_TIMEOUT_MS", - "type": { - "text": "number" - }, - "privacy": "public", - "static": true, - "default": "190", - "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" - } - }, - { - "kind": "field", - "name": "_contentRef", - "type": { - "text": "HTMLElement" - }, - "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" - } - }, - { - "kind": "field", - "name": "_elementRef", - "type": { - "text": "HTMLElement" - }, + "kind": "method", + "name": "onCommandModeTrigger", "privacy": "private", - "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" - } + "parameters": [ + { + "name": "isStart", + "type": { + "text": "boolean" + } + } + ] }, { - "kind": "field", - "name": "_backgroundPanelRef", - "type": { - "text": "HTMLElement" - }, - "privacy": "private", - "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" - } + "kind": "method", + "name": "onError", + "privacy": "private" }, { "kind": "field", - "name": "_buttonPanel", + "name": "_innerElements", "type": { - "text": "HTMLElement" + "text": "DefinedButtonInnerElements" }, "privacy": "private", "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" } }, { "kind": "field", - "name": "_isOpen", + "name": "isActive", "type": { "text": "boolean" }, - "privacy": "private", "default": "false", "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" - } - }, - { - "kind": "field", - "name": "keyDownEvent", - "type": { - "text": "(event: KeyboardEvent) => void | undefined" - }, - "privacy": "private", - "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" - } - }, - { - "kind": "method", - "name": "isOpen", - "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" } }, { "kind": "method", - "name": "createContainer", + "name": "createInnerElements", "privacy": "private", - "static": true, "parameters": [ { - "name": "content", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "containerStyle", + "name": "customStyles", "optional": true, "type": { - "text": "CustomStyle" + "text": "Styles" } } ], "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" } }, { "kind": "method", - "name": "createModalContent", + "name": "createInnerElement", "privacy": "private", - "static": true, "parameters": [ { - "name": "contentClasses", + "name": "baseButton", "type": { - "text": "string[]" + "text": "SVGGraphicsElement" } }, { - "name": "backgroundColor", + "name": "state", + "type": { + "text": "keyof MicrophoneButton['_innerElements']" + } + }, + { + "name": "customStyles", "optional": true, "type": { - "text": "string" + "text": "Styles" } } ], "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" } }, { "kind": "method", - "name": "createButtonPanel", + "name": "createMicrophoneElement", "privacy": "private", "static": true, - "parameters": [ - { - "name": "backgroundColor", - "optional": true, - "type": { - "text": "string" - } - } - ], "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" } }, { "kind": "method", - "name": "createDarkBackgroundPanel", + "name": "createSVGIconElement", "privacy": "private", "static": true, "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" } }, { "kind": "method", - "name": "addButtons", - "parameters": [ - { - "name": "buttons", - "type": { - "text": "HTMLElement[]" - } - } - ], + "name": "changeToActive", + "privacy": "public", "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" } }, { "kind": "method", - "name": "createTextButton", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "text", - "type": { - "text": "string" - } - } - ], + "name": "changeToDefault", + "privacy": "public", "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" } }, { "kind": "method", - "name": "createSVGButton", + "name": "changeToCommandMode", "privacy": "public", - "static": true, + "inheritedFrom": { + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" + } + }, + { + "kind": "method", + "name": "changeToUnsupported", + "privacy": "public", + "inheritedFrom": { + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" + } + }, + { + "kind": "method", + "name": "toggleIconFilter", + "privacy": "private", "parameters": [ { - "name": "svgString", + "name": "mode", "type": { - "text": "string" + "text": "'default' | 'active' | 'command'" } } ], "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" } }, { - "kind": "method", - "name": "close", + "kind": "field", + "name": "elementRef", + "type": { + "text": "HTMLElement" + }, + "default": "buttonElement", "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } }, { - "kind": "method", - "name": "displayModalElements", + "kind": "field", + "name": "_mouseState", + "type": { + "text": "MouseState" + }, + "privacy": "protected", + "default": "{state: 'default'}", "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + }, + { + "kind": "field", + "name": "_customStyles", + "type": { + "text": "T | undefined" + }, + "privacy": "protected", + "default": "customStyles", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + }, + { + "kind": "field", + "name": "position", + "type": { + "text": "ButtonPositionT | undefined" + }, + "default": "position", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + }, + { + "kind": "field", + "name": "dropupText", + "type": { + "text": "string | undefined" + }, + "default": "dropupText", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } }, { "kind": "method", - "name": "openTextModal", + "name": "buttonMouseLeave", "privacy": "private", "parameters": [ { - "name": "textHTML", + "name": "customStyles", + "optional": true, "type": { - "text": "string" + "text": "ButtonStyles" } } ], "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } }, { "kind": "method", - "name": "addCloseButton", + "name": "buttonMouseEnter", + "privacy": "private", "parameters": [ { - "name": "text", - "type": { - "text": "string" - } - }, - { - "name": "isSVG", - "type": { - "text": "boolean" - } - }, - { - "name": "callback", + "name": "customStyles", "optional": true, "type": { - "text": "() => void" + "text": "ButtonStyles" } } ], "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } }, { "kind": "method", - "name": "createTextModalFunc", - "privacy": "public", - "static": true, + "name": "buttonMouseUp", + "privacy": "private", "parameters": [ { - "name": "viewContainerElement", + "name": "customStyles", + "optional": true, "type": { - "text": "HTMLElement" + "text": "ButtonStyles" } - }, + } + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + }, + { + "kind": "method", + "name": "buttonMouseDown", + "privacy": "private", + "parameters": [ { - "name": "fileIO", + "name": "customStyles", + "optional": true, "type": { - "text": "FileServiceIO" + "text": "ButtonStyles" } - }, + } + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + }, + { + "kind": "method", + "name": "setEvents", + "privacy": "private", + "parameters": [ { - "name": "closeCallback", + "name": "customStyles", + "optional": true, "type": { - "text": "() => void" + "text": "ButtonStyles" } } ], "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } }, { "kind": "method", - "name": "addWindowEvents", - "privacy": "private", + "name": "unsetCustomStateStyles", + "privacy": "public", "parameters": [ { - "name": "viewContainerElement", + "name": "unsetTypes", "type": { - "text": "HTMLElement" + "text": "(keyof T)[]" } } ], "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } }, { "kind": "method", - "name": "windowKeyDown", - "privacy": "private", + "name": "reapplyStateStyle", + "privacy": "public", "parameters": [ { - "name": "viewContainerElement", + "name": "setType", "type": { - "text": "HTMLElement" + "text": "keyof T" } }, { - "name": "event", + "name": "unsetTypes", + "optional": true, "type": { - "text": "KeyboardEvent" + "text": "(keyof T)[]" } } ], "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } } ], "superclass": { - "name": "Modal", - "module": "/src/views/chat/input/fileAttachments/modal/modal" + "name": "MicrophoneButton", + "module": "/src/views/chat/input/buttons/microphone/microphoneButton" } } ], "exports": [ { "kind": "js", - "name": "CameraModal", + "name": "SpeechToText", "declaration": { - "name": "CameraModal", - "module": "src/views/chat/input/fileAttachments/modal/cameraModal.ts" + "name": "SpeechToText", + "module": "src/views/chat/input/buttons/microphone/speechToText.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/fileAttachments/modal/modal.ts", + "path": "src/views/chat/input/buttons/styleAdjustments/inputButtonPositions.ts", "declarations": [ { "kind": "class", "description": "", - "name": "Modal", + "name": "InputButtonPositions", "members": [ - { - "kind": "field", - "name": "MODAL_CLOSE_TIMEOUT_MS", - "type": { - "text": "number" - }, - "privacy": "public", - "static": true, - "default": "190" - }, - { - "kind": "field", - "name": "_contentRef", - "type": { - "text": "HTMLElement" - } - }, - { - "kind": "field", - "name": "_elementRef", - "type": { - "text": "HTMLElement" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "_backgroundPanelRef", - "type": { - "text": "HTMLElement" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "_buttonPanel", - "type": { - "text": "HTMLElement" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "_isOpen", - "type": { - "text": "boolean" - }, - "privacy": "private", - "default": "false" - }, - { - "kind": "field", - "name": "extensionCloseCallback", - "type": { - "text": "() => void | undefined" - } - }, - { - "kind": "field", - "name": "keyDownEvent", - "type": { - "text": "(event: KeyboardEvent) => void | undefined" - }, - "privacy": "private" - }, - { - "kind": "method", - "name": "isOpen" - }, { "kind": "method", - "name": "createContainer", + "name": "addToDropup", "privacy": "private", "static": true, "parameters": [ { - "name": "content", + "name": "buttonContainers", + "type": { + "text": "ButtonContainersT" + } + }, + { + "name": "positions", + "type": { + "text": "Positions" + } + }, + { + "name": "containerElement", "type": { "text": "HTMLElement" } }, { - "name": "containerStyle", + "name": "dropupStyles", "optional": true, "type": { - "text": "CustomStyle" + "text": "DropupStyles" } } ] }, { "kind": "method", - "name": "createModalContent", + "name": "addToSideContainer", "privacy": "private", "static": true, "parameters": [ { - "name": "contentClasses", + "name": "buttonContainers", "type": { - "text": "string[]" + "text": "ButtonContainersT" } }, { - "name": "backgroundColor", - "optional": true, + "name": "positions", "type": { - "text": "string" + "text": "Positions" } } ] }, { "kind": "method", - "name": "createButtonPanel", + "name": "setPosition", "privacy": "private", "static": true, "parameters": [ { - "name": "backgroundColor", - "optional": true, + "name": "buttonsObj", "type": { - "text": "string" + "text": "Buttons" + } + }, + { + "name": "buttonType", + "type": { + "text": "keyof Buttons" + } + }, + { + "name": "positionButtons", + "type": { + "text": "ButtonProps[]" } } ] }, { "kind": "method", - "name": "createDarkBackgroundPanel", + "name": "createPositionsObj", "privacy": "private", - "static": true - }, - { - "kind": "method", - "name": "addButtons", - "parameters": [ - { - "name": "buttons", - "type": { - "text": "HTMLElement[]" - } + "static": true, + "return": { + "type": { + "text": "Positions" } - ] + } }, { "kind": "method", - "name": "createTextButton", + "name": "generatePositions", "privacy": "private", "static": true, + "return": { + "type": { + "text": "Positions" + } + }, "parameters": [ { - "name": "text", + "name": "buttonsObj", "type": { - "text": "string" + "text": "Buttons" } } ] }, { "kind": "method", - "name": "createSVGButton", + "name": "addButtons", "privacy": "public", "static": true, "parameters": [ { - "name": "svgString", + "name": "buttonContainers", "type": { - "text": "string" + "text": "ButtonContainersT" + } + }, + { + "name": "buttons", + "type": { + "text": "Buttons" + } + }, + { + "name": "container", + "type": { + "text": "HTMLElement" + } + }, + { + "name": "dropupStyles", + "optional": true, + "type": { + "text": "DropupStyles" } } ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "InputButtonPositions", + "declaration": { + "name": "InputButtonPositions", + "module": "src/views/chat/input/buttons/styleAdjustments/inputButtonPositions.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/chat/input/buttons/styleAdjustments/inputButtonStyleAdjustments.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "InputButtonStyleAdjustments", + "members": [ + { + "kind": "field", + "name": "INPUT_OUTSIDE_LEFT_ADJUSTMENT_CLASS", + "type": { + "text": "string" + }, + "privacy": "private", + "static": true, + "default": "'text-input-container-left-adjustment'" }, { - "kind": "method", - "name": "close" + "kind": "field", + "name": "INPUT_OUTSIDE_RIGHT_ADJUSTMENT_CLASS", + "type": { + "text": "string" + }, + "privacy": "private", + "static": true, + "default": "'text-input-container-right-adjustment'" }, { - "kind": "method", - "name": "displayModalElements" + "kind": "field", + "name": "INPUT_OUTSIDE_LEFT_SMALL_ADJUSTMENT_CLASS", + "type": { + "text": "string" + }, + "privacy": "private", + "static": true, + "default": "'text-input-container-left-small-adjustment'" + }, + { + "kind": "field", + "name": "INPUT_OUTSIDE_RIGHT_SMALL_ADJUSTMENT_CLASS", + "type": { + "text": "string" + }, + "privacy": "private", + "static": true, + "default": "'text-input-container-right-small-adjustment'" }, { "kind": "method", - "name": "openTextModal", + "name": "adjustInputPadding", "privacy": "private", + "static": true, "parameters": [ { - "name": "textHTML", + "name": "textInputEl", "type": { - "text": "string" + "text": "HTMLElement" + } + }, + { + "name": "positions", + "type": { + "text": "Positions" } } ] }, { "kind": "method", - "name": "addCloseButton", + "name": "adjustForOutsideButton", + "privacy": "private", + "static": true, "parameters": [ { - "name": "text", + "name": "containers", "type": { - "text": "string" + "text": "ButtonContainersT" } }, { - "name": "isSVG", + "name": "fileAtt", "type": { - "text": "boolean" + "text": "HTMLElement" } }, { - "name": "callback", - "optional": true, + "name": "positions", "type": { - "text": "() => void" + "text": "Positions" } } ] }, { "kind": "method", - "name": "createTextModalFunc", - "privacy": "public", + "name": "adjustOutsideSubmit", + "privacy": "private", "static": true, "parameters": [ { - "name": "viewContainerElement", + "name": "containers", "type": { - "text": "HTMLElement" + "text": "ButtonContainersT" } }, { - "name": "fileIO", + "name": "fileAtt", "type": { - "text": "FileServiceIO" + "text": "HTMLElement" } }, { - "name": "closeCallback", + "name": "positions", "type": { - "text": "() => void" + "text": "Positions" } } ] }, { "kind": "method", - "name": "addWindowEvents", - "privacy": "private", + "name": "set", + "privacy": "public", + "static": true, "parameters": [ { - "name": "viewContainerElement", + "name": "textInputEl", "type": { "text": "HTMLElement" } - } - ] - }, - { - "kind": "method", - "name": "windowKeyDown", - "privacy": "private", - "parameters": [ + }, { - "name": "viewContainerElement", + "name": "containers", + "type": { + "text": "ButtonContainersT" + } + }, + { + "name": "fileAtt", "type": { "text": "HTMLElement" } }, { - "name": "event", + "name": "positions", "type": { - "text": "KeyboardEvent" + "text": "Positions" } } ] @@ -36493,425 +36781,325 @@ "exports": [ { "kind": "js", - "name": "Modal", + "name": "InputButtonStyleAdjustments", "declaration": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "InputButtonStyleAdjustments", + "module": "src/views/chat/input/buttons/styleAdjustments/inputButtonStyleAdjustments.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/buttons/camera/cameraButton.ts", + "path": "src/views/chat/input/buttons/submit/submitButton.ts", "declarations": [ { "kind": "class", "description": "", - "name": "CameraButton", + "name": "SubmitButton", "members": [ { - "kind": "method", - "name": "createInnerElements", + "kind": "field", + "name": "SUBMIT_CLASS", + "type": { + "text": "string" + }, "privacy": "private", - "parameters": [ - { - "name": "customStyles", - "optional": true, - "type": { - "text": "Styles" - } - } - ] + "static": true, + "default": "'submit-button'" }, { - "kind": "method", - "name": "createInnerElement", + "kind": "field", + "name": "LOADING_CLASS", + "type": { + "text": "string" + }, "privacy": "private", - "parameters": [ - { - "name": "baseButton", - "type": { - "text": "SVGGraphicsElement" - } - }, - { - "name": "state", - "type": { - "text": "'styles'" - } - }, - { - "name": "customStyles", - "optional": true, - "type": { - "text": "Styles" - } - } - ] + "static": true, + "default": "'loading-button'" }, { - "kind": "method", - "name": "createButtonElement", + "kind": "field", + "name": "DISABLED_CLASS", + "type": { + "text": "string" + }, "privacy": "private", - "static": true + "static": true, + "default": "'disabled-button'" }, { - "kind": "method", - "name": "createSVGIconElement", + "kind": "field", + "name": "_serviceIO", + "type": { + "text": "ServiceIO" + }, "privacy": "private", - "static": true + "default": "serviceIO" }, { - "kind": "method", - "name": "addClickEvent", + "kind": "field", + "name": "_messages", + "type": { + "text": "Messages" + }, "privacy": "private", - "parameters": [ - { - "name": "containerElement", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "fileAttachmentsType", - "type": { - "text": "FileAttachmentsType" - } - }, - { - "name": "modalContainerStyle", - "optional": true, - "type": { - "text": "CustomStyle" - } - }, - { - "name": "cameraFiles", - "optional": true, - "type": { - "text": "CameraFiles" - } - } - ] + "default": "messages" + }, + { + "kind": "field", + "name": "_inputElementRef", + "type": { + "text": "HTMLElement" + }, + "privacy": "private", + "default": "inputElementRef" + }, + { + "kind": "field", + "name": "_abortStream", + "type": { + "text": "AbortController" + }, + "privacy": "private", + "default": "new AbortController()" + }, + { + "kind": "field", + "name": "_stopClicked", + "type": { + "text": "Signals['stopClicked']" + }, + "privacy": "private", + "default": "{listener: () => {}}" + }, + { + "kind": "field", + "name": "_innerElements", + "type": { + "text": "DefinedButtonInnerElements" + }, + "privacy": "private" + }, + { + "kind": "field", + "name": "_fileAttachments", + "type": { + "text": "FileAttachments" + }, + "privacy": "private", + "default": "fileAttachments" }, { "kind": "field", - "name": "elementRef", + "name": "_alwaysEnabled", "type": { - "text": "HTMLElement" + "text": "boolean" }, - "default": "buttonElement", - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + "privacy": "private", + "default": "!!submitButtonStyles?.alwaysEnabled" }, { "kind": "field", - "name": "_mouseState", + "name": "_isSVGLoadingIconOverriden", "type": { - "text": "MouseState" + "text": "boolean" }, - "privacy": "protected", - "default": "{state: 'default'}", - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + "privacy": "private", + "default": "false" }, { "kind": "field", - "name": "_customStyles", + "name": "_validationHandler", "type": { - "text": "T | undefined" + "text": "ValidationHandler | undefined" }, - "privacy": "protected", - "default": "customStyles", - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + "privacy": "private" }, { "kind": "field", - "name": "position", + "name": "status", "type": { - "text": "ButtonPositionT | undefined" + "text": "object" }, - "default": "position", - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + "default": "{requestInProgress: false, loadingActive: false}" }, { - "kind": "field", - "name": "dropupText", - "type": { - "text": "string | undefined" - }, - "default": "dropupText", - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + "kind": "method", + "name": "createInnerElements", + "privacy": "private" }, { "kind": "method", - "name": "buttonMouseLeave", + "name": "createButtonContainerElement", "privacy": "private", - "parameters": [ - { - "name": "customStyles", - "optional": true, - "type": { - "text": "ButtonStyles" - } - } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + "static": true }, { "kind": "method", - "name": "buttonMouseEnter", + "name": "createSubmitIconElement", "privacy": "private", - "parameters": [ - { - "name": "customStyles", - "optional": true, - "type": { - "text": "ButtonStyles" - } - } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + "static": true }, { "kind": "method", - "name": "buttonMouseUp", + "name": "createLoadingIconElement", "privacy": "private", - "parameters": [ - { - "name": "customStyles", - "optional": true, - "type": { - "text": "ButtonStyles" - } - } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + "static": true }, { "kind": "method", - "name": "buttonMouseDown", + "name": "createStopIconElement", + "privacy": "private", + "static": true + }, + { + "kind": "method", + "name": "createDisabledIconElement", "privacy": "private", "parameters": [ { - "name": "customStyles", - "optional": true, + "name": "submitElement", "type": { - "text": "ButtonStyles" + "text": "ButtonInnerElement" } } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + ] }, { "kind": "method", - "name": "setEvents", + "name": "attemptOverwriteLoadingStyle", "privacy": "private", "parameters": [ { - "name": "customStyles", - "optional": true, + "name": "deepChat", "type": { - "text": "ButtonStyles" + "text": "DeepChat" } } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + ] }, { "kind": "method", - "name": "unsetCustomStateStyles", - "privacy": "public", + "name": "assignHandlers", + "privacy": "private", "parameters": [ { - "name": "unsetTypes", + "name": "validationHandler", "type": { - "text": "(keyof T)[]" + "text": "ValidationHandler" } } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + ] }, { "kind": "method", - "name": "reapplyStateStyle", - "privacy": "public", + "name": "resetSubmit", + "privacy": "private", "parameters": [ { - "name": "setType", - "type": { - "text": "keyof T" - } - }, - { - "name": "unsetTypes", - "optional": true, + "name": "validationHandler", "type": { - "text": "(keyof T)[]" + "text": "ValidationHandler" } } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } - } - ], - "superclass": { - "name": "InputButton", - "module": "/src/views/chat/input/buttons/inputButton" - } - } - ], - "exports": [ - { - "kind": "js", - "name": "CameraButton", - "declaration": { - "name": "CameraButton", - "module": "src/views/chat/input/buttons/camera/cameraButton.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/input/buttons/microphone/microphoneButton.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "MicrophoneButton", - "members": [ - { - "kind": "field", - "name": "_innerElements", - "type": { - "text": "DefinedButtonInnerElements" - }, - "privacy": "private" + ] }, { - "kind": "field", - "name": "isActive", - "type": { - "text": "boolean" - }, - "default": "false" + "kind": "method", + "name": "submitFromInput", + "privacy": "public" }, { "kind": "method", - "name": "createInnerElements", - "privacy": "private", + "name": "programmaticSubmit", + "privacy": "public", "parameters": [ { - "name": "customStyles", - "optional": true, + "name": "content", "type": { - "text": "Styles" + "text": "UserContent" } } ] }, { "kind": "method", - "name": "createInnerElement", - "privacy": "private", + "name": "attemptSubmit", + "privacy": "public", "parameters": [ { - "name": "baseButton", - "type": { - "text": "SVGGraphicsElement" - } - }, - { - "name": "state", + "name": "content", "type": { - "text": "keyof MicrophoneButton['_innerElements']" + "text": "UserContentI" } }, { - "name": "customStyles", - "optional": true, - "type": { - "text": "Styles" - } + "name": "isProgrammatic", + "default": "false" } ] }, { "kind": "method", - "name": "createMicrophoneElement", + "name": "addNewMessage", "privacy": "private", - "static": true + "parameters": [ + { + "name": "{text, files}", + "type": { + "text": "UserContentI" + } + } + ] }, { "kind": "method", - "name": "createSVGIconElement", - "privacy": "private", - "static": true + "name": "stopStream", + "privacy": "private" }, { "kind": "method", - "name": "changeToActive", - "privacy": "public" + "name": "changeToStopIcon", + "privacy": "private" }, { "kind": "method", - "name": "changeToDefault", - "privacy": "public" + "name": "changeToLoadingIcon", + "privacy": "private" }, { "kind": "method", - "name": "changeToCommandMode", + "name": "changeToSubmitIcon", "privacy": "public" }, { "kind": "method", - "name": "changeToUnsupported", - "privacy": "public" + "name": "changeToDisabledIcon", + "privacy": "public", + "parameters": [ + { + "name": "isProgrammatic", + "default": "false" + } + ] }, { "kind": "method", - "name": "toggleIconFilter", + "name": "disableSubmitButton", "privacy": "private", "parameters": [ { - "name": "mode", + "name": "serviceIO", "type": { - "text": "'default' | 'active' | 'command'" + "text": "ServiceIO" + } + }, + { + "name": "isDisabled", + "optional": true, + "type": { + "text": "boolean" } } ] @@ -37119,159 +37307,206 @@ "exports": [ { "kind": "js", - "name": "MicrophoneButton", + "name": "SubmitButton", "declaration": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" + "name": "SubmitButton", + "module": "src/views/chat/input/buttons/submit/submitButton.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/buttons/microphone/recordAudio.ts", + "path": "src/views/chat/input/buttons/submit/submitButtonStateStyle.ts", "declarations": [ { "kind": "class", "description": "", - "name": "RecordAudio", + "name": "SubmitButtonStateStyle", "members": [ { - "kind": "field", - "name": "_mediaRecorder", - "type": { - "text": "MediaRecorder | undefined" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "_mediaStream", - "type": { - "text": "MediaStream | undefined" - }, - "privacy": "private" + "kind": "method", + "name": "resetSubmit", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "submitButton", + "type": { + "text": "SubmitButton" + } + }, + { + "name": "wasLoading", + "type": { + "text": "boolean" + } + } + ] }, { - "kind": "field", - "name": "_waitingForBrowserApproval", - "type": { - "text": "boolean" - }, + "kind": "method", + "name": "overwriteDefaultStyleWithSubmit", "privacy": "private", - "default": "false" + "static": true, + "parameters": [ + { + "name": "styles", + "type": { + "text": "SubmitButtonStyles" + } + }, + { + "name": "style", + "type": { + "text": "keyof SubmitButtonStyles" + } + } + ] }, { - "kind": "field", - "name": "_audioType", - "type": { - "text": "AudioFileAttachmentType" - }, + "kind": "method", + "name": "setUpDisabledButton", "privacy": "private", - "default": "audioType" + "static": true, + "parameters": [ + { + "name": "styles", + "type": { + "text": "SubmitButtonStyles" + } + } + ] }, + { + "kind": "method", + "name": "process", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "submitButtonStyles", + "optional": true, + "type": { + "text": "SubmitButtonStyles" + } + } + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "SubmitButtonStateStyle", + "declaration": { + "name": "SubmitButtonStateStyle", + "module": "src/views/chat/input/buttons/submit/submitButtonStateStyle.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/chat/input/buttons/uploadFile/uploadFileButton.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "UploadFileButton", + "members": [ { "kind": "field", - "name": "_extension", + "name": "_inputElement", "type": { - "text": "AudioFormat" + "text": "HTMLInputElement" }, "privacy": "private" }, { "kind": "field", - "name": "_maxDurationSeconds", + "name": "_fileAttachmentsType", "type": { - "text": "number | undefined" + "text": "FileAttachmentsType" }, - "privacy": "private" + "privacy": "private", + "default": "fileAttachmentsType" }, { "kind": "field", - "name": "_newFilePrefix", + "name": "_openModalOnce", "type": { - "text": "string | undefined" + "text": "boolean | undefined | undefined" }, "privacy": "private" }, { "kind": "method", - "name": "buttonClick", - "privacy": "private" - }, - { - "kind": "method", - "name": "stop", + "name": "createInnerElements", "privacy": "private", - "return": { - "type": { - "text": "Promise" + "parameters": [ + { + "name": "iconId", + "type": { + "text": "string" + } + }, + { + "name": "iconSVGString", + "type": { + "text": "string" + } + }, + { + "name": "customStyles", + "optional": true, + "type": { + "text": "Styles" + } } - } - }, - { - "kind": "method", - "name": "record", - "privacy": "private" + ] }, { "kind": "method", - "name": "createFile", + "name": "triggerImportPrompt", "privacy": "private", "parameters": [ { - "name": "event", + "name": "inputElement", "type": { - "text": "BlobEvent" + "text": "HTMLInputElement" } } ] }, { - "kind": "field", - "name": "onclick" - }, - { - "kind": "field", - "name": "_innerElements", - "type": { - "text": "DefinedButtonInnerElements" - }, + "kind": "method", + "name": "import", "privacy": "private", - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } - }, - { - "kind": "field", - "name": "isActive", - "type": { - "text": "boolean" - }, - "default": "false", - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + "parameters": [ + { + "name": "inputElement", + "type": { + "text": "HTMLInputElement" + } + } + ] }, { "kind": "method", - "name": "createInnerElements", + "name": "createInputElement", "privacy": "private", + "static": true, "parameters": [ { - "name": "customStyles", + "name": "acceptedFormats", "optional": true, "type": { - "text": "Styles" + "text": "string" } } - ], - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + ] }, { "kind": "method", @@ -37287,7 +37522,7 @@ { "name": "state", "type": { - "text": "keyof MicrophoneButton['_innerElements']" + "text": "'styles'" } }, { @@ -37297,84 +37532,66 @@ "text": "Styles" } } - ], - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + ] }, { "kind": "method", - "name": "createMicrophoneElement", + "name": "createButtonElement", "privacy": "private", - "static": true, - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + "static": true }, { "kind": "method", "name": "createSVGIconElement", "privacy": "private", "static": true, - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } - }, - { - "kind": "method", - "name": "changeToActive", - "privacy": "public", - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } - }, - { - "kind": "method", - "name": "changeToDefault", - "privacy": "public", - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } - }, - { - "kind": "method", - "name": "changeToCommandMode", - "privacy": "public", - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + "parameters": [ + { + "name": "iconId", + "type": { + "text": "string" + } + }, + { + "name": "iconSVGString", + "type": { + "text": "string" + } + } + ] }, { "kind": "method", - "name": "changeToUnsupported", - "privacy": "public", - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + "name": "addClickEvent", + "privacy": "private", + "parameters": [ + { + "name": "containerElement", + "type": { + "text": "HTMLElement" + } + }, + { + "name": "fileService", + "type": { + "text": "FileServiceIO" + } + } + ] }, { "kind": "method", - "name": "toggleIconFilter", + "name": "click", "privacy": "private", "parameters": [ { - "name": "mode", + "name": "openModalFunc", + "optional": true, "type": { - "text": "'default' | 'active' | 'command'" + "text": "() => void" } } - ], - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + ] }, { "kind": "field", @@ -37571,620 +37788,743 @@ } ], "superclass": { - "name": "MicrophoneButton", - "module": "/src/views/chat/input/buttons/microphone/microphoneButton" + "name": "InputButton", + "module": "/src/views/chat/input/buttons/inputButton" } } ], "exports": [ { "kind": "js", - "name": "RecordAudio", + "name": "UploadFileButton", "declaration": { - "name": "RecordAudio", - "module": "src/views/chat/input/buttons/microphone/recordAudio.ts" + "name": "UploadFileButton", + "module": "src/views/chat/input/buttons/uploadFile/uploadFileButton.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/buttons/microphone/speechToText.ts", + "path": "src/views/chat/input/fileAttachments/dragAndDrop/dragAndDrop.ts", "declarations": [ { "kind": "class", "description": "", - "name": "SpeechToText", + "name": "DragAndDrop", "members": [ - { - "kind": "field", - "name": "_addErrorMessage", - "type": { - "text": "AddErrorMessage" - }, - "privacy": "private", - "default": "addErrorMessage" - }, { "kind": "method", - "name": "processConfiguration", - "privacy": "private", + "name": "create", + "privacy": "public", "static": true, - "return": { - "type": { - "text": "{serviceName: string, processedConfig: ProcessedConfig}" - } - }, "parameters": [ { - "name": "textInput", + "name": "containerElement", "type": { - "text": "TextInputEl" + "text": "HTMLElement" } }, { - "name": "config", + "name": "fileAttachments", + "type": { + "text": "FileAttachments" + } + }, + { + "name": "dnd", "optional": true, "type": { - "text": "boolean | SpeechToTextConfig" + "text": "boolean | CustomStyle" } } ] }, { "kind": "method", - "name": "getServiceName", + "name": "createElement", "privacy": "private", "static": true, "parameters": [ { - "name": "config", + "name": "dnd", + "optional": true, "type": { - "text": "SpeechToTextConfig" + "text": "boolean | CustomStyle" } } ] }, { "kind": "method", - "name": "buttonClick", + "name": "addEvents", "privacy": "private", + "static": true, "parameters": [ { - "name": "textInput", + "name": "fileDropElement", "type": { - "text": "TextInputEl" + "text": "HTMLElement" } }, { - "name": "isInputEnabled", + "name": "containerElement", "type": { - "text": "boolean" + "text": "HTMLElement" } }, { - "name": "serviceName", + "name": "fileAttachments", "type": { - "text": "string" + "text": "FileAttachments" + } + } + ] + }, + { + "kind": "method", + "name": "uploadFile", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "fileAttachments", + "type": { + "text": "FileAttachments" } }, { - "name": "config", - "optional": true, + "name": "event", "type": { - "text": "SpeechToTextConfig" + "text": "DragEvent" } } ] }, { "kind": "method", - "name": "onCommandModeTrigger", + "name": "display", "privacy": "private", + "static": true, "parameters": [ { - "name": "isStart", + "name": "fileDropElement", "type": { - "text": "boolean" + "text": "HTMLElement" } } ] }, { "kind": "method", - "name": "onError", + "name": "hide", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "fileDropElement", + "type": { + "text": "HTMLElement" + } + } + ] + }, + { + "kind": "method", + "name": "isEnabled", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "fileAttachments", + "type": { + "text": "FileAttachments" + } + }, + { + "name": "dragAndDrop", + "optional": true, + "type": { + "text": "boolean | CustomStyle" + } + } + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "DragAndDrop", + "declaration": { + "name": "DragAndDrop", + "module": "src/views/chat/input/fileAttachments/dragAndDrop/dragAndDrop.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/chat/input/fileAttachments/fileAttachmentTypes/audioFileAttachmentType.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "AudioFileAttachmentType", + "members": [ + { + "kind": "field", + "name": "stopPlaceholderCallback", + "type": { + "text": "() => Promise | undefined" + } + }, + { + "kind": "field", + "name": "_activePlaceholderTimer", + "type": { + "text": "number | undefined" + }, "privacy": "private" }, { "kind": "field", - "name": "_innerElements", + "name": "_activePlaceholderAttachment", "type": { - "text": "DefinedButtonInnerElements" + "text": "AttachmentObject | undefined" }, - "privacy": "private", - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + "privacy": "private" }, { "kind": "field", - "name": "isActive", + "name": "TIMER_LIMIT_S", "type": { - "text": "boolean" + "text": "number" }, - "default": "false", - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + "privacy": "private", + "static": true, + "default": "5999" }, { "kind": "method", - "name": "createInnerElements", + "name": "createAudioContainer", + "privacy": "private", + "static": true + }, + { + "kind": "method", + "name": "addAudioElements", "privacy": "private", + "static": true, "parameters": [ { - "name": "customStyles", - "optional": true, + "name": "oldContainer", "type": { - "text": "Styles" + "text": "HTMLElement" + } + }, + { + "name": "fileReaderResult", + "type": { + "text": "string" } } - ], - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + ] }, { "kind": "method", - "name": "createInnerElement", - "privacy": "private", + "name": "createAudioAttachment", + "privacy": "public", + "static": true, "parameters": [ { - "name": "baseButton", + "name": "fileReaderResult", "type": { - "text": "SVGGraphicsElement" + "text": "string" } - }, + } + ] + }, + { + "kind": "method", + "name": "createTimer", + "privacy": "private", + "parameters": [ { - "name": "state", + "name": "text", "type": { - "text": "keyof MicrophoneButton['_innerElements']" + "text": "HTMLElement" } }, { - "name": "customStyles", + "name": "customTimeLimit", "optional": true, "type": { - "text": "Styles" + "text": "number" } } - ], - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + ] }, { "kind": "method", - "name": "createMicrophoneElement", + "name": "createPlaceholderAudioAttachment", "privacy": "private", - "static": true, - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + "parameters": [ + { + "name": "customTimeLimit", + "optional": true, + "type": { + "text": "number" + } + } + ] }, { "kind": "method", - "name": "createSVGIconElement", + "name": "addPlaceholderAudioAttachmentEvents", "privacy": "private", - "static": true, - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + "parameters": [ + { + "name": "container", + "type": { + "text": "HTMLElement" + } + }, + { + "name": "stop", + "type": { + "text": "SVGElement" + } + }, + { + "name": "textContainer", + "type": { + "text": "HTMLElement" + } + } + ] }, { "kind": "method", - "name": "changeToActive", - "privacy": "public", - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + "name": "addPlaceholderAttachment", + "parameters": [ + { + "name": "stopCallback", + "type": { + "text": "() => Promise" + } + }, + { + "name": "customTimeLimit", + "optional": true, + "type": { + "text": "number" + } + } + ] }, { "kind": "method", - "name": "changeToDefault", - "privacy": "public", - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + "name": "completePlaceholderAttachment", + "parameters": [ + { + "name": "file", + "type": { + "text": "File" + } + }, + { + "name": "fileReaderResult", + "type": { + "text": "string" + } + } + ] }, { "kind": "method", - "name": "changeToCommandMode", - "privacy": "public", - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + "name": "removePlaceholderAttachment" }, { "kind": "method", - "name": "changeToUnsupported", - "privacy": "public", - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + "name": "clearTimer", + "privacy": "private" }, { "kind": "method", - "name": "toggleIconFilter", - "privacy": "private", + "name": "stopAttachmentPlayback", + "privacy": "public", + "static": true, "parameters": [ { - "name": "mode", + "name": "attachmentContainerEl", "type": { - "text": "'default' | 'active' | 'command'" + "text": "HTMLElement" } } - ], + ] + }, + { + "kind": "field", + "name": "_attachments", + "type": { + "text": "AttachmentObject[]" + }, + "privacy": "private", + "default": "[]", "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" } }, { "kind": "field", - "name": "elementRef", + "name": "_fileCountLimit", "type": { - "text": "HTMLElement" + "text": "number" }, - "default": "buttonElement", + "privacy": "private", + "default": "99", "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" } }, { "kind": "field", - "name": "_mouseState", + "name": "_toggleContainerDisplay", "type": { - "text": "MouseState" + "text": "(display: boolean) => void" }, - "privacy": "protected", - "default": "{state: 'default'}", + "privacy": "private", + "default": "toggleContainer", "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" } }, { "kind": "field", - "name": "_customStyles", + "name": "_fileAttachmentsContainerRef", "type": { - "text": "T | undefined" + "text": "HTMLElement" }, - "privacy": "protected", - "default": "customStyles", + "privacy": "private", + "default": "container", "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" } }, { "kind": "field", - "name": "position", + "name": "_acceptedFormat", "type": { - "text": "ButtonPositionT | undefined" + "text": "string" }, - "default": "position", + "privacy": "private", + "default": "''", "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" } }, { "kind": "field", - "name": "dropupText", + "name": "_validationHandler", "type": { - "text": "string | undefined" + "text": "ValidationHandler | undefined" }, - "default": "dropupText", + "privacy": "private", "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" } }, { "kind": "method", - "name": "buttonMouseLeave", - "privacy": "private", + "name": "attemptAddFile", "parameters": [ { - "name": "customStyles", - "optional": true, + "name": "file", "type": { - "text": "ButtonStyles" + "text": "File" } - } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } - }, - { - "kind": "method", - "name": "buttonMouseEnter", - "privacy": "private", - "parameters": [ + }, { - "name": "customStyles", - "optional": true, + "name": "fileReaderResult", "type": { - "text": "ButtonStyles" + "text": "string" } } ], "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" } }, { "kind": "method", - "name": "buttonMouseUp", + "name": "isFileTypeValid", "privacy": "private", + "static": true, "parameters": [ { - "name": "customStyles", - "optional": true, + "name": "file", "type": { - "text": "ButtonStyles" + "text": "File" + } + }, + { + "name": "accept", + "type": { + "text": "string" } } ], "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" } }, { "kind": "method", - "name": "buttonMouseDown", - "privacy": "private", + "name": "getTypeFromBlob", + "privacy": "public", + "static": true, + "return": { + "type": { + "text": "MessageFileType" + } + }, "parameters": [ { - "name": "customStyles", - "optional": true, + "name": "file", "type": { - "text": "ButtonStyles" + "text": "File" } } ], "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" } }, { "kind": "method", - "name": "setEvents", + "name": "addAttachmentBasedOnType", "privacy": "private", "parameters": [ { - "name": "customStyles", - "optional": true, + "name": "file", "type": { - "text": "ButtonStyles" + "text": "File" + } + }, + { + "name": "fileReaderResult", + "type": { + "text": "string" + } + }, + { + "name": "removable", + "type": { + "text": "boolean" } } ], "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" } }, { "kind": "method", - "name": "unsetCustomStateStyles", - "privacy": "public", + "name": "createImageAttachment", + "privacy": "private", + "static": true, "parameters": [ { - "name": "unsetTypes", + "name": "src", "type": { - "text": "(keyof T)[]" + "text": "string" } } ], "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" } }, { "kind": "method", - "name": "reapplyStateStyle", - "privacy": "public", + "name": "createAnyFileAttachment", + "privacy": "private", + "static": true, "parameters": [ { - "name": "setType", - "type": { - "text": "keyof T" - } - }, - { - "name": "unsetTypes", - "optional": true, + "name": "fileName", "type": { - "text": "(keyof T)[]" + "text": "string" } } ], "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" } - } - ], - "superclass": { - "name": "MicrophoneButton", - "module": "/src/views/chat/input/buttons/microphone/microphoneButton" - } - } - ], - "exports": [ - { - "kind": "js", - "name": "SpeechToText", - "declaration": { - "name": "SpeechToText", - "module": "src/views/chat/input/buttons/microphone/speechToText.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/input/buttons/styleAdjustments/inputButtonPositions.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "InputButtonPositions", - "members": [ + }, { "kind": "method", - "name": "addToDropup", - "privacy": "private", - "static": true, + "name": "addFileAttachment", "parameters": [ { - "name": "buttonContainers", + "name": "file", "type": { - "text": "ButtonContainersT" + "text": "File" } }, { - "name": "positions", + "name": "fileType", "type": { - "text": "Positions" + "text": "MessageFileType" } }, { - "name": "containerElement", + "name": "attachmentElement", "type": { "text": "HTMLElement" } }, { - "name": "dropupStyles", - "optional": true, + "name": "removable", "type": { - "text": "DropupStyles" + "text": "boolean" } } - ] + ], + "inheritedFrom": { + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" + } }, { "kind": "method", - "name": "addToSideContainer", + "name": "createContainer", "privacy": "private", "static": true, "parameters": [ { - "name": "buttonContainers", - "type": { - "text": "ButtonContainersT" - } - }, - { - "name": "positions", + "name": "attachmentElement", "type": { - "text": "Positions" + "text": "HTMLElement" } } - ] + ], + "inheritedFrom": { + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" + } }, { "kind": "method", - "name": "setPosition", - "privacy": "private", - "static": true, + "name": "createRemoveAttachmentButton", "parameters": [ { - "name": "buttonsObj", - "type": { - "text": "Buttons" - } - }, - { - "name": "buttonType", - "type": { - "text": "keyof Buttons" - } - }, - { - "name": "positionButtons", + "name": "attachmentObject", "type": { - "text": "ButtonProps[]" + "text": "AttachmentObject" } } - ] - }, - { - "kind": "method", - "name": "createPositionsObj", - "privacy": "private", - "static": true, - "return": { - "type": { - "text": "Positions" - } + ], + "inheritedFrom": { + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" } }, { "kind": "method", - "name": "generatePositions", - "privacy": "private", - "static": true, - "return": { - "type": { - "text": "Positions" - } - }, + "name": "removeAttachment", "parameters": [ { - "name": "buttonsObj", + "name": "attachmentObject", "type": { - "text": "Buttons" + "text": "AttachmentObject" } } - ] + ], + "inheritedFrom": { + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" + } }, { "kind": "method", - "name": "addButtons", + "name": "getFiles", + "inheritedFrom": { + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" + } + }, + { + "kind": "method", + "name": "removeAllAttachments", + "inheritedFrom": { + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" + } + } + ], + "superclass": { + "name": "FileAttachmentsType", + "module": "/src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType" + } + } + ], + "exports": [ + { + "kind": "js", + "name": "AudioFileAttachmentType", + "declaration": { + "name": "AudioFileAttachmentType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/audioFileAttachmentType.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentTypeFactory.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "FileAttachmentTypeFactory", + "members": [ + { + "kind": "method", + "name": "create", "privacy": "public", "static": true, "parameters": [ { - "name": "buttonContainers", + "name": "deepChat", "type": { - "text": "ButtonContainersT" + "text": "DeepChat" } }, { - "name": "buttons", + "name": "files", "type": { - "text": "Buttons" + "text": "FileAttachments" + } + }, + { + "name": "toggleContainer", + "type": { + "text": "(display: boolean) => void" } }, { @@ -38194,10 +38534,9 @@ } }, { - "name": "dropupStyles", - "optional": true, + "name": "type", "type": { - "text": "DropupStyles" + "text": "keyof ServiceFileTypes" } } ] @@ -38208,166 +38547,261 @@ "exports": [ { "kind": "js", - "name": "InputButtonPositions", + "name": "FileAttachmentTypeFactory", "declaration": { - "name": "InputButtonPositions", - "module": "src/views/chat/input/buttons/styleAdjustments/inputButtonPositions.ts" + "name": "FileAttachmentTypeFactory", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentTypeFactory.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/buttons/styleAdjustments/inputButtonStyleAdjustments.ts", + "path": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts", "declarations": [ { "kind": "class", "description": "", - "name": "InputButtonStyleAdjustments", + "name": "FileAttachmentsType", "members": [ { "kind": "field", - "name": "INPUT_OUTSIDE_LEFT_ADJUSTMENT_CLASS", + "name": "_attachments", "type": { - "text": "string" + "text": "AttachmentObject[]" }, "privacy": "private", - "static": true, - "default": "'text-input-container-left-adjustment'" + "default": "[]" }, { "kind": "field", - "name": "INPUT_OUTSIDE_RIGHT_ADJUSTMENT_CLASS", + "name": "_fileCountLimit", "type": { - "text": "string" + "text": "number" }, "privacy": "private", - "static": true, - "default": "'text-input-container-right-adjustment'" + "default": "99" }, { "kind": "field", - "name": "INPUT_OUTSIDE_LEFT_SMALL_ADJUSTMENT_CLASS", + "name": "_toggleContainerDisplay", "type": { - "text": "string" + "text": "(display: boolean) => void" }, "privacy": "private", - "static": true, - "default": "'text-input-container-left-small-adjustment'" + "default": "toggleContainer" }, { "kind": "field", - "name": "INPUT_OUTSIDE_RIGHT_SMALL_ADJUSTMENT_CLASS", + "name": "_fileAttachmentsContainerRef", + "type": { + "text": "HTMLElement" + }, + "privacy": "private", + "default": "container" + }, + { + "kind": "field", + "name": "_acceptedFormat", "type": { "text": "string" }, "privacy": "private", - "static": true, - "default": "'text-input-container-right-small-adjustment'" + "default": "''" + }, + { + "kind": "field", + "name": "_validationHandler", + "type": { + "text": "ValidationHandler | undefined" + }, + "privacy": "private" }, { "kind": "method", - "name": "adjustInputPadding", + "name": "attemptAddFile", + "parameters": [ + { + "name": "file", + "type": { + "text": "File" + } + }, + { + "name": "fileReaderResult", + "type": { + "text": "string" + } + } + ] + }, + { + "kind": "method", + "name": "isFileTypeValid", "privacy": "private", "static": true, "parameters": [ { - "name": "textInputEl", + "name": "file", "type": { - "text": "HTMLElement" + "text": "File" } }, { - "name": "positions", + "name": "accept", "type": { - "text": "Positions" + "text": "string" } } ] }, { "kind": "method", - "name": "adjustForOutsideButton", - "privacy": "private", + "name": "getTypeFromBlob", + "privacy": "public", "static": true, + "return": { + "type": { + "text": "MessageFileType" + } + }, "parameters": [ { - "name": "containers", + "name": "file", "type": { - "text": "ButtonContainersT" + "text": "File" + } + } + ] + }, + { + "kind": "method", + "name": "addAttachmentBasedOnType", + "privacy": "private", + "parameters": [ + { + "name": "file", + "type": { + "text": "File" } }, { - "name": "fileAtt", + "name": "fileReaderResult", "type": { - "text": "HTMLElement" + "text": "string" } }, { - "name": "positions", + "name": "removable", "type": { - "text": "Positions" + "text": "boolean" } } ] }, { "kind": "method", - "name": "adjustOutsideSubmit", + "name": "createImageAttachment", "privacy": "private", "static": true, "parameters": [ { - "name": "containers", + "name": "src", "type": { - "text": "ButtonContainersT" + "text": "string" + } + } + ] + }, + { + "kind": "method", + "name": "createAnyFileAttachment", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "fileName", + "type": { + "text": "string" + } + } + ] + }, + { + "kind": "method", + "name": "addFileAttachment", + "parameters": [ + { + "name": "file", + "type": { + "text": "File" } }, { - "name": "fileAtt", + "name": "fileType", + "type": { + "text": "MessageFileType" + } + }, + { + "name": "attachmentElement", "type": { "text": "HTMLElement" } }, { - "name": "positions", + "name": "removable", + "type": { + "text": "boolean" + } + } + ] + }, + { + "kind": "method", + "name": "createContainer", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "attachmentElement", + "type": { + "text": "HTMLElement" + } + } + ] + }, + { + "kind": "method", + "name": "createRemoveAttachmentButton", + "parameters": [ + { + "name": "attachmentObject", "type": { - "text": "Positions" + "text": "AttachmentObject" } } ] }, { "kind": "method", - "name": "set", - "privacy": "public", - "static": true, + "name": "removeAttachment", "parameters": [ { - "name": "textInputEl", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "containers", - "type": { - "text": "ButtonContainersT" - } - }, - { - "name": "fileAtt", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "positions", + "name": "attachmentObject", "type": { - "text": "Positions" + "text": "AttachmentObject" } } ] + }, + { + "kind": "method", + "name": "getFiles" + }, + { + "kind": "method", + "name": "removeAllAttachments" } ] } @@ -38375,726 +38809,744 @@ "exports": [ { "kind": "js", - "name": "InputButtonStyleAdjustments", + "name": "FileAttachmentsType", "declaration": { - "name": "InputButtonStyleAdjustments", - "module": "src/views/chat/input/buttons/styleAdjustments/inputButtonStyleAdjustments.ts" + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/buttons/submit/submitButton.ts", + "path": "src/views/chat/input/fileAttachments/modal/cameraModal.ts", "declarations": [ { "kind": "class", "description": "", - "name": "SubmitButton", + "name": "CameraModal", "members": [ { "kind": "field", - "name": "SUBMIT_CLASS", - "type": { - "text": "string" - }, - "privacy": "private", - "static": true, - "default": "'submit-button'" - }, - { - "kind": "field", - "name": "LOADING_CLASS", - "type": { - "text": "string" - }, - "privacy": "private", - "static": true, - "default": "'loading-button'" - }, - { - "kind": "field", - "name": "DISABLED_CLASS", + "name": "_dataURL", "type": { - "text": "string" + "text": "string | undefined" }, - "privacy": "private", - "static": true, - "default": "'disabled-button'" + "privacy": "private" }, { "kind": "field", - "name": "_serviceIO", + "name": "_stopped", "type": { - "text": "ServiceIO" + "text": "boolean" }, "privacy": "private", - "default": "serviceIO" + "default": "false" }, { "kind": "field", - "name": "_messages", + "name": "_captureButton", "type": { - "text": "Messages" + "text": "HTMLElement" }, "privacy": "private", - "default": "messages" + "default": "captureButton" }, { "kind": "field", - "name": "_inputElementRef", + "name": "_submitButton", "type": { "text": "HTMLElement" }, "privacy": "private", - "default": "inputElementRef" + "default": "submitButton" }, { "kind": "field", - "name": "_abortStream", + "name": "_canvas", "type": { - "text": "AbortController" + "text": "HTMLCanvasElement" }, - "privacy": "private", - "default": "new AbortController()" + "privacy": "private" }, { "kind": "field", - "name": "_stopClicked", + "name": "_captureIcon", "type": { - "text": "Signals['stopClicked']" + "text": "SVGGraphicsElement" }, "privacy": "private", - "default": "{listener: () => {}}" + "default": "this._captureButton.children[0]" }, { "kind": "field", - "name": "_innerElements", + "name": "_refreshIcon", "type": { - "text": "DefinedButtonInnerElements" + "text": "SVGGraphicsElement" }, "privacy": "private" }, { "kind": "field", - "name": "_fileAttachments", - "type": { - "text": "FileAttachments" - }, - "privacy": "private", - "default": "fileAttachments" - }, - { - "kind": "field", - "name": "_alwaysEnabled", + "name": "_mediaStream", "type": { - "text": "boolean" + "text": "MediaStream | undefined" }, - "privacy": "private", - "default": "!!submitButtonStyles?.alwaysEnabled" + "privacy": "private" }, { "kind": "field", - "name": "_isSVGLoadingIconOverriden", + "name": "_format", "type": { - "text": "boolean" + "text": "'image/png' | 'image/jpeg'" }, "privacy": "private", - "default": "false" + "default": "'image/png'" }, { "kind": "field", - "name": "_validationHandler", + "name": "_newFilePrefix", "type": { - "text": "ValidationHandler | undefined" + "text": "string | undefined" }, "privacy": "private" }, { "kind": "field", - "name": "status", + "name": "_dimensions", "type": { - "text": "object" + "text": "CameraDimensions | undefined" }, - "default": "{requestInProgress: false, loadingActive: false}" - }, - { - "kind": "method", - "name": "createInnerElements", "privacy": "private" }, { "kind": "method", - "name": "createButtonContainerElement", - "privacy": "private", - "static": true - }, - { - "kind": "method", - "name": "createSubmitIconElement", - "privacy": "private", - "static": true - }, - { - "kind": "method", - "name": "createLoadingIconElement", - "privacy": "private", - "static": true - }, - { - "kind": "method", - "name": "createStopIconElement", - "privacy": "private", - "static": true - }, - { - "kind": "method", - "name": "createDisabledIconElement", + "name": "addButtonsAndTheirEvents", "privacy": "private", "parameters": [ { - "name": "submitElement", + "name": "fileAttachmentsType", "type": { - "text": "ButtonInnerElement" + "text": "FileAttachmentsType" } } ] }, { "kind": "method", - "name": "attemptOverwriteLoadingStyle", + "name": "addButtonEvents", "privacy": "private", "parameters": [ { - "name": "deepChat", + "name": "captureButton", "type": { - "text": "DeepChat" + "text": "HTMLElement" } - } - ] - }, - { - "kind": "method", - "name": "assignHandlers", - "privacy": "private", - "parameters": [ + }, { - "name": "validationHandler", + "name": "closeButton", "type": { - "text": "ValidationHandler" + "text": "HTMLElement" } - } - ] - }, - { - "kind": "method", - "name": "resetSubmit", - "privacy": "private", - "parameters": [ + }, { - "name": "validationHandler", + "name": "submitButton", "type": { - "text": "ValidationHandler" + "text": "HTMLElement" + } + }, + { + "name": "fileAttachmentsType", + "type": { + "text": "FileAttachmentsType" } } ] }, { "kind": "method", - "name": "submitFromInput", - "privacy": "public" + "name": "stop", + "privacy": "private" }, { "kind": "method", - "name": "programmaticSubmit", - "privacy": "public", - "parameters": [ - { - "name": "content", - "type": { - "text": "UserContent" - } - } - ] + "name": "start" }, { "kind": "method", - "name": "attemptSubmit", - "privacy": "public", + "name": "capture", + "privacy": "private" + }, + { + "kind": "method", + "name": "getFile", + "privacy": "private" + }, + { + "kind": "method", + "name": "updateCanvas", + "privacy": "private", "parameters": [ { - "name": "content", + "name": "video", "type": { - "text": "UserContentI" + "text": "HTMLVideoElement" } }, { - "name": "isProgrammatic", - "default": "false" + "name": "canvas", + "type": { + "text": "HTMLCanvasElement" + } } ] }, { "kind": "method", - "name": "addNewMessage", + "name": "openCameraModal", "privacy": "private", "parameters": [ { - "name": "{text, files}", + "name": "cameraModal", "type": { - "text": "UserContentI" + "text": "CameraModal" } } ] }, { "kind": "method", - "name": "stopStream", - "privacy": "private" - }, - { - "kind": "method", - "name": "changeToStopIcon", - "privacy": "private" - }, - { - "kind": "method", - "name": "changeToLoadingIcon", - "privacy": "private" - }, - { - "kind": "method", - "name": "changeToSubmitIcon", - "privacy": "public" - }, - { - "kind": "method", - "name": "changeToDisabledIcon", + "name": "createCameraModalFunc", "privacy": "public", + "static": true, "parameters": [ { - "name": "isProgrammatic", - "default": "false" - } - ] - }, - { - "kind": "method", - "name": "disableSubmitButton", - "privacy": "private", - "parameters": [ + "name": "viewContainerElement", + "type": { + "text": "HTMLElement" + } + }, { - "name": "serviceIO", + "name": "fileAttachmentsType", "type": { - "text": "ServiceIO" + "text": "FileAttachmentsType" } }, { - "name": "isDisabled", + "name": "modalContainerStyle", "optional": true, "type": { - "text": "boolean" + "text": "CustomStyle" + } + }, + { + "name": "cameraFiles", + "optional": true, + "type": { + "text": "CameraFiles" } } ] }, { "kind": "field", - "name": "elementRef", + "name": "extensionCloseCallback", + "type": { + "text": "() => void | undefined" + }, + "inheritedFrom": { + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + } + }, + { + "kind": "field", + "name": "MODAL_CLOSE_TIMEOUT_MS", + "type": { + "text": "number" + }, + "privacy": "public", + "static": true, + "default": "190", + "inheritedFrom": { + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + } + }, + { + "kind": "field", + "name": "_contentRef", "type": { "text": "HTMLElement" }, - "default": "buttonElement", "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" } }, { "kind": "field", - "name": "_mouseState", + "name": "_elementRef", "type": { - "text": "MouseState" + "text": "HTMLElement" }, - "privacy": "protected", - "default": "{state: 'default'}", + "privacy": "private", "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" } }, { "kind": "field", - "name": "_customStyles", + "name": "_backgroundPanelRef", "type": { - "text": "T | undefined" + "text": "HTMLElement" }, - "privacy": "protected", - "default": "customStyles", + "privacy": "private", "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" } }, { "kind": "field", - "name": "position", + "name": "_buttonPanel", "type": { - "text": "ButtonPositionT | undefined" + "text": "HTMLElement" }, - "default": "position", + "privacy": "private", "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" } }, { "kind": "field", - "name": "dropupText", + "name": "_isOpen", "type": { - "text": "string | undefined" + "text": "boolean" }, - "default": "dropupText", + "privacy": "private", + "default": "false", "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + } + }, + { + "kind": "field", + "name": "keyDownEvent", + "type": { + "text": "(event: KeyboardEvent) => void | undefined" + }, + "privacy": "private", + "inheritedFrom": { + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" } }, { "kind": "method", - "name": "buttonMouseLeave", + "name": "isOpen", + "inheritedFrom": { + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + } + }, + { + "kind": "method", + "name": "createContainer", "privacy": "private", + "static": true, "parameters": [ { - "name": "customStyles", + "name": "content", + "type": { + "text": "HTMLElement" + } + }, + { + "name": "containerStyle", "optional": true, "type": { - "text": "ButtonStyles" + "text": "CustomStyle" } } ], "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" } }, { "kind": "method", - "name": "buttonMouseEnter", + "name": "createModalContent", "privacy": "private", + "static": true, "parameters": [ { - "name": "customStyles", + "name": "contentClasses", + "type": { + "text": "string[]" + } + }, + { + "name": "backgroundColor", "optional": true, "type": { - "text": "ButtonStyles" + "text": "string" } } ], "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" } }, { "kind": "method", - "name": "buttonMouseUp", + "name": "createButtonPanel", "privacy": "private", + "static": true, "parameters": [ { - "name": "customStyles", + "name": "backgroundColor", "optional": true, "type": { - "text": "ButtonStyles" + "text": "string" } } ], "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" } }, { "kind": "method", - "name": "buttonMouseDown", + "name": "createDarkBackgroundPanel", "privacy": "private", + "static": true, + "inheritedFrom": { + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + } + }, + { + "kind": "method", + "name": "addButtons", "parameters": [ { - "name": "customStyles", - "optional": true, + "name": "buttons", "type": { - "text": "ButtonStyles" + "text": "HTMLElement[]" } } ], "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" } }, { "kind": "method", - "name": "setEvents", + "name": "createTextButton", "privacy": "private", + "static": true, "parameters": [ { - "name": "customStyles", - "optional": true, + "name": "text", "type": { - "text": "ButtonStyles" + "text": "string" } } ], "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + } + }, + { + "kind": "method", + "name": "createSVGButton", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "svgString", + "type": { + "text": "string" + } + } + ], + "inheritedFrom": { + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + } + }, + { + "kind": "method", + "name": "close", + "inheritedFrom": { + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + } + }, + { + "kind": "method", + "name": "displayModalElements", + "inheritedFrom": { + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" } }, { "kind": "method", - "name": "unsetCustomStateStyles", - "privacy": "public", + "name": "openTextModal", + "privacy": "private", "parameters": [ { - "name": "unsetTypes", + "name": "textHTML", "type": { - "text": "(keyof T)[]" + "text": "string" } } ], "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" } }, { "kind": "method", - "name": "reapplyStateStyle", - "privacy": "public", + "name": "addCloseButton", "parameters": [ { - "name": "setType", + "name": "text", "type": { - "text": "keyof T" + "text": "string" } }, { - "name": "unsetTypes", + "name": "isSVG", + "type": { + "text": "boolean" + } + }, + { + "name": "callback", "optional": true, "type": { - "text": "(keyof T)[]" + "text": "() => void" } } ], "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" } - } - ], - "superclass": { - "name": "InputButton", - "module": "/src/views/chat/input/buttons/inputButton" - } - } - ], - "exports": [ - { - "kind": "js", - "name": "SubmitButton", - "declaration": { - "name": "SubmitButton", - "module": "src/views/chat/input/buttons/submit/submitButton.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/input/buttons/submit/submitButtonStateStyle.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "SubmitButtonStateStyle", - "members": [ + }, { "kind": "method", - "name": "resetSubmit", + "name": "createTextModalFunc", "privacy": "public", "static": true, "parameters": [ { - "name": "submitButton", + "name": "viewContainerElement", "type": { - "text": "SubmitButton" + "text": "HTMLElement" } }, { - "name": "wasLoading", - "type": { - "text": "boolean" - } - } - ] - }, - { - "kind": "method", - "name": "overwriteDefaultStyleWithSubmit", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "styles", + "name": "fileIO", "type": { - "text": "SubmitButtonStyles" + "text": "FileServiceIO" } }, { - "name": "style", + "name": "closeCallback", "type": { - "text": "keyof SubmitButtonStyles" + "text": "() => void" } } - ] + ], + "inheritedFrom": { + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + } }, { "kind": "method", - "name": "setUpDisabledButton", + "name": "addWindowEvents", "privacy": "private", - "static": true, "parameters": [ { - "name": "styles", + "name": "viewContainerElement", "type": { - "text": "SubmitButtonStyles" + "text": "HTMLElement" } } - ] + ], + "inheritedFrom": { + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + } }, { "kind": "method", - "name": "process", - "privacy": "public", - "static": true, + "name": "windowKeyDown", + "privacy": "private", "parameters": [ { - "name": "submitButtonStyles", - "optional": true, + "name": "viewContainerElement", "type": { - "text": "SubmitButtonStyles" + "text": "HTMLElement" + } + }, + { + "name": "event", + "type": { + "text": "KeyboardEvent" } } - ] + ], + "inheritedFrom": { + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + } } - ] + ], + "superclass": { + "name": "Modal", + "module": "/src/views/chat/input/fileAttachments/modal/modal" + } } ], "exports": [ { "kind": "js", - "name": "SubmitButtonStateStyle", + "name": "CameraModal", "declaration": { - "name": "SubmitButtonStateStyle", - "module": "src/views/chat/input/buttons/submit/submitButtonStateStyle.ts" + "name": "CameraModal", + "module": "src/views/chat/input/fileAttachments/modal/cameraModal.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/buttons/uploadFile/uploadFileButton.ts", + "path": "src/views/chat/input/fileAttachments/modal/modal.ts", "declarations": [ { "kind": "class", "description": "", - "name": "UploadFileButton", + "name": "Modal", "members": [ { "kind": "field", - "name": "_inputElement", + "name": "MODAL_CLOSE_TIMEOUT_MS", "type": { - "text": "HTMLInputElement" + "text": "number" + }, + "privacy": "public", + "static": true, + "default": "190" + }, + { + "kind": "field", + "name": "_contentRef", + "type": { + "text": "HTMLElement" + } + }, + { + "kind": "field", + "name": "_elementRef", + "type": { + "text": "HTMLElement" }, "privacy": "private" }, { "kind": "field", - "name": "_fileAttachmentsType", + "name": "_backgroundPanelRef", "type": { - "text": "FileAttachmentsType" + "text": "HTMLElement" + }, + "privacy": "private" + }, + { + "kind": "field", + "name": "_buttonPanel", + "type": { + "text": "HTMLElement" + }, + "privacy": "private" + }, + { + "kind": "field", + "name": "_isOpen", + "type": { + "text": "boolean" }, "privacy": "private", - "default": "fileAttachmentsType" + "default": "false" }, { "kind": "field", - "name": "_openModalOnce", + "name": "extensionCloseCallback", "type": { - "text": "boolean | undefined | undefined" + "text": "() => void | undefined" + } + }, + { + "kind": "field", + "name": "keyDownEvent", + "type": { + "text": "(event: KeyboardEvent) => void | undefined" }, "privacy": "private" }, { "kind": "method", - "name": "createInnerElements", + "name": "isOpen" + }, + { + "kind": "method", + "name": "createContainer", "privacy": "private", + "static": true, "parameters": [ { - "name": "iconId", - "type": { - "text": "string" - } - }, - { - "name": "iconSVGString", + "name": "content", "type": { - "text": "string" + "text": "HTMLElement" } }, { - "name": "customStyles", + "name": "containerStyle", "optional": true, "type": { - "text": "Styles" - } - } - ] - }, - { - "kind": "method", - "name": "triggerImportPrompt", - "privacy": "private", - "parameters": [ - { - "name": "inputElement", - "type": { - "text": "HTMLInputElement" + "text": "CustomStyle" } } ] }, { "kind": "method", - "name": "import", + "name": "createModalContent", "privacy": "private", + "static": true, "parameters": [ { - "name": "inputElement", + "name": "contentClasses", "type": { - "text": "HTMLInputElement" + "text": "string[]" } - } - ] - }, - { - "kind": "method", - "name": "createInputElement", - "privacy": "private", - "static": true, - "parameters": [ + }, { - "name": "acceptedFormats", + "name": "backgroundColor", "optional": true, "type": { "text": "string" @@ -39104,296 +39556,179 @@ }, { "kind": "method", - "name": "createInnerElement", + "name": "createButtonPanel", "privacy": "private", + "static": true, "parameters": [ { - "name": "baseButton", - "type": { - "text": "SVGGraphicsElement" - } - }, - { - "name": "state", - "type": { - "text": "'styles'" - } - }, - { - "name": "customStyles", + "name": "backgroundColor", "optional": true, "type": { - "text": "Styles" + "text": "string" } } ] }, { "kind": "method", - "name": "createButtonElement", + "name": "createDarkBackgroundPanel", "privacy": "private", "static": true }, { "kind": "method", - "name": "createSVGIconElement", - "privacy": "private", - "static": true, + "name": "addButtons", "parameters": [ { - "name": "iconId", - "type": { - "text": "string" - } - }, - { - "name": "iconSVGString", + "name": "buttons", "type": { - "text": "string" + "text": "HTMLElement[]" } } ] }, { "kind": "method", - "name": "addClickEvent", + "name": "createTextButton", "privacy": "private", + "static": true, "parameters": [ { - "name": "containerElement", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "fileService", + "name": "text", "type": { - "text": "FileServiceIO" + "text": "string" } } ] }, { "kind": "method", - "name": "click", - "privacy": "private", + "name": "createSVGButton", + "privacy": "public", + "static": true, "parameters": [ { - "name": "openModalFunc", - "optional": true, + "name": "svgString", "type": { - "text": "() => void" + "text": "string" } } ] }, { - "kind": "field", - "name": "elementRef", - "type": { - "text": "HTMLElement" - }, - "default": "buttonElement", - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } - }, - { - "kind": "field", - "name": "_mouseState", - "type": { - "text": "MouseState" - }, - "privacy": "protected", - "default": "{state: 'default'}", - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } - }, - { - "kind": "field", - "name": "_customStyles", - "type": { - "text": "T | undefined" - }, - "privacy": "protected", - "default": "customStyles", - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } - }, - { - "kind": "field", - "name": "position", - "type": { - "text": "ButtonPositionT | undefined" - }, - "default": "position", - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + "kind": "method", + "name": "close" }, { - "kind": "field", - "name": "dropupText", - "type": { - "text": "string | undefined" - }, - "default": "dropupText", - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + "kind": "method", + "name": "displayModalElements" }, { "kind": "method", - "name": "buttonMouseLeave", + "name": "openTextModal", "privacy": "private", "parameters": [ { - "name": "customStyles", - "optional": true, + "name": "textHTML", "type": { - "text": "ButtonStyles" + "text": "string" } } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + ] }, { "kind": "method", - "name": "buttonMouseEnter", - "privacy": "private", + "name": "addCloseButton", "parameters": [ { - "name": "customStyles", - "optional": true, + "name": "text", "type": { - "text": "ButtonStyles" + "text": "string" } - } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } - }, - { - "kind": "method", - "name": "buttonMouseUp", - "privacy": "private", - "parameters": [ + }, { - "name": "customStyles", - "optional": true, + "name": "isSVG", "type": { - "text": "ButtonStyles" + "text": "boolean" } - } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } - }, - { - "kind": "method", - "name": "buttonMouseDown", - "privacy": "private", - "parameters": [ + }, { - "name": "customStyles", + "name": "callback", "optional": true, "type": { - "text": "ButtonStyles" + "text": "() => void" } } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + ] }, { "kind": "method", - "name": "setEvents", - "privacy": "private", + "name": "createTextModalFunc", + "privacy": "public", + "static": true, "parameters": [ { - "name": "customStyles", - "optional": true, + "name": "viewContainerElement", "type": { - "text": "ButtonStyles" + "text": "HTMLElement" + } + }, + { + "name": "fileIO", + "type": { + "text": "FileServiceIO" + } + }, + { + "name": "closeCallback", + "type": { + "text": "() => void" } } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + ] }, { "kind": "method", - "name": "unsetCustomStateStyles", - "privacy": "public", + "name": "addWindowEvents", + "privacy": "private", "parameters": [ { - "name": "unsetTypes", + "name": "viewContainerElement", "type": { - "text": "(keyof T)[]" + "text": "HTMLElement" } } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + ] }, { "kind": "method", - "name": "reapplyStateStyle", - "privacy": "public", + "name": "windowKeyDown", + "privacy": "private", "parameters": [ { - "name": "setType", + "name": "viewContainerElement", "type": { - "text": "keyof T" + "text": "HTMLElement" } }, { - "name": "unsetTypes", - "optional": true, + "name": "event", "type": { - "text": "(keyof T)[]" + "text": "KeyboardEvent" } } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + ] } - ], - "superclass": { - "name": "InputButton", - "module": "/src/views/chat/input/buttons/inputButton" - } + ] } ], "exports": [ { "kind": "js", - "name": "UploadFileButton", + "name": "Modal", "declaration": { - "name": "UploadFileButton", - "module": "src/views/chat/input/buttons/uploadFile/uploadFileButton.ts" + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" } } ] diff --git a/component/package-lock.json b/component/package-lock.json index a535e2c1d..6450c5431 100644 --- a/component/package-lock.json +++ b/component/package-lock.json @@ -1,12 +1,12 @@ { "name": "deep-chat", - "version": "1.4.10", + "version": "1.4.11", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "deep-chat", - "version": "1.4.10", + "version": "1.4.11", "license": "MIT", "dependencies": { "@microsoft/fetch-event-source": "^2.0.1", diff --git a/component/package.json b/component/package.json index aa87a17f4..30169e63a 100644 --- a/component/package.json +++ b/component/package.json @@ -1,6 +1,6 @@ { "name": "deep-chat", - "version": "1.4.10", + "version": "1.4.11", "description": "Customizable chat component for AI APIs", "main": "./dist/deepChat.js", "module": "./dist/deepChat.js", diff --git a/example-servers/nextjs/package-lock.json b/example-servers/nextjs/package-lock.json index acdda78f6..d0737b671 100644 --- a/example-servers/nextjs/package-lock.json +++ b/example-servers/nextjs/package-lock.json @@ -6,7 +6,7 @@ "": { "dependencies": { "axios": "^1.4.0", - "deep-chat-react": "^1.4.10", + "deep-chat-react": "^1.4.11", "eventsource-parser": "^1.0.0", "next": "13.4.9", "react": "^18.2.0", @@ -299,9 +299,9 @@ "dev": true }, "node_modules/deep-chat": { - "version": "1.4.10", - "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.10.tgz", - "integrity": "sha512-rxtyDDLIEmvutQMtuPz1J5eufKQBiW3ThsQuq1raWmTxW5EeHYTgsdjcgYY8Wb3WIRTX/J984vkmvJ4YdprL1Q==", + "version": "1.4.11", + "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.11.tgz", + "integrity": "sha512-+I79+ZOMXpg3xAGKoaVFkuxF0+HJZmXLBz1hONTIIrALR08r7tnbw0g3rhS9T7dUeMzA84BbxV8HMco9pNQWjw==", "dependencies": { "@microsoft/fetch-event-source": "^2.0.1", "remarkable": "^2.0.1", @@ -309,12 +309,12 @@ } }, "node_modules/deep-chat-react": { - "version": "1.4.10", - "resolved": "https://registry.npmjs.org/deep-chat-react/-/deep-chat-react-1.4.10.tgz", - "integrity": "sha512-OqaEc1FycqGrM2IuTtyRDMzSl9mRqGCeGHA6PMukLP5B3VrnkzuRJ0F6genkPk6tsGZo+oNBVi+QPUBFAIqD8Q==", + "version": "1.4.11", + "resolved": "https://registry.npmjs.org/deep-chat-react/-/deep-chat-react-1.4.11.tgz", + "integrity": "sha512-wrKZUldeJ/FrD9dDch12xpse8P4HyV3noMASySDi6pKMs2uCru5aekCD3AUWvnkIicOD8HCYdoGOr4CfAuHdDQ==", "dependencies": { "@lit-labs/react": "^1.1.1", - "deep-chat": "1.4.10" + "deep-chat": "1.4.11" }, "peerDependencies": { "react": ">=16.8.0 || >=17.0.0 || >=18.0.0" @@ -826,9 +826,9 @@ "dev": true }, "deep-chat": { - "version": "1.4.10", - "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.10.tgz", - "integrity": "sha512-rxtyDDLIEmvutQMtuPz1J5eufKQBiW3ThsQuq1raWmTxW5EeHYTgsdjcgYY8Wb3WIRTX/J984vkmvJ4YdprL1Q==", + "version": "1.4.11", + "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.11.tgz", + "integrity": "sha512-+I79+ZOMXpg3xAGKoaVFkuxF0+HJZmXLBz1hONTIIrALR08r7tnbw0g3rhS9T7dUeMzA84BbxV8HMco9pNQWjw==", "requires": { "@microsoft/fetch-event-source": "^2.0.1", "remarkable": "^2.0.1", @@ -836,12 +836,12 @@ } }, "deep-chat-react": { - "version": "1.4.10", - "resolved": "https://registry.npmjs.org/deep-chat-react/-/deep-chat-react-1.4.10.tgz", - "integrity": "sha512-OqaEc1FycqGrM2IuTtyRDMzSl9mRqGCeGHA6PMukLP5B3VrnkzuRJ0F6genkPk6tsGZo+oNBVi+QPUBFAIqD8Q==", + "version": "1.4.11", + "resolved": "https://registry.npmjs.org/deep-chat-react/-/deep-chat-react-1.4.11.tgz", + "integrity": "sha512-wrKZUldeJ/FrD9dDch12xpse8P4HyV3noMASySDi6pKMs2uCru5aekCD3AUWvnkIicOD8HCYdoGOr4CfAuHdDQ==", "requires": { "@lit-labs/react": "^1.1.1", - "deep-chat": "1.4.10" + "deep-chat": "1.4.11" } }, "delayed-stream": { diff --git a/example-servers/nextjs/package.json b/example-servers/nextjs/package.json index c675b42d0..cf7810529 100644 --- a/example-servers/nextjs/package.json +++ b/example-servers/nextjs/package.json @@ -7,7 +7,7 @@ }, "dependencies": { "axios": "^1.4.0", - "deep-chat-react": "^1.4.10", + "deep-chat-react": "^1.4.11", "eventsource-parser": "^1.0.0", "next": "13.4.9", "react": "^18.2.0", diff --git a/example-servers/sveltekit/package-lock.json b/example-servers/sveltekit/package-lock.json index c38ba1d45..7cb449805 100644 --- a/example-servers/sveltekit/package-lock.json +++ b/example-servers/sveltekit/package-lock.json @@ -8,7 +8,7 @@ "name": "deep-chat-sveltekit", "version": "0.0.1", "dependencies": { - "deep-chat": "^1.4.10", + "deep-chat": "^1.4.11", "eventsource-parser": "^1.0.0" }, "devDependencies": { @@ -986,9 +986,9 @@ } }, "node_modules/deep-chat": { - "version": "1.4.10", - "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.10.tgz", - "integrity": "sha512-rxtyDDLIEmvutQMtuPz1J5eufKQBiW3ThsQuq1raWmTxW5EeHYTgsdjcgYY8Wb3WIRTX/J984vkmvJ4YdprL1Q==", + "version": "1.4.11", + "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.11.tgz", + "integrity": "sha512-+I79+ZOMXpg3xAGKoaVFkuxF0+HJZmXLBz1hONTIIrALR08r7tnbw0g3rhS9T7dUeMzA84BbxV8HMco9pNQWjw==", "dependencies": { "@microsoft/fetch-event-source": "^2.0.1", "remarkable": "^2.0.1", @@ -3065,9 +3065,9 @@ } }, "deep-chat": { - "version": "1.4.10", - "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.10.tgz", - "integrity": "sha512-rxtyDDLIEmvutQMtuPz1J5eufKQBiW3ThsQuq1raWmTxW5EeHYTgsdjcgYY8Wb3WIRTX/J984vkmvJ4YdprL1Q==", + "version": "1.4.11", + "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.11.tgz", + "integrity": "sha512-+I79+ZOMXpg3xAGKoaVFkuxF0+HJZmXLBz1hONTIIrALR08r7tnbw0g3rhS9T7dUeMzA84BbxV8HMco9pNQWjw==", "requires": { "@microsoft/fetch-event-source": "^2.0.1", "remarkable": "^2.0.1", diff --git a/example-servers/sveltekit/package.json b/example-servers/sveltekit/package.json index 671af7a9a..1415f6315 100644 --- a/example-servers/sveltekit/package.json +++ b/example-servers/sveltekit/package.json @@ -21,7 +21,7 @@ }, "type": "module", "dependencies": { - "deep-chat": "^1.4.10", + "deep-chat": "^1.4.11", "eventsource-parser": "^1.0.0" } } diff --git a/other-packages/react/package-lock.json b/other-packages/react/package-lock.json index b33e0a176..17d32444d 100644 --- a/other-packages/react/package-lock.json +++ b/other-packages/react/package-lock.json @@ -1,16 +1,16 @@ { "name": "deep-chat-react", - "version": "1.4.10", + "version": "1.4.11", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "deep-chat-react", - "version": "1.4.10", + "version": "1.4.11", "license": "MIT", "dependencies": { "@lit-labs/react": "^1.1.1", - "deep-chat": "1.4.10" + "deep-chat": "1.4.11" }, "devDependencies": { "@types/react": "^18.0.28", @@ -76,9 +76,9 @@ "dev": true }, "node_modules/deep-chat": { - "version": "1.4.10", - "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.10.tgz", - "integrity": "sha512-rxtyDDLIEmvutQMtuPz1J5eufKQBiW3ThsQuq1raWmTxW5EeHYTgsdjcgYY8Wb3WIRTX/J984vkmvJ4YdprL1Q==", + "version": "1.4.11", + "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.11.tgz", + "integrity": "sha512-+I79+ZOMXpg3xAGKoaVFkuxF0+HJZmXLBz1hONTIIrALR08r7tnbw0g3rhS9T7dUeMzA84BbxV8HMco9pNQWjw==", "dependencies": { "@microsoft/fetch-event-source": "^2.0.1", "remarkable": "^2.0.1", @@ -216,9 +216,9 @@ "dev": true }, "deep-chat": { - "version": "1.4.10", - "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.10.tgz", - "integrity": "sha512-rxtyDDLIEmvutQMtuPz1J5eufKQBiW3ThsQuq1raWmTxW5EeHYTgsdjcgYY8Wb3WIRTX/J984vkmvJ4YdprL1Q==", + "version": "1.4.11", + "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.11.tgz", + "integrity": "sha512-+I79+ZOMXpg3xAGKoaVFkuxF0+HJZmXLBz1hONTIIrALR08r7tnbw0g3rhS9T7dUeMzA84BbxV8HMco9pNQWjw==", "requires": { "@microsoft/fetch-event-source": "^2.0.1", "remarkable": "^2.0.1", diff --git a/other-packages/react/package.json b/other-packages/react/package.json index 76bd01338..cc0493c28 100644 --- a/other-packages/react/package.json +++ b/other-packages/react/package.json @@ -1,6 +1,6 @@ { "name": "deep-chat-react", - "version": "1.4.10", + "version": "1.4.11", "description": "Customizable chat component for AI APIs", "main": "./dist/deepChat.js", "module": "./dist/deepChat.js", @@ -32,7 +32,7 @@ "license": "MIT", "dependencies": { "@lit-labs/react": "^1.1.1", - "deep-chat": "1.4.10" + "deep-chat": "1.4.11" }, "devDependencies": { "@types/react": "^18.0.28", diff --git a/website/docs/docs/connect.mdx b/website/docs/docs/connect.mdx index 923f0dc2e..fad945a4c 100644 --- a/website/docs/docs/connect.mdx +++ b/website/docs/docs/connect.mdx @@ -110,14 +110,15 @@ Configuration for the outgoing network requests to the target server. ### `stream` {#stream} -- Type: `boolean` | {`simulation?: boolean | number`} +- Type: `boolean` | {`simulation?: boolean | number | string`} Used to stream responses from the target service.
By setting _true_ - the chat will stream incoming [`server-sent events`](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events) from the server. See [`example`](https://deepchat.dev/examples/servers) server code.
The responses are expected to contain partial text, however you can use [`overwrite`](#Response) to overwrite each one.
You can alternatively use the `simulation` object property to facilitate a stream-like experience for any other connection type where the received content wil be -gradually populated in the message bubble. You can also control the millisecond interim of each character's appearance by assigning it a number with the default being _6_.
+gradually populated in the message bubble. You can control the millisecond interim of each word's appearance by assigning it a number with the default being _6_. +A string value is used to act like an _end-phrase_ for individual websocket messages that facilitate a stream.
#### Stream Service Example diff --git a/website/docs/docs/directConnection/OpenAI.mdx b/website/docs/docs/directConnection/OpenAI.mdx index da79b3796..5dc5b2943 100644 --- a/website/docs/docs/directConnection/OpenAI.mdx +++ b/website/docs/docs/directConnection/OpenAI.mdx @@ -194,6 +194,8 @@ If `max_tokens` is not set, the component sets it to _300_ as otherwise the API - Type: `true` | {
     `assistant_id?: string`,
+      `thread_id?: string`,
+      `load_thread_history?: boolean`,
     [`new_assistant?: NewAssistant`](#NewAssistant),
     [`function_handler?: AssistantFunctionHandler`](#assistant-functions)
} @@ -201,6 +203,8 @@ If `max_tokens` is not set, the component sets it to _300_ as otherwise the API Connect to your Open AI [`assistant`](https://platform.openai.com/docs/assistants/overview). When set to `true` or the `assistant_id` is not defined, Deep Chat will automatically create a new assistant when the user sends the first message.
`assistant_id` is the id of your assistant.
+`thread_id` allows you to communicate in the context of an already existing conversation/[thread](https://platform.openai.com/docs/api-reference/threads).
+`load_thread_history` toggles a preload of the previous conversation/[thread](https://platform.openai.com/docs/api-reference/threads) messages on chat is initialisation.
`new_assistant` defines the details for the newly created assistant.
`function_handler` is the actual function used to handle the model's function response. Please navigate to [Assistant Functions](#assistant-functions) for more info.
diff --git a/website/docs/docs/installation.mdx b/website/docs/docs/installation.mdx index 2c72f03c0..094f1bda8 100644 --- a/website/docs/docs/installation.mdx +++ b/website/docs/docs/installation.mdx @@ -19,5 +19,5 @@ npm install deep-chat-react Access the component via CDN: ``` -https://unpkg.com/deep-chat@1.4.10/dist/deepChat.bundle.js +https://unpkg.com/deep-chat@1.4.11/dist/deepChat.bundle.js ``` diff --git a/website/docs/docs/messages/HTML.mdx b/website/docs/docs/messages/HTML.mdx index a7f5e2837..a9c8a7fc0 100644 --- a/website/docs/docs/messages/HTML.mdx +++ b/website/docs/docs/messages/HTML.mdx @@ -76,8 +76,8 @@ import Tabs from '@theme/Tabs'; Because Deep Chat is a [shadow element](https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_shadow_DOM) and your html is rendered inside it - the resulting elements will not be able to access the CSS and JavaScript in your app. To help with this, you can use this object to declare reusable styling and bind your app's functions to the elements via their class names.
-`events` is an object that accepts properties with keys that use any of the ones in [GlobalEventHandlersEventMap](https://microsoft.github.io/PowerBI-JavaScript/interfaces/_node_modules_typedoc_node_modules_typescript_lib_lib_dom_d_.globaleventhandlerseventmap.html) (same as the string -that you would use for _addEventListener(HERE)_, e.g. _"mousedown"_) and accepts a function as the value.
+`events` is an object that accepts properties with keys from [GlobalEventHandlersEventMap](https://microsoft.github.io/PowerBI-JavaScript/interfaces/_node_modules_typedoc_node_modules_typescript_lib_lib_dom_d_.globaleventhandlerseventmap.html) (same as the string +used for _addEventListener(HERE)_, e.g. _"mousedown"_) or any custom event name and accepts a function as the value.
`styles` defines the styles applied to the element for different mouse states.
#### Example diff --git a/website/package-lock.json b/website/package-lock.json index 2b7aa4490..8fc99695a 100644 --- a/website/package-lock.json +++ b/website/package-lock.json @@ -16,7 +16,7 @@ "@mdx-js/react": "^1.6.22", "active-table-react": "latest", "clsx": "^1.2.1", - "deep-chat-react": "1.4.10", + "deep-chat-react": "1.4.11", "deep-chat-web-llm": "^0.0.23", "highlight.js": "^11.7.0", "microsoft-cognitiveservices-speech-sdk": "^1.30.1", @@ -5774,9 +5774,9 @@ } }, "node_modules/deep-chat": { - "version": "1.4.10", - "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.10.tgz", - "integrity": "sha512-rxtyDDLIEmvutQMtuPz1J5eufKQBiW3ThsQuq1raWmTxW5EeHYTgsdjcgYY8Wb3WIRTX/J984vkmvJ4YdprL1Q==", + "version": "1.4.11", + "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.11.tgz", + "integrity": "sha512-+I79+ZOMXpg3xAGKoaVFkuxF0+HJZmXLBz1hONTIIrALR08r7tnbw0g3rhS9T7dUeMzA84BbxV8HMco9pNQWjw==", "dependencies": { "@microsoft/fetch-event-source": "^2.0.1", "remarkable": "^2.0.1", @@ -5784,12 +5784,12 @@ } }, "node_modules/deep-chat-react": { - "version": "1.4.10", - "resolved": "https://registry.npmjs.org/deep-chat-react/-/deep-chat-react-1.4.10.tgz", - "integrity": "sha512-OqaEc1FycqGrM2IuTtyRDMzSl9mRqGCeGHA6PMukLP5B3VrnkzuRJ0F6genkPk6tsGZo+oNBVi+QPUBFAIqD8Q==", + "version": "1.4.11", + "resolved": "https://registry.npmjs.org/deep-chat-react/-/deep-chat-react-1.4.11.tgz", + "integrity": "sha512-wrKZUldeJ/FrD9dDch12xpse8P4HyV3noMASySDi6pKMs2uCru5aekCD3AUWvnkIicOD8HCYdoGOr4CfAuHdDQ==", "dependencies": { "@lit-labs/react": "^1.1.1", - "deep-chat": "1.4.10" + "deep-chat": "1.4.11" }, "peerDependencies": { "react": ">=16.8.0 || >=17.0.0 || >=18.0.0" @@ -18112,9 +18112,9 @@ } }, "deep-chat": { - "version": "1.4.10", - "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.10.tgz", - "integrity": "sha512-rxtyDDLIEmvutQMtuPz1J5eufKQBiW3ThsQuq1raWmTxW5EeHYTgsdjcgYY8Wb3WIRTX/J984vkmvJ4YdprL1Q==", + "version": "1.4.11", + "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.11.tgz", + "integrity": "sha512-+I79+ZOMXpg3xAGKoaVFkuxF0+HJZmXLBz1hONTIIrALR08r7tnbw0g3rhS9T7dUeMzA84BbxV8HMco9pNQWjw==", "requires": { "@microsoft/fetch-event-source": "^2.0.1", "remarkable": "^2.0.1", @@ -18122,12 +18122,12 @@ } }, "deep-chat-react": { - "version": "1.4.10", - "resolved": "https://registry.npmjs.org/deep-chat-react/-/deep-chat-react-1.4.10.tgz", - "integrity": "sha512-OqaEc1FycqGrM2IuTtyRDMzSl9mRqGCeGHA6PMukLP5B3VrnkzuRJ0F6genkPk6tsGZo+oNBVi+QPUBFAIqD8Q==", + "version": "1.4.11", + "resolved": "https://registry.npmjs.org/deep-chat-react/-/deep-chat-react-1.4.11.tgz", + "integrity": "sha512-wrKZUldeJ/FrD9dDch12xpse8P4HyV3noMASySDi6pKMs2uCru5aekCD3AUWvnkIicOD8HCYdoGOr4CfAuHdDQ==", "requires": { "@lit-labs/react": "^1.1.1", - "deep-chat": "1.4.10" + "deep-chat": "1.4.11" } }, "deep-chat-web-llm": { diff --git a/website/package.json b/website/package.json index b6edb3904..9f0f33009 100644 --- a/website/package.json +++ b/website/package.json @@ -22,7 +22,7 @@ "@mdx-js/react": "^1.6.22", "active-table-react": "latest", "clsx": "^1.2.1", - "deep-chat-react": "1.4.10", + "deep-chat-react": "1.4.11", "deep-chat-web-llm": "^0.0.23", "highlight.js": "^11.7.0", "microsoft-cognitiveservices-speech-sdk": "^1.30.1", diff --git a/website/src/pages/playground/serviceModal/serviceModal.js b/website/src/pages/playground/serviceModal/serviceModal.js index e2979a29f..c23103708 100644 --- a/website/src/pages/playground/serviceModal/serviceModal.js +++ b/website/src/pages/playground/serviceModal/serviceModal.js @@ -425,6 +425,8 @@ const SERVICE_MODAL_FORM_CONFIG = { }, assistant: { assistant_id: 'string', + thread_id: 'string', + load_thread_history: ['true', 'false'], allowMixedFiles: ['true', 'false'], }, images: { @@ -623,6 +625,12 @@ const OPTIONAL_PARAM_TO_LINK = { websocket: 'https://deepchat.dev/docs/connect#Websocket', headers: 'https://deepchat.dev/docs/connect#Request', additionalBodyProps: 'https://deepchat.dev/docs/connect#Request', + allowImages: 'https://deepchat.dev/docs/files#images', + allowCamera: 'https://deepchat.dev/docs/files#camera', + allowGifs: 'https://deepchat.dev/docs/files#gifs', + allowAudio: 'https://deepchat.dev/docs/files#audio', + allowMicrophone: 'https://deepchat.dev/docs/files#microphone', + allowMixedFiles: 'https://deepchat.dev/docs/files/#mixedFiles', }, webModel: { model: @@ -638,7 +646,10 @@ const OPTIONAL_PARAM_TO_LINK = { top_p: 'https://platform.openai.com/docs/api-reference/chat/create#chat-create-top_p', }, assistant: { - assistant_id: 'https://platform.openai.com/docs/api-reference/assistants', + assistant_id: 'https://deepchat.dev/docs/directConnection/OpenAI#Assistant', + thread_id: 'https://deepchat.dev/docs/directConnection/OpenAI#Assistant', + load_thread_history: 'https://deepchat.dev/docs/directConnection/OpenAI#Assistant', + allowMixedFiles: 'https://deepchat.dev/docs/files/#mixedFiles', }, images: { model: 'https://platform.openai.com/docs/api-reference/images/create#images-create-model',