@aws-sdk/client-qconnect 3.461.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/LICENSE +201 -0
- package/README.md +545 -0
- package/dist-cjs/QConnect.js +93 -0
- package/dist-cjs/QConnectClient.js +43 -0
- package/dist-cjs/commands/CreateAssistantAssociationCommand.js +51 -0
- package/dist-cjs/commands/CreateAssistantCommand.js +51 -0
- package/dist-cjs/commands/CreateContentCommand.js +52 -0
- package/dist-cjs/commands/CreateKnowledgeBaseCommand.js +51 -0
- package/dist-cjs/commands/CreateQuickResponseCommand.js +52 -0
- package/dist-cjs/commands/CreateSessionCommand.js +51 -0
- package/dist-cjs/commands/DeleteAssistantAssociationCommand.js +51 -0
- package/dist-cjs/commands/DeleteAssistantCommand.js +51 -0
- package/dist-cjs/commands/DeleteContentCommand.js +51 -0
- package/dist-cjs/commands/DeleteImportJobCommand.js +51 -0
- package/dist-cjs/commands/DeleteKnowledgeBaseCommand.js +51 -0
- package/dist-cjs/commands/DeleteQuickResponseCommand.js +51 -0
- package/dist-cjs/commands/GetAssistantAssociationCommand.js +51 -0
- package/dist-cjs/commands/GetAssistantCommand.js +51 -0
- package/dist-cjs/commands/GetContentCommand.js +52 -0
- package/dist-cjs/commands/GetContentSummaryCommand.js +51 -0
- package/dist-cjs/commands/GetImportJobCommand.js +52 -0
- package/dist-cjs/commands/GetKnowledgeBaseCommand.js +51 -0
- package/dist-cjs/commands/GetQuickResponseCommand.js +52 -0
- package/dist-cjs/commands/GetRecommendationsCommand.js +52 -0
- package/dist-cjs/commands/GetSessionCommand.js +51 -0
- package/dist-cjs/commands/ListAssistantAssociationsCommand.js +51 -0
- package/dist-cjs/commands/ListAssistantsCommand.js +51 -0
- package/dist-cjs/commands/ListContentsCommand.js +51 -0
- package/dist-cjs/commands/ListImportJobsCommand.js +51 -0
- package/dist-cjs/commands/ListKnowledgeBasesCommand.js +51 -0
- package/dist-cjs/commands/ListQuickResponsesCommand.js +52 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +51 -0
- package/dist-cjs/commands/NotifyRecommendationsReceivedCommand.js +51 -0
- package/dist-cjs/commands/QueryAssistantCommand.js +52 -0
- package/dist-cjs/commands/RemoveKnowledgeBaseTemplateUriCommand.js +51 -0
- package/dist-cjs/commands/SearchContentCommand.js +51 -0
- package/dist-cjs/commands/SearchQuickResponsesCommand.js +52 -0
- package/dist-cjs/commands/SearchSessionsCommand.js +51 -0
- package/dist-cjs/commands/StartContentUploadCommand.js +52 -0
- package/dist-cjs/commands/StartImportJobCommand.js +52 -0
- package/dist-cjs/commands/TagResourceCommand.js +51 -0
- package/dist-cjs/commands/UntagResourceCommand.js +51 -0
- package/dist-cjs/commands/UpdateContentCommand.js +52 -0
- package/dist-cjs/commands/UpdateKnowledgeBaseTemplateUriCommand.js +51 -0
- package/dist-cjs/commands/UpdateQuickResponseCommand.js +52 -0
- package/dist-cjs/commands/index.js +44 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +12 -0
- package/dist-cjs/models/QConnectServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +559 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListAssistantAssociationsPaginator.js +29 -0
- package/dist-cjs/pagination/ListAssistantsPaginator.js +29 -0
- package/dist-cjs/pagination/ListContentsPaginator.js +29 -0
- package/dist-cjs/pagination/ListImportJobsPaginator.js +29 -0
- package/dist-cjs/pagination/ListKnowledgeBasesPaginator.js +29 -0
- package/dist-cjs/pagination/ListQuickResponsesPaginator.js +29 -0
- package/dist-cjs/pagination/QueryAssistantPaginator.js +29 -0
- package/dist-cjs/pagination/SearchContentPaginator.js +29 -0
- package/dist-cjs/pagination/SearchQuickResponsesPaginator.js +29 -0
- package/dist-cjs/pagination/SearchSessionsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +14 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2993 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +24 -0
- package/dist-cjs/runtimeExtensions.js +22 -0
- package/dist-es/QConnect.js +89 -0
- package/dist-es/QConnectClient.js +39 -0
- package/dist-es/commands/CreateAssistantAssociationCommand.js +47 -0
- package/dist-es/commands/CreateAssistantCommand.js +47 -0
- package/dist-es/commands/CreateContentCommand.js +48 -0
- package/dist-es/commands/CreateKnowledgeBaseCommand.js +47 -0
- package/dist-es/commands/CreateQuickResponseCommand.js +48 -0
- package/dist-es/commands/CreateSessionCommand.js +47 -0
- package/dist-es/commands/DeleteAssistantAssociationCommand.js +47 -0
- package/dist-es/commands/DeleteAssistantCommand.js +47 -0
- package/dist-es/commands/DeleteContentCommand.js +47 -0
- package/dist-es/commands/DeleteImportJobCommand.js +47 -0
- package/dist-es/commands/DeleteKnowledgeBaseCommand.js +47 -0
- package/dist-es/commands/DeleteQuickResponseCommand.js +47 -0
- package/dist-es/commands/GetAssistantAssociationCommand.js +47 -0
- package/dist-es/commands/GetAssistantCommand.js +47 -0
- package/dist-es/commands/GetContentCommand.js +48 -0
- package/dist-es/commands/GetContentSummaryCommand.js +47 -0
- package/dist-es/commands/GetImportJobCommand.js +48 -0
- package/dist-es/commands/GetKnowledgeBaseCommand.js +47 -0
- package/dist-es/commands/GetQuickResponseCommand.js +48 -0
- package/dist-es/commands/GetRecommendationsCommand.js +48 -0
- package/dist-es/commands/GetSessionCommand.js +47 -0
- package/dist-es/commands/ListAssistantAssociationsCommand.js +47 -0
- package/dist-es/commands/ListAssistantsCommand.js +47 -0
- package/dist-es/commands/ListContentsCommand.js +47 -0
- package/dist-es/commands/ListImportJobsCommand.js +47 -0
- package/dist-es/commands/ListKnowledgeBasesCommand.js +47 -0
- package/dist-es/commands/ListQuickResponsesCommand.js +48 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +47 -0
- package/dist-es/commands/NotifyRecommendationsReceivedCommand.js +47 -0
- package/dist-es/commands/QueryAssistantCommand.js +48 -0
- package/dist-es/commands/RemoveKnowledgeBaseTemplateUriCommand.js +47 -0
- package/dist-es/commands/SearchContentCommand.js +47 -0
- package/dist-es/commands/SearchQuickResponsesCommand.js +48 -0
- package/dist-es/commands/SearchSessionsCommand.js +47 -0
- package/dist-es/commands/StartContentUploadCommand.js +48 -0
- package/dist-es/commands/StartImportJobCommand.js +48 -0
- package/dist-es/commands/TagResourceCommand.js +47 -0
- package/dist-es/commands/UntagResourceCommand.js +47 -0
- package/dist-es/commands/UpdateContentCommand.js +48 -0
- package/dist-es/commands/UpdateKnowledgeBaseTemplateUriCommand.js +47 -0
- package/dist-es/commands/UpdateQuickResponseCommand.js +48 -0
- package/dist-es/commands/index.js +41 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +7 -0
- package/dist-es/models/QConnectServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +508 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListAssistantAssociationsPaginator.js +25 -0
- package/dist-es/pagination/ListAssistantsPaginator.js +25 -0
- package/dist-es/pagination/ListContentsPaginator.js +25 -0
- package/dist-es/pagination/ListImportJobsPaginator.js +25 -0
- package/dist-es/pagination/ListKnowledgeBasesPaginator.js +25 -0
- package/dist-es/pagination/ListQuickResponsesPaginator.js +25 -0
- package/dist-es/pagination/QueryAssistantPaginator.js +25 -0
- package/dist-es/pagination/SearchContentPaginator.js +25 -0
- package/dist-es/pagination/SearchQuickResponsesPaginator.js +25 -0
- package/dist-es/pagination/SearchSessionsPaginator.js +25 -0
- package/dist-es/pagination/index.js +11 -0
- package/dist-es/protocols/Aws_restJson1.js +2907 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +20 -0
- package/dist-es/runtimeExtensions.js +18 -0
- package/dist-types/QConnect.d.ts +309 -0
- package/dist-types/QConnectClient.d.ts +222 -0
- package/dist-types/commands/CreateAssistantAssociationCommand.d.ts +117 -0
- package/dist-types/commands/CreateAssistantCommand.d.ts +117 -0
- package/dist-types/commands/CreateContentCommand.d.ts +123 -0
- package/dist-types/commands/CreateKnowledgeBaseCommand.d.ts +157 -0
- package/dist-types/commands/CreateQuickResponseCommand.d.ts +149 -0
- package/dist-types/commands/CreateSessionCommand.d.ts +104 -0
- package/dist-types/commands/DeleteAssistantAssociationCommand.d.ts +81 -0
- package/dist-types/commands/DeleteAssistantCommand.d.ts +80 -0
- package/dist-types/commands/DeleteContentCommand.d.ts +81 -0
- package/dist-types/commands/DeleteImportJobCommand.d.ts +87 -0
- package/dist-types/commands/DeleteKnowledgeBaseCommand.d.ts +94 -0
- package/dist-types/commands/DeleteQuickResponseCommand.d.ts +81 -0
- package/dist-types/commands/GetAssistantAssociationCommand.d.ts +98 -0
- package/dist-types/commands/GetAssistantCommand.d.ts +101 -0
- package/dist-types/commands/GetContentCommand.d.ts +102 -0
- package/dist-types/commands/GetContentSummaryCommand.d.ts +99 -0
- package/dist-types/commands/GetImportJobCommand.d.ts +106 -0
- package/dist-types/commands/GetKnowledgeBaseCommand.d.ts +107 -0
- package/dist-types/commands/GetQuickResponseCommand.d.ts +118 -0
- package/dist-types/commands/GetRecommendationsCommand.d.ts +239 -0
- package/dist-types/commands/GetSessionCommand.d.ts +94 -0
- package/dist-types/commands/ListAssistantAssociationsCommand.d.ts +102 -0
- package/dist-types/commands/ListAssistantsCommand.d.ts +102 -0
- package/dist-types/commands/ListContentsCommand.d.ts +103 -0
- package/dist-types/commands/ListImportJobsCommand.d.ts +104 -0
- package/dist-types/commands/ListKnowledgeBasesCommand.d.ts +107 -0
- package/dist-types/commands/ListQuickResponsesCommand.d.ts +106 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +78 -0
- package/dist-types/commands/NotifyRecommendationsReceivedCommand.d.ts +96 -0
- package/dist-types/commands/QueryAssistantCommand.d.ts +238 -0
- package/dist-types/commands/RemoveKnowledgeBaseTemplateUriCommand.d.ts +80 -0
- package/dist-types/commands/SearchContentCommand.d.ts +113 -0
- package/dist-types/commands/SearchQuickResponsesCommand.d.ts +163 -0
- package/dist-types/commands/SearchSessionsCommand.d.ts +101 -0
- package/dist-types/commands/StartContentUploadCommand.d.ts +92 -0
- package/dist-types/commands/StartImportJobCommand.d.ts +135 -0
- package/dist-types/commands/TagResourceCommand.d.ts +80 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +77 -0
- package/dist-types/commands/UpdateContentCommand.d.ts +114 -0
- package/dist-types/commands/UpdateKnowledgeBaseTemplateUriCommand.d.ts +113 -0
- package/dist-types/commands/UpdateQuickResponseCommand.d.ts +149 -0
- package/dist-types/commands/index.d.ts +41 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +22 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +8 -0
- package/dist-types/index.d.ts +27 -0
- package/dist-types/models/QConnectServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +4249 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListAssistantAssociationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAssistantsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListContentsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListImportJobsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListKnowledgeBasesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListQuickResponsesPaginator.d.ts +7 -0
- package/dist-types/pagination/QueryAssistantPaginator.d.ts +7 -0
- package/dist-types/pagination/SearchContentPaginator.d.ts +7 -0
- package/dist-types/pagination/SearchQuickResponsesPaginator.d.ts +7 -0
- package/dist-types/pagination/SearchSessionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +11 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +371 -0
- package/dist-types/runtimeConfig.browser.d.ts +46 -0
- package/dist-types/runtimeConfig.d.ts +46 -0
- package/dist-types/runtimeConfig.native.d.ts +45 -0
- package/dist-types/runtimeConfig.shared.d.ts +19 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/QConnect.d.ts +702 -0
- package/dist-types/ts3.4/QConnectClient.d.ts +364 -0
- package/dist-types/ts3.4/commands/CreateAssistantAssociationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateAssistantCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateContentCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateKnowledgeBaseCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateQuickResponseCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteAssistantAssociationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteAssistantCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteContentCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteImportJobCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteKnowledgeBaseCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteQuickResponseCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetAssistantAssociationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetAssistantCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetContentCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetContentSummaryCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetImportJobCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetKnowledgeBaseCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetQuickResponseCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetRecommendationsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListAssistantAssociationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListAssistantsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListContentsCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListImportJobsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListKnowledgeBasesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListQuickResponsesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/NotifyRecommendationsReceivedCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/QueryAssistantCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/RemoveKnowledgeBaseTemplateUriCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/SearchContentCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/SearchQuickResponsesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/SearchSessionsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/StartContentUploadCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/StartImportJobCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateContentCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateKnowledgeBaseTemplateUriCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateQuickResponseCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +41 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
- package/dist-types/ts3.4/index.d.ts +10 -0
- package/dist-types/ts3.4/models/QConnectServiceException.d.ts +8 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1241 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListAssistantAssociationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAssistantsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListContentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListImportJobsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListKnowledgeBasesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListQuickResponsesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/QueryAssistantPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/SearchContentPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/SearchQuickResponsesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/SearchSessionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +11 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +497 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/package.json +104 -0
|
@@ -0,0 +1,508 @@
|
|
|
1
|
+
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
|
+
import { QConnectServiceException as __BaseException } from "./QConnectServiceException";
|
|
3
|
+
export class AccessDeniedException extends __BaseException {
|
|
4
|
+
constructor(opts) {
|
|
5
|
+
super({
|
|
6
|
+
name: "AccessDeniedException",
|
|
7
|
+
$fault: "client",
|
|
8
|
+
...opts,
|
|
9
|
+
});
|
|
10
|
+
this.name = "AccessDeniedException";
|
|
11
|
+
this.$fault = "client";
|
|
12
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export class ConflictException extends __BaseException {
|
|
16
|
+
constructor(opts) {
|
|
17
|
+
super({
|
|
18
|
+
name: "ConflictException",
|
|
19
|
+
$fault: "client",
|
|
20
|
+
...opts,
|
|
21
|
+
});
|
|
22
|
+
this.name = "ConflictException";
|
|
23
|
+
this.$fault = "client";
|
|
24
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export var AssistantAssociationInputData;
|
|
28
|
+
(function (AssistantAssociationInputData) {
|
|
29
|
+
AssistantAssociationInputData.visit = (value, visitor) => {
|
|
30
|
+
if (value.knowledgeBaseId !== undefined)
|
|
31
|
+
return visitor.knowledgeBaseId(value.knowledgeBaseId);
|
|
32
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
33
|
+
};
|
|
34
|
+
})(AssistantAssociationInputData || (AssistantAssociationInputData = {}));
|
|
35
|
+
export const AssociationType = {
|
|
36
|
+
KNOWLEDGE_BASE: "KNOWLEDGE_BASE",
|
|
37
|
+
};
|
|
38
|
+
export var AssistantAssociationOutputData;
|
|
39
|
+
(function (AssistantAssociationOutputData) {
|
|
40
|
+
AssistantAssociationOutputData.visit = (value, visitor) => {
|
|
41
|
+
if (value.knowledgeBaseAssociation !== undefined)
|
|
42
|
+
return visitor.knowledgeBaseAssociation(value.knowledgeBaseAssociation);
|
|
43
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
44
|
+
};
|
|
45
|
+
})(AssistantAssociationOutputData || (AssistantAssociationOutputData = {}));
|
|
46
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
47
|
+
constructor(opts) {
|
|
48
|
+
super({
|
|
49
|
+
name: "ResourceNotFoundException",
|
|
50
|
+
$fault: "client",
|
|
51
|
+
...opts,
|
|
52
|
+
});
|
|
53
|
+
this.name = "ResourceNotFoundException";
|
|
54
|
+
this.$fault = "client";
|
|
55
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
56
|
+
this.resourceName = opts.resourceName;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
60
|
+
constructor(opts) {
|
|
61
|
+
super({
|
|
62
|
+
name: "ServiceQuotaExceededException",
|
|
63
|
+
$fault: "client",
|
|
64
|
+
...opts,
|
|
65
|
+
});
|
|
66
|
+
this.name = "ServiceQuotaExceededException";
|
|
67
|
+
this.$fault = "client";
|
|
68
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
export class ValidationException extends __BaseException {
|
|
72
|
+
constructor(opts) {
|
|
73
|
+
super({
|
|
74
|
+
name: "ValidationException",
|
|
75
|
+
$fault: "client",
|
|
76
|
+
...opts,
|
|
77
|
+
});
|
|
78
|
+
this.name = "ValidationException";
|
|
79
|
+
this.$fault = "client";
|
|
80
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
export const AssistantType = {
|
|
84
|
+
AGENT: "AGENT",
|
|
85
|
+
};
|
|
86
|
+
export const AssistantCapabilityType = {
|
|
87
|
+
V1: "V1",
|
|
88
|
+
V2: "V2",
|
|
89
|
+
};
|
|
90
|
+
export const AssistantStatus = {
|
|
91
|
+
ACTIVE: "ACTIVE",
|
|
92
|
+
CREATE_FAILED: "CREATE_FAILED",
|
|
93
|
+
CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
|
|
94
|
+
DELETED: "DELETED",
|
|
95
|
+
DELETE_FAILED: "DELETE_FAILED",
|
|
96
|
+
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
97
|
+
};
|
|
98
|
+
export const RelevanceLevel = {
|
|
99
|
+
HIGH: "HIGH",
|
|
100
|
+
LOW: "LOW",
|
|
101
|
+
MEDIUM: "MEDIUM",
|
|
102
|
+
};
|
|
103
|
+
export const SourceContentType = {
|
|
104
|
+
KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT",
|
|
105
|
+
};
|
|
106
|
+
export var DataReference;
|
|
107
|
+
(function (DataReference) {
|
|
108
|
+
DataReference.visit = (value, visitor) => {
|
|
109
|
+
if (value.contentReference !== undefined)
|
|
110
|
+
return visitor.contentReference(value.contentReference);
|
|
111
|
+
if (value.generativeReference !== undefined)
|
|
112
|
+
return visitor.generativeReference(value.generativeReference);
|
|
113
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
114
|
+
};
|
|
115
|
+
})(DataReference || (DataReference = {}));
|
|
116
|
+
export const RecommendationType = {
|
|
117
|
+
GENERATIVE_ANSWER: "GENERATIVE_ANSWER",
|
|
118
|
+
GENERATIVE_RESPONSE: "GENERATIVE_RESPONSE",
|
|
119
|
+
KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT",
|
|
120
|
+
};
|
|
121
|
+
export var RecommendationTriggerData;
|
|
122
|
+
(function (RecommendationTriggerData) {
|
|
123
|
+
RecommendationTriggerData.visit = (value, visitor) => {
|
|
124
|
+
if (value.query !== undefined)
|
|
125
|
+
return visitor.query(value.query);
|
|
126
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
127
|
+
};
|
|
128
|
+
})(RecommendationTriggerData || (RecommendationTriggerData = {}));
|
|
129
|
+
export const RecommendationSourceType = {
|
|
130
|
+
ISSUE_DETECTION: "ISSUE_DETECTION",
|
|
131
|
+
OTHER: "OTHER",
|
|
132
|
+
RULE_EVALUATION: "RULE_EVALUATION",
|
|
133
|
+
};
|
|
134
|
+
export const RecommendationTriggerType = {
|
|
135
|
+
GENERATIVE: "GENERATIVE",
|
|
136
|
+
QUERY: "QUERY",
|
|
137
|
+
};
|
|
138
|
+
export const QueryConditionComparisonOperator = {
|
|
139
|
+
EQUALS: "EQUALS",
|
|
140
|
+
};
|
|
141
|
+
export const QueryConditionFieldName = {
|
|
142
|
+
RESULT_TYPE: "RESULT_TYPE",
|
|
143
|
+
};
|
|
144
|
+
export var QueryCondition;
|
|
145
|
+
(function (QueryCondition) {
|
|
146
|
+
QueryCondition.visit = (value, visitor) => {
|
|
147
|
+
if (value.single !== undefined)
|
|
148
|
+
return visitor.single(value.single);
|
|
149
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
150
|
+
};
|
|
151
|
+
})(QueryCondition || (QueryCondition = {}));
|
|
152
|
+
export const QueryResultType = {
|
|
153
|
+
GENERATIVE_ANSWER: "GENERATIVE_ANSWER",
|
|
154
|
+
KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT",
|
|
155
|
+
};
|
|
156
|
+
export class RequestTimeoutException extends __BaseException {
|
|
157
|
+
constructor(opts) {
|
|
158
|
+
super({
|
|
159
|
+
name: "RequestTimeoutException",
|
|
160
|
+
$fault: "client",
|
|
161
|
+
...opts,
|
|
162
|
+
});
|
|
163
|
+
this.name = "RequestTimeoutException";
|
|
164
|
+
this.$fault = "client";
|
|
165
|
+
this.$retryable = {};
|
|
166
|
+
Object.setPrototypeOf(this, RequestTimeoutException.prototype);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
export const FilterField = {
|
|
170
|
+
NAME: "NAME",
|
|
171
|
+
};
|
|
172
|
+
export const FilterOperator = {
|
|
173
|
+
EQUALS: "EQUALS",
|
|
174
|
+
};
|
|
175
|
+
export var Configuration;
|
|
176
|
+
(function (Configuration) {
|
|
177
|
+
Configuration.visit = (value, visitor) => {
|
|
178
|
+
if (value.connectConfiguration !== undefined)
|
|
179
|
+
return visitor.connectConfiguration(value.connectConfiguration);
|
|
180
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
181
|
+
};
|
|
182
|
+
})(Configuration || (Configuration = {}));
|
|
183
|
+
export const ContentStatus = {
|
|
184
|
+
ACTIVE: "ACTIVE",
|
|
185
|
+
CREATE_FAILED: "CREATE_FAILED",
|
|
186
|
+
CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
|
|
187
|
+
DELETED: "DELETED",
|
|
188
|
+
DELETE_FAILED: "DELETE_FAILED",
|
|
189
|
+
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
190
|
+
UPDATE_FAILED: "UPDATE_FAILED",
|
|
191
|
+
};
|
|
192
|
+
export class PreconditionFailedException extends __BaseException {
|
|
193
|
+
constructor(opts) {
|
|
194
|
+
super({
|
|
195
|
+
name: "PreconditionFailedException",
|
|
196
|
+
$fault: "client",
|
|
197
|
+
...opts,
|
|
198
|
+
});
|
|
199
|
+
this.name = "PreconditionFailedException";
|
|
200
|
+
this.$fault = "client";
|
|
201
|
+
Object.setPrototypeOf(this, PreconditionFailedException.prototype);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
export const KnowledgeBaseType = {
|
|
205
|
+
CUSTOM: "CUSTOM",
|
|
206
|
+
EXTERNAL: "EXTERNAL",
|
|
207
|
+
QUICK_RESPONSES: "QUICK_RESPONSES",
|
|
208
|
+
};
|
|
209
|
+
export var SourceConfiguration;
|
|
210
|
+
(function (SourceConfiguration) {
|
|
211
|
+
SourceConfiguration.visit = (value, visitor) => {
|
|
212
|
+
if (value.appIntegrations !== undefined)
|
|
213
|
+
return visitor.appIntegrations(value.appIntegrations);
|
|
214
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
215
|
+
};
|
|
216
|
+
})(SourceConfiguration || (SourceConfiguration = {}));
|
|
217
|
+
export const KnowledgeBaseStatus = {
|
|
218
|
+
ACTIVE: "ACTIVE",
|
|
219
|
+
CREATE_FAILED: "CREATE_FAILED",
|
|
220
|
+
CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
|
|
221
|
+
DELETED: "DELETED",
|
|
222
|
+
DELETE_FAILED: "DELETE_FAILED",
|
|
223
|
+
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
224
|
+
};
|
|
225
|
+
export var QuickResponseDataProvider;
|
|
226
|
+
(function (QuickResponseDataProvider) {
|
|
227
|
+
QuickResponseDataProvider.visit = (value, visitor) => {
|
|
228
|
+
if (value.content !== undefined)
|
|
229
|
+
return visitor.content(value.content);
|
|
230
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
231
|
+
};
|
|
232
|
+
})(QuickResponseDataProvider || (QuickResponseDataProvider = {}));
|
|
233
|
+
export var QuickResponseContentProvider;
|
|
234
|
+
(function (QuickResponseContentProvider) {
|
|
235
|
+
QuickResponseContentProvider.visit = (value, visitor) => {
|
|
236
|
+
if (value.content !== undefined)
|
|
237
|
+
return visitor.content(value.content);
|
|
238
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
239
|
+
};
|
|
240
|
+
})(QuickResponseContentProvider || (QuickResponseContentProvider = {}));
|
|
241
|
+
export const QuickResponseStatus = {
|
|
242
|
+
CREATED: "CREATED",
|
|
243
|
+
CREATE_FAILED: "CREATE_FAILED",
|
|
244
|
+
CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
|
|
245
|
+
DELETED: "DELETED",
|
|
246
|
+
DELETE_FAILED: "DELETE_FAILED",
|
|
247
|
+
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
248
|
+
UPDATE_FAILED: "UPDATE_FAILED",
|
|
249
|
+
UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS",
|
|
250
|
+
};
|
|
251
|
+
export const ExternalSource = {
|
|
252
|
+
AMAZON_CONNECT: "AMAZON_CONNECT",
|
|
253
|
+
};
|
|
254
|
+
export const ImportJobType = {
|
|
255
|
+
QUICK_RESPONSES: "QUICK_RESPONSES",
|
|
256
|
+
};
|
|
257
|
+
export const ImportJobStatus = {
|
|
258
|
+
COMPLETE: "COMPLETE",
|
|
259
|
+
DELETED: "DELETED",
|
|
260
|
+
DELETE_FAILED: "DELETE_FAILED",
|
|
261
|
+
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
262
|
+
FAILED: "FAILED",
|
|
263
|
+
START_IN_PROGRESS: "START_IN_PROGRESS",
|
|
264
|
+
};
|
|
265
|
+
export const QuickResponseFilterOperator = {
|
|
266
|
+
EQUALS: "EQUALS",
|
|
267
|
+
PREFIX: "PREFIX",
|
|
268
|
+
};
|
|
269
|
+
export const Order = {
|
|
270
|
+
ASC: "ASC",
|
|
271
|
+
DESC: "DESC",
|
|
272
|
+
};
|
|
273
|
+
export const QuickResponseQueryOperator = {
|
|
274
|
+
CONTAINS: "CONTAINS",
|
|
275
|
+
CONTAINS_AND_PREFIX: "CONTAINS_AND_PREFIX",
|
|
276
|
+
};
|
|
277
|
+
export const Priority = {
|
|
278
|
+
HIGH: "HIGH",
|
|
279
|
+
LOW: "LOW",
|
|
280
|
+
MEDIUM: "MEDIUM",
|
|
281
|
+
};
|
|
282
|
+
export class TooManyTagsException extends __BaseException {
|
|
283
|
+
constructor(opts) {
|
|
284
|
+
super({
|
|
285
|
+
name: "TooManyTagsException",
|
|
286
|
+
$fault: "client",
|
|
287
|
+
...opts,
|
|
288
|
+
});
|
|
289
|
+
this.name = "TooManyTagsException";
|
|
290
|
+
this.$fault = "client";
|
|
291
|
+
Object.setPrototypeOf(this, TooManyTagsException.prototype);
|
|
292
|
+
this.resourceName = opts.resourceName;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
export var DataDetails;
|
|
296
|
+
(function (DataDetails) {
|
|
297
|
+
DataDetails.visit = (value, visitor) => {
|
|
298
|
+
if (value.contentData !== undefined)
|
|
299
|
+
return visitor.contentData(value.contentData);
|
|
300
|
+
if (value.generativeData !== undefined)
|
|
301
|
+
return visitor.generativeData(value.generativeData);
|
|
302
|
+
if (value.sourceContentData !== undefined)
|
|
303
|
+
return visitor.sourceContentData(value.sourceContentData);
|
|
304
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
305
|
+
};
|
|
306
|
+
})(DataDetails || (DataDetails = {}));
|
|
307
|
+
export const DocumentTextFilterSensitiveLog = (obj) => ({
|
|
308
|
+
...obj,
|
|
309
|
+
...(obj.text && { text: SENSITIVE_STRING }),
|
|
310
|
+
});
|
|
311
|
+
export const TextDataFilterSensitiveLog = (obj) => ({
|
|
312
|
+
...obj,
|
|
313
|
+
...(obj.title && { title: DocumentTextFilterSensitiveLog(obj.title) }),
|
|
314
|
+
...(obj.excerpt && { excerpt: DocumentTextFilterSensitiveLog(obj.excerpt) }),
|
|
315
|
+
});
|
|
316
|
+
export const ContentDataDetailsFilterSensitiveLog = (obj) => ({
|
|
317
|
+
...obj,
|
|
318
|
+
...(obj.textData && { textData: TextDataFilterSensitiveLog(obj.textData) }),
|
|
319
|
+
});
|
|
320
|
+
export const SourceContentDataDetailsFilterSensitiveLog = (obj) => ({
|
|
321
|
+
...obj,
|
|
322
|
+
...(obj.textData && { textData: TextDataFilterSensitiveLog(obj.textData) }),
|
|
323
|
+
});
|
|
324
|
+
export const DocumentFilterSensitiveLog = (obj) => ({
|
|
325
|
+
...obj,
|
|
326
|
+
...(obj.title && { title: DocumentTextFilterSensitiveLog(obj.title) }),
|
|
327
|
+
...(obj.excerpt && { excerpt: DocumentTextFilterSensitiveLog(obj.excerpt) }),
|
|
328
|
+
});
|
|
329
|
+
export const QueryRecommendationTriggerDataFilterSensitiveLog = (obj) => ({
|
|
330
|
+
...obj,
|
|
331
|
+
...(obj.text && { text: SENSITIVE_STRING }),
|
|
332
|
+
});
|
|
333
|
+
export const RecommendationTriggerDataFilterSensitiveLog = (obj) => {
|
|
334
|
+
if (obj.query !== undefined)
|
|
335
|
+
return { query: QueryRecommendationTriggerDataFilterSensitiveLog(obj.query) };
|
|
336
|
+
if (obj.$unknown !== undefined)
|
|
337
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
338
|
+
};
|
|
339
|
+
export const RecommendationTriggerFilterSensitiveLog = (obj) => ({
|
|
340
|
+
...obj,
|
|
341
|
+
...(obj.data && { data: RecommendationTriggerDataFilterSensitiveLog(obj.data) }),
|
|
342
|
+
});
|
|
343
|
+
export const QueryAssistantRequestFilterSensitiveLog = (obj) => ({
|
|
344
|
+
...obj,
|
|
345
|
+
...(obj.queryText && { queryText: SENSITIVE_STRING }),
|
|
346
|
+
...(obj.queryCondition && { queryCondition: obj.queryCondition.map((item) => item) }),
|
|
347
|
+
});
|
|
348
|
+
export const ContentDataFilterSensitiveLog = (obj) => ({
|
|
349
|
+
...obj,
|
|
350
|
+
...(obj.url && { url: SENSITIVE_STRING }),
|
|
351
|
+
});
|
|
352
|
+
export const CreateContentResponseFilterSensitiveLog = (obj) => ({
|
|
353
|
+
...obj,
|
|
354
|
+
...(obj.content && { content: ContentDataFilterSensitiveLog(obj.content) }),
|
|
355
|
+
});
|
|
356
|
+
export const GetContentResponseFilterSensitiveLog = (obj) => ({
|
|
357
|
+
...obj,
|
|
358
|
+
...(obj.content && { content: ContentDataFilterSensitiveLog(obj.content) }),
|
|
359
|
+
});
|
|
360
|
+
export const UpdateContentResponseFilterSensitiveLog = (obj) => ({
|
|
361
|
+
...obj,
|
|
362
|
+
...(obj.content && { content: ContentDataFilterSensitiveLog(obj.content) }),
|
|
363
|
+
});
|
|
364
|
+
export const QuickResponseDataProviderFilterSensitiveLog = (obj) => {
|
|
365
|
+
if (obj.content !== undefined)
|
|
366
|
+
return { content: SENSITIVE_STRING };
|
|
367
|
+
if (obj.$unknown !== undefined)
|
|
368
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
369
|
+
};
|
|
370
|
+
export const GroupingConfigurationFilterSensitiveLog = (obj) => ({
|
|
371
|
+
...obj,
|
|
372
|
+
...(obj.criteria && { criteria: SENSITIVE_STRING }),
|
|
373
|
+
...(obj.values && { values: SENSITIVE_STRING }),
|
|
374
|
+
});
|
|
375
|
+
export const CreateQuickResponseRequestFilterSensitiveLog = (obj) => ({
|
|
376
|
+
...obj,
|
|
377
|
+
...(obj.content && { content: QuickResponseDataProviderFilterSensitiveLog(obj.content) }),
|
|
378
|
+
...(obj.groupingConfiguration && {
|
|
379
|
+
groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration),
|
|
380
|
+
}),
|
|
381
|
+
...(obj.channels && { channels: SENSITIVE_STRING }),
|
|
382
|
+
});
|
|
383
|
+
export const QuickResponseContentProviderFilterSensitiveLog = (obj) => {
|
|
384
|
+
if (obj.content !== undefined)
|
|
385
|
+
return { content: SENSITIVE_STRING };
|
|
386
|
+
if (obj.$unknown !== undefined)
|
|
387
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
388
|
+
};
|
|
389
|
+
export const QuickResponseContentsFilterSensitiveLog = (obj) => ({
|
|
390
|
+
...obj,
|
|
391
|
+
...(obj.plainText && { plainText: QuickResponseContentProviderFilterSensitiveLog(obj.plainText) }),
|
|
392
|
+
...(obj.markdown && { markdown: QuickResponseContentProviderFilterSensitiveLog(obj.markdown) }),
|
|
393
|
+
});
|
|
394
|
+
export const QuickResponseDataFilterSensitiveLog = (obj) => ({
|
|
395
|
+
...obj,
|
|
396
|
+
...(obj.contents && { contents: QuickResponseContentsFilterSensitiveLog(obj.contents) }),
|
|
397
|
+
...(obj.groupingConfiguration && {
|
|
398
|
+
groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration),
|
|
399
|
+
}),
|
|
400
|
+
...(obj.channels && { channels: SENSITIVE_STRING }),
|
|
401
|
+
});
|
|
402
|
+
export const CreateQuickResponseResponseFilterSensitiveLog = (obj) => ({
|
|
403
|
+
...obj,
|
|
404
|
+
...(obj.quickResponse && { quickResponse: QuickResponseDataFilterSensitiveLog(obj.quickResponse) }),
|
|
405
|
+
});
|
|
406
|
+
export const ImportJobDataFilterSensitiveLog = (obj) => ({
|
|
407
|
+
...obj,
|
|
408
|
+
...(obj.url && { url: SENSITIVE_STRING }),
|
|
409
|
+
...(obj.failedRecordReport && { failedRecordReport: SENSITIVE_STRING }),
|
|
410
|
+
...(obj.externalSourceConfiguration && { externalSourceConfiguration: obj.externalSourceConfiguration }),
|
|
411
|
+
});
|
|
412
|
+
export const GetImportJobResponseFilterSensitiveLog = (obj) => ({
|
|
413
|
+
...obj,
|
|
414
|
+
...(obj.importJob && { importJob: ImportJobDataFilterSensitiveLog(obj.importJob) }),
|
|
415
|
+
});
|
|
416
|
+
export const GetQuickResponseResponseFilterSensitiveLog = (obj) => ({
|
|
417
|
+
...obj,
|
|
418
|
+
...(obj.quickResponse && { quickResponse: QuickResponseDataFilterSensitiveLog(obj.quickResponse) }),
|
|
419
|
+
});
|
|
420
|
+
export const QuickResponseSummaryFilterSensitiveLog = (obj) => ({
|
|
421
|
+
...obj,
|
|
422
|
+
...(obj.channels && { channels: SENSITIVE_STRING }),
|
|
423
|
+
});
|
|
424
|
+
export const ListQuickResponsesResponseFilterSensitiveLog = (obj) => ({
|
|
425
|
+
...obj,
|
|
426
|
+
...(obj.quickResponseSummaries && {
|
|
427
|
+
quickResponseSummaries: obj.quickResponseSummaries.map((item) => QuickResponseSummaryFilterSensitiveLog(item)),
|
|
428
|
+
}),
|
|
429
|
+
});
|
|
430
|
+
export const UpdateQuickResponseRequestFilterSensitiveLog = (obj) => ({
|
|
431
|
+
...obj,
|
|
432
|
+
...(obj.content && { content: QuickResponseDataProviderFilterSensitiveLog(obj.content) }),
|
|
433
|
+
...(obj.groupingConfiguration && {
|
|
434
|
+
groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration),
|
|
435
|
+
}),
|
|
436
|
+
...(obj.channels && { channels: SENSITIVE_STRING }),
|
|
437
|
+
});
|
|
438
|
+
export const UpdateQuickResponseResponseFilterSensitiveLog = (obj) => ({
|
|
439
|
+
...obj,
|
|
440
|
+
...(obj.quickResponse && { quickResponse: QuickResponseDataFilterSensitiveLog(obj.quickResponse) }),
|
|
441
|
+
});
|
|
442
|
+
export const SearchQuickResponsesRequestFilterSensitiveLog = (obj) => ({
|
|
443
|
+
...obj,
|
|
444
|
+
...(obj.attributes && { attributes: SENSITIVE_STRING }),
|
|
445
|
+
});
|
|
446
|
+
export const QuickResponseSearchResultDataFilterSensitiveLog = (obj) => ({
|
|
447
|
+
...obj,
|
|
448
|
+
...(obj.contents && { contents: QuickResponseContentsFilterSensitiveLog(obj.contents) }),
|
|
449
|
+
...(obj.groupingConfiguration && {
|
|
450
|
+
groupingConfiguration: GroupingConfigurationFilterSensitiveLog(obj.groupingConfiguration),
|
|
451
|
+
}),
|
|
452
|
+
...(obj.channels && { channels: SENSITIVE_STRING }),
|
|
453
|
+
...(obj.attributesNotInterpolated && { attributesNotInterpolated: SENSITIVE_STRING }),
|
|
454
|
+
...(obj.attributesInterpolated && { attributesInterpolated: SENSITIVE_STRING }),
|
|
455
|
+
});
|
|
456
|
+
export const SearchQuickResponsesResponseFilterSensitiveLog = (obj) => ({
|
|
457
|
+
...obj,
|
|
458
|
+
...(obj.results && { results: obj.results.map((item) => QuickResponseSearchResultDataFilterSensitiveLog(item)) }),
|
|
459
|
+
});
|
|
460
|
+
export const StartContentUploadResponseFilterSensitiveLog = (obj) => ({
|
|
461
|
+
...obj,
|
|
462
|
+
...(obj.url && { url: SENSITIVE_STRING }),
|
|
463
|
+
});
|
|
464
|
+
export const StartImportJobResponseFilterSensitiveLog = (obj) => ({
|
|
465
|
+
...obj,
|
|
466
|
+
...(obj.importJob && { importJob: ImportJobDataFilterSensitiveLog(obj.importJob) }),
|
|
467
|
+
});
|
|
468
|
+
export const DataDetailsFilterSensitiveLog = (obj) => {
|
|
469
|
+
if (obj.contentData !== undefined)
|
|
470
|
+
return { contentData: ContentDataDetailsFilterSensitiveLog(obj.contentData) };
|
|
471
|
+
if (obj.generativeData !== undefined)
|
|
472
|
+
return { generativeData: GenerativeDataDetailsFilterSensitiveLog(obj.generativeData) };
|
|
473
|
+
if (obj.sourceContentData !== undefined)
|
|
474
|
+
return { sourceContentData: SourceContentDataDetailsFilterSensitiveLog(obj.sourceContentData) };
|
|
475
|
+
if (obj.$unknown !== undefined)
|
|
476
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
477
|
+
};
|
|
478
|
+
export const DataSummaryFilterSensitiveLog = (obj) => ({
|
|
479
|
+
...obj,
|
|
480
|
+
...(obj.reference && { reference: obj.reference }),
|
|
481
|
+
...(obj.details && { details: DataDetailsFilterSensitiveLog(obj.details) }),
|
|
482
|
+
});
|
|
483
|
+
export const GenerativeDataDetailsFilterSensitiveLog = (obj) => ({
|
|
484
|
+
...obj,
|
|
485
|
+
...(obj.completion && { completion: SENSITIVE_STRING }),
|
|
486
|
+
...(obj.references && { references: obj.references.map((item) => DataSummaryFilterSensitiveLog(item)) }),
|
|
487
|
+
});
|
|
488
|
+
export const RecommendationDataFilterSensitiveLog = (obj) => ({
|
|
489
|
+
...obj,
|
|
490
|
+
...(obj.document && { document: DocumentFilterSensitiveLog(obj.document) }),
|
|
491
|
+
...(obj.data && { data: DataSummaryFilterSensitiveLog(obj.data) }),
|
|
492
|
+
});
|
|
493
|
+
export const ResultDataFilterSensitiveLog = (obj) => ({
|
|
494
|
+
...obj,
|
|
495
|
+
...(obj.document && { document: DocumentFilterSensitiveLog(obj.document) }),
|
|
496
|
+
...(obj.data && { data: DataSummaryFilterSensitiveLog(obj.data) }),
|
|
497
|
+
});
|
|
498
|
+
export const GetRecommendationsResponseFilterSensitiveLog = (obj) => ({
|
|
499
|
+
...obj,
|
|
500
|
+
...(obj.recommendations && {
|
|
501
|
+
recommendations: obj.recommendations.map((item) => RecommendationDataFilterSensitiveLog(item)),
|
|
502
|
+
}),
|
|
503
|
+
...(obj.triggers && { triggers: obj.triggers.map((item) => RecommendationTriggerFilterSensitiveLog(item)) }),
|
|
504
|
+
});
|
|
505
|
+
export const QueryAssistantResponseFilterSensitiveLog = (obj) => ({
|
|
506
|
+
...obj,
|
|
507
|
+
...(obj.results && { results: obj.results.map((item) => ResultDataFilterSensitiveLog(item)) }),
|
|
508
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListAssistantAssociationsCommand, } from "../commands/ListAssistantAssociationsCommand";
|
|
2
|
+
import { QConnectClient } from "../QConnectClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListAssistantAssociationsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListAssistantAssociations(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof QConnectClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected QConnect | QConnectClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListAssistantsCommand, } from "../commands/ListAssistantsCommand";
|
|
2
|
+
import { QConnectClient } from "../QConnectClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListAssistantsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListAssistants(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof QConnectClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected QConnect | QConnectClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListContentsCommand, } from "../commands/ListContentsCommand";
|
|
2
|
+
import { QConnectClient } from "../QConnectClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListContentsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListContents(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof QConnectClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected QConnect | QConnectClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListImportJobsCommand, } from "../commands/ListImportJobsCommand";
|
|
2
|
+
import { QConnectClient } from "../QConnectClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListImportJobsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListImportJobs(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof QConnectClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected QConnect | QConnectClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListKnowledgeBasesCommand, } from "../commands/ListKnowledgeBasesCommand";
|
|
2
|
+
import { QConnectClient } from "../QConnectClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListKnowledgeBasesCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListKnowledgeBases(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof QConnectClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected QConnect | QConnectClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListQuickResponsesCommand, } from "../commands/ListQuickResponsesCommand";
|
|
2
|
+
import { QConnectClient } from "../QConnectClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListQuickResponsesCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListQuickResponses(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof QConnectClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected QConnect | QConnectClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|