@aws-sdk/client-qconnect 3.665.0 → 3.667.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 +166 -0
- package/dist-cjs/index.js +1501 -102
- package/dist-es/QConnect.js +38 -0
- package/dist-es/commands/CreateAIAgentCommand.js +22 -0
- package/dist-es/commands/CreateAIAgentVersionCommand.js +22 -0
- package/dist-es/commands/CreateAIPromptCommand.js +23 -0
- package/dist-es/commands/CreateAIPromptVersionCommand.js +23 -0
- package/dist-es/commands/CreateKnowledgeBaseCommand.js +2 -1
- package/dist-es/commands/DeleteAIAgentCommand.js +22 -0
- package/dist-es/commands/DeleteAIAgentVersionCommand.js +22 -0
- package/dist-es/commands/DeleteAIPromptCommand.js +22 -0
- package/dist-es/commands/DeleteAIPromptVersionCommand.js +22 -0
- package/dist-es/commands/GetAIAgentCommand.js +22 -0
- package/dist-es/commands/GetAIPromptCommand.js +23 -0
- package/dist-es/commands/GetKnowledgeBaseCommand.js +2 -1
- package/dist-es/commands/ListAIAgentVersionsCommand.js +22 -0
- package/dist-es/commands/ListAIAgentsCommand.js +22 -0
- package/dist-es/commands/ListAIPromptVersionsCommand.js +22 -0
- package/dist-es/commands/ListAIPromptsCommand.js +22 -0
- package/dist-es/commands/ListKnowledgeBasesCommand.js +2 -1
- package/dist-es/commands/RemoveAssistantAIAgentCommand.js +22 -0
- package/dist-es/commands/UpdateAIAgentCommand.js +22 -0
- package/dist-es/commands/UpdateAIPromptCommand.js +23 -0
- package/dist-es/commands/UpdateAssistantAIAgentCommand.js +22 -0
- package/dist-es/commands/UpdateKnowledgeBaseTemplateUriCommand.js +2 -1
- package/dist-es/commands/UpdateSessionDataCommand.js +23 -0
- package/dist-es/commands/index.js +19 -0
- package/dist-es/models/models_0.js +310 -46
- package/dist-es/pagination/ListAIAgentVersionsPaginator.js +4 -0
- package/dist-es/pagination/ListAIAgentsPaginator.js +4 -0
- package/dist-es/pagination/ListAIPromptVersionsPaginator.js +4 -0
- package/dist-es/pagination/ListAIPromptsPaginator.js +4 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +692 -8
- package/dist-types/QConnect.d.ts +148 -1
- package/dist-types/QConnectClient.d.ts +36 -3
- package/dist-types/commands/CreateAIAgentCommand.d.ts +252 -0
- package/dist-types/commands/CreateAIAgentVersionCommand.d.ts +180 -0
- package/dist-types/commands/CreateAIPromptCommand.d.ts +132 -0
- package/dist-types/commands/CreateAIPromptVersionCommand.d.ts +120 -0
- package/dist-types/commands/CreateAssistantCommand.d.ts +5 -0
- package/dist-types/commands/CreateContentAssociationCommand.d.ts +5 -6
- package/dist-types/commands/CreateKnowledgeBaseCommand.d.ts +108 -0
- package/dist-types/commands/CreateSessionCommand.d.ts +10 -0
- package/dist-types/commands/DeleteAIAgentCommand.d.ts +82 -0
- package/dist-types/commands/DeleteAIAgentVersionCommand.d.ts +89 -0
- package/dist-types/commands/DeleteAIPromptCommand.d.ts +82 -0
- package/dist-types/commands/DeleteAIPromptVersionCommand.d.ts +89 -0
- package/dist-types/commands/GetAIAgentCommand.d.ts +168 -0
- package/dist-types/commands/GetAIPromptCommand.d.ts +108 -0
- package/dist-types/commands/GetAssistantCommand.d.ts +5 -0
- package/dist-types/commands/GetKnowledgeBaseCommand.d.ts +56 -0
- package/dist-types/commands/GetRecommendationsCommand.d.ts +20 -0
- package/dist-types/commands/GetSessionCommand.d.ts +5 -0
- package/dist-types/commands/ListAIAgentVersionsCommand.d.ts +176 -0
- package/dist-types/commands/ListAIAgentsCommand.d.ts +172 -0
- package/dist-types/commands/ListAIPromptVersionsCommand.d.ts +111 -0
- package/dist-types/commands/ListAIPromptsCommand.d.ts +107 -0
- package/dist-types/commands/ListAssistantsCommand.d.ts +5 -0
- package/dist-types/commands/ListKnowledgeBasesCommand.d.ts +52 -0
- package/dist-types/commands/QueryAssistantCommand.d.ts +30 -1
- package/dist-types/commands/RemoveAssistantAIAgentCommand.d.ts +83 -0
- package/dist-types/commands/UpdateAIAgentCommand.d.ts +244 -0
- package/dist-types/commands/UpdateAIPromptCommand.d.ts +121 -0
- package/dist-types/commands/UpdateAssistantAIAgentCommand.d.ts +112 -0
- package/dist-types/commands/UpdateKnowledgeBaseTemplateUriCommand.d.ts +56 -0
- package/dist-types/commands/UpdateSessionCommand.d.ts +10 -0
- package/dist-types/commands/UpdateSessionDataCommand.d.ts +100 -0
- package/dist-types/commands/index.d.ts +19 -0
- package/dist-types/index.d.ts +15 -1
- package/dist-types/models/models_0.d.ts +2454 -275
- package/dist-types/pagination/ListAIAgentVersionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAIAgentsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAIPromptVersionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAIPromptsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +171 -0
- package/dist-types/ts3.4/QConnect.d.ts +323 -0
- package/dist-types/ts3.4/QConnectClient.d.ts +116 -2
- package/dist-types/ts3.4/commands/CreateAIAgentCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/CreateAIAgentVersionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateAIPromptCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/CreateAIPromptVersionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteAIAgentCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/DeleteAIAgentVersionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteAIPromptCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/DeleteAIPromptVersionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetAIAgentCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetAIPromptCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListAIAgentVersionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListAIAgentsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListAIPromptVersionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListAIPromptsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/RemoveAssistantAIAgentCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateAIAgentCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateAIPromptCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateAssistantAIAgentCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateSessionDataCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +19 -0
- package/dist-types/ts3.4/models/models_0.d.ts +794 -103
- package/dist-types/ts3.4/pagination/ListAIAgentVersionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAIAgentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAIPromptVersionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAIPromptsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +228 -0
- package/package.json +19 -19
|
@@ -1,9 +1,84 @@
|
|
|
1
1
|
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
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, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
|
-
import { AccessDeniedException, ConflictException, PreconditionFailedException, RequestTimeoutException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
5
|
+
import { AccessDeniedException, AIAgentConfiguration, ConflictException, PreconditionFailedException, RequestTimeoutException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
6
6
|
import { QConnectServiceException as __BaseException } from "../models/QConnectServiceException";
|
|
7
|
+
export const se_CreateAIAgentCommand = async (input, context) => {
|
|
8
|
+
const b = rb(input, context);
|
|
9
|
+
const headers = {
|
|
10
|
+
"content-type": "application/json",
|
|
11
|
+
};
|
|
12
|
+
b.bp("/assistants/{assistantId}/aiagents");
|
|
13
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
14
|
+
let body;
|
|
15
|
+
body = JSON.stringify(take(input, {
|
|
16
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
17
|
+
configuration: (_) => se_AIAgentConfiguration(_, context),
|
|
18
|
+
description: [],
|
|
19
|
+
name: [],
|
|
20
|
+
tags: (_) => _json(_),
|
|
21
|
+
type: [],
|
|
22
|
+
visibilityStatus: [],
|
|
23
|
+
}));
|
|
24
|
+
b.m("POST").h(headers).b(body);
|
|
25
|
+
return b.build();
|
|
26
|
+
};
|
|
27
|
+
export const se_CreateAIAgentVersionCommand = async (input, context) => {
|
|
28
|
+
const b = rb(input, context);
|
|
29
|
+
const headers = {
|
|
30
|
+
"content-type": "application/json",
|
|
31
|
+
};
|
|
32
|
+
b.bp("/assistants/{assistantId}/aiagents/{aiAgentId}/versions");
|
|
33
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
34
|
+
b.p("aiAgentId", () => input.aiAgentId, "{aiAgentId}", false);
|
|
35
|
+
let body;
|
|
36
|
+
body = JSON.stringify(take(input, {
|
|
37
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
38
|
+
modifiedTime: (_) => _.getTime() / 1000,
|
|
39
|
+
}));
|
|
40
|
+
b.m("POST").h(headers).b(body);
|
|
41
|
+
return b.build();
|
|
42
|
+
};
|
|
43
|
+
export const se_CreateAIPromptCommand = async (input, context) => {
|
|
44
|
+
const b = rb(input, context);
|
|
45
|
+
const headers = {
|
|
46
|
+
"content-type": "application/json",
|
|
47
|
+
};
|
|
48
|
+
b.bp("/assistants/{assistantId}/aiprompts");
|
|
49
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
50
|
+
let body;
|
|
51
|
+
body = JSON.stringify(take(input, {
|
|
52
|
+
apiFormat: [],
|
|
53
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
54
|
+
description: [],
|
|
55
|
+
modelId: [],
|
|
56
|
+
name: [],
|
|
57
|
+
tags: (_) => _json(_),
|
|
58
|
+
templateConfiguration: (_) => _json(_),
|
|
59
|
+
templateType: [],
|
|
60
|
+
type: [],
|
|
61
|
+
visibilityStatus: [],
|
|
62
|
+
}));
|
|
63
|
+
b.m("POST").h(headers).b(body);
|
|
64
|
+
return b.build();
|
|
65
|
+
};
|
|
66
|
+
export const se_CreateAIPromptVersionCommand = async (input, context) => {
|
|
67
|
+
const b = rb(input, context);
|
|
68
|
+
const headers = {
|
|
69
|
+
"content-type": "application/json",
|
|
70
|
+
};
|
|
71
|
+
b.bp("/assistants/{assistantId}/aiprompts/{aiPromptId}/versions");
|
|
72
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
73
|
+
b.p("aiPromptId", () => input.aiPromptId, "{aiPromptId}", false);
|
|
74
|
+
let body;
|
|
75
|
+
body = JSON.stringify(take(input, {
|
|
76
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
77
|
+
modifiedTime: (_) => _.getTime() / 1000,
|
|
78
|
+
}));
|
|
79
|
+
b.m("POST").h(headers).b(body);
|
|
80
|
+
return b.build();
|
|
81
|
+
};
|
|
7
82
|
export const se_CreateAssistantCommand = async (input, context) => {
|
|
8
83
|
const b = rb(input, context);
|
|
9
84
|
const headers = {
|
|
@@ -93,6 +168,7 @@ export const se_CreateKnowledgeBaseCommand = async (input, context) => {
|
|
|
93
168
|
serverSideEncryptionConfiguration: (_) => _json(_),
|
|
94
169
|
sourceConfiguration: (_) => _json(_),
|
|
95
170
|
tags: (_) => _json(_),
|
|
171
|
+
vectorIngestionConfiguration: (_) => _json(_),
|
|
96
172
|
}));
|
|
97
173
|
b.m("POST").h(headers).b(body);
|
|
98
174
|
return b.build();
|
|
@@ -130,6 +206,7 @@ export const se_CreateSessionCommand = async (input, context) => {
|
|
|
130
206
|
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
131
207
|
let body;
|
|
132
208
|
body = JSON.stringify(take(input, {
|
|
209
|
+
aiAgentConfiguration: (_) => _json(_),
|
|
133
210
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
134
211
|
description: [],
|
|
135
212
|
name: [],
|
|
@@ -139,6 +216,48 @@ export const se_CreateSessionCommand = async (input, context) => {
|
|
|
139
216
|
b.m("POST").h(headers).b(body);
|
|
140
217
|
return b.build();
|
|
141
218
|
};
|
|
219
|
+
export const se_DeleteAIAgentCommand = async (input, context) => {
|
|
220
|
+
const b = rb(input, context);
|
|
221
|
+
const headers = {};
|
|
222
|
+
b.bp("/assistants/{assistantId}/aiagents/{aiAgentId}");
|
|
223
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
224
|
+
b.p("aiAgentId", () => input.aiAgentId, "{aiAgentId}", false);
|
|
225
|
+
let body;
|
|
226
|
+
b.m("DELETE").h(headers).b(body);
|
|
227
|
+
return b.build();
|
|
228
|
+
};
|
|
229
|
+
export const se_DeleteAIAgentVersionCommand = async (input, context) => {
|
|
230
|
+
const b = rb(input, context);
|
|
231
|
+
const headers = {};
|
|
232
|
+
b.bp("/assistants/{assistantId}/aiagents/{aiAgentId}/versions/{versionNumber}");
|
|
233
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
234
|
+
b.p("aiAgentId", () => input.aiAgentId, "{aiAgentId}", false);
|
|
235
|
+
b.p("versionNumber", () => input.versionNumber.toString(), "{versionNumber}", false);
|
|
236
|
+
let body;
|
|
237
|
+
b.m("DELETE").h(headers).b(body);
|
|
238
|
+
return b.build();
|
|
239
|
+
};
|
|
240
|
+
export const se_DeleteAIPromptCommand = async (input, context) => {
|
|
241
|
+
const b = rb(input, context);
|
|
242
|
+
const headers = {};
|
|
243
|
+
b.bp("/assistants/{assistantId}/aiprompts/{aiPromptId}");
|
|
244
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
245
|
+
b.p("aiPromptId", () => input.aiPromptId, "{aiPromptId}", false);
|
|
246
|
+
let body;
|
|
247
|
+
b.m("DELETE").h(headers).b(body);
|
|
248
|
+
return b.build();
|
|
249
|
+
};
|
|
250
|
+
export const se_DeleteAIPromptVersionCommand = async (input, context) => {
|
|
251
|
+
const b = rb(input, context);
|
|
252
|
+
const headers = {};
|
|
253
|
+
b.bp("/assistants/{assistantId}/aiprompts/{aiPromptId}/versions/{versionNumber}");
|
|
254
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
255
|
+
b.p("aiPromptId", () => input.aiPromptId, "{aiPromptId}", false);
|
|
256
|
+
b.p("versionNumber", () => input.versionNumber.toString(), "{versionNumber}", false);
|
|
257
|
+
let body;
|
|
258
|
+
b.m("DELETE").h(headers).b(body);
|
|
259
|
+
return b.build();
|
|
260
|
+
};
|
|
142
261
|
export const se_DeleteAssistantCommand = async (input, context) => {
|
|
143
262
|
const b = rb(input, context);
|
|
144
263
|
const headers = {};
|
|
@@ -208,6 +327,26 @@ export const se_DeleteQuickResponseCommand = async (input, context) => {
|
|
|
208
327
|
b.m("DELETE").h(headers).b(body);
|
|
209
328
|
return b.build();
|
|
210
329
|
};
|
|
330
|
+
export const se_GetAIAgentCommand = async (input, context) => {
|
|
331
|
+
const b = rb(input, context);
|
|
332
|
+
const headers = {};
|
|
333
|
+
b.bp("/assistants/{assistantId}/aiagents/{aiAgentId}");
|
|
334
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
335
|
+
b.p("aiAgentId", () => input.aiAgentId, "{aiAgentId}", false);
|
|
336
|
+
let body;
|
|
337
|
+
b.m("GET").h(headers).b(body);
|
|
338
|
+
return b.build();
|
|
339
|
+
};
|
|
340
|
+
export const se_GetAIPromptCommand = async (input, context) => {
|
|
341
|
+
const b = rb(input, context);
|
|
342
|
+
const headers = {};
|
|
343
|
+
b.bp("/assistants/{assistantId}/aiprompts/{aiPromptId}");
|
|
344
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
345
|
+
b.p("aiPromptId", () => input.aiPromptId, "{aiPromptId}", false);
|
|
346
|
+
let body;
|
|
347
|
+
b.m("GET").h(headers).b(body);
|
|
348
|
+
return b.build();
|
|
349
|
+
};
|
|
211
350
|
export const se_GetAssistantCommand = async (input, context) => {
|
|
212
351
|
const b = rb(input, context);
|
|
213
352
|
const headers = {};
|
|
@@ -311,6 +450,64 @@ export const se_GetSessionCommand = async (input, context) => {
|
|
|
311
450
|
b.m("GET").h(headers).b(body);
|
|
312
451
|
return b.build();
|
|
313
452
|
};
|
|
453
|
+
export const se_ListAIAgentsCommand = async (input, context) => {
|
|
454
|
+
const b = rb(input, context);
|
|
455
|
+
const headers = {};
|
|
456
|
+
b.bp("/assistants/{assistantId}/aiagents");
|
|
457
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
458
|
+
const query = map({
|
|
459
|
+
[_nT]: [, input[_nT]],
|
|
460
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
461
|
+
[_o]: [, input[_o]],
|
|
462
|
+
});
|
|
463
|
+
let body;
|
|
464
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
465
|
+
return b.build();
|
|
466
|
+
};
|
|
467
|
+
export const se_ListAIAgentVersionsCommand = async (input, context) => {
|
|
468
|
+
const b = rb(input, context);
|
|
469
|
+
const headers = {};
|
|
470
|
+
b.bp("/assistants/{assistantId}/aiagents/{aiAgentId}/versions");
|
|
471
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
472
|
+
b.p("aiAgentId", () => input.aiAgentId, "{aiAgentId}", false);
|
|
473
|
+
const query = map({
|
|
474
|
+
[_nT]: [, input[_nT]],
|
|
475
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
476
|
+
[_o]: [, input[_o]],
|
|
477
|
+
});
|
|
478
|
+
let body;
|
|
479
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
480
|
+
return b.build();
|
|
481
|
+
};
|
|
482
|
+
export const se_ListAIPromptsCommand = async (input, context) => {
|
|
483
|
+
const b = rb(input, context);
|
|
484
|
+
const headers = {};
|
|
485
|
+
b.bp("/assistants/{assistantId}/aiprompts");
|
|
486
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
487
|
+
const query = map({
|
|
488
|
+
[_nT]: [, input[_nT]],
|
|
489
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
490
|
+
[_o]: [, input[_o]],
|
|
491
|
+
});
|
|
492
|
+
let body;
|
|
493
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
494
|
+
return b.build();
|
|
495
|
+
};
|
|
496
|
+
export const se_ListAIPromptVersionsCommand = async (input, context) => {
|
|
497
|
+
const b = rb(input, context);
|
|
498
|
+
const headers = {};
|
|
499
|
+
b.bp("/assistants/{assistantId}/aiprompts/{aiPromptId}/versions");
|
|
500
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
501
|
+
b.p("aiPromptId", () => input.aiPromptId, "{aiPromptId}", false);
|
|
502
|
+
const query = map({
|
|
503
|
+
[_nT]: [, input[_nT]],
|
|
504
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
505
|
+
[_o]: [, input[_o]],
|
|
506
|
+
});
|
|
507
|
+
let body;
|
|
508
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
509
|
+
return b.build();
|
|
510
|
+
};
|
|
314
511
|
export const se_ListAssistantAssociationsCommand = async (input, context) => {
|
|
315
512
|
const b = rb(input, context);
|
|
316
513
|
const headers = {};
|
|
@@ -452,13 +649,27 @@ export const se_QueryAssistantCommand = async (input, context) => {
|
|
|
452
649
|
body = JSON.stringify(take(input, {
|
|
453
650
|
maxResults: [],
|
|
454
651
|
nextToken: [],
|
|
652
|
+
overrideKnowledgeBaseSearchType: [],
|
|
455
653
|
queryCondition: (_) => _json(_),
|
|
654
|
+
queryInputData: (_) => _json(_),
|
|
456
655
|
queryText: [],
|
|
457
656
|
sessionId: [],
|
|
458
657
|
}));
|
|
459
658
|
b.m("POST").h(headers).b(body);
|
|
460
659
|
return b.build();
|
|
461
660
|
};
|
|
661
|
+
export const se_RemoveAssistantAIAgentCommand = async (input, context) => {
|
|
662
|
+
const b = rb(input, context);
|
|
663
|
+
const headers = {};
|
|
664
|
+
b.bp("/assistants/{assistantId}/aiagentConfiguration");
|
|
665
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
666
|
+
const query = map({
|
|
667
|
+
[_aAT]: [, __expectNonNull(input[_aAT], `aiAgentType`)],
|
|
668
|
+
});
|
|
669
|
+
let body;
|
|
670
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
671
|
+
return b.build();
|
|
672
|
+
};
|
|
462
673
|
export const se_RemoveKnowledgeBaseTemplateUriCommand = async (input, context) => {
|
|
463
674
|
const b = rb(input, context);
|
|
464
675
|
const headers = {};
|
|
@@ -582,6 +793,57 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
582
793
|
b.m("DELETE").h(headers).q(query).b(body);
|
|
583
794
|
return b.build();
|
|
584
795
|
};
|
|
796
|
+
export const se_UpdateAIAgentCommand = async (input, context) => {
|
|
797
|
+
const b = rb(input, context);
|
|
798
|
+
const headers = {
|
|
799
|
+
"content-type": "application/json",
|
|
800
|
+
};
|
|
801
|
+
b.bp("/assistants/{assistantId}/aiagents/{aiAgentId}");
|
|
802
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
803
|
+
b.p("aiAgentId", () => input.aiAgentId, "{aiAgentId}", false);
|
|
804
|
+
let body;
|
|
805
|
+
body = JSON.stringify(take(input, {
|
|
806
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
807
|
+
configuration: (_) => se_AIAgentConfiguration(_, context),
|
|
808
|
+
description: [],
|
|
809
|
+
visibilityStatus: [],
|
|
810
|
+
}));
|
|
811
|
+
b.m("POST").h(headers).b(body);
|
|
812
|
+
return b.build();
|
|
813
|
+
};
|
|
814
|
+
export const se_UpdateAIPromptCommand = async (input, context) => {
|
|
815
|
+
const b = rb(input, context);
|
|
816
|
+
const headers = {
|
|
817
|
+
"content-type": "application/json",
|
|
818
|
+
};
|
|
819
|
+
b.bp("/assistants/{assistantId}/aiprompts/{aiPromptId}");
|
|
820
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
821
|
+
b.p("aiPromptId", () => input.aiPromptId, "{aiPromptId}", false);
|
|
822
|
+
let body;
|
|
823
|
+
body = JSON.stringify(take(input, {
|
|
824
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
825
|
+
description: [],
|
|
826
|
+
templateConfiguration: (_) => _json(_),
|
|
827
|
+
visibilityStatus: [],
|
|
828
|
+
}));
|
|
829
|
+
b.m("POST").h(headers).b(body);
|
|
830
|
+
return b.build();
|
|
831
|
+
};
|
|
832
|
+
export const se_UpdateAssistantAIAgentCommand = async (input, context) => {
|
|
833
|
+
const b = rb(input, context);
|
|
834
|
+
const headers = {
|
|
835
|
+
"content-type": "application/json",
|
|
836
|
+
};
|
|
837
|
+
b.bp("/assistants/{assistantId}/aiagentConfiguration");
|
|
838
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
839
|
+
let body;
|
|
840
|
+
body = JSON.stringify(take(input, {
|
|
841
|
+
aiAgentType: [],
|
|
842
|
+
configuration: (_) => _json(_),
|
|
843
|
+
}));
|
|
844
|
+
b.m("POST").h(headers).b(body);
|
|
845
|
+
return b.build();
|
|
846
|
+
};
|
|
585
847
|
export const se_UpdateContentCommand = async (input, context) => {
|
|
586
848
|
const b = rb(input, context);
|
|
587
849
|
const headers = {
|
|
@@ -652,12 +914,87 @@ export const se_UpdateSessionCommand = async (input, context) => {
|
|
|
652
914
|
b.p("sessionId", () => input.sessionId, "{sessionId}", false);
|
|
653
915
|
let body;
|
|
654
916
|
body = JSON.stringify(take(input, {
|
|
917
|
+
aiAgentConfiguration: (_) => _json(_),
|
|
655
918
|
description: [],
|
|
656
919
|
tagFilter: (_) => _json(_),
|
|
657
920
|
}));
|
|
658
921
|
b.m("POST").h(headers).b(body);
|
|
659
922
|
return b.build();
|
|
660
923
|
};
|
|
924
|
+
export const se_UpdateSessionDataCommand = async (input, context) => {
|
|
925
|
+
const b = rb(input, context);
|
|
926
|
+
const headers = {
|
|
927
|
+
"content-type": "application/json",
|
|
928
|
+
};
|
|
929
|
+
b.bp("/assistants/{assistantId}/sessions/{sessionId}/data");
|
|
930
|
+
b.p("assistantId", () => input.assistantId, "{assistantId}", false);
|
|
931
|
+
b.p("sessionId", () => input.sessionId, "{sessionId}", false);
|
|
932
|
+
let body;
|
|
933
|
+
body = JSON.stringify(take(input, {
|
|
934
|
+
data: (_) => _json(_),
|
|
935
|
+
namespace: [],
|
|
936
|
+
}));
|
|
937
|
+
b.m("PATCH").h(headers).b(body);
|
|
938
|
+
return b.build();
|
|
939
|
+
};
|
|
940
|
+
export const de_CreateAIAgentCommand = async (output, context) => {
|
|
941
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
942
|
+
return de_CommandError(output, context);
|
|
943
|
+
}
|
|
944
|
+
const contents = map({
|
|
945
|
+
$metadata: deserializeMetadata(output),
|
|
946
|
+
});
|
|
947
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
948
|
+
const doc = take(data, {
|
|
949
|
+
aiAgent: (_) => de_AIAgentData(_, context),
|
|
950
|
+
});
|
|
951
|
+
Object.assign(contents, doc);
|
|
952
|
+
return contents;
|
|
953
|
+
};
|
|
954
|
+
export const de_CreateAIAgentVersionCommand = async (output, context) => {
|
|
955
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
956
|
+
return de_CommandError(output, context);
|
|
957
|
+
}
|
|
958
|
+
const contents = map({
|
|
959
|
+
$metadata: deserializeMetadata(output),
|
|
960
|
+
});
|
|
961
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
962
|
+
const doc = take(data, {
|
|
963
|
+
aiAgent: (_) => de_AIAgentData(_, context),
|
|
964
|
+
versionNumber: __expectLong,
|
|
965
|
+
});
|
|
966
|
+
Object.assign(contents, doc);
|
|
967
|
+
return contents;
|
|
968
|
+
};
|
|
969
|
+
export const de_CreateAIPromptCommand = async (output, context) => {
|
|
970
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
971
|
+
return de_CommandError(output, context);
|
|
972
|
+
}
|
|
973
|
+
const contents = map({
|
|
974
|
+
$metadata: deserializeMetadata(output),
|
|
975
|
+
});
|
|
976
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
977
|
+
const doc = take(data, {
|
|
978
|
+
aiPrompt: (_) => de_AIPromptData(_, context),
|
|
979
|
+
});
|
|
980
|
+
Object.assign(contents, doc);
|
|
981
|
+
return contents;
|
|
982
|
+
};
|
|
983
|
+
export const de_CreateAIPromptVersionCommand = async (output, context) => {
|
|
984
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
985
|
+
return de_CommandError(output, context);
|
|
986
|
+
}
|
|
987
|
+
const contents = map({
|
|
988
|
+
$metadata: deserializeMetadata(output),
|
|
989
|
+
});
|
|
990
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
991
|
+
const doc = take(data, {
|
|
992
|
+
aiPrompt: (_) => de_AIPromptData(_, context),
|
|
993
|
+
versionNumber: __expectLong,
|
|
994
|
+
});
|
|
995
|
+
Object.assign(contents, doc);
|
|
996
|
+
return contents;
|
|
997
|
+
};
|
|
661
998
|
export const de_CreateAssistantCommand = async (output, context) => {
|
|
662
999
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
663
1000
|
return de_CommandError(output, context);
|
|
@@ -756,6 +1093,46 @@ export const de_CreateSessionCommand = async (output, context) => {
|
|
|
756
1093
|
Object.assign(contents, doc);
|
|
757
1094
|
return contents;
|
|
758
1095
|
};
|
|
1096
|
+
export const de_DeleteAIAgentCommand = async (output, context) => {
|
|
1097
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1098
|
+
return de_CommandError(output, context);
|
|
1099
|
+
}
|
|
1100
|
+
const contents = map({
|
|
1101
|
+
$metadata: deserializeMetadata(output),
|
|
1102
|
+
});
|
|
1103
|
+
await collectBody(output.body, context);
|
|
1104
|
+
return contents;
|
|
1105
|
+
};
|
|
1106
|
+
export const de_DeleteAIAgentVersionCommand = async (output, context) => {
|
|
1107
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1108
|
+
return de_CommandError(output, context);
|
|
1109
|
+
}
|
|
1110
|
+
const contents = map({
|
|
1111
|
+
$metadata: deserializeMetadata(output),
|
|
1112
|
+
});
|
|
1113
|
+
await collectBody(output.body, context);
|
|
1114
|
+
return contents;
|
|
1115
|
+
};
|
|
1116
|
+
export const de_DeleteAIPromptCommand = async (output, context) => {
|
|
1117
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1118
|
+
return de_CommandError(output, context);
|
|
1119
|
+
}
|
|
1120
|
+
const contents = map({
|
|
1121
|
+
$metadata: deserializeMetadata(output),
|
|
1122
|
+
});
|
|
1123
|
+
await collectBody(output.body, context);
|
|
1124
|
+
return contents;
|
|
1125
|
+
};
|
|
1126
|
+
export const de_DeleteAIPromptVersionCommand = async (output, context) => {
|
|
1127
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1128
|
+
return de_CommandError(output, context);
|
|
1129
|
+
}
|
|
1130
|
+
const contents = map({
|
|
1131
|
+
$metadata: deserializeMetadata(output),
|
|
1132
|
+
});
|
|
1133
|
+
await collectBody(output.body, context);
|
|
1134
|
+
return contents;
|
|
1135
|
+
};
|
|
759
1136
|
export const de_DeleteAssistantCommand = async (output, context) => {
|
|
760
1137
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
761
1138
|
return de_CommandError(output, context);
|
|
@@ -826,6 +1203,36 @@ export const de_DeleteQuickResponseCommand = async (output, context) => {
|
|
|
826
1203
|
await collectBody(output.body, context);
|
|
827
1204
|
return contents;
|
|
828
1205
|
};
|
|
1206
|
+
export const de_GetAIAgentCommand = async (output, context) => {
|
|
1207
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1208
|
+
return de_CommandError(output, context);
|
|
1209
|
+
}
|
|
1210
|
+
const contents = map({
|
|
1211
|
+
$metadata: deserializeMetadata(output),
|
|
1212
|
+
});
|
|
1213
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1214
|
+
const doc = take(data, {
|
|
1215
|
+
aiAgent: (_) => de_AIAgentData(_, context),
|
|
1216
|
+
versionNumber: __expectLong,
|
|
1217
|
+
});
|
|
1218
|
+
Object.assign(contents, doc);
|
|
1219
|
+
return contents;
|
|
1220
|
+
};
|
|
1221
|
+
export const de_GetAIPromptCommand = async (output, context) => {
|
|
1222
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1223
|
+
return de_CommandError(output, context);
|
|
1224
|
+
}
|
|
1225
|
+
const contents = map({
|
|
1226
|
+
$metadata: deserializeMetadata(output),
|
|
1227
|
+
});
|
|
1228
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1229
|
+
const doc = take(data, {
|
|
1230
|
+
aiPrompt: (_) => de_AIPromptData(_, context),
|
|
1231
|
+
versionNumber: __expectLong,
|
|
1232
|
+
});
|
|
1233
|
+
Object.assign(contents, doc);
|
|
1234
|
+
return contents;
|
|
1235
|
+
};
|
|
829
1236
|
export const de_GetAssistantCommand = async (output, context) => {
|
|
830
1237
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
831
1238
|
return de_CommandError(output, context);
|
|
@@ -967,6 +1374,66 @@ export const de_GetSessionCommand = async (output, context) => {
|
|
|
967
1374
|
Object.assign(contents, doc);
|
|
968
1375
|
return contents;
|
|
969
1376
|
};
|
|
1377
|
+
export const de_ListAIAgentsCommand = async (output, context) => {
|
|
1378
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1379
|
+
return de_CommandError(output, context);
|
|
1380
|
+
}
|
|
1381
|
+
const contents = map({
|
|
1382
|
+
$metadata: deserializeMetadata(output),
|
|
1383
|
+
});
|
|
1384
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1385
|
+
const doc = take(data, {
|
|
1386
|
+
aiAgentSummaries: (_) => de_AIAgentSummaryList(_, context),
|
|
1387
|
+
nextToken: __expectString,
|
|
1388
|
+
});
|
|
1389
|
+
Object.assign(contents, doc);
|
|
1390
|
+
return contents;
|
|
1391
|
+
};
|
|
1392
|
+
export const de_ListAIAgentVersionsCommand = async (output, context) => {
|
|
1393
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1394
|
+
return de_CommandError(output, context);
|
|
1395
|
+
}
|
|
1396
|
+
const contents = map({
|
|
1397
|
+
$metadata: deserializeMetadata(output),
|
|
1398
|
+
});
|
|
1399
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1400
|
+
const doc = take(data, {
|
|
1401
|
+
aiAgentVersionSummaries: (_) => de_AIAgentVersionSummariesList(_, context),
|
|
1402
|
+
nextToken: __expectString,
|
|
1403
|
+
});
|
|
1404
|
+
Object.assign(contents, doc);
|
|
1405
|
+
return contents;
|
|
1406
|
+
};
|
|
1407
|
+
export const de_ListAIPromptsCommand = async (output, context) => {
|
|
1408
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1409
|
+
return de_CommandError(output, context);
|
|
1410
|
+
}
|
|
1411
|
+
const contents = map({
|
|
1412
|
+
$metadata: deserializeMetadata(output),
|
|
1413
|
+
});
|
|
1414
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1415
|
+
const doc = take(data, {
|
|
1416
|
+
aiPromptSummaries: (_) => de_AIPromptSummaryList(_, context),
|
|
1417
|
+
nextToken: __expectString,
|
|
1418
|
+
});
|
|
1419
|
+
Object.assign(contents, doc);
|
|
1420
|
+
return contents;
|
|
1421
|
+
};
|
|
1422
|
+
export const de_ListAIPromptVersionsCommand = async (output, context) => {
|
|
1423
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1424
|
+
return de_CommandError(output, context);
|
|
1425
|
+
}
|
|
1426
|
+
const contents = map({
|
|
1427
|
+
$metadata: deserializeMetadata(output),
|
|
1428
|
+
});
|
|
1429
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1430
|
+
const doc = take(data, {
|
|
1431
|
+
aiPromptVersionSummaries: (_) => de_AIPromptVersionSummariesList(_, context),
|
|
1432
|
+
nextToken: __expectString,
|
|
1433
|
+
});
|
|
1434
|
+
Object.assign(contents, doc);
|
|
1435
|
+
return contents;
|
|
1436
|
+
};
|
|
970
1437
|
export const de_ListAssistantAssociationsCommand = async (output, context) => {
|
|
971
1438
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
972
1439
|
return de_CommandError(output, context);
|
|
@@ -1134,6 +1601,16 @@ export const de_QueryAssistantCommand = async (output, context) => {
|
|
|
1134
1601
|
Object.assign(contents, doc);
|
|
1135
1602
|
return contents;
|
|
1136
1603
|
};
|
|
1604
|
+
export const de_RemoveAssistantAIAgentCommand = async (output, context) => {
|
|
1605
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1606
|
+
return de_CommandError(output, context);
|
|
1607
|
+
}
|
|
1608
|
+
const contents = map({
|
|
1609
|
+
$metadata: deserializeMetadata(output),
|
|
1610
|
+
});
|
|
1611
|
+
await collectBody(output.body, context);
|
|
1612
|
+
return contents;
|
|
1613
|
+
};
|
|
1137
1614
|
export const de_RemoveKnowledgeBaseTemplateUriCommand = async (output, context) => {
|
|
1138
1615
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1139
1616
|
return de_CommandError(output, context);
|
|
@@ -1240,6 +1717,48 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1240
1717
|
await collectBody(output.body, context);
|
|
1241
1718
|
return contents;
|
|
1242
1719
|
};
|
|
1720
|
+
export const de_UpdateAIAgentCommand = async (output, context) => {
|
|
1721
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1722
|
+
return de_CommandError(output, context);
|
|
1723
|
+
}
|
|
1724
|
+
const contents = map({
|
|
1725
|
+
$metadata: deserializeMetadata(output),
|
|
1726
|
+
});
|
|
1727
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1728
|
+
const doc = take(data, {
|
|
1729
|
+
aiAgent: (_) => de_AIAgentData(_, context),
|
|
1730
|
+
});
|
|
1731
|
+
Object.assign(contents, doc);
|
|
1732
|
+
return contents;
|
|
1733
|
+
};
|
|
1734
|
+
export const de_UpdateAIPromptCommand = async (output, context) => {
|
|
1735
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1736
|
+
return de_CommandError(output, context);
|
|
1737
|
+
}
|
|
1738
|
+
const contents = map({
|
|
1739
|
+
$metadata: deserializeMetadata(output),
|
|
1740
|
+
});
|
|
1741
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1742
|
+
const doc = take(data, {
|
|
1743
|
+
aiPrompt: (_) => de_AIPromptData(_, context),
|
|
1744
|
+
});
|
|
1745
|
+
Object.assign(contents, doc);
|
|
1746
|
+
return contents;
|
|
1747
|
+
};
|
|
1748
|
+
export const de_UpdateAssistantAIAgentCommand = async (output, context) => {
|
|
1749
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1750
|
+
return de_CommandError(output, context);
|
|
1751
|
+
}
|
|
1752
|
+
const contents = map({
|
|
1753
|
+
$metadata: deserializeMetadata(output),
|
|
1754
|
+
});
|
|
1755
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1756
|
+
const doc = take(data, {
|
|
1757
|
+
assistant: _json,
|
|
1758
|
+
});
|
|
1759
|
+
Object.assign(contents, doc);
|
|
1760
|
+
return contents;
|
|
1761
|
+
};
|
|
1243
1762
|
export const de_UpdateContentCommand = async (output, context) => {
|
|
1244
1763
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1245
1764
|
return de_CommandError(output, context);
|
|
@@ -1296,6 +1815,23 @@ export const de_UpdateSessionCommand = async (output, context) => {
|
|
|
1296
1815
|
Object.assign(contents, doc);
|
|
1297
1816
|
return contents;
|
|
1298
1817
|
};
|
|
1818
|
+
export const de_UpdateSessionDataCommand = async (output, context) => {
|
|
1819
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1820
|
+
return de_CommandError(output, context);
|
|
1821
|
+
}
|
|
1822
|
+
const contents = map({
|
|
1823
|
+
$metadata: deserializeMetadata(output),
|
|
1824
|
+
});
|
|
1825
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1826
|
+
const doc = take(data, {
|
|
1827
|
+
data: _json,
|
|
1828
|
+
namespace: __expectString,
|
|
1829
|
+
sessionArn: __expectString,
|
|
1830
|
+
sessionId: __expectString,
|
|
1831
|
+
});
|
|
1832
|
+
Object.assign(contents, doc);
|
|
1833
|
+
return contents;
|
|
1834
|
+
};
|
|
1299
1835
|
const de_CommandError = async (output, context) => {
|
|
1300
1836
|
const parsedOutput = {
|
|
1301
1837
|
...output,
|
|
@@ -1309,18 +1845,18 @@ const de_CommandError = async (output, context) => {
|
|
|
1309
1845
|
case "ConflictException":
|
|
1310
1846
|
case "com.amazonaws.qconnect#ConflictException":
|
|
1311
1847
|
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1312
|
-
case "ServiceQuotaExceededException":
|
|
1313
|
-
case "com.amazonaws.qconnect#ServiceQuotaExceededException":
|
|
1314
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1315
|
-
case "ValidationException":
|
|
1316
|
-
case "com.amazonaws.qconnect#ValidationException":
|
|
1317
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1318
1848
|
case "ResourceNotFoundException":
|
|
1319
1849
|
case "com.amazonaws.qconnect#ResourceNotFoundException":
|
|
1320
1850
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1851
|
+
case "ServiceQuotaExceededException":
|
|
1852
|
+
case "com.amazonaws.qconnect#ServiceQuotaExceededException":
|
|
1853
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1321
1854
|
case "ThrottlingException":
|
|
1322
1855
|
case "com.amazonaws.qconnect#ThrottlingException":
|
|
1323
1856
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1857
|
+
case "ValidationException":
|
|
1858
|
+
case "com.amazonaws.qconnect#ValidationException":
|
|
1859
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1324
1860
|
case "RequestTimeoutException":
|
|
1325
1861
|
case "com.amazonaws.qconnect#RequestTimeoutException":
|
|
1326
1862
|
throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
|
|
@@ -1459,6 +1995,143 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
1459
1995
|
});
|
|
1460
1996
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1461
1997
|
};
|
|
1998
|
+
const se_AIAgentConfiguration = (input, context) => {
|
|
1999
|
+
return AIAgentConfiguration.visit(input, {
|
|
2000
|
+
answerRecommendationAIAgentConfiguration: (value) => ({ answerRecommendationAIAgentConfiguration: _json(value) }),
|
|
2001
|
+
manualSearchAIAgentConfiguration: (value) => ({ manualSearchAIAgentConfiguration: _json(value) }),
|
|
2002
|
+
_: (name, value) => ({ name: value }),
|
|
2003
|
+
});
|
|
2004
|
+
};
|
|
2005
|
+
const de_AIAgentConfiguration = (output, context) => {
|
|
2006
|
+
if (output.answerRecommendationAIAgentConfiguration != null) {
|
|
2007
|
+
return {
|
|
2008
|
+
answerRecommendationAIAgentConfiguration: _json(output.answerRecommendationAIAgentConfiguration),
|
|
2009
|
+
};
|
|
2010
|
+
}
|
|
2011
|
+
if (output.manualSearchAIAgentConfiguration != null) {
|
|
2012
|
+
return {
|
|
2013
|
+
manualSearchAIAgentConfiguration: _json(output.manualSearchAIAgentConfiguration),
|
|
2014
|
+
};
|
|
2015
|
+
}
|
|
2016
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2017
|
+
};
|
|
2018
|
+
const de_AIAgentData = (output, context) => {
|
|
2019
|
+
return take(output, {
|
|
2020
|
+
aiAgentArn: __expectString,
|
|
2021
|
+
aiAgentId: __expectString,
|
|
2022
|
+
assistantArn: __expectString,
|
|
2023
|
+
assistantId: __expectString,
|
|
2024
|
+
configuration: (_) => de_AIAgentConfiguration(__expectUnion(_), context),
|
|
2025
|
+
description: __expectString,
|
|
2026
|
+
modifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2027
|
+
name: __expectString,
|
|
2028
|
+
origin: __expectString,
|
|
2029
|
+
status: __expectString,
|
|
2030
|
+
tags: _json,
|
|
2031
|
+
type: __expectString,
|
|
2032
|
+
visibilityStatus: __expectString,
|
|
2033
|
+
});
|
|
2034
|
+
};
|
|
2035
|
+
const de_AIAgentSummary = (output, context) => {
|
|
2036
|
+
return take(output, {
|
|
2037
|
+
aiAgentArn: __expectString,
|
|
2038
|
+
aiAgentId: __expectString,
|
|
2039
|
+
assistantArn: __expectString,
|
|
2040
|
+
assistantId: __expectString,
|
|
2041
|
+
configuration: (_) => de_AIAgentConfiguration(__expectUnion(_), context),
|
|
2042
|
+
description: __expectString,
|
|
2043
|
+
modifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2044
|
+
name: __expectString,
|
|
2045
|
+
origin: __expectString,
|
|
2046
|
+
status: __expectString,
|
|
2047
|
+
tags: _json,
|
|
2048
|
+
type: __expectString,
|
|
2049
|
+
visibilityStatus: __expectString,
|
|
2050
|
+
});
|
|
2051
|
+
};
|
|
2052
|
+
const de_AIAgentSummaryList = (output, context) => {
|
|
2053
|
+
const retVal = (output || [])
|
|
2054
|
+
.filter((e) => e != null)
|
|
2055
|
+
.map((entry) => {
|
|
2056
|
+
return de_AIAgentSummary(entry, context);
|
|
2057
|
+
});
|
|
2058
|
+
return retVal;
|
|
2059
|
+
};
|
|
2060
|
+
const de_AIAgentVersionSummariesList = (output, context) => {
|
|
2061
|
+
const retVal = (output || [])
|
|
2062
|
+
.filter((e) => e != null)
|
|
2063
|
+
.map((entry) => {
|
|
2064
|
+
return de_AIAgentVersionSummary(entry, context);
|
|
2065
|
+
});
|
|
2066
|
+
return retVal;
|
|
2067
|
+
};
|
|
2068
|
+
const de_AIAgentVersionSummary = (output, context) => {
|
|
2069
|
+
return take(output, {
|
|
2070
|
+
aiAgentSummary: (_) => de_AIAgentSummary(_, context),
|
|
2071
|
+
versionNumber: __expectLong,
|
|
2072
|
+
});
|
|
2073
|
+
};
|
|
2074
|
+
const de_AIPromptData = (output, context) => {
|
|
2075
|
+
return take(output, {
|
|
2076
|
+
aiPromptArn: __expectString,
|
|
2077
|
+
aiPromptId: __expectString,
|
|
2078
|
+
apiFormat: __expectString,
|
|
2079
|
+
assistantArn: __expectString,
|
|
2080
|
+
assistantId: __expectString,
|
|
2081
|
+
description: __expectString,
|
|
2082
|
+
modelId: __expectString,
|
|
2083
|
+
modifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2084
|
+
name: __expectString,
|
|
2085
|
+
origin: __expectString,
|
|
2086
|
+
status: __expectString,
|
|
2087
|
+
tags: _json,
|
|
2088
|
+
templateConfiguration: (_) => _json(__expectUnion(_)),
|
|
2089
|
+
templateType: __expectString,
|
|
2090
|
+
type: __expectString,
|
|
2091
|
+
visibilityStatus: __expectString,
|
|
2092
|
+
});
|
|
2093
|
+
};
|
|
2094
|
+
const de_AIPromptSummary = (output, context) => {
|
|
2095
|
+
return take(output, {
|
|
2096
|
+
aiPromptArn: __expectString,
|
|
2097
|
+
aiPromptId: __expectString,
|
|
2098
|
+
apiFormat: __expectString,
|
|
2099
|
+
assistantArn: __expectString,
|
|
2100
|
+
assistantId: __expectString,
|
|
2101
|
+
description: __expectString,
|
|
2102
|
+
modelId: __expectString,
|
|
2103
|
+
modifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2104
|
+
name: __expectString,
|
|
2105
|
+
origin: __expectString,
|
|
2106
|
+
status: __expectString,
|
|
2107
|
+
tags: _json,
|
|
2108
|
+
templateType: __expectString,
|
|
2109
|
+
type: __expectString,
|
|
2110
|
+
visibilityStatus: __expectString,
|
|
2111
|
+
});
|
|
2112
|
+
};
|
|
2113
|
+
const de_AIPromptSummaryList = (output, context) => {
|
|
2114
|
+
const retVal = (output || [])
|
|
2115
|
+
.filter((e) => e != null)
|
|
2116
|
+
.map((entry) => {
|
|
2117
|
+
return de_AIPromptSummary(entry, context);
|
|
2118
|
+
});
|
|
2119
|
+
return retVal;
|
|
2120
|
+
};
|
|
2121
|
+
const de_AIPromptVersionSummariesList = (output, context) => {
|
|
2122
|
+
const retVal = (output || [])
|
|
2123
|
+
.filter((e) => e != null)
|
|
2124
|
+
.map((entry) => {
|
|
2125
|
+
return de_AIPromptVersionSummary(entry, context);
|
|
2126
|
+
});
|
|
2127
|
+
return retVal;
|
|
2128
|
+
};
|
|
2129
|
+
const de_AIPromptVersionSummary = (output, context) => {
|
|
2130
|
+
return take(output, {
|
|
2131
|
+
aiPromptSummary: (_) => de_AIPromptSummary(_, context),
|
|
2132
|
+
versionNumber: __expectLong,
|
|
2133
|
+
});
|
|
2134
|
+
};
|
|
1462
2135
|
const de_ContentData = (output, context) => {
|
|
1463
2136
|
return take(output, {
|
|
1464
2137
|
contentArn: __expectString,
|
|
@@ -1494,6 +2167,11 @@ const de_DataDetails = (output, context) => {
|
|
|
1494
2167
|
generativeData: de_GenerativeDataDetails(output.generativeData, context),
|
|
1495
2168
|
};
|
|
1496
2169
|
}
|
|
2170
|
+
if (output.intentDetectedData != null) {
|
|
2171
|
+
return {
|
|
2172
|
+
intentDetectedData: _json(output.intentDetectedData),
|
|
2173
|
+
};
|
|
2174
|
+
}
|
|
1497
2175
|
if (output.sourceContentData != null) {
|
|
1498
2176
|
return {
|
|
1499
2177
|
sourceContentData: de_SourceContentDataDetails(output.sourceContentData, context),
|
|
@@ -1564,6 +2242,8 @@ const de_ImportJobSummary = (output, context) => {
|
|
|
1564
2242
|
const de_KnowledgeBaseData = (output, context) => {
|
|
1565
2243
|
return take(output, {
|
|
1566
2244
|
description: __expectString,
|
|
2245
|
+
ingestionFailureReasons: _json,
|
|
2246
|
+
ingestionStatus: __expectString,
|
|
1567
2247
|
knowledgeBaseArn: __expectString,
|
|
1568
2248
|
knowledgeBaseId: __expectString,
|
|
1569
2249
|
knowledgeBaseType: __expectString,
|
|
@@ -1574,6 +2254,7 @@ const de_KnowledgeBaseData = (output, context) => {
|
|
|
1574
2254
|
sourceConfiguration: (_) => _json(__expectUnion(_)),
|
|
1575
2255
|
status: __expectString,
|
|
1576
2256
|
tags: _json,
|
|
2257
|
+
vectorIngestionConfiguration: _json,
|
|
1577
2258
|
});
|
|
1578
2259
|
};
|
|
1579
2260
|
const de_QueryResultsList = (output, context) => {
|
|
@@ -1699,6 +2380,7 @@ const de_ResultData = (output, context) => {
|
|
|
1699
2380
|
};
|
|
1700
2381
|
const de_SourceContentDataDetails = (output, context) => {
|
|
1701
2382
|
return take(output, {
|
|
2383
|
+
citationSpan: _json,
|
|
1702
2384
|
id: __expectString,
|
|
1703
2385
|
rankingData: (_) => de_RankingData(_, context),
|
|
1704
2386
|
textData: _json,
|
|
@@ -1712,7 +2394,9 @@ const deserializeMetadata = (output) => ({
|
|
|
1712
2394
|
cfId: output.headers["x-amz-cf-id"],
|
|
1713
2395
|
});
|
|
1714
2396
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2397
|
+
const _aAT = "aiAgentType";
|
|
1715
2398
|
const _mR = "maxResults";
|
|
1716
2399
|
const _nT = "nextToken";
|
|
2400
|
+
const _o = "origin";
|
|
1717
2401
|
const _tK = "tagKeys";
|
|
1718
2402
|
const _wTS = "waitTimeSeconds";
|