@wix/auto_sdk_legends_persona-chats 1.0.16 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +2 -2
- package/build/cjs/index.js +23 -10
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +67 -5
- package/build/cjs/index.typings.js +23 -10
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +62 -4
- package/build/cjs/meta.js +15 -6
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +22 -10
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +67 -5
- package/build/es/index.typings.mjs +22 -10
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +62 -4
- package/build/es/meta.mjs +14 -6
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.typings.d.ts +67 -5
- package/build/internal/cjs/meta.d.ts +62 -4
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.typings.d.mts +67 -5
- package/build/internal/es/meta.d.mts +62 -4
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
2
|
import { PersonaChat, CreatePersonaChatOptions, GetPersonaChatOptions, GetPersonaChatContextResponse, GetPersonaChatContextApplicationErrors, RetrievePersonaKnowledgeOptions, RetrievePersonaKnowledgeResponse, RetrievePersonaKnowledgeApplicationErrors, SendChatMessageOptions, SendChatMessageResponse, SendChatMessageStreamedOptions, RawHttpResponse, PersistConversationMessageOptions, PersistConversationMessageResponse, ListPersonaChatsOptions, ListPersonaChatsResponse, CreateInteractiveConversationOptions, CreateInteractiveConversationResponse, CreateVoiceConversationOptions, CreateVoiceConversationResponse, EndInteractiveConversationOptions, GetInteractiveConversationIdentifiers, GetInteractiveConversationOptions, GetInteractiveConversationResponse, GenerateChatCompletionsWithVendorOptions, GenerateChatCompletionsStreamWithVendorOptions, QueryChatMessagesOptions, QueryChatMessagesResponse, GetPermissionsOptions, GetPermissionsResponse, QueryPersonaChatsOptions, QueryPersonaChatsResponse, UpsertKnowledgeSnippetOptions, UpsertKnowledgeSnippetResponse, UpsertKnowledgeSnippetApplicationErrors, SwitchConfigOptions, DeletePersonaChatOptions, BulkDeletePersonaChatsByPersonaOptions, BulkDeletePersonaChatsByPersonaResponse, GenerateConversationOutcomeOptions, GenerateConversationOutcomeResponse } from './index.typings.js';
|
|
3
|
-
export { AccountInfo, ActionEvent, AdditionalMetadata, AssistantConfigurationOverrides, AvatarPolicy, AvatarPolicyOptionsOneOf, AvatarSourcePolicy, AvatarSourcePolicyWithLiterals, BulkDeletePersonaChatsByPersonaRequest, CallSupportArticle, CapturedContact, Category, CategoryWithLiterals, Channel, ChannelWithLiterals, ChatConfig, ChatContext, ChatFollowUpSuggestion, ChatFollowUpSuggestions, ChatMessage, ChatMessageAdded, ChatMessageAttachment, ChatMode, ChatModeWithLiterals, ClientToolDefinition, ConversationEnded, ConversationExpired, ConversationOutcome, ConversationType, ConversationTypeWithLiterals, CreateInteractiveConversationRequest, CreatePersonaChatRequest, CreatePersonaChatResponse, CreateVoiceConversationRequest, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeletePersonaChatRequest, DeletePersonaChatResponse, DomainEvent, DomainEventBodyOneOf, ElevenLabsData, Empty, EndInteractiveConversationRequest, EndInteractiveConversationResponse, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, FishAudioData, FollowUp, FollowUpWithLiterals, FunctionCall, FunctionCallResult, GenerateConversationOutcomeRequest, GeneratedSnippet, GetCallMemberRequest, GetCallMemberResponse, GetCallSupportKnowledgeRequest, GetCallSupportKnowledgeResponse, GetInteractiveConversationRequest, GetPermissionsRequest, GetPersonaChatContextRequest, GetPersonaChatRequest, GetPersonaChatResponse, HeadersEntry, HourOneData, HumeData, IdentificationData, IdentificationDataIdOneOf, InteractiveConversationStatus, InteractiveConversationStatusWithLiterals, Knowledge, KnowledgeChunkMetadata, KnowledgePageCard, KnowledgeRetrieved, KnowledgeSnippet, KnowledgeSnippetCreationTriggered, KnowledgeSourceOptionsOneOf, Limitation, ListPersonaChatsRequest, MessageEnvelope, MessageSource, MessageSourceWithLiterals, MessageStatus, MessageStatusWithLiterals, MessageType, MessageTypeWithLiterals, Metadata, Namespace, NamespaceWithLiterals, ParticipantType, ParticipantTypeWithLiterals, PathParametersEntry, PersistConversationMessageRequest, PersistedConversationMessage, PersistedConversationMonitoringData, PersonaDetails, QueryChatMessagesRequest, QueryParametersEntry, QueryPersonaChatsRequest, RawHttpRequest, RestoreInfo, RetrievePersonaKnowledgeInternalRequest, RetrievePersonaKnowledgeInternalResponse, RetrievePersonaKnowledgeRequest, Role, RoleWithLiterals, SendChatMessageRequest, SendChatMessageStreamedRequest, SetChatFollowUpSuggestionsRequest, SetChatFollowUpSuggestionsResponse, SortOrder, SortOrderWithLiterals, Sorting, SourceType, SourceTypeWithLiterals, State, StateWithLiterals, Subcategory, SubcategoryWithLiterals, SwitchConfigRequest, SwitchConfigResponse, SystemAvatarOptions, SystemVoiceOptions, TagList, Tags, TriggerKnowledgeSnippetCreationRequest, TriggerKnowledgeSnippetCreationResponse, Type, TypeWithLiterals, UpdateType, UpdateTypeWithLiterals, UpsertKnowledgeSnippetRequest, VendorType, VendorTypeWithLiterals, VoicePolicy, VoicePolicyOptionsOneOf, VoiceSourcePolicy, VoiceSourcePolicyWithLiterals, VoiceVendor, VoiceVendorData, VoiceVendorDataVendorDataOneOf, VoiceVendorWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
|
|
3
|
+
export { AccountInfo, ActionEvent, AdditionalMetadata, AssistantConfigurationOverrides, AvatarPolicy, AvatarPolicyOptionsOneOf, AvatarSourcePolicy, AvatarSourcePolicyWithLiterals, BulkDeletePersonaChatsByPersonaRequest, CallSupportArticle, CapturedContact, Category, CategoryWithLiterals, Channel, ChannelWithLiterals, ChatConfig, ChatContext, ChatFollowUpSuggestion, ChatFollowUpSuggestions, ChatMessage, ChatMessageAdded, ChatMessageAttachment, ChatMode, ChatModeWithLiterals, Citation, ClientToolDefinition, ConversationEnded, ConversationExpired, ConversationOutcome, ConversationType, ConversationTypeWithLiterals, CreateInteractiveConversationRequest, CreatePersonaChatRequest, CreatePersonaChatResponse, CreateVoiceConversationRequest, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeletePersonaChatRequest, DeletePersonaChatResponse, DomainEvent, DomainEventBodyOneOf, ElevenLabsData, Empty, EndInteractiveConversationRequest, EndInteractiveConversationResponse, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, FishAudioData, FollowUp, FollowUpWithLiterals, FunctionCall, FunctionCallResult, GenerateConversationOutcomeRequest, GeneratedSnippet, GetCallMemberRequest, GetCallMemberResponse, GetCallSupportKnowledgeRequest, GetCallSupportKnowledgeResponse, GetInteractiveConversationRequest, GetPermissionsRequest, GetPersonaChatContextRequest, GetPersonaChatRequest, GetPersonaChatResponse, HeadersEntry, HourOneData, HumeData, IdentificationData, IdentificationDataIdOneOf, InteractiveConversationStatus, InteractiveConversationStatusWithLiterals, Knowledge, KnowledgeChunkMetadata, KnowledgePageCard, KnowledgeRetrieved, KnowledgeSnippet, KnowledgeSnippetCreationTriggered, KnowledgeSourceOptionsOneOf, Limitation, LimitationType, LimitationTypeWithLiterals, ListPersonaChatsRequest, MessageEnvelope, MessageSource, MessageSourceWithLiterals, MessageStatus, MessageStatusWithLiterals, MessageType, MessageTypeWithLiterals, Metadata, Namespace, NamespaceWithLiterals, ParticipantType, ParticipantTypeWithLiterals, PathParametersEntry, PersistConversationMessageRequest, PersistedConversationMessage, PersistedConversationMonitoringData, PersonaDetails, QueryChatMessagesRequest, QueryParametersEntry, QueryPersonaChatsRequest, RawHttpRequest, RestoreInfo, RetrievePersonaKnowledgeInternalRequest, RetrievePersonaKnowledgeInternalResponse, RetrievePersonaKnowledgeRequest, Role, RoleWithLiterals, SendChatMessageRequest, SendChatMessageStreamedRequest, SetChatFollowUpSuggestionsRequest, SetChatFollowUpSuggestionsResponse, SortOrder, SortOrderWithLiterals, Sorting, SourceType, SourceTypeWithLiterals, State, StateWithLiterals, Subcategory, SubcategoryWithLiterals, SwitchConfigRequest, SwitchConfigResponse, SystemAvatarOptions, SystemVoiceOptions, TagList, Tags, TriggerKnowledgeSnippetCreationRequest, TriggerKnowledgeSnippetCreationResponse, Type, TypeWithLiterals, UpdateType, UpdateTypeWithLiterals, UpsertKnowledgeSnippetRequest, VendorType, VendorTypeWithLiterals, VoicePolicy, VoicePolicyOptionsOneOf, VoiceSourcePolicy, VoiceSourcePolicyWithLiterals, VoiceVendor, VoiceVendorData, VoiceVendorDataVendorDataOneOf, VoiceVendorWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function createPersonaChat$1(httpClient: HttpClient): CreatePersonaChatSignature;
|
|
6
6
|
interface CreatePersonaChatSignature {
|
|
@@ -61,7 +61,7 @@ interface PersistConversationMessageSignature {
|
|
|
61
61
|
* Persist a conversation message without running LLM orchestration.
|
|
62
62
|
* @param - Chat ID
|
|
63
63
|
*/
|
|
64
|
-
(chatId: string, options?: NonNullablePaths<PersistConversationMessageOptions, `message`, 0>): Promise<NonNullablePaths<PersistConversationMessageResponse, `message.chatId` | `message.role` | `message.attachments` | `message.attachments.${number}.fileName` | `message.attachments.${number}.mimeType` | `message.conversationType` | `deduplicated`, 3>>;
|
|
64
|
+
(chatId: string, options?: NonNullablePaths<PersistConversationMessageOptions, `message`, 0>): Promise<NonNullablePaths<PersistConversationMessageResponse, `message.chatId` | `message.role` | `message.attachments` | `message.attachments.${number}.fileName` | `message.attachments.${number}.mimeType` | `message.conversationType` | `message.citations` | `message.citations.${number}.number` | `message.citations.${number}.type` | `message.citations.${number}.knowledgeItemId` | `deduplicated`, 3>>;
|
|
65
65
|
}
|
|
66
66
|
declare function listPersonaChats$1(httpClient: HttpClient): ListPersonaChatsSignature;
|
|
67
67
|
interface ListPersonaChatsSignature {
|
package/build/cjs/index.js
CHANGED
|
@@ -27,6 +27,7 @@ __export(index_exports, {
|
|
|
27
27
|
ConversationType: () => ConversationType,
|
|
28
28
|
FollowUp: () => FollowUp,
|
|
29
29
|
InteractiveConversationStatus: () => InteractiveConversationStatus,
|
|
30
|
+
LimitationType: () => LimitationType,
|
|
30
31
|
MessageSource: () => MessageSource,
|
|
31
32
|
MessageStatus: () => MessageStatus,
|
|
32
33
|
MessageType: () => MessageType,
|
|
@@ -884,6 +885,13 @@ var ConversationType = /* @__PURE__ */ ((ConversationType2) => {
|
|
|
884
885
|
ConversationType2["VIDEO"] = "VIDEO";
|
|
885
886
|
return ConversationType2;
|
|
886
887
|
})(ConversationType || {});
|
|
888
|
+
var Type = /* @__PURE__ */ ((Type2) => {
|
|
889
|
+
Type2["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
|
|
890
|
+
Type2["SNIPPET"] = "SNIPPET";
|
|
891
|
+
Type2["FILE"] = "FILE";
|
|
892
|
+
Type2["LINK"] = "LINK";
|
|
893
|
+
return Type2;
|
|
894
|
+
})(Type || {});
|
|
887
895
|
var ChatMode = /* @__PURE__ */ ((ChatMode2) => {
|
|
888
896
|
ChatMode2["PREVIEW"] = "PREVIEW";
|
|
889
897
|
ChatMode2["PUBLISHED"] = "PUBLISHED";
|
|
@@ -961,12 +969,12 @@ var MessageSource = /* @__PURE__ */ ((MessageSource2) => {
|
|
|
961
969
|
MessageSource2["SIMPLE_AVATAR_AGENT"] = "SIMPLE_AVATAR_AGENT";
|
|
962
970
|
return MessageSource2;
|
|
963
971
|
})(MessageSource || {});
|
|
964
|
-
var
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
return
|
|
969
|
-
})(
|
|
972
|
+
var LimitationType = /* @__PURE__ */ ((LimitationType2) => {
|
|
973
|
+
LimitationType2["MINUTES"] = "MINUTES";
|
|
974
|
+
LimitationType2["SECONDS"] = "SECONDS";
|
|
975
|
+
LimitationType2["TOKENS"] = "TOKENS";
|
|
976
|
+
return LimitationType2;
|
|
977
|
+
})(LimitationType || {});
|
|
970
978
|
var VoiceVendor = /* @__PURE__ */ ((VoiceVendor2) => {
|
|
971
979
|
VoiceVendor2["ELEVEN_LABS"] = "ELEVEN_LABS";
|
|
972
980
|
VoiceVendor2["HOUR_ONE"] = "HOUR_ONE";
|
|
@@ -1178,7 +1186,8 @@ async function sendChatMessage2(chatId, options) {
|
|
|
1178
1186
|
metadata: options?.metadata,
|
|
1179
1187
|
clientTools: options?.clientTools,
|
|
1180
1188
|
namespaceV2: options?.namespaceV2,
|
|
1181
|
-
conversationLanguage: options?.conversationLanguage
|
|
1189
|
+
conversationLanguage: options?.conversationLanguage,
|
|
1190
|
+
includeCitations: options?.includeCitations
|
|
1182
1191
|
});
|
|
1183
1192
|
const reqOpts = sendChatMessage(payload);
|
|
1184
1193
|
sideEffects?.onSiteCall?.();
|
|
@@ -1202,7 +1211,8 @@ async function sendChatMessage2(chatId, options) {
|
|
|
1202
1211
|
metadata: "$[1].metadata",
|
|
1203
1212
|
clientTools: "$[1].clientTools",
|
|
1204
1213
|
namespaceV2: "$[1].namespaceV2",
|
|
1205
|
-
conversationLanguage: "$[1].conversationLanguage"
|
|
1214
|
+
conversationLanguage: "$[1].conversationLanguage",
|
|
1215
|
+
includeCitations: "$[1].includeCitations"
|
|
1206
1216
|
},
|
|
1207
1217
|
singleArgumentUnchanged: false
|
|
1208
1218
|
},
|
|
@@ -1222,7 +1232,8 @@ async function sendChatMessageStreamed2(options) {
|
|
|
1222
1232
|
attachments: options?.attachments,
|
|
1223
1233
|
metadata: options?.metadata,
|
|
1224
1234
|
namespaceV2: options?.namespaceV2,
|
|
1225
|
-
conversationLanguage: options?.conversationLanguage
|
|
1235
|
+
conversationLanguage: options?.conversationLanguage,
|
|
1236
|
+
includeCitations: options?.includeCitations
|
|
1226
1237
|
});
|
|
1227
1238
|
const reqOpts = sendChatMessageStreamed(payload);
|
|
1228
1239
|
sideEffects?.onSiteCall?.();
|
|
@@ -1243,7 +1254,8 @@ async function sendChatMessageStreamed2(options) {
|
|
|
1243
1254
|
attachments: "$[0].attachments",
|
|
1244
1255
|
metadata: "$[0].metadata",
|
|
1245
1256
|
namespaceV2: "$[0].namespaceV2",
|
|
1246
|
-
conversationLanguage: "$[0].conversationLanguage"
|
|
1257
|
+
conversationLanguage: "$[0].conversationLanguage",
|
|
1258
|
+
includeCitations: "$[0].includeCitations"
|
|
1247
1259
|
},
|
|
1248
1260
|
singleArgumentUnchanged: false
|
|
1249
1261
|
},
|
|
@@ -2026,6 +2038,7 @@ var generateConversationOutcome4 = /* @__PURE__ */ (0, import_rest_modules3.crea
|
|
|
2026
2038
|
ConversationType,
|
|
2027
2039
|
FollowUp,
|
|
2028
2040
|
InteractiveConversationStatus,
|
|
2041
|
+
LimitationType,
|
|
2029
2042
|
MessageSource,
|
|
2030
2043
|
MessageStatus,
|
|
2031
2044
|
MessageType,
|