@wix/auto_sdk_forms_interactive-form-sessions 1.0.13 → 1.0.14
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/meta.d.ts +487 -1
- package/build/cjs/meta.js +57 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/meta.d.mts +487 -1
- package/build/es/meta.mjs +52 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/meta.d.ts +487 -1
- package/build/internal/cjs/meta.js +57 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/meta.d.mts +487 -1
- package/build/internal/es/meta.mjs +52 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
package/build/cjs/meta.js.map
CHANGED
|
@@ -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-sessions/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-sessions/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-sessions/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-sessions/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,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;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AAM,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
|
+
{"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.types.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-sessions/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-sessions/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-sessions/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-sessions/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","/**\n * An interactive form session enables AI-powered conversational form completion.\n * The session maintains conversation context and tracks form data extraction throughout\n * the user's interaction with the AI assistant.\n */\nexport interface InteractiveFormSession {\n /**\n * Interactive form session ID.\n * @format GUID\n * @readonly\n */\n id?: string;\n /**\n * Form ID.\n * @format GUID\n */\n formId?: string;\n}\n\nexport interface CreateInteractiveFormSessionRequest {\n /**\n * Form ID to create an interactive session for.\n * @format GUID\n */\n formId: string;\n /**\n * Pre-filled values to apply to the form, to initialize the session with existing data.\n * Field keys must match the form schema field names.\n * For example: `{\"firstName\": \"John\", \"email\": \"john@example.com\", \"age\": 25}`.\n * These values are merged with any data extracted during the conversation.\n */\n currentValues?: Record<string, any> | null;\n /**\n * Whether the session should run in dry run mode for testing and preview purposes.\n * In dry run mode, the full conversational flow works normally and form data is extracted,\n * but no actual form submission occurs.\n * @immutable\n */\n dryRun?: boolean;\n /** Current date-time of api client. */\n clientTime?: ClientTime;\n}\n\nexport interface ClientTime {\n /**\n * Current date and time in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) UTC format.\n * For example, `2023-10-01T12:00:00Z`.\n * @minLength 1\n * @maxLength 200\n */\n currentTime?: string | null;\n /**\n * Browser's timezone identifier for localizing date and time values in IANA timezone format (for example, `Europe/Vilnius`, `America/New_York`).\n * @minLength 1\n * @maxLength 50\n */\n timeZone?: string | null;\n}\n\nexport interface CreateInteractiveFormSessionResponse {\n /** Created interactive form session. */\n interactiveFormSession?: InteractiveFormSession;\n /** AI assistant response chunks for the interactive form session. */\n responseChunks?: InteractiveFormSessionResponseChunk[];\n}\n\n/**\n * AI assistant response chunk, containing different types of conversational content.\n * Chunks are delivered sequentially and must be processed in the order they are received to build the complete\n * conversation interface. Each chunk type requires different UI handling.\n */\nexport interface InteractiveFormSessionResponseChunk\n extends InteractiveFormSessionResponseChunkOfOneOf {\n /** Conversational text message for display. */\n textDetails?: TextDetails;\n /** Structured data extracted from user input and mapped to specific form fields. */\n textDataDetails?: TextDataDetails;\n /** Selector for selecting multiple options from a predefined list. */\n multiSelectInputDetails?: MultiSelectInputDetails;\n /** Selector for numeric input with optional range and validation constraints. */\n numberInputDetails?: NumberInputDetails;\n /** Visual separator element for organizing conversation flow. */\n separatorDetails?: SeparatorDetails;\n /** Selector for selecting a single option from a predefined list. */\n singleSelectInputDetails?: SingleSelectInputDetails;\n /** Error information when processing fails or validation errors occur. */\n errorDetails?: ErrorDetails;\n /** Form submission confirmation including a form submission ID. A checkout ID will also be returned here if the user selected products for purchase. */\n submissionDetails?: SubmissionDetails;\n /** Important contextual information that may influence data extraction or user decisions. */\n importantTextDetails?: ImportantTextDetails;\n /** Diagnostic information for development, debugging, and performance monitoring. */\n debugDetails?: DebugDetails;\n /** Stream completion signal indicating no more chunks will be sent in this response. */\n endOfResponseDetails?: EndOfResponseDetails;\n /** Input for file upload with field targeting. Not supported. */\n fileUploadDetails?: FileUploadDetails;\n /** Input for digital signature capture with field targeting. Not supported. */\n signatureDetails?: SignatureDetails;\n /** Response chunk type, that determines how the content should be processed and displayed. */\n chunkType?: ChunkTypeWithLiterals;\n /**\n * Indicates which portion of the original user input was meaningful for data extraction.\n * Can be used to highlight relevant parts of the user's message in the UI.\n */\n meaningfulInput?: MeaningfulInput;\n}\n\n/** @oneof */\nexport interface InteractiveFormSessionResponseChunkOfOneOf {\n /** Conversational text message for display. */\n textDetails?: TextDetails;\n /** Structured data extracted from user input and mapped to specific form fields. */\n textDataDetails?: TextDataDetails;\n /** Selector for selecting multiple options from a predefined list. */\n multiSelectInputDetails?: MultiSelectInputDetails;\n /** Selector for numeric input with optional range and validation constraints. */\n numberInputDetails?: NumberInputDetails;\n /** Visual separator element for organizing conversation flow. */\n separatorDetails?: SeparatorDetails;\n /** Selector for selecting a single option from a predefined list. */\n singleSelectInputDetails?: SingleSelectInputDetails;\n /** Error information when processing fails or validation errors occur. */\n errorDetails?: ErrorDetails;\n /** Form submission confirmation including a form submission ID. A checkout ID will also be returned here if the user selected products for purchase. */\n submissionDetails?: SubmissionDetails;\n /** Important contextual information that may influence data extraction or user decisions. */\n importantTextDetails?: ImportantTextDetails;\n /** Diagnostic information for development, debugging, and performance monitoring. */\n debugDetails?: DebugDetails;\n /** Stream completion signal indicating no more chunks will be sent in this response. */\n endOfResponseDetails?: EndOfResponseDetails;\n /** Input for file upload with field targeting. Not supported. */\n fileUploadDetails?: FileUploadDetails;\n /** Input for digital signature capture with field targeting. Not supported. */\n signatureDetails?: SignatureDetails;\n}\n\nexport enum ChunkType {\n /** Unknown chunk type. */\n UNKNOWN_CHUNK_TYPE = 'UNKNOWN_CHUNK_TYPE',\n /** Text message for display to the user. */\n TEXT = 'TEXT',\n /** Structured data extracted from user input and mapped to form fields. */\n TEXT_DATA = 'TEXT_DATA',\n /** Selector for selecting multiple options from a list. */\n MULTI_SELECT_INPUT = 'MULTI_SELECT_INPUT',\n /** Selector for numeric input with optional validation. */\n NUMBER_INPUT = 'NUMBER_INPUT',\n /** Visual separator element such as paragraph breaks. */\n SEPARATOR = 'SEPARATOR',\n /** Selector for selecting one option from a list. */\n SINGLE_SELECT_INPUT = 'SINGLE_SELECT_INPUT',\n /** Error message when processing fails or validation errors occur. */\n ERROR = 'ERROR',\n /** Form submission confirmation including a submission ID. */\n SUBMISSION = 'SUBMISSION',\n /** Highlighted information that may influence form data extraction. */\n IMPORTANT_TEXT = 'IMPORTANT_TEXT',\n /** Diagnostic information for troubleshooting and development. */\n DEBUG = 'DEBUG',\n /** Signals the completion of a response stream. */\n END_OF_RESPONSE = 'END_OF_RESPONSE',\n /** Input for file upload. Not supported. */\n FILE_UPLOAD = 'FILE_UPLOAD',\n /** Input for digital signature capture. Not supported. */\n SIGNATURE = 'SIGNATURE',\n}\n\n/** @enumType */\nexport type ChunkTypeWithLiterals =\n | ChunkType\n | 'UNKNOWN_CHUNK_TYPE'\n | 'TEXT'\n | 'TEXT_DATA'\n | 'MULTI_SELECT_INPUT'\n | 'NUMBER_INPUT'\n | 'SEPARATOR'\n | 'SINGLE_SELECT_INPUT'\n | 'ERROR'\n | 'SUBMISSION'\n | 'IMPORTANT_TEXT'\n | 'DEBUG'\n | 'END_OF_RESPONSE'\n | 'FILE_UPLOAD'\n | 'SIGNATURE';\n\n/** Conversational text content from the AI assistant. */\nexport interface TextDetails {\n /**\n * Text content to display.\n * @minLength 1\n * @maxLength 10000\n */\n text?: string;\n /** Text formatting style for visual presentation. */\n style?: StyleWithLiterals;\n}\n\nexport enum Style {\n /** Unknown text style. */\n UNKNOWN_STYLE = 'UNKNOWN_STYLE',\n /** Regular conversational text. */\n NORMAL = 'NORMAL',\n /** Bold text for emphasis. */\n BOLD = 'BOLD',\n}\n\n/** @enumType */\nexport type StyleWithLiterals = Style | 'UNKNOWN_STYLE' | 'NORMAL' | 'BOLD';\n\n/** Structured data extracted from user input and mapped to form fields. */\nexport interface TextDataDetails {\n /**\n * Form field identifier that this extracted data maps to.\n * Matches a field name in the form schema.\n * @minLength 1\n * @maxLength 200\n */\n fieldTarget?: string;\n /**\n * Human-readable text representation of the extracted data to display.\n * @minLength 1\n * @maxLength 10000\n */\n text?: string;\n /**\n * Structured value for form submission (for example, boolean `true`/`false`, number, or string).\n * This is the actual data value that will be submitted with the form.\n */\n value?: any;\n /**\n * User-friendly display representation of the value (for example, \"Yes\"/\"No\" for boolean, \"25 years old\" for age).\n * Use this to display confirmation of what was extracted from the user's input.\n * @minLength 1\n * @maxLength 10000\n */\n displayValue?: string;\n}\n\n/** Interactive prompt for selecting multiple options from a predefined list. */\nexport interface MultiSelectInputDetails {\n /**\n * Form field identifier for the multi-select input.\n * @minLength 1\n * @maxLength 200\n */\n fieldTarget?: string;\n /**\n * Options available for selection, when relevant. Users can choose multiple options from this list.\n * @minSize 1\n * @maxSize 100\n */\n options?: Option[];\n /** When present, allows users to provide custom values not in the predefined options list. */\n allowedCustomValue?: CustomValue;\n}\n\n/** Selection option for input prompts. */\nexport interface Option {\n /**\n * Value to be submitted when this option is selected.\n * This is the technical value used in form processing and submission.\n * @minLength 1\n * @maxLength 10000\n */\n value?: string;\n /**\n * Human-readable label for display for this option.\n * @minLength 1\n * @maxLength 10000\n */\n label?: string;\n}\n\n/** Custom value configuration for input prompts. */\nexport interface CustomValue {\n /**\n * Description of the expected custom value format or content.\n * Displayed to guide users when they choose to provide a custom option.\n * @maxLength 10000\n */\n description?: string;\n}\n\n/** Interactive prompt for numeric input with validation constraints. */\nexport interface NumberInputDetails {\n /**\n * Form field identifier for the numeric input.\n * @minLength 1\n * @maxLength 200\n */\n fieldTarget?: string;\n /** Minimum and maximum value constraints for the numeric input. */\n rangeLimit?: NumberRangeLimit;\n /**\n * When provided, restricts input to multiples of this value.\n * For example, `2.5` would allow 2.5, 5.0, 7.5, and so on.\n */\n multipleOf?: number | null;\n}\n\n/** Numeric range constraints for number input validation. */\nexport interface NumberRangeLimit extends NumberRangeLimitEndOneOf {\n /** Maximum allowed value (inclusive). */\n maxInclusiveValue?: number | null;\n /** Maximum allowed value (exclusive). */\n maxExclusiveValue?: number | null;\n /** Minimum allowed value (inclusive). */\n minInclusiveValue?: number | null;\n}\n\n/** @oneof */\nexport interface NumberRangeLimitEndOneOf {\n /** Maximum allowed value (inclusive). */\n maxInclusiveValue?: number | null;\n /** Maximum allowed value (exclusive). */\n maxExclusiveValue?: number | null;\n}\n\n/** Visual separator element for organizing conversation flow. */\nexport interface SeparatorDetails {\n /** Type of visual separator to display in the conversation flow. */\n type?: TypeWithLiterals;\n}\n\nexport enum Type {\n /** Unknown separator type. */\n UNKNOWN_TYPE = 'UNKNOWN_TYPE',\n /** Paragraph break for visual content separation. */\n PARAGRAPH = 'PARAGRAPH',\n}\n\n/** @enumType */\nexport type TypeWithLiterals = Type | 'UNKNOWN_TYPE' | 'PARAGRAPH';\n\n/** Selector for selecting a single option from a predefined list. */\nexport interface SingleSelectInputDetails {\n /**\n * Form field identifier for the single-select input.\n * @minLength 1\n * @maxLength 200\n */\n fieldTarget?: string;\n /**\n * Options available for selection. Users can choose only one option from this list.\n * @minSize 1\n * @maxSize 100\n */\n options?: Option[];\n /** When present, allows users to provide a custom value not in the predefined options list. */\n allowedCustomValue?: CustomValue;\n}\n\n/** Error information when processing fails or validation errors occur. */\nexport interface ErrorDetails {\n /**\n * Error message detailing what went wrong during processing.\n * For display to the user when the AI cannot process their input or when validation fails.\n * @minLength 1\n * @maxLength 1000\n */\n messageText?: string;\n}\n\n/** Form submission confirmation containing submission information. */\nexport interface SubmissionDetails {\n /**\n * Form submission ID created when the form is successfully completed and submitted.\n * @format GUID\n */\n submissionId?: string;\n /**\n * Wix eCommerce checkout ID when the form includes payment processing.\n * Only present for forms that have payment fields or are connected to eCommerce flows.\n * @format GUID\n * @readonly\n */\n checkoutId?: string | null;\n}\n\n/** Important contextual information that may influence data extraction or user decisions. */\nexport interface ImportantTextDetails {\n /**\n * Form field identifier that this important information relates to.\n * @minLength 1\n * @maxLength 200\n */\n fieldTarget?: string;\n /**\n * Important contextual information to highlight.\n * This might include validation requirements, format expectations, or clarifying questions.\n * @minLength 1\n * @maxLength 10000\n */\n text?: string;\n}\n\n/** Diagnostic information for development and troubleshooting. */\nexport interface DebugDetails {\n /**\n * Diagnostic data for development and troubleshooting.\n * Contains information such as AI tools called, processing times, and internal state.\n */\n data?: Record<string, any> | null;\n}\n\n/** Stream completion signal indicating the end of a response stream. */\nexport interface EndOfResponseDetails {\n /**\n * Whether the response stream completed successfully.\n * When `false`, there may have been processing errors or interruptions.\n */\n success?: boolean;\n}\n\n/** Interactive prompt for file upload input. */\nexport interface FileUploadDetails {\n /**\n * Form field identifier for the file upload input.\n * @minLength 1\n * @maxLength 200\n */\n fieldTarget?: string;\n}\n\n/** Interactive prompt for digital signature capture. */\nexport interface SignatureDetails {\n /**\n * Form field identifier for the digital signature input.\n * @minLength 1\n * @maxLength 200\n */\n fieldTarget?: string;\n}\n\n/** Indicates which portion of user input was meaningful for data extraction. */\nexport interface MeaningfulInput {\n /**\n * Character position (0-indexed) where the meaningful portion of user input begins.\n * @max 10000\n */\n startOffset?: number;\n /**\n * Length in characters of the meaningful portion of user input.\n * Use this with `startOffset` to highlight the relevant text that was processed for data extraction.\n * @max 10000\n */\n length?: number;\n}\n\nexport interface CreateInteractiveFormSessionStreamedRequest {\n /**\n * Form ID to create an interactive session for.\n * @format GUID\n */\n formId: string;\n /**\n * Pre-filled values to apply to the form, to initialize the session with existing data.\n * Field keys must match the form schema field names.\n * For example: `{\"firstName\": \"John\", \"email\": \"john@example.com\", \"age\": 25}`.\n * These values are merged with any data extracted during the conversation.\n */\n currentValues?: Record<string, any> | null;\n /**\n * Whether the session should run in dry run mode when no actual form submission occurs.\n * In dry run mode, the full conversational flow works normally and form data is extracted,\n * but no actual form submission occurs.\n *\n * Default: `false`\n * @immutable\n */\n dryRun?: boolean;\n /** Caller's local date and time. */\n clientTime?: ClientTime;\n}\n\nexport interface CreateInteractiveFormSessionStreamedResponse {\n /**\n * AI assistant response chunk, streamed in real-time.\n * Process each chunk as it arrives to provide progressive user feedback.\n */\n responseChunk?: InteractiveFormSessionResponseChunk;\n /**\n * Information about the created interactive form session.\n * Only included in the first chunk of the stream to provide session details immediately.\n */\n interactiveFormSession?: InteractiveFormSession;\n}\n\nexport interface SendUserMessageRequest {\n /**\n * Interactive form session ID to send the message to.\n * @format GUID\n */\n interactiveFormSessionId: string;\n /**\n * User's natural language input.\n * The AI assistant analyzes this text to extract form field data and determine the next conversation step.\n * Maximum length: 10,000 characters.\n * @maxLength 10000\n */\n input?: string | null;\n /**\n * Form field values to apply to the session.\n * Use this to update form data from other sources while the conversation is ongoing.\n * These values override any existing data for the same field keys.\n * For example: `{\"lastName\": \"Smith\", \"phoneNumber\": \"+1234567890\"}`.\n */\n currentValues?: Record<string, any> | null;\n}\n\nexport interface SendUserMessageResponse {\n /** Updated interactive form session after the user input is processed. */\n interactiveFormSession?: InteractiveFormSession;\n /**\n * AI assistant response chunks generated from processing the user's message.\n * These can include extracted data, follow-up questions, input selectors, or submission confirmation.\n */\n responseChunks?: InteractiveFormSessionResponseChunk[];\n}\n\nexport interface SendUserMessageStreamedRequest {\n /**\n * Interactive form session ID to send the message to.\n * @format GUID\n */\n interactiveFormSessionId: string;\n /**\n * User's natural language input to process.\n * The AI assistant analyzes this text to extract form field data and determine the next conversation step.\n * @maxLength 10000\n */\n input?: string | null;\n /**\n * Form field values to apply to the session.\n * Use this to update form data from other sources while the conversation is ongoing.\n * These values override any existing data for the same field keys.\n * For example: `{\"lastName\": \"Smith\", \"phoneNumber\": \"+1234567890\"}`.\n */\n currentValues?: Record<string, any> | null;\n}\n\nexport interface SendUserMessageStreamedResponse {\n /** AI assistant response chunk streamed in real-time as the message is processed. */\n responseChunk?: InteractiveFormSessionResponseChunk;\n /**\n * Updated interactive form session information.\n * Session data, including session ID and form ID. Returned in the first chunk of the streamed response.\n */\n interactiveFormSession?: InteractiveFormSession;\n}\n\nexport interface ConverseRequest extends ConverseRequestRequestOneOf {\n /** Get state request */\n getStateRequest?: GetStateRequest;\n /** Call tools request */\n callToolsRequest?: CallToolsRequest;\n /** Relay assistant message request */\n relayAssistantMessage?: RelayAssistantMessageRequest;\n /** Usage request */\n usageRequest?: UsageRequest;\n /**\n * Request ID used for mapping the request to the response\n * @format GUID\n */\n requestId?: string;\n}\n\n/** @oneof */\nexport interface ConverseRequestRequestOneOf {\n /** Get state request */\n getStateRequest?: GetStateRequest;\n /** Call tools request */\n callToolsRequest?: CallToolsRequest;\n /** Relay assistant message request */\n relayAssistantMessage?: RelayAssistantMessageRequest;\n /** Usage request */\n usageRequest?: UsageRequest;\n}\n\nexport interface GetStateRequest {\n /**\n * Interactive form session ID\n * @format GUID\n */\n interactiveFormSessionId?: string;\n}\n\nexport interface CallToolsRequest {\n /**\n * Tool calls to be executed\n * @maxSize 100\n */\n calls?: Call[];\n /**\n * Interactive form session ID\n * @format GUID\n */\n interactiveFormSessionId?: string;\n}\n\nexport interface Call {\n /** Tool call arguments */\n args?: Record<string, any> | null;\n /**\n * Tool name to call\n * @minLength 1\n * @maxLength 100\n */\n toolName?: string;\n /**\n * Tool call ID\n * @minLength 1\n * @maxLength 100\n */\n callId?: string;\n}\n\nexport interface RelayAssistantMessageRequest {\n /**\n * Assistant message text\n * @minLength 1\n * @maxLength 10000\n */\n text?: string;\n /**\n * Interactive form session ID\n * @format GUID\n */\n interactiveFormSessionId?: string;\n}\n\nexport interface UsageRequest {\n /** Microcents spent for the request */\n microcentsSpent?: string;\n /**\n * Interactive form session ID\n * @format GUID\n */\n interactiveFormSessionId?: string;\n /**\n * Form ID\n * @format GUID\n */\n formId?: string;\n /** Usage details for the request */\n usage?: Usage;\n}\n\nexport interface Usage {\n /**\n * Model name used for the session\n * @minLength 1\n * @maxLength 100\n */\n model?: string | null;\n /** The total number of tokens in the Response including input and output text and audio tokens */\n totalTokens?: string;\n /** The number of input tokens used in the Response, including text and audio tokens. */\n inputTokens?: string;\n /** The number of output tokens sent in the Response, including text and audio tokens. */\n outputTokens?: string;\n /** Token details */\n tokenDetails?: Record<string, any> | null;\n}\n\nexport interface ConverseResponse extends ConverseResponseResponseOneOf {\n /** Get state response */\n getStateResponse?: GetStateResponse;\n /** Call tools response */\n callToolsResponse?: CallToolsResponse;\n /** Assistant response chunk */\n responseChunk?: InteractiveFormSessionResponseChunk;\n /** Response that signals that the request has been processed */\n acknowledgmentResponse?: AcknowledgmentResponse;\n /**\n * Request ID used for mapping the request to the response\n * @format GUID\n */\n requestId?: string;\n}\n\n/** @oneof */\nexport interface ConverseResponseResponseOneOf {\n /** Get state response */\n getStateResponse?: GetStateResponse;\n /** Call tools response */\n callToolsResponse?: CallToolsResponse;\n /** Assistant response chunk */\n responseChunk?: InteractiveFormSessionResponseChunk;\n /** Response that signals that the request has been processed */\n acknowledgmentResponse?: AcknowledgmentResponse;\n}\n\nexport interface GetStateResponse {\n /**\n * Available tools for the session\n * @maxSize 100\n */\n tools?: Tool[];\n /**\n * Context messages for the session\n * @maxSize 10000\n */\n contextMessages?: ContextMessage[];\n /**\n * System prompt text\n * @minLength 1\n * @maxLength 10000\n */\n systemPrompt?: string;\n /**\n * Form ID for the session\n * @format GUID\n */\n formId?: string;\n /**\n * Submission state message\n * @maxLength 10000\n */\n submissionStateMessage?: string | null;\n}\n\nexport interface Tool {\n /**\n * Tool type identifier\n * @minLength 1\n * @maxLength 10000\n */\n type?: string;\n /**\n * Tool name\n * @minLength 1\n * @maxLength 10000\n */\n name?: string | null;\n /**\n * Tool description\n * @minLength 1\n * @maxLength 10000\n */\n description?: string | null;\n /** Tool parameters */\n parameters?: Record<string, any> | null;\n}\n\nexport interface ContextMessage extends ContextMessageOptionsOneOf {\n /** User options */\n userOptions?: UserOptions;\n /** Assistant options */\n assistantOptions?: AssistantOptions;\n /** Function call options */\n functionCallOptions?: FunctionCallOptions;\n /** Function call output options */\n functionCallOutputOptions?: FunctionCallOutputOptions;\n /** Developer options */\n developerOptions?: DeveloperOptions;\n /** Role of the message sender */\n role?: RoleWithLiterals;\n}\n\n/** @oneof */\nexport interface ContextMessageOptionsOneOf {\n /** User options */\n userOptions?: UserOptions;\n /** Assistant options */\n assistantOptions?: AssistantOptions;\n /** Function call options */\n functionCallOptions?: FunctionCallOptions;\n /** Function call output options */\n functionCallOutputOptions?: FunctionCallOutputOptions;\n /** Developer options */\n developerOptions?: DeveloperOptions;\n}\n\nexport enum Role {\n /** Unknown message role. */\n UNKNOWN_ROLE = 'UNKNOWN_ROLE',\n /** Message from the user. */\n USER = 'USER',\n /** Message from the AI assistant. */\n ASSISTANT = 'ASSISTANT',\n /** Function call message. */\n FUNCTION_CALL = 'FUNCTION_CALL',\n /** Function call output message. */\n FUNCTION_CALL_OUTPUT = 'FUNCTION_CALL_OUTPUT',\n /** Message from the developer/system. */\n DEVELOPER = 'DEVELOPER',\n}\n\n/** @enumType */\nexport type RoleWithLiterals =\n | Role\n | 'UNKNOWN_ROLE'\n | 'USER'\n | 'ASSISTANT'\n | 'FUNCTION_CALL'\n | 'FUNCTION_CALL_OUTPUT'\n | 'DEVELOPER';\n\nexport interface UserOptions {\n /**\n * User message content\n * @minLength 1\n * @maxLength 10000\n */\n content?: string;\n}\n\nexport interface AssistantOptions {\n /**\n * Assistant message content\n * @minLength 1\n * @maxLength 10000\n */\n content?: string;\n}\n\nexport interface FunctionCallOptions {\n /**\n * Call name\n * @minLength 1\n * @maxLength 100\n */\n functionName?: string;\n /** Call arguments */\n args?: Record<string, any> | null;\n /**\n * Call ID\n * @minLength 1\n * @maxLength 100\n */\n callId?: string;\n}\n\nexport interface FunctionCallOutputOptions {\n /** Call output data */\n output?: Record<string, any> | null;\n /**\n * Call ID\n * @minLength 1\n * @maxLength 100\n */\n callId?: string;\n}\n\nexport interface DeveloperOptions {\n /**\n * Developer message content\n * @minLength 1\n * @maxLength 10000\n */\n content?: string;\n}\n\nexport interface CallToolsResponse {\n /**\n * Tool call responses\n * @maxSize 100\n */\n responses?: Response[];\n}\n\nexport interface Response {\n /**\n * Tool call ID\n * @minLength 1\n * @maxLength 100\n */\n callId?: string;\n /** Tool call response data */\n response?: Record<string, any> | null;\n}\n\nexport interface AcknowledgmentResponse {\n /** Whether request processing was successful. */\n success?: boolean;\n}\n\nexport interface OutputInteractiveFormSessionStreamedRequest {\n /**\n * Interactive form session id to output\n * @format GUID\n */\n interactiveFormSessionId?: string;\n}\n\nexport interface OutputInteractiveFormSessionStreamedResponse {\n /** Interactive form session id */\n interactiveFormSession?: InteractiveFormSession;\n /** Assistant response chunk for the session */\n responseChunk?: InteractiveFormSessionResponseChunk;\n}\n\n/** Request to report a conversation for quality assurance. */\nexport interface ReportConversationRequest {\n /**\n * Interactive form session ID to report.\n * @format GUID\n */\n interactiveFormSessionId?: string;\n /**\n * Details about the issue or feedback.\n * @minLength 1\n * @maxLength 10000\n */\n description?: string;\n /**\n * Viewer debug URL of the conversation\n * @format WEB_URL\n */\n viewerDebugUrl?: string;\n}\n\n/** Response confirming conversation report submission. */\nexport interface ReportConversationResponse {\n /** Whether the report was successfully created. */\n success?: boolean | null;\n /**\n * Error message.\n * @maxLength 10000\n */\n errorMessage?: string | null;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n/** @docsIgnore */\nexport type SendUserMessageApplicationErrors = {\n code?: 'EMPTY_REQUEST';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type SendUserMessageStreamedApplicationErrors = {\n code?: 'EMPTY_REQUEST';\n description?: string;\n data?: Record<string, any>;\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\nexport {\n InteractiveFormSession as InteractiveFormSessionOriginal,\n CreateInteractiveFormSessionRequest as CreateInteractiveFormSessionRequestOriginal,\n ClientTime as ClientTimeOriginal,\n CreateInteractiveFormSessionResponse as CreateInteractiveFormSessionResponseOriginal,\n InteractiveFormSessionResponseChunk as InteractiveFormSessionResponseChunkOriginal,\n InteractiveFormSessionResponseChunkOfOneOf as InteractiveFormSessionResponseChunkOfOneOfOriginal,\n ChunkType as ChunkTypeOriginal,\n ChunkTypeWithLiterals as ChunkTypeWithLiteralsOriginal,\n TextDetails as TextDetailsOriginal,\n Style as StyleOriginal,\n StyleWithLiterals as StyleWithLiteralsOriginal,\n TextDataDetails as TextDataDetailsOriginal,\n MultiSelectInputDetails as MultiSelectInputDetailsOriginal,\n Option as OptionOriginal,\n CustomValue as CustomValueOriginal,\n NumberInputDetails as NumberInputDetailsOriginal,\n NumberRangeLimit as NumberRangeLimitOriginal,\n NumberRangeLimitEndOneOf as NumberRangeLimitEndOneOfOriginal,\n SeparatorDetails as SeparatorDetailsOriginal,\n Type as TypeOriginal,\n TypeWithLiterals as TypeWithLiteralsOriginal,\n SingleSelectInputDetails as SingleSelectInputDetailsOriginal,\n ErrorDetails as ErrorDetailsOriginal,\n SubmissionDetails as SubmissionDetailsOriginal,\n ImportantTextDetails as ImportantTextDetailsOriginal,\n DebugDetails as DebugDetailsOriginal,\n EndOfResponseDetails as EndOfResponseDetailsOriginal,\n FileUploadDetails as FileUploadDetailsOriginal,\n SignatureDetails as SignatureDetailsOriginal,\n MeaningfulInput as MeaningfulInputOriginal,\n CreateInteractiveFormSessionStreamedRequest as CreateInteractiveFormSessionStreamedRequestOriginal,\n CreateInteractiveFormSessionStreamedResponse as CreateInteractiveFormSessionStreamedResponseOriginal,\n SendUserMessageRequest as SendUserMessageRequestOriginal,\n SendUserMessageResponse as SendUserMessageResponseOriginal,\n SendUserMessageStreamedRequest as SendUserMessageStreamedRequestOriginal,\n SendUserMessageStreamedResponse as SendUserMessageStreamedResponseOriginal,\n ConverseRequest as ConverseRequestOriginal,\n ConverseRequestRequestOneOf as ConverseRequestRequestOneOfOriginal,\n GetStateRequest as GetStateRequestOriginal,\n CallToolsRequest as CallToolsRequestOriginal,\n Call as CallOriginal,\n RelayAssistantMessageRequest as RelayAssistantMessageRequestOriginal,\n UsageRequest as UsageRequestOriginal,\n Usage as UsageOriginal,\n ConverseResponse as ConverseResponseOriginal,\n ConverseResponseResponseOneOf as ConverseResponseResponseOneOfOriginal,\n GetStateResponse as GetStateResponseOriginal,\n Tool as ToolOriginal,\n ContextMessage as ContextMessageOriginal,\n ContextMessageOptionsOneOf as ContextMessageOptionsOneOfOriginal,\n Role as RoleOriginal,\n RoleWithLiterals as RoleWithLiteralsOriginal,\n UserOptions as UserOptionsOriginal,\n AssistantOptions as AssistantOptionsOriginal,\n FunctionCallOptions as FunctionCallOptionsOriginal,\n FunctionCallOutputOptions as FunctionCallOutputOptionsOriginal,\n DeveloperOptions as DeveloperOptionsOriginal,\n CallToolsResponse as CallToolsResponseOriginal,\n Response as ResponseOriginal,\n AcknowledgmentResponse as AcknowledgmentResponseOriginal,\n OutputInteractiveFormSessionStreamedRequest as OutputInteractiveFormSessionStreamedRequestOriginal,\n OutputInteractiveFormSessionStreamedResponse as OutputInteractiveFormSessionStreamedResponseOriginal,\n ReportConversationRequest as ReportConversationRequestOriginal,\n ReportConversationResponse as ReportConversationResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n SendUserMessageApplicationErrors as SendUserMessageApplicationErrorsOriginal,\n SendUserMessageStreamedApplicationErrors as SendUserMessageStreamedApplicationErrorsOriginal,\n} from './forms-ai-v1-interactive-form-session-interactive-form-sessions.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sCAAAA;AAAA,EAAA,4CAAAC;AAAA,EAAA,uBAAAC;AAAA,EAAA,+BAAAC;AAAA;AAAA;;;ACAA,mBAA6C;AAC7C,6BAA+B;AAC/B,0BAA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,wCAOd;AACA,QAAM,UAAU,CAAC;AAEjB,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,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,mBAOd;AACA,QAAM,UAAU;AAAA,IACd,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","ChunkType","Style","Type","Role","WebhookIdentityType","createInteractiveFormSession","createInteractiveFormSessionStreamed","sendUserMessage","sendUserMessageStreamed"]}
|