@wix/auto_sdk_forms_interactive-form-sessions 1.0.0

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 (39) hide show
  1. package/build/cjs/index.d.ts +56 -0
  2. package/build/cjs/index.js +538 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1082 -0
  5. package/build/cjs/index.typings.js +489 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +494 -0
  8. package/build/cjs/meta.js +357 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/es/index.d.mts +56 -0
  11. package/build/es/index.mjs +505 -0
  12. package/build/es/index.mjs.map +1 -0
  13. package/build/es/index.typings.d.mts +1082 -0
  14. package/build/es/index.typings.mjs +456 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/es/meta.d.mts +494 -0
  17. package/build/es/meta.mjs +326 -0
  18. package/build/es/meta.mjs.map +1 -0
  19. package/build/es/package.json +3 -0
  20. package/build/internal/cjs/index.d.ts +56 -0
  21. package/build/internal/cjs/index.js +538 -0
  22. package/build/internal/cjs/index.js.map +1 -0
  23. package/build/internal/cjs/index.typings.d.ts +1082 -0
  24. package/build/internal/cjs/index.typings.js +489 -0
  25. package/build/internal/cjs/index.typings.js.map +1 -0
  26. package/build/internal/cjs/meta.d.ts +494 -0
  27. package/build/internal/cjs/meta.js +357 -0
  28. package/build/internal/cjs/meta.js.map +1 -0
  29. package/build/internal/es/index.d.mts +56 -0
  30. package/build/internal/es/index.mjs +505 -0
  31. package/build/internal/es/index.mjs.map +1 -0
  32. package/build/internal/es/index.typings.d.mts +1082 -0
  33. package/build/internal/es/index.typings.mjs +456 -0
  34. package/build/internal/es/index.typings.mjs.map +1 -0
  35. package/build/internal/es/meta.d.mts +494 -0
  36. package/build/internal/es/meta.mjs +326 -0
  37. package/build/internal/es/meta.mjs.map +1 -0
  38. package/meta/package.json +3 -0
  39. package/package.json +54 -0
@@ -0,0 +1,357 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // meta.ts
21
+ var meta_exports = {};
22
+ __export(meta_exports, {
23
+ createInteractiveFormSession: () => createInteractiveFormSession2,
24
+ createInteractiveFormSessionStreamed: () => createInteractiveFormSessionStreamed2,
25
+ reportConversation: () => reportConversation2,
26
+ sendUserMessage: () => sendUserMessage2,
27
+ sendUserMessageStreamed: () => sendUserMessageStreamed2
28
+ });
29
+ module.exports = __toCommonJS(meta_exports);
30
+
31
+ // src/forms-ai-v1-interactive-form-session-interactive-form-sessions.http.ts
32
+ var import_float = require("@wix/sdk-runtime/transformations/float");
33
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
34
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
35
+ function resolveWixFormsAiV1InteractiveFormSessionsServiceUrl(opts) {
36
+ const domainToMappings = {
37
+ "bo._base_domain_": [
38
+ {
39
+ srcPath: "/_api/form-ai-assistant",
40
+ destPath: ""
41
+ }
42
+ ],
43
+ "wixbo.ai": [
44
+ {
45
+ srcPath: "/_api/form-ai-assistant",
46
+ destPath: ""
47
+ }
48
+ ],
49
+ "wix-bo.com": [
50
+ {
51
+ srcPath: "/_api/form-ai-assistant",
52
+ destPath: ""
53
+ }
54
+ ],
55
+ "*.wixforms.com": [
56
+ {
57
+ srcPath: "/_api/form-ai-assistant",
58
+ destPath: ""
59
+ }
60
+ ],
61
+ "manage._base_domain_": [
62
+ {
63
+ srcPath: "/_api/form-ai-assistant",
64
+ destPath: ""
65
+ }
66
+ ],
67
+ _: [
68
+ {
69
+ srcPath: "/_api/form-ai-assistant",
70
+ destPath: ""
71
+ }
72
+ ],
73
+ "www.wixapis.com": [
74
+ {
75
+ srcPath: "/forms/ai/v1/chat-settings",
76
+ destPath: "/v1/chat-settings"
77
+ }
78
+ ],
79
+ "*.dev.wix-code.com": [
80
+ {
81
+ srcPath: "/_api/form-ai-assistant",
82
+ destPath: ""
83
+ }
84
+ ]
85
+ };
86
+ return (0, import_rest_modules.resolveUrl)(Object.assign(opts, { domainToMappings }));
87
+ }
88
+ var PACKAGE_NAME = "@wix/auto_sdk_forms_interactive-form-sessions";
89
+ function createInteractiveFormSession(payload) {
90
+ function __createInteractiveFormSession({ host }) {
91
+ const metadata = {
92
+ entityFqdn: "wix.forms.ai.v1.interactive_form_session",
93
+ method: "POST",
94
+ methodFqn: "wix.forms.ai.v1.InteractiveFormSessionsService.CreateInteractiveFormSession",
95
+ packageName: PACKAGE_NAME,
96
+ url: resolveWixFormsAiV1InteractiveFormSessionsServiceUrl({
97
+ protoPath: "/v1/interactive-form-sessions",
98
+ data: payload,
99
+ host
100
+ }),
101
+ data: payload,
102
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
103
+ {
104
+ transformFn: import_float.transformRESTFloatToSDKFloat,
105
+ paths: [
106
+ { path: "responseChunks.numberInputDetails.multipleOf" },
107
+ {
108
+ path: "responseChunks.numberInputDetails.rangeLimit.maxInclusiveValue"
109
+ },
110
+ {
111
+ path: "responseChunks.numberInputDetails.rangeLimit.maxExclusiveValue"
112
+ },
113
+ {
114
+ path: "responseChunks.numberInputDetails.rangeLimit.minInclusiveValue"
115
+ }
116
+ ]
117
+ }
118
+ ])
119
+ };
120
+ return metadata;
121
+ }
122
+ return __createInteractiveFormSession;
123
+ }
124
+ function createInteractiveFormSessionStreamed(payload) {
125
+ function __createInteractiveFormSessionStreamed({ host }) {
126
+ const metadata = {
127
+ entityFqdn: "wix.forms.ai.v1.interactive_form_session",
128
+ method: "POST",
129
+ methodFqn: "wix.forms.ai.v1.InteractiveFormSessionsService.CreateInteractiveFormSessionStreamed",
130
+ packageName: PACKAGE_NAME,
131
+ url: resolveWixFormsAiV1InteractiveFormSessionsServiceUrl({
132
+ protoPath: "/v1/interactive-form-sessions/create-streamed",
133
+ data: payload,
134
+ host
135
+ }),
136
+ data: payload,
137
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
138
+ {
139
+ transformFn: import_float.transformRESTFloatToSDKFloat,
140
+ paths: [
141
+ { path: "responseChunk.numberInputDetails.multipleOf" },
142
+ {
143
+ path: "responseChunk.numberInputDetails.rangeLimit.maxInclusiveValue"
144
+ },
145
+ {
146
+ path: "responseChunk.numberInputDetails.rangeLimit.maxExclusiveValue"
147
+ },
148
+ {
149
+ path: "responseChunk.numberInputDetails.rangeLimit.minInclusiveValue"
150
+ }
151
+ ]
152
+ }
153
+ ])
154
+ };
155
+ return metadata;
156
+ }
157
+ return __createInteractiveFormSessionStreamed;
158
+ }
159
+ function sendUserMessage(payload) {
160
+ function __sendUserMessage({ host }) {
161
+ const metadata = {
162
+ entityFqdn: "wix.forms.ai.v1.interactive_form_session",
163
+ method: "POST",
164
+ methodFqn: "wix.forms.ai.v1.InteractiveFormSessionsService.SendUserMessage",
165
+ packageName: PACKAGE_NAME,
166
+ url: resolveWixFormsAiV1InteractiveFormSessionsServiceUrl({
167
+ protoPath: "/v1/interactive-form-sessions/{interactiveFormSessionId}/send-user-message",
168
+ data: payload,
169
+ host
170
+ }),
171
+ data: payload,
172
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
173
+ {
174
+ transformFn: import_float.transformRESTFloatToSDKFloat,
175
+ paths: [
176
+ { path: "responseChunks.numberInputDetails.multipleOf" },
177
+ {
178
+ path: "responseChunks.numberInputDetails.rangeLimit.maxInclusiveValue"
179
+ },
180
+ {
181
+ path: "responseChunks.numberInputDetails.rangeLimit.maxExclusiveValue"
182
+ },
183
+ {
184
+ path: "responseChunks.numberInputDetails.rangeLimit.minInclusiveValue"
185
+ }
186
+ ]
187
+ }
188
+ ])
189
+ };
190
+ return metadata;
191
+ }
192
+ return __sendUserMessage;
193
+ }
194
+ function sendUserMessageStreamed(payload) {
195
+ function __sendUserMessageStreamed({ host }) {
196
+ const metadata = {
197
+ entityFqdn: "wix.forms.ai.v1.interactive_form_session",
198
+ method: "POST",
199
+ methodFqn: "wix.forms.ai.v1.InteractiveFormSessionsService.SendUserMessageStreamed",
200
+ packageName: PACKAGE_NAME,
201
+ url: resolveWixFormsAiV1InteractiveFormSessionsServiceUrl({
202
+ protoPath: "/v1/interactive-form-sessions/{interactiveFormSessionId}/send-user-message-streamed",
203
+ data: payload,
204
+ host
205
+ }),
206
+ data: payload,
207
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
208
+ {
209
+ transformFn: import_float.transformRESTFloatToSDKFloat,
210
+ paths: [
211
+ { path: "responseChunk.numberInputDetails.multipleOf" },
212
+ {
213
+ path: "responseChunk.numberInputDetails.rangeLimit.maxInclusiveValue"
214
+ },
215
+ {
216
+ path: "responseChunk.numberInputDetails.rangeLimit.maxExclusiveValue"
217
+ },
218
+ {
219
+ path: "responseChunk.numberInputDetails.rangeLimit.minInclusiveValue"
220
+ }
221
+ ]
222
+ }
223
+ ])
224
+ };
225
+ return metadata;
226
+ }
227
+ return __sendUserMessageStreamed;
228
+ }
229
+ function reportConversation(payload) {
230
+ function __reportConversation({ host }) {
231
+ const metadata = {
232
+ entityFqdn: "wix.forms.ai.v1.interactive_form_session",
233
+ method: "POST",
234
+ methodFqn: "wix.forms.ai.v1.InteractiveFormSessionsService.ReportConversation",
235
+ packageName: PACKAGE_NAME,
236
+ url: resolveWixFormsAiV1InteractiveFormSessionsServiceUrl({
237
+ protoPath: "/v1/interactive-form-sessions/report",
238
+ data: payload,
239
+ host
240
+ }),
241
+ data: payload
242
+ };
243
+ return metadata;
244
+ }
245
+ return __reportConversation;
246
+ }
247
+
248
+ // src/forms-ai-v1-interactive-form-session-interactive-form-sessions.meta.ts
249
+ function createInteractiveFormSession2() {
250
+ const payload = {};
251
+ const getRequestOptions = createInteractiveFormSession(
252
+ payload
253
+ );
254
+ const getUrl = (context) => {
255
+ const { url } = getRequestOptions(context);
256
+ return url;
257
+ };
258
+ return {
259
+ getUrl,
260
+ httpMethod: "POST",
261
+ path: "/v1/interactive-form-sessions",
262
+ pathParams: {},
263
+ __requestType: null,
264
+ __originalRequestType: null,
265
+ __responseType: null,
266
+ __originalResponseType: null
267
+ };
268
+ }
269
+ function createInteractiveFormSessionStreamed2() {
270
+ const payload = {};
271
+ const getRequestOptions = createInteractiveFormSessionStreamed(
272
+ payload
273
+ );
274
+ const getUrl = (context) => {
275
+ const { url } = getRequestOptions(context);
276
+ return url;
277
+ };
278
+ return {
279
+ getUrl,
280
+ httpMethod: "POST",
281
+ path: "/v1/interactive-form-sessions/create-streamed",
282
+ pathParams: {},
283
+ __requestType: null,
284
+ __originalRequestType: null,
285
+ __responseType: null,
286
+ __originalResponseType: null
287
+ };
288
+ }
289
+ function sendUserMessage2() {
290
+ const payload = {
291
+ interactiveFormSessionId: ":interactiveFormSessionId"
292
+ };
293
+ const getRequestOptions = sendUserMessage(payload);
294
+ const getUrl = (context) => {
295
+ const { url } = getRequestOptions(context);
296
+ return url;
297
+ };
298
+ return {
299
+ getUrl,
300
+ httpMethod: "POST",
301
+ path: "/v1/interactive-form-sessions/{interactiveFormSessionId}/send-user-message",
302
+ pathParams: { interactiveFormSessionId: "interactiveFormSessionId" },
303
+ __requestType: null,
304
+ __originalRequestType: null,
305
+ __responseType: null,
306
+ __originalResponseType: null
307
+ };
308
+ }
309
+ function sendUserMessageStreamed2() {
310
+ const payload = {
311
+ interactiveFormSessionId: ":interactiveFormSessionId"
312
+ };
313
+ const getRequestOptions = sendUserMessageStreamed(
314
+ payload
315
+ );
316
+ const getUrl = (context) => {
317
+ const { url } = getRequestOptions(context);
318
+ return url;
319
+ };
320
+ return {
321
+ getUrl,
322
+ httpMethod: "POST",
323
+ path: "/v1/interactive-form-sessions/{interactiveFormSessionId}/send-user-message-streamed",
324
+ pathParams: { interactiveFormSessionId: "interactiveFormSessionId" },
325
+ __requestType: null,
326
+ __originalRequestType: null,
327
+ __responseType: null,
328
+ __originalResponseType: null
329
+ };
330
+ }
331
+ function reportConversation2() {
332
+ const payload = {};
333
+ const getRequestOptions = reportConversation(payload);
334
+ const getUrl = (context) => {
335
+ const { url } = getRequestOptions(context);
336
+ return url;
337
+ };
338
+ return {
339
+ getUrl,
340
+ httpMethod: "POST",
341
+ path: "/v1/interactive-form-sessions/report",
342
+ pathParams: {},
343
+ __requestType: null,
344
+ __originalRequestType: null,
345
+ __responseType: null,
346
+ __originalResponseType: null
347
+ };
348
+ }
349
+ // Annotate the CommonJS export names for ESM import in node:
350
+ 0 && (module.exports = {
351
+ createInteractiveFormSession,
352
+ createInteractiveFormSessionStreamed,
353
+ reportConversation,
354
+ sendUserMessage,
355
+ sendUserMessageStreamed
356
+ });
357
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +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 '*.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/** Starts interactive form session for a given form */\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/** Starts interactive form session for a given form with streamed response */\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/** Sends user message to the interactive form session */\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/** Sends user message to the interactive form session with streamed response */\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\n/** Report conversation for quality assurance */\nexport function reportConversation(\n payload: object\n): RequestOptionsFactory<any> {\n function __reportConversation({ 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.ReportConversation',\n packageName: PACKAGE_NAME,\n url: resolveWixFormsAiV1InteractiveFormSessionsServiceUrl({\n protoPath: '/v1/interactive-form-sessions/report',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __reportConversation;\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 function reportConversation(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixFormsAiV1InteractiveFormSessionUniversalTypes.ReportConversationRequest,\n ambassadorWixFormsAiV1InteractiveFormSessionTypes.ReportConversationRequest,\n ambassadorWixFormsAiV1InteractiveFormSessionUniversalTypes.ReportConversationResponse,\n ambassadorWixFormsAiV1InteractiveFormSessionTypes.ReportConversationResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixFormsAiV1InteractiveFormSession.reportConversation(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/report',\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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,sCAAAA;AAAA,EAAA,4CAAAC;AAAA,EAAA,0BAAAC;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;A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B,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,sBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACyC,mBAAmB,OAAO;AAEzE,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;","names":["createInteractiveFormSession","createInteractiveFormSessionStreamed","reportConversation","sendUserMessage","sendUserMessageStreamed","payload","createInteractiveFormSession","createInteractiveFormSessionStreamed","sendUserMessage","sendUserMessageStreamed","reportConversation"]}
@@ -0,0 +1,56 @@
1
+ import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
+ import { CreateInteractiveFormSessionOptions, InteractiveFormSession, CreateInteractiveFormSessionStreamedOptions, CreateInteractiveFormSessionStreamedResponse, SendUserMessageOptions, SendUserMessageResponse, SendUserMessageApplicationErrors, SendUserMessageStreamedOptions, SendUserMessageStreamedResponse, SendUserMessageStreamedApplicationErrors, ReportConversationOptions, ReportConversationResponse } 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, 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
+
5
+ declare function createInteractiveFormSession$1(httpClient: HttpClient): CreateInteractiveFormSessionSignature;
6
+ interface CreateInteractiveFormSessionSignature {
7
+ /**
8
+ * Starts interactive form session for a given form
9
+ * @param - Interactive form session to be created.
10
+ * @returns Interactive form session created
11
+ */
12
+ (formId: string, options?: CreateInteractiveFormSessionOptions): Promise<NonNullablePaths<InteractiveFormSession, `_id` | `formId`, 2>>;
13
+ }
14
+ declare function createInteractiveFormSessionStreamed$1(httpClient: HttpClient): CreateInteractiveFormSessionStreamedSignature;
15
+ interface CreateInteractiveFormSessionStreamedSignature {
16
+ /**
17
+ * Starts interactive form session for a given form with streamed response
18
+ * @param - Interactive form session to be created.
19
+ */
20
+ (formId: string, options?: CreateInteractiveFormSessionStreamedOptions): Promise<NonNullablePaths<CreateInteractiveFormSessionStreamedResponse, `responseChunk.textDetails.text` | `responseChunk.textDetails.style` | `responseChunk.textDataDetails.fieldTarget` | `responseChunk.textDataDetails.text` | `responseChunk.textDataDetails.displayValue` | `responseChunk.multiSelectInputDetails.fieldTarget` | `responseChunk.multiSelectInputDetails.options` | `responseChunk.multiSelectInputDetails.options.${number}.value` | `responseChunk.multiSelectInputDetails.options.${number}.label` | `responseChunk.multiSelectInputDetails.allowedCustomValue.description` | `responseChunk.numberInputDetails.fieldTarget` | `responseChunk.separatorDetails.type` | `responseChunk.singleSelectInputDetails.fieldTarget` | `responseChunk.singleSelectInputDetails.options` | `responseChunk.errorDetails.messageText` | `responseChunk.submissionDetails.submissionId` | `responseChunk.importantTextDetails.fieldTarget` | `responseChunk.importantTextDetails.text` | `responseChunk.endOfResponseDetails.success` | `responseChunk.fileUploadDetails.fieldTarget` | `responseChunk.signatureDetails.fieldTarget` | `responseChunk.chunkType` | `responseChunk.meaningfulInput.startOffset` | `responseChunk.meaningfulInput.length` | `interactiveFormSession._id` | `interactiveFormSession.formId`, 6>>;
21
+ }
22
+ declare function sendUserMessage$1(httpClient: HttpClient): SendUserMessageSignature;
23
+ interface SendUserMessageSignature {
24
+ /**
25
+ * Sends user message to the interactive form session
26
+ * @param - Interactive form session id
27
+ */
28
+ (interactiveFormSessionId: string, options?: SendUserMessageOptions): Promise<NonNullablePaths<SendUserMessageResponse, `interactiveFormSession._id` | `interactiveFormSession.formId` | `responseChunks` | `responseChunks.${number}.textDetails.text` | `responseChunks.${number}.textDetails.style` | `responseChunks.${number}.textDataDetails.fieldTarget` | `responseChunks.${number}.textDataDetails.text` | `responseChunks.${number}.textDataDetails.displayValue` | `responseChunks.${number}.multiSelectInputDetails.fieldTarget` | `responseChunks.${number}.multiSelectInputDetails.allowedCustomValue.description` | `responseChunks.${number}.numberInputDetails.fieldTarget` | `responseChunks.${number}.separatorDetails.type` | `responseChunks.${number}.singleSelectInputDetails.fieldTarget` | `responseChunks.${number}.errorDetails.messageText` | `responseChunks.${number}.submissionDetails.submissionId` | `responseChunks.${number}.importantTextDetails.fieldTarget` | `responseChunks.${number}.importantTextDetails.text` | `responseChunks.${number}.endOfResponseDetails.success` | `responseChunks.${number}.fileUploadDetails.fieldTarget` | `responseChunks.${number}.signatureDetails.fieldTarget` | `responseChunks.${number}.chunkType` | `responseChunks.${number}.meaningfulInput.startOffset` | `responseChunks.${number}.meaningfulInput.length`, 6> & {
29
+ __applicationErrorsType?: SendUserMessageApplicationErrors;
30
+ }>;
31
+ }
32
+ declare function sendUserMessageStreamed$1(httpClient: HttpClient): SendUserMessageStreamedSignature;
33
+ interface SendUserMessageStreamedSignature {
34
+ /**
35
+ * Sends user message to the interactive form session with streamed response
36
+ * @param - Interactive form session id
37
+ */
38
+ (interactiveFormSessionId: string, options?: SendUserMessageStreamedOptions): Promise<NonNullablePaths<SendUserMessageStreamedResponse, `responseChunk.textDetails.text` | `responseChunk.textDetails.style` | `responseChunk.textDataDetails.fieldTarget` | `responseChunk.textDataDetails.text` | `responseChunk.textDataDetails.displayValue` | `responseChunk.multiSelectInputDetails.fieldTarget` | `responseChunk.multiSelectInputDetails.options` | `responseChunk.multiSelectInputDetails.options.${number}.value` | `responseChunk.multiSelectInputDetails.options.${number}.label` | `responseChunk.multiSelectInputDetails.allowedCustomValue.description` | `responseChunk.numberInputDetails.fieldTarget` | `responseChunk.separatorDetails.type` | `responseChunk.singleSelectInputDetails.fieldTarget` | `responseChunk.singleSelectInputDetails.options` | `responseChunk.errorDetails.messageText` | `responseChunk.submissionDetails.submissionId` | `responseChunk.importantTextDetails.fieldTarget` | `responseChunk.importantTextDetails.text` | `responseChunk.endOfResponseDetails.success` | `responseChunk.fileUploadDetails.fieldTarget` | `responseChunk.signatureDetails.fieldTarget` | `responseChunk.chunkType` | `responseChunk.meaningfulInput.startOffset` | `responseChunk.meaningfulInput.length` | `interactiveFormSession._id` | `interactiveFormSession.formId`, 6> & {
39
+ __applicationErrorsType?: SendUserMessageStreamedApplicationErrors;
40
+ }>;
41
+ }
42
+ declare function reportConversation$1(httpClient: HttpClient): ReportConversationSignature;
43
+ interface ReportConversationSignature {
44
+ /**
45
+ * Report conversation for quality assurance
46
+ */
47
+ (options?: ReportConversationOptions): Promise<ReportConversationResponse>;
48
+ }
49
+
50
+ declare const createInteractiveFormSession: MaybeContext<BuildRESTFunction<typeof createInteractiveFormSession$1> & typeof createInteractiveFormSession$1>;
51
+ declare const createInteractiveFormSessionStreamed: MaybeContext<BuildRESTFunction<typeof createInteractiveFormSessionStreamed$1> & typeof createInteractiveFormSessionStreamed$1>;
52
+ declare const sendUserMessage: MaybeContext<BuildRESTFunction<typeof sendUserMessage$1> & typeof sendUserMessage$1>;
53
+ declare const sendUserMessageStreamed: MaybeContext<BuildRESTFunction<typeof sendUserMessageStreamed$1> & typeof sendUserMessageStreamed$1>;
54
+ declare const reportConversation: MaybeContext<BuildRESTFunction<typeof reportConversation$1> & typeof reportConversation$1>;
55
+
56
+ export { CreateInteractiveFormSessionOptions, CreateInteractiveFormSessionStreamedOptions, CreateInteractiveFormSessionStreamedResponse, InteractiveFormSession, ReportConversationOptions, ReportConversationResponse, SendUserMessageApplicationErrors, SendUserMessageOptions, SendUserMessageResponse, SendUserMessageStreamedApplicationErrors, SendUserMessageStreamedOptions, SendUserMessageStreamedResponse, createInteractiveFormSession, createInteractiveFormSessionStreamed, reportConversation, sendUserMessage, sendUserMessageStreamed };