@aws-sdk/client-qconnect 3.693.0 → 3.696.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/README.md +112 -0
- package/dist-cjs/index.js +1279 -149
- package/dist-es/QConnect.js +28 -0
- package/dist-es/commands/ActivateMessageTemplateCommand.js +22 -0
- package/dist-es/commands/CreateMessageTemplateAttachmentCommand.js +23 -0
- package/dist-es/commands/CreateMessageTemplateCommand.js +23 -0
- package/dist-es/commands/CreateMessageTemplateVersionCommand.js +23 -0
- package/dist-es/commands/DeactivateMessageTemplateCommand.js +22 -0
- package/dist-es/commands/DeleteMessageTemplateAttachmentCommand.js +22 -0
- package/dist-es/commands/DeleteMessageTemplateCommand.js +22 -0
- package/dist-es/commands/GetMessageTemplateCommand.js +23 -0
- package/dist-es/commands/GetRecommendationsCommand.js +1 -1
- package/dist-es/commands/ListMessageTemplateVersionsCommand.js +22 -0
- package/dist-es/commands/ListMessageTemplatesCommand.js +22 -0
- package/dist-es/commands/QueryAssistantCommand.js +2 -1
- package/dist-es/commands/RenderMessageTemplateCommand.js +23 -0
- package/dist-es/commands/SearchMessageTemplatesCommand.js +23 -0
- package/dist-es/commands/SearchQuickResponsesCommand.js +1 -1
- package/dist-es/commands/StartContentUploadCommand.js +1 -1
- package/dist-es/commands/StartImportJobCommand.js +1 -1
- package/dist-es/commands/UpdateKnowledgeBaseTemplateUriCommand.js +1 -1
- package/dist-es/commands/UpdateMessageTemplateCommand.js +23 -0
- package/dist-es/commands/UpdateMessageTemplateMetadataCommand.js +23 -0
- package/dist-es/commands/index.js +14 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +280 -152
- package/dist-es/models/models_1.js +138 -0
- package/dist-es/pagination/ListMessageTemplateVersionsPaginator.js +4 -0
- package/dist-es/pagination/ListMessageTemplatesPaginator.js +4 -0
- package/dist-es/pagination/SearchMessageTemplatesPaginator.js +4 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +527 -5
- package/dist-types/QConnect.d.ts +98 -0
- package/dist-types/QConnectClient.d.ts +16 -2
- package/dist-types/commands/ActivateMessageTemplateCommand.d.ts +96 -0
- package/dist-types/commands/CreateMessageTemplateAttachmentCommand.d.ts +109 -0
- package/dist-types/commands/CreateMessageTemplateCommand.d.ts +347 -0
- package/dist-types/commands/CreateMessageTemplateVersionCommand.d.ts +247 -0
- package/dist-types/commands/DeactivateMessageTemplateCommand.d.ts +95 -0
- package/dist-types/commands/DeleteMessageTemplateAttachmentCommand.d.ts +91 -0
- package/dist-types/commands/DeleteMessageTemplateCommand.d.ts +92 -0
- package/dist-types/commands/GetMessageTemplateCommand.d.ts +231 -0
- package/dist-types/commands/GetRecommendationsCommand.d.ts +2 -1
- package/dist-types/commands/ListMessageTemplateVersionsCommand.d.ts +99 -0
- package/dist-types/commands/ListMessageTemplatesCommand.d.ts +104 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/QueryAssistantCommand.d.ts +2 -1
- package/dist-types/commands/RemoveKnowledgeBaseTemplateUriCommand.d.ts +2 -1
- package/dist-types/commands/RenderMessageTemplateCommand.d.ts +206 -0
- package/dist-types/commands/SearchContentCommand.d.ts +1 -1
- package/dist-types/commands/SearchMessageTemplatesCommand.d.ts +138 -0
- package/dist-types/commands/SearchQuickResponsesCommand.d.ts +1 -1
- package/dist-types/commands/StartContentUploadCommand.d.ts +1 -1
- package/dist-types/commands/StartImportJobCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateKnowledgeBaseTemplateUriCommand.d.ts +1 -1
- package/dist-types/commands/UpdateMessageTemplateCommand.d.ts +332 -0
- package/dist-types/commands/UpdateMessageTemplateMetadataCommand.d.ts +233 -0
- package/dist-types/commands/index.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1639 -983
- package/dist-types/models/models_1.d.ts +1256 -0
- package/dist-types/pagination/ListMessageTemplateVersionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListMessageTemplatesPaginator.d.ts +7 -0
- package/dist-types/pagination/SearchMessageTemplatesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +126 -0
- package/dist-types/ts3.4/QConnect.d.ts +238 -0
- package/dist-types/ts3.4/QConnectClient.d.ts +84 -0
- package/dist-types/ts3.4/commands/ActivateMessageTemplateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateMessageTemplateAttachmentCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateMessageTemplateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateMessageTemplateVersionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeactivateMessageTemplateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteMessageTemplateAttachmentCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteMessageTemplateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetMessageTemplateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetRecommendationsCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/ListMessageTemplateVersionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListMessageTemplatesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/QueryAssistantCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/RemoveKnowledgeBaseTemplateUriCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/RenderMessageTemplateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/SearchContentCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/SearchMessageTemplatesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/SearchQuickResponsesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartContentUploadCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartImportJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateKnowledgeBaseTemplateUriCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateMessageTemplateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateMessageTemplateMetadataCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +14 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +466 -284
- package/dist-types/ts3.4/models/models_1.d.ts +349 -0
- package/dist-types/ts3.4/pagination/ListMessageTemplateVersionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListMessageTemplatesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/SearchMessageTemplatesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +168 -0
- package/package.json +35 -35
|
@@ -0,0 +1,1256 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { ChannelSubtype, ContentDataDetails, ContentSummary, DataReference, Document, ExternalSourceConfiguration, GroupingConfiguration, ImportJobData, ImportJobType, IntentDetectedDataDetails, KnowledgeBaseData, QueryResultType, QuickResponseContents, QuickResponseStatus, RankingData, RecommendationTrigger, RecommendationType, RelevanceLevel, SearchExpression, SourceContentDataDetails } from "./models_0";
|
|
3
|
+
import { QConnectServiceException as __BaseException } from "./QConnectServiceException";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface RemoveKnowledgeBaseTemplateUriResponse {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export interface SearchContentRequest {
|
|
13
|
+
/**
|
|
14
|
+
* <p>The token for the next set of results. Use the value returned in the previous
|
|
15
|
+
* response in the next request to retrieve the next set of results.</p>
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
nextToken?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* <p>The maximum number of results to return per page.</p>
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
maxResults?: number | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* <p>The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
knowledgeBaseId: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* <p>The search expression to filter results.</p>
|
|
31
|
+
* @public
|
|
32
|
+
*/
|
|
33
|
+
searchExpression: SearchExpression | undefined;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
export interface SearchContentResponse {
|
|
39
|
+
/**
|
|
40
|
+
* <p>Summary information about the content.</p>
|
|
41
|
+
* @public
|
|
42
|
+
*/
|
|
43
|
+
contentSummaries: ContentSummary[] | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* <p>If there are additional results, this is the token for the next set of results.</p>
|
|
46
|
+
* @public
|
|
47
|
+
*/
|
|
48
|
+
nextToken?: string | undefined;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @public
|
|
52
|
+
* @enum
|
|
53
|
+
*/
|
|
54
|
+
export declare const MessageTemplateFilterOperator: {
|
|
55
|
+
readonly EQUALS: "EQUALS";
|
|
56
|
+
readonly PREFIX: "PREFIX";
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* @public
|
|
60
|
+
*/
|
|
61
|
+
export type MessageTemplateFilterOperator = (typeof MessageTemplateFilterOperator)[keyof typeof MessageTemplateFilterOperator];
|
|
62
|
+
/**
|
|
63
|
+
* <p>The message template fields to filter the message template query results by. The following
|
|
64
|
+
* is the list of supported field names:</p>
|
|
65
|
+
* <ul>
|
|
66
|
+
* <li>
|
|
67
|
+
* <p>name</p>
|
|
68
|
+
* </li>
|
|
69
|
+
* <li>
|
|
70
|
+
* <p>description</p>
|
|
71
|
+
* </li>
|
|
72
|
+
* <li>
|
|
73
|
+
* <p>channel</p>
|
|
74
|
+
* </li>
|
|
75
|
+
* <li>
|
|
76
|
+
* <p>channelSubtype</p>
|
|
77
|
+
* </li>
|
|
78
|
+
* <li>
|
|
79
|
+
* <p>language</p>
|
|
80
|
+
* </li>
|
|
81
|
+
* <li>
|
|
82
|
+
* <p>qualifier</p>
|
|
83
|
+
* </li>
|
|
84
|
+
* <li>
|
|
85
|
+
* <p>createdTime</p>
|
|
86
|
+
* </li>
|
|
87
|
+
* <li>
|
|
88
|
+
* <p>lastModifiedTime</p>
|
|
89
|
+
* </li>
|
|
90
|
+
* <li>
|
|
91
|
+
* <p>lastModifiedBy</p>
|
|
92
|
+
* </li>
|
|
93
|
+
* <li>
|
|
94
|
+
* <p>groupingConfiguration.criteria</p>
|
|
95
|
+
* </li>
|
|
96
|
+
* <li>
|
|
97
|
+
* <p>groupingConfiguration.values</p>
|
|
98
|
+
* </li>
|
|
99
|
+
* </ul>
|
|
100
|
+
* @public
|
|
101
|
+
*/
|
|
102
|
+
export interface MessageTemplateFilterField {
|
|
103
|
+
/**
|
|
104
|
+
* <p>The name of the attribute field to filter the message templates by.</p>
|
|
105
|
+
* @public
|
|
106
|
+
*/
|
|
107
|
+
name: string | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* <p>The values of attribute field to filter the message template by.</p>
|
|
110
|
+
* @public
|
|
111
|
+
*/
|
|
112
|
+
values?: string[] | undefined;
|
|
113
|
+
/**
|
|
114
|
+
* <p>The operator to use for filtering.</p>
|
|
115
|
+
* @public
|
|
116
|
+
*/
|
|
117
|
+
operator: MessageTemplateFilterOperator | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* <p>Whether to treat null value as a match for the attribute field.</p>
|
|
120
|
+
* @public
|
|
121
|
+
*/
|
|
122
|
+
includeNoExistence?: boolean | undefined;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* @public
|
|
126
|
+
* @enum
|
|
127
|
+
*/
|
|
128
|
+
export declare const Order: {
|
|
129
|
+
readonly ASC: "ASC";
|
|
130
|
+
readonly DESC: "DESC";
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* @public
|
|
134
|
+
*/
|
|
135
|
+
export type Order = (typeof Order)[keyof typeof Order];
|
|
136
|
+
/**
|
|
137
|
+
* <p>The message template fields to order the message template query results by. The following
|
|
138
|
+
* is the list of supported field names:</p>
|
|
139
|
+
* <ul>
|
|
140
|
+
* <li>
|
|
141
|
+
* <p>name</p>
|
|
142
|
+
* </li>
|
|
143
|
+
* <li>
|
|
144
|
+
* <p>description</p>
|
|
145
|
+
* </li>
|
|
146
|
+
* <li>
|
|
147
|
+
* <p>channel</p>
|
|
148
|
+
* </li>
|
|
149
|
+
* <li>
|
|
150
|
+
* <p>channelSubtype</p>
|
|
151
|
+
* </li>
|
|
152
|
+
* <li>
|
|
153
|
+
* <p>language</p>
|
|
154
|
+
* </li>
|
|
155
|
+
* <li>
|
|
156
|
+
* <p>qualifier</p>
|
|
157
|
+
* </li>
|
|
158
|
+
* <li>
|
|
159
|
+
* <p>createdTime</p>
|
|
160
|
+
* </li>
|
|
161
|
+
* <li>
|
|
162
|
+
* <p>lastModifiedTime</p>
|
|
163
|
+
* </li>
|
|
164
|
+
* <li>
|
|
165
|
+
* <p>lastModifiedBy</p>
|
|
166
|
+
* </li>
|
|
167
|
+
* <li>
|
|
168
|
+
* <p>groupingConfiguration.criteria</p>
|
|
169
|
+
* </li>
|
|
170
|
+
* <li>
|
|
171
|
+
* <p>groupingConfiguration.values</p>
|
|
172
|
+
* </li>
|
|
173
|
+
* </ul>
|
|
174
|
+
* @public
|
|
175
|
+
*/
|
|
176
|
+
export interface MessageTemplateOrderField {
|
|
177
|
+
/**
|
|
178
|
+
* <p>The name of the message template.</p>
|
|
179
|
+
* @public
|
|
180
|
+
*/
|
|
181
|
+
name: string | undefined;
|
|
182
|
+
/**
|
|
183
|
+
* <p>The order at which the message templates are sorted by.</p>
|
|
184
|
+
* @public
|
|
185
|
+
*/
|
|
186
|
+
order?: Order | undefined;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* @public
|
|
190
|
+
* @enum
|
|
191
|
+
*/
|
|
192
|
+
export declare const MessageTemplateQueryOperator: {
|
|
193
|
+
readonly CONTAINS: "CONTAINS";
|
|
194
|
+
readonly CONTAINS_AND_PREFIX: "CONTAINS_AND_PREFIX";
|
|
195
|
+
};
|
|
196
|
+
/**
|
|
197
|
+
* @public
|
|
198
|
+
*/
|
|
199
|
+
export type MessageTemplateQueryOperator = (typeof MessageTemplateQueryOperator)[keyof typeof MessageTemplateQueryOperator];
|
|
200
|
+
/**
|
|
201
|
+
* @public
|
|
202
|
+
* @enum
|
|
203
|
+
*/
|
|
204
|
+
export declare const Priority: {
|
|
205
|
+
readonly HIGH: "HIGH";
|
|
206
|
+
readonly LOW: "LOW";
|
|
207
|
+
readonly MEDIUM: "MEDIUM";
|
|
208
|
+
};
|
|
209
|
+
/**
|
|
210
|
+
* @public
|
|
211
|
+
*/
|
|
212
|
+
export type Priority = (typeof Priority)[keyof typeof Priority];
|
|
213
|
+
/**
|
|
214
|
+
* <p>The message template fields to query message templates by. The following is the list of
|
|
215
|
+
* supported field names:</p>
|
|
216
|
+
* <ul>
|
|
217
|
+
* <li>
|
|
218
|
+
* <p>name</p>
|
|
219
|
+
* </li>
|
|
220
|
+
* <li>
|
|
221
|
+
* <p>description</p>
|
|
222
|
+
* </li>
|
|
223
|
+
* </ul>
|
|
224
|
+
* @public
|
|
225
|
+
*/
|
|
226
|
+
export interface MessageTemplateQueryField {
|
|
227
|
+
/**
|
|
228
|
+
* <p>The name of the attribute to query the message templates by.</p>
|
|
229
|
+
* @public
|
|
230
|
+
*/
|
|
231
|
+
name: string | undefined;
|
|
232
|
+
/**
|
|
233
|
+
* <p>The values of the attribute to query the message templates by.</p>
|
|
234
|
+
* @public
|
|
235
|
+
*/
|
|
236
|
+
values: string[] | undefined;
|
|
237
|
+
/**
|
|
238
|
+
* <p>The operator to use for matching attribute field values in the query.</p>
|
|
239
|
+
* @public
|
|
240
|
+
*/
|
|
241
|
+
operator: MessageTemplateQueryOperator | undefined;
|
|
242
|
+
/**
|
|
243
|
+
* <p>Whether the query expects only exact matches on the attribute field values. The results of
|
|
244
|
+
* the query will only include exact matches if this parameter is set to false.</p>
|
|
245
|
+
* @public
|
|
246
|
+
*/
|
|
247
|
+
allowFuzziness?: boolean | undefined;
|
|
248
|
+
/**
|
|
249
|
+
* <p>The importance of the attribute field when calculating query result relevancy scores. The
|
|
250
|
+
* value set for this parameter affects the ordering of search results.</p>
|
|
251
|
+
* @public
|
|
252
|
+
*/
|
|
253
|
+
priority?: Priority | undefined;
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* <p>The search expression of the message template.</p>
|
|
257
|
+
* @public
|
|
258
|
+
*/
|
|
259
|
+
export interface MessageTemplateSearchExpression {
|
|
260
|
+
/**
|
|
261
|
+
* <p>The message template query expressions.</p>
|
|
262
|
+
* @public
|
|
263
|
+
*/
|
|
264
|
+
queries?: MessageTemplateQueryField[] | undefined;
|
|
265
|
+
/**
|
|
266
|
+
* <p>The configuration of filtering rules applied to message template query results.</p>
|
|
267
|
+
* @public
|
|
268
|
+
*/
|
|
269
|
+
filters?: MessageTemplateFilterField[] | undefined;
|
|
270
|
+
/**
|
|
271
|
+
* <p>The message template attribute fields on which the query results are ordered.</p>
|
|
272
|
+
* @public
|
|
273
|
+
*/
|
|
274
|
+
orderOnField?: MessageTemplateOrderField | undefined;
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* @public
|
|
278
|
+
*/
|
|
279
|
+
export interface SearchMessageTemplatesRequest {
|
|
280
|
+
/**
|
|
281
|
+
* <p>The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain
|
|
282
|
+
* the ARN.</p>
|
|
283
|
+
* @public
|
|
284
|
+
*/
|
|
285
|
+
knowledgeBaseId: string | undefined;
|
|
286
|
+
/**
|
|
287
|
+
* <p>The search expression for querying the message template.</p>
|
|
288
|
+
* @public
|
|
289
|
+
*/
|
|
290
|
+
searchExpression: MessageTemplateSearchExpression | undefined;
|
|
291
|
+
/**
|
|
292
|
+
* <p>The token for the next set of results. Use the value returned in the previous
|
|
293
|
+
* response in the next request to retrieve the next set of results.</p>
|
|
294
|
+
* @public
|
|
295
|
+
*/
|
|
296
|
+
nextToken?: string | undefined;
|
|
297
|
+
/**
|
|
298
|
+
* <p>The maximum number of results to return per page.</p>
|
|
299
|
+
* @public
|
|
300
|
+
*/
|
|
301
|
+
maxResults?: number | undefined;
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* <p>The result of message template search.</p>
|
|
305
|
+
* @public
|
|
306
|
+
*/
|
|
307
|
+
export interface MessageTemplateSearchResultData {
|
|
308
|
+
/**
|
|
309
|
+
* <p>The Amazon Resource Name (ARN) of the message template.</p>
|
|
310
|
+
* @public
|
|
311
|
+
*/
|
|
312
|
+
messageTemplateArn: string | undefined;
|
|
313
|
+
/**
|
|
314
|
+
* <p>The identifier of the message template.</p>
|
|
315
|
+
* @public
|
|
316
|
+
*/
|
|
317
|
+
messageTemplateId: string | undefined;
|
|
318
|
+
/**
|
|
319
|
+
* <p>The Amazon Resource Name (ARN) of the knowledge base.</p>
|
|
320
|
+
* @public
|
|
321
|
+
*/
|
|
322
|
+
knowledgeBaseArn: string | undefined;
|
|
323
|
+
/**
|
|
324
|
+
* <p>The identifier of the knowledge base.</p>
|
|
325
|
+
* @public
|
|
326
|
+
*/
|
|
327
|
+
knowledgeBaseId: string | undefined;
|
|
328
|
+
/**
|
|
329
|
+
* <p>The name of the message template.</p>
|
|
330
|
+
* @public
|
|
331
|
+
*/
|
|
332
|
+
name: string | undefined;
|
|
333
|
+
/**
|
|
334
|
+
* <p>The channel subtype this message template applies to.</p>
|
|
335
|
+
* @public
|
|
336
|
+
*/
|
|
337
|
+
channelSubtype: ChannelSubtype | undefined;
|
|
338
|
+
/**
|
|
339
|
+
* <p>The timestamp when the message template was created.</p>
|
|
340
|
+
* @public
|
|
341
|
+
*/
|
|
342
|
+
createdTime: Date | undefined;
|
|
343
|
+
/**
|
|
344
|
+
* <p>The timestamp when the message template data was last modified.</p>
|
|
345
|
+
* @public
|
|
346
|
+
*/
|
|
347
|
+
lastModifiedTime: Date | undefined;
|
|
348
|
+
/**
|
|
349
|
+
* <p>The Amazon Resource Name (ARN) of the user who last updated the message template
|
|
350
|
+
* data.</p>
|
|
351
|
+
* @public
|
|
352
|
+
*/
|
|
353
|
+
lastModifiedBy: string | undefined;
|
|
354
|
+
/**
|
|
355
|
+
* <p>Whether the version of the message template is activated.</p>
|
|
356
|
+
* @public
|
|
357
|
+
*/
|
|
358
|
+
isActive?: boolean | undefined;
|
|
359
|
+
/**
|
|
360
|
+
* <p>The version number of the message template version.</p>
|
|
361
|
+
* @public
|
|
362
|
+
*/
|
|
363
|
+
versionNumber?: number | undefined;
|
|
364
|
+
/**
|
|
365
|
+
* <p>The description of the message template.</p>
|
|
366
|
+
* @public
|
|
367
|
+
*/
|
|
368
|
+
description?: string | undefined;
|
|
369
|
+
/**
|
|
370
|
+
* <p>The configuration information of the grouping of Amazon Q in Connect users.</p>
|
|
371
|
+
* @public
|
|
372
|
+
*/
|
|
373
|
+
groupingConfiguration?: GroupingConfiguration | undefined;
|
|
374
|
+
/**
|
|
375
|
+
* <p>The language code value for the language in which the quick response is written. The supported language codes include <code>de_DE</code>, <code>en_US</code>, <code>es_ES</code>,
|
|
376
|
+
* <code>fr_FR</code>, <code>id_ID</code>, <code>it_IT</code>, <code>ja_JP</code>, <code>ko_KR</code>, <code>pt_BR</code>,
|
|
377
|
+
* <code>zh_CN</code>, <code>zh_TW</code>
|
|
378
|
+
* </p>
|
|
379
|
+
* @public
|
|
380
|
+
*/
|
|
381
|
+
language?: string | undefined;
|
|
382
|
+
/**
|
|
383
|
+
* <p>The tags used to organize, track, or control access for this resource.</p>
|
|
384
|
+
* @public
|
|
385
|
+
*/
|
|
386
|
+
tags?: Record<string, string> | undefined;
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* @public
|
|
390
|
+
*/
|
|
391
|
+
export interface SearchMessageTemplatesResponse {
|
|
392
|
+
/**
|
|
393
|
+
* <p>The results of the message template search.</p>
|
|
394
|
+
* @public
|
|
395
|
+
*/
|
|
396
|
+
results: MessageTemplateSearchResultData[] | undefined;
|
|
397
|
+
/**
|
|
398
|
+
* <p>If there are additional results, this is the token for the next set of results.</p>
|
|
399
|
+
* @public
|
|
400
|
+
*/
|
|
401
|
+
nextToken?: string | undefined;
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* @public
|
|
405
|
+
* @enum
|
|
406
|
+
*/
|
|
407
|
+
export declare const QuickResponseFilterOperator: {
|
|
408
|
+
readonly EQUALS: "EQUALS";
|
|
409
|
+
readonly PREFIX: "PREFIX";
|
|
410
|
+
};
|
|
411
|
+
/**
|
|
412
|
+
* @public
|
|
413
|
+
*/
|
|
414
|
+
export type QuickResponseFilterOperator = (typeof QuickResponseFilterOperator)[keyof typeof QuickResponseFilterOperator];
|
|
415
|
+
/**
|
|
416
|
+
* <p>The quick response fields to filter the quick response query results by.</p>
|
|
417
|
+
* <p>The following is the list of supported field names.</p>
|
|
418
|
+
* <ul>
|
|
419
|
+
* <li>
|
|
420
|
+
* <p>name</p>
|
|
421
|
+
* </li>
|
|
422
|
+
* <li>
|
|
423
|
+
* <p>description</p>
|
|
424
|
+
* </li>
|
|
425
|
+
* <li>
|
|
426
|
+
* <p>shortcutKey</p>
|
|
427
|
+
* </li>
|
|
428
|
+
* <li>
|
|
429
|
+
* <p>isActive</p>
|
|
430
|
+
* </li>
|
|
431
|
+
* <li>
|
|
432
|
+
* <p>channels</p>
|
|
433
|
+
* </li>
|
|
434
|
+
* <li>
|
|
435
|
+
* <p>language</p>
|
|
436
|
+
* </li>
|
|
437
|
+
* <li>
|
|
438
|
+
* <p>contentType</p>
|
|
439
|
+
* </li>
|
|
440
|
+
* <li>
|
|
441
|
+
* <p>createdTime</p>
|
|
442
|
+
* </li>
|
|
443
|
+
* <li>
|
|
444
|
+
* <p>lastModifiedTime</p>
|
|
445
|
+
* </li>
|
|
446
|
+
* <li>
|
|
447
|
+
* <p>lastModifiedBy</p>
|
|
448
|
+
* </li>
|
|
449
|
+
* <li>
|
|
450
|
+
* <p>groupingConfiguration.criteria</p>
|
|
451
|
+
* </li>
|
|
452
|
+
* <li>
|
|
453
|
+
* <p>groupingConfiguration.values</p>
|
|
454
|
+
* </li>
|
|
455
|
+
* </ul>
|
|
456
|
+
* @public
|
|
457
|
+
*/
|
|
458
|
+
export interface QuickResponseFilterField {
|
|
459
|
+
/**
|
|
460
|
+
* <p>The name of the attribute field to filter the quick responses by.</p>
|
|
461
|
+
* @public
|
|
462
|
+
*/
|
|
463
|
+
name: string | undefined;
|
|
464
|
+
/**
|
|
465
|
+
* <p>The values of attribute field to filter the quick response by.</p>
|
|
466
|
+
* @public
|
|
467
|
+
*/
|
|
468
|
+
values?: string[] | undefined;
|
|
469
|
+
/**
|
|
470
|
+
* <p>The operator to use for filtering.</p>
|
|
471
|
+
* @public
|
|
472
|
+
*/
|
|
473
|
+
operator: QuickResponseFilterOperator | undefined;
|
|
474
|
+
/**
|
|
475
|
+
* <p>Whether to treat null value as a match for the attribute field.</p>
|
|
476
|
+
* @public
|
|
477
|
+
*/
|
|
478
|
+
includeNoExistence?: boolean | undefined;
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* <p>The quick response fields to order the quick response query results by.</p>
|
|
482
|
+
* <p>The following is the list of supported field names.</p>
|
|
483
|
+
* <ul>
|
|
484
|
+
* <li>
|
|
485
|
+
* <p>name</p>
|
|
486
|
+
* </li>
|
|
487
|
+
* <li>
|
|
488
|
+
* <p>description</p>
|
|
489
|
+
* </li>
|
|
490
|
+
* <li>
|
|
491
|
+
* <p>shortcutKey</p>
|
|
492
|
+
* </li>
|
|
493
|
+
* <li>
|
|
494
|
+
* <p>isActive</p>
|
|
495
|
+
* </li>
|
|
496
|
+
* <li>
|
|
497
|
+
* <p>channels</p>
|
|
498
|
+
* </li>
|
|
499
|
+
* <li>
|
|
500
|
+
* <p>language</p>
|
|
501
|
+
* </li>
|
|
502
|
+
* <li>
|
|
503
|
+
* <p>contentType</p>
|
|
504
|
+
* </li>
|
|
505
|
+
* <li>
|
|
506
|
+
* <p>createdTime</p>
|
|
507
|
+
* </li>
|
|
508
|
+
* <li>
|
|
509
|
+
* <p>lastModifiedTime</p>
|
|
510
|
+
* </li>
|
|
511
|
+
* <li>
|
|
512
|
+
* <p>lastModifiedBy</p>
|
|
513
|
+
* </li>
|
|
514
|
+
* <li>
|
|
515
|
+
* <p>groupingConfiguration.criteria</p>
|
|
516
|
+
* </li>
|
|
517
|
+
* <li>
|
|
518
|
+
* <p>groupingConfiguration.values</p>
|
|
519
|
+
* </li>
|
|
520
|
+
* </ul>
|
|
521
|
+
* @public
|
|
522
|
+
*/
|
|
523
|
+
export interface QuickResponseOrderField {
|
|
524
|
+
/**
|
|
525
|
+
* <p>The name of the attribute to order the quick response query results by.</p>
|
|
526
|
+
* @public
|
|
527
|
+
*/
|
|
528
|
+
name: string | undefined;
|
|
529
|
+
/**
|
|
530
|
+
* <p>The order at which the quick responses are sorted by.</p>
|
|
531
|
+
* @public
|
|
532
|
+
*/
|
|
533
|
+
order?: Order | undefined;
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* @public
|
|
537
|
+
* @enum
|
|
538
|
+
*/
|
|
539
|
+
export declare const QuickResponseQueryOperator: {
|
|
540
|
+
readonly CONTAINS: "CONTAINS";
|
|
541
|
+
readonly CONTAINS_AND_PREFIX: "CONTAINS_AND_PREFIX";
|
|
542
|
+
};
|
|
543
|
+
/**
|
|
544
|
+
* @public
|
|
545
|
+
*/
|
|
546
|
+
export type QuickResponseQueryOperator = (typeof QuickResponseQueryOperator)[keyof typeof QuickResponseQueryOperator];
|
|
547
|
+
/**
|
|
548
|
+
* <p>The quick response fields to query quick responses by.</p>
|
|
549
|
+
* <p>The following is the list of supported field names.</p>
|
|
550
|
+
* <ul>
|
|
551
|
+
* <li>
|
|
552
|
+
* <p>content</p>
|
|
553
|
+
* </li>
|
|
554
|
+
* <li>
|
|
555
|
+
* <p>name</p>
|
|
556
|
+
* </li>
|
|
557
|
+
* <li>
|
|
558
|
+
* <p>description</p>
|
|
559
|
+
* </li>
|
|
560
|
+
* <li>
|
|
561
|
+
* <p>shortcutKey</p>
|
|
562
|
+
* </li>
|
|
563
|
+
* </ul>
|
|
564
|
+
* @public
|
|
565
|
+
*/
|
|
566
|
+
export interface QuickResponseQueryField {
|
|
567
|
+
/**
|
|
568
|
+
* <p>The name of the attribute to query the quick responses by.</p>
|
|
569
|
+
* @public
|
|
570
|
+
*/
|
|
571
|
+
name: string | undefined;
|
|
572
|
+
/**
|
|
573
|
+
* <p>The values of the attribute to query the quick responses by.</p>
|
|
574
|
+
* @public
|
|
575
|
+
*/
|
|
576
|
+
values: string[] | undefined;
|
|
577
|
+
/**
|
|
578
|
+
* <p>The operator to use for matching attribute field values in the query.</p>
|
|
579
|
+
* @public
|
|
580
|
+
*/
|
|
581
|
+
operator: QuickResponseQueryOperator | undefined;
|
|
582
|
+
/**
|
|
583
|
+
* <p>Whether the query expects only exact matches on the attribute field values. The results of
|
|
584
|
+
* the query will only include exact matches if this parameter is set to false.</p>
|
|
585
|
+
* @public
|
|
586
|
+
*/
|
|
587
|
+
allowFuzziness?: boolean | undefined;
|
|
588
|
+
/**
|
|
589
|
+
* <p>The importance of the attribute field when calculating query result relevancy scores. The
|
|
590
|
+
* value set for this parameter affects the ordering of search results.</p>
|
|
591
|
+
* @public
|
|
592
|
+
*/
|
|
593
|
+
priority?: Priority | undefined;
|
|
594
|
+
}
|
|
595
|
+
/**
|
|
596
|
+
* <p>Information about the import job.</p>
|
|
597
|
+
* @public
|
|
598
|
+
*/
|
|
599
|
+
export interface QuickResponseSearchExpression {
|
|
600
|
+
/**
|
|
601
|
+
* <p>The quick response query expressions.</p>
|
|
602
|
+
* @public
|
|
603
|
+
*/
|
|
604
|
+
queries?: QuickResponseQueryField[] | undefined;
|
|
605
|
+
/**
|
|
606
|
+
* <p>The configuration of filtering rules applied to quick response query results.</p>
|
|
607
|
+
* @public
|
|
608
|
+
*/
|
|
609
|
+
filters?: QuickResponseFilterField[] | undefined;
|
|
610
|
+
/**
|
|
611
|
+
* <p>The quick response attribute fields on which the query results are ordered.</p>
|
|
612
|
+
* @public
|
|
613
|
+
*/
|
|
614
|
+
orderOnField?: QuickResponseOrderField | undefined;
|
|
615
|
+
}
|
|
616
|
+
/**
|
|
617
|
+
* @public
|
|
618
|
+
*/
|
|
619
|
+
export interface SearchQuickResponsesRequest {
|
|
620
|
+
/**
|
|
621
|
+
* <p>The identifier of the knowledge base. This should be a QUICK_RESPONSES type knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
|
|
622
|
+
* @public
|
|
623
|
+
*/
|
|
624
|
+
knowledgeBaseId: string | undefined;
|
|
625
|
+
/**
|
|
626
|
+
* <p>The search expression for querying the quick response.</p>
|
|
627
|
+
* @public
|
|
628
|
+
*/
|
|
629
|
+
searchExpression: QuickResponseSearchExpression | undefined;
|
|
630
|
+
/**
|
|
631
|
+
* <p>The token for the next set of results. Use the value returned in the previous
|
|
632
|
+
* response in the next request to retrieve the next set of results.</p>
|
|
633
|
+
* @public
|
|
634
|
+
*/
|
|
635
|
+
nextToken?: string | undefined;
|
|
636
|
+
/**
|
|
637
|
+
* <p>The maximum number of results to return per page.</p>
|
|
638
|
+
* @public
|
|
639
|
+
*/
|
|
640
|
+
maxResults?: number | undefined;
|
|
641
|
+
/**
|
|
642
|
+
* <p>The <a href="https://docs.aws.amazon.com/connect/latest/adminguide/connect-attrib-list.html#user-defined-attributes">user-defined Amazon Connect contact attributes</a> to be resolved when search
|
|
643
|
+
* results are returned.</p>
|
|
644
|
+
* @public
|
|
645
|
+
*/
|
|
646
|
+
attributes?: Record<string, string> | undefined;
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* <p>The result of quick response search.</p>
|
|
650
|
+
* @public
|
|
651
|
+
*/
|
|
652
|
+
export interface QuickResponseSearchResultData {
|
|
653
|
+
/**
|
|
654
|
+
* <p>The Amazon Resource Name (ARN) of the quick response.</p>
|
|
655
|
+
* @public
|
|
656
|
+
*/
|
|
657
|
+
quickResponseArn: string | undefined;
|
|
658
|
+
/**
|
|
659
|
+
* <p>The identifier of the quick response.</p>
|
|
660
|
+
* @public
|
|
661
|
+
*/
|
|
662
|
+
quickResponseId: string | undefined;
|
|
663
|
+
/**
|
|
664
|
+
* <p>The Amazon Resource Name (ARN) of the knowledge base.</p>
|
|
665
|
+
* @public
|
|
666
|
+
*/
|
|
667
|
+
knowledgeBaseArn: string | undefined;
|
|
668
|
+
/**
|
|
669
|
+
* <p>The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
|
|
670
|
+
* @public
|
|
671
|
+
*/
|
|
672
|
+
knowledgeBaseId: string | undefined;
|
|
673
|
+
/**
|
|
674
|
+
* <p>The name of the quick response.</p>
|
|
675
|
+
* @public
|
|
676
|
+
*/
|
|
677
|
+
name: string | undefined;
|
|
678
|
+
/**
|
|
679
|
+
* <p>The media type of the quick response content.</p>
|
|
680
|
+
* <ul>
|
|
681
|
+
* <li>
|
|
682
|
+
* <p>Use <code>application/x.quickresponse;format=plain</code> for quick response written
|
|
683
|
+
* in plain text.</p>
|
|
684
|
+
* </li>
|
|
685
|
+
* <li>
|
|
686
|
+
* <p>Use <code>application/x.quickresponse;format=markdown</code> for quick response
|
|
687
|
+
* written in richtext.</p>
|
|
688
|
+
* </li>
|
|
689
|
+
* </ul>
|
|
690
|
+
* @public
|
|
691
|
+
*/
|
|
692
|
+
contentType: string | undefined;
|
|
693
|
+
/**
|
|
694
|
+
* <p>The resource status of the quick response.</p>
|
|
695
|
+
* @public
|
|
696
|
+
*/
|
|
697
|
+
status: QuickResponseStatus | undefined;
|
|
698
|
+
/**
|
|
699
|
+
* <p>The contents of the quick response.</p>
|
|
700
|
+
* @public
|
|
701
|
+
*/
|
|
702
|
+
contents: QuickResponseContents | undefined;
|
|
703
|
+
/**
|
|
704
|
+
* <p>The timestamp when the quick response was created.</p>
|
|
705
|
+
* @public
|
|
706
|
+
*/
|
|
707
|
+
createdTime: Date | undefined;
|
|
708
|
+
/**
|
|
709
|
+
* <p>The timestamp when the quick response search result data was last modified.</p>
|
|
710
|
+
* @public
|
|
711
|
+
*/
|
|
712
|
+
lastModifiedTime: Date | undefined;
|
|
713
|
+
/**
|
|
714
|
+
* <p>Whether the quick response is active.</p>
|
|
715
|
+
* @public
|
|
716
|
+
*/
|
|
717
|
+
isActive: boolean | undefined;
|
|
718
|
+
/**
|
|
719
|
+
* <p>The description of the quick response.</p>
|
|
720
|
+
* @public
|
|
721
|
+
*/
|
|
722
|
+
description?: string | undefined;
|
|
723
|
+
/**
|
|
724
|
+
* <p>The configuration information of the user groups that the quick response is accessible
|
|
725
|
+
* to.</p>
|
|
726
|
+
* @public
|
|
727
|
+
*/
|
|
728
|
+
groupingConfiguration?: GroupingConfiguration | undefined;
|
|
729
|
+
/**
|
|
730
|
+
* <p>The shortcut key of the quick response. The value should be unique across the
|
|
731
|
+
* knowledge base.</p>
|
|
732
|
+
* @public
|
|
733
|
+
*/
|
|
734
|
+
shortcutKey?: string | undefined;
|
|
735
|
+
/**
|
|
736
|
+
* <p>The Amazon Resource Name (ARN) of the user who last updated the quick response search
|
|
737
|
+
* result data.</p>
|
|
738
|
+
* @public
|
|
739
|
+
*/
|
|
740
|
+
lastModifiedBy?: string | undefined;
|
|
741
|
+
/**
|
|
742
|
+
* <p>The Amazon Connect contact channels this quick response applies to.
|
|
743
|
+
* The supported contact channel types include <code>Chat</code>.</p>
|
|
744
|
+
* @public
|
|
745
|
+
*/
|
|
746
|
+
channels?: string[] | undefined;
|
|
747
|
+
/**
|
|
748
|
+
* <p>The language code value for the language in which the quick response is written.</p>
|
|
749
|
+
* @public
|
|
750
|
+
*/
|
|
751
|
+
language?: string | undefined;
|
|
752
|
+
/**
|
|
753
|
+
* <p>The user defined contact attributes that are not resolved when the search result is
|
|
754
|
+
* returned.</p>
|
|
755
|
+
* @public
|
|
756
|
+
*/
|
|
757
|
+
attributesNotInterpolated?: string[] | undefined;
|
|
758
|
+
/**
|
|
759
|
+
* <p>The user defined contact attributes that are resolved when the search result is
|
|
760
|
+
* returned.</p>
|
|
761
|
+
* @public
|
|
762
|
+
*/
|
|
763
|
+
attributesInterpolated?: string[] | undefined;
|
|
764
|
+
/**
|
|
765
|
+
* <p>The tags used to organize, track, or control access for this resource.</p>
|
|
766
|
+
* @public
|
|
767
|
+
*/
|
|
768
|
+
tags?: Record<string, string> | undefined;
|
|
769
|
+
}
|
|
770
|
+
/**
|
|
771
|
+
* @public
|
|
772
|
+
*/
|
|
773
|
+
export interface SearchQuickResponsesResponse {
|
|
774
|
+
/**
|
|
775
|
+
* <p>The results of the quick response search.</p>
|
|
776
|
+
* @public
|
|
777
|
+
*/
|
|
778
|
+
results: QuickResponseSearchResultData[] | undefined;
|
|
779
|
+
/**
|
|
780
|
+
* <p>The token for the next set of results. Use the value returned in the previous
|
|
781
|
+
* response in the next request to retrieve the next set of results.</p>
|
|
782
|
+
* @public
|
|
783
|
+
*/
|
|
784
|
+
nextToken?: string | undefined;
|
|
785
|
+
}
|
|
786
|
+
/**
|
|
787
|
+
* @public
|
|
788
|
+
*/
|
|
789
|
+
export interface StartContentUploadRequest {
|
|
790
|
+
/**
|
|
791
|
+
* <p>The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
|
|
792
|
+
* @public
|
|
793
|
+
*/
|
|
794
|
+
knowledgeBaseId: string | undefined;
|
|
795
|
+
/**
|
|
796
|
+
* <p>The type of content to upload.</p>
|
|
797
|
+
* @public
|
|
798
|
+
*/
|
|
799
|
+
contentType: string | undefined;
|
|
800
|
+
/**
|
|
801
|
+
* <p>The expected expiration time of the generated presigned URL, specified in minutes.</p>
|
|
802
|
+
* @public
|
|
803
|
+
*/
|
|
804
|
+
presignedUrlTimeToLive?: number | undefined;
|
|
805
|
+
}
|
|
806
|
+
/**
|
|
807
|
+
* @public
|
|
808
|
+
*/
|
|
809
|
+
export interface StartContentUploadResponse {
|
|
810
|
+
/**
|
|
811
|
+
* <p>The identifier of the upload.</p>
|
|
812
|
+
* @public
|
|
813
|
+
*/
|
|
814
|
+
uploadId: string | undefined;
|
|
815
|
+
/**
|
|
816
|
+
* <p>The URL of the upload.</p>
|
|
817
|
+
* @public
|
|
818
|
+
*/
|
|
819
|
+
url: string | undefined;
|
|
820
|
+
/**
|
|
821
|
+
* <p>The expiration time of the URL as an epoch timestamp.</p>
|
|
822
|
+
* @public
|
|
823
|
+
*/
|
|
824
|
+
urlExpiry: Date | undefined;
|
|
825
|
+
/**
|
|
826
|
+
* <p>The headers to include in the upload.</p>
|
|
827
|
+
* @public
|
|
828
|
+
*/
|
|
829
|
+
headersToInclude: Record<string, string> | undefined;
|
|
830
|
+
}
|
|
831
|
+
/**
|
|
832
|
+
* @public
|
|
833
|
+
*/
|
|
834
|
+
export interface StartImportJobRequest {
|
|
835
|
+
/**
|
|
836
|
+
* <p>The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
|
|
837
|
+
* <ul>
|
|
838
|
+
* <li>
|
|
839
|
+
* <p>For importing Amazon Q in Connect quick responses, this should be a <code>QUICK_RESPONSES</code>
|
|
840
|
+
* type knowledge base.</p>
|
|
841
|
+
* </li>
|
|
842
|
+
* </ul>
|
|
843
|
+
* @public
|
|
844
|
+
*/
|
|
845
|
+
knowledgeBaseId: string | undefined;
|
|
846
|
+
/**
|
|
847
|
+
* <p>The type of the import job.</p>
|
|
848
|
+
* <ul>
|
|
849
|
+
* <li>
|
|
850
|
+
* <p>For importing quick response resource, set the value to
|
|
851
|
+
* <code>QUICK_RESPONSES</code>.</p>
|
|
852
|
+
* </li>
|
|
853
|
+
* </ul>
|
|
854
|
+
* @public
|
|
855
|
+
*/
|
|
856
|
+
importJobType: ImportJobType | undefined;
|
|
857
|
+
/**
|
|
858
|
+
* <p>A pointer to the uploaded asset. This value is returned by <a href="https://docs.aws.amazon.com/wisdom/latest/APIReference/API_StartContentUpload.html">StartContentUpload</a>.</p>
|
|
859
|
+
* @public
|
|
860
|
+
*/
|
|
861
|
+
uploadId: string | undefined;
|
|
862
|
+
/**
|
|
863
|
+
* <p>The tags used to organize, track, or control access for this resource.</p>
|
|
864
|
+
* @public
|
|
865
|
+
*/
|
|
866
|
+
clientToken?: string | undefined;
|
|
867
|
+
/**
|
|
868
|
+
* <p>The metadata fields of the imported Amazon Q in Connect resources.</p>
|
|
869
|
+
* @public
|
|
870
|
+
*/
|
|
871
|
+
metadata?: Record<string, string> | undefined;
|
|
872
|
+
/**
|
|
873
|
+
* <p>The configuration information of the external source that the resource data are imported
|
|
874
|
+
* from.</p>
|
|
875
|
+
* @public
|
|
876
|
+
*/
|
|
877
|
+
externalSourceConfiguration?: ExternalSourceConfiguration | undefined;
|
|
878
|
+
}
|
|
879
|
+
/**
|
|
880
|
+
* @public
|
|
881
|
+
*/
|
|
882
|
+
export interface StartImportJobResponse {
|
|
883
|
+
/**
|
|
884
|
+
* <p>The import job.</p>
|
|
885
|
+
* @public
|
|
886
|
+
*/
|
|
887
|
+
importJob?: ImportJobData | undefined;
|
|
888
|
+
}
|
|
889
|
+
/**
|
|
890
|
+
* @public
|
|
891
|
+
*/
|
|
892
|
+
export interface UpdateKnowledgeBaseTemplateUriRequest {
|
|
893
|
+
/**
|
|
894
|
+
* <p>The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
|
|
895
|
+
* @public
|
|
896
|
+
*/
|
|
897
|
+
knowledgeBaseId: string | undefined;
|
|
898
|
+
/**
|
|
899
|
+
* <p>The template URI to update.</p>
|
|
900
|
+
* @public
|
|
901
|
+
*/
|
|
902
|
+
templateUri: string | undefined;
|
|
903
|
+
}
|
|
904
|
+
/**
|
|
905
|
+
* @public
|
|
906
|
+
*/
|
|
907
|
+
export interface UpdateKnowledgeBaseTemplateUriResponse {
|
|
908
|
+
/**
|
|
909
|
+
* <p>The knowledge base to update.</p>
|
|
910
|
+
* @public
|
|
911
|
+
*/
|
|
912
|
+
knowledgeBase?: KnowledgeBaseData | undefined;
|
|
913
|
+
}
|
|
914
|
+
/**
|
|
915
|
+
* @public
|
|
916
|
+
*/
|
|
917
|
+
export interface ListTagsForResourceRequest {
|
|
918
|
+
/**
|
|
919
|
+
* <p>The Amazon Resource Name (ARN) of the resource.</p>
|
|
920
|
+
* @public
|
|
921
|
+
*/
|
|
922
|
+
resourceArn: string | undefined;
|
|
923
|
+
}
|
|
924
|
+
/**
|
|
925
|
+
* @public
|
|
926
|
+
*/
|
|
927
|
+
export interface ListTagsForResourceResponse {
|
|
928
|
+
/**
|
|
929
|
+
* <p>The tags used to organize, track, or control access for this resource.</p>
|
|
930
|
+
* @public
|
|
931
|
+
*/
|
|
932
|
+
tags?: Record<string, string> | undefined;
|
|
933
|
+
}
|
|
934
|
+
/**
|
|
935
|
+
* @public
|
|
936
|
+
*/
|
|
937
|
+
export interface TagResourceRequest {
|
|
938
|
+
/**
|
|
939
|
+
* <p>The Amazon Resource Name (ARN) of the resource.</p>
|
|
940
|
+
* @public
|
|
941
|
+
*/
|
|
942
|
+
resourceArn: string | undefined;
|
|
943
|
+
/**
|
|
944
|
+
* <p>The tags used to organize, track, or control access for this resource.</p>
|
|
945
|
+
* @public
|
|
946
|
+
*/
|
|
947
|
+
tags: Record<string, string> | undefined;
|
|
948
|
+
}
|
|
949
|
+
/**
|
|
950
|
+
* @public
|
|
951
|
+
*/
|
|
952
|
+
export interface TagResourceResponse {
|
|
953
|
+
}
|
|
954
|
+
/**
|
|
955
|
+
* <p>Amazon Q in Connect throws this exception if you have too many tags in your tag set.</p>
|
|
956
|
+
* @public
|
|
957
|
+
*/
|
|
958
|
+
export declare class TooManyTagsException extends __BaseException {
|
|
959
|
+
readonly name: "TooManyTagsException";
|
|
960
|
+
readonly $fault: "client";
|
|
961
|
+
/**
|
|
962
|
+
* <p>The specified resource name.</p>
|
|
963
|
+
* @public
|
|
964
|
+
*/
|
|
965
|
+
resourceName?: string | undefined;
|
|
966
|
+
/**
|
|
967
|
+
* @internal
|
|
968
|
+
*/
|
|
969
|
+
constructor(opts: __ExceptionOptionType<TooManyTagsException, __BaseException>);
|
|
970
|
+
}
|
|
971
|
+
/**
|
|
972
|
+
* @public
|
|
973
|
+
*/
|
|
974
|
+
export interface UntagResourceRequest {
|
|
975
|
+
/**
|
|
976
|
+
* <p>The Amazon Resource Name (ARN) of the resource.</p>
|
|
977
|
+
* @public
|
|
978
|
+
*/
|
|
979
|
+
resourceArn: string | undefined;
|
|
980
|
+
/**
|
|
981
|
+
* <p>The tag keys.</p>
|
|
982
|
+
* @public
|
|
983
|
+
*/
|
|
984
|
+
tagKeys: string[] | undefined;
|
|
985
|
+
}
|
|
986
|
+
/**
|
|
987
|
+
* @public
|
|
988
|
+
*/
|
|
989
|
+
export interface UntagResourceResponse {
|
|
990
|
+
}
|
|
991
|
+
/**
|
|
992
|
+
* <p>Details about the data.</p>
|
|
993
|
+
* @public
|
|
994
|
+
*/
|
|
995
|
+
export type DataDetails = DataDetails.ContentDataMember | DataDetails.GenerativeDataMember | DataDetails.IntentDetectedDataMember | DataDetails.SourceContentDataMember | DataDetails.$UnknownMember;
|
|
996
|
+
/**
|
|
997
|
+
* @public
|
|
998
|
+
*/
|
|
999
|
+
export declare namespace DataDetails {
|
|
1000
|
+
/**
|
|
1001
|
+
* <p>Details about the content data.</p>
|
|
1002
|
+
* @public
|
|
1003
|
+
*/
|
|
1004
|
+
interface ContentDataMember {
|
|
1005
|
+
contentData: ContentDataDetails;
|
|
1006
|
+
generativeData?: never;
|
|
1007
|
+
intentDetectedData?: never;
|
|
1008
|
+
sourceContentData?: never;
|
|
1009
|
+
$unknown?: never;
|
|
1010
|
+
}
|
|
1011
|
+
/**
|
|
1012
|
+
* <p> Details about the generative data.</p>
|
|
1013
|
+
* @public
|
|
1014
|
+
*/
|
|
1015
|
+
interface GenerativeDataMember {
|
|
1016
|
+
contentData?: never;
|
|
1017
|
+
generativeData: GenerativeDataDetails;
|
|
1018
|
+
intentDetectedData?: never;
|
|
1019
|
+
sourceContentData?: never;
|
|
1020
|
+
$unknown?: never;
|
|
1021
|
+
}
|
|
1022
|
+
/**
|
|
1023
|
+
* <p>Details about the intent data.</p>
|
|
1024
|
+
* @public
|
|
1025
|
+
*/
|
|
1026
|
+
interface IntentDetectedDataMember {
|
|
1027
|
+
contentData?: never;
|
|
1028
|
+
generativeData?: never;
|
|
1029
|
+
intentDetectedData: IntentDetectedDataDetails;
|
|
1030
|
+
sourceContentData?: never;
|
|
1031
|
+
$unknown?: never;
|
|
1032
|
+
}
|
|
1033
|
+
/**
|
|
1034
|
+
* <p>Details about the content data.</p>
|
|
1035
|
+
* @public
|
|
1036
|
+
*/
|
|
1037
|
+
interface SourceContentDataMember {
|
|
1038
|
+
contentData?: never;
|
|
1039
|
+
generativeData?: never;
|
|
1040
|
+
intentDetectedData?: never;
|
|
1041
|
+
sourceContentData: SourceContentDataDetails;
|
|
1042
|
+
$unknown?: never;
|
|
1043
|
+
}
|
|
1044
|
+
/**
|
|
1045
|
+
* @public
|
|
1046
|
+
*/
|
|
1047
|
+
interface $UnknownMember {
|
|
1048
|
+
contentData?: never;
|
|
1049
|
+
generativeData?: never;
|
|
1050
|
+
intentDetectedData?: never;
|
|
1051
|
+
sourceContentData?: never;
|
|
1052
|
+
$unknown: [string, any];
|
|
1053
|
+
}
|
|
1054
|
+
interface Visitor<T> {
|
|
1055
|
+
contentData: (value: ContentDataDetails) => T;
|
|
1056
|
+
generativeData: (value: GenerativeDataDetails) => T;
|
|
1057
|
+
intentDetectedData: (value: IntentDetectedDataDetails) => T;
|
|
1058
|
+
sourceContentData: (value: SourceContentDataDetails) => T;
|
|
1059
|
+
_: (name: string, value: any) => T;
|
|
1060
|
+
}
|
|
1061
|
+
const visit: <T>(value: DataDetails, visitor: Visitor<T>) => T;
|
|
1062
|
+
}
|
|
1063
|
+
/**
|
|
1064
|
+
* <p>Summary of the data.</p>
|
|
1065
|
+
* @public
|
|
1066
|
+
*/
|
|
1067
|
+
export interface DataSummary {
|
|
1068
|
+
/**
|
|
1069
|
+
* <p>Reference information about the content.</p>
|
|
1070
|
+
* @public
|
|
1071
|
+
*/
|
|
1072
|
+
reference: DataReference | undefined;
|
|
1073
|
+
/**
|
|
1074
|
+
* <p>Details about the data.</p>
|
|
1075
|
+
* @public
|
|
1076
|
+
*/
|
|
1077
|
+
details: DataDetails | undefined;
|
|
1078
|
+
}
|
|
1079
|
+
/**
|
|
1080
|
+
* <p>Details about generative data.</p>
|
|
1081
|
+
* @public
|
|
1082
|
+
*/
|
|
1083
|
+
export interface GenerativeDataDetails {
|
|
1084
|
+
/**
|
|
1085
|
+
* <p>The LLM response.</p>
|
|
1086
|
+
* @public
|
|
1087
|
+
*/
|
|
1088
|
+
completion: string | undefined;
|
|
1089
|
+
/**
|
|
1090
|
+
* <p>The references used to generative the LLM response.</p>
|
|
1091
|
+
* @public
|
|
1092
|
+
*/
|
|
1093
|
+
references: DataSummary[] | undefined;
|
|
1094
|
+
/**
|
|
1095
|
+
* <p>Details about the generative content ranking data.</p>
|
|
1096
|
+
* @public
|
|
1097
|
+
*/
|
|
1098
|
+
rankingData: RankingData | undefined;
|
|
1099
|
+
}
|
|
1100
|
+
/**
|
|
1101
|
+
* <p>Information about the recommendation.</p>
|
|
1102
|
+
* @public
|
|
1103
|
+
*/
|
|
1104
|
+
export interface RecommendationData {
|
|
1105
|
+
/**
|
|
1106
|
+
* <p>The identifier of the recommendation.</p>
|
|
1107
|
+
* @public
|
|
1108
|
+
*/
|
|
1109
|
+
recommendationId: string | undefined;
|
|
1110
|
+
/**
|
|
1111
|
+
* <p>The recommended document.</p>
|
|
1112
|
+
* @public
|
|
1113
|
+
*/
|
|
1114
|
+
document?: Document | undefined;
|
|
1115
|
+
/**
|
|
1116
|
+
* <p>The relevance score of the recommendation.</p>
|
|
1117
|
+
* @public
|
|
1118
|
+
*/
|
|
1119
|
+
relevanceScore?: number | undefined;
|
|
1120
|
+
/**
|
|
1121
|
+
* <p>The relevance level of the recommendation.</p>
|
|
1122
|
+
* @public
|
|
1123
|
+
*/
|
|
1124
|
+
relevanceLevel?: RelevanceLevel | undefined;
|
|
1125
|
+
/**
|
|
1126
|
+
* <p>The type of recommendation.</p>
|
|
1127
|
+
* @public
|
|
1128
|
+
*/
|
|
1129
|
+
type?: RecommendationType | undefined;
|
|
1130
|
+
/**
|
|
1131
|
+
* <p> Summary of the recommended content.</p>
|
|
1132
|
+
* @public
|
|
1133
|
+
*/
|
|
1134
|
+
data?: DataSummary | undefined;
|
|
1135
|
+
}
|
|
1136
|
+
/**
|
|
1137
|
+
* <p>Information about the result.</p>
|
|
1138
|
+
* @public
|
|
1139
|
+
*/
|
|
1140
|
+
export interface ResultData {
|
|
1141
|
+
/**
|
|
1142
|
+
* <p>The identifier of the result data.</p>
|
|
1143
|
+
* @public
|
|
1144
|
+
*/
|
|
1145
|
+
resultId: string | undefined;
|
|
1146
|
+
/**
|
|
1147
|
+
* <p>The document.</p>
|
|
1148
|
+
* @public
|
|
1149
|
+
*/
|
|
1150
|
+
document?: Document | undefined;
|
|
1151
|
+
/**
|
|
1152
|
+
* <p>The relevance score of the results.</p>
|
|
1153
|
+
* @public
|
|
1154
|
+
*/
|
|
1155
|
+
relevanceScore?: number | undefined;
|
|
1156
|
+
/**
|
|
1157
|
+
* <p> Summary of the recommended content.</p>
|
|
1158
|
+
* @public
|
|
1159
|
+
*/
|
|
1160
|
+
data?: DataSummary | undefined;
|
|
1161
|
+
/**
|
|
1162
|
+
* <p>The type of the query result.</p>
|
|
1163
|
+
* @public
|
|
1164
|
+
*/
|
|
1165
|
+
type?: QueryResultType | undefined;
|
|
1166
|
+
}
|
|
1167
|
+
/**
|
|
1168
|
+
* @public
|
|
1169
|
+
*/
|
|
1170
|
+
export interface GetRecommendationsResponse {
|
|
1171
|
+
/**
|
|
1172
|
+
* <p>The recommendations.</p>
|
|
1173
|
+
* @public
|
|
1174
|
+
*/
|
|
1175
|
+
recommendations: RecommendationData[] | undefined;
|
|
1176
|
+
/**
|
|
1177
|
+
* <p>The triggers corresponding to recommendations.</p>
|
|
1178
|
+
* @public
|
|
1179
|
+
*/
|
|
1180
|
+
triggers?: RecommendationTrigger[] | undefined;
|
|
1181
|
+
}
|
|
1182
|
+
/**
|
|
1183
|
+
* @public
|
|
1184
|
+
*/
|
|
1185
|
+
export interface QueryAssistantResponse {
|
|
1186
|
+
/**
|
|
1187
|
+
* <p>The results of the query.</p>
|
|
1188
|
+
* @public
|
|
1189
|
+
*/
|
|
1190
|
+
results: ResultData[] | undefined;
|
|
1191
|
+
/**
|
|
1192
|
+
* <p>If there are additional results, this is the token for the next set of results.</p>
|
|
1193
|
+
* @public
|
|
1194
|
+
*/
|
|
1195
|
+
nextToken?: string | undefined;
|
|
1196
|
+
}
|
|
1197
|
+
/**
|
|
1198
|
+
* @internal
|
|
1199
|
+
*/
|
|
1200
|
+
export declare const MessageTemplateSearchResultDataFilterSensitiveLog: (obj: MessageTemplateSearchResultData) => any;
|
|
1201
|
+
/**
|
|
1202
|
+
* @internal
|
|
1203
|
+
*/
|
|
1204
|
+
export declare const SearchMessageTemplatesResponseFilterSensitiveLog: (obj: SearchMessageTemplatesResponse) => any;
|
|
1205
|
+
/**
|
|
1206
|
+
* @internal
|
|
1207
|
+
*/
|
|
1208
|
+
export declare const SearchQuickResponsesRequestFilterSensitiveLog: (obj: SearchQuickResponsesRequest) => any;
|
|
1209
|
+
/**
|
|
1210
|
+
* @internal
|
|
1211
|
+
*/
|
|
1212
|
+
export declare const QuickResponseSearchResultDataFilterSensitiveLog: (obj: QuickResponseSearchResultData) => any;
|
|
1213
|
+
/**
|
|
1214
|
+
* @internal
|
|
1215
|
+
*/
|
|
1216
|
+
export declare const SearchQuickResponsesResponseFilterSensitiveLog: (obj: SearchQuickResponsesResponse) => any;
|
|
1217
|
+
/**
|
|
1218
|
+
* @internal
|
|
1219
|
+
*/
|
|
1220
|
+
export declare const StartContentUploadResponseFilterSensitiveLog: (obj: StartContentUploadResponse) => any;
|
|
1221
|
+
/**
|
|
1222
|
+
* @internal
|
|
1223
|
+
*/
|
|
1224
|
+
export declare const StartImportJobResponseFilterSensitiveLog: (obj: StartImportJobResponse) => any;
|
|
1225
|
+
/**
|
|
1226
|
+
* @internal
|
|
1227
|
+
*/
|
|
1228
|
+
export declare const UpdateKnowledgeBaseTemplateUriResponseFilterSensitiveLog: (obj: UpdateKnowledgeBaseTemplateUriResponse) => any;
|
|
1229
|
+
/**
|
|
1230
|
+
* @internal
|
|
1231
|
+
*/
|
|
1232
|
+
export declare const DataDetailsFilterSensitiveLog: (obj: DataDetails) => any;
|
|
1233
|
+
/**
|
|
1234
|
+
* @internal
|
|
1235
|
+
*/
|
|
1236
|
+
export declare const DataSummaryFilterSensitiveLog: (obj: DataSummary) => any;
|
|
1237
|
+
/**
|
|
1238
|
+
* @internal
|
|
1239
|
+
*/
|
|
1240
|
+
export declare const GenerativeDataDetailsFilterSensitiveLog: (obj: GenerativeDataDetails) => any;
|
|
1241
|
+
/**
|
|
1242
|
+
* @internal
|
|
1243
|
+
*/
|
|
1244
|
+
export declare const RecommendationDataFilterSensitiveLog: (obj: RecommendationData) => any;
|
|
1245
|
+
/**
|
|
1246
|
+
* @internal
|
|
1247
|
+
*/
|
|
1248
|
+
export declare const ResultDataFilterSensitiveLog: (obj: ResultData) => any;
|
|
1249
|
+
/**
|
|
1250
|
+
* @internal
|
|
1251
|
+
*/
|
|
1252
|
+
export declare const GetRecommendationsResponseFilterSensitiveLog: (obj: GetRecommendationsResponse) => any;
|
|
1253
|
+
/**
|
|
1254
|
+
* @internal
|
|
1255
|
+
*/
|
|
1256
|
+
export declare const QueryAssistantResponseFilterSensitiveLog: (obj: QueryAssistantResponse) => any;
|