@wix/auto_sdk_forms_interactive-form-sessions 1.0.10 → 1.0.12

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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +11 -6
  2. package/build/cjs/index.js +36 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +78 -17
  5. package/build/cjs/index.typings.js +12 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +14 -14
  8. package/build/cjs/meta.js +12 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +11 -6
  11. package/build/es/index.mjs +35 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +78 -17
  14. package/build/es/index.typings.mjs +12 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +14 -14
  17. package/build/es/meta.mjs +12 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +11 -6
  20. package/build/internal/cjs/index.js +36 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +78 -17
  23. package/build/internal/cjs/index.typings.js +12 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +14 -14
  26. package/build/internal/cjs/meta.js +12 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +11 -6
  29. package/build/internal/es/index.mjs +35 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +78 -17
  32. package/build/internal/es/index.typings.mjs +12 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +14 -14
  35. package/build/internal/es/meta.mjs +12 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -51,7 +51,7 @@ interface ClientTime {
51
51
  */
52
52
  currentTime?: string | null;
53
53
  /**
54
- * Caller's timezone identifier for localizing date and time values in IANA timezone format (for example, `Europe/Vilnius`, `America/New_York`).
54
+ * Browser's timezone identifier for localizing date and time values in IANA timezone format (for example, `Europe/Vilnius`, `America/New_York`).
55
55
  * @minLength 1
56
56
  * @maxLength 50
57
57
  */
@@ -65,11 +65,11 @@ interface CreateInteractiveFormSessionResponse {
65
65
  }
66
66
  /**
67
67
  * AI assistant response chunk, containing different types of conversational content.
68
- * Chunks are delivered sequentially and must be processed in order to build the complete
68
+ * Chunks are delivered sequentially and must be processed in the order they are received to build the complete
69
69
  * conversation interface. Each chunk type requires different UI handling.
70
70
  */
71
71
  interface InteractiveFormSessionResponseChunk extends InteractiveFormSessionResponseChunkOfOneOf {
72
- /** Conversational text message for display to the user. */
72
+ /** Conversational text message for display. */
73
73
  textDetails?: TextDetails;
74
74
  /** Structured data extracted from user input and mapped to specific form fields. */
75
75
  textDataDetails?: TextDataDetails;
@@ -83,7 +83,7 @@ interface InteractiveFormSessionResponseChunk extends InteractiveFormSessionResp
83
83
  singleSelectInputDetails?: SingleSelectInputDetails;
84
84
  /** Error information when processing fails or validation errors occur. */
85
85
  errorDetails?: ErrorDetails;
86
- /** Form submission confirmation containing form submission ID and ecom checkout ID, if relevant. */
86
+ /** Form submission confirmation including a form submission ID. A checkout ID will also be returned here if the user selected products for purchase. */
87
87
  submissionDetails?: SubmissionDetails;
88
88
  /** Important contextual information that may influence data extraction or user decisions. */
89
89
  importantTextDetails?: ImportantTextDetails;
@@ -105,7 +105,7 @@ interface InteractiveFormSessionResponseChunk extends InteractiveFormSessionResp
105
105
  }
106
106
  /** @oneof */
107
107
  interface InteractiveFormSessionResponseChunkOfOneOf {
108
- /** Conversational text message for display to the user. */
108
+ /** Conversational text message for display. */
109
109
  textDetails?: TextDetails;
110
110
  /** Structured data extracted from user input and mapped to specific form fields. */
111
111
  textDataDetails?: TextDataDetails;
@@ -119,7 +119,7 @@ interface InteractiveFormSessionResponseChunkOfOneOf {
119
119
  singleSelectInputDetails?: SingleSelectInputDetails;
120
120
  /** Error information when processing fails or validation errors occur. */
121
121
  errorDetails?: ErrorDetails;
122
- /** Form submission confirmation containing form submission ID and ecom checkout ID, if relevant. */
122
+ /** Form submission confirmation including a form submission ID. A checkout ID will also be returned here if the user selected products for purchase. */
123
123
  submissionDetails?: SubmissionDetails;
124
124
  /** Important contextual information that may influence data extraction or user decisions. */
125
125
  importantTextDetails?: ImportantTextDetails;
@@ -149,7 +149,7 @@ declare enum ChunkType {
149
149
  SINGLE_SELECT_INPUT = "SINGLE_SELECT_INPUT",
150
150
  /** Error message when processing fails or validation errors occur. */
151
151
  ERROR = "ERROR",
152
- /** Form submission confirmation with submission ID and checkout ID, if relevant. */
152
+ /** Form submission confirmation including a submission ID. */
153
153
  SUBMISSION = "SUBMISSION",
154
154
  /** Highlighted information that may influence form data extraction. */
155
155
  IMPORTANT_TEXT = "IMPORTANT_TEXT",
@@ -167,7 +167,7 @@ type ChunkTypeWithLiterals = ChunkType | 'UNKNOWN_CHUNK_TYPE' | 'TEXT' | 'TEXT_D
167
167
  /** Conversational text content from the AI assistant. */
168
168
  interface TextDetails {
169
169
  /**
170
- * Text content to display to the user.
170
+ * Text content to display.
171
171
  * @minLength 1
172
172
  * @maxLength 10000
173
173
  */
@@ -195,7 +195,7 @@ interface TextDataDetails {
195
195
  */
196
196
  fieldTarget?: string;
197
197
  /**
198
- * Human-readable text representation of the extracted data to display to the user.
198
+ * Human-readable text representation of the extracted data to display.
199
199
  * @minLength 1
200
200
  * @maxLength 10000
201
201
  */
@@ -240,7 +240,7 @@ interface Option {
240
240
  */
241
241
  value?: string;
242
242
  /**
243
- * Human-readable label displayed to the user for this option.
243
+ * Human-readable label for display for this option.
244
244
  * @minLength 1
245
245
  * @maxLength 10000
246
246
  */
@@ -327,7 +327,7 @@ interface ErrorDetails {
327
327
  */
328
328
  messageText?: string;
329
329
  }
330
- /** Form submission confirmation containing submission and checkout information. */
330
+ /** Form submission confirmation containing submission information. */
331
331
  interface SubmissionDetails {
332
332
  /**
333
333
  * Form submission ID created when the form is successfully completed and submitted.
@@ -351,7 +351,7 @@ interface ImportantTextDetails {
351
351
  */
352
352
  fieldTarget?: string;
353
353
  /**
354
- * Important contextual information to highlight for the user.
354
+ * Important contextual information to highlight.
355
355
  * This might include validation requirements, format expectations, or clarifying questions.
356
356
  * @minLength 1
357
357
  * @maxLength 10000
@@ -469,7 +469,7 @@ interface SendUserMessageResponse {
469
469
  interactiveFormSession?: InteractiveFormSession;
470
470
  /**
471
471
  * AI assistant response chunks generated from processing the user's message.
472
- * These can include extracted data, follow-up questions, input prompts, or submission confirmation.
472
+ * These can include extracted data, follow-up questions, input selectors, or submission confirmation.
473
473
  */
474
474
  responseChunks?: InteractiveFormSessionResponseChunk[];
475
475
  }
@@ -498,7 +498,7 @@ interface SendUserMessageStreamedResponse {
498
498
  responseChunk?: InteractiveFormSessionResponseChunk;
499
499
  /**
500
500
  * Updated interactive form session information.
501
- * Included in response chunks to provide current session state.
501
+ * Session data, including session ID and form ID. Returned in the first chunk of the streamed response.
502
502
  */
503
503
  interactiveFormSession?: InteractiveFormSession;
504
504
  }
package/build/cjs/meta.js CHANGED
@@ -96,6 +96,9 @@ function createInteractiveFormSession(payload) {
96
96
  method: "POST",
97
97
  methodFqn: "wix.forms.ai.v1.InteractiveFormSessionsService.CreateInteractiveFormSession",
98
98
  packageName: PACKAGE_NAME,
99
+ migrationOptions: {
100
+ optInTransformResponse: true
101
+ },
99
102
  url: resolveWixFormsAiV1InteractiveFormSessionsServiceUrl({
100
103
  protoPath: "/v1/interactive-form-sessions",
101
104
  data: payload,
@@ -131,6 +134,9 @@ function createInteractiveFormSessionStreamed(payload) {
131
134
  method: "POST",
132
135
  methodFqn: "wix.forms.ai.v1.InteractiveFormSessionsService.CreateInteractiveFormSessionStreamed",
133
136
  packageName: PACKAGE_NAME,
137
+ migrationOptions: {
138
+ optInTransformResponse: true
139
+ },
134
140
  url: resolveWixFormsAiV1InteractiveFormSessionsServiceUrl({
135
141
  protoPath: "/v1/interactive-form-sessions/create-streamed",
136
142
  data: payload,
@@ -166,6 +172,9 @@ function sendUserMessage(payload) {
166
172
  method: "POST",
167
173
  methodFqn: "wix.forms.ai.v1.InteractiveFormSessionsService.SendUserMessage",
168
174
  packageName: PACKAGE_NAME,
175
+ migrationOptions: {
176
+ optInTransformResponse: true
177
+ },
169
178
  url: resolveWixFormsAiV1InteractiveFormSessionsServiceUrl({
170
179
  protoPath: "/v1/interactive-form-sessions/{interactiveFormSessionId}/send-user-message",
171
180
  data: payload,
@@ -201,6 +210,9 @@ function sendUserMessageStreamed(payload) {
201
210
  method: "POST",
202
211
  methodFqn: "wix.forms.ai.v1.InteractiveFormSessionsService.SendUserMessageStreamed",
203
212
  packageName: PACKAGE_NAME,
213
+ migrationOptions: {
214
+ optInTransformResponse: true
215
+ },
204
216
  url: resolveWixFormsAiV1InteractiveFormSessionsServiceUrl({
205
217
  protoPath: "/v1/interactive-form-sessions/{interactiveFormSessionId}/send-user-message-streamed",
206
218
  data: payload,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../meta.ts","../../src/forms-ai-v1-interactive-form-session-interactive-form-sessions.http.ts","../../src/forms-ai-v1-interactive-form-session-interactive-form-sessions.meta.ts"],"sourcesContent":["export * from './src/forms-ai-v1-interactive-form-session-interactive-form-sessions.meta.js';\n","import { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixFormsAiV1InteractiveFormSessionsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'bo._base_domain_': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n '*.wixforms.com': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/forms/ai/v1/chat-settings',\n destPath: '/v1/chat-settings',\n },\n {\n srcPath: '/forms/ai/v1/interactive-form-sessions',\n destPath: '/v1/interactive-form-sessions',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_forms_interactive-form-sessions';\n\n/**\n * Creates an interactive form session for AI-powered conversational form completion.\n *\n * For implementations that require real-time streaming, call [Create Interactive Form Session Streamed](https://dev.wix.com/docs/api-reference/crm/forms/interactive-form-session/create-interactive-form-session-streamed) instead.\n */\nexport function createInteractiveFormSession(\n payload: object\n): RequestOptionsFactory<any> {\n function __createInteractiveFormSession({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.ai.v1.interactive_form_session',\n method: 'POST' as any,\n methodFqn:\n 'wix.forms.ai.v1.InteractiveFormSessionsService.CreateInteractiveFormSession',\n packageName: PACKAGE_NAME,\n url: resolveWixFormsAiV1InteractiveFormSessionsServiceUrl({\n protoPath: '/v1/interactive-form-sessions',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'responseChunks.numberInputDetails.multipleOf' },\n {\n path: 'responseChunks.numberInputDetails.rangeLimit.maxInclusiveValue',\n },\n {\n path: 'responseChunks.numberInputDetails.rangeLimit.maxExclusiveValue',\n },\n {\n path: 'responseChunks.numberInputDetails.rangeLimit.minInclusiveValue',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createInteractiveFormSession;\n}\n\n/**\n * Creates an interactive form session for AI-powered conversational form completion, with real-time streaming.\n *\n * For implementations that prefer to wait for the complete response, call [Create Interactive Form Session](https://dev.wix.com/docs/api-reference/crm/forms/interactive-form-session/create-interactive-form-session) instead.\n */\nexport function createInteractiveFormSessionStreamed(\n payload: object\n): RequestOptionsFactory<any> {\n function __createInteractiveFormSessionStreamed({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.ai.v1.interactive_form_session',\n method: 'POST' as any,\n methodFqn:\n 'wix.forms.ai.v1.InteractiveFormSessionsService.CreateInteractiveFormSessionStreamed',\n packageName: PACKAGE_NAME,\n url: resolveWixFormsAiV1InteractiveFormSessionsServiceUrl({\n protoPath: '/v1/interactive-form-sessions/create-streamed',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'responseChunk.numberInputDetails.multipleOf' },\n {\n path: 'responseChunk.numberInputDetails.rangeLimit.maxInclusiveValue',\n },\n {\n path: 'responseChunk.numberInputDetails.rangeLimit.maxExclusiveValue',\n },\n {\n path: 'responseChunk.numberInputDetails.rangeLimit.minInclusiveValue',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createInteractiveFormSessionStreamed;\n}\n\n/**\n * Sends a user message to an existing interactive form session and processes the conversational input.\n * User messages support up to 10,000 characters.\n *\n * For implementations that require real-time streaming, call [Send User Message Streamed](https://dev.wix.com/docs/api-reference/crm/forms/interactive-form-session/send-user-message-streamed) instead.\n */\nexport function sendUserMessage(payload: object): RequestOptionsFactory<any> {\n function __sendUserMessage({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.ai.v1.interactive_form_session',\n method: 'POST' as any,\n methodFqn:\n 'wix.forms.ai.v1.InteractiveFormSessionsService.SendUserMessage',\n packageName: PACKAGE_NAME,\n url: resolveWixFormsAiV1InteractiveFormSessionsServiceUrl({\n protoPath:\n '/v1/interactive-form-sessions/{interactiveFormSessionId}/send-user-message',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'responseChunks.numberInputDetails.multipleOf' },\n {\n path: 'responseChunks.numberInputDetails.rangeLimit.maxInclusiveValue',\n },\n {\n path: 'responseChunks.numberInputDetails.rangeLimit.maxExclusiveValue',\n },\n {\n path: 'responseChunks.numberInputDetails.rangeLimit.minInclusiveValue',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __sendUserMessage;\n}\n\n/**\n * Sends a user message to an existing interactive form session and processes the conversational input, with real-time streaming.\n *\n * For implementations that prefer to wait for the complete response, call [Send User Message](https://dev.wix.com/docs/api-reference/crm/forms/interactive-form-session/send-user-message) instead.\n */\nexport function sendUserMessageStreamed(\n payload: object\n): RequestOptionsFactory<any> {\n function __sendUserMessageStreamed({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.ai.v1.interactive_form_session',\n method: 'POST' as any,\n methodFqn:\n 'wix.forms.ai.v1.InteractiveFormSessionsService.SendUserMessageStreamed',\n packageName: PACKAGE_NAME,\n url: resolveWixFormsAiV1InteractiveFormSessionsServiceUrl({\n protoPath:\n '/v1/interactive-form-sessions/{interactiveFormSessionId}/send-user-message-streamed',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'responseChunk.numberInputDetails.multipleOf' },\n {\n path: 'responseChunk.numberInputDetails.rangeLimit.maxInclusiveValue',\n },\n {\n path: 'responseChunk.numberInputDetails.rangeLimit.maxExclusiveValue',\n },\n {\n path: 'responseChunk.numberInputDetails.rangeLimit.minInclusiveValue',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __sendUserMessageStreamed;\n}\n","import * as ambassadorWixFormsAiV1InteractiveFormSession from './forms-ai-v1-interactive-form-session-interactive-form-sessions.http.js';\nimport * as ambassadorWixFormsAiV1InteractiveFormSessionTypes from './forms-ai-v1-interactive-form-session-interactive-form-sessions.types.js';\nimport * as ambassadorWixFormsAiV1InteractiveFormSessionUniversalTypes from './forms-ai-v1-interactive-form-session-interactive-form-sessions.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createInteractiveFormSession(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixFormsAiV1InteractiveFormSessionUniversalTypes.CreateInteractiveFormSessionRequest,\n ambassadorWixFormsAiV1InteractiveFormSessionTypes.CreateInteractiveFormSessionRequest,\n ambassadorWixFormsAiV1InteractiveFormSessionUniversalTypes.CreateInteractiveFormSessionResponse,\n ambassadorWixFormsAiV1InteractiveFormSessionTypes.CreateInteractiveFormSessionResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixFormsAiV1InteractiveFormSession.createInteractiveFormSession(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/interactive-form-sessions',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createInteractiveFormSessionStreamed(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixFormsAiV1InteractiveFormSessionUniversalTypes.CreateInteractiveFormSessionStreamedRequest,\n ambassadorWixFormsAiV1InteractiveFormSessionTypes.CreateInteractiveFormSessionStreamedRequest,\n ambassadorWixFormsAiV1InteractiveFormSessionUniversalTypes.CreateInteractiveFormSessionStreamedResponse,\n ambassadorWixFormsAiV1InteractiveFormSessionTypes.CreateInteractiveFormSessionStreamedResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixFormsAiV1InteractiveFormSession.createInteractiveFormSessionStreamed(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/interactive-form-sessions/create-streamed',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function sendUserMessage(): __PublicMethodMetaInfo<\n 'POST',\n { interactiveFormSessionId: string },\n ambassadorWixFormsAiV1InteractiveFormSessionUniversalTypes.SendUserMessageRequest,\n ambassadorWixFormsAiV1InteractiveFormSessionTypes.SendUserMessageRequest,\n ambassadorWixFormsAiV1InteractiveFormSessionUniversalTypes.SendUserMessageResponse,\n ambassadorWixFormsAiV1InteractiveFormSessionTypes.SendUserMessageResponse\n> {\n const payload = {\n interactiveFormSessionId: ':interactiveFormSessionId',\n } as any;\n\n const getRequestOptions =\n ambassadorWixFormsAiV1InteractiveFormSession.sendUserMessage(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/interactive-form-sessions/{interactiveFormSessionId}/send-user-message',\n pathParams: { interactiveFormSessionId: 'interactiveFormSessionId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function sendUserMessageStreamed(): __PublicMethodMetaInfo<\n 'POST',\n { interactiveFormSessionId: string },\n ambassadorWixFormsAiV1InteractiveFormSessionUniversalTypes.SendUserMessageStreamedRequest,\n ambassadorWixFormsAiV1InteractiveFormSessionTypes.SendUserMessageStreamedRequest,\n ambassadorWixFormsAiV1InteractiveFormSessionUniversalTypes.SendUserMessageStreamedResponse,\n ambassadorWixFormsAiV1InteractiveFormSessionTypes.SendUserMessageStreamedResponse\n> {\n const payload = {\n interactiveFormSessionId: ':interactiveFormSessionId',\n } as any;\n\n const getRequestOptions =\n ambassadorWixFormsAiV1InteractiveFormSession.sendUserMessageStreamed(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/interactive-form-sessions/{interactiveFormSessionId}/send-user-message-streamed',\n pathParams: { interactiveFormSessionId: 'interactiveFormSessionId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,sCAAAA;AAAA,EAAA,4CAAAC;AAAA,EAAA,uBAAAC;AAAA,EAAA,+BAAAC;AAAA;AAAA;;;ACAA,mBAA6C;AAC7C,6BAA+B;AAC/B,0BAA2B;AAI3B,SAAS,qDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,kBAAkB;AAAA,MAChB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AA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,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,2BAOd;AACA,QAAM,UAAU;AAAA,IACd,0BAA0B;AAAA,EAC5B;AAEA,QAAM,oBACyC;AAAA,IAC3C;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,0BAA0B,2BAA2B;AAAA,IACnE,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["createInteractiveFormSession","createInteractiveFormSessionStreamed","sendUserMessage","sendUserMessageStreamed","payload","createInteractiveFormSession","createInteractiveFormSessionStreamed","sendUserMessage","sendUserMessageStreamed"]}
1
+ {"version":3,"sources":["../../meta.ts","../../src/forms-ai-v1-interactive-form-session-interactive-form-sessions.http.ts","../../src/forms-ai-v1-interactive-form-session-interactive-form-sessions.meta.ts"],"sourcesContent":["export * from './src/forms-ai-v1-interactive-form-session-interactive-form-sessions.meta.js';\n","import { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixFormsAiV1InteractiveFormSessionsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'bo._base_domain_': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n '*.wixforms.com': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/forms/ai/v1/chat-settings',\n destPath: '/v1/chat-settings',\n },\n {\n srcPath: '/forms/ai/v1/interactive-form-sessions',\n destPath: '/v1/interactive-form-sessions',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/form-ai-assistant',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_forms_interactive-form-sessions';\n\n/**\n * Creates an interactive form session for AI-powered conversational form completion.\n *\n * For implementations that require real-time streaming, call [Create Interactive Form Session Streamed](https://dev.wix.com/docs/api-reference/crm/forms/interactive-form-session/create-interactive-form-session-streamed) instead.\n */\nexport function createInteractiveFormSession(\n payload: object\n): RequestOptionsFactory<any> {\n function __createInteractiveFormSession({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.ai.v1.interactive_form_session',\n method: 'POST' as any,\n methodFqn:\n 'wix.forms.ai.v1.InteractiveFormSessionsService.CreateInteractiveFormSession',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsAiV1InteractiveFormSessionsServiceUrl({\n protoPath: '/v1/interactive-form-sessions',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'responseChunks.numberInputDetails.multipleOf' },\n {\n path: 'responseChunks.numberInputDetails.rangeLimit.maxInclusiveValue',\n },\n {\n path: 'responseChunks.numberInputDetails.rangeLimit.maxExclusiveValue',\n },\n {\n path: 'responseChunks.numberInputDetails.rangeLimit.minInclusiveValue',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createInteractiveFormSession;\n}\n\n/**\n * Creates an interactive form session for AI-powered conversational form completion, with real-time streaming.\n *\n * For implementations that prefer to wait for the complete response, call [Create Interactive Form Session](https://dev.wix.com/docs/api-reference/crm/forms/interactive-form-session/create-interactive-form-session) instead.\n */\nexport function createInteractiveFormSessionStreamed(\n payload: object\n): RequestOptionsFactory<any> {\n function __createInteractiveFormSessionStreamed({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.ai.v1.interactive_form_session',\n method: 'POST' as any,\n methodFqn:\n 'wix.forms.ai.v1.InteractiveFormSessionsService.CreateInteractiveFormSessionStreamed',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsAiV1InteractiveFormSessionsServiceUrl({\n protoPath: '/v1/interactive-form-sessions/create-streamed',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'responseChunk.numberInputDetails.multipleOf' },\n {\n path: 'responseChunk.numberInputDetails.rangeLimit.maxInclusiveValue',\n },\n {\n path: 'responseChunk.numberInputDetails.rangeLimit.maxExclusiveValue',\n },\n {\n path: 'responseChunk.numberInputDetails.rangeLimit.minInclusiveValue',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createInteractiveFormSessionStreamed;\n}\n\n/**\n * Submits a user message to an existing interactive form session and processes the conversational input.\n * User messages support up to 10,000 characters.\n *\n * For implementations that require real-time streaming, call [Send User Message Streamed](https://dev.wix.com/docs/api-reference/crm/forms/interactive-form-session/send-user-message-streamed) instead.\n */\nexport function sendUserMessage(payload: object): RequestOptionsFactory<any> {\n function __sendUserMessage({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.ai.v1.interactive_form_session',\n method: 'POST' as any,\n methodFqn:\n 'wix.forms.ai.v1.InteractiveFormSessionsService.SendUserMessage',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsAiV1InteractiveFormSessionsServiceUrl({\n protoPath:\n '/v1/interactive-form-sessions/{interactiveFormSessionId}/send-user-message',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'responseChunks.numberInputDetails.multipleOf' },\n {\n path: 'responseChunks.numberInputDetails.rangeLimit.maxInclusiveValue',\n },\n {\n path: 'responseChunks.numberInputDetails.rangeLimit.maxExclusiveValue',\n },\n {\n path: 'responseChunks.numberInputDetails.rangeLimit.minInclusiveValue',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __sendUserMessage;\n}\n\n/**\n * Submits a user message to an existing interactive form session and processes the conversational input, with real-time streaming.\n *\n * For implementations that prefer to wait for the complete response, call [Send User Message](https://dev.wix.com/docs/api-reference/crm/forms/interactive-form-session/send-user-message) instead.\n */\nexport function sendUserMessageStreamed(\n payload: object\n): RequestOptionsFactory<any> {\n function __sendUserMessageStreamed({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.ai.v1.interactive_form_session',\n method: 'POST' as any,\n methodFqn:\n 'wix.forms.ai.v1.InteractiveFormSessionsService.SendUserMessageStreamed',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixFormsAiV1InteractiveFormSessionsServiceUrl({\n protoPath:\n '/v1/interactive-form-sessions/{interactiveFormSessionId}/send-user-message-streamed',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'responseChunk.numberInputDetails.multipleOf' },\n {\n path: 'responseChunk.numberInputDetails.rangeLimit.maxInclusiveValue',\n },\n {\n path: 'responseChunk.numberInputDetails.rangeLimit.maxExclusiveValue',\n },\n {\n path: 'responseChunk.numberInputDetails.rangeLimit.minInclusiveValue',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __sendUserMessageStreamed;\n}\n","import * as ambassadorWixFormsAiV1InteractiveFormSession from './forms-ai-v1-interactive-form-session-interactive-form-sessions.http.js';\nimport * as ambassadorWixFormsAiV1InteractiveFormSessionTypes from './forms-ai-v1-interactive-form-session-interactive-form-sessions.types.js';\nimport * as ambassadorWixFormsAiV1InteractiveFormSessionUniversalTypes from './forms-ai-v1-interactive-form-session-interactive-form-sessions.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createInteractiveFormSession(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixFormsAiV1InteractiveFormSessionUniversalTypes.CreateInteractiveFormSessionRequest,\n ambassadorWixFormsAiV1InteractiveFormSessionTypes.CreateInteractiveFormSessionRequest,\n ambassadorWixFormsAiV1InteractiveFormSessionUniversalTypes.CreateInteractiveFormSessionResponse,\n ambassadorWixFormsAiV1InteractiveFormSessionTypes.CreateInteractiveFormSessionResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixFormsAiV1InteractiveFormSession.createInteractiveFormSession(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/interactive-form-sessions',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createInteractiveFormSessionStreamed(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixFormsAiV1InteractiveFormSessionUniversalTypes.CreateInteractiveFormSessionStreamedRequest,\n ambassadorWixFormsAiV1InteractiveFormSessionTypes.CreateInteractiveFormSessionStreamedRequest,\n ambassadorWixFormsAiV1InteractiveFormSessionUniversalTypes.CreateInteractiveFormSessionStreamedResponse,\n ambassadorWixFormsAiV1InteractiveFormSessionTypes.CreateInteractiveFormSessionStreamedResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixFormsAiV1InteractiveFormSession.createInteractiveFormSessionStreamed(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/interactive-form-sessions/create-streamed',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function sendUserMessage(): __PublicMethodMetaInfo<\n 'POST',\n { interactiveFormSessionId: string },\n ambassadorWixFormsAiV1InteractiveFormSessionUniversalTypes.SendUserMessageRequest,\n ambassadorWixFormsAiV1InteractiveFormSessionTypes.SendUserMessageRequest,\n ambassadorWixFormsAiV1InteractiveFormSessionUniversalTypes.SendUserMessageResponse,\n ambassadorWixFormsAiV1InteractiveFormSessionTypes.SendUserMessageResponse\n> {\n const payload = {\n interactiveFormSessionId: ':interactiveFormSessionId',\n } as any;\n\n const getRequestOptions =\n ambassadorWixFormsAiV1InteractiveFormSession.sendUserMessage(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/interactive-form-sessions/{interactiveFormSessionId}/send-user-message',\n pathParams: { interactiveFormSessionId: 'interactiveFormSessionId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function sendUserMessageStreamed(): __PublicMethodMetaInfo<\n 'POST',\n { interactiveFormSessionId: string },\n ambassadorWixFormsAiV1InteractiveFormSessionUniversalTypes.SendUserMessageStreamedRequest,\n ambassadorWixFormsAiV1InteractiveFormSessionTypes.SendUserMessageStreamedRequest,\n ambassadorWixFormsAiV1InteractiveFormSessionUniversalTypes.SendUserMessageStreamedResponse,\n ambassadorWixFormsAiV1InteractiveFormSessionTypes.SendUserMessageStreamedResponse\n> {\n const payload = {\n interactiveFormSessionId: ':interactiveFormSessionId',\n } as any;\n\n const getRequestOptions =\n ambassadorWixFormsAiV1InteractiveFormSession.sendUserMessageStreamed(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/interactive-form-sessions/{interactiveFormSessionId}/send-user-message-streamed',\n pathParams: { interactiveFormSessionId: 'interactiveFormSessionId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,sCAAAA;AAAA,EAAA,4CAAAC;AAAA,EAAA,uBAAAC;AAAA,EAAA,+BAAAC;AAAA;AAAA;;;ACAA,mBAA6C;AAC7C,6BAA+B;AAC/B,0BAA2B;AAI3B,SAAS,qDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,kBAAkB;AAAA,MAChB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT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0BAA0B;AAAA,EAC5B;AAEA,QAAM,oBACyC,gBAAgB,OAAO;AAEtE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,0BAA0B,2BAA2B;AAAA,IACnE,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,2BAOd;AACA,QAAM,UAAU;AAAA,IACd,0BAA0B;AAAA,EAC5B;AAEA,QAAM,oBACyC;AAAA,IAC3C;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,0BAA0B,2BAA2B;AAAA,IACnE,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["createInteractiveFormSession","createInteractiveFormSessionStreamed","sendUserMessage","sendUserMessageStreamed","payload","createInteractiveFormSession","createInteractiveFormSessionStreamed","sendUserMessage","sendUserMessageStreamed"]}
@@ -1,6 +1,6 @@
1
- import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
- import { CreateInteractiveFormSessionOptions, InteractiveFormSession, CreateInteractiveFormSessionStreamedOptions, CreateInteractiveFormSessionStreamedResponse, SendUserMessageOptions, SendUserMessageResponse, SendUserMessageApplicationErrors, SendUserMessageStreamedOptions, SendUserMessageStreamedResponse, SendUserMessageStreamedApplicationErrors } from './index.typings.mjs';
3
- export { AcknowledgmentResponse, ActionEvent, AssistantOptions, Call, CallToolsRequest, CallToolsResponse, ChunkType, ChunkTypeWithLiterals, ClientTime, ContextMessage, ContextMessageOptionsOneOf, ConverseRequest, ConverseRequestRequestOneOf, ConverseResponse, ConverseResponseResponseOneOf, CreateInteractiveFormSessionRequest, CreateInteractiveFormSessionResponse, CreateInteractiveFormSessionStreamedRequest, CustomValue, DebugDetails, DeveloperOptions, DomainEvent, DomainEventBodyOneOf, EndOfResponseDetails, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ErrorDetails, FileUploadDetails, FunctionCallOptions, FunctionCallOutputOptions, GetStateRequest, GetStateResponse, IdentificationData, IdentificationDataIdOneOf, ImportantTextDetails, InteractiveFormSessionResponseChunk, InteractiveFormSessionResponseChunkOfOneOf, MeaningfulInput, MessageEnvelope, MultiSelectInputDetails, NumberInputDetails, NumberRangeLimit, NumberRangeLimitEndOneOf, Option, OutputInteractiveFormSessionStreamedRequest, OutputInteractiveFormSessionStreamedResponse, RelayAssistantMessageRequest, ReportConversationRequest, ReportConversationResponse, Response, RestoreInfo, Role, RoleWithLiterals, SendUserMessageRequest, SendUserMessageStreamedRequest, SeparatorDetails, SignatureDetails, SingleSelectInputDetails, Style, StyleWithLiterals, SubmissionDetails, TextDataDetails, TextDetails, Tool, Type, TypeWithLiterals, Usage, UsageRequest, UserOptions, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.mjs';
1
+ import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { CreateInteractiveFormSessionOptions, InteractiveFormSession, CreateInteractiveFormSessionStreamedOptions, CreateInteractiveFormSessionStreamedResponse, SendUserMessageOptions, SendUserMessageResponse, SendUserMessageApplicationErrors, SendUserMessageStreamedOptions, SendUserMessageStreamedResponse, SendUserMessageStreamedApplicationErrors, InteractiveFormSessionCreatedEnvelope } from './index.typings.mjs';
3
+ export { AcknowledgmentResponse, ActionEvent, AssistantOptions, BaseEventMetadata, Call, CallToolsRequest, CallToolsResponse, ChunkType, ChunkTypeWithLiterals, ClientTime, ContextMessage, ContextMessageOptionsOneOf, ConverseRequest, ConverseRequestRequestOneOf, ConverseResponse, ConverseResponseResponseOneOf, CreateInteractiveFormSessionRequest, CreateInteractiveFormSessionResponse, CreateInteractiveFormSessionStreamedRequest, CustomValue, DebugDetails, DeveloperOptions, DomainEvent, DomainEventBodyOneOf, EndOfResponseDetails, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ErrorDetails, EventMetadata, FileUploadDetails, FunctionCallOptions, FunctionCallOutputOptions, GetStateRequest, GetStateResponse, IdentificationData, IdentificationDataIdOneOf, ImportantTextDetails, InteractiveFormSessionResponseChunk, InteractiveFormSessionResponseChunkOfOneOf, MeaningfulInput, MessageEnvelope, MultiSelectInputDetails, NumberInputDetails, NumberRangeLimit, NumberRangeLimitEndOneOf, Option, OutputInteractiveFormSessionStreamedRequest, OutputInteractiveFormSessionStreamedResponse, RelayAssistantMessageRequest, ReportConversationRequest, ReportConversationResponse, Response, RestoreInfo, Role, RoleWithLiterals, SendUserMessageRequest, SendUserMessageStreamedRequest, SeparatorDetails, SignatureDetails, SingleSelectInputDetails, Style, StyleWithLiterals, SubmissionDetails, TextDataDetails, TextDetails, Tool, Type, TypeWithLiterals, Usage, UsageRequest, UserOptions, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.mjs';
4
4
 
5
5
  declare function createInteractiveFormSession$1(httpClient: HttpClient): CreateInteractiveFormSessionSignature;
6
6
  interface CreateInteractiveFormSessionSignature {
@@ -26,7 +26,7 @@ interface CreateInteractiveFormSessionStreamedSignature {
26
26
  declare function sendUserMessage$1(httpClient: HttpClient): SendUserMessageSignature;
27
27
  interface SendUserMessageSignature {
28
28
  /**
29
- * Sends a user message to an existing interactive form session and processes the conversational input.
29
+ * Submits a user message to an existing interactive form session and processes the conversational input.
30
30
  * User messages support up to 10,000 characters.
31
31
  *
32
32
  * For implementations that require real-time streaming, call [Send User Message Streamed](https://dev.wix.com/docs/api-reference/crm/forms/interactive-form-session/send-user-message-streamed) instead.
@@ -39,7 +39,7 @@ interface SendUserMessageSignature {
39
39
  declare function sendUserMessageStreamed$1(httpClient: HttpClient): SendUserMessageStreamedSignature;
40
40
  interface SendUserMessageStreamedSignature {
41
41
  /**
42
- * Sends a user message to an existing interactive form session and processes the conversational input, with real-time streaming.
42
+ * Submits a user message to an existing interactive form session and processes the conversational input, with real-time streaming.
43
43
  *
44
44
  * For implementations that prefer to wait for the complete response, call [Send User Message](https://dev.wix.com/docs/api-reference/crm/forms/interactive-form-session/send-user-message) instead.
45
45
  * @param - Interactive form session ID to send the message to.
@@ -48,10 +48,15 @@ interface SendUserMessageStreamedSignature {
48
48
  __applicationErrorsType?: SendUserMessageStreamedApplicationErrors;
49
49
  }>;
50
50
  }
51
+ declare const onInteractiveFormSessionCreated$1: EventDefinition<InteractiveFormSessionCreatedEnvelope, "wix.forms.ai.v1.interactive_form_session_created">;
51
52
 
52
53
  declare const createInteractiveFormSession: MaybeContext<BuildRESTFunction<typeof createInteractiveFormSession$1> & typeof createInteractiveFormSession$1>;
53
54
  declare const createInteractiveFormSessionStreamed: MaybeContext<BuildRESTFunction<typeof createInteractiveFormSessionStreamed$1> & typeof createInteractiveFormSessionStreamed$1>;
54
55
  declare const sendUserMessage: MaybeContext<BuildRESTFunction<typeof sendUserMessage$1> & typeof sendUserMessage$1>;
55
56
  declare const sendUserMessageStreamed: MaybeContext<BuildRESTFunction<typeof sendUserMessageStreamed$1> & typeof sendUserMessageStreamed$1>;
57
+ /**
58
+ * Triggered when an interactive form session is created.
59
+ */
60
+ declare const onInteractiveFormSessionCreated: BuildEventDefinition<typeof onInteractiveFormSessionCreated$1> & typeof onInteractiveFormSessionCreated$1;
56
61
 
57
- export { CreateInteractiveFormSessionOptions, CreateInteractiveFormSessionStreamedOptions, CreateInteractiveFormSessionStreamedResponse, InteractiveFormSession, SendUserMessageApplicationErrors, SendUserMessageOptions, SendUserMessageResponse, SendUserMessageStreamedApplicationErrors, SendUserMessageStreamedOptions, SendUserMessageStreamedResponse, createInteractiveFormSession, createInteractiveFormSessionStreamed, sendUserMessage, sendUserMessageStreamed };
62
+ export { CreateInteractiveFormSessionOptions, CreateInteractiveFormSessionStreamedOptions, CreateInteractiveFormSessionStreamedResponse, InteractiveFormSession, InteractiveFormSessionCreatedEnvelope, SendUserMessageApplicationErrors, SendUserMessageOptions, SendUserMessageResponse, SendUserMessageStreamedApplicationErrors, SendUserMessageStreamedOptions, SendUserMessageStreamedResponse, createInteractiveFormSession, createInteractiveFormSessionStreamed, onInteractiveFormSessionCreated, sendUserMessage, sendUserMessageStreamed };
@@ -1,3 +1,9 @@
1
+ // src/forms-ai-v1-interactive-form-session-interactive-form-sessions.public.ts
2
+ import { renameKeysFromRESTResponseToSDKResponse as renameKeysFromRESTResponseToSDKResponse2 } from "@wix/sdk-runtime/rename-all-nested-keys";
3
+ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
4
+ import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
5
+ import { EventDefinition } from "@wix/sdk-types";
6
+
1
7
  // src/forms-ai-v1-interactive-form-session-interactive-form-sessions.universal.ts
2
8
  import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
3
9
  import {
@@ -74,6 +80,9 @@ function createInteractiveFormSession(payload) {
74
80
  method: "POST",
75
81
  methodFqn: "wix.forms.ai.v1.InteractiveFormSessionsService.CreateInteractiveFormSession",
76
82
  packageName: PACKAGE_NAME,
83
+ migrationOptions: {
84
+ optInTransformResponse: true
85
+ },
77
86
  url: resolveWixFormsAiV1InteractiveFormSessionsServiceUrl({
78
87
  protoPath: "/v1/interactive-form-sessions",
79
88
  data: payload,
@@ -109,6 +118,9 @@ function createInteractiveFormSessionStreamed(payload) {
109
118
  method: "POST",
110
119
  methodFqn: "wix.forms.ai.v1.InteractiveFormSessionsService.CreateInteractiveFormSessionStreamed",
111
120
  packageName: PACKAGE_NAME,
121
+ migrationOptions: {
122
+ optInTransformResponse: true
123
+ },
112
124
  url: resolveWixFormsAiV1InteractiveFormSessionsServiceUrl({
113
125
  protoPath: "/v1/interactive-form-sessions/create-streamed",
114
126
  data: payload,
@@ -144,6 +156,9 @@ function sendUserMessage(payload) {
144
156
  method: "POST",
145
157
  methodFqn: "wix.forms.ai.v1.InteractiveFormSessionsService.SendUserMessage",
146
158
  packageName: PACKAGE_NAME,
159
+ migrationOptions: {
160
+ optInTransformResponse: true
161
+ },
147
162
  url: resolveWixFormsAiV1InteractiveFormSessionsServiceUrl({
148
163
  protoPath: "/v1/interactive-form-sessions/{interactiveFormSessionId}/send-user-message",
149
164
  data: payload,
@@ -179,6 +194,9 @@ function sendUserMessageStreamed(payload) {
179
194
  method: "POST",
180
195
  methodFqn: "wix.forms.ai.v1.InteractiveFormSessionsService.SendUserMessageStreamed",
181
196
  packageName: PACKAGE_NAME,
197
+ migrationOptions: {
198
+ optInTransformResponse: true
199
+ },
182
200
  url: resolveWixFormsAiV1InteractiveFormSessionsServiceUrl({
183
201
  protoPath: "/v1/interactive-form-sessions/{interactiveFormSessionId}/send-user-message-streamed",
184
202
  data: payload,
@@ -422,13 +440,29 @@ function sendUserMessageStreamed3(httpClient) {
422
440
  { httpClient }
423
441
  );
424
442
  }
443
+ var onInteractiveFormSessionCreated = EventDefinition(
444
+ "wix.forms.ai.v1.interactive_form_session_created",
445
+ true,
446
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
447
+ transformPaths2(event, [
448
+ {
449
+ transformFn: transformRESTTimestampToSDKTimestamp,
450
+ paths: [{ path: "metadata.eventTime" }]
451
+ }
452
+ ])
453
+ )
454
+ )();
425
455
 
426
456
  // src/forms-ai-v1-interactive-form-session-interactive-form-sessions.context.ts
427
457
  import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
458
+ import { createEventModule } from "@wix/sdk-runtime/event-definition-modules";
428
459
  var createInteractiveFormSession4 = /* @__PURE__ */ createRESTModule(createInteractiveFormSession3);
429
460
  var createInteractiveFormSessionStreamed4 = /* @__PURE__ */ createRESTModule(createInteractiveFormSessionStreamed3);
430
461
  var sendUserMessage4 = /* @__PURE__ */ createRESTModule(sendUserMessage3);
431
462
  var sendUserMessageStreamed4 = /* @__PURE__ */ createRESTModule(sendUserMessageStreamed3);
463
+ var onInteractiveFormSessionCreated2 = createEventModule(
464
+ onInteractiveFormSessionCreated
465
+ );
432
466
  export {
433
467
  ChunkType,
434
468
  Role,
@@ -437,6 +471,7 @@ export {
437
471
  WebhookIdentityType,
438
472
  createInteractiveFormSession4 as createInteractiveFormSession,
439
473
  createInteractiveFormSessionStreamed4 as createInteractiveFormSessionStreamed,
474
+ onInteractiveFormSessionCreated2 as onInteractiveFormSessionCreated,
440
475
  sendUserMessage4 as sendUserMessage,
441
476
  sendUserMessageStreamed4 as sendUserMessageStreamed
442
477
  };