@wix/auto_sdk_ai-site-chat_assistant-training 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.
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/innovation-playground-v2-message-assistant-training.context.d.ts +10 -0
- package/build/cjs/src/innovation-playground-v2-message-assistant-training.context.js +19 -0
- package/build/cjs/src/innovation-playground-v2-message-assistant-training.context.js.map +1 -0
- package/build/cjs/src/innovation-playground-v2-message-assistant-training.http.d.ts +44 -0
- package/build/cjs/src/innovation-playground-v2-message-assistant-training.http.js +247 -0
- package/build/cjs/src/innovation-playground-v2-message-assistant-training.http.js.map +1 -0
- package/build/cjs/src/innovation-playground-v2-message-assistant-training.meta.d.ts +20 -0
- package/build/cjs/src/innovation-playground-v2-message-assistant-training.meta.js +142 -0
- package/build/cjs/src/innovation-playground-v2-message-assistant-training.meta.js.map +1 -0
- package/build/cjs/src/innovation-playground-v2-message-assistant-training.public.d.ts +77 -0
- package/build/cjs/src/innovation-playground-v2-message-assistant-training.public.js +49 -0
- package/build/cjs/src/innovation-playground-v2-message-assistant-training.public.js.map +1 -0
- package/build/cjs/src/innovation-playground-v2-message-assistant-training.types.d.ts +510 -0
- package/build/cjs/src/innovation-playground-v2-message-assistant-training.types.js +58 -0
- package/build/cjs/src/innovation-playground-v2-message-assistant-training.types.js.map +1 -0
- package/build/cjs/src/innovation-playground-v2-message-assistant-training.universal.d.ts +742 -0
- package/build/cjs/src/innovation-playground-v2-message-assistant-training.universal.js +397 -0
- package/build/cjs/src/innovation-playground-v2-message-assistant-training.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/innovation-playground-v2-message-assistant-training.context.d.ts +10 -0
- package/build/es/src/innovation-playground-v2-message-assistant-training.context.js +10 -0
- package/build/es/src/innovation-playground-v2-message-assistant-training.context.js.map +1 -0
- package/build/es/src/innovation-playground-v2-message-assistant-training.http.d.ts +44 -0
- package/build/es/src/innovation-playground-v2-message-assistant-training.http.js +238 -0
- package/build/es/src/innovation-playground-v2-message-assistant-training.http.js.map +1 -0
- package/build/es/src/innovation-playground-v2-message-assistant-training.meta.d.ts +20 -0
- package/build/es/src/innovation-playground-v2-message-assistant-training.meta.js +110 -0
- package/build/es/src/innovation-playground-v2-message-assistant-training.meta.js.map +1 -0
- package/build/es/src/innovation-playground-v2-message-assistant-training.public.d.ts +77 -0
- package/build/es/src/innovation-playground-v2-message-assistant-training.public.js +34 -0
- package/build/es/src/innovation-playground-v2-message-assistant-training.public.js.map +1 -0
- package/build/es/src/innovation-playground-v2-message-assistant-training.types.d.ts +510 -0
- package/build/es/src/innovation-playground-v2-message-assistant-training.types.js +55 -0
- package/build/es/src/innovation-playground-v2-message-assistant-training.types.js.map +1 -0
- package/build/es/src/innovation-playground-v2-message-assistant-training.universal.d.ts +742 -0
- package/build/es/src/innovation-playground-v2-message-assistant-training.universal.js +365 -0
- package/build/es/src/innovation-playground-v2-message-assistant-training.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/innovation-playground-v2-message-assistant-training.context.d.ts +10 -0
- package/build/internal/cjs/src/innovation-playground-v2-message-assistant-training.context.js +19 -0
- package/build/internal/cjs/src/innovation-playground-v2-message-assistant-training.context.js.map +1 -0
- package/build/internal/cjs/src/innovation-playground-v2-message-assistant-training.http.d.ts +44 -0
- package/build/internal/cjs/src/innovation-playground-v2-message-assistant-training.http.js +247 -0
- package/build/internal/cjs/src/innovation-playground-v2-message-assistant-training.http.js.map +1 -0
- package/build/internal/cjs/src/innovation-playground-v2-message-assistant-training.meta.d.ts +20 -0
- package/build/internal/cjs/src/innovation-playground-v2-message-assistant-training.meta.js +142 -0
- package/build/internal/cjs/src/innovation-playground-v2-message-assistant-training.meta.js.map +1 -0
- package/build/internal/cjs/src/innovation-playground-v2-message-assistant-training.public.d.ts +77 -0
- package/build/internal/cjs/src/innovation-playground-v2-message-assistant-training.public.js +49 -0
- package/build/internal/cjs/src/innovation-playground-v2-message-assistant-training.public.js.map +1 -0
- package/build/internal/cjs/src/innovation-playground-v2-message-assistant-training.types.d.ts +510 -0
- package/build/internal/cjs/src/innovation-playground-v2-message-assistant-training.types.js +58 -0
- package/build/internal/cjs/src/innovation-playground-v2-message-assistant-training.types.js.map +1 -0
- package/build/internal/cjs/src/innovation-playground-v2-message-assistant-training.universal.d.ts +742 -0
- package/build/internal/cjs/src/innovation-playground-v2-message-assistant-training.universal.js +397 -0
- package/build/internal/cjs/src/innovation-playground-v2-message-assistant-training.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/innovation-playground-v2-message-assistant-training.context.d.ts +10 -0
- package/build/internal/es/src/innovation-playground-v2-message-assistant-training.context.js +10 -0
- package/build/internal/es/src/innovation-playground-v2-message-assistant-training.context.js.map +1 -0
- package/build/internal/es/src/innovation-playground-v2-message-assistant-training.http.d.ts +44 -0
- package/build/internal/es/src/innovation-playground-v2-message-assistant-training.http.js +238 -0
- package/build/internal/es/src/innovation-playground-v2-message-assistant-training.http.js.map +1 -0
- package/build/internal/es/src/innovation-playground-v2-message-assistant-training.meta.d.ts +20 -0
- package/build/internal/es/src/innovation-playground-v2-message-assistant-training.meta.js +110 -0
- package/build/internal/es/src/innovation-playground-v2-message-assistant-training.meta.js.map +1 -0
- package/build/internal/es/src/innovation-playground-v2-message-assistant-training.public.d.ts +77 -0
- package/build/internal/es/src/innovation-playground-v2-message-assistant-training.public.js +34 -0
- package/build/internal/es/src/innovation-playground-v2-message-assistant-training.public.js.map +1 -0
- package/build/internal/es/src/innovation-playground-v2-message-assistant-training.types.d.ts +510 -0
- package/build/internal/es/src/innovation-playground-v2-message-assistant-training.types.js +55 -0
- package/build/internal/es/src/innovation-playground-v2-message-assistant-training.types.js.map +1 -0
- package/build/internal/es/src/innovation-playground-v2-message-assistant-training.universal.d.ts +742 -0
- package/build/internal/es/src/innovation-playground-v2-message-assistant-training.universal.js +365 -0
- package/build/internal/es/src/innovation-playground-v2-message-assistant-training.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { AddFeedbackOptions, AddFeedbackResponse, AddFeedbackResponseNonNullableFields, AskQuestionResponse, AskQuestionResponseNonNullableFields, BulkUpdateMessageTagsByFilterOptions, BulkUpdateMessageTagsByFilterResponse, BulkUpdateMessageTagsByFilterResponseNonNullableFields, BulkUpdateMessageTagsOptions, BulkUpdateMessageTagsResponse, BulkUpdateMessageTagsResponseNonNullableFields, Message, MessagesQueryBuilder, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, UpdateExtendedFieldsResponseNonNullableFields } from './innovation-playground-v2-message-assistant-training.universal.js';
|
|
3
|
+
export declare const __metadata: {
|
|
4
|
+
PACKAGE_NAME: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function queryMessages(httpClient: HttpClient): QueryMessagesSignature;
|
|
7
|
+
interface QueryMessagesSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a query to retrieve a list of messages.
|
|
10
|
+
* The `queryMessages()` function builds a query to retrieve a list of messages and returns a `MessagesQueryBuilder` object.
|
|
11
|
+
* The returned object contains the query definition, which is typically used to run the query using the `find()` function.
|
|
12
|
+
* You can refine the query by chaining `MessagesQueryBuilder` functions onto the query. `MessagesQueryBuilder` functions enable you to sort, filter, and control the results `queryMessages()` returns.
|
|
13
|
+
* `queryMessages()` runs with these `MessagesQueryBuilder` defaults, which you can override:
|
|
14
|
+
*
|
|
15
|
+
* *`skip(0)`
|
|
16
|
+
* * `limit(50)`
|
|
17
|
+
* * `ascending("createdDate")`
|
|
18
|
+
*
|
|
19
|
+
* The functions that are chained to `queryMessages()` are applied in the order they are called. For example, if you apply `ascending('createdDate')` and then `descending('id')`, the results are sorted first by the created date, and then, if there are multiple results with the same created date, the messages are sorted by ID.
|
|
20
|
+
*
|
|
21
|
+
* ## Supported Filters and Sorting
|
|
22
|
+
*
|
|
23
|
+
* | Field | Supported Filters | Sortable |
|
|
24
|
+
* |----------------|------------------------------------------------------------------------------------------|-----------|
|
|
25
|
+
* | `id` | [All operators](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#operators). | Sortable |
|
|
26
|
+
* | `createdDate` | [All operators](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#operators). | Sortable |
|
|
27
|
+
*/
|
|
28
|
+
(): MessagesQueryBuilder;
|
|
29
|
+
}
|
|
30
|
+
export declare function askQuestion(httpClient: HttpClient): AskQuestionSignature;
|
|
31
|
+
interface AskQuestionSignature {
|
|
32
|
+
/**
|
|
33
|
+
* Asks a question to the AI Assistant.
|
|
34
|
+
*
|
|
35
|
+
* This method creates and sends a message from a Wix user.
|
|
36
|
+
* @param - Question message.
|
|
37
|
+
*/
|
|
38
|
+
(question: Message): Promise<AskQuestionResponse & AskQuestionResponseNonNullableFields>;
|
|
39
|
+
}
|
|
40
|
+
export declare function addFeedback(httpClient: HttpClient): AddFeedbackSignature;
|
|
41
|
+
interface AddFeedbackSignature {
|
|
42
|
+
/**
|
|
43
|
+
* Adds feedback to a message.
|
|
44
|
+
* @param - ID of the message to add feedback to.
|
|
45
|
+
*/
|
|
46
|
+
(messageId: string, options: AddFeedbackOptions): Promise<AddFeedbackResponse & AddFeedbackResponseNonNullableFields>;
|
|
47
|
+
}
|
|
48
|
+
export declare function bulkUpdateMessageTags(httpClient: HttpClient): BulkUpdateMessageTagsSignature;
|
|
49
|
+
interface BulkUpdateMessageTagsSignature {
|
|
50
|
+
/**
|
|
51
|
+
* Synchronously updates tags on a list of messages, specified using the messages' IDs.
|
|
52
|
+
*
|
|
53
|
+
* If a tag appears in both `assignTags` and `unassignTags`, it is assigned.
|
|
54
|
+
* @param - Message IDs. Tags are updated for messages included in this list.
|
|
55
|
+
*/
|
|
56
|
+
(ids: string[] | null, options?: BulkUpdateMessageTagsOptions | undefined): Promise<BulkUpdateMessageTagsResponse & BulkUpdateMessageTagsResponseNonNullableFields>;
|
|
57
|
+
}
|
|
58
|
+
export declare function bulkUpdateMessageTagsByFilter(httpClient: HttpClient): BulkUpdateMessageTagsByFilterSignature;
|
|
59
|
+
interface BulkUpdateMessageTagsByFilterSignature {
|
|
60
|
+
/**
|
|
61
|
+
* Asynchronously updates tags on a list of messages, specified by applying a filter to all messages. If a filter is not specified, this method updates all messages.
|
|
62
|
+
*
|
|
63
|
+
* If a tag appears in both `assignTags` and `unassignTags`, it is assigned.
|
|
64
|
+
* @param - Filter to apply to the messages. Tags are updated for messages included in this filter.
|
|
65
|
+
*/
|
|
66
|
+
(filter: Record<string, any> | null, options?: BulkUpdateMessageTagsByFilterOptions | undefined): Promise<BulkUpdateMessageTagsByFilterResponse & BulkUpdateMessageTagsByFilterResponseNonNullableFields>;
|
|
67
|
+
}
|
|
68
|
+
export declare function updateExtendedFields(httpClient: HttpClient): UpdateExtendedFieldsSignature;
|
|
69
|
+
interface UpdateExtendedFieldsSignature {
|
|
70
|
+
/**
|
|
71
|
+
* Updates extended fields. This method does not increment the revision.
|
|
72
|
+
* @param - ID of the entity to update.
|
|
73
|
+
* @param - Identifier for the app whose extended fields are being updated.
|
|
74
|
+
*/
|
|
75
|
+
(_id: string, namespace: string, options: UpdateExtendedFieldsOptions): Promise<UpdateExtendedFieldsResponse & UpdateExtendedFieldsResponseNonNullableFields>;
|
|
76
|
+
}
|
|
77
|
+
export { Action, ActionEvent, AddFeedbackOptions, AddFeedbackRequest, AddFeedbackResponse, AddFeedbackResponseNonNullableFields, ApplicationError, AskQuestionRequest, AskQuestionResponse, AskQuestionResponseNonNullableFields, Body, BulkActionMetadata, BulkUpdateMessageTagsByFilterOptions, BulkUpdateMessageTagsByFilterRequest, BulkUpdateMessageTagsByFilterResponse, BulkUpdateMessageTagsByFilterResponseNonNullableFields, BulkUpdateMessageTagsOptions, BulkUpdateMessageTagsRequest, BulkUpdateMessageTagsResponse, BulkUpdateMessageTagsResponseNonNullableFields, BulkUpdateMessageTagsResult, Category, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, Document, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, Feedback, FeedbackType, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, Message, MessageEnvelope, MessagesQueryBuilder, MessagesQueryResult, QueryMessagesRequest, QueryMessagesResponse, QueryMessagesResponseNonNullableFields, RestoreInfo, Sender, SortOrder, Sorting, TagList, Tags, UpdateExtendedFieldsOptions, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse, UpdateExtendedFieldsResponseNonNullableFields, WebhookIdentityType, } from './innovation-playground-v2-message-assistant-training.universal.js';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookIdentityType = exports.SortOrder = exports.Sender = exports.FeedbackType = exports.Category = exports.Action = exports.updateExtendedFields = exports.bulkUpdateMessageTagsByFilter = exports.bulkUpdateMessageTags = exports.addFeedback = exports.askQuestion = exports.queryMessages = exports.__metadata = void 0;
|
|
4
|
+
const innovation_playground_v2_message_assistant_training_universal_js_1 = require("./innovation-playground-v2-message-assistant-training.universal.js");
|
|
5
|
+
exports.__metadata = { PACKAGE_NAME: '@wix/ai-site-chat' };
|
|
6
|
+
function queryMessages(httpClient) {
|
|
7
|
+
return () => (0, innovation_playground_v2_message_assistant_training_universal_js_1.queryMessages)(
|
|
8
|
+
// @ts-ignore
|
|
9
|
+
{ httpClient });
|
|
10
|
+
}
|
|
11
|
+
exports.queryMessages = queryMessages;
|
|
12
|
+
function askQuestion(httpClient) {
|
|
13
|
+
return (question) => (0, innovation_playground_v2_message_assistant_training_universal_js_1.askQuestion)(question,
|
|
14
|
+
// @ts-ignore
|
|
15
|
+
{ httpClient });
|
|
16
|
+
}
|
|
17
|
+
exports.askQuestion = askQuestion;
|
|
18
|
+
function addFeedback(httpClient) {
|
|
19
|
+
return (messageId, options) => (0, innovation_playground_v2_message_assistant_training_universal_js_1.addFeedback)(messageId, options,
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
{ httpClient });
|
|
22
|
+
}
|
|
23
|
+
exports.addFeedback = addFeedback;
|
|
24
|
+
function bulkUpdateMessageTags(httpClient) {
|
|
25
|
+
return (ids, options) => (0, innovation_playground_v2_message_assistant_training_universal_js_1.bulkUpdateMessageTags)(ids, options,
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
{ httpClient });
|
|
28
|
+
}
|
|
29
|
+
exports.bulkUpdateMessageTags = bulkUpdateMessageTags;
|
|
30
|
+
function bulkUpdateMessageTagsByFilter(httpClient) {
|
|
31
|
+
return (filter, options) => (0, innovation_playground_v2_message_assistant_training_universal_js_1.bulkUpdateMessageTagsByFilter)(filter, options,
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
{ httpClient });
|
|
34
|
+
}
|
|
35
|
+
exports.bulkUpdateMessageTagsByFilter = bulkUpdateMessageTagsByFilter;
|
|
36
|
+
function updateExtendedFields(httpClient) {
|
|
37
|
+
return (_id, namespace, options) => (0, innovation_playground_v2_message_assistant_training_universal_js_1.updateExtendedFields)(_id, namespace, options,
|
|
38
|
+
// @ts-ignore
|
|
39
|
+
{ httpClient });
|
|
40
|
+
}
|
|
41
|
+
exports.updateExtendedFields = updateExtendedFields;
|
|
42
|
+
var innovation_playground_v2_message_assistant_training_universal_js_2 = require("./innovation-playground-v2-message-assistant-training.universal.js");
|
|
43
|
+
Object.defineProperty(exports, "Action", { enumerable: true, get: function () { return innovation_playground_v2_message_assistant_training_universal_js_2.Action; } });
|
|
44
|
+
Object.defineProperty(exports, "Category", { enumerable: true, get: function () { return innovation_playground_v2_message_assistant_training_universal_js_2.Category; } });
|
|
45
|
+
Object.defineProperty(exports, "FeedbackType", { enumerable: true, get: function () { return innovation_playground_v2_message_assistant_training_universal_js_2.FeedbackType; } });
|
|
46
|
+
Object.defineProperty(exports, "Sender", { enumerable: true, get: function () { return innovation_playground_v2_message_assistant_training_universal_js_2.Sender; } });
|
|
47
|
+
Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return innovation_playground_v2_message_assistant_training_universal_js_2.SortOrder; } });
|
|
48
|
+
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return innovation_playground_v2_message_assistant_training_universal_js_2.WebhookIdentityType; } });
|
|
49
|
+
//# sourceMappingURL=innovation-playground-v2-message-assistant-training.public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"innovation-playground-v2-message-assistant-training.public.js","sourceRoot":"","sources":["../../../src/innovation-playground-v2-message-assistant-training.public.ts"],"names":[],"mappings":";;;AACA,yJAuB4E;AAE/D,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,mBAAmB,EAAE,CAAC;AAEhE,SAAgB,aAAa,CAAC,UAAsB;IAClD,OAAO,GAAG,EAAE,CACV,IAAA,gFAAsB;IACpB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAND,sCAMC;AA0BD,SAAgB,WAAW,CAAC,UAAsB;IAChD,OAAO,CAAC,QAAiB,EAAE,EAAE,CAC3B,IAAA,8EAAoB,EAClB,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,kCAOC;AAcD,SAAgB,WAAW,CAAC,UAAsB;IAChD,OAAO,CAAC,SAAiB,EAAE,OAA2B,EAAE,EAAE,CACxD,IAAA,8EAAoB,EAClB,SAAS,EACT,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,kCAQC;AAYD,SAAgB,qBAAqB,CACnC,UAAsB;IAEtB,OAAO,CAAC,GAAoB,EAAE,OAAsC,EAAE,EAAE,CACtE,IAAA,wFAA8B,EAC5B,GAAG,EACH,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAVD,sDAUC;AAkBD,SAAgB,6BAA6B,CAC3C,UAAsB;IAEtB,OAAO,CACL,MAAkC,EAClC,OAA8C,EAC9C,EAAE,CACF,IAAA,gGAAsC,EACpC,MAAM,EACN,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAbD,sEAaC;AAkBD,SAAgB,oBAAoB,CAClC,UAAsB;IAEtB,OAAO,CACL,GAAW,EACX,SAAiB,EACjB,OAAoC,EACpC,EAAE,CACF,IAAA,uFAA6B,EAC3B,GAAG,EACH,SAAS,EACT,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAfD,oDAeC;AAiBD,uJA2D4E;AA1D1E,0JAAA,MAAM,OAAA;AAqBN,4JAAA,QAAQ,OAAA;AAeR,gKAAA,YAAY,OAAA;AAYZ,0JAAA,MAAM,OAAA;AACN,6JAAA,SAAS,OAAA;AAQT,uKAAA,mBAAmB,OAAA"}
|
|
@@ -0,0 +1,510 @@
|
|
|
1
|
+
export interface Message {
|
|
2
|
+
/** Message ID. */
|
|
3
|
+
id?: string;
|
|
4
|
+
/** Conversation ID. */
|
|
5
|
+
conversationId?: string;
|
|
6
|
+
/** Message sender type. */
|
|
7
|
+
sender?: Sender;
|
|
8
|
+
/** Feedback attached to the message. Only relevant for messages sent by the AI assistant. */
|
|
9
|
+
feedback?: Feedback;
|
|
10
|
+
/**
|
|
11
|
+
* Date and time the message was created.
|
|
12
|
+
* @readonly
|
|
13
|
+
*/
|
|
14
|
+
createdDate?: Date | null;
|
|
15
|
+
/**
|
|
16
|
+
* Date and time the message was updated.
|
|
17
|
+
* @readonly
|
|
18
|
+
*/
|
|
19
|
+
updatedDate?: Date | null;
|
|
20
|
+
/**
|
|
21
|
+
* Revision number, which increments by 1 each time the message is updated. To prevent conflicting changes, the current revision must be passed when updating the message.
|
|
22
|
+
*
|
|
23
|
+
* Ignored when creating a message.
|
|
24
|
+
* @readonly
|
|
25
|
+
*/
|
|
26
|
+
revision?: string | null;
|
|
27
|
+
/** Message body. */
|
|
28
|
+
body?: Body;
|
|
29
|
+
/** ID of the message that this message is answering. */
|
|
30
|
+
answerTo?: string | null;
|
|
31
|
+
/** Extended fields. */
|
|
32
|
+
extendedFields?: ExtendedFields;
|
|
33
|
+
/** Tags. */
|
|
34
|
+
tags?: Tags;
|
|
35
|
+
}
|
|
36
|
+
export declare enum Sender {
|
|
37
|
+
/** Unknown sender type. */
|
|
38
|
+
UNKNOWN_SENDER = "UNKNOWN_SENDER",
|
|
39
|
+
/** Wix user. For example, a site admin. */
|
|
40
|
+
USER = "USER",
|
|
41
|
+
/** AI assistant. */
|
|
42
|
+
ASSISTANT = "ASSISTANT"
|
|
43
|
+
}
|
|
44
|
+
export interface Feedback {
|
|
45
|
+
/** Feedback text. */
|
|
46
|
+
text?: string | null;
|
|
47
|
+
/**
|
|
48
|
+
* Document attached to the feedback.
|
|
49
|
+
* @readonly
|
|
50
|
+
*/
|
|
51
|
+
document?: Document;
|
|
52
|
+
/**
|
|
53
|
+
* Defined if there's an error attaching the document.
|
|
54
|
+
* @readonly
|
|
55
|
+
*/
|
|
56
|
+
error?: string | null;
|
|
57
|
+
/** Feedback type. */
|
|
58
|
+
type?: FeedbackType;
|
|
59
|
+
}
|
|
60
|
+
export interface Document {
|
|
61
|
+
/** ID of the external document. */
|
|
62
|
+
id?: string;
|
|
63
|
+
/** Title of the external document. */
|
|
64
|
+
title?: string;
|
|
65
|
+
/** Description of the external document. */
|
|
66
|
+
description?: string;
|
|
67
|
+
/** Tags of the external document. */
|
|
68
|
+
tags?: string[];
|
|
69
|
+
/** URL of the external document. */
|
|
70
|
+
url?: string;
|
|
71
|
+
/** Category of the external document. */
|
|
72
|
+
category?: Category;
|
|
73
|
+
/** Action to be taken when the external document is presented to the user. */
|
|
74
|
+
action?: Action;
|
|
75
|
+
/** Whether the external document is generated from a feedback. */
|
|
76
|
+
isFeedback?: boolean | null;
|
|
77
|
+
/** Whether the external document is published. */
|
|
78
|
+
isPublished?: boolean | null;
|
|
79
|
+
/** Timestamp of the last update of the external document. */
|
|
80
|
+
updateTs?: Date | null;
|
|
81
|
+
/** Relevance of the external document. */
|
|
82
|
+
relevance?: number | null;
|
|
83
|
+
/** Usage of the external document. */
|
|
84
|
+
usage?: number | null;
|
|
85
|
+
}
|
|
86
|
+
/** Category of the external document. */
|
|
87
|
+
export declare enum Category {
|
|
88
|
+
NO_CATEGORY = "NO_CATEGORY",
|
|
89
|
+
ENRICHMENT = "ENRICHMENT",
|
|
90
|
+
/** FEEDBACK = 2; */
|
|
91
|
+
RESTRICTION = "RESTRICTION"
|
|
92
|
+
}
|
|
93
|
+
/** Action to be taken when the external document is presented to the user. */
|
|
94
|
+
export declare enum Action {
|
|
95
|
+
NO_ACTION = "NO_ACTION",
|
|
96
|
+
NO_ANSWER = "NO_ANSWER",
|
|
97
|
+
CONTACT = "CONTACT"
|
|
98
|
+
}
|
|
99
|
+
export declare enum FeedbackType {
|
|
100
|
+
/** Unknown feedback type. */
|
|
101
|
+
UNKNOWN = "UNKNOWN",
|
|
102
|
+
/** AI assistant provided relevant and correct information. */
|
|
103
|
+
THUMBS_UP = "THUMBS_UP",
|
|
104
|
+
/** AI assistant didn't answer the question. */
|
|
105
|
+
IRRELEVANT = "IRRELEVANT",
|
|
106
|
+
/** AI assistant provided incorrect information. */
|
|
107
|
+
INCORRECT = "INCORRECT",
|
|
108
|
+
/** AI Assistant should not answer the question asked. */
|
|
109
|
+
SHOULD_NOT_ANSWER = "SHOULD_NOT_ANSWER",
|
|
110
|
+
/** AI Assistant answered the question, but could be improved. */
|
|
111
|
+
OK_BUT = "OK_BUT",
|
|
112
|
+
/** Other. */
|
|
113
|
+
OTHER = "OTHER"
|
|
114
|
+
}
|
|
115
|
+
export interface Body {
|
|
116
|
+
/** Main text of the message. */
|
|
117
|
+
mainText?: string | null;
|
|
118
|
+
/** Footer text of the message. */
|
|
119
|
+
footerText?: string | null;
|
|
120
|
+
/** Additional data. */
|
|
121
|
+
additionalData?: Record<string, any>[] | null;
|
|
122
|
+
}
|
|
123
|
+
export interface ExtendedFields {
|
|
124
|
+
/**
|
|
125
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
126
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
127
|
+
*
|
|
128
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
129
|
+
*
|
|
130
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
131
|
+
*/
|
|
132
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Common object for tags.
|
|
136
|
+
* Should be use as in this example:
|
|
137
|
+
* message Foo {
|
|
138
|
+
* string id = 1;
|
|
139
|
+
* ...
|
|
140
|
+
* Tags tags = 5
|
|
141
|
+
* }
|
|
142
|
+
*
|
|
143
|
+
* example of taggable entity
|
|
144
|
+
* {
|
|
145
|
+
* id: "123"
|
|
146
|
+
* tags: {
|
|
147
|
+
* tags: {
|
|
148
|
+
* tag_ids:["11","22"]
|
|
149
|
+
* },
|
|
150
|
+
* private_tags: {
|
|
151
|
+
* tag_ids: ["33", "44"]
|
|
152
|
+
* }
|
|
153
|
+
* }
|
|
154
|
+
* }
|
|
155
|
+
*/
|
|
156
|
+
export interface Tags {
|
|
157
|
+
/** Tags that require an additional permission in order to access them, normally not given to site members or visitors. */
|
|
158
|
+
privateTags?: TagList;
|
|
159
|
+
/** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
|
|
160
|
+
tags?: TagList;
|
|
161
|
+
}
|
|
162
|
+
export interface TagList {
|
|
163
|
+
/** List of tag IDs */
|
|
164
|
+
tagIds?: string[];
|
|
165
|
+
}
|
|
166
|
+
export interface QueryMessagesRequest {
|
|
167
|
+
/** WQL expression. */
|
|
168
|
+
query?: CursorQuery;
|
|
169
|
+
}
|
|
170
|
+
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
171
|
+
/**
|
|
172
|
+
* Cursor paging options.
|
|
173
|
+
*
|
|
174
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
175
|
+
*/
|
|
176
|
+
cursorPaging?: CursorPaging;
|
|
177
|
+
/**
|
|
178
|
+
* Filter object.
|
|
179
|
+
*
|
|
180
|
+
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
181
|
+
*/
|
|
182
|
+
filter?: Record<string, any> | null;
|
|
183
|
+
/**
|
|
184
|
+
* Sort object.
|
|
185
|
+
*
|
|
186
|
+
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
187
|
+
*/
|
|
188
|
+
sort?: Sorting[];
|
|
189
|
+
}
|
|
190
|
+
/** @oneof */
|
|
191
|
+
export interface CursorQueryPagingMethodOneOf {
|
|
192
|
+
/**
|
|
193
|
+
* Cursor paging options.
|
|
194
|
+
*
|
|
195
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
196
|
+
*/
|
|
197
|
+
cursorPaging?: CursorPaging;
|
|
198
|
+
}
|
|
199
|
+
export interface Sorting {
|
|
200
|
+
/** Name of the field to sort by. */
|
|
201
|
+
fieldName?: string;
|
|
202
|
+
/** Sort order. */
|
|
203
|
+
order?: SortOrder;
|
|
204
|
+
}
|
|
205
|
+
export declare enum SortOrder {
|
|
206
|
+
ASC = "ASC",
|
|
207
|
+
DESC = "DESC"
|
|
208
|
+
}
|
|
209
|
+
export interface CursorPaging {
|
|
210
|
+
/** Maximum number of items to return in the results. */
|
|
211
|
+
limit?: number | null;
|
|
212
|
+
/**
|
|
213
|
+
* Pointer to the next or previous page in the list of results.
|
|
214
|
+
*
|
|
215
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
216
|
+
* Not relevant for the first request.
|
|
217
|
+
*/
|
|
218
|
+
cursor?: string | null;
|
|
219
|
+
}
|
|
220
|
+
export interface QueryMessagesResponse {
|
|
221
|
+
/** List of messages. */
|
|
222
|
+
messages?: Message[];
|
|
223
|
+
/** Paging metadata. */
|
|
224
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
225
|
+
}
|
|
226
|
+
export interface CursorPagingMetadata {
|
|
227
|
+
/** Number of items returned in current page. */
|
|
228
|
+
count?: number | null;
|
|
229
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
230
|
+
cursors?: Cursors;
|
|
231
|
+
/**
|
|
232
|
+
* Whether there are more pages to retrieve following the current page.
|
|
233
|
+
*
|
|
234
|
+
* + `true`: Another page of results can be retrieved.
|
|
235
|
+
* + `false`: This is the last page.
|
|
236
|
+
*/
|
|
237
|
+
hasNext?: boolean | null;
|
|
238
|
+
}
|
|
239
|
+
export interface Cursors {
|
|
240
|
+
/** Cursor string pointing to the next page in the list of results. */
|
|
241
|
+
next?: string | null;
|
|
242
|
+
/** Cursor pointing to the previous page in the list of results. */
|
|
243
|
+
prev?: string | null;
|
|
244
|
+
}
|
|
245
|
+
export interface AskQuestionRequest {
|
|
246
|
+
/** Question message. */
|
|
247
|
+
question: Message;
|
|
248
|
+
}
|
|
249
|
+
export interface AskQuestionResponse {
|
|
250
|
+
/** Answer message. */
|
|
251
|
+
answer?: Message;
|
|
252
|
+
}
|
|
253
|
+
export interface AddFeedbackRequest {
|
|
254
|
+
/** ID of the message to add feedback to. */
|
|
255
|
+
messageId: string;
|
|
256
|
+
/** Feedback to add to the message. */
|
|
257
|
+
feedback: Feedback;
|
|
258
|
+
/** Latest message revision. */
|
|
259
|
+
revision: string;
|
|
260
|
+
}
|
|
261
|
+
export interface AddFeedbackResponse {
|
|
262
|
+
/** Updated message. */
|
|
263
|
+
message?: Message;
|
|
264
|
+
}
|
|
265
|
+
export interface BulkUpdateMessageTagsRequest {
|
|
266
|
+
/** Message IDs. Tags are updated for messages included in this list. */
|
|
267
|
+
ids: string[] | null;
|
|
268
|
+
/** Tags to assign. */
|
|
269
|
+
assignTags: Tags;
|
|
270
|
+
/** Tags to unassign. */
|
|
271
|
+
unassignTags?: Tags;
|
|
272
|
+
}
|
|
273
|
+
export interface BulkUpdateMessageTagsResponse {
|
|
274
|
+
/** List of metadata for each message updated. */
|
|
275
|
+
results?: BulkUpdateMessageTagsResult[];
|
|
276
|
+
/** Metadata. */
|
|
277
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
278
|
+
}
|
|
279
|
+
export interface ItemMetadata {
|
|
280
|
+
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
281
|
+
id?: string | null;
|
|
282
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
283
|
+
originalIndex?: number;
|
|
284
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
285
|
+
success?: boolean;
|
|
286
|
+
/** Details about the error in case of failure. */
|
|
287
|
+
error?: ApplicationError;
|
|
288
|
+
}
|
|
289
|
+
export interface ApplicationError {
|
|
290
|
+
/** Error code. */
|
|
291
|
+
code?: string;
|
|
292
|
+
/** Description of the error. */
|
|
293
|
+
description?: string;
|
|
294
|
+
/** Data related to the error. */
|
|
295
|
+
data?: Record<string, any> | null;
|
|
296
|
+
}
|
|
297
|
+
export interface BulkUpdateMessageTagsResult {
|
|
298
|
+
/** Individual message metadata. */
|
|
299
|
+
itemMetadata?: ItemMetadata;
|
|
300
|
+
}
|
|
301
|
+
export interface BulkActionMetadata {
|
|
302
|
+
/** Number of items that were successfully processed. */
|
|
303
|
+
totalSuccesses?: number;
|
|
304
|
+
/** Number of items that couldn't be processed. */
|
|
305
|
+
totalFailures?: number;
|
|
306
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
307
|
+
undetailedFailures?: number;
|
|
308
|
+
}
|
|
309
|
+
export interface BulkUpdateMessageTagsByFilterRequest {
|
|
310
|
+
/** Filter to apply to the messages. Tags are updated for messages included in this filter. */
|
|
311
|
+
filter: Record<string, any> | null;
|
|
312
|
+
/** Tags to assign. */
|
|
313
|
+
assignTags: Tags;
|
|
314
|
+
/** Tags to unassign. */
|
|
315
|
+
unassignTags?: Tags;
|
|
316
|
+
}
|
|
317
|
+
export interface BulkUpdateMessageTagsByFilterResponse {
|
|
318
|
+
/** Job ID. */
|
|
319
|
+
jobId?: string;
|
|
320
|
+
}
|
|
321
|
+
export interface UpdateExtendedFieldsRequest {
|
|
322
|
+
/** ID of the entity to update. */
|
|
323
|
+
id: string;
|
|
324
|
+
/** Identifier for the app whose extended fields are being updated. */
|
|
325
|
+
namespace: string;
|
|
326
|
+
/** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */
|
|
327
|
+
namespaceData: Record<string, any> | null;
|
|
328
|
+
}
|
|
329
|
+
export interface UpdateExtendedFieldsResponse {
|
|
330
|
+
/** Updated message. */
|
|
331
|
+
message?: Message;
|
|
332
|
+
}
|
|
333
|
+
export interface Empty {
|
|
334
|
+
}
|
|
335
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
336
|
+
createdEvent?: EntityCreatedEvent;
|
|
337
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
338
|
+
deletedEvent?: EntityDeletedEvent;
|
|
339
|
+
actionEvent?: ActionEvent;
|
|
340
|
+
/**
|
|
341
|
+
* Unique event ID.
|
|
342
|
+
* Allows clients to ignore duplicate webhooks.
|
|
343
|
+
*/
|
|
344
|
+
id?: string;
|
|
345
|
+
/**
|
|
346
|
+
* Assumes actions are also always typed to an entity_type
|
|
347
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
348
|
+
*/
|
|
349
|
+
entityFqdn?: string;
|
|
350
|
+
/**
|
|
351
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
352
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
353
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
354
|
+
*/
|
|
355
|
+
slug?: string;
|
|
356
|
+
/** ID of the entity associated with the event. */
|
|
357
|
+
entityId?: string;
|
|
358
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
359
|
+
eventTime?: Date | null;
|
|
360
|
+
/**
|
|
361
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
362
|
+
* (for example, GDPR).
|
|
363
|
+
*/
|
|
364
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
365
|
+
/** If present, indicates the action that triggered the event. */
|
|
366
|
+
originatedFrom?: string | null;
|
|
367
|
+
/**
|
|
368
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
369
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
370
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
371
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
372
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
373
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
374
|
+
*/
|
|
375
|
+
entityEventSequence?: string | null;
|
|
376
|
+
}
|
|
377
|
+
/** @oneof */
|
|
378
|
+
export interface DomainEventBodyOneOf {
|
|
379
|
+
createdEvent?: EntityCreatedEvent;
|
|
380
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
381
|
+
deletedEvent?: EntityDeletedEvent;
|
|
382
|
+
actionEvent?: ActionEvent;
|
|
383
|
+
}
|
|
384
|
+
export interface EntityCreatedEvent {
|
|
385
|
+
entityAsJson?: string;
|
|
386
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
387
|
+
restoreInfo?: RestoreInfo;
|
|
388
|
+
}
|
|
389
|
+
export interface RestoreInfo {
|
|
390
|
+
deletedDate?: Date | null;
|
|
391
|
+
}
|
|
392
|
+
export interface EntityUpdatedEvent {
|
|
393
|
+
/**
|
|
394
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
395
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
396
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
397
|
+
*/
|
|
398
|
+
currentEntityAsJson?: string;
|
|
399
|
+
}
|
|
400
|
+
export interface EntityDeletedEvent {
|
|
401
|
+
/** Entity that was deleted */
|
|
402
|
+
deletedEntityAsJson?: string | null;
|
|
403
|
+
}
|
|
404
|
+
export interface ActionEvent {
|
|
405
|
+
bodyAsJson?: string;
|
|
406
|
+
}
|
|
407
|
+
export interface MessageEnvelope {
|
|
408
|
+
/** App instance ID. */
|
|
409
|
+
instanceId?: string | null;
|
|
410
|
+
/** Event type. */
|
|
411
|
+
eventType?: string;
|
|
412
|
+
/** The identification type and identity data. */
|
|
413
|
+
identity?: IdentificationData;
|
|
414
|
+
/** Stringify payload. */
|
|
415
|
+
data?: string;
|
|
416
|
+
}
|
|
417
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
418
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
419
|
+
anonymousVisitorId?: string;
|
|
420
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
421
|
+
memberId?: string;
|
|
422
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
423
|
+
wixUserId?: string;
|
|
424
|
+
/** ID of an app. */
|
|
425
|
+
appId?: string;
|
|
426
|
+
/** @readonly */
|
|
427
|
+
identityType?: WebhookIdentityType;
|
|
428
|
+
}
|
|
429
|
+
/** @oneof */
|
|
430
|
+
export interface IdentificationDataIdOneOf {
|
|
431
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
432
|
+
anonymousVisitorId?: string;
|
|
433
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
434
|
+
memberId?: string;
|
|
435
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
436
|
+
wixUserId?: string;
|
|
437
|
+
/** ID of an app. */
|
|
438
|
+
appId?: string;
|
|
439
|
+
}
|
|
440
|
+
export declare enum WebhookIdentityType {
|
|
441
|
+
UNKNOWN = "UNKNOWN",
|
|
442
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
443
|
+
MEMBER = "MEMBER",
|
|
444
|
+
WIX_USER = "WIX_USER",
|
|
445
|
+
APP = "APP"
|
|
446
|
+
}
|
|
447
|
+
interface DocumentNonNullableFields {
|
|
448
|
+
id: string;
|
|
449
|
+
title: string;
|
|
450
|
+
description: string;
|
|
451
|
+
tags: string[];
|
|
452
|
+
url: string;
|
|
453
|
+
category: Category;
|
|
454
|
+
action: Action;
|
|
455
|
+
}
|
|
456
|
+
interface FeedbackNonNullableFields {
|
|
457
|
+
document?: DocumentNonNullableFields;
|
|
458
|
+
type: FeedbackType;
|
|
459
|
+
}
|
|
460
|
+
interface TagListNonNullableFields {
|
|
461
|
+
tagIds: string[];
|
|
462
|
+
}
|
|
463
|
+
interface TagsNonNullableFields {
|
|
464
|
+
privateTags?: TagListNonNullableFields;
|
|
465
|
+
tags?: TagListNonNullableFields;
|
|
466
|
+
}
|
|
467
|
+
interface MessageNonNullableFields {
|
|
468
|
+
id: string;
|
|
469
|
+
conversationId: string;
|
|
470
|
+
sender: Sender;
|
|
471
|
+
feedback?: FeedbackNonNullableFields;
|
|
472
|
+
tags?: TagsNonNullableFields;
|
|
473
|
+
}
|
|
474
|
+
export interface QueryMessagesResponseNonNullableFields {
|
|
475
|
+
messages: MessageNonNullableFields[];
|
|
476
|
+
}
|
|
477
|
+
export interface AskQuestionResponseNonNullableFields {
|
|
478
|
+
answer?: MessageNonNullableFields;
|
|
479
|
+
}
|
|
480
|
+
export interface AddFeedbackResponseNonNullableFields {
|
|
481
|
+
message?: MessageNonNullableFields;
|
|
482
|
+
}
|
|
483
|
+
interface ApplicationErrorNonNullableFields {
|
|
484
|
+
code: string;
|
|
485
|
+
description: string;
|
|
486
|
+
}
|
|
487
|
+
interface ItemMetadataNonNullableFields {
|
|
488
|
+
originalIndex: number;
|
|
489
|
+
success: boolean;
|
|
490
|
+
error?: ApplicationErrorNonNullableFields;
|
|
491
|
+
}
|
|
492
|
+
interface BulkUpdateMessageTagsResultNonNullableFields {
|
|
493
|
+
itemMetadata?: ItemMetadataNonNullableFields;
|
|
494
|
+
}
|
|
495
|
+
interface BulkActionMetadataNonNullableFields {
|
|
496
|
+
totalSuccesses: number;
|
|
497
|
+
totalFailures: number;
|
|
498
|
+
undetailedFailures: number;
|
|
499
|
+
}
|
|
500
|
+
export interface BulkUpdateMessageTagsResponseNonNullableFields {
|
|
501
|
+
results: BulkUpdateMessageTagsResultNonNullableFields[];
|
|
502
|
+
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
503
|
+
}
|
|
504
|
+
export interface BulkUpdateMessageTagsByFilterResponseNonNullableFields {
|
|
505
|
+
jobId: string;
|
|
506
|
+
}
|
|
507
|
+
export interface UpdateExtendedFieldsResponseNonNullableFields {
|
|
508
|
+
message?: MessageNonNullableFields;
|
|
509
|
+
}
|
|
510
|
+
export {};
|