@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.
- package/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-cjs/index.js +165 -33
- package/dist-es/commands/CreateMessageTemplateAttachmentCommand.js +1 -1
- package/dist-es/commands/CreateMessageTemplateCommand.js +2 -1
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_0.js +39 -28
- package/dist-es/models/models_1.js +48 -1
- package/dist-es/protocols/Aws_restJson1.js +58 -1
- package/dist-types/commands/CreateAIAgentCommand.d.ts +116 -0
- package/dist-types/commands/CreateAIAgentVersionCommand.d.ts +58 -0
- package/dist-types/commands/CreateAIPromptCommand.d.ts +1 -1
- package/dist-types/commands/CreateMessageTemplateAttachmentCommand.d.ts +1 -1
- package/dist-types/commands/CreateMessageTemplateCommand.d.ts +2 -1
- package/dist-types/commands/CreateMessageTemplateVersionCommand.d.ts +1 -2
- package/dist-types/commands/CreateSessionCommand.d.ts +4 -0
- package/dist-types/commands/GetAIAgentCommand.d.ts +58 -0
- package/dist-types/commands/GetRecommendationsCommand.d.ts +28 -0
- package/dist-types/commands/ListAIAgentVersionsCommand.d.ts +58 -0
- package/dist-types/commands/ListAIAgentsCommand.d.ts +58 -0
- package/dist-types/commands/QueryAssistantCommand.d.ts +28 -0
- package/dist-types/commands/UpdateAIAgentCommand.d.ts +116 -0
- package/dist-types/models/models_0.d.ts +195 -225
- package/dist-types/models/models_1.d.ts +315 -2
- package/dist-types/ts3.4/commands/CreateMessageTemplateAttachmentCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateMessageTemplateCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/CreateMessageTemplateVersionCommand.d.ts +4 -2
- package/dist-types/ts3.4/models/models_0.d.ts +102 -61
- package/dist-types/ts3.4/models/models_1.d.ts +131 -2
- package/package.json +38 -38
|
@@ -2,7 +2,7 @@ import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody a
|
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { AccessDeniedException, AIAgentConfiguration, ConflictException, PreconditionFailedException, RequestTimeoutException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UnauthorizedException, ValidationException, } from "../models/models_0";
|
|
5
|
+
import { AccessDeniedException, AIAgentConfiguration, ConflictException, DependencyFailedException, PreconditionFailedException, RequestTimeoutException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UnauthorizedException, ValidationException, } from "../models/models_0";
|
|
6
6
|
import { TooManyTagsException, } from "../models/models_1";
|
|
7
7
|
import { QConnectServiceException as __BaseException } from "../models/QConnectServiceException";
|
|
8
8
|
export const se_ActivateMessageTemplateCommand = async (input, context) => {
|
|
@@ -320,6 +320,7 @@ export const se_CreateSessionCommand = async (input, context) => {
|
|
|
320
320
|
body = JSON.stringify(take(input, {
|
|
321
321
|
aiAgentConfiguration: (_) => _json(_),
|
|
322
322
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
323
|
+
contactArn: [],
|
|
323
324
|
description: [],
|
|
324
325
|
name: [],
|
|
325
326
|
tagFilter: (_) => _json(_),
|
|
@@ -2597,6 +2598,9 @@ const de_CommandError = async (output, context) => {
|
|
|
2597
2598
|
case "UnauthorizedException":
|
|
2598
2599
|
case "com.amazonaws.qconnect#UnauthorizedException":
|
|
2599
2600
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2601
|
+
case "DependencyFailedException":
|
|
2602
|
+
case "com.amazonaws.qconnect#DependencyFailedException":
|
|
2603
|
+
throw await de_DependencyFailedExceptionRes(parsedOutput, context);
|
|
2600
2604
|
case "RequestTimeoutException":
|
|
2601
2605
|
case "com.amazonaws.qconnect#RequestTimeoutException":
|
|
2602
2606
|
throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
|
|
@@ -2642,6 +2646,19 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
2642
2646
|
});
|
|
2643
2647
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2644
2648
|
};
|
|
2649
|
+
const de_DependencyFailedExceptionRes = async (parsedOutput, context) => {
|
|
2650
|
+
const contents = map({});
|
|
2651
|
+
const data = parsedOutput.body;
|
|
2652
|
+
const doc = take(data, {
|
|
2653
|
+
message: __expectString,
|
|
2654
|
+
});
|
|
2655
|
+
Object.assign(contents, doc);
|
|
2656
|
+
const exception = new DependencyFailedException({
|
|
2657
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2658
|
+
...contents,
|
|
2659
|
+
});
|
|
2660
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2661
|
+
};
|
|
2645
2662
|
const de_PreconditionFailedExceptionRes = async (parsedOutput, context) => {
|
|
2646
2663
|
const contents = map({});
|
|
2647
2664
|
const data = parsedOutput.body;
|
|
@@ -2751,6 +2768,9 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
2751
2768
|
const se_AIAgentConfiguration = (input, context) => {
|
|
2752
2769
|
return AIAgentConfiguration.visit(input, {
|
|
2753
2770
|
answerRecommendationAIAgentConfiguration: (value) => ({ answerRecommendationAIAgentConfiguration: _json(value) }),
|
|
2771
|
+
emailGenerativeAnswerAIAgentConfiguration: (value) => ({ emailGenerativeAnswerAIAgentConfiguration: _json(value) }),
|
|
2772
|
+
emailOverviewAIAgentConfiguration: (value) => ({ emailOverviewAIAgentConfiguration: _json(value) }),
|
|
2773
|
+
emailResponseAIAgentConfiguration: (value) => ({ emailResponseAIAgentConfiguration: _json(value) }),
|
|
2754
2774
|
manualSearchAIAgentConfiguration: (value) => ({ manualSearchAIAgentConfiguration: _json(value) }),
|
|
2755
2775
|
selfServiceAIAgentConfiguration: (value) => ({ selfServiceAIAgentConfiguration: _json(value) }),
|
|
2756
2776
|
_: (name, value) => ({ [name]: value }),
|
|
@@ -2780,6 +2800,21 @@ const de_AIAgentConfiguration = (output, context) => {
|
|
|
2780
2800
|
answerRecommendationAIAgentConfiguration: _json(output.answerRecommendationAIAgentConfiguration),
|
|
2781
2801
|
};
|
|
2782
2802
|
}
|
|
2803
|
+
if (output.emailGenerativeAnswerAIAgentConfiguration != null) {
|
|
2804
|
+
return {
|
|
2805
|
+
emailGenerativeAnswerAIAgentConfiguration: _json(output.emailGenerativeAnswerAIAgentConfiguration),
|
|
2806
|
+
};
|
|
2807
|
+
}
|
|
2808
|
+
if (output.emailOverviewAIAgentConfiguration != null) {
|
|
2809
|
+
return {
|
|
2810
|
+
emailOverviewAIAgentConfiguration: _json(output.emailOverviewAIAgentConfiguration),
|
|
2811
|
+
};
|
|
2812
|
+
}
|
|
2813
|
+
if (output.emailResponseAIAgentConfiguration != null) {
|
|
2814
|
+
return {
|
|
2815
|
+
emailResponseAIAgentConfiguration: _json(output.emailResponseAIAgentConfiguration),
|
|
2816
|
+
};
|
|
2817
|
+
}
|
|
2783
2818
|
if (output.manualSearchAIAgentConfiguration != null) {
|
|
2784
2819
|
return {
|
|
2785
2820
|
manualSearchAIAgentConfiguration: _json(output.manualSearchAIAgentConfiguration),
|
|
@@ -3001,6 +3036,21 @@ const de_DataDetails = (output, context) => {
|
|
|
3001
3036
|
contentData: de_ContentDataDetails(output.contentData, context),
|
|
3002
3037
|
};
|
|
3003
3038
|
}
|
|
3039
|
+
if (output.emailGenerativeAnswerChunkData != null) {
|
|
3040
|
+
return {
|
|
3041
|
+
emailGenerativeAnswerChunkData: de_EmailGenerativeAnswerChunkDataDetails(output.emailGenerativeAnswerChunkData, context),
|
|
3042
|
+
};
|
|
3043
|
+
}
|
|
3044
|
+
if (output.emailOverviewChunkData != null) {
|
|
3045
|
+
return {
|
|
3046
|
+
emailOverviewChunkData: _json(output.emailOverviewChunkData),
|
|
3047
|
+
};
|
|
3048
|
+
}
|
|
3049
|
+
if (output.emailResponseChunkData != null) {
|
|
3050
|
+
return {
|
|
3051
|
+
emailResponseChunkData: _json(output.emailResponseChunkData),
|
|
3052
|
+
};
|
|
3053
|
+
}
|
|
3004
3054
|
if (output.generativeChunkData != null) {
|
|
3005
3055
|
return {
|
|
3006
3056
|
generativeChunkData: de_GenerativeChunkDataDetails(output.generativeChunkData, context),
|
|
@@ -3037,6 +3087,13 @@ const de_DataSummaryList = (output, context) => {
|
|
|
3037
3087
|
});
|
|
3038
3088
|
return retVal;
|
|
3039
3089
|
};
|
|
3090
|
+
const de_EmailGenerativeAnswerChunkDataDetails = (output, context) => {
|
|
3091
|
+
return take(output, {
|
|
3092
|
+
completion: __expectString,
|
|
3093
|
+
nextChunkToken: __expectString,
|
|
3094
|
+
references: (_) => de_DataSummaryList(_, context),
|
|
3095
|
+
});
|
|
3096
|
+
};
|
|
3040
3097
|
const de_ExtendedMessageTemplateData = (output, context) => {
|
|
3041
3098
|
return take(output, {
|
|
3042
3099
|
attachments: (_) => de_MessageTemplateAttachmentList(_, context),
|
|
@@ -141,6 +141,64 @@ declare const CreateAIAgentCommand_base: {
|
|
|
141
141
|
* },
|
|
142
142
|
* ],
|
|
143
143
|
* },
|
|
144
|
+
* emailResponseAIAgentConfiguration: { // EmailResponseAIAgentConfiguration
|
|
145
|
+
* emailResponseAIPromptId: "STRING_VALUE",
|
|
146
|
+
* emailQueryReformulationAIPromptId: "STRING_VALUE",
|
|
147
|
+
* locale: "STRING_VALUE",
|
|
148
|
+
* associationConfigurations: [
|
|
149
|
+
* {
|
|
150
|
+
* associationId: "STRING_VALUE",
|
|
151
|
+
* associationType: "STRING_VALUE",
|
|
152
|
+
* associationConfigurationData: {// Union: only one key present
|
|
153
|
+
* knowledgeBaseAssociationConfigurationData: {
|
|
154
|
+
* contentTagFilter: {// Union: only one key present
|
|
155
|
+
* tagCondition: "<TagCondition>",
|
|
156
|
+
* andConditions: "<AndConditions>",
|
|
157
|
+
* orConditions: [
|
|
158
|
+
* {// Union: only one key present
|
|
159
|
+
* andConditions: "<AndConditions>",
|
|
160
|
+
* tagCondition: "<TagCondition>",
|
|
161
|
+
* },
|
|
162
|
+
* ],
|
|
163
|
+
* },
|
|
164
|
+
* maxResults: Number("int"),
|
|
165
|
+
* overrideKnowledgeBaseSearchType: "STRING_VALUE",
|
|
166
|
+
* },
|
|
167
|
+
* },
|
|
168
|
+
* },
|
|
169
|
+
* ],
|
|
170
|
+
* },
|
|
171
|
+
* emailOverviewAIAgentConfiguration: { // EmailOverviewAIAgentConfiguration
|
|
172
|
+
* emailOverviewAIPromptId: "STRING_VALUE",
|
|
173
|
+
* locale: "STRING_VALUE",
|
|
174
|
+
* },
|
|
175
|
+
* emailGenerativeAnswerAIAgentConfiguration: { // EmailGenerativeAnswerAIAgentConfiguration
|
|
176
|
+
* emailGenerativeAnswerAIPromptId: "STRING_VALUE",
|
|
177
|
+
* emailQueryReformulationAIPromptId: "STRING_VALUE",
|
|
178
|
+
* locale: "STRING_VALUE",
|
|
179
|
+
* associationConfigurations: [
|
|
180
|
+
* {
|
|
181
|
+
* associationId: "STRING_VALUE",
|
|
182
|
+
* associationType: "STRING_VALUE",
|
|
183
|
+
* associationConfigurationData: {// Union: only one key present
|
|
184
|
+
* knowledgeBaseAssociationConfigurationData: {
|
|
185
|
+
* contentTagFilter: {// Union: only one key present
|
|
186
|
+
* tagCondition: "<TagCondition>",
|
|
187
|
+
* andConditions: "<AndConditions>",
|
|
188
|
+
* orConditions: [
|
|
189
|
+
* {// Union: only one key present
|
|
190
|
+
* andConditions: "<AndConditions>",
|
|
191
|
+
* tagCondition: "<TagCondition>",
|
|
192
|
+
* },
|
|
193
|
+
* ],
|
|
194
|
+
* },
|
|
195
|
+
* maxResults: Number("int"),
|
|
196
|
+
* overrideKnowledgeBaseSearchType: "STRING_VALUE",
|
|
197
|
+
* },
|
|
198
|
+
* },
|
|
199
|
+
* },
|
|
200
|
+
* ],
|
|
201
|
+
* },
|
|
144
202
|
* },
|
|
145
203
|
* visibilityStatus: "STRING_VALUE", // required
|
|
146
204
|
* tags: { // Tags
|
|
@@ -258,6 +316,64 @@ declare const CreateAIAgentCommand_base: {
|
|
|
258
316
|
* // },
|
|
259
317
|
* // ],
|
|
260
318
|
* // },
|
|
319
|
+
* // emailResponseAIAgentConfiguration: { // EmailResponseAIAgentConfiguration
|
|
320
|
+
* // emailResponseAIPromptId: "STRING_VALUE",
|
|
321
|
+
* // emailQueryReformulationAIPromptId: "STRING_VALUE",
|
|
322
|
+
* // locale: "STRING_VALUE",
|
|
323
|
+
* // associationConfigurations: [
|
|
324
|
+
* // {
|
|
325
|
+
* // associationId: "STRING_VALUE",
|
|
326
|
+
* // associationType: "STRING_VALUE",
|
|
327
|
+
* // associationConfigurationData: {// Union: only one key present
|
|
328
|
+
* // knowledgeBaseAssociationConfigurationData: {
|
|
329
|
+
* // contentTagFilter: {// Union: only one key present
|
|
330
|
+
* // tagCondition: "<TagCondition>",
|
|
331
|
+
* // andConditions: "<AndConditions>",
|
|
332
|
+
* // orConditions: [
|
|
333
|
+
* // {// Union: only one key present
|
|
334
|
+
* // andConditions: "<AndConditions>",
|
|
335
|
+
* // tagCondition: "<TagCondition>",
|
|
336
|
+
* // },
|
|
337
|
+
* // ],
|
|
338
|
+
* // },
|
|
339
|
+
* // maxResults: Number("int"),
|
|
340
|
+
* // overrideKnowledgeBaseSearchType: "STRING_VALUE",
|
|
341
|
+
* // },
|
|
342
|
+
* // },
|
|
343
|
+
* // },
|
|
344
|
+
* // ],
|
|
345
|
+
* // },
|
|
346
|
+
* // emailOverviewAIAgentConfiguration: { // EmailOverviewAIAgentConfiguration
|
|
347
|
+
* // emailOverviewAIPromptId: "STRING_VALUE",
|
|
348
|
+
* // locale: "STRING_VALUE",
|
|
349
|
+
* // },
|
|
350
|
+
* // emailGenerativeAnswerAIAgentConfiguration: { // EmailGenerativeAnswerAIAgentConfiguration
|
|
351
|
+
* // emailGenerativeAnswerAIPromptId: "STRING_VALUE",
|
|
352
|
+
* // emailQueryReformulationAIPromptId: "STRING_VALUE",
|
|
353
|
+
* // locale: "STRING_VALUE",
|
|
354
|
+
* // associationConfigurations: [
|
|
355
|
+
* // {
|
|
356
|
+
* // associationId: "STRING_VALUE",
|
|
357
|
+
* // associationType: "STRING_VALUE",
|
|
358
|
+
* // associationConfigurationData: {// Union: only one key present
|
|
359
|
+
* // knowledgeBaseAssociationConfigurationData: {
|
|
360
|
+
* // contentTagFilter: {// Union: only one key present
|
|
361
|
+
* // tagCondition: "<TagCondition>",
|
|
362
|
+
* // andConditions: "<AndConditions>",
|
|
363
|
+
* // orConditions: [
|
|
364
|
+
* // {// Union: only one key present
|
|
365
|
+
* // andConditions: "<AndConditions>",
|
|
366
|
+
* // tagCondition: "<TagCondition>",
|
|
367
|
+
* // },
|
|
368
|
+
* // ],
|
|
369
|
+
* // },
|
|
370
|
+
* // maxResults: Number("int"),
|
|
371
|
+
* // overrideKnowledgeBaseSearchType: "STRING_VALUE",
|
|
372
|
+
* // },
|
|
373
|
+
* // },
|
|
374
|
+
* // },
|
|
375
|
+
* // ],
|
|
376
|
+
* // },
|
|
261
377
|
* // },
|
|
262
378
|
* // modifiedTime: new Date("TIMESTAMP"),
|
|
263
379
|
* // description: "STRING_VALUE",
|
|
@@ -152,6 +152,64 @@ declare const CreateAIAgentVersionCommand_base: {
|
|
|
152
152
|
* // },
|
|
153
153
|
* // ],
|
|
154
154
|
* // },
|
|
155
|
+
* // emailResponseAIAgentConfiguration: { // EmailResponseAIAgentConfiguration
|
|
156
|
+
* // emailResponseAIPromptId: "STRING_VALUE",
|
|
157
|
+
* // emailQueryReformulationAIPromptId: "STRING_VALUE",
|
|
158
|
+
* // locale: "STRING_VALUE",
|
|
159
|
+
* // associationConfigurations: [
|
|
160
|
+
* // {
|
|
161
|
+
* // associationId: "STRING_VALUE",
|
|
162
|
+
* // associationType: "STRING_VALUE",
|
|
163
|
+
* // associationConfigurationData: {// Union: only one key present
|
|
164
|
+
* // knowledgeBaseAssociationConfigurationData: {
|
|
165
|
+
* // contentTagFilter: {// Union: only one key present
|
|
166
|
+
* // tagCondition: "<TagCondition>",
|
|
167
|
+
* // andConditions: "<AndConditions>",
|
|
168
|
+
* // orConditions: [
|
|
169
|
+
* // {// Union: only one key present
|
|
170
|
+
* // andConditions: "<AndConditions>",
|
|
171
|
+
* // tagCondition: "<TagCondition>",
|
|
172
|
+
* // },
|
|
173
|
+
* // ],
|
|
174
|
+
* // },
|
|
175
|
+
* // maxResults: Number("int"),
|
|
176
|
+
* // overrideKnowledgeBaseSearchType: "STRING_VALUE",
|
|
177
|
+
* // },
|
|
178
|
+
* // },
|
|
179
|
+
* // },
|
|
180
|
+
* // ],
|
|
181
|
+
* // },
|
|
182
|
+
* // emailOverviewAIAgentConfiguration: { // EmailOverviewAIAgentConfiguration
|
|
183
|
+
* // emailOverviewAIPromptId: "STRING_VALUE",
|
|
184
|
+
* // locale: "STRING_VALUE",
|
|
185
|
+
* // },
|
|
186
|
+
* // emailGenerativeAnswerAIAgentConfiguration: { // EmailGenerativeAnswerAIAgentConfiguration
|
|
187
|
+
* // emailGenerativeAnswerAIPromptId: "STRING_VALUE",
|
|
188
|
+
* // emailQueryReformulationAIPromptId: "STRING_VALUE",
|
|
189
|
+
* // locale: "STRING_VALUE",
|
|
190
|
+
* // associationConfigurations: [
|
|
191
|
+
* // {
|
|
192
|
+
* // associationId: "STRING_VALUE",
|
|
193
|
+
* // associationType: "STRING_VALUE",
|
|
194
|
+
* // associationConfigurationData: {// Union: only one key present
|
|
195
|
+
* // knowledgeBaseAssociationConfigurationData: {
|
|
196
|
+
* // contentTagFilter: {// Union: only one key present
|
|
197
|
+
* // tagCondition: "<TagCondition>",
|
|
198
|
+
* // andConditions: "<AndConditions>",
|
|
199
|
+
* // orConditions: [
|
|
200
|
+
* // {// Union: only one key present
|
|
201
|
+
* // andConditions: "<AndConditions>",
|
|
202
|
+
* // tagCondition: "<TagCondition>",
|
|
203
|
+
* // },
|
|
204
|
+
* // ],
|
|
205
|
+
* // },
|
|
206
|
+
* // maxResults: Number("int"),
|
|
207
|
+
* // overrideKnowledgeBaseSearchType: "STRING_VALUE",
|
|
208
|
+
* // },
|
|
209
|
+
* // },
|
|
210
|
+
* // },
|
|
211
|
+
* // ],
|
|
212
|
+
* // },
|
|
155
213
|
* // },
|
|
156
214
|
* // modifiedTime: new Date("TIMESTAMP"),
|
|
157
215
|
* // description: "STRING_VALUE",
|
|
@@ -27,7 +27,7 @@ declare const CreateAIPromptCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Creates an Amazon Q in Connect AI Prompt.</p>
|
|
30
|
+
* <p>Creates an Amazon Q in Connect AI Prompt.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { CreateMessageTemplateAttachmentRequest, CreateMessageTemplateAttachmentResponse } from "../models/
|
|
3
|
+
import { CreateMessageTemplateAttachmentRequest, CreateMessageTemplateAttachmentResponse } from "../models/models_1";
|
|
4
4
|
import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { CreateMessageTemplateRequest
|
|
3
|
+
import { CreateMessageTemplateRequest } from "../models/models_0";
|
|
4
|
+
import { CreateMessageTemplateResponse } from "../models/models_1";
|
|
4
5
|
import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient";
|
|
5
6
|
/**
|
|
6
7
|
* @public
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { CreateMessageTemplateVersionRequest } from "../models/
|
|
4
|
-
import { CreateMessageTemplateVersionResponse } from "../models/models_1";
|
|
3
|
+
import { CreateMessageTemplateVersionRequest, CreateMessageTemplateVersionResponse } from "../models/models_1";
|
|
5
4
|
import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient";
|
|
6
5
|
/**
|
|
7
6
|
* @public
|
|
@@ -69,6 +69,7 @@ declare const CreateSessionCommand_base: {
|
|
|
69
69
|
* aiAgentId: "STRING_VALUE", // required
|
|
70
70
|
* },
|
|
71
71
|
* },
|
|
72
|
+
* contactArn: "STRING_VALUE",
|
|
72
73
|
* };
|
|
73
74
|
* const command = new CreateSessionCommand(input);
|
|
74
75
|
* const response = await client.send(command);
|
|
@@ -127,6 +128,9 @@ declare const CreateSessionCommand_base: {
|
|
|
127
128
|
* @throws {@link ConflictException} (client fault)
|
|
128
129
|
* <p>The request could not be processed because of conflict in the current state of the resource. For example, if you're using a <code>Create</code> API (such as <code>CreateAssistant</code>) that accepts name, a conflicting resource (usually with the same name) is being created or mutated.</p>
|
|
129
130
|
*
|
|
131
|
+
* @throws {@link DependencyFailedException} (client fault)
|
|
132
|
+
* <p>An error occurred while calling a dependency. For example, calling <code>connect:DecribeContact</code> as part of <code>CreateSession</code> with a contactArn.</p>
|
|
133
|
+
*
|
|
130
134
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
131
135
|
* <p>The specified resource does not exist.</p>
|
|
132
136
|
*
|
|
@@ -150,6 +150,64 @@ declare const GetAIAgentCommand_base: {
|
|
|
150
150
|
* // },
|
|
151
151
|
* // ],
|
|
152
152
|
* // },
|
|
153
|
+
* // emailResponseAIAgentConfiguration: { // EmailResponseAIAgentConfiguration
|
|
154
|
+
* // emailResponseAIPromptId: "STRING_VALUE",
|
|
155
|
+
* // emailQueryReformulationAIPromptId: "STRING_VALUE",
|
|
156
|
+
* // locale: "STRING_VALUE",
|
|
157
|
+
* // associationConfigurations: [
|
|
158
|
+
* // {
|
|
159
|
+
* // associationId: "STRING_VALUE",
|
|
160
|
+
* // associationType: "STRING_VALUE",
|
|
161
|
+
* // associationConfigurationData: {// Union: only one key present
|
|
162
|
+
* // knowledgeBaseAssociationConfigurationData: {
|
|
163
|
+
* // contentTagFilter: {// Union: only one key present
|
|
164
|
+
* // tagCondition: "<TagCondition>",
|
|
165
|
+
* // andConditions: "<AndConditions>",
|
|
166
|
+
* // orConditions: [
|
|
167
|
+
* // {// Union: only one key present
|
|
168
|
+
* // andConditions: "<AndConditions>",
|
|
169
|
+
* // tagCondition: "<TagCondition>",
|
|
170
|
+
* // },
|
|
171
|
+
* // ],
|
|
172
|
+
* // },
|
|
173
|
+
* // maxResults: Number("int"),
|
|
174
|
+
* // overrideKnowledgeBaseSearchType: "STRING_VALUE",
|
|
175
|
+
* // },
|
|
176
|
+
* // },
|
|
177
|
+
* // },
|
|
178
|
+
* // ],
|
|
179
|
+
* // },
|
|
180
|
+
* // emailOverviewAIAgentConfiguration: { // EmailOverviewAIAgentConfiguration
|
|
181
|
+
* // emailOverviewAIPromptId: "STRING_VALUE",
|
|
182
|
+
* // locale: "STRING_VALUE",
|
|
183
|
+
* // },
|
|
184
|
+
* // emailGenerativeAnswerAIAgentConfiguration: { // EmailGenerativeAnswerAIAgentConfiguration
|
|
185
|
+
* // emailGenerativeAnswerAIPromptId: "STRING_VALUE",
|
|
186
|
+
* // emailQueryReformulationAIPromptId: "STRING_VALUE",
|
|
187
|
+
* // locale: "STRING_VALUE",
|
|
188
|
+
* // associationConfigurations: [
|
|
189
|
+
* // {
|
|
190
|
+
* // associationId: "STRING_VALUE",
|
|
191
|
+
* // associationType: "STRING_VALUE",
|
|
192
|
+
* // associationConfigurationData: {// Union: only one key present
|
|
193
|
+
* // knowledgeBaseAssociationConfigurationData: {
|
|
194
|
+
* // contentTagFilter: {// Union: only one key present
|
|
195
|
+
* // tagCondition: "<TagCondition>",
|
|
196
|
+
* // andConditions: "<AndConditions>",
|
|
197
|
+
* // orConditions: [
|
|
198
|
+
* // {// Union: only one key present
|
|
199
|
+
* // andConditions: "<AndConditions>",
|
|
200
|
+
* // tagCondition: "<TagCondition>",
|
|
201
|
+
* // },
|
|
202
|
+
* // ],
|
|
203
|
+
* // },
|
|
204
|
+
* // maxResults: Number("int"),
|
|
205
|
+
* // overrideKnowledgeBaseSearchType: "STRING_VALUE",
|
|
206
|
+
* // },
|
|
207
|
+
* // },
|
|
208
|
+
* // },
|
|
209
|
+
* // ],
|
|
210
|
+
* // },
|
|
153
211
|
* // },
|
|
154
212
|
* // modifiedTime: new Date("TIMESTAMP"),
|
|
155
213
|
* // description: "STRING_VALUE",
|
|
@@ -184,6 +184,21 @@ declare const GetRecommendationsCommand_base: {
|
|
|
184
184
|
* // ],
|
|
185
185
|
* // nextChunkToken: "STRING_VALUE",
|
|
186
186
|
* // },
|
|
187
|
+
* // emailResponseChunkData: { // EmailResponseChunkDataDetails
|
|
188
|
+
* // completion: "STRING_VALUE",
|
|
189
|
+
* // nextChunkToken: "STRING_VALUE",
|
|
190
|
+
* // },
|
|
191
|
+
* // emailOverviewChunkData: { // EmailOverviewChunkDataDetails
|
|
192
|
+
* // completion: "STRING_VALUE",
|
|
193
|
+
* // nextChunkToken: "STRING_VALUE",
|
|
194
|
+
* // },
|
|
195
|
+
* // emailGenerativeAnswerChunkData: { // EmailGenerativeAnswerChunkDataDetails
|
|
196
|
+
* // completion: "STRING_VALUE",
|
|
197
|
+
* // references: [
|
|
198
|
+
* // "<DataSummary>",
|
|
199
|
+
* // ],
|
|
200
|
+
* // nextChunkToken: "STRING_VALUE",
|
|
201
|
+
* // },
|
|
187
202
|
* // },
|
|
188
203
|
* // },
|
|
189
204
|
* // ],
|
|
@@ -216,6 +231,19 @@ declare const GetRecommendationsCommand_base: {
|
|
|
216
231
|
* // ],
|
|
217
232
|
* // nextChunkToken: "STRING_VALUE",
|
|
218
233
|
* // },
|
|
234
|
+
* // emailResponseChunkData: {
|
|
235
|
+
* // completion: "STRING_VALUE",
|
|
236
|
+
* // nextChunkToken: "STRING_VALUE",
|
|
237
|
+
* // },
|
|
238
|
+
* // emailOverviewChunkData: {
|
|
239
|
+
* // completion: "STRING_VALUE",
|
|
240
|
+
* // nextChunkToken: "STRING_VALUE",
|
|
241
|
+
* // },
|
|
242
|
+
* // emailGenerativeAnswerChunkData: {
|
|
243
|
+
* // completion: "STRING_VALUE",
|
|
244
|
+
* // references: "<DataSummaryList>",
|
|
245
|
+
* // nextChunkToken: "STRING_VALUE",
|
|
246
|
+
* // },
|
|
219
247
|
* // },
|
|
220
248
|
* // },
|
|
221
249
|
* // },
|
|
@@ -157,6 +157,64 @@ declare const ListAIAgentVersionsCommand_base: {
|
|
|
157
157
|
* // },
|
|
158
158
|
* // ],
|
|
159
159
|
* // },
|
|
160
|
+
* // emailResponseAIAgentConfiguration: { // EmailResponseAIAgentConfiguration
|
|
161
|
+
* // emailResponseAIPromptId: "STRING_VALUE",
|
|
162
|
+
* // emailQueryReformulationAIPromptId: "STRING_VALUE",
|
|
163
|
+
* // locale: "STRING_VALUE",
|
|
164
|
+
* // associationConfigurations: [
|
|
165
|
+
* // {
|
|
166
|
+
* // associationId: "STRING_VALUE",
|
|
167
|
+
* // associationType: "STRING_VALUE",
|
|
168
|
+
* // associationConfigurationData: {// Union: only one key present
|
|
169
|
+
* // knowledgeBaseAssociationConfigurationData: {
|
|
170
|
+
* // contentTagFilter: {// Union: only one key present
|
|
171
|
+
* // tagCondition: "<TagCondition>",
|
|
172
|
+
* // andConditions: "<AndConditions>",
|
|
173
|
+
* // orConditions: [
|
|
174
|
+
* // {// Union: only one key present
|
|
175
|
+
* // andConditions: "<AndConditions>",
|
|
176
|
+
* // tagCondition: "<TagCondition>",
|
|
177
|
+
* // },
|
|
178
|
+
* // ],
|
|
179
|
+
* // },
|
|
180
|
+
* // maxResults: Number("int"),
|
|
181
|
+
* // overrideKnowledgeBaseSearchType: "STRING_VALUE",
|
|
182
|
+
* // },
|
|
183
|
+
* // },
|
|
184
|
+
* // },
|
|
185
|
+
* // ],
|
|
186
|
+
* // },
|
|
187
|
+
* // emailOverviewAIAgentConfiguration: { // EmailOverviewAIAgentConfiguration
|
|
188
|
+
* // emailOverviewAIPromptId: "STRING_VALUE",
|
|
189
|
+
* // locale: "STRING_VALUE",
|
|
190
|
+
* // },
|
|
191
|
+
* // emailGenerativeAnswerAIAgentConfiguration: { // EmailGenerativeAnswerAIAgentConfiguration
|
|
192
|
+
* // emailGenerativeAnswerAIPromptId: "STRING_VALUE",
|
|
193
|
+
* // emailQueryReformulationAIPromptId: "STRING_VALUE",
|
|
194
|
+
* // locale: "STRING_VALUE",
|
|
195
|
+
* // associationConfigurations: [
|
|
196
|
+
* // {
|
|
197
|
+
* // associationId: "STRING_VALUE",
|
|
198
|
+
* // associationType: "STRING_VALUE",
|
|
199
|
+
* // associationConfigurationData: {// Union: only one key present
|
|
200
|
+
* // knowledgeBaseAssociationConfigurationData: {
|
|
201
|
+
* // contentTagFilter: {// Union: only one key present
|
|
202
|
+
* // tagCondition: "<TagCondition>",
|
|
203
|
+
* // andConditions: "<AndConditions>",
|
|
204
|
+
* // orConditions: [
|
|
205
|
+
* // {// Union: only one key present
|
|
206
|
+
* // andConditions: "<AndConditions>",
|
|
207
|
+
* // tagCondition: "<TagCondition>",
|
|
208
|
+
* // },
|
|
209
|
+
* // ],
|
|
210
|
+
* // },
|
|
211
|
+
* // maxResults: Number("int"),
|
|
212
|
+
* // overrideKnowledgeBaseSearchType: "STRING_VALUE",
|
|
213
|
+
* // },
|
|
214
|
+
* // },
|
|
215
|
+
* // },
|
|
216
|
+
* // ],
|
|
217
|
+
* // },
|
|
160
218
|
* // },
|
|
161
219
|
* // origin: "STRING_VALUE",
|
|
162
220
|
* // description: "STRING_VALUE",
|
|
@@ -155,6 +155,64 @@ declare const ListAIAgentsCommand_base: {
|
|
|
155
155
|
* // },
|
|
156
156
|
* // ],
|
|
157
157
|
* // },
|
|
158
|
+
* // emailResponseAIAgentConfiguration: { // EmailResponseAIAgentConfiguration
|
|
159
|
+
* // emailResponseAIPromptId: "STRING_VALUE",
|
|
160
|
+
* // emailQueryReformulationAIPromptId: "STRING_VALUE",
|
|
161
|
+
* // locale: "STRING_VALUE",
|
|
162
|
+
* // associationConfigurations: [
|
|
163
|
+
* // {
|
|
164
|
+
* // associationId: "STRING_VALUE",
|
|
165
|
+
* // associationType: "STRING_VALUE",
|
|
166
|
+
* // associationConfigurationData: {// Union: only one key present
|
|
167
|
+
* // knowledgeBaseAssociationConfigurationData: {
|
|
168
|
+
* // contentTagFilter: {// Union: only one key present
|
|
169
|
+
* // tagCondition: "<TagCondition>",
|
|
170
|
+
* // andConditions: "<AndConditions>",
|
|
171
|
+
* // orConditions: [
|
|
172
|
+
* // {// Union: only one key present
|
|
173
|
+
* // andConditions: "<AndConditions>",
|
|
174
|
+
* // tagCondition: "<TagCondition>",
|
|
175
|
+
* // },
|
|
176
|
+
* // ],
|
|
177
|
+
* // },
|
|
178
|
+
* // maxResults: Number("int"),
|
|
179
|
+
* // overrideKnowledgeBaseSearchType: "STRING_VALUE",
|
|
180
|
+
* // },
|
|
181
|
+
* // },
|
|
182
|
+
* // },
|
|
183
|
+
* // ],
|
|
184
|
+
* // },
|
|
185
|
+
* // emailOverviewAIAgentConfiguration: { // EmailOverviewAIAgentConfiguration
|
|
186
|
+
* // emailOverviewAIPromptId: "STRING_VALUE",
|
|
187
|
+
* // locale: "STRING_VALUE",
|
|
188
|
+
* // },
|
|
189
|
+
* // emailGenerativeAnswerAIAgentConfiguration: { // EmailGenerativeAnswerAIAgentConfiguration
|
|
190
|
+
* // emailGenerativeAnswerAIPromptId: "STRING_VALUE",
|
|
191
|
+
* // emailQueryReformulationAIPromptId: "STRING_VALUE",
|
|
192
|
+
* // locale: "STRING_VALUE",
|
|
193
|
+
* // associationConfigurations: [
|
|
194
|
+
* // {
|
|
195
|
+
* // associationId: "STRING_VALUE",
|
|
196
|
+
* // associationType: "STRING_VALUE",
|
|
197
|
+
* // associationConfigurationData: {// Union: only one key present
|
|
198
|
+
* // knowledgeBaseAssociationConfigurationData: {
|
|
199
|
+
* // contentTagFilter: {// Union: only one key present
|
|
200
|
+
* // tagCondition: "<TagCondition>",
|
|
201
|
+
* // andConditions: "<AndConditions>",
|
|
202
|
+
* // orConditions: [
|
|
203
|
+
* // {// Union: only one key present
|
|
204
|
+
* // andConditions: "<AndConditions>",
|
|
205
|
+
* // tagCondition: "<TagCondition>",
|
|
206
|
+
* // },
|
|
207
|
+
* // ],
|
|
208
|
+
* // },
|
|
209
|
+
* // maxResults: Number("int"),
|
|
210
|
+
* // overrideKnowledgeBaseSearchType: "STRING_VALUE",
|
|
211
|
+
* // },
|
|
212
|
+
* // },
|
|
213
|
+
* // },
|
|
214
|
+
* // ],
|
|
215
|
+
* // },
|
|
158
216
|
* // },
|
|
159
217
|
* // origin: "STRING_VALUE",
|
|
160
218
|
* // description: "STRING_VALUE",
|
|
@@ -200,6 +200,21 @@ declare const QueryAssistantCommand_base: {
|
|
|
200
200
|
* // ],
|
|
201
201
|
* // nextChunkToken: "STRING_VALUE",
|
|
202
202
|
* // },
|
|
203
|
+
* // emailResponseChunkData: { // EmailResponseChunkDataDetails
|
|
204
|
+
* // completion: "STRING_VALUE",
|
|
205
|
+
* // nextChunkToken: "STRING_VALUE",
|
|
206
|
+
* // },
|
|
207
|
+
* // emailOverviewChunkData: { // EmailOverviewChunkDataDetails
|
|
208
|
+
* // completion: "STRING_VALUE",
|
|
209
|
+
* // nextChunkToken: "STRING_VALUE",
|
|
210
|
+
* // },
|
|
211
|
+
* // emailGenerativeAnswerChunkData: { // EmailGenerativeAnswerChunkDataDetails
|
|
212
|
+
* // completion: "STRING_VALUE",
|
|
213
|
+
* // references: [
|
|
214
|
+
* // "<DataSummary>",
|
|
215
|
+
* // ],
|
|
216
|
+
* // nextChunkToken: "STRING_VALUE",
|
|
217
|
+
* // },
|
|
203
218
|
* // },
|
|
204
219
|
* // },
|
|
205
220
|
* // ],
|
|
@@ -232,6 +247,19 @@ declare const QueryAssistantCommand_base: {
|
|
|
232
247
|
* // ],
|
|
233
248
|
* // nextChunkToken: "STRING_VALUE",
|
|
234
249
|
* // },
|
|
250
|
+
* // emailResponseChunkData: {
|
|
251
|
+
* // completion: "STRING_VALUE",
|
|
252
|
+
* // nextChunkToken: "STRING_VALUE",
|
|
253
|
+
* // },
|
|
254
|
+
* // emailOverviewChunkData: {
|
|
255
|
+
* // completion: "STRING_VALUE",
|
|
256
|
+
* // nextChunkToken: "STRING_VALUE",
|
|
257
|
+
* // },
|
|
258
|
+
* // emailGenerativeAnswerChunkData: {
|
|
259
|
+
* // completion: "STRING_VALUE",
|
|
260
|
+
* // references: "<DataSummaryList>",
|
|
261
|
+
* // nextChunkToken: "STRING_VALUE",
|
|
262
|
+
* // },
|
|
235
263
|
* // },
|
|
236
264
|
* // },
|
|
237
265
|
* // type: "STRING_VALUE",
|