@aws-sdk/client-qconnect 3.899.0 → 3.903.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist-cjs/endpoint/ruleset.js +1 -1
  2. package/dist-cjs/index.js +165 -33
  3. package/dist-es/commands/CreateMessageTemplateAttachmentCommand.js +1 -1
  4. package/dist-es/commands/CreateMessageTemplateCommand.js +2 -1
  5. package/dist-es/endpoint/ruleset.js +1 -1
  6. package/dist-es/models/models_0.js +39 -28
  7. package/dist-es/models/models_1.js +48 -1
  8. package/dist-es/protocols/Aws_restJson1.js +58 -1
  9. package/dist-types/commands/CreateAIAgentCommand.d.ts +116 -0
  10. package/dist-types/commands/CreateAIAgentVersionCommand.d.ts +58 -0
  11. package/dist-types/commands/CreateAIPromptCommand.d.ts +1 -1
  12. package/dist-types/commands/CreateMessageTemplateAttachmentCommand.d.ts +1 -1
  13. package/dist-types/commands/CreateMessageTemplateCommand.d.ts +2 -1
  14. package/dist-types/commands/CreateMessageTemplateVersionCommand.d.ts +1 -2
  15. package/dist-types/commands/CreateSessionCommand.d.ts +4 -0
  16. package/dist-types/commands/GetAIAgentCommand.d.ts +58 -0
  17. package/dist-types/commands/GetRecommendationsCommand.d.ts +28 -0
  18. package/dist-types/commands/ListAIAgentVersionsCommand.d.ts +58 -0
  19. package/dist-types/commands/ListAIAgentsCommand.d.ts +58 -0
  20. package/dist-types/commands/QueryAssistantCommand.d.ts +28 -0
  21. package/dist-types/commands/UpdateAIAgentCommand.d.ts +116 -0
  22. package/dist-types/models/models_0.d.ts +195 -225
  23. package/dist-types/models/models_1.d.ts +315 -2
  24. package/dist-types/ts3.4/commands/CreateMessageTemplateAttachmentCommand.d.ts +1 -1
  25. package/dist-types/ts3.4/commands/CreateMessageTemplateCommand.d.ts +2 -4
  26. package/dist-types/ts3.4/commands/CreateMessageTemplateVersionCommand.d.ts +4 -2
  27. package/dist-types/ts3.4/models/models_0.d.ts +102 -61
  28. package/dist-types/ts3.4/models/models_1.d.ts +131 -2
  29. package/package.json +38 -38
@@ -1,6 +1,208 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { ChannelSubtype, Configuration, ContentDataDetails, ContentSummary, DataReference, Document, GroupingConfiguration, IntentDetectedDataDetails, KnowledgeBaseData, KnowledgeBaseStatus, KnowledgeBaseType, MessageTemplateAttachment, MessageTemplateAttributes, MessageTemplateAttributeType, MessageTemplateContentProvider, MessageTemplateData, QueryResultType, RankingData, RecommendationTrigger, RecommendationType, RelevanceLevel, RenderingConfiguration, SearchExpression, ServerSideEncryptionConfiguration, SourceConfiguration, SourceContentDataDetails, VectorIngestionConfiguration } from "./models_0";
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
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
+ }
4
206
  /**
5
207
  * <p>The extended data of a message template.</p>
6
208
  * @public
@@ -2211,7 +2413,7 @@ export interface UntagResourceResponse {
2211
2413
  * <p>Details about the data.</p>
2212
2414
  * @public
2213
2415
  */
2214
- export type DataDetails = DataDetails.ContentDataMember | DataDetails.GenerativeChunkDataMember | DataDetails.GenerativeDataMember | DataDetails.IntentDetectedDataMember | DataDetails.SourceContentDataMember | DataDetails.$UnknownMember;
2416
+ export type DataDetails = DataDetails.ContentDataMember | DataDetails.EmailGenerativeAnswerChunkDataMember | DataDetails.EmailOverviewChunkDataMember | DataDetails.EmailResponseChunkDataMember | DataDetails.GenerativeChunkDataMember | DataDetails.GenerativeDataMember | DataDetails.IntentDetectedDataMember | DataDetails.SourceContentDataMember | DataDetails.$UnknownMember;
2215
2417
  /**
2216
2418
  * @public
2217
2419
  */
@@ -2226,6 +2428,9 @@ export declare namespace DataDetails {
2226
2428
  intentDetectedData?: never;
2227
2429
  sourceContentData?: never;
2228
2430
  generativeChunkData?: never;
2431
+ emailResponseChunkData?: never;
2432
+ emailOverviewChunkData?: never;
2433
+ emailGenerativeAnswerChunkData?: never;
2229
2434
  $unknown?: never;
2230
2435
  }
2231
2436
  /**
@@ -2238,6 +2443,9 @@ export declare namespace DataDetails {
2238
2443
  intentDetectedData?: never;
2239
2444
  sourceContentData?: never;
2240
2445
  generativeChunkData?: never;
2446
+ emailResponseChunkData?: never;
2447
+ emailOverviewChunkData?: never;
2448
+ emailGenerativeAnswerChunkData?: never;
2241
2449
  $unknown?: never;
2242
2450
  }
2243
2451
  /**
@@ -2250,6 +2458,9 @@ export declare namespace DataDetails {
2250
2458
  intentDetectedData: IntentDetectedDataDetails;
2251
2459
  sourceContentData?: never;
2252
2460
  generativeChunkData?: never;
2461
+ emailResponseChunkData?: never;
2462
+ emailOverviewChunkData?: never;
2463
+ emailGenerativeAnswerChunkData?: never;
2253
2464
  $unknown?: never;
2254
2465
  }
2255
2466
  /**
@@ -2262,6 +2473,9 @@ export declare namespace DataDetails {
2262
2473
  intentDetectedData?: never;
2263
2474
  sourceContentData: SourceContentDataDetails;
2264
2475
  generativeChunkData?: never;
2476
+ emailResponseChunkData?: never;
2477
+ emailOverviewChunkData?: never;
2478
+ emailGenerativeAnswerChunkData?: never;
2265
2479
  $unknown?: never;
2266
2480
  }
2267
2481
  /**
@@ -2274,6 +2488,54 @@ export declare namespace DataDetails {
2274
2488
  intentDetectedData?: never;
2275
2489
  sourceContentData?: never;
2276
2490
  generativeChunkData: GenerativeChunkDataDetails;
2491
+ emailResponseChunkData?: never;
2492
+ emailOverviewChunkData?: never;
2493
+ emailGenerativeAnswerChunkData?: never;
2494
+ $unknown?: never;
2495
+ }
2496
+ /**
2497
+ * <p>Streaming chunk data for email response generation containing partial response content.</p>
2498
+ * @public
2499
+ */
2500
+ interface EmailResponseChunkDataMember {
2501
+ contentData?: never;
2502
+ generativeData?: never;
2503
+ intentDetectedData?: never;
2504
+ sourceContentData?: never;
2505
+ generativeChunkData?: never;
2506
+ emailResponseChunkData: EmailResponseChunkDataDetails;
2507
+ emailOverviewChunkData?: never;
2508
+ emailGenerativeAnswerChunkData?: never;
2509
+ $unknown?: never;
2510
+ }
2511
+ /**
2512
+ * <p>Streaming chunk data for email overview containing partial overview content.</p>
2513
+ * @public
2514
+ */
2515
+ interface EmailOverviewChunkDataMember {
2516
+ contentData?: never;
2517
+ generativeData?: never;
2518
+ intentDetectedData?: never;
2519
+ sourceContentData?: never;
2520
+ generativeChunkData?: never;
2521
+ emailResponseChunkData?: never;
2522
+ emailOverviewChunkData: EmailOverviewChunkDataDetails;
2523
+ emailGenerativeAnswerChunkData?: never;
2524
+ $unknown?: never;
2525
+ }
2526
+ /**
2527
+ * <p>Streaming chunk data for email generative answers containing partial knowledge-based response content.</p>
2528
+ * @public
2529
+ */
2530
+ interface EmailGenerativeAnswerChunkDataMember {
2531
+ contentData?: never;
2532
+ generativeData?: never;
2533
+ intentDetectedData?: never;
2534
+ sourceContentData?: never;
2535
+ generativeChunkData?: never;
2536
+ emailResponseChunkData?: never;
2537
+ emailOverviewChunkData?: never;
2538
+ emailGenerativeAnswerChunkData: EmailGenerativeAnswerChunkDataDetails;
2277
2539
  $unknown?: never;
2278
2540
  }
2279
2541
  /**
@@ -2285,6 +2547,9 @@ export declare namespace DataDetails {
2285
2547
  intentDetectedData?: never;
2286
2548
  sourceContentData?: never;
2287
2549
  generativeChunkData?: never;
2550
+ emailResponseChunkData?: never;
2551
+ emailOverviewChunkData?: never;
2552
+ emailGenerativeAnswerChunkData?: never;
2288
2553
  $unknown: [string, any];
2289
2554
  }
2290
2555
  interface Visitor<T> {
@@ -2293,6 +2558,9 @@ export declare namespace DataDetails {
2293
2558
  intentDetectedData: (value: IntentDetectedDataDetails) => T;
2294
2559
  sourceContentData: (value: SourceContentDataDetails) => T;
2295
2560
  generativeChunkData: (value: GenerativeChunkDataDetails) => T;
2561
+ emailResponseChunkData: (value: EmailResponseChunkDataDetails) => T;
2562
+ emailOverviewChunkData: (value: EmailOverviewChunkDataDetails) => T;
2563
+ emailGenerativeAnswerChunkData: (value: EmailGenerativeAnswerChunkDataDetails) => T;
2296
2564
  _: (name: string, value: any) => T;
2297
2565
  }
2298
2566
  const visit: <T>(value: DataDetails, visitor: Visitor<T>) => T;
@@ -2313,6 +2581,27 @@ export interface DataSummary {
2313
2581
  */
2314
2582
  details: DataDetails | undefined;
2315
2583
  }
2584
+ /**
2585
+ * <p>Details of streaming chunk data for email generative answers including completion text and references.</p>
2586
+ * @public
2587
+ */
2588
+ export interface EmailGenerativeAnswerChunkDataDetails {
2589
+ /**
2590
+ * <p>The partial or complete text content of the generative answer response.</p>
2591
+ * @public
2592
+ */
2593
+ completion?: string | undefined;
2594
+ /**
2595
+ * <p>Source references and citations from knowledge base articles used to generate the answer.</p>
2596
+ * @public
2597
+ */
2598
+ references?: DataSummary[] | undefined;
2599
+ /**
2600
+ * <p>Token for retrieving the next chunk of streaming response data, if available.</p>
2601
+ * @public
2602
+ */
2603
+ nextChunkToken?: string | undefined;
2604
+ }
2316
2605
  /**
2317
2606
  * <p>Details about the generative chunk data.</p>
2318
2607
  * @public
@@ -2452,6 +2741,26 @@ export interface QueryAssistantResponse {
2452
2741
  */
2453
2742
  nextToken?: string | undefined;
2454
2743
  }
2744
+ /**
2745
+ * @internal
2746
+ */
2747
+ export declare const MessageTemplateDataFilterSensitiveLog: (obj: MessageTemplateData) => any;
2748
+ /**
2749
+ * @internal
2750
+ */
2751
+ export declare const CreateMessageTemplateResponseFilterSensitiveLog: (obj: CreateMessageTemplateResponse) => any;
2752
+ /**
2753
+ * @internal
2754
+ */
2755
+ export declare const CreateMessageTemplateAttachmentRequestFilterSensitiveLog: (obj: CreateMessageTemplateAttachmentRequest) => any;
2756
+ /**
2757
+ * @internal
2758
+ */
2759
+ export declare const MessageTemplateAttachmentFilterSensitiveLog: (obj: MessageTemplateAttachment) => any;
2760
+ /**
2761
+ * @internal
2762
+ */
2763
+ export declare const CreateMessageTemplateAttachmentResponseFilterSensitiveLog: (obj: CreateMessageTemplateAttachmentResponse) => any;
2455
2764
  /**
2456
2765
  * @internal
2457
2766
  */
@@ -2592,6 +2901,10 @@ export declare const DataDetailsFilterSensitiveLog: (obj: DataDetails) => any;
2592
2901
  * @internal
2593
2902
  */
2594
2903
  export declare const DataSummaryFilterSensitiveLog: (obj: DataSummary) => any;
2904
+ /**
2905
+ * @internal
2906
+ */
2907
+ export declare const EmailGenerativeAnswerChunkDataDetailsFilterSensitiveLog: (obj: EmailGenerativeAnswerChunkDataDetails) => any;
2595
2908
  /**
2596
2909
  * @internal
2597
2910
  */
@@ -3,7 +3,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import {
4
4
  CreateMessageTemplateAttachmentRequest,
5
5
  CreateMessageTemplateAttachmentResponse,
6
- } from "../models/models_0";
6
+ } from "../models/models_1";
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
- CreateMessageTemplateRequest,
5
- CreateMessageTemplateResponse,
6
- } from "../models/models_0";
3
+ import { CreateMessageTemplateRequest } from "../models/models_0";
4
+ import { CreateMessageTemplateResponse } from "../models/models_1";
7
5
  import {
8
6
  QConnectClientResolvedConfig,
9
7
  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 { CreateMessageTemplateVersionRequest } from "../models/models_0";
4
- import { CreateMessageTemplateVersionResponse } from "../models/models_1";
3
+ import {
4
+ CreateMessageTemplateVersionRequest,
5
+ CreateMessageTemplateVersionResponse,
6
+ } from "../models/models_1";
5
7
  import {
6
8
  QConnectClientResolvedConfig,
7
9
  ServiceInputTypes,