@aws-sdk/client-qconnect 3.933.0 → 3.935.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.
@@ -1,422 +1,4 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { ChannelSubtype, Configuration, ContentDataDetails, ContentDisposition, ContentSummary, DataReference, Document, EmailOverviewChunkDataDetails, EmailResponseChunkDataDetails, GroupingConfiguration, IntentDetectedDataDetails, KnowledgeBaseData, KnowledgeBaseStatus, KnowledgeBaseType, MessageTemplateAttributes, MessageTemplateAttributeType, MessageTemplateContentProvider, QueryResultType, RankingData, RecommendationTrigger, RecommendationType, RelevanceLevel, RenderingConfiguration, SearchExpression, ServerSideEncryptionConfiguration, SourceConfiguration, SourceContentDataDetails, VectorIngestionConfiguration } from "./models_0";
3
- import { QConnectServiceException as __BaseException } from "./QConnectServiceException";
4
- /**
5
- * <p>The data of a message template.</p>
6
- * @public
7
- */
8
- export interface MessageTemplateData {
9
- /**
10
- * <p>The Amazon Resource Name (ARN) of the message template.</p>
11
- * @public
12
- */
13
- messageTemplateArn: string | undefined;
14
- /**
15
- * <p>The identifier of the message template.</p>
16
- * @public
17
- */
18
- messageTemplateId: string | undefined;
19
- /**
20
- * <p>The Amazon Resource Name (ARN) of the knowledge base.</p>
21
- * @public
22
- */
23
- knowledgeBaseArn: string | undefined;
24
- /**
25
- * <p>The identifier of the knowledge base.</p>
26
- * @public
27
- */
28
- knowledgeBaseId: string | undefined;
29
- /**
30
- * <p>The name of the message template.</p>
31
- * @public
32
- */
33
- name: string | undefined;
34
- /**
35
- * <p>The channel subtype this message template applies to.</p>
36
- * @public
37
- */
38
- channelSubtype: ChannelSubtype | undefined;
39
- /**
40
- * <p>The timestamp when the message template was created.</p>
41
- * @public
42
- */
43
- createdTime: Date | undefined;
44
- /**
45
- * <p>The timestamp when the message template data was last modified.</p>
46
- * @public
47
- */
48
- lastModifiedTime: Date | undefined;
49
- /**
50
- * <p>The Amazon Resource Name (ARN) of the user who last updated the message template data.</p>
51
- * @public
52
- */
53
- lastModifiedBy: string | undefined;
54
- /**
55
- * <p>The content of the message template.</p>
56
- * @public
57
- */
58
- content: MessageTemplateContentProvider | undefined;
59
- /**
60
- * <p>The description of the message template.</p>
61
- * @public
62
- */
63
- description?: string | undefined;
64
- /**
65
- * <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>, <code>fr_FR</code>, <code>id_ID</code>, <code>it_IT</code>, <code>ja_JP</code>, <code>ko_KR</code>, <code>pt_BR</code>, <code>zh_CN</code>, <code>zh_TW</code> </p>
66
- * @public
67
- */
68
- language?: string | undefined;
69
- /**
70
- * <p>The configuration information of the grouping of Amazon Q in Connect users.</p>
71
- * @public
72
- */
73
- groupingConfiguration?: GroupingConfiguration | undefined;
74
- /**
75
- * <p>An object that specifies the default values to use for variables in the message template. This object contains different categories of key-value pairs. Each key defines a variable or placeholder in the message template. The corresponding value defines the default value for that variable.</p>
76
- * @public
77
- */
78
- defaultAttributes?: MessageTemplateAttributes | undefined;
79
- /**
80
- * <p>The types of attributes that the message template contains.</p>
81
- * @public
82
- */
83
- attributeTypes?: MessageTemplateAttributeType[] | undefined;
84
- /**
85
- * <p>The checksum value of the message template content that is referenced by the <code>$LATEST</code> qualifier. It can be returned in <code>MessageTemplateData</code> or <code>ExtendedMessageTemplateData</code>. It’s calculated by content, language, <code>defaultAttributes</code> and <code>Attachments</code> of the message template.</p>
86
- * @public
87
- */
88
- messageTemplateContentSha256: string | undefined;
89
- /**
90
- * <p>The tags used to organize, track, or control access for this resource.</p>
91
- * @public
92
- */
93
- tags?: Record<string, string> | undefined;
94
- }
95
- /**
96
- * @public
97
- */
98
- export interface CreateMessageTemplateResponse {
99
- /**
100
- * <p>The message template.</p>
101
- * @public
102
- */
103
- messageTemplate?: MessageTemplateData | undefined;
104
- }
105
- /**
106
- * @public
107
- */
108
- export interface CreateMessageTemplateAttachmentRequest {
109
- /**
110
- * <p>The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
111
- * @public
112
- */
113
- knowledgeBaseId: string | undefined;
114
- /**
115
- * <p>The identifier of the message template. Can be either the ID or the ARN. It cannot contain any qualifier.</p>
116
- * @public
117
- */
118
- messageTemplateId: string | undefined;
119
- /**
120
- * <p>The presentation information for the attachment file.</p>
121
- * @public
122
- */
123
- contentDisposition: ContentDisposition | undefined;
124
- /**
125
- * <p>The name of the attachment file being uploaded. The name should include the file extension.</p>
126
- * @public
127
- */
128
- name: string | undefined;
129
- /**
130
- * <p>The body of the attachment file being uploaded. It should be encoded using base64 encoding.</p>
131
- * @public
132
- */
133
- body: string | undefined;
134
- /**
135
- * <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see <a href="http://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making retries safe with idempotent APIs</a>.</p>
136
- * @public
137
- */
138
- clientToken?: string | undefined;
139
- }
140
- /**
141
- * <p>Information about the message template attachment.</p>
142
- * @public
143
- */
144
- export interface MessageTemplateAttachment {
145
- /**
146
- * <p>The presentation information for the attachment file.</p>
147
- * @public
148
- */
149
- contentDisposition: ContentDisposition | undefined;
150
- /**
151
- * <p>The name of the attachment file being uploaded. The name should include the file extension.</p>
152
- * @public
153
- */
154
- name: string | undefined;
155
- /**
156
- * <p>The timestamp when the attachment file was uploaded.</p>
157
- * @public
158
- */
159
- uploadedTime: Date | undefined;
160
- /**
161
- * <p>A pre-signed Amazon S3 URL that can be used to download the attachment file.</p>
162
- * @public
163
- */
164
- url: string | undefined;
165
- /**
166
- * <p>The expiration time of the pre-signed Amazon S3 URL.</p>
167
- * @public
168
- */
169
- urlExpiry: Date | undefined;
170
- /**
171
- * <p>The identifier of the attachment file.</p>
172
- * @public
173
- */
174
- attachmentId: string | undefined;
175
- }
176
- /**
177
- * @public
178
- */
179
- export interface CreateMessageTemplateAttachmentResponse {
180
- /**
181
- * <p>The message template attachment.</p>
182
- * @public
183
- */
184
- attachment?: MessageTemplateAttachment | undefined;
185
- }
186
- /**
187
- * @public
188
- */
189
- export interface CreateMessageTemplateVersionRequest {
190
- /**
191
- * <p>The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
192
- * @public
193
- */
194
- knowledgeBaseId: string | undefined;
195
- /**
196
- * <p>The identifier of the message template. Can be either the ID or the ARN. It cannot contain any qualifier.</p>
197
- * @public
198
- */
199
- messageTemplateId: string | undefined;
200
- /**
201
- * <p>The checksum value of the message template content that is referenced by the <code>$LATEST</code> qualifier. It can be returned in <code>MessageTemplateData</code> or <code>ExtendedMessageTemplateData</code>. It’s calculated by content, language, <code>defaultAttributes</code> and <code>Attachments</code> of the message template. If not supplied, the message template version will be created based on the message template content that is referenced by the <code>$LATEST</code> qualifier by default.</p>
202
- * @public
203
- */
204
- messageTemplateContentSha256?: string | undefined;
205
- }
206
- /**
207
- * <p>The extended data of a message template.</p>
208
- * @public
209
- */
210
- export interface ExtendedMessageTemplateData {
211
- /**
212
- * <p>The Amazon Resource Name (ARN) of the message template.</p>
213
- * @public
214
- */
215
- messageTemplateArn: string | undefined;
216
- /**
217
- * <p>The identifier of the message template.</p>
218
- * @public
219
- */
220
- messageTemplateId: string | undefined;
221
- /**
222
- * <p>The Amazon Resource Name (ARN) of the knowledge base.</p>
223
- * @public
224
- */
225
- knowledgeBaseArn: string | undefined;
226
- /**
227
- * <p>The identifier of the knowledge base.</p>
228
- * @public
229
- */
230
- knowledgeBaseId: string | undefined;
231
- /**
232
- * <p>The name of the message template.</p>
233
- * @public
234
- */
235
- name: string | undefined;
236
- /**
237
- * <p>The channel subtype this message template applies to.</p>
238
- * @public
239
- */
240
- channelSubtype: ChannelSubtype | undefined;
241
- /**
242
- * <p>The timestamp when the message template was created.</p>
243
- * @public
244
- */
245
- createdTime: Date | undefined;
246
- /**
247
- * <p>The timestamp when the message template data was last modified.</p>
248
- * @public
249
- */
250
- lastModifiedTime: Date | undefined;
251
- /**
252
- * <p>The Amazon Resource Name (ARN) of the user who last updated the message template data.</p>
253
- * @public
254
- */
255
- lastModifiedBy: string | undefined;
256
- /**
257
- * <p>The content of the message template.</p>
258
- * @public
259
- */
260
- content: MessageTemplateContentProvider | undefined;
261
- /**
262
- * <p>The description of the message template.</p>
263
- * @public
264
- */
265
- description?: string | undefined;
266
- /**
267
- * <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>, <code>fr_FR</code>, <code>id_ID</code>, <code>it_IT</code>, <code>ja_JP</code>, <code>ko_KR</code>, <code>pt_BR</code>, <code>zh_CN</code>, <code>zh_TW</code> </p>
268
- * @public
269
- */
270
- language?: string | undefined;
271
- /**
272
- * <p>The configuration information of the grouping of Amazon Q in Connect users.</p>
273
- * @public
274
- */
275
- groupingConfiguration?: GroupingConfiguration | undefined;
276
- /**
277
- * <p>An object that specifies the default values to use for variables in the message template. This object contains different categories of key-value pairs. Each key defines a variable or placeholder in the message template. The corresponding value defines the default value for that variable.</p>
278
- * @public
279
- */
280
- defaultAttributes?: MessageTemplateAttributes | undefined;
281
- /**
282
- * <p>The types of attributes contain the message template.</p>
283
- * @public
284
- */
285
- attributeTypes?: MessageTemplateAttributeType[] | undefined;
286
- /**
287
- * <p>The message template attachments.</p>
288
- * @public
289
- */
290
- attachments?: MessageTemplateAttachment[] | undefined;
291
- /**
292
- * <p>Whether the version of the message template is activated.</p>
293
- * @public
294
- */
295
- isActive?: boolean | undefined;
296
- /**
297
- * <p>The version number of the message template version.</p>
298
- * @public
299
- */
300
- versionNumber?: number | undefined;
301
- /**
302
- * <p>The checksum value of the message template content that is referenced by the <code>$LATEST</code> qualifier. It can be returned in <code>MessageTemplateData</code> or <code>ExtendedMessageTemplateData</code>. It’s calculated by content, language, <code>defaultAttributes</code> and <code>Attachments</code> of the message template.</p>
303
- * @public
304
- */
305
- messageTemplateContentSha256: string | undefined;
306
- /**
307
- * <p>The tags used to organize, track, or control access for this resource.</p>
308
- * @public
309
- */
310
- tags?: Record<string, string> | undefined;
311
- }
312
- /**
313
- * @public
314
- */
315
- export interface CreateMessageTemplateVersionResponse {
316
- /**
317
- * <p>The message template.</p>
318
- * @public
319
- */
320
- messageTemplate?: ExtendedMessageTemplateData | undefined;
321
- }
322
- /**
323
- * <p>The container of quick response data.</p>
324
- * @public
325
- */
326
- export type QuickResponseDataProvider = QuickResponseDataProvider.ContentMember | QuickResponseDataProvider.$UnknownMember;
327
- /**
328
- * @public
329
- */
330
- export declare namespace QuickResponseDataProvider {
331
- /**
332
- * <p>The content of the quick response.</p>
333
- * @public
334
- */
335
- interface ContentMember {
336
- content: string;
337
- $unknown?: never;
338
- }
339
- /**
340
- * @public
341
- */
342
- interface $UnknownMember {
343
- content?: never;
344
- $unknown: [string, any];
345
- }
346
- /**
347
- * @deprecated unused in schema-serde mode.
348
- *
349
- */
350
- interface Visitor<T> {
351
- content: (value: string) => T;
352
- _: (name: string, value: any) => T;
353
- }
354
- }
355
- /**
356
- * @public
357
- */
358
- export interface CreateQuickResponseRequest {
359
- /**
360
- * <p>The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
361
- * @public
362
- */
363
- knowledgeBaseId: string | undefined;
364
- /**
365
- * <p>The name of the quick response.</p>
366
- * @public
367
- */
368
- name: string | undefined;
369
- /**
370
- * <p>The content of the quick response.</p>
371
- * @public
372
- */
373
- content: QuickResponseDataProvider | undefined;
374
- /**
375
- * <p>The media type of the quick response content.</p> <ul> <li> <p>Use <code>application/x.quickresponse;format=plain</code> for a quick response written in plain text.</p> </li> <li> <p>Use <code>application/x.quickresponse;format=markdown</code> for a quick response written in richtext.</p> </li> </ul>
376
- * @public
377
- */
378
- contentType?: string | undefined;
379
- /**
380
- * <p>The configuration information of the user groups that the quick response is accessible to.</p>
381
- * @public
382
- */
383
- groupingConfiguration?: GroupingConfiguration | undefined;
384
- /**
385
- * <p>The description of the quick response.</p>
386
- * @public
387
- */
388
- description?: string | undefined;
389
- /**
390
- * <p>The shortcut key of the quick response. The value should be unique across the knowledge base. </p>
391
- * @public
392
- */
393
- shortcutKey?: string | undefined;
394
- /**
395
- * <p>Whether the quick response is active.</p>
396
- * @public
397
- */
398
- isActive?: boolean | undefined;
399
- /**
400
- * <p>The Amazon Connect channels this quick response applies to.</p>
401
- * @public
402
- */
403
- channels?: string[] | undefined;
404
- /**
405
- * <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>, <code>fr_FR</code>, <code>id_ID</code>, <code>it_IT</code>, <code>ja_JP</code>, <code>ko_KR</code>, <code>pt_BR</code>, <code>zh_CN</code>, <code>zh_TW</code> </p>
406
- * @public
407
- */
408
- language?: string | undefined;
409
- /**
410
- * <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see <a href="http://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making retries safe with idempotent APIs</a>.</p>
411
- * @public
412
- */
413
- clientToken?: string | undefined;
414
- /**
415
- * <p>The tags used to organize, track, or control access for this resource.</p>
416
- * @public
417
- */
418
- tags?: Record<string, string> | undefined;
419
- }
1
+ import { ChannelSubtype, Configuration, ContentDataDetails, ContentSummary, DataReference, Document, EmailOverviewChunkDataDetails, EmailResponseChunkDataDetails, ExtendedMessageTemplateData, GroupingConfiguration, IntentDetectedDataDetails, KnowledgeBaseData, KnowledgeBaseStatus, KnowledgeBaseType, MessageTemplateAttachment, MessageTemplateAttributes, MessageTemplateContentProvider, MessageTemplateData, QueryResultType, QuickResponseDataProvider, RankingData, RecommendationTrigger, RecommendationType, RelevanceLevel, RenderingConfiguration, SearchExpression, ServerSideEncryptionConfiguration, SourceConfiguration, SourceContentDataDetails, VectorIngestionConfiguration } from "./models_0";
420
2
  /**
421
3
  * <p>The container quick response content.</p>
422
4
  * @public
@@ -2378,23 +1960,6 @@ export interface TagResourceRequest {
2378
1960
  */
2379
1961
  export interface TagResourceResponse {
2380
1962
  }
2381
- /**
2382
- * <p>Amazon Q in Connect throws this exception if you have too many tags in your tag set.</p>
2383
- * @public
2384
- */
2385
- export declare class TooManyTagsException extends __BaseException {
2386
- readonly name: "TooManyTagsException";
2387
- readonly $fault: "client";
2388
- /**
2389
- * <p>The specified resource name.</p>
2390
- * @public
2391
- */
2392
- resourceName?: string | undefined;
2393
- /**
2394
- * @internal
2395
- */
2396
- constructor(opts: __ExceptionOptionType<TooManyTagsException, __BaseException>);
2397
- }
2398
1963
  /**
2399
1964
  * @public
2400
1965
  */
@@ -3,7 +3,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import {
4
4
  CreateMessageTemplateAttachmentRequest,
5
5
  CreateMessageTemplateAttachmentResponse,
6
- } from "../models/models_1";
6
+ } from "../models/models_0";
7
7
  import {
8
8
  QConnectClientResolvedConfig,
9
9
  ServiceInputTypes,
@@ -1,7 +1,9 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { CreateMessageTemplateRequest } from "../models/models_0";
4
- import { CreateMessageTemplateResponse } from "../models/models_1";
3
+ import {
4
+ CreateMessageTemplateRequest,
5
+ CreateMessageTemplateResponse,
6
+ } from "../models/models_0";
5
7
  import {
6
8
  QConnectClientResolvedConfig,
7
9
  ServiceInputTypes,
@@ -3,7 +3,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import {
4
4
  CreateMessageTemplateVersionRequest,
5
5
  CreateMessageTemplateVersionResponse,
6
- } from "../models/models_1";
6
+ } from "../models/models_0";
7
7
  import {
8
8
  QConnectClientResolvedConfig,
9
9
  ServiceInputTypes,
@@ -1,9 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import {
4
- CreateQuickResponseRequest,
5
- CreateQuickResponseResponse,
6
- } from "../models/models_1";
3
+ import { CreateQuickResponseRequest } from "../models/models_0";
4
+ import { CreateQuickResponseResponse } from "../models/models_1";
7
5
  import {
8
6
  QConnectClientResolvedConfig,
9
7
  ServiceInputTypes,
@@ -5,5 +5,7 @@ export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { QConnectExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./pagination";
8
- export * from "./models";
8
+ export * from "./models/errors";
9
+ export * from "./models/models_0";
10
+ export * from "./models/models_1";
9
11
  export { QConnectServiceException } from "./models/QConnectServiceException";
@@ -0,0 +1,81 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { QConnectServiceException as __BaseException } from "./QConnectServiceException";
3
+ export declare class AccessDeniedException extends __BaseException {
4
+ readonly name: "AccessDeniedException";
5
+ readonly $fault: "client";
6
+ constructor(
7
+ opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
8
+ );
9
+ }
10
+ export declare class ConflictException extends __BaseException {
11
+ readonly name: "ConflictException";
12
+ readonly $fault: "client";
13
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
14
+ }
15
+ export declare class ResourceNotFoundException extends __BaseException {
16
+ readonly name: "ResourceNotFoundException";
17
+ readonly $fault: "client";
18
+ resourceName?: string | undefined;
19
+ constructor(
20
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
21
+ );
22
+ }
23
+ export declare class ThrottlingException extends __BaseException {
24
+ readonly name: "ThrottlingException";
25
+ readonly $fault: "client";
26
+ $retryable: {};
27
+ constructor(
28
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
29
+ );
30
+ }
31
+ export declare class ValidationException extends __BaseException {
32
+ readonly name: "ValidationException";
33
+ readonly $fault: "client";
34
+ constructor(
35
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
36
+ );
37
+ }
38
+ export declare class ServiceQuotaExceededException extends __BaseException {
39
+ readonly name: "ServiceQuotaExceededException";
40
+ readonly $fault: "client";
41
+ constructor(
42
+ opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
43
+ );
44
+ }
45
+ export declare class UnauthorizedException extends __BaseException {
46
+ readonly name: "UnauthorizedException";
47
+ readonly $fault: "client";
48
+ constructor(
49
+ opts: __ExceptionOptionType<UnauthorizedException, __BaseException>
50
+ );
51
+ }
52
+ export declare class RequestTimeoutException extends __BaseException {
53
+ readonly name: "RequestTimeoutException";
54
+ readonly $fault: "client";
55
+ $retryable: {};
56
+ constructor(
57
+ opts: __ExceptionOptionType<RequestTimeoutException, __BaseException>
58
+ );
59
+ }
60
+ export declare class DependencyFailedException extends __BaseException {
61
+ readonly name: "DependencyFailedException";
62
+ readonly $fault: "client";
63
+ constructor(
64
+ opts: __ExceptionOptionType<DependencyFailedException, __BaseException>
65
+ );
66
+ }
67
+ export declare class PreconditionFailedException extends __BaseException {
68
+ readonly name: "PreconditionFailedException";
69
+ readonly $fault: "client";
70
+ constructor(
71
+ opts: __ExceptionOptionType<PreconditionFailedException, __BaseException>
72
+ );
73
+ }
74
+ export declare class TooManyTagsException extends __BaseException {
75
+ readonly name: "TooManyTagsException";
76
+ readonly $fault: "client";
77
+ resourceName?: string | undefined;
78
+ constructor(
79
+ opts: __ExceptionOptionType<TooManyTagsException, __BaseException>
80
+ );
81
+ }