@wix/auto_sdk_legends_persona-chats 1.0.29 → 1.0.31

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.
@@ -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, UploadVisitorChatAttachmentOptions, UploadVisitorChatAttachmentResponse, GetVisitorChatAttachmentIdentifiers, GetVisitorChatAttachmentResponse, 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, CallSettings, 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, GetVisitorChatAttachmentRequest, HeadersEntry, HourOneData, HumeData, IdentificationData, IdentificationDataIdOneOf, InteractiveConversationStatus, InteractiveConversationStatusWithLiterals, Knowledge, KnowledgeChunkMetadata, KnowledgePageCard, KnowledgeRetrievalCompleted, KnowledgeRetrieved, KnowledgeSnippet, KnowledgeSnippetCreationTriggered, KnowledgeSourceOptionsOneOf, Limitation, LimitationType, LimitationTypeWithLiterals, ListPersonaChatsRequest, MessageEnvelope, MessageSource, MessageSourceWithLiterals, MessageStatus, MessageStatusWithLiterals, MessageType, MessageTypeWithLiterals, Metadata, Mode, ModeWithLiterals, Namespace, NamespaceWithLiterals, ParticipantType, ParticipantTypeWithLiterals, PathParametersEntry, PersistConversationMessageRequest, PersistedConversationMessage, PersistedConversationMonitoringData, PersonaDetails, QueryChatMessagesRequest, QueryParametersEntry, QueryPersonaChatsRequest, RawHttpRequest, ResolveCallAttachmentRequest, ResolveCallAttachmentResponse, RestoreInfo, RetrievePersonaKnowledgeInternalRequest, RetrievePersonaKnowledgeInternalResponse, RetrievePersonaKnowledgeRequest, Role, RoleWithLiterals, SendChatMessageRequest, SendChatMessageStreamedRequest, SetChatCallSettingsRequest, SetChatCallSettingsResponse, SetChatFollowUpSuggestionsRequest, SetChatFollowUpSuggestionsResponse, SortOrder, SortOrderWithLiterals, Sorting, SourceType, SourceTypeWithLiterals, State, StateWithLiterals, Subcategory, SubcategoryWithLiterals, SwitchConfigRequest, SwitchConfigResponse, SystemAvatarOptions, SystemVoiceOptions, TagList, Tags, TriggerKnowledgeSnippetCreationRequest, TriggerKnowledgeSnippetCreationResponse, Type, TypeWithLiterals, UpdateType, UpdateTypeWithLiterals, UploadVisitorChatAttachmentRequest, 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, CallSettings, 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, GetVisitorChatAttachmentRequest, GoalFailureCause, GoalFailureCauseWithLiterals, GoalOutcome, GoalOutcomeResult, GoalOutcomeResultWithLiterals, HeadersEntry, HourOneData, HumeData, IdentificationData, IdentificationDataIdOneOf, InteractiveConversationStatus, InteractiveConversationStatusWithLiterals, Knowledge, KnowledgeChunkMetadata, KnowledgePageCard, KnowledgeRetrievalCompleted, KnowledgeRetrieved, KnowledgeSnippet, KnowledgeSnippetCreationTriggered, KnowledgeSourceOptionsOneOf, Limitation, LimitationType, LimitationTypeWithLiterals, ListPersonaChatsRequest, MessageEnvelope, MessageSource, MessageSourceWithLiterals, MessageStatus, MessageStatusWithLiterals, MessageType, MessageTypeWithLiterals, Metadata, Mode, ModeWithLiterals, Namespace, NamespaceWithLiterals, ParticipantType, ParticipantTypeWithLiterals, PathParametersEntry, PersistConversationMessageRequest, PersistedConversationMessage, PersistedConversationMonitoringData, PersonaDetails, QueryChatMessagesRequest, QueryParametersEntry, QueryPersonaChatsRequest, RawHttpRequest, ResolveCallAttachmentRequest, ResolveCallAttachmentResponse, RestoreInfo, RetrievePersonaKnowledgeInternalRequest, RetrievePersonaKnowledgeInternalResponse, RetrievePersonaKnowledgeRequest, Role, RoleWithLiterals, SendChatMessageRequest, SendChatMessageStreamedRequest, SetChatCallSettingsRequest, SetChatCallSettingsResponse, SetChatFollowUpSuggestionsRequest, SetChatFollowUpSuggestionsResponse, SortOrder, SortOrderWithLiterals, Sorting, SourceType, SourceTypeWithLiterals, State, StateWithLiterals, Subcategory, SubcategoryWithLiterals, SwitchConfigRequest, SwitchConfigResponse, SystemAvatarOptions, SystemVoiceOptions, TagList, Tags, TriggerKnowledgeSnippetCreationRequest, TriggerKnowledgeSnippetCreationResponse, Type, TypeWithLiterals, UpdateType, UpdateTypeWithLiterals, UploadVisitorChatAttachmentRequest, 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 {
@@ -194,7 +194,7 @@ interface GenerateConversationOutcomeSignature {
194
194
  * @param - The chat the conversation took place in.
195
195
  * @param - The conversation's first message. Its ID becomes the conversation ID.
196
196
  */
197
- (chatId: string, firstMessageId: string, options?: NonNullablePaths<GenerateConversationOutcomeOptions, `lastMessageId` | `personaOwnerId`, 0>): Promise<NonNullablePaths<GenerateConversationOutcomeResponse, `conversationOutcome.chatId` | `conversationOutcome.personaId` | `conversationOutcome.channel` | `conversationOutcome.unansweredQuestions` | `conversationOutcome.followUp` | `deduplicated`, 1>>;
197
+ (chatId: string, firstMessageId: string, options?: NonNullablePaths<GenerateConversationOutcomeOptions, `lastMessageId` | `personaOwnerId`, 0>): Promise<NonNullablePaths<GenerateConversationOutcomeResponse, `conversationOutcome.chatId` | `conversationOutcome.personaId` | `conversationOutcome.channel` | `conversationOutcome.unansweredQuestions` | `conversationOutcome.followUp` | `conversationOutcome.goalOutcome.result` | `conversationOutcome.goalOutcome.failureCause` | `deduplicated`, 2>>;
198
198
  }
199
199
 
200
200
  declare const createPersonaChat: MaybeContext<BuildRESTFunction<typeof createPersonaChat$1> & typeof createPersonaChat$1>;
@@ -26,6 +26,8 @@ __export(index_exports, {
26
26
  ChatMode: () => ChatMode,
27
27
  ConversationType: () => ConversationType,
28
28
  FollowUp: () => FollowUp,
29
+ GoalFailureCause: () => GoalFailureCause,
30
+ GoalOutcomeResult: () => GoalOutcomeResult,
29
31
  InteractiveConversationStatus: () => InteractiveConversationStatus,
30
32
  LimitationType: () => LimitationType,
31
33
  MessageSource: () => MessageSource,
@@ -990,6 +992,24 @@ var FollowUp = /* @__PURE__ */ ((FollowUp2) => {
990
992
  FollowUp2["HUMAN"] = "HUMAN";
991
993
  return FollowUp2;
992
994
  })(FollowUp || {});
995
+ var GoalOutcomeResult = /* @__PURE__ */ ((GoalOutcomeResult2) => {
996
+ GoalOutcomeResult2["UNKNOWN_GOAL_OUTCOME_RESULT"] = "UNKNOWN_GOAL_OUTCOME_RESULT";
997
+ GoalOutcomeResult2["COMPLETED"] = "COMPLETED";
998
+ GoalOutcomeResult2["REAL_PATH"] = "REAL_PATH";
999
+ GoalOutcomeResult2["DIRECTIONS"] = "DIRECTIONS";
1000
+ GoalOutcomeResult2["FAKED"] = "FAKED";
1001
+ GoalOutcomeResult2["MISSED"] = "MISSED";
1002
+ GoalOutcomeResult2["NO_OPPORTUNITY"] = "NO_OPPORTUNITY";
1003
+ return GoalOutcomeResult2;
1004
+ })(GoalOutcomeResult || {});
1005
+ var GoalFailureCause = /* @__PURE__ */ ((GoalFailureCause2) => {
1006
+ GoalFailureCause2["UNKNOWN_GOAL_FAILURE_CAUSE"] = "UNKNOWN_GOAL_FAILURE_CAUSE";
1007
+ GoalFailureCause2["MOMENT_NOT_RECOGNISED"] = "MOMENT_NOT_RECOGNISED";
1008
+ GoalFailureCause2["NO_REAL_LINK_OR_TOOL"] = "NO_REAL_LINK_OR_TOOL";
1009
+ GoalFailureCause2["KNOWLEDGE_MISSING"] = "KNOWLEDGE_MISSING";
1010
+ GoalFailureCause2["OTHER"] = "OTHER";
1011
+ return GoalFailureCause2;
1012
+ })(GoalFailureCause || {});
993
1013
  var VoiceSourcePolicy = /* @__PURE__ */ ((VoiceSourcePolicy2) => {
994
1014
  VoiceSourcePolicy2["PERSONA_VOICE"] = "PERSONA_VOICE";
995
1015
  VoiceSourcePolicy2["SYSTEM_VOICE"] = "SYSTEM_VOICE";
@@ -1920,7 +1940,8 @@ async function generateConversationOutcome2(chatId, firstMessageId, options) {
1920
1940
  lastMessageId: options?.lastMessageId,
1921
1941
  personaOwnerId: options?.personaOwnerId,
1922
1942
  channel: options?.channel,
1923
- interactiveConversationId: options?.interactiveConversationId
1943
+ interactiveConversationId: options?.interactiveConversationId,
1944
+ goalText: options?.goalText
1924
1945
  });
1925
1946
  const reqOpts = generateConversationOutcome(payload);
1926
1947
  sideEffects?.onSiteCall?.();
@@ -1939,7 +1960,8 @@ async function generateConversationOutcome2(chatId, firstMessageId, options) {
1939
1960
  lastMessageId: "$[2].lastMessageId",
1940
1961
  personaOwnerId: "$[2].personaOwnerId",
1941
1962
  channel: "$[2].channel",
1942
- interactiveConversationId: "$[2].interactiveConversationId"
1963
+ interactiveConversationId: "$[2].interactiveConversationId",
1964
+ goalText: "$[2].goalText"
1943
1965
  },
1944
1966
  singleArgumentUnchanged: false
1945
1967
  },
@@ -2176,6 +2198,8 @@ var generateConversationOutcome4 = /* @__PURE__ */ (0, import_rest_modules3.crea
2176
2198
  ChatMode,
2177
2199
  ConversationType,
2178
2200
  FollowUp,
2201
+ GoalFailureCause,
2202
+ GoalOutcomeResult,
2179
2203
  InteractiveConversationStatus,
2180
2204
  LimitationType,
2181
2205
  MessageSource,