@wix/auto_sdk_rich-content_ricos-conversations 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 +2464 -0
  2. package/build/cjs/index.js +1506 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +1468 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +2438 -0
  8. package/build/cjs/meta.js +1401 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/es/index.d.mts +2464 -0
  11. package/build/es/index.mjs +1433 -0
  12. package/build/es/index.mjs.map +1 -0
  13. package/build/es/index.typings.d.mts +1 -0
  14. package/build/es/index.typings.mjs +1395 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/es/meta.d.mts +2438 -0
  17. package/build/es/meta.mjs +1325 -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 +72 -0
  21. package/build/internal/cjs/index.js +1506 -0
  22. package/build/internal/cjs/index.js.map +1 -0
  23. package/build/internal/cjs/index.typings.d.ts +2525 -0
  24. package/build/internal/cjs/index.typings.js +1468 -0
  25. package/build/internal/cjs/index.typings.js.map +1 -0
  26. package/build/internal/cjs/meta.d.ts +2438 -0
  27. package/build/internal/cjs/meta.js +1401 -0
  28. package/build/internal/cjs/meta.js.map +1 -0
  29. package/build/internal/es/index.d.mts +72 -0
  30. package/build/internal/es/index.mjs +1433 -0
  31. package/build/internal/es/index.mjs.map +1 -0
  32. package/build/internal/es/index.typings.d.mts +2525 -0
  33. package/build/internal/es/index.typings.mjs +1395 -0
  34. package/build/internal/es/index.typings.mjs.map +1 -0
  35. package/build/internal/es/meta.d.mts +2438 -0
  36. package/build/internal/es/meta.mjs +1325 -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,1395 @@
1
+ // src/ricos-v1-ricos-conversation-ricos-conversations.universal.ts
2
+ import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
3
+ import {
4
+ renameKeysFromSDKRequestToRESTRequest,
5
+ renameKeysFromRESTResponseToSDKResponse
6
+ } from "@wix/sdk-runtime/rename-all-nested-keys";
7
+
8
+ // src/ricos-v1-ricos-conversation-ricos-conversations.http.ts
9
+ import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
10
+ import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
11
+ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
12
+ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
13
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
14
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
15
+ function resolveWixRicosV1RicosAiAssistantUrl(opts) {
16
+ const domainToMappings = {
17
+ "bo._base_domain_": [
18
+ {
19
+ srcPath: "/_api/ricos-ai-assistant",
20
+ destPath: ""
21
+ }
22
+ ],
23
+ "wixbo.ai": [
24
+ {
25
+ srcPath: "/_api/ricos-ai-assistant",
26
+ destPath: ""
27
+ }
28
+ ],
29
+ "wix-bo.com": [
30
+ {
31
+ srcPath: "/_api/ricos-ai-assistant",
32
+ destPath: ""
33
+ }
34
+ ],
35
+ "manage._base_domain_": [
36
+ {
37
+ srcPath: "/_api/ricos-ai-assistant",
38
+ destPath: ""
39
+ }
40
+ ],
41
+ "www.wixapis.com": [
42
+ {
43
+ srcPath: "/ricos/v1/ricos-conversations",
44
+ destPath: "/v1/ricos-conversations"
45
+ }
46
+ ]
47
+ };
48
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
49
+ }
50
+ var PACKAGE_NAME = "@wix/auto_sdk_rich-content_ricos-conversations";
51
+ function createConversationStreamed(payload) {
52
+ function __createConversationStreamed({ host }) {
53
+ const serializedData = transformPaths(payload, [
54
+ {
55
+ transformFn: transformSDKFloatToRESTFloat,
56
+ paths: [
57
+ {
58
+ path: "ricosConversation.messageInRichContent.nodes.galleryData.items.image.media.duration"
59
+ },
60
+ {
61
+ path: "ricosConversation.messageInRichContent.nodes.galleryData.items.video.media.duration"
62
+ },
63
+ {
64
+ path: "ricosConversation.messageInRichContent.nodes.galleryData.items.video.thumbnail.duration"
65
+ },
66
+ {
67
+ path: "ricosConversation.messageInRichContent.nodes.galleryData.options.item.ratio"
68
+ },
69
+ {
70
+ path: "ricosConversation.messageInRichContent.nodes.imageData.image.duration"
71
+ },
72
+ {
73
+ path: "ricosConversation.messageInRichContent.nodes.mapData.mapSettings.lat"
74
+ },
75
+ {
76
+ path: "ricosConversation.messageInRichContent.nodes.mapData.mapSettings.lng"
77
+ },
78
+ {
79
+ path: "ricosConversation.messageInRichContent.nodes.pollData.poll.image.duration"
80
+ },
81
+ {
82
+ path: "ricosConversation.messageInRichContent.nodes.pollData.poll.options.image.duration"
83
+ },
84
+ {
85
+ path: "ricosConversation.messageInRichContent.nodes.pollData.design.poll.background.image.duration"
86
+ },
87
+ {
88
+ path: "ricosConversation.messageInRichContent.nodes.appEmbedData.image.duration"
89
+ },
90
+ {
91
+ path: "ricosConversation.messageInRichContent.nodes.videoData.video.duration"
92
+ },
93
+ {
94
+ path: "ricosConversation.messageInRichContent.nodes.videoData.thumbnail.duration"
95
+ },
96
+ {
97
+ path: "ricosConversation.messageInRichContent.nodes.audioData.audio.duration"
98
+ },
99
+ {
100
+ path: "ricosConversation.messageInRichContent.nodes.audioData.coverImage.duration"
101
+ },
102
+ {
103
+ path: "ricosConversation.messageInRichContent.nodes.layoutData.backgroundImage.media.duration"
104
+ },
105
+ {
106
+ path: "ricosConversation.messageInRichContent.nodes.layoutData.backdropImage.media.duration"
107
+ },
108
+ {
109
+ path: "ricosConversation.document.nodes.galleryData.items.image.media.duration"
110
+ },
111
+ {
112
+ path: "ricosConversation.document.nodes.galleryData.items.video.media.duration"
113
+ },
114
+ {
115
+ path: "ricosConversation.document.nodes.galleryData.items.video.thumbnail.duration"
116
+ },
117
+ {
118
+ path: "ricosConversation.document.nodes.galleryData.options.item.ratio"
119
+ },
120
+ { path: "ricosConversation.document.nodes.imageData.image.duration" },
121
+ { path: "ricosConversation.document.nodes.mapData.mapSettings.lat" },
122
+ { path: "ricosConversation.document.nodes.mapData.mapSettings.lng" },
123
+ {
124
+ path: "ricosConversation.document.nodes.pollData.poll.image.duration"
125
+ },
126
+ {
127
+ path: "ricosConversation.document.nodes.pollData.poll.options.image.duration"
128
+ },
129
+ {
130
+ path: "ricosConversation.document.nodes.pollData.design.poll.background.image.duration"
131
+ },
132
+ {
133
+ path: "ricosConversation.document.nodes.appEmbedData.image.duration"
134
+ },
135
+ { path: "ricosConversation.document.nodes.videoData.video.duration" },
136
+ {
137
+ path: "ricosConversation.document.nodes.videoData.thumbnail.duration"
138
+ },
139
+ { path: "ricosConversation.document.nodes.audioData.audio.duration" },
140
+ {
141
+ path: "ricosConversation.document.nodes.audioData.coverImage.duration"
142
+ },
143
+ {
144
+ path: "ricosConversation.document.nodes.layoutData.backgroundImage.media.duration"
145
+ },
146
+ {
147
+ path: "ricosConversation.document.nodes.layoutData.backdropImage.media.duration"
148
+ },
149
+ {
150
+ path: "ricosConversation.documentSelection.nodes.galleryData.items.image.media.duration"
151
+ },
152
+ {
153
+ path: "ricosConversation.documentSelection.nodes.galleryData.items.video.media.duration"
154
+ },
155
+ {
156
+ path: "ricosConversation.documentSelection.nodes.galleryData.items.video.thumbnail.duration"
157
+ },
158
+ {
159
+ path: "ricosConversation.documentSelection.nodes.galleryData.options.item.ratio"
160
+ },
161
+ {
162
+ path: "ricosConversation.documentSelection.nodes.imageData.image.duration"
163
+ },
164
+ {
165
+ path: "ricosConversation.documentSelection.nodes.mapData.mapSettings.lat"
166
+ },
167
+ {
168
+ path: "ricosConversation.documentSelection.nodes.mapData.mapSettings.lng"
169
+ },
170
+ {
171
+ path: "ricosConversation.documentSelection.nodes.pollData.poll.image.duration"
172
+ },
173
+ {
174
+ path: "ricosConversation.documentSelection.nodes.pollData.poll.options.image.duration"
175
+ },
176
+ {
177
+ path: "ricosConversation.documentSelection.nodes.pollData.design.poll.background.image.duration"
178
+ },
179
+ {
180
+ path: "ricosConversation.documentSelection.nodes.appEmbedData.image.duration"
181
+ },
182
+ {
183
+ path: "ricosConversation.documentSelection.nodes.videoData.video.duration"
184
+ },
185
+ {
186
+ path: "ricosConversation.documentSelection.nodes.videoData.thumbnail.duration"
187
+ },
188
+ {
189
+ path: "ricosConversation.documentSelection.nodes.audioData.audio.duration"
190
+ },
191
+ {
192
+ path: "ricosConversation.documentSelection.nodes.audioData.coverImage.duration"
193
+ },
194
+ {
195
+ path: "ricosConversation.documentSelection.nodes.layoutData.backgroundImage.media.duration"
196
+ },
197
+ {
198
+ path: "ricosConversation.documentSelection.nodes.layoutData.backdropImage.media.duration"
199
+ },
200
+ { path: "ricosConversation.promptConfiguration.temperature" },
201
+ { path: "ricosConversation.promptConfiguration.topP" }
202
+ ]
203
+ },
204
+ {
205
+ transformFn: transformSDKTimestampToRESTTimestamp,
206
+ paths: [
207
+ {
208
+ path: "ricosConversation.messageInRichContent.metadata.createdTimestamp"
209
+ },
210
+ {
211
+ path: "ricosConversation.messageInRichContent.metadata.updatedTimestamp"
212
+ },
213
+ { path: "ricosConversation.document.metadata.createdTimestamp" },
214
+ { path: "ricosConversation.document.metadata.updatedTimestamp" },
215
+ {
216
+ path: "ricosConversation.documentSelection.metadata.createdTimestamp"
217
+ },
218
+ {
219
+ path: "ricosConversation.documentSelection.metadata.updatedTimestamp"
220
+ }
221
+ ]
222
+ }
223
+ ]);
224
+ const metadata = {
225
+ entityFqdn: "wix.ricos.v1.ricos_conversation",
226
+ method: "POST",
227
+ methodFqn: "wix.ricos.v1.RicosAiAssistant.CreateConversationStreamed",
228
+ packageName: PACKAGE_NAME,
229
+ migrationOptions: {
230
+ optInTransformResponse: true
231
+ },
232
+ url: resolveWixRicosV1RicosAiAssistantUrl({
233
+ protoPath: "/v1/ricos-conversations/streamed",
234
+ data: serializedData,
235
+ host
236
+ }),
237
+ data: serializedData,
238
+ transformResponse: (payload2) => transformPaths(payload2, [
239
+ {
240
+ transformFn: transformRESTFloatToSDKFloat,
241
+ paths: [
242
+ {
243
+ path: "chunk.nodeOptions.node.galleryData.items.image.media.duration"
244
+ },
245
+ {
246
+ path: "chunk.nodeOptions.node.galleryData.items.video.media.duration"
247
+ },
248
+ {
249
+ path: "chunk.nodeOptions.node.galleryData.items.video.thumbnail.duration"
250
+ },
251
+ { path: "chunk.nodeOptions.node.galleryData.options.item.ratio" },
252
+ { path: "chunk.nodeOptions.node.imageData.image.duration" },
253
+ { path: "chunk.nodeOptions.node.mapData.mapSettings.lat" },
254
+ { path: "chunk.nodeOptions.node.mapData.mapSettings.lng" },
255
+ { path: "chunk.nodeOptions.node.pollData.poll.image.duration" },
256
+ {
257
+ path: "chunk.nodeOptions.node.pollData.poll.options.image.duration"
258
+ },
259
+ {
260
+ path: "chunk.nodeOptions.node.pollData.design.poll.background.image.duration"
261
+ },
262
+ { path: "chunk.nodeOptions.node.appEmbedData.image.duration" },
263
+ { path: "chunk.nodeOptions.node.videoData.video.duration" },
264
+ { path: "chunk.nodeOptions.node.videoData.thumbnail.duration" },
265
+ { path: "chunk.nodeOptions.node.audioData.audio.duration" },
266
+ { path: "chunk.nodeOptions.node.audioData.coverImage.duration" },
267
+ {
268
+ path: "chunk.nodeOptions.node.layoutData.backgroundImage.media.duration"
269
+ },
270
+ {
271
+ path: "chunk.nodeOptions.node.layoutData.backdropImage.media.duration"
272
+ },
273
+ {
274
+ path: "chunk.patchOptions.node.galleryData.items.image.media.duration"
275
+ },
276
+ {
277
+ path: "chunk.patchOptions.node.galleryData.items.video.media.duration"
278
+ },
279
+ {
280
+ path: "chunk.patchOptions.node.galleryData.items.video.thumbnail.duration"
281
+ },
282
+ {
283
+ path: "chunk.patchOptions.node.galleryData.options.item.ratio"
284
+ },
285
+ { path: "chunk.patchOptions.node.imageData.image.duration" },
286
+ { path: "chunk.patchOptions.node.mapData.mapSettings.lat" },
287
+ { path: "chunk.patchOptions.node.mapData.mapSettings.lng" },
288
+ { path: "chunk.patchOptions.node.pollData.poll.image.duration" },
289
+ {
290
+ path: "chunk.patchOptions.node.pollData.poll.options.image.duration"
291
+ },
292
+ {
293
+ path: "chunk.patchOptions.node.pollData.design.poll.background.image.duration"
294
+ },
295
+ { path: "chunk.patchOptions.node.appEmbedData.image.duration" },
296
+ { path: "chunk.patchOptions.node.videoData.video.duration" },
297
+ { path: "chunk.patchOptions.node.videoData.thumbnail.duration" },
298
+ { path: "chunk.patchOptions.node.audioData.audio.duration" },
299
+ { path: "chunk.patchOptions.node.audioData.coverImage.duration" },
300
+ {
301
+ path: "chunk.patchOptions.node.layoutData.backgroundImage.media.duration"
302
+ },
303
+ {
304
+ path: "chunk.patchOptions.node.layoutData.backdropImage.media.duration"
305
+ }
306
+ ]
307
+ }
308
+ ])
309
+ };
310
+ return metadata;
311
+ }
312
+ return __createConversationStreamed;
313
+ }
314
+ function continueConversationStreamed(payload) {
315
+ function __continueConversationStreamed({ host }) {
316
+ const serializedData = transformPaths(payload, [
317
+ {
318
+ transformFn: transformSDKFloatToRESTFloat,
319
+ paths: [
320
+ {
321
+ path: "ricosConversation.messageInRichContent.nodes.galleryData.items.image.media.duration"
322
+ },
323
+ {
324
+ path: "ricosConversation.messageInRichContent.nodes.galleryData.items.video.media.duration"
325
+ },
326
+ {
327
+ path: "ricosConversation.messageInRichContent.nodes.galleryData.items.video.thumbnail.duration"
328
+ },
329
+ {
330
+ path: "ricosConversation.messageInRichContent.nodes.galleryData.options.item.ratio"
331
+ },
332
+ {
333
+ path: "ricosConversation.messageInRichContent.nodes.imageData.image.duration"
334
+ },
335
+ {
336
+ path: "ricosConversation.messageInRichContent.nodes.mapData.mapSettings.lat"
337
+ },
338
+ {
339
+ path: "ricosConversation.messageInRichContent.nodes.mapData.mapSettings.lng"
340
+ },
341
+ {
342
+ path: "ricosConversation.messageInRichContent.nodes.pollData.poll.image.duration"
343
+ },
344
+ {
345
+ path: "ricosConversation.messageInRichContent.nodes.pollData.poll.options.image.duration"
346
+ },
347
+ {
348
+ path: "ricosConversation.messageInRichContent.nodes.pollData.design.poll.background.image.duration"
349
+ },
350
+ {
351
+ path: "ricosConversation.messageInRichContent.nodes.appEmbedData.image.duration"
352
+ },
353
+ {
354
+ path: "ricosConversation.messageInRichContent.nodes.videoData.video.duration"
355
+ },
356
+ {
357
+ path: "ricosConversation.messageInRichContent.nodes.videoData.thumbnail.duration"
358
+ },
359
+ {
360
+ path: "ricosConversation.messageInRichContent.nodes.audioData.audio.duration"
361
+ },
362
+ {
363
+ path: "ricosConversation.messageInRichContent.nodes.audioData.coverImage.duration"
364
+ },
365
+ {
366
+ path: "ricosConversation.messageInRichContent.nodes.layoutData.backgroundImage.media.duration"
367
+ },
368
+ {
369
+ path: "ricosConversation.messageInRichContent.nodes.layoutData.backdropImage.media.duration"
370
+ },
371
+ {
372
+ path: "ricosConversation.document.nodes.galleryData.items.image.media.duration"
373
+ },
374
+ {
375
+ path: "ricosConversation.document.nodes.galleryData.items.video.media.duration"
376
+ },
377
+ {
378
+ path: "ricosConversation.document.nodes.galleryData.items.video.thumbnail.duration"
379
+ },
380
+ {
381
+ path: "ricosConversation.document.nodes.galleryData.options.item.ratio"
382
+ },
383
+ { path: "ricosConversation.document.nodes.imageData.image.duration" },
384
+ { path: "ricosConversation.document.nodes.mapData.mapSettings.lat" },
385
+ { path: "ricosConversation.document.nodes.mapData.mapSettings.lng" },
386
+ {
387
+ path: "ricosConversation.document.nodes.pollData.poll.image.duration"
388
+ },
389
+ {
390
+ path: "ricosConversation.document.nodes.pollData.poll.options.image.duration"
391
+ },
392
+ {
393
+ path: "ricosConversation.document.nodes.pollData.design.poll.background.image.duration"
394
+ },
395
+ {
396
+ path: "ricosConversation.document.nodes.appEmbedData.image.duration"
397
+ },
398
+ { path: "ricosConversation.document.nodes.videoData.video.duration" },
399
+ {
400
+ path: "ricosConversation.document.nodes.videoData.thumbnail.duration"
401
+ },
402
+ { path: "ricosConversation.document.nodes.audioData.audio.duration" },
403
+ {
404
+ path: "ricosConversation.document.nodes.audioData.coverImage.duration"
405
+ },
406
+ {
407
+ path: "ricosConversation.document.nodes.layoutData.backgroundImage.media.duration"
408
+ },
409
+ {
410
+ path: "ricosConversation.document.nodes.layoutData.backdropImage.media.duration"
411
+ },
412
+ {
413
+ path: "ricosConversation.documentSelection.nodes.galleryData.items.image.media.duration"
414
+ },
415
+ {
416
+ path: "ricosConversation.documentSelection.nodes.galleryData.items.video.media.duration"
417
+ },
418
+ {
419
+ path: "ricosConversation.documentSelection.nodes.galleryData.items.video.thumbnail.duration"
420
+ },
421
+ {
422
+ path: "ricosConversation.documentSelection.nodes.galleryData.options.item.ratio"
423
+ },
424
+ {
425
+ path: "ricosConversation.documentSelection.nodes.imageData.image.duration"
426
+ },
427
+ {
428
+ path: "ricosConversation.documentSelection.nodes.mapData.mapSettings.lat"
429
+ },
430
+ {
431
+ path: "ricosConversation.documentSelection.nodes.mapData.mapSettings.lng"
432
+ },
433
+ {
434
+ path: "ricosConversation.documentSelection.nodes.pollData.poll.image.duration"
435
+ },
436
+ {
437
+ path: "ricosConversation.documentSelection.nodes.pollData.poll.options.image.duration"
438
+ },
439
+ {
440
+ path: "ricosConversation.documentSelection.nodes.pollData.design.poll.background.image.duration"
441
+ },
442
+ {
443
+ path: "ricosConversation.documentSelection.nodes.appEmbedData.image.duration"
444
+ },
445
+ {
446
+ path: "ricosConversation.documentSelection.nodes.videoData.video.duration"
447
+ },
448
+ {
449
+ path: "ricosConversation.documentSelection.nodes.videoData.thumbnail.duration"
450
+ },
451
+ {
452
+ path: "ricosConversation.documentSelection.nodes.audioData.audio.duration"
453
+ },
454
+ {
455
+ path: "ricosConversation.documentSelection.nodes.audioData.coverImage.duration"
456
+ },
457
+ {
458
+ path: "ricosConversation.documentSelection.nodes.layoutData.backgroundImage.media.duration"
459
+ },
460
+ {
461
+ path: "ricosConversation.documentSelection.nodes.layoutData.backdropImage.media.duration"
462
+ },
463
+ { path: "ricosConversation.promptConfiguration.temperature" },
464
+ { path: "ricosConversation.promptConfiguration.topP" }
465
+ ]
466
+ },
467
+ {
468
+ transformFn: transformSDKTimestampToRESTTimestamp,
469
+ paths: [
470
+ {
471
+ path: "ricosConversation.messageInRichContent.metadata.createdTimestamp"
472
+ },
473
+ {
474
+ path: "ricosConversation.messageInRichContent.metadata.updatedTimestamp"
475
+ },
476
+ { path: "ricosConversation.document.metadata.createdTimestamp" },
477
+ { path: "ricosConversation.document.metadata.updatedTimestamp" },
478
+ {
479
+ path: "ricosConversation.documentSelection.metadata.createdTimestamp"
480
+ },
481
+ {
482
+ path: "ricosConversation.documentSelection.metadata.updatedTimestamp"
483
+ }
484
+ ]
485
+ }
486
+ ]);
487
+ const metadata = {
488
+ entityFqdn: "wix.ricos.v1.ricos_conversation",
489
+ method: "POST",
490
+ methodFqn: "wix.ricos.v1.RicosAiAssistant.ContinueConversationStreamed",
491
+ packageName: PACKAGE_NAME,
492
+ migrationOptions: {
493
+ optInTransformResponse: true
494
+ },
495
+ url: resolveWixRicosV1RicosAiAssistantUrl({
496
+ protoPath: "/v1/ricos-conversations/streamed/continue",
497
+ data: serializedData,
498
+ host
499
+ }),
500
+ data: serializedData,
501
+ transformResponse: (payload2) => transformPaths(payload2, [
502
+ {
503
+ transformFn: transformRESTFloatToSDKFloat,
504
+ paths: [
505
+ {
506
+ path: "chunk.nodeOptions.node.galleryData.items.image.media.duration"
507
+ },
508
+ {
509
+ path: "chunk.nodeOptions.node.galleryData.items.video.media.duration"
510
+ },
511
+ {
512
+ path: "chunk.nodeOptions.node.galleryData.items.video.thumbnail.duration"
513
+ },
514
+ { path: "chunk.nodeOptions.node.galleryData.options.item.ratio" },
515
+ { path: "chunk.nodeOptions.node.imageData.image.duration" },
516
+ { path: "chunk.nodeOptions.node.mapData.mapSettings.lat" },
517
+ { path: "chunk.nodeOptions.node.mapData.mapSettings.lng" },
518
+ { path: "chunk.nodeOptions.node.pollData.poll.image.duration" },
519
+ {
520
+ path: "chunk.nodeOptions.node.pollData.poll.options.image.duration"
521
+ },
522
+ {
523
+ path: "chunk.nodeOptions.node.pollData.design.poll.background.image.duration"
524
+ },
525
+ { path: "chunk.nodeOptions.node.appEmbedData.image.duration" },
526
+ { path: "chunk.nodeOptions.node.videoData.video.duration" },
527
+ { path: "chunk.nodeOptions.node.videoData.thumbnail.duration" },
528
+ { path: "chunk.nodeOptions.node.audioData.audio.duration" },
529
+ { path: "chunk.nodeOptions.node.audioData.coverImage.duration" },
530
+ {
531
+ path: "chunk.nodeOptions.node.layoutData.backgroundImage.media.duration"
532
+ },
533
+ {
534
+ path: "chunk.nodeOptions.node.layoutData.backdropImage.media.duration"
535
+ },
536
+ {
537
+ path: "chunk.patchOptions.node.galleryData.items.image.media.duration"
538
+ },
539
+ {
540
+ path: "chunk.patchOptions.node.galleryData.items.video.media.duration"
541
+ },
542
+ {
543
+ path: "chunk.patchOptions.node.galleryData.items.video.thumbnail.duration"
544
+ },
545
+ {
546
+ path: "chunk.patchOptions.node.galleryData.options.item.ratio"
547
+ },
548
+ { path: "chunk.patchOptions.node.imageData.image.duration" },
549
+ { path: "chunk.patchOptions.node.mapData.mapSettings.lat" },
550
+ { path: "chunk.patchOptions.node.mapData.mapSettings.lng" },
551
+ { path: "chunk.patchOptions.node.pollData.poll.image.duration" },
552
+ {
553
+ path: "chunk.patchOptions.node.pollData.poll.options.image.duration"
554
+ },
555
+ {
556
+ path: "chunk.patchOptions.node.pollData.design.poll.background.image.duration"
557
+ },
558
+ { path: "chunk.patchOptions.node.appEmbedData.image.duration" },
559
+ { path: "chunk.patchOptions.node.videoData.video.duration" },
560
+ { path: "chunk.patchOptions.node.videoData.thumbnail.duration" },
561
+ { path: "chunk.patchOptions.node.audioData.audio.duration" },
562
+ { path: "chunk.patchOptions.node.audioData.coverImage.duration" },
563
+ {
564
+ path: "chunk.patchOptions.node.layoutData.backgroundImage.media.duration"
565
+ },
566
+ {
567
+ path: "chunk.patchOptions.node.layoutData.backdropImage.media.duration"
568
+ }
569
+ ]
570
+ }
571
+ ])
572
+ };
573
+ return metadata;
574
+ }
575
+ return __continueConversationStreamed;
576
+ }
577
+ function createRicosConversation(payload) {
578
+ function __createRicosConversation({ host }) {
579
+ const serializedData = transformPaths(payload, [
580
+ {
581
+ transformFn: transformSDKFloatToRESTFloat,
582
+ paths: [
583
+ {
584
+ path: "ricosConversation.messageInRichContent.nodes.galleryData.items.image.media.duration"
585
+ },
586
+ {
587
+ path: "ricosConversation.messageInRichContent.nodes.galleryData.items.video.media.duration"
588
+ },
589
+ {
590
+ path: "ricosConversation.messageInRichContent.nodes.galleryData.items.video.thumbnail.duration"
591
+ },
592
+ {
593
+ path: "ricosConversation.messageInRichContent.nodes.galleryData.options.item.ratio"
594
+ },
595
+ {
596
+ path: "ricosConversation.messageInRichContent.nodes.imageData.image.duration"
597
+ },
598
+ {
599
+ path: "ricosConversation.messageInRichContent.nodes.mapData.mapSettings.lat"
600
+ },
601
+ {
602
+ path: "ricosConversation.messageInRichContent.nodes.mapData.mapSettings.lng"
603
+ },
604
+ {
605
+ path: "ricosConversation.messageInRichContent.nodes.pollData.poll.image.duration"
606
+ },
607
+ {
608
+ path: "ricosConversation.messageInRichContent.nodes.pollData.poll.options.image.duration"
609
+ },
610
+ {
611
+ path: "ricosConversation.messageInRichContent.nodes.pollData.design.poll.background.image.duration"
612
+ },
613
+ {
614
+ path: "ricosConversation.messageInRichContent.nodes.appEmbedData.image.duration"
615
+ },
616
+ {
617
+ path: "ricosConversation.messageInRichContent.nodes.videoData.video.duration"
618
+ },
619
+ {
620
+ path: "ricosConversation.messageInRichContent.nodes.videoData.thumbnail.duration"
621
+ },
622
+ {
623
+ path: "ricosConversation.messageInRichContent.nodes.audioData.audio.duration"
624
+ },
625
+ {
626
+ path: "ricosConversation.messageInRichContent.nodes.audioData.coverImage.duration"
627
+ },
628
+ {
629
+ path: "ricosConversation.messageInRichContent.nodes.layoutData.backgroundImage.media.duration"
630
+ },
631
+ {
632
+ path: "ricosConversation.messageInRichContent.nodes.layoutData.backdropImage.media.duration"
633
+ },
634
+ {
635
+ path: "ricosConversation.document.nodes.galleryData.items.image.media.duration"
636
+ },
637
+ {
638
+ path: "ricosConversation.document.nodes.galleryData.items.video.media.duration"
639
+ },
640
+ {
641
+ path: "ricosConversation.document.nodes.galleryData.items.video.thumbnail.duration"
642
+ },
643
+ {
644
+ path: "ricosConversation.document.nodes.galleryData.options.item.ratio"
645
+ },
646
+ { path: "ricosConversation.document.nodes.imageData.image.duration" },
647
+ { path: "ricosConversation.document.nodes.mapData.mapSettings.lat" },
648
+ { path: "ricosConversation.document.nodes.mapData.mapSettings.lng" },
649
+ {
650
+ path: "ricosConversation.document.nodes.pollData.poll.image.duration"
651
+ },
652
+ {
653
+ path: "ricosConversation.document.nodes.pollData.poll.options.image.duration"
654
+ },
655
+ {
656
+ path: "ricosConversation.document.nodes.pollData.design.poll.background.image.duration"
657
+ },
658
+ {
659
+ path: "ricosConversation.document.nodes.appEmbedData.image.duration"
660
+ },
661
+ { path: "ricosConversation.document.nodes.videoData.video.duration" },
662
+ {
663
+ path: "ricosConversation.document.nodes.videoData.thumbnail.duration"
664
+ },
665
+ { path: "ricosConversation.document.nodes.audioData.audio.duration" },
666
+ {
667
+ path: "ricosConversation.document.nodes.audioData.coverImage.duration"
668
+ },
669
+ {
670
+ path: "ricosConversation.document.nodes.layoutData.backgroundImage.media.duration"
671
+ },
672
+ {
673
+ path: "ricosConversation.document.nodes.layoutData.backdropImage.media.duration"
674
+ },
675
+ {
676
+ path: "ricosConversation.documentSelection.nodes.galleryData.items.image.media.duration"
677
+ },
678
+ {
679
+ path: "ricosConversation.documentSelection.nodes.galleryData.items.video.media.duration"
680
+ },
681
+ {
682
+ path: "ricosConversation.documentSelection.nodes.galleryData.items.video.thumbnail.duration"
683
+ },
684
+ {
685
+ path: "ricosConversation.documentSelection.nodes.galleryData.options.item.ratio"
686
+ },
687
+ {
688
+ path: "ricosConversation.documentSelection.nodes.imageData.image.duration"
689
+ },
690
+ {
691
+ path: "ricosConversation.documentSelection.nodes.mapData.mapSettings.lat"
692
+ },
693
+ {
694
+ path: "ricosConversation.documentSelection.nodes.mapData.mapSettings.lng"
695
+ },
696
+ {
697
+ path: "ricosConversation.documentSelection.nodes.pollData.poll.image.duration"
698
+ },
699
+ {
700
+ path: "ricosConversation.documentSelection.nodes.pollData.poll.options.image.duration"
701
+ },
702
+ {
703
+ path: "ricosConversation.documentSelection.nodes.pollData.design.poll.background.image.duration"
704
+ },
705
+ {
706
+ path: "ricosConversation.documentSelection.nodes.appEmbedData.image.duration"
707
+ },
708
+ {
709
+ path: "ricosConversation.documentSelection.nodes.videoData.video.duration"
710
+ },
711
+ {
712
+ path: "ricosConversation.documentSelection.nodes.videoData.thumbnail.duration"
713
+ },
714
+ {
715
+ path: "ricosConversation.documentSelection.nodes.audioData.audio.duration"
716
+ },
717
+ {
718
+ path: "ricosConversation.documentSelection.nodes.audioData.coverImage.duration"
719
+ },
720
+ {
721
+ path: "ricosConversation.documentSelection.nodes.layoutData.backgroundImage.media.duration"
722
+ },
723
+ {
724
+ path: "ricosConversation.documentSelection.nodes.layoutData.backdropImage.media.duration"
725
+ },
726
+ { path: "ricosConversation.promptConfiguration.temperature" },
727
+ { path: "ricosConversation.promptConfiguration.topP" }
728
+ ]
729
+ },
730
+ {
731
+ transformFn: transformSDKTimestampToRESTTimestamp,
732
+ paths: [
733
+ {
734
+ path: "ricosConversation.messageInRichContent.metadata.createdTimestamp"
735
+ },
736
+ {
737
+ path: "ricosConversation.messageInRichContent.metadata.updatedTimestamp"
738
+ },
739
+ { path: "ricosConversation.document.metadata.createdTimestamp" },
740
+ { path: "ricosConversation.document.metadata.updatedTimestamp" },
741
+ {
742
+ path: "ricosConversation.documentSelection.metadata.createdTimestamp"
743
+ },
744
+ {
745
+ path: "ricosConversation.documentSelection.metadata.updatedTimestamp"
746
+ }
747
+ ]
748
+ }
749
+ ]);
750
+ const metadata = {
751
+ entityFqdn: "wix.ricos.v1.ricos_conversation",
752
+ method: "POST",
753
+ methodFqn: "wix.ricos.v1.RicosAiAssistant.CreateRicosConversation",
754
+ packageName: PACKAGE_NAME,
755
+ migrationOptions: {
756
+ optInTransformResponse: true
757
+ },
758
+ url: resolveWixRicosV1RicosAiAssistantUrl({
759
+ protoPath: "/v1/ricos-conversations/create",
760
+ data: serializedData,
761
+ host
762
+ }),
763
+ data: serializedData,
764
+ transformResponse: (payload2) => transformPaths(payload2, [
765
+ {
766
+ transformFn: transformRESTFloatToSDKFloat,
767
+ paths: [
768
+ {
769
+ path: "richContent.nodes.galleryData.items.image.media.duration"
770
+ },
771
+ {
772
+ path: "richContent.nodes.galleryData.items.video.media.duration"
773
+ },
774
+ {
775
+ path: "richContent.nodes.galleryData.items.video.thumbnail.duration"
776
+ },
777
+ { path: "richContent.nodes.galleryData.options.item.ratio" },
778
+ { path: "richContent.nodes.imageData.image.duration" },
779
+ { path: "richContent.nodes.mapData.mapSettings.lat" },
780
+ { path: "richContent.nodes.mapData.mapSettings.lng" },
781
+ { path: "richContent.nodes.pollData.poll.image.duration" },
782
+ {
783
+ path: "richContent.nodes.pollData.poll.options.image.duration"
784
+ },
785
+ {
786
+ path: "richContent.nodes.pollData.design.poll.background.image.duration"
787
+ },
788
+ { path: "richContent.nodes.appEmbedData.image.duration" },
789
+ { path: "richContent.nodes.videoData.video.duration" },
790
+ { path: "richContent.nodes.videoData.thumbnail.duration" },
791
+ { path: "richContent.nodes.audioData.audio.duration" },
792
+ { path: "richContent.nodes.audioData.coverImage.duration" },
793
+ {
794
+ path: "richContent.nodes.layoutData.backgroundImage.media.duration"
795
+ },
796
+ {
797
+ path: "richContent.nodes.layoutData.backdropImage.media.duration"
798
+ }
799
+ ]
800
+ },
801
+ {
802
+ transformFn: transformRESTTimestampToSDKTimestamp,
803
+ paths: [
804
+ { path: "richContent.metadata.createdTimestamp" },
805
+ { path: "richContent.metadata.updatedTimestamp" }
806
+ ]
807
+ }
808
+ ])
809
+ };
810
+ return metadata;
811
+ }
812
+ return __createRicosConversation;
813
+ }
814
+ function listConversationSuggestions(payload) {
815
+ function __listConversationSuggestions({ host }) {
816
+ const serializedData = transformPaths(payload, [
817
+ {
818
+ transformFn: transformSDKFloatToRESTFloat,
819
+ paths: [
820
+ { path: "richContent.nodes.galleryData.items.image.media.duration" },
821
+ { path: "richContent.nodes.galleryData.items.video.media.duration" },
822
+ {
823
+ path: "richContent.nodes.galleryData.items.video.thumbnail.duration"
824
+ },
825
+ { path: "richContent.nodes.galleryData.options.item.ratio" },
826
+ { path: "richContent.nodes.imageData.image.duration" },
827
+ { path: "richContent.nodes.mapData.mapSettings.lat" },
828
+ { path: "richContent.nodes.mapData.mapSettings.lng" },
829
+ { path: "richContent.nodes.pollData.poll.image.duration" },
830
+ { path: "richContent.nodes.pollData.poll.options.image.duration" },
831
+ {
832
+ path: "richContent.nodes.pollData.design.poll.background.image.duration"
833
+ },
834
+ { path: "richContent.nodes.appEmbedData.image.duration" },
835
+ { path: "richContent.nodes.videoData.video.duration" },
836
+ { path: "richContent.nodes.videoData.thumbnail.duration" },
837
+ { path: "richContent.nodes.audioData.audio.duration" },
838
+ { path: "richContent.nodes.audioData.coverImage.duration" },
839
+ {
840
+ path: "richContent.nodes.layoutData.backgroundImage.media.duration"
841
+ },
842
+ { path: "richContent.nodes.layoutData.backdropImage.media.duration" }
843
+ ]
844
+ },
845
+ {
846
+ transformFn: transformSDKTimestampToRESTTimestamp,
847
+ paths: [
848
+ { path: "richContent.metadata.createdTimestamp" },
849
+ { path: "richContent.metadata.updatedTimestamp" }
850
+ ]
851
+ }
852
+ ]);
853
+ const metadata = {
854
+ entityFqdn: "wix.ricos.v1.ricos_conversation",
855
+ method: "POST",
856
+ methodFqn: "wix.ricos.v1.RicosAiAssistant.ListConversationSuggestions",
857
+ packageName: PACKAGE_NAME,
858
+ migrationOptions: {
859
+ optInTransformResponse: true
860
+ },
861
+ url: resolveWixRicosV1RicosAiAssistantUrl({
862
+ protoPath: "/v1/ricos-conversations/suggestions/list",
863
+ data: serializedData,
864
+ host
865
+ }),
866
+ data: serializedData
867
+ };
868
+ return metadata;
869
+ }
870
+ return __listConversationSuggestions;
871
+ }
872
+
873
+ // src/ricos-v1-ricos-conversation-ricos-conversations.universal.ts
874
+ var NodeType = /* @__PURE__ */ ((NodeType2) => {
875
+ NodeType2["PARAGRAPH"] = "PARAGRAPH";
876
+ NodeType2["TEXT"] = "TEXT";
877
+ NodeType2["HEADING"] = "HEADING";
878
+ NodeType2["BULLETED_LIST"] = "BULLETED_LIST";
879
+ NodeType2["ORDERED_LIST"] = "ORDERED_LIST";
880
+ NodeType2["LIST_ITEM"] = "LIST_ITEM";
881
+ NodeType2["BLOCKQUOTE"] = "BLOCKQUOTE";
882
+ NodeType2["CODE_BLOCK"] = "CODE_BLOCK";
883
+ NodeType2["VIDEO"] = "VIDEO";
884
+ NodeType2["DIVIDER"] = "DIVIDER";
885
+ NodeType2["FILE"] = "FILE";
886
+ NodeType2["GALLERY"] = "GALLERY";
887
+ NodeType2["GIF"] = "GIF";
888
+ NodeType2["HTML"] = "HTML";
889
+ NodeType2["IMAGE"] = "IMAGE";
890
+ NodeType2["LINK_PREVIEW"] = "LINK_PREVIEW";
891
+ NodeType2["MAP"] = "MAP";
892
+ NodeType2["POLL"] = "POLL";
893
+ NodeType2["APP_EMBED"] = "APP_EMBED";
894
+ NodeType2["BUTTON"] = "BUTTON";
895
+ NodeType2["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
896
+ NodeType2["TABLE"] = "TABLE";
897
+ NodeType2["EMBED"] = "EMBED";
898
+ NodeType2["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
899
+ NodeType2["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
900
+ NodeType2["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
901
+ NodeType2["TABLE_CELL"] = "TABLE_CELL";
902
+ NodeType2["TABLE_ROW"] = "TABLE_ROW";
903
+ NodeType2["EXTERNAL"] = "EXTERNAL";
904
+ NodeType2["AUDIO"] = "AUDIO";
905
+ NodeType2["CAPTION"] = "CAPTION";
906
+ NodeType2["LAYOUT"] = "LAYOUT";
907
+ NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
908
+ return NodeType2;
909
+ })(NodeType || {});
910
+ var WidthType = /* @__PURE__ */ ((WidthType2) => {
911
+ WidthType2["CONTENT"] = "CONTENT";
912
+ WidthType2["SMALL"] = "SMALL";
913
+ WidthType2["ORIGINAL"] = "ORIGINAL";
914
+ WidthType2["FULL_WIDTH"] = "FULL_WIDTH";
915
+ return WidthType2;
916
+ })(WidthType || {});
917
+ var PluginContainerDataAlignment = /* @__PURE__ */ ((PluginContainerDataAlignment2) => {
918
+ PluginContainerDataAlignment2["CENTER"] = "CENTER";
919
+ PluginContainerDataAlignment2["LEFT"] = "LEFT";
920
+ PluginContainerDataAlignment2["RIGHT"] = "RIGHT";
921
+ return PluginContainerDataAlignment2;
922
+ })(PluginContainerDataAlignment || {});
923
+ var ButtonDataType = /* @__PURE__ */ ((ButtonDataType2) => {
924
+ ButtonDataType2["LINK"] = "LINK";
925
+ ButtonDataType2["ACTION"] = "ACTION";
926
+ return ButtonDataType2;
927
+ })(ButtonDataType || {});
928
+ var Target = /* @__PURE__ */ ((Target2) => {
929
+ Target2["SELF"] = "SELF";
930
+ Target2["BLANK"] = "BLANK";
931
+ Target2["PARENT"] = "PARENT";
932
+ Target2["TOP"] = "TOP";
933
+ return Target2;
934
+ })(Target || {});
935
+ var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
936
+ TextAlignment2["AUTO"] = "AUTO";
937
+ TextAlignment2["LEFT"] = "LEFT";
938
+ TextAlignment2["RIGHT"] = "RIGHT";
939
+ TextAlignment2["CENTER"] = "CENTER";
940
+ TextAlignment2["JUSTIFY"] = "JUSTIFY";
941
+ return TextAlignment2;
942
+ })(TextAlignment || {});
943
+ var LineStyle = /* @__PURE__ */ ((LineStyle2) => {
944
+ LineStyle2["SINGLE"] = "SINGLE";
945
+ LineStyle2["DOUBLE"] = "DOUBLE";
946
+ LineStyle2["DASHED"] = "DASHED";
947
+ LineStyle2["DOTTED"] = "DOTTED";
948
+ return LineStyle2;
949
+ })(LineStyle || {});
950
+ var Width = /* @__PURE__ */ ((Width2) => {
951
+ Width2["LARGE"] = "LARGE";
952
+ Width2["MEDIUM"] = "MEDIUM";
953
+ Width2["SMALL"] = "SMALL";
954
+ return Width2;
955
+ })(Width || {});
956
+ var DividerDataAlignment = /* @__PURE__ */ ((DividerDataAlignment2) => {
957
+ DividerDataAlignment2["CENTER"] = "CENTER";
958
+ DividerDataAlignment2["LEFT"] = "LEFT";
959
+ DividerDataAlignment2["RIGHT"] = "RIGHT";
960
+ return DividerDataAlignment2;
961
+ })(DividerDataAlignment || {});
962
+ var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
963
+ ViewMode2["NONE"] = "NONE";
964
+ ViewMode2["FULL"] = "FULL";
965
+ ViewMode2["MINI"] = "MINI";
966
+ return ViewMode2;
967
+ })(ViewMode || {});
968
+ var LayoutType = /* @__PURE__ */ ((LayoutType2) => {
969
+ LayoutType2["COLLAGE"] = "COLLAGE";
970
+ LayoutType2["MASONRY"] = "MASONRY";
971
+ LayoutType2["GRID"] = "GRID";
972
+ LayoutType2["THUMBNAIL"] = "THUMBNAIL";
973
+ LayoutType2["SLIDER"] = "SLIDER";
974
+ LayoutType2["SLIDESHOW"] = "SLIDESHOW";
975
+ LayoutType2["PANORAMA"] = "PANORAMA";
976
+ LayoutType2["COLUMN"] = "COLUMN";
977
+ LayoutType2["MAGIC"] = "MAGIC";
978
+ LayoutType2["FULLSIZE"] = "FULLSIZE";
979
+ return LayoutType2;
980
+ })(LayoutType || {});
981
+ var Orientation = /* @__PURE__ */ ((Orientation2) => {
982
+ Orientation2["ROWS"] = "ROWS";
983
+ Orientation2["COLUMNS"] = "COLUMNS";
984
+ return Orientation2;
985
+ })(Orientation || {});
986
+ var Crop = /* @__PURE__ */ ((Crop2) => {
987
+ Crop2["FILL"] = "FILL";
988
+ Crop2["FIT"] = "FIT";
989
+ return Crop2;
990
+ })(Crop || {});
991
+ var ThumbnailsAlignment = /* @__PURE__ */ ((ThumbnailsAlignment2) => {
992
+ ThumbnailsAlignment2["TOP"] = "TOP";
993
+ ThumbnailsAlignment2["RIGHT"] = "RIGHT";
994
+ ThumbnailsAlignment2["BOTTOM"] = "BOTTOM";
995
+ ThumbnailsAlignment2["LEFT"] = "LEFT";
996
+ ThumbnailsAlignment2["NONE"] = "NONE";
997
+ return ThumbnailsAlignment2;
998
+ })(ThumbnailsAlignment || {});
999
+ var GIFType = /* @__PURE__ */ ((GIFType2) => {
1000
+ GIFType2["NORMAL"] = "NORMAL";
1001
+ GIFType2["STICKER"] = "STICKER";
1002
+ return GIFType2;
1003
+ })(GIFType || {});
1004
+ var Source = /* @__PURE__ */ ((Source2) => {
1005
+ Source2["HTML"] = "HTML";
1006
+ Source2["ADSENSE"] = "ADSENSE";
1007
+ Source2["AI"] = "AI";
1008
+ return Source2;
1009
+ })(Source || {});
1010
+ var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
1011
+ StylesPosition2["START"] = "START";
1012
+ StylesPosition2["END"] = "END";
1013
+ StylesPosition2["TOP"] = "TOP";
1014
+ StylesPosition2["HIDDEN"] = "HIDDEN";
1015
+ return StylesPosition2;
1016
+ })(StylesPosition || {});
1017
+ var MapType = /* @__PURE__ */ ((MapType2) => {
1018
+ MapType2["ROADMAP"] = "ROADMAP";
1019
+ MapType2["SATELITE"] = "SATELITE";
1020
+ MapType2["HYBRID"] = "HYBRID";
1021
+ MapType2["TERRAIN"] = "TERRAIN";
1022
+ return MapType2;
1023
+ })(MapType || {});
1024
+ var ViewRole = /* @__PURE__ */ ((ViewRole2) => {
1025
+ ViewRole2["CREATOR"] = "CREATOR";
1026
+ ViewRole2["VOTERS"] = "VOTERS";
1027
+ ViewRole2["EVERYONE"] = "EVERYONE";
1028
+ return ViewRole2;
1029
+ })(ViewRole || {});
1030
+ var VoteRole = /* @__PURE__ */ ((VoteRole2) => {
1031
+ VoteRole2["SITE_MEMBERS"] = "SITE_MEMBERS";
1032
+ VoteRole2["ALL"] = "ALL";
1033
+ return VoteRole2;
1034
+ })(VoteRole || {});
1035
+ var PollLayoutType = /* @__PURE__ */ ((PollLayoutType2) => {
1036
+ PollLayoutType2["LIST"] = "LIST";
1037
+ PollLayoutType2["GRID"] = "GRID";
1038
+ return PollLayoutType2;
1039
+ })(PollLayoutType || {});
1040
+ var PollLayoutDirection = /* @__PURE__ */ ((PollLayoutDirection2) => {
1041
+ PollLayoutDirection2["LTR"] = "LTR";
1042
+ PollLayoutDirection2["RTL"] = "RTL";
1043
+ return PollLayoutDirection2;
1044
+ })(PollLayoutDirection || {});
1045
+ var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
1046
+ BackgroundType2["COLOR"] = "COLOR";
1047
+ BackgroundType2["IMAGE"] = "IMAGE";
1048
+ BackgroundType2["GRADIENT"] = "GRADIENT";
1049
+ return BackgroundType2;
1050
+ })(BackgroundType || {});
1051
+ var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
1052
+ DecorationType2["BOLD"] = "BOLD";
1053
+ DecorationType2["ITALIC"] = "ITALIC";
1054
+ DecorationType2["UNDERLINE"] = "UNDERLINE";
1055
+ DecorationType2["SPOILER"] = "SPOILER";
1056
+ DecorationType2["ANCHOR"] = "ANCHOR";
1057
+ DecorationType2["MENTION"] = "MENTION";
1058
+ DecorationType2["LINK"] = "LINK";
1059
+ DecorationType2["COLOR"] = "COLOR";
1060
+ DecorationType2["FONT_SIZE"] = "FONT_SIZE";
1061
+ DecorationType2["EXTERNAL"] = "EXTERNAL";
1062
+ DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
1063
+ DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
1064
+ DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
1065
+ return DecorationType2;
1066
+ })(DecorationType || {});
1067
+ var FontType = /* @__PURE__ */ ((FontType2) => {
1068
+ FontType2["PX"] = "PX";
1069
+ FontType2["EM"] = "EM";
1070
+ return FontType2;
1071
+ })(FontType || {});
1072
+ var Position = /* @__PURE__ */ ((Position2) => {
1073
+ Position2["START"] = "START";
1074
+ Position2["END"] = "END";
1075
+ Position2["TOP"] = "TOP";
1076
+ return Position2;
1077
+ })(Position || {});
1078
+ var AspectRatio = /* @__PURE__ */ ((AspectRatio2) => {
1079
+ AspectRatio2["SQUARE"] = "SQUARE";
1080
+ AspectRatio2["RECTANGLE"] = "RECTANGLE";
1081
+ return AspectRatio2;
1082
+ })(AspectRatio || {});
1083
+ var Resizing = /* @__PURE__ */ ((Resizing2) => {
1084
+ Resizing2["FILL"] = "FILL";
1085
+ Resizing2["FIT"] = "FIT";
1086
+ return Resizing2;
1087
+ })(Resizing || {});
1088
+ var Placement = /* @__PURE__ */ ((Placement2) => {
1089
+ Placement2["IMAGE"] = "IMAGE";
1090
+ Placement2["PRODUCT_INFO"] = "PRODUCT_INFO";
1091
+ return Placement2;
1092
+ })(Placement || {});
1093
+ var Type = /* @__PURE__ */ ((Type2) => {
1094
+ Type2["CONTAINED"] = "CONTAINED";
1095
+ Type2["FRAMELESS"] = "FRAMELESS";
1096
+ return Type2;
1097
+ })(Type || {});
1098
+ var Alignment = /* @__PURE__ */ ((Alignment2) => {
1099
+ Alignment2["START"] = "START";
1100
+ Alignment2["CENTER"] = "CENTER";
1101
+ Alignment2["END"] = "END";
1102
+ return Alignment2;
1103
+ })(Alignment || {});
1104
+ var Layout = /* @__PURE__ */ ((Layout2) => {
1105
+ Layout2["STACKED"] = "STACKED";
1106
+ Layout2["SIDE_BY_SIDE"] = "SIDE_BY_SIDE";
1107
+ return Layout2;
1108
+ })(Layout || {});
1109
+ var AppType = /* @__PURE__ */ ((AppType2) => {
1110
+ AppType2["PRODUCT"] = "PRODUCT";
1111
+ AppType2["EVENT"] = "EVENT";
1112
+ AppType2["BOOKING"] = "BOOKING";
1113
+ return AppType2;
1114
+ })(AppType || {});
1115
+ var InitialExpandedItems = /* @__PURE__ */ ((InitialExpandedItems2) => {
1116
+ InitialExpandedItems2["FIRST"] = "FIRST";
1117
+ InitialExpandedItems2["ALL"] = "ALL";
1118
+ InitialExpandedItems2["NONE"] = "NONE";
1119
+ return InitialExpandedItems2;
1120
+ })(InitialExpandedItems || {});
1121
+ var Direction = /* @__PURE__ */ ((Direction2) => {
1122
+ Direction2["LTR"] = "LTR";
1123
+ Direction2["RTL"] = "RTL";
1124
+ return Direction2;
1125
+ })(Direction || {});
1126
+ var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
1127
+ VerticalAlignment2["TOP"] = "TOP";
1128
+ VerticalAlignment2["MIDDLE"] = "MIDDLE";
1129
+ VerticalAlignment2["BOTTOM"] = "BOTTOM";
1130
+ return VerticalAlignment2;
1131
+ })(VerticalAlignment || {});
1132
+ var NullValue = /* @__PURE__ */ ((NullValue2) => {
1133
+ NullValue2["NULL_VALUE"] = "NULL_VALUE";
1134
+ return NullValue2;
1135
+ })(NullValue || {});
1136
+ var Scaling = /* @__PURE__ */ ((Scaling2) => {
1137
+ Scaling2["AUTO"] = "AUTO";
1138
+ Scaling2["CONTAIN"] = "CONTAIN";
1139
+ Scaling2["COVER"] = "COVER";
1140
+ return Scaling2;
1141
+ })(Scaling || {});
1142
+ var ImagePosition = /* @__PURE__ */ ((ImagePosition2) => {
1143
+ ImagePosition2["CENTER"] = "CENTER";
1144
+ ImagePosition2["CENTER_LEFT"] = "CENTER_LEFT";
1145
+ ImagePosition2["CENTER_RIGHT"] = "CENTER_RIGHT";
1146
+ ImagePosition2["TOP"] = "TOP";
1147
+ ImagePosition2["TOP_LEFT"] = "TOP_LEFT";
1148
+ ImagePosition2["TOP_RIGHT"] = "TOP_RIGHT";
1149
+ ImagePosition2["BOTTOM"] = "BOTTOM";
1150
+ ImagePosition2["BOTTOM_LEFT"] = "BOTTOM_LEFT";
1151
+ ImagePosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
1152
+ return ImagePosition2;
1153
+ })(ImagePosition || {});
1154
+ var VerticalAlignmentAlignment = /* @__PURE__ */ ((VerticalAlignmentAlignment2) => {
1155
+ VerticalAlignmentAlignment2["TOP"] = "TOP";
1156
+ VerticalAlignmentAlignment2["MIDDLE"] = "MIDDLE";
1157
+ VerticalAlignmentAlignment2["BOTTOM"] = "BOTTOM";
1158
+ return VerticalAlignmentAlignment2;
1159
+ })(VerticalAlignmentAlignment || {});
1160
+ var ResponsivenessBehaviour = /* @__PURE__ */ ((ResponsivenessBehaviour2) => {
1161
+ ResponsivenessBehaviour2["STACK"] = "STACK";
1162
+ ResponsivenessBehaviour2["WRAP"] = "WRAP";
1163
+ return ResponsivenessBehaviour2;
1164
+ })(ResponsivenessBehaviour || {});
1165
+ var ChunkType = /* @__PURE__ */ ((ChunkType2) => {
1166
+ ChunkType2["CHUNK_TYPE_UNKNOWN"] = "CHUNK_TYPE_UNKNOWN";
1167
+ ChunkType2["EXPLAIN"] = "EXPLAIN";
1168
+ ChunkType2["INSERT"] = "INSERT";
1169
+ ChunkType2["REPLACE"] = "REPLACE";
1170
+ ChunkType2["NODE"] = "NODE";
1171
+ ChunkType2["NODE_TEXT"] = "NODE_TEXT";
1172
+ ChunkType2["INSERT_END"] = "INSERT_END";
1173
+ ChunkType2["REPLACE_END"] = "REPLACE_END";
1174
+ ChunkType2["TOOL_USE"] = "TOOL_USE";
1175
+ ChunkType2["PATCH"] = "PATCH";
1176
+ ChunkType2["PROGRESS"] = "PROGRESS";
1177
+ ChunkType2["SUMMARY"] = "SUMMARY";
1178
+ ChunkType2["SUGGESTION"] = "SUGGESTION";
1179
+ return ChunkType2;
1180
+ })(ChunkType || {});
1181
+ var SuggestionAction = /* @__PURE__ */ ((SuggestionAction2) => {
1182
+ SuggestionAction2["SUGGESTION_ACTION_UNKNOWN"] = "SUGGESTION_ACTION_UNKNOWN";
1183
+ SuggestionAction2["REPLACE"] = "REPLACE";
1184
+ SuggestionAction2["INSERT"] = "INSERT";
1185
+ return SuggestionAction2;
1186
+ })(SuggestionAction || {});
1187
+ var Action = /* @__PURE__ */ ((Action2) => {
1188
+ Action2["UNKNOWN_ACTION"] = "UNKNOWN_ACTION";
1189
+ Action2["INSERT"] = "INSERT";
1190
+ Action2["REPLACE"] = "REPLACE";
1191
+ return Action2;
1192
+ })(Action || {});
1193
+ var PositionsPosition = /* @__PURE__ */ ((PositionsPosition2) => {
1194
+ PositionsPosition2["UNKNOWN_POSITION"] = "UNKNOWN_POSITION";
1195
+ PositionsPosition2["RANGE"] = "RANGE";
1196
+ return PositionsPosition2;
1197
+ })(PositionsPosition || {});
1198
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1199
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1200
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1201
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
1202
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1203
+ WebhookIdentityType2["APP"] = "APP";
1204
+ return WebhookIdentityType2;
1205
+ })(WebhookIdentityType || {});
1206
+ async function createConversationStreamed2(options) {
1207
+ const { httpClient, sideEffects } = arguments[1];
1208
+ const payload = renameKeysFromSDKRequestToRESTRequest(
1209
+ {
1210
+ ricosConversation: options?.ricosConversation,
1211
+ persist: options?.persist,
1212
+ invocationId: options?.invocationId
1213
+ },
1214
+ [
1215
+ "ricosConversation.messageInRichContent",
1216
+ "ricosConversation.document",
1217
+ "ricosConversation.documentSelection"
1218
+ ]
1219
+ );
1220
+ const reqOpts = createConversationStreamed(payload);
1221
+ sideEffects?.onSiteCall?.();
1222
+ try {
1223
+ const result = await httpClient.request(reqOpts);
1224
+ sideEffects?.onSuccess?.(result);
1225
+ return renameKeysFromRESTResponseToSDKResponse(result.data, []);
1226
+ } catch (err) {
1227
+ const transformedError = sdkTransformError(
1228
+ err,
1229
+ {
1230
+ spreadPathsToArguments: {},
1231
+ explicitPathsToArguments: {
1232
+ ricosConversation: "$[0].ricosConversation",
1233
+ persist: "$[0].persist",
1234
+ invocationId: "$[0].invocationId"
1235
+ },
1236
+ singleArgumentUnchanged: false
1237
+ },
1238
+ ["options"]
1239
+ );
1240
+ sideEffects?.onError?.(err);
1241
+ throw transformedError;
1242
+ }
1243
+ }
1244
+ async function continueConversationStreamed2(options) {
1245
+ const { httpClient, sideEffects } = arguments[1];
1246
+ const payload = renameKeysFromSDKRequestToRESTRequest(
1247
+ { ricosConversation: options?.ricosConversation },
1248
+ [
1249
+ "ricosConversation.messageInRichContent",
1250
+ "ricosConversation.document",
1251
+ "ricosConversation.documentSelection"
1252
+ ]
1253
+ );
1254
+ const reqOpts = continueConversationStreamed(payload);
1255
+ sideEffects?.onSiteCall?.();
1256
+ try {
1257
+ const result = await httpClient.request(reqOpts);
1258
+ sideEffects?.onSuccess?.(result);
1259
+ return renameKeysFromRESTResponseToSDKResponse(result.data, []);
1260
+ } catch (err) {
1261
+ const transformedError = sdkTransformError(
1262
+ err,
1263
+ {
1264
+ spreadPathsToArguments: {},
1265
+ explicitPathsToArguments: {
1266
+ ricosConversation: "$[0].ricosConversation"
1267
+ },
1268
+ singleArgumentUnchanged: false
1269
+ },
1270
+ ["options"]
1271
+ );
1272
+ sideEffects?.onError?.(err);
1273
+ throw transformedError;
1274
+ }
1275
+ }
1276
+ async function createRicosConversation2(options) {
1277
+ const { httpClient, sideEffects } = arguments[1];
1278
+ const payload = renameKeysFromSDKRequestToRESTRequest(
1279
+ {
1280
+ ricosConversation: options?.ricosConversation,
1281
+ persist: options?.persist,
1282
+ invocationId: options?.invocationId
1283
+ },
1284
+ [
1285
+ "ricosConversation.messageInRichContent",
1286
+ "ricosConversation.document",
1287
+ "ricosConversation.documentSelection"
1288
+ ]
1289
+ );
1290
+ const reqOpts = createRicosConversation(payload);
1291
+ sideEffects?.onSiteCall?.();
1292
+ try {
1293
+ const result = await httpClient.request(reqOpts);
1294
+ sideEffects?.onSuccess?.(result);
1295
+ return renameKeysFromRESTResponseToSDKResponse(result.data, []);
1296
+ } catch (err) {
1297
+ const transformedError = sdkTransformError(
1298
+ err,
1299
+ {
1300
+ spreadPathsToArguments: {},
1301
+ explicitPathsToArguments: {
1302
+ ricosConversation: "$[0].ricosConversation",
1303
+ persist: "$[0].persist",
1304
+ invocationId: "$[0].invocationId"
1305
+ },
1306
+ singleArgumentUnchanged: false
1307
+ },
1308
+ ["options"]
1309
+ );
1310
+ sideEffects?.onError?.(err);
1311
+ throw transformedError;
1312
+ }
1313
+ }
1314
+ async function listConversationSuggestions2(richContent, options) {
1315
+ const { httpClient, sideEffects } = arguments[2];
1316
+ const payload = renameKeysFromSDKRequestToRESTRequest(
1317
+ { richContent, suggestions: options?.suggestions },
1318
+ []
1319
+ );
1320
+ const reqOpts = listConversationSuggestions(payload);
1321
+ sideEffects?.onSiteCall?.();
1322
+ try {
1323
+ const result = await httpClient.request(reqOpts);
1324
+ sideEffects?.onSuccess?.(result);
1325
+ return renameKeysFromRESTResponseToSDKResponse(result.data, []);
1326
+ } catch (err) {
1327
+ const transformedError = sdkTransformError(
1328
+ err,
1329
+ {
1330
+ spreadPathsToArguments: {},
1331
+ explicitPathsToArguments: {
1332
+ richContent: "$[0]",
1333
+ suggestions: "$[1].suggestions"
1334
+ },
1335
+ singleArgumentUnchanged: false
1336
+ },
1337
+ ["richContent", "options"]
1338
+ );
1339
+ sideEffects?.onError?.(err);
1340
+ throw transformedError;
1341
+ }
1342
+ }
1343
+ export {
1344
+ Action,
1345
+ Alignment,
1346
+ AppType,
1347
+ AspectRatio,
1348
+ BackgroundType,
1349
+ ButtonDataType,
1350
+ ChunkType,
1351
+ Crop,
1352
+ DecorationType,
1353
+ Direction,
1354
+ DividerDataAlignment,
1355
+ FontType,
1356
+ GIFType,
1357
+ ImagePosition,
1358
+ InitialExpandedItems,
1359
+ Layout,
1360
+ LayoutType,
1361
+ LineStyle,
1362
+ MapType,
1363
+ NodeType,
1364
+ NullValue,
1365
+ Orientation,
1366
+ Placement,
1367
+ PluginContainerDataAlignment,
1368
+ PollLayoutDirection,
1369
+ PollLayoutType,
1370
+ Position,
1371
+ PositionsPosition,
1372
+ Resizing,
1373
+ ResponsivenessBehaviour,
1374
+ Scaling,
1375
+ Source,
1376
+ StylesPosition,
1377
+ SuggestionAction,
1378
+ Target,
1379
+ TextAlignment,
1380
+ ThumbnailsAlignment,
1381
+ Type,
1382
+ VerticalAlignment,
1383
+ VerticalAlignmentAlignment,
1384
+ ViewMode,
1385
+ ViewRole,
1386
+ VoteRole,
1387
+ WebhookIdentityType,
1388
+ Width,
1389
+ WidthType,
1390
+ continueConversationStreamed2 as continueConversationStreamed,
1391
+ createConversationStreamed2 as createConversationStreamed,
1392
+ createRicosConversation2 as createRicosConversation,
1393
+ listConversationSuggestions2 as listConversationSuggestions
1394
+ };
1395
+ //# sourceMappingURL=index.typings.mjs.map