@wix/auto_sdk_ai-site-chat_assistant-training 1.0.0 → 1.0.2
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/src/innovation-playground-v2-message-assistant-training.types.d.ts +140 -33
- package/build/cjs/src/innovation-playground-v2-message-assistant-training.types.js.map +1 -1
- package/build/cjs/src/innovation-playground-v2-message-assistant-training.universal.d.ts +161 -32
- package/build/cjs/src/innovation-playground-v2-message-assistant-training.universal.js +24 -0
- package/build/cjs/src/innovation-playground-v2-message-assistant-training.universal.js.map +1 -1
- package/build/es/src/innovation-playground-v2-message-assistant-training.types.d.ts +140 -33
- package/build/es/src/innovation-playground-v2-message-assistant-training.types.js.map +1 -1
- package/build/es/src/innovation-playground-v2-message-assistant-training.universal.d.ts +161 -32
- package/build/es/src/innovation-playground-v2-message-assistant-training.universal.js +24 -0
- package/build/es/src/innovation-playground-v2-message-assistant-training.universal.js.map +1 -1
- package/build/internal/cjs/src/innovation-playground-v2-message-assistant-training.types.d.ts +140 -33
- package/build/internal/cjs/src/innovation-playground-v2-message-assistant-training.types.js.map +1 -1
- package/build/internal/cjs/src/innovation-playground-v2-message-assistant-training.universal.d.ts +161 -32
- package/build/internal/cjs/src/innovation-playground-v2-message-assistant-training.universal.js +24 -0
- package/build/internal/cjs/src/innovation-playground-v2-message-assistant-training.universal.js.map +1 -1
- package/build/internal/es/src/innovation-playground-v2-message-assistant-training.types.d.ts +140 -33
- package/build/internal/es/src/innovation-playground-v2-message-assistant-training.types.js.map +1 -1
- package/build/internal/es/src/innovation-playground-v2-message-assistant-training.universal.d.ts +161 -32
- package/build/internal/es/src/innovation-playground-v2-message-assistant-training.universal.js +24 -0
- package/build/internal/es/src/innovation-playground-v2-message-assistant-training.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
export interface Message {
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Message ID.
|
|
4
|
+
* @format GUID
|
|
5
|
+
*/
|
|
3
6
|
id?: string;
|
|
4
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Conversation ID.
|
|
9
|
+
* @format GUID
|
|
10
|
+
*/
|
|
5
11
|
conversationId?: string;
|
|
6
12
|
/** Message sender type. */
|
|
7
13
|
sender?: Sender;
|
|
@@ -26,7 +32,10 @@ export interface Message {
|
|
|
26
32
|
revision?: string | null;
|
|
27
33
|
/** Message body. */
|
|
28
34
|
body?: Body;
|
|
29
|
-
/**
|
|
35
|
+
/**
|
|
36
|
+
* ID of the message that this message is answering.
|
|
37
|
+
* @format GUID
|
|
38
|
+
*/
|
|
30
39
|
answerTo?: string | null;
|
|
31
40
|
/** Extended fields. */
|
|
32
41
|
extendedFields?: ExtendedFields;
|
|
@@ -42,7 +51,10 @@ export declare enum Sender {
|
|
|
42
51
|
ASSISTANT = "ASSISTANT"
|
|
43
52
|
}
|
|
44
53
|
export interface Feedback {
|
|
45
|
-
/**
|
|
54
|
+
/**
|
|
55
|
+
* Feedback text.
|
|
56
|
+
* @maxLength 4096
|
|
57
|
+
*/
|
|
46
58
|
text?: string | null;
|
|
47
59
|
/**
|
|
48
60
|
* Document attached to the feedback.
|
|
@@ -51,6 +63,7 @@ export interface Feedback {
|
|
|
51
63
|
document?: Document;
|
|
52
64
|
/**
|
|
53
65
|
* Defined if there's an error attaching the document.
|
|
66
|
+
* @maxLength 4096
|
|
54
67
|
* @readonly
|
|
55
68
|
*/
|
|
56
69
|
error?: string | null;
|
|
@@ -58,15 +71,31 @@ export interface Feedback {
|
|
|
58
71
|
type?: FeedbackType;
|
|
59
72
|
}
|
|
60
73
|
export interface Document {
|
|
61
|
-
/**
|
|
74
|
+
/**
|
|
75
|
+
* ID of the external document.
|
|
76
|
+
* @maxLength 36
|
|
77
|
+
*/
|
|
62
78
|
id?: string;
|
|
63
|
-
/**
|
|
79
|
+
/**
|
|
80
|
+
* Title of the external document.
|
|
81
|
+
* @maxLength 1000
|
|
82
|
+
*/
|
|
64
83
|
title?: string;
|
|
65
|
-
/**
|
|
84
|
+
/**
|
|
85
|
+
* Description of the external document.
|
|
86
|
+
* @maxLength 100000
|
|
87
|
+
*/
|
|
66
88
|
description?: string;
|
|
67
|
-
/**
|
|
89
|
+
/**
|
|
90
|
+
* Tags of the external document.
|
|
91
|
+
* @maxLength 1000
|
|
92
|
+
* @maxSize 10
|
|
93
|
+
*/
|
|
68
94
|
tags?: string[];
|
|
69
|
-
/**
|
|
95
|
+
/**
|
|
96
|
+
* URL of the external document.
|
|
97
|
+
* @maxLength 1000
|
|
98
|
+
*/
|
|
70
99
|
url?: string;
|
|
71
100
|
/** Category of the external document. */
|
|
72
101
|
category?: Category;
|
|
@@ -113,11 +142,20 @@ export declare enum FeedbackType {
|
|
|
113
142
|
OTHER = "OTHER"
|
|
114
143
|
}
|
|
115
144
|
export interface Body {
|
|
116
|
-
/**
|
|
145
|
+
/**
|
|
146
|
+
* Main text of the message.
|
|
147
|
+
* @maxLength 4096
|
|
148
|
+
*/
|
|
117
149
|
mainText?: string | null;
|
|
118
|
-
/**
|
|
150
|
+
/**
|
|
151
|
+
* Footer text of the message.
|
|
152
|
+
* @maxLength 4096
|
|
153
|
+
*/
|
|
119
154
|
footerText?: string | null;
|
|
120
|
-
/**
|
|
155
|
+
/**
|
|
156
|
+
* Additional data.
|
|
157
|
+
* @maxSize 30
|
|
158
|
+
*/
|
|
121
159
|
additionalData?: Record<string, any>[] | null;
|
|
122
160
|
}
|
|
123
161
|
export interface ExtendedFields {
|
|
@@ -160,7 +198,11 @@ export interface Tags {
|
|
|
160
198
|
tags?: TagList;
|
|
161
199
|
}
|
|
162
200
|
export interface TagList {
|
|
163
|
-
/**
|
|
201
|
+
/**
|
|
202
|
+
* List of tag IDs
|
|
203
|
+
* @maxSize 100
|
|
204
|
+
* @maxLength 5
|
|
205
|
+
*/
|
|
164
206
|
tagIds?: string[];
|
|
165
207
|
}
|
|
166
208
|
export interface QueryMessagesRequest {
|
|
@@ -184,6 +226,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
184
226
|
* Sort object.
|
|
185
227
|
*
|
|
186
228
|
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
229
|
+
* @maxSize 5
|
|
187
230
|
*/
|
|
188
231
|
sort?: Sorting[];
|
|
189
232
|
}
|
|
@@ -197,7 +240,10 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
197
240
|
cursorPaging?: CursorPaging;
|
|
198
241
|
}
|
|
199
242
|
export interface Sorting {
|
|
200
|
-
/**
|
|
243
|
+
/**
|
|
244
|
+
* Name of the field to sort by.
|
|
245
|
+
* @maxLength 512
|
|
246
|
+
*/
|
|
201
247
|
fieldName?: string;
|
|
202
248
|
/** Sort order. */
|
|
203
249
|
order?: SortOrder;
|
|
@@ -207,18 +253,25 @@ export declare enum SortOrder {
|
|
|
207
253
|
DESC = "DESC"
|
|
208
254
|
}
|
|
209
255
|
export interface CursorPaging {
|
|
210
|
-
/**
|
|
256
|
+
/**
|
|
257
|
+
* Maximum number of items to return in the results.
|
|
258
|
+
* @max 100
|
|
259
|
+
*/
|
|
211
260
|
limit?: number | null;
|
|
212
261
|
/**
|
|
213
262
|
* Pointer to the next or previous page in the list of results.
|
|
214
263
|
*
|
|
215
264
|
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
216
265
|
* Not relevant for the first request.
|
|
266
|
+
* @maxLength 16000
|
|
217
267
|
*/
|
|
218
268
|
cursor?: string | null;
|
|
219
269
|
}
|
|
220
270
|
export interface QueryMessagesResponse {
|
|
221
|
-
/**
|
|
271
|
+
/**
|
|
272
|
+
* List of messages.
|
|
273
|
+
* @maxSize 1000
|
|
274
|
+
*/
|
|
222
275
|
messages?: Message[];
|
|
223
276
|
/** Paging metadata. */
|
|
224
277
|
pagingMetadata?: CursorPagingMetadata;
|
|
@@ -237,9 +290,15 @@ export interface CursorPagingMetadata {
|
|
|
237
290
|
hasNext?: boolean | null;
|
|
238
291
|
}
|
|
239
292
|
export interface Cursors {
|
|
240
|
-
/**
|
|
293
|
+
/**
|
|
294
|
+
* Cursor string pointing to the next page in the list of results.
|
|
295
|
+
* @maxLength 16000
|
|
296
|
+
*/
|
|
241
297
|
next?: string | null;
|
|
242
|
-
/**
|
|
298
|
+
/**
|
|
299
|
+
* Cursor pointing to the previous page in the list of results.
|
|
300
|
+
* @maxLength 16000
|
|
301
|
+
*/
|
|
243
302
|
prev?: string | null;
|
|
244
303
|
}
|
|
245
304
|
export interface AskQuestionRequest {
|
|
@@ -251,7 +310,10 @@ export interface AskQuestionResponse {
|
|
|
251
310
|
answer?: Message;
|
|
252
311
|
}
|
|
253
312
|
export interface AddFeedbackRequest {
|
|
254
|
-
/**
|
|
313
|
+
/**
|
|
314
|
+
* ID of the message to add feedback to.
|
|
315
|
+
* @format GUID
|
|
316
|
+
*/
|
|
255
317
|
messageId: string;
|
|
256
318
|
/** Feedback to add to the message. */
|
|
257
319
|
feedback: Feedback;
|
|
@@ -263,7 +325,12 @@ export interface AddFeedbackResponse {
|
|
|
263
325
|
message?: Message;
|
|
264
326
|
}
|
|
265
327
|
export interface BulkUpdateMessageTagsRequest {
|
|
266
|
-
/**
|
|
328
|
+
/**
|
|
329
|
+
* Message IDs. Tags are updated for messages included in this list.
|
|
330
|
+
* @minSize 1
|
|
331
|
+
* @maxSize 100
|
|
332
|
+
* @format GUID
|
|
333
|
+
*/
|
|
267
334
|
ids: string[] | null;
|
|
268
335
|
/** Tags to assign. */
|
|
269
336
|
assignTags: Tags;
|
|
@@ -271,13 +338,20 @@ export interface BulkUpdateMessageTagsRequest {
|
|
|
271
338
|
unassignTags?: Tags;
|
|
272
339
|
}
|
|
273
340
|
export interface BulkUpdateMessageTagsResponse {
|
|
274
|
-
/**
|
|
341
|
+
/**
|
|
342
|
+
* List of metadata for each message updated.
|
|
343
|
+
* @minSize 1
|
|
344
|
+
* @maxSize 100
|
|
345
|
+
*/
|
|
275
346
|
results?: BulkUpdateMessageTagsResult[];
|
|
276
347
|
/** Metadata. */
|
|
277
348
|
bulkActionMetadata?: BulkActionMetadata;
|
|
278
349
|
}
|
|
279
350
|
export interface ItemMetadata {
|
|
280
|
-
/**
|
|
351
|
+
/**
|
|
352
|
+
* Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
|
|
353
|
+
* @format GUID
|
|
354
|
+
*/
|
|
281
355
|
id?: string | null;
|
|
282
356
|
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
283
357
|
originalIndex?: number;
|
|
@@ -315,7 +389,10 @@ export interface BulkUpdateMessageTagsByFilterRequest {
|
|
|
315
389
|
unassignTags?: Tags;
|
|
316
390
|
}
|
|
317
391
|
export interface BulkUpdateMessageTagsByFilterResponse {
|
|
318
|
-
/**
|
|
392
|
+
/**
|
|
393
|
+
* Job ID.
|
|
394
|
+
* @format GUID
|
|
395
|
+
*/
|
|
319
396
|
jobId?: string;
|
|
320
397
|
}
|
|
321
398
|
export interface UpdateExtendedFieldsRequest {
|
|
@@ -405,9 +482,15 @@ export interface ActionEvent {
|
|
|
405
482
|
bodyAsJson?: string;
|
|
406
483
|
}
|
|
407
484
|
export interface MessageEnvelope {
|
|
408
|
-
/**
|
|
485
|
+
/**
|
|
486
|
+
* App instance ID.
|
|
487
|
+
* @format GUID
|
|
488
|
+
*/
|
|
409
489
|
instanceId?: string | null;
|
|
410
|
-
/**
|
|
490
|
+
/**
|
|
491
|
+
* Event type.
|
|
492
|
+
* @maxLength 150
|
|
493
|
+
*/
|
|
411
494
|
eventType?: string;
|
|
412
495
|
/** The identification type and identity data. */
|
|
413
496
|
identity?: IdentificationData;
|
|
@@ -415,26 +498,50 @@ export interface MessageEnvelope {
|
|
|
415
498
|
data?: string;
|
|
416
499
|
}
|
|
417
500
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
418
|
-
/**
|
|
501
|
+
/**
|
|
502
|
+
* ID of a site visitor that has not logged in to the site.
|
|
503
|
+
* @format GUID
|
|
504
|
+
*/
|
|
419
505
|
anonymousVisitorId?: string;
|
|
420
|
-
/**
|
|
506
|
+
/**
|
|
507
|
+
* ID of a site visitor that has logged in to the site.
|
|
508
|
+
* @format GUID
|
|
509
|
+
*/
|
|
421
510
|
memberId?: string;
|
|
422
|
-
/**
|
|
511
|
+
/**
|
|
512
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
513
|
+
* @format GUID
|
|
514
|
+
*/
|
|
423
515
|
wixUserId?: string;
|
|
424
|
-
/**
|
|
516
|
+
/**
|
|
517
|
+
* ID of an app.
|
|
518
|
+
* @format GUID
|
|
519
|
+
*/
|
|
425
520
|
appId?: string;
|
|
426
521
|
/** @readonly */
|
|
427
522
|
identityType?: WebhookIdentityType;
|
|
428
523
|
}
|
|
429
524
|
/** @oneof */
|
|
430
525
|
export interface IdentificationDataIdOneOf {
|
|
431
|
-
/**
|
|
526
|
+
/**
|
|
527
|
+
* ID of a site visitor that has not logged in to the site.
|
|
528
|
+
* @format GUID
|
|
529
|
+
*/
|
|
432
530
|
anonymousVisitorId?: string;
|
|
433
|
-
/**
|
|
531
|
+
/**
|
|
532
|
+
* ID of a site visitor that has logged in to the site.
|
|
533
|
+
* @format GUID
|
|
534
|
+
*/
|
|
434
535
|
memberId?: string;
|
|
435
|
-
/**
|
|
536
|
+
/**
|
|
537
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
538
|
+
* @format GUID
|
|
539
|
+
*/
|
|
436
540
|
wixUserId?: string;
|
|
437
|
-
/**
|
|
541
|
+
/**
|
|
542
|
+
* ID of an app.
|
|
543
|
+
* @format GUID
|
|
544
|
+
*/
|
|
438
545
|
appId?: string;
|
|
439
546
|
}
|
|
440
547
|
export declare enum WebhookIdentityType {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"innovation-playground-v2-message-assistant-training.types.js","sourceRoot":"","sources":["../../../src/innovation-playground-v2-message-assistant-training.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"innovation-playground-v2-message-assistant-training.types.js","sourceRoot":"","sources":["../../../src/innovation-playground-v2-message-assistant-training.types.ts"],"names":[],"mappings":";;;AA6CA,IAAY,MAOX;AAPD,WAAY,MAAM;IAChB,2BAA2B;IAC3B,2CAAiC,CAAA;IACjC,2CAA2C;IAC3C,uBAAa,CAAA;IACb,oBAAoB;IACpB,iCAAuB,CAAA;AACzB,CAAC,EAPW,MAAM,sBAAN,MAAM,QAOjB;AAkED,yCAAyC;AACzC,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,uCAA2B,CAAA;IAC3B,qCAAyB,CAAA;IACzB,oBAAoB;IACpB,uCAA2B,CAAA;AAC7B,CAAC,EALW,QAAQ,wBAAR,QAAQ,QAKnB;AAED,8EAA8E;AAC9E,IAAY,MAIX;AAJD,WAAY,MAAM;IAChB,iCAAuB,CAAA;IACvB,iCAAuB,CAAA;IACvB,6BAAmB,CAAA;AACrB,CAAC,EAJW,MAAM,sBAAN,MAAM,QAIjB;AAED,IAAY,YAeX;AAfD,WAAY,YAAY;IACtB,6BAA6B;IAC7B,mCAAmB,CAAA;IACnB,8DAA8D;IAC9D,uCAAuB,CAAA;IACvB,+CAA+C;IAC/C,yCAAyB,CAAA;IACzB,mDAAmD;IACnD,uCAAuB,CAAA;IACvB,yDAAyD;IACzD,uDAAuC,CAAA;IACvC,iEAAiE;IACjE,iCAAiB,CAAA;IACjB,aAAa;IACb,+BAAe,CAAA;AACjB,CAAC,EAfW,YAAY,4BAAZ,YAAY,QAevB;AAqHD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAkUD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|