@wix/auto_sdk_legends_persona-chats 1.0.5 → 1.0.7

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
- 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 } from './index.typings.js';
3
- export { AccountInfo, ActionEvent, AdditionalMetadata, AssistantConfigurationOverrides, AvatarPolicy, AvatarPolicyOptionsOneOf, AvatarSourcePolicy, AvatarSourcePolicyWithLiterals, BulkDeletePersonaChatsByPersonaRequest, Category, CategoryWithLiterals, ChatConfig, ChatContext, ChatMessage, ChatMessageAdded, ChatMessageAttachment, ChatMode, ChatModeWithLiterals, ClientToolDefinition, ConversationType, ConversationTypeWithLiterals, CreateInteractiveConversationRequest, CreatePersonaChatRequest, CreatePersonaChatResponse, CreateVoiceConversationRequest, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeletePersonaChatRequest, DeletePersonaChatResponse, DomainEvent, DomainEventBodyOneOf, ElevenLabsData, Empty, EndInteractiveConversationRequest, EndInteractiveConversationResponse, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, FishAudioData, FunctionCall, FunctionCallResult, GeneratedSnippet, GetCallMemberRequest, GetCallMemberResponse, GetInteractiveConversationRequest, GetPermissionsRequest, GetPersonaChatContextRequest, GetPersonaChatRequest, GetPersonaChatResponse, HeadersEntry, HourOneData, HumeData, IdentificationData, IdentificationDataIdOneOf, InteractiveConversationStatus, InteractiveConversationStatusWithLiterals, Knowledge, KnowledgeChunkMetadata, 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, 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';
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, CapturedContact, Category, CategoryWithLiterals, Channel, ChannelWithLiterals, ChatConfig, ChatContext, ChatMessage, ChatMessageAdded, ChatMessageAttachment, ChatMode, ChatModeWithLiterals, ClientToolDefinition, ConversationEnded, ConversationOutcome, ConversationType, ConversationTypeWithLiterals, CreateInteractiveConversationRequest, CreatePersonaChatRequest, CreatePersonaChatResponse, CreateVoiceConversationRequest, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeletePersonaChatRequest, DeletePersonaChatResponse, DomainEvent, DomainEventBodyOneOf, ElevenLabsData, Empty, EndInteractiveConversationRequest, EndInteractiveConversationResponse, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, FishAudioData, FunctionCall, FunctionCallResult, GenerateConversationOutcomeRequest, GeneratedSnippet, GetCallMemberRequest, GetCallMemberResponse, GetInteractiveConversationRequest, GetPermissionsRequest, GetPersonaChatContextRequest, GetPersonaChatRequest, GetPersonaChatResponse, HeadersEntry, HourOneData, HumeData, IdentificationData, IdentificationDataIdOneOf, InteractiveConversationStatus, InteractiveConversationStatusWithLiterals, Knowledge, KnowledgeChunkMetadata, 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, 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 {
@@ -171,6 +171,17 @@ interface BulkDeletePersonaChatsByPersonaSignature {
171
171
  */
172
172
  (personaId: string, options?: BulkDeletePersonaChatsByPersonaOptions): Promise<NonNullablePaths<BulkDeletePersonaChatsByPersonaResponse, `deletedCount`, 0>>;
173
173
  }
174
+ declare function generateConversationOutcome$1(httpClient: HttpClient): GenerateConversationOutcomeSignature;
175
+ interface GenerateConversationOutcomeSignature {
176
+ /**
177
+ * Summarizes one finished conversation, stores its outcome and emits the PersonaChat ConversationEnded action event.
178
+ * Idempotent: a conversation whose outcome is already stored and announced returns it and emits nothing.
179
+ * Called by conversation-activity-service when a conversation ends; Legends' own service identity only.
180
+ * @param - The chat the conversation took place in.
181
+ * @param - The conversation's first message. Its ID becomes the conversation ID.
182
+ */
183
+ (chatId: string, firstMessageId: string, options?: NonNullablePaths<GenerateConversationOutcomeOptions, `lastMessageId` | `personaOwnerId`, 0>): Promise<NonNullablePaths<GenerateConversationOutcomeResponse, `conversationOutcome.chatId` | `conversationOutcome.personaId` | `conversationOutcome.channel` | `conversationOutcome.unansweredQuestions` | `deduplicated`, 1>>;
184
+ }
174
185
 
175
186
  declare const createPersonaChat: MaybeContext<BuildRESTFunction<typeof createPersonaChat$1> & typeof createPersonaChat$1>;
176
187
  declare const getPersonaChat: MaybeContext<BuildRESTFunction<typeof getPersonaChat$1> & typeof getPersonaChat$1>;
@@ -193,5 +204,6 @@ declare const upsertKnowledgeSnippet: MaybeContext<BuildRESTFunction<typeof upse
193
204
  declare const switchConfig: MaybeContext<BuildRESTFunction<typeof switchConfig$1> & typeof switchConfig$1>;
194
205
  declare const deletePersonaChat: MaybeContext<BuildRESTFunction<typeof deletePersonaChat$1> & typeof deletePersonaChat$1>;
195
206
  declare const bulkDeletePersonaChatsByPersona: MaybeContext<BuildRESTFunction<typeof bulkDeletePersonaChatsByPersona$1> & typeof bulkDeletePersonaChatsByPersona$1>;
207
+ declare const generateConversationOutcome: MaybeContext<BuildRESTFunction<typeof generateConversationOutcome$1> & typeof generateConversationOutcome$1>;
196
208
 
197
- export { BulkDeletePersonaChatsByPersonaOptions, BulkDeletePersonaChatsByPersonaResponse, CreateInteractiveConversationOptions, CreateInteractiveConversationResponse, CreatePersonaChatOptions, CreateVoiceConversationOptions, CreateVoiceConversationResponse, DeletePersonaChatOptions, EndInteractiveConversationOptions, GenerateChatCompletionsStreamWithVendorOptions, GenerateChatCompletionsWithVendorOptions, GetInteractiveConversationIdentifiers, GetInteractiveConversationOptions, GetInteractiveConversationResponse, GetPermissionsOptions, GetPermissionsResponse, GetPersonaChatContextApplicationErrors, GetPersonaChatContextResponse, GetPersonaChatOptions, ListPersonaChatsOptions, ListPersonaChatsResponse, PersistConversationMessageOptions, PersistConversationMessageResponse, PersonaChat, QueryChatMessagesOptions, QueryChatMessagesResponse, QueryPersonaChatsOptions, QueryPersonaChatsResponse, RawHttpResponse, RetrievePersonaKnowledgeApplicationErrors, RetrievePersonaKnowledgeOptions, RetrievePersonaKnowledgeResponse, SendChatMessageOptions, SendChatMessageResponse, SendChatMessageStreamedOptions, SwitchConfigOptions, UpsertKnowledgeSnippetApplicationErrors, UpsertKnowledgeSnippetOptions, UpsertKnowledgeSnippetResponse, bulkDeletePersonaChatsByPersona, createInteractiveConversation, createPersonaChat, createVoiceConversation, deletePersonaChat, endInteractiveConversation, generateChatCompletionsStreamWithVendor, generateChatCompletionsWithVendor, getInteractiveConversation, getPermissions, getPersonaChat, getPersonaChatContext, listPersonaChats, persistConversationMessage, queryChatMessages, queryPersonaChats, retrievePersonaKnowledge, sendChatMessage, sendChatMessageStreamed, switchConfig, upsertKnowledgeSnippet };
209
+ export { BulkDeletePersonaChatsByPersonaOptions, BulkDeletePersonaChatsByPersonaResponse, CreateInteractiveConversationOptions, CreateInteractiveConversationResponse, CreatePersonaChatOptions, CreateVoiceConversationOptions, CreateVoiceConversationResponse, DeletePersonaChatOptions, EndInteractiveConversationOptions, GenerateChatCompletionsStreamWithVendorOptions, GenerateChatCompletionsWithVendorOptions, GenerateConversationOutcomeOptions, GenerateConversationOutcomeResponse, GetInteractiveConversationIdentifiers, GetInteractiveConversationOptions, GetInteractiveConversationResponse, GetPermissionsOptions, GetPermissionsResponse, GetPersonaChatContextApplicationErrors, GetPersonaChatContextResponse, GetPersonaChatOptions, ListPersonaChatsOptions, ListPersonaChatsResponse, PersistConversationMessageOptions, PersistConversationMessageResponse, PersonaChat, QueryChatMessagesOptions, QueryChatMessagesResponse, QueryPersonaChatsOptions, QueryPersonaChatsResponse, RawHttpResponse, RetrievePersonaKnowledgeApplicationErrors, RetrievePersonaKnowledgeOptions, RetrievePersonaKnowledgeResponse, SendChatMessageOptions, SendChatMessageResponse, SendChatMessageStreamedOptions, SwitchConfigOptions, UpsertKnowledgeSnippetApplicationErrors, UpsertKnowledgeSnippetOptions, UpsertKnowledgeSnippetResponse, bulkDeletePersonaChatsByPersona, createInteractiveConversation, createPersonaChat, createVoiceConversation, deletePersonaChat, endInteractiveConversation, generateChatCompletionsStreamWithVendor, generateChatCompletionsWithVendor, generateConversationOutcome, getInteractiveConversation, getPermissions, getPersonaChat, getPersonaChatContext, listPersonaChats, persistConversationMessage, queryChatMessages, queryPersonaChats, retrievePersonaKnowledge, sendChatMessage, sendChatMessageStreamed, switchConfig, upsertKnowledgeSnippet };
@@ -22,6 +22,7 @@ var index_exports = {};
22
22
  __export(index_exports, {
23
23
  AvatarSourcePolicy: () => AvatarSourcePolicy,
24
24
  Category: () => Category,
25
+ Channel: () => Channel,
25
26
  ChatMode: () => ChatMode,
26
27
  ConversationType: () => ConversationType,
27
28
  InteractiveConversationStatus: () => InteractiveConversationStatus,
@@ -49,6 +50,7 @@ __export(index_exports, {
49
50
  endInteractiveConversation: () => endInteractiveConversation4,
50
51
  generateChatCompletionsStreamWithVendor: () => generateChatCompletionsStreamWithVendor4,
51
52
  generateChatCompletionsWithVendor: () => generateChatCompletionsWithVendor4,
53
+ generateConversationOutcome: () => generateConversationOutcome4,
52
54
  getInteractiveConversation: () => getInteractiveConversation4,
53
55
  getPermissions: () => getPermissions4,
54
56
  getPersonaChat: () => getPersonaChat4,
@@ -107,6 +109,12 @@ var TRANSFORM_PATHS_9 = [
107
109
  { path: "updatedSnippets.createdDate" },
108
110
  { path: "updatedSnippets.updatedDate" }
109
111
  ];
112
+ var TRANSFORM_PATHS_10 = [
113
+ { path: "conversationOutcome.createdDate" },
114
+ { path: "conversationOutcome.updatedDate" },
115
+ { path: "conversationOutcome.startedDate" },
116
+ { path: "conversationOutcome.endedDate" }
117
+ ];
110
118
  function resolveWixLegendsChatV1PersonaChatServiceUrl(opts) {
111
119
  const domainToMappings = {
112
120
  "bo._base_domain_": [
@@ -816,6 +824,33 @@ function bulkDeletePersonaChatsByPersona(payload) {
816
824
  }
817
825
  return __bulkDeletePersonaChatsByPersona;
818
826
  }
827
+ function generateConversationOutcome(payload) {
828
+ function __generateConversationOutcome({ host }) {
829
+ const metadata = {
830
+ entityFqdn: "wix.legends.persona.v1.chat",
831
+ method: "POST",
832
+ methodFqn: "wix.legends.chat.v1.PersonaChatService.GenerateConversationOutcome",
833
+ packageName: PACKAGE_NAME,
834
+ migrationOptions: {
835
+ optInTransformResponse: true
836
+ },
837
+ url: resolveWixLegendsChatV1PersonaChatServiceUrl({
838
+ protoPath: "/v1/chats/{chatId}/generate-conversation-outcome",
839
+ data: payload,
840
+ host
841
+ }),
842
+ data: payload,
843
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
844
+ {
845
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
846
+ paths: TRANSFORM_PATHS_10
847
+ }
848
+ ])
849
+ };
850
+ return metadata;
851
+ }
852
+ return __generateConversationOutcome;
853
+ }
819
854
 
820
855
  // src/legends-persona-v1-chat-persona-chats.universal.ts
821
856
  var Namespace = /* @__PURE__ */ ((Namespace2) => {
@@ -880,6 +915,12 @@ var SourceType = /* @__PURE__ */ ((SourceType2) => {
880
915
  SourceType2["KNOWLEDGE_LINK"] = "KNOWLEDGE_LINK";
881
916
  return SourceType2;
882
917
  })(SourceType || {});
918
+ var Channel = /* @__PURE__ */ ((Channel2) => {
919
+ Channel2["TEXT"] = "TEXT";
920
+ Channel2["VOICE"] = "VOICE";
921
+ Channel2["VIDEO"] = "VIDEO";
922
+ return Channel2;
923
+ })(Channel || {});
883
924
  var VoiceSourcePolicy = /* @__PURE__ */ ((VoiceSourcePolicy2) => {
884
925
  VoiceSourcePolicy2["PERSONA_VOICE"] = "PERSONA_VOICE";
885
926
  VoiceSourcePolicy2["SYSTEM_VOICE"] = "SYSTEM_VOICE";
@@ -1122,7 +1163,8 @@ async function sendChatMessage2(chatId, options) {
1122
1163
  functionCallResults: options?.functionCallResults,
1123
1164
  metadata: options?.metadata,
1124
1165
  clientTools: options?.clientTools,
1125
- namespaceV2: options?.namespaceV2
1166
+ namespaceV2: options?.namespaceV2,
1167
+ conversationLanguage: options?.conversationLanguage
1126
1168
  });
1127
1169
  const reqOpts = sendChatMessage(payload);
1128
1170
  sideEffects?.onSiteCall?.();
@@ -1145,7 +1187,8 @@ async function sendChatMessage2(chatId, options) {
1145
1187
  functionCallResults: "$[1].functionCallResults",
1146
1188
  metadata: "$[1].metadata",
1147
1189
  clientTools: "$[1].clientTools",
1148
- namespaceV2: "$[1].namespaceV2"
1190
+ namespaceV2: "$[1].namespaceV2",
1191
+ conversationLanguage: "$[1].conversationLanguage"
1149
1192
  },
1150
1193
  singleArgumentUnchanged: false
1151
1194
  },
@@ -1164,7 +1207,8 @@ async function sendChatMessageStreamed2(options) {
1164
1207
  chatConfig: options?.chatConfig,
1165
1208
  attachments: options?.attachments,
1166
1209
  metadata: options?.metadata,
1167
- namespaceV2: options?.namespaceV2
1210
+ namespaceV2: options?.namespaceV2,
1211
+ conversationLanguage: options?.conversationLanguage
1168
1212
  });
1169
1213
  const reqOpts = sendChatMessageStreamed(payload);
1170
1214
  sideEffects?.onSiteCall?.();
@@ -1184,7 +1228,8 @@ async function sendChatMessageStreamed2(options) {
1184
1228
  chatConfig: "$[0].chatConfig",
1185
1229
  attachments: "$[0].attachments",
1186
1230
  metadata: "$[0].metadata",
1187
- namespaceV2: "$[0].namespaceV2"
1231
+ namespaceV2: "$[0].namespaceV2",
1232
+ conversationLanguage: "$[0].conversationLanguage"
1188
1233
  },
1189
1234
  singleArgumentUnchanged: false
1190
1235
  },
@@ -1718,6 +1763,43 @@ async function bulkDeletePersonaChatsByPersona2(personaId, options) {
1718
1763
  throw transformedError;
1719
1764
  }
1720
1765
  }
1766
+ async function generateConversationOutcome2(chatId, firstMessageId, options) {
1767
+ const { httpClient, sideEffects } = arguments[3];
1768
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1769
+ chatId,
1770
+ firstMessageId,
1771
+ lastMessageId: options?.lastMessageId,
1772
+ personaOwnerId: options?.personaOwnerId,
1773
+ channel: options?.channel,
1774
+ interactiveConversationId: options?.interactiveConversationId
1775
+ });
1776
+ const reqOpts = generateConversationOutcome(payload);
1777
+ sideEffects?.onSiteCall?.();
1778
+ try {
1779
+ const result = await httpClient.request(reqOpts);
1780
+ sideEffects?.onSuccess?.(result);
1781
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1782
+ } catch (err) {
1783
+ const transformedError = (0, import_transform_error.transformError)(
1784
+ err,
1785
+ {
1786
+ spreadPathsToArguments: {},
1787
+ explicitPathsToArguments: {
1788
+ chatId: "$[0]",
1789
+ firstMessageId: "$[1]",
1790
+ lastMessageId: "$[2].lastMessageId",
1791
+ personaOwnerId: "$[2].personaOwnerId",
1792
+ channel: "$[2].channel",
1793
+ interactiveConversationId: "$[2].interactiveConversationId"
1794
+ },
1795
+ singleArgumentUnchanged: false
1796
+ },
1797
+ ["chatId", "firstMessageId", "options"]
1798
+ );
1799
+ sideEffects?.onError?.(err);
1800
+ throw transformedError;
1801
+ }
1802
+ }
1721
1803
 
1722
1804
  // src/legends-persona-v1-chat-persona-chats.public.ts
1723
1805
  function createPersonaChat3(httpClient) {
@@ -1883,6 +1965,15 @@ function bulkDeletePersonaChatsByPersona3(httpClient) {
1883
1965
  { httpClient }
1884
1966
  );
1885
1967
  }
1968
+ function generateConversationOutcome3(httpClient) {
1969
+ return (chatId, firstMessageId, options) => generateConversationOutcome2(
1970
+ chatId,
1971
+ firstMessageId,
1972
+ options,
1973
+ // @ts-ignore
1974
+ { httpClient }
1975
+ );
1976
+ }
1886
1977
 
1887
1978
  // src/legends-persona-v1-chat-persona-chats.context.ts
1888
1979
  var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
@@ -1909,10 +2000,12 @@ var upsertKnowledgeSnippet4 = /* @__PURE__ */ (0, import_rest_modules3.createRES
1909
2000
  var switchConfig4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(switchConfig3);
1910
2001
  var deletePersonaChat4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deletePersonaChat3);
1911
2002
  var bulkDeletePersonaChatsByPersona4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkDeletePersonaChatsByPersona3);
2003
+ var generateConversationOutcome4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(generateConversationOutcome3);
1912
2004
  // Annotate the CommonJS export names for ESM import in node:
1913
2005
  0 && (module.exports = {
1914
2006
  AvatarSourcePolicy,
1915
2007
  Category,
2008
+ Channel,
1916
2009
  ChatMode,
1917
2010
  ConversationType,
1918
2011
  InteractiveConversationStatus,
@@ -1940,6 +2033,7 @@ var bulkDeletePersonaChatsByPersona4 = /* @__PURE__ */ (0, import_rest_modules3.
1940
2033
  endInteractiveConversation,
1941
2034
  generateChatCompletionsStreamWithVendor,
1942
2035
  generateChatCompletionsWithVendor,
2036
+ generateConversationOutcome,
1943
2037
  getInteractiveConversation,
1944
2038
  getPermissions,
1945
2039
  getPersonaChat,