@aws-sdk/client-qbusiness 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 +646 -0
- package/dist-cjs/QBusiness.js +121 -0
- package/dist-cjs/QBusinessClient.js +43 -0
- package/dist-cjs/commands/BatchDeleteDocumentCommand.js +50 -0
- package/dist-cjs/commands/BatchPutDocumentCommand.js +50 -0
- package/dist-cjs/commands/ChatSyncCommand.js +50 -0
- package/dist-cjs/commands/CreateApplicationCommand.js +51 -0
- package/dist-cjs/commands/CreateDataSourceCommand.js +50 -0
- package/dist-cjs/commands/CreateIndexCommand.js +50 -0
- package/dist-cjs/commands/CreatePluginCommand.js +50 -0
- package/dist-cjs/commands/CreateRetrieverCommand.js +50 -0
- package/dist-cjs/commands/CreateUserCommand.js +50 -0
- package/dist-cjs/commands/CreateWebExperienceCommand.js +50 -0
- package/dist-cjs/commands/DeleteApplicationCommand.js +50 -0
- package/dist-cjs/commands/DeleteChatControlsConfigurationCommand.js +50 -0
- package/dist-cjs/commands/DeleteConversationCommand.js +50 -0
- package/dist-cjs/commands/DeleteDataSourceCommand.js +50 -0
- package/dist-cjs/commands/DeleteGroupCommand.js +50 -0
- package/dist-cjs/commands/DeleteIndexCommand.js +50 -0
- package/dist-cjs/commands/DeletePluginCommand.js +50 -0
- package/dist-cjs/commands/DeleteRetrieverCommand.js +50 -0
- package/dist-cjs/commands/DeleteUserCommand.js +50 -0
- package/dist-cjs/commands/DeleteWebExperienceCommand.js +50 -0
- package/dist-cjs/commands/GetApplicationCommand.js +51 -0
- package/dist-cjs/commands/GetChatControlsConfigurationCommand.js +50 -0
- package/dist-cjs/commands/GetDataSourceCommand.js +50 -0
- package/dist-cjs/commands/GetGroupCommand.js +50 -0
- package/dist-cjs/commands/GetIndexCommand.js +50 -0
- package/dist-cjs/commands/GetPluginCommand.js +50 -0
- package/dist-cjs/commands/GetRetrieverCommand.js +50 -0
- package/dist-cjs/commands/GetUserCommand.js +50 -0
- package/dist-cjs/commands/GetWebExperienceCommand.js +50 -0
- package/dist-cjs/commands/ListApplicationsCommand.js +50 -0
- package/dist-cjs/commands/ListConversationsCommand.js +50 -0
- package/dist-cjs/commands/ListDataSourceSyncJobsCommand.js +50 -0
- package/dist-cjs/commands/ListDataSourcesCommand.js +50 -0
- package/dist-cjs/commands/ListDocumentsCommand.js +50 -0
- package/dist-cjs/commands/ListGroupsCommand.js +50 -0
- package/dist-cjs/commands/ListIndicesCommand.js +50 -0
- package/dist-cjs/commands/ListMessagesCommand.js +50 -0
- package/dist-cjs/commands/ListPluginsCommand.js +50 -0
- package/dist-cjs/commands/ListRetrieversCommand.js +50 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +50 -0
- package/dist-cjs/commands/ListWebExperiencesCommand.js +50 -0
- package/dist-cjs/commands/PutFeedbackCommand.js +50 -0
- package/dist-cjs/commands/PutGroupCommand.js +50 -0
- package/dist-cjs/commands/StartDataSourceSyncJobCommand.js +50 -0
- package/dist-cjs/commands/StopDataSourceSyncJobCommand.js +50 -0
- package/dist-cjs/commands/TagResourceCommand.js +50 -0
- package/dist-cjs/commands/UntagResourceCommand.js +50 -0
- package/dist-cjs/commands/UpdateApplicationCommand.js +50 -0
- package/dist-cjs/commands/UpdateChatControlsConfigurationCommand.js +50 -0
- package/dist-cjs/commands/UpdateDataSourceCommand.js +50 -0
- package/dist-cjs/commands/UpdateIndexCommand.js +50 -0
- package/dist-cjs/commands/UpdatePluginCommand.js +50 -0
- package/dist-cjs/commands/UpdateRetrieverCommand.js +50 -0
- package/dist-cjs/commands/UpdateUserCommand.js +50 -0
- package/dist-cjs/commands/UpdateWebExperienceCommand.js +50 -0
- package/dist-cjs/commands/index.js +58 -0
- package/dist-cjs/endpoint/EndpointParameters.js +11 -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/QBusinessServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +392 -0
- package/dist-cjs/pagination/GetChatControlsConfigurationPaginator.js +29 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListApplicationsPaginator.js +29 -0
- package/dist-cjs/pagination/ListConversationsPaginator.js +29 -0
- package/dist-cjs/pagination/ListDataSourceSyncJobsPaginator.js +29 -0
- package/dist-cjs/pagination/ListDataSourcesPaginator.js +29 -0
- package/dist-cjs/pagination/ListDocumentsPaginator.js +29 -0
- package/dist-cjs/pagination/ListGroupsPaginator.js +29 -0
- package/dist-cjs/pagination/ListIndicesPaginator.js +29 -0
- package/dist-cjs/pagination/ListMessagesPaginator.js +29 -0
- package/dist-cjs/pagination/ListPluginsPaginator.js +29 -0
- package/dist-cjs/pagination/ListRetrieversPaginator.js +29 -0
- package/dist-cjs/pagination/ListWebExperiencesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +16 -0
- package/dist-cjs/protocols/Aws_restJson1.js +4637 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +51 -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/QBusiness.js +117 -0
- package/dist-es/QBusinessClient.js +39 -0
- package/dist-es/commands/BatchDeleteDocumentCommand.js +46 -0
- package/dist-es/commands/BatchPutDocumentCommand.js +46 -0
- package/dist-es/commands/ChatSyncCommand.js +46 -0
- package/dist-es/commands/CreateApplicationCommand.js +47 -0
- package/dist-es/commands/CreateDataSourceCommand.js +46 -0
- package/dist-es/commands/CreateIndexCommand.js +46 -0
- package/dist-es/commands/CreatePluginCommand.js +46 -0
- package/dist-es/commands/CreateRetrieverCommand.js +46 -0
- package/dist-es/commands/CreateUserCommand.js +46 -0
- package/dist-es/commands/CreateWebExperienceCommand.js +46 -0
- package/dist-es/commands/DeleteApplicationCommand.js +46 -0
- package/dist-es/commands/DeleteChatControlsConfigurationCommand.js +46 -0
- package/dist-es/commands/DeleteConversationCommand.js +46 -0
- package/dist-es/commands/DeleteDataSourceCommand.js +46 -0
- package/dist-es/commands/DeleteGroupCommand.js +46 -0
- package/dist-es/commands/DeleteIndexCommand.js +46 -0
- package/dist-es/commands/DeletePluginCommand.js +46 -0
- package/dist-es/commands/DeleteRetrieverCommand.js +46 -0
- package/dist-es/commands/DeleteUserCommand.js +46 -0
- package/dist-es/commands/DeleteWebExperienceCommand.js +46 -0
- package/dist-es/commands/GetApplicationCommand.js +47 -0
- package/dist-es/commands/GetChatControlsConfigurationCommand.js +46 -0
- package/dist-es/commands/GetDataSourceCommand.js +46 -0
- package/dist-es/commands/GetGroupCommand.js +46 -0
- package/dist-es/commands/GetIndexCommand.js +46 -0
- package/dist-es/commands/GetPluginCommand.js +46 -0
- package/dist-es/commands/GetRetrieverCommand.js +46 -0
- package/dist-es/commands/GetUserCommand.js +46 -0
- package/dist-es/commands/GetWebExperienceCommand.js +46 -0
- package/dist-es/commands/ListApplicationsCommand.js +46 -0
- package/dist-es/commands/ListConversationsCommand.js +46 -0
- package/dist-es/commands/ListDataSourceSyncJobsCommand.js +46 -0
- package/dist-es/commands/ListDataSourcesCommand.js +46 -0
- package/dist-es/commands/ListDocumentsCommand.js +46 -0
- package/dist-es/commands/ListGroupsCommand.js +46 -0
- package/dist-es/commands/ListIndicesCommand.js +46 -0
- package/dist-es/commands/ListMessagesCommand.js +46 -0
- package/dist-es/commands/ListPluginsCommand.js +46 -0
- package/dist-es/commands/ListRetrieversCommand.js +46 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +46 -0
- package/dist-es/commands/ListWebExperiencesCommand.js +46 -0
- package/dist-es/commands/PutFeedbackCommand.js +46 -0
- package/dist-es/commands/PutGroupCommand.js +46 -0
- package/dist-es/commands/StartDataSourceSyncJobCommand.js +46 -0
- package/dist-es/commands/StopDataSourceSyncJobCommand.js +46 -0
- package/dist-es/commands/TagResourceCommand.js +46 -0
- package/dist-es/commands/UntagResourceCommand.js +46 -0
- package/dist-es/commands/UpdateApplicationCommand.js +46 -0
- package/dist-es/commands/UpdateChatControlsConfigurationCommand.js +46 -0
- package/dist-es/commands/UpdateDataSourceCommand.js +46 -0
- package/dist-es/commands/UpdateIndexCommand.js +46 -0
- package/dist-es/commands/UpdatePluginCommand.js +46 -0
- package/dist-es/commands/UpdateRetrieverCommand.js +46 -0
- package/dist-es/commands/UpdateUserCommand.js +46 -0
- package/dist-es/commands/UpdateWebExperienceCommand.js +46 -0
- package/dist-es/commands/index.js +55 -0
- package/dist-es/endpoint/EndpointParameters.js +7 -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/QBusinessServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +378 -0
- package/dist-es/pagination/GetChatControlsConfigurationPaginator.js +25 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListApplicationsPaginator.js +25 -0
- package/dist-es/pagination/ListConversationsPaginator.js +25 -0
- package/dist-es/pagination/ListDataSourceSyncJobsPaginator.js +25 -0
- package/dist-es/pagination/ListDataSourcesPaginator.js +25 -0
- package/dist-es/pagination/ListDocumentsPaginator.js +25 -0
- package/dist-es/pagination/ListGroupsPaginator.js +25 -0
- package/dist-es/pagination/ListIndicesPaginator.js +25 -0
- package/dist-es/pagination/ListMessagesPaginator.js +25 -0
- package/dist-es/pagination/ListPluginsPaginator.js +25 -0
- package/dist-es/pagination/ListRetrieversPaginator.js +25 -0
- package/dist-es/pagination/ListWebExperiencesPaginator.js +25 -0
- package/dist-es/pagination/index.js +13 -0
- package/dist-es/protocols/Aws_restJson1.js +4522 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +46 -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/QBusiness.d.ts +396 -0
- package/dist-types/QBusinessClient.d.ts +225 -0
- package/dist-types/commands/BatchDeleteDocumentCommand.d.ts +116 -0
- package/dist-types/commands/BatchPutDocumentCommand.d.ts +228 -0
- package/dist-types/commands/ChatSyncCommand.d.ts +253 -0
- package/dist-types/commands/CreateApplicationCommand.d.ts +116 -0
- package/dist-types/commands/CreateDataSourceCommand.d.ts +190 -0
- package/dist-types/commands/CreateIndexCommand.d.ts +121 -0
- package/dist-types/commands/CreatePluginCommand.d.ts +121 -0
- package/dist-types/commands/CreateRetrieverCommand.d.ts +119 -0
- package/dist-types/commands/CreateUserCommand.d.ts +108 -0
- package/dist-types/commands/CreateWebExperienceCommand.d.ts +112 -0
- package/dist-types/commands/DeleteApplicationCommand.d.ts +95 -0
- package/dist-types/commands/DeleteChatControlsConfigurationCommand.d.ts +91 -0
- package/dist-types/commands/DeleteConversationCommand.d.ts +97 -0
- package/dist-types/commands/DeleteDataSourceCommand.d.ts +99 -0
- package/dist-types/commands/DeleteGroupCommand.d.ts +106 -0
- package/dist-types/commands/DeleteIndexCommand.d.ts +96 -0
- package/dist-types/commands/DeletePluginCommand.d.ts +96 -0
- package/dist-types/commands/DeleteRetrieverCommand.d.ts +96 -0
- package/dist-types/commands/DeleteUserCommand.d.ts +96 -0
- package/dist-types/commands/DeleteWebExperienceCommand.d.ts +96 -0
- package/dist-types/commands/GetApplicationCommand.d.ts +110 -0
- package/dist-types/commands/GetChatControlsConfigurationCommand.d.ts +146 -0
- package/dist-types/commands/GetDataSourceCommand.d.ts +184 -0
- package/dist-types/commands/GetGroupCommand.d.ts +117 -0
- package/dist-types/commands/GetIndexCommand.d.ts +121 -0
- package/dist-types/commands/GetPluginCommand.d.ts +112 -0
- package/dist-types/commands/GetRetrieverCommand.d.ts +111 -0
- package/dist-types/commands/GetUserCommand.d.ts +105 -0
- package/dist-types/commands/GetWebExperienceCommand.d.ts +116 -0
- package/dist-types/commands/ListApplicationsCommand.d.ts +99 -0
- package/dist-types/commands/ListConversationsCommand.d.ts +107 -0
- package/dist-types/commands/ListDataSourceSyncJobsCommand.d.ts +120 -0
- package/dist-types/commands/ListDataSourcesCommand.d.ts +106 -0
- package/dist-types/commands/ListDocumentsCommand.d.ts +111 -0
- package/dist-types/commands/ListGroupsCommand.d.ts +107 -0
- package/dist-types/commands/ListIndicesCommand.d.ts +104 -0
- package/dist-types/commands/ListMessagesCommand.d.ts +163 -0
- package/dist-types/commands/ListPluginsCommand.d.ts +106 -0
- package/dist-types/commands/ListRetrieversCommand.d.ts +104 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +99 -0
- package/dist-types/commands/ListWebExperiencesCommand.d.ts +104 -0
- package/dist-types/commands/PutFeedbackCommand.d.ts +102 -0
- package/dist-types/commands/PutGroupCommand.d.ts +122 -0
- package/dist-types/commands/StartDataSourceSyncJobCommand.d.ts +103 -0
- package/dist-types/commands/StopDataSourceSyncJobCommand.d.ts +94 -0
- package/dist-types/commands/TagResourceCommand.d.ts +103 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +94 -0
- package/dist-types/commands/UpdateApplicationCommand.d.ts +101 -0
- package/dist-types/commands/UpdateChatControlsConfigurationCommand.d.ts +196 -0
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +175 -0
- package/dist-types/commands/UpdateIndexCommand.d.ts +111 -0
- package/dist-types/commands/UpdatePluginCommand.d.ts +112 -0
- package/dist-types/commands/UpdateRetrieverCommand.d.ts +109 -0
- package/dist-types/commands/UpdateUserCommand.d.ts +131 -0
- package/dist-types/commands/UpdateWebExperienceCommand.d.ts +108 -0
- package/dist-types/commands/index.d.ts +55 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +20 -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 +16 -0
- package/dist-types/models/QBusinessServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +5077 -0
- package/dist-types/pagination/GetChatControlsConfigurationPaginator.d.ts +7 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListApplicationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListConversationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListDataSourceSyncJobsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListDataSourcesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListDocumentsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListGroupsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListIndicesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListMessagesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPluginsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListRetrieversPaginator.d.ts +7 -0
- package/dist-types/pagination/ListWebExperiencesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +13 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +497 -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/QBusiness.d.ts +940 -0
- package/dist-types/ts3.4/QBusinessClient.d.ts +448 -0
- package/dist-types/ts3.4/commands/BatchDeleteDocumentCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/BatchPutDocumentCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ChatSyncCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateDataSourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateIndexCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/CreatePluginCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/CreateRetrieverCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateUserCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/CreateWebExperienceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteChatControlsConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteConversationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteDataSourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteGroupCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DeleteIndexCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DeletePluginCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DeleteRetrieverCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteUserCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DeleteWebExperienceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetApplicationCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetChatControlsConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetDataSourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetGroupCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetIndexCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetPluginCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetRetrieverCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetUserCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetWebExperienceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListApplicationsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListConversationsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListDataSourceSyncJobsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListDataSourcesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListDocumentsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListGroupsCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListIndicesCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListMessagesCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListPluginsCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListRetrieversCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListWebExperiencesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/PutFeedbackCommand.d.ts +33 -0
- package/dist-types/ts3.4/commands/PutGroupCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/StartDataSourceSyncJobCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StopDataSourceSyncJobCommand.d.ts +42 -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/UpdateApplicationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateChatControlsConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateDataSourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateIndexCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpdatePluginCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpdateRetrieverCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateUserCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpdateWebExperienceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +55 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +31 -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/QBusinessServiceException.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 +1406 -0
- package/dist-types/ts3.4/pagination/GetChatControlsConfigurationPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListApplicationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListConversationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListDataSourceSyncJobsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListDataSourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListDocumentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListGroupsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListIndicesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListMessagesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPluginsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRetrieversPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWebExperiencesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +13 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +665 -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,4637 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.se_UpdateDataSourceCommand = exports.se_UpdateChatControlsConfigurationCommand = exports.se_UpdateApplicationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopDataSourceSyncJobCommand = exports.se_StartDataSourceSyncJobCommand = exports.se_PutGroupCommand = exports.se_PutFeedbackCommand = exports.se_ListWebExperiencesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListRetrieversCommand = exports.se_ListPluginsCommand = exports.se_ListMessagesCommand = exports.se_ListIndicesCommand = exports.se_ListGroupsCommand = exports.se_ListDocumentsCommand = exports.se_ListDataSourceSyncJobsCommand = exports.se_ListDataSourcesCommand = exports.se_ListConversationsCommand = exports.se_ListApplicationsCommand = exports.se_GetWebExperienceCommand = exports.se_GetUserCommand = exports.se_GetRetrieverCommand = exports.se_GetPluginCommand = exports.se_GetIndexCommand = exports.se_GetGroupCommand = exports.se_GetDataSourceCommand = exports.se_GetChatControlsConfigurationCommand = exports.se_GetApplicationCommand = exports.se_DeleteWebExperienceCommand = exports.se_DeleteUserCommand = exports.se_DeleteRetrieverCommand = exports.se_DeletePluginCommand = exports.se_DeleteIndexCommand = exports.se_DeleteGroupCommand = exports.se_DeleteDataSourceCommand = exports.se_DeleteConversationCommand = exports.se_DeleteChatControlsConfigurationCommand = exports.se_DeleteApplicationCommand = exports.se_CreateWebExperienceCommand = exports.se_CreateUserCommand = exports.se_CreateRetrieverCommand = exports.se_CreatePluginCommand = exports.se_CreateIndexCommand = exports.se_CreateDataSourceCommand = exports.se_CreateApplicationCommand = exports.se_ChatSyncCommand = exports.se_BatchPutDocumentCommand = exports.se_BatchDeleteDocumentCommand = void 0;
|
|
4
|
+
exports.de_StopDataSourceSyncJobCommand = exports.de_StartDataSourceSyncJobCommand = exports.de_PutGroupCommand = exports.de_PutFeedbackCommand = exports.de_ListWebExperiencesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListRetrieversCommand = exports.de_ListPluginsCommand = exports.de_ListMessagesCommand = exports.de_ListIndicesCommand = exports.de_ListGroupsCommand = exports.de_ListDocumentsCommand = exports.de_ListDataSourceSyncJobsCommand = exports.de_ListDataSourcesCommand = exports.de_ListConversationsCommand = exports.de_ListApplicationsCommand = exports.de_GetWebExperienceCommand = exports.de_GetUserCommand = exports.de_GetRetrieverCommand = exports.de_GetPluginCommand = exports.de_GetIndexCommand = exports.de_GetGroupCommand = exports.de_GetDataSourceCommand = exports.de_GetChatControlsConfigurationCommand = exports.de_GetApplicationCommand = exports.de_DeleteWebExperienceCommand = exports.de_DeleteUserCommand = exports.de_DeleteRetrieverCommand = exports.de_DeletePluginCommand = exports.de_DeleteIndexCommand = exports.de_DeleteGroupCommand = exports.de_DeleteDataSourceCommand = exports.de_DeleteConversationCommand = exports.de_DeleteChatControlsConfigurationCommand = exports.de_DeleteApplicationCommand = exports.de_CreateWebExperienceCommand = exports.de_CreateUserCommand = exports.de_CreateRetrieverCommand = exports.de_CreatePluginCommand = exports.de_CreateIndexCommand = exports.de_CreateDataSourceCommand = exports.de_CreateApplicationCommand = exports.de_ChatSyncCommand = exports.de_BatchPutDocumentCommand = exports.de_BatchDeleteDocumentCommand = exports.se_UpdateWebExperienceCommand = exports.se_UpdateUserCommand = exports.se_UpdateRetrieverCommand = exports.se_UpdatePluginCommand = exports.se_UpdateIndexCommand = void 0;
|
|
5
|
+
exports.de_UpdateWebExperienceCommand = exports.de_UpdateUserCommand = exports.de_UpdateRetrieverCommand = exports.de_UpdatePluginCommand = exports.de_UpdateIndexCommand = exports.de_UpdateDataSourceCommand = exports.de_UpdateChatControlsConfigurationCommand = exports.de_UpdateApplicationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = void 0;
|
|
6
|
+
const core_1 = require("@aws-sdk/core");
|
|
7
|
+
const protocol_http_1 = require("@smithy/protocol-http");
|
|
8
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
9
|
+
const uuid_1 = require("uuid");
|
|
10
|
+
const models_0_1 = require("../models/models_0");
|
|
11
|
+
const QBusinessServiceException_1 = require("../models/QBusinessServiceException");
|
|
12
|
+
const se_BatchDeleteDocumentCommand = async (input, context) => {
|
|
13
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
14
|
+
const headers = {
|
|
15
|
+
"content-type": "application/json",
|
|
16
|
+
};
|
|
17
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
18
|
+
"/applications/{applicationId}/indices/{indexId}/documents/delete";
|
|
19
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
20
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "indexId", () => input.indexId, "{indexId}", false);
|
|
21
|
+
let body;
|
|
22
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
23
|
+
dataSourceSyncId: [],
|
|
24
|
+
documents: (_) => (0, smithy_client_1._json)(_),
|
|
25
|
+
}));
|
|
26
|
+
return new protocol_http_1.HttpRequest({
|
|
27
|
+
protocol,
|
|
28
|
+
hostname,
|
|
29
|
+
port,
|
|
30
|
+
method: "POST",
|
|
31
|
+
headers,
|
|
32
|
+
path: resolvedPath,
|
|
33
|
+
body,
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
exports.se_BatchDeleteDocumentCommand = se_BatchDeleteDocumentCommand;
|
|
37
|
+
const se_BatchPutDocumentCommand = async (input, context) => {
|
|
38
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
39
|
+
const headers = {
|
|
40
|
+
"content-type": "application/json",
|
|
41
|
+
};
|
|
42
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
43
|
+
"/applications/{applicationId}/indices/{indexId}/documents";
|
|
44
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
45
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "indexId", () => input.indexId, "{indexId}", false);
|
|
46
|
+
let body;
|
|
47
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
48
|
+
dataSourceSyncId: [],
|
|
49
|
+
documents: (_) => se_Documents(_, context),
|
|
50
|
+
roleArn: [],
|
|
51
|
+
}));
|
|
52
|
+
return new protocol_http_1.HttpRequest({
|
|
53
|
+
protocol,
|
|
54
|
+
hostname,
|
|
55
|
+
port,
|
|
56
|
+
method: "POST",
|
|
57
|
+
headers,
|
|
58
|
+
path: resolvedPath,
|
|
59
|
+
body,
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
exports.se_BatchPutDocumentCommand = se_BatchPutDocumentCommand;
|
|
63
|
+
const se_ChatSyncCommand = async (input, context) => {
|
|
64
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
65
|
+
const headers = {
|
|
66
|
+
"content-type": "application/json",
|
|
67
|
+
};
|
|
68
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
69
|
+
"/applications/{applicationId}/conversations";
|
|
70
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
71
|
+
const query = (0, smithy_client_1.map)({
|
|
72
|
+
sync: [, ""],
|
|
73
|
+
userId: [, (0, smithy_client_1.expectNonNull)(input.userId, `userId`)],
|
|
74
|
+
userGroups: [() => input.userGroups !== void 0, () => (input.userGroups || []).map((_entry) => _entry)],
|
|
75
|
+
});
|
|
76
|
+
let body;
|
|
77
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
78
|
+
actionExecution: (_) => se_ActionExecution(_, context),
|
|
79
|
+
attachments: (_) => se_AttachmentsInput(_, context),
|
|
80
|
+
attributeFilter: (_) => se_AttributeFilter(_, context),
|
|
81
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
82
|
+
conversationId: [],
|
|
83
|
+
parentMessageId: [],
|
|
84
|
+
userMessage: [],
|
|
85
|
+
}));
|
|
86
|
+
return new protocol_http_1.HttpRequest({
|
|
87
|
+
protocol,
|
|
88
|
+
hostname,
|
|
89
|
+
port,
|
|
90
|
+
method: "POST",
|
|
91
|
+
headers,
|
|
92
|
+
path: resolvedPath,
|
|
93
|
+
query,
|
|
94
|
+
body,
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
exports.se_ChatSyncCommand = se_ChatSyncCommand;
|
|
98
|
+
const se_CreateApplicationCommand = async (input, context) => {
|
|
99
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
100
|
+
const headers = {
|
|
101
|
+
"content-type": "application/json",
|
|
102
|
+
};
|
|
103
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
|
|
104
|
+
let body;
|
|
105
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
106
|
+
attachmentsConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
107
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
108
|
+
description: [],
|
|
109
|
+
displayName: [],
|
|
110
|
+
encryptionConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
111
|
+
roleArn: [],
|
|
112
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
113
|
+
}));
|
|
114
|
+
return new protocol_http_1.HttpRequest({
|
|
115
|
+
protocol,
|
|
116
|
+
hostname,
|
|
117
|
+
port,
|
|
118
|
+
method: "POST",
|
|
119
|
+
headers,
|
|
120
|
+
path: resolvedPath,
|
|
121
|
+
body,
|
|
122
|
+
});
|
|
123
|
+
};
|
|
124
|
+
exports.se_CreateApplicationCommand = se_CreateApplicationCommand;
|
|
125
|
+
const se_CreateDataSourceCommand = async (input, context) => {
|
|
126
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
127
|
+
const headers = {
|
|
128
|
+
"content-type": "application/json",
|
|
129
|
+
};
|
|
130
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
131
|
+
"/applications/{applicationId}/indices/{indexId}/datasources";
|
|
132
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
133
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "indexId", () => input.indexId, "{indexId}", false);
|
|
134
|
+
let body;
|
|
135
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
136
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
137
|
+
configuration: (_) => se_DataSourceConfiguration(_, context),
|
|
138
|
+
description: [],
|
|
139
|
+
displayName: [],
|
|
140
|
+
documentEnrichmentConfiguration: (_) => se_DocumentEnrichmentConfiguration(_, context),
|
|
141
|
+
roleArn: [],
|
|
142
|
+
syncSchedule: [],
|
|
143
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
144
|
+
vpcConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
145
|
+
}));
|
|
146
|
+
return new protocol_http_1.HttpRequest({
|
|
147
|
+
protocol,
|
|
148
|
+
hostname,
|
|
149
|
+
port,
|
|
150
|
+
method: "POST",
|
|
151
|
+
headers,
|
|
152
|
+
path: resolvedPath,
|
|
153
|
+
body,
|
|
154
|
+
});
|
|
155
|
+
};
|
|
156
|
+
exports.se_CreateDataSourceCommand = se_CreateDataSourceCommand;
|
|
157
|
+
const se_CreateIndexCommand = async (input, context) => {
|
|
158
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
159
|
+
const headers = {
|
|
160
|
+
"content-type": "application/json",
|
|
161
|
+
};
|
|
162
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/indices";
|
|
163
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
164
|
+
let body;
|
|
165
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
166
|
+
capacityConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
167
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
168
|
+
description: [],
|
|
169
|
+
displayName: [],
|
|
170
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
171
|
+
}));
|
|
172
|
+
return new protocol_http_1.HttpRequest({
|
|
173
|
+
protocol,
|
|
174
|
+
hostname,
|
|
175
|
+
port,
|
|
176
|
+
method: "POST",
|
|
177
|
+
headers,
|
|
178
|
+
path: resolvedPath,
|
|
179
|
+
body,
|
|
180
|
+
});
|
|
181
|
+
};
|
|
182
|
+
exports.se_CreateIndexCommand = se_CreateIndexCommand;
|
|
183
|
+
const se_CreatePluginCommand = async (input, context) => {
|
|
184
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
185
|
+
const headers = {
|
|
186
|
+
"content-type": "application/json",
|
|
187
|
+
};
|
|
188
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/plugins";
|
|
189
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
190
|
+
let body;
|
|
191
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
192
|
+
authConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
193
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
194
|
+
displayName: [],
|
|
195
|
+
serverUrl: [],
|
|
196
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
197
|
+
type: [],
|
|
198
|
+
}));
|
|
199
|
+
return new protocol_http_1.HttpRequest({
|
|
200
|
+
protocol,
|
|
201
|
+
hostname,
|
|
202
|
+
port,
|
|
203
|
+
method: "POST",
|
|
204
|
+
headers,
|
|
205
|
+
path: resolvedPath,
|
|
206
|
+
body,
|
|
207
|
+
});
|
|
208
|
+
};
|
|
209
|
+
exports.se_CreatePluginCommand = se_CreatePluginCommand;
|
|
210
|
+
const se_CreateRetrieverCommand = async (input, context) => {
|
|
211
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
212
|
+
const headers = {
|
|
213
|
+
"content-type": "application/json",
|
|
214
|
+
};
|
|
215
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/retrievers";
|
|
216
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
217
|
+
let body;
|
|
218
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
219
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
220
|
+
configuration: (_) => (0, smithy_client_1._json)(_),
|
|
221
|
+
displayName: [],
|
|
222
|
+
roleArn: [],
|
|
223
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
224
|
+
type: [],
|
|
225
|
+
}));
|
|
226
|
+
return new protocol_http_1.HttpRequest({
|
|
227
|
+
protocol,
|
|
228
|
+
hostname,
|
|
229
|
+
port,
|
|
230
|
+
method: "POST",
|
|
231
|
+
headers,
|
|
232
|
+
path: resolvedPath,
|
|
233
|
+
body,
|
|
234
|
+
});
|
|
235
|
+
};
|
|
236
|
+
exports.se_CreateRetrieverCommand = se_CreateRetrieverCommand;
|
|
237
|
+
const se_CreateUserCommand = async (input, context) => {
|
|
238
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
239
|
+
const headers = {
|
|
240
|
+
"content-type": "application/json",
|
|
241
|
+
};
|
|
242
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/users";
|
|
243
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
244
|
+
let body;
|
|
245
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
246
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
247
|
+
userAliases: (_) => (0, smithy_client_1._json)(_),
|
|
248
|
+
userId: [],
|
|
249
|
+
}));
|
|
250
|
+
return new protocol_http_1.HttpRequest({
|
|
251
|
+
protocol,
|
|
252
|
+
hostname,
|
|
253
|
+
port,
|
|
254
|
+
method: "POST",
|
|
255
|
+
headers,
|
|
256
|
+
path: resolvedPath,
|
|
257
|
+
body,
|
|
258
|
+
});
|
|
259
|
+
};
|
|
260
|
+
exports.se_CreateUserCommand = se_CreateUserCommand;
|
|
261
|
+
const se_CreateWebExperienceCommand = async (input, context) => {
|
|
262
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
263
|
+
const headers = {
|
|
264
|
+
"content-type": "application/json",
|
|
265
|
+
};
|
|
266
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/experiences";
|
|
267
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
268
|
+
let body;
|
|
269
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
270
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
271
|
+
samplePromptsControlMode: [],
|
|
272
|
+
subtitle: [],
|
|
273
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
274
|
+
title: [],
|
|
275
|
+
welcomeMessage: [],
|
|
276
|
+
}));
|
|
277
|
+
return new protocol_http_1.HttpRequest({
|
|
278
|
+
protocol,
|
|
279
|
+
hostname,
|
|
280
|
+
port,
|
|
281
|
+
method: "POST",
|
|
282
|
+
headers,
|
|
283
|
+
path: resolvedPath,
|
|
284
|
+
body,
|
|
285
|
+
});
|
|
286
|
+
};
|
|
287
|
+
exports.se_CreateWebExperienceCommand = se_CreateWebExperienceCommand;
|
|
288
|
+
const se_DeleteApplicationCommand = async (input, context) => {
|
|
289
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
290
|
+
const headers = {};
|
|
291
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}";
|
|
292
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
293
|
+
let body;
|
|
294
|
+
return new protocol_http_1.HttpRequest({
|
|
295
|
+
protocol,
|
|
296
|
+
hostname,
|
|
297
|
+
port,
|
|
298
|
+
method: "DELETE",
|
|
299
|
+
headers,
|
|
300
|
+
path: resolvedPath,
|
|
301
|
+
body,
|
|
302
|
+
});
|
|
303
|
+
};
|
|
304
|
+
exports.se_DeleteApplicationCommand = se_DeleteApplicationCommand;
|
|
305
|
+
const se_DeleteChatControlsConfigurationCommand = async (input, context) => {
|
|
306
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
307
|
+
const headers = {};
|
|
308
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
309
|
+
"/applications/{applicationId}/chatcontrols";
|
|
310
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
311
|
+
let body;
|
|
312
|
+
return new protocol_http_1.HttpRequest({
|
|
313
|
+
protocol,
|
|
314
|
+
hostname,
|
|
315
|
+
port,
|
|
316
|
+
method: "DELETE",
|
|
317
|
+
headers,
|
|
318
|
+
path: resolvedPath,
|
|
319
|
+
body,
|
|
320
|
+
});
|
|
321
|
+
};
|
|
322
|
+
exports.se_DeleteChatControlsConfigurationCommand = se_DeleteChatControlsConfigurationCommand;
|
|
323
|
+
const se_DeleteConversationCommand = async (input, context) => {
|
|
324
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
325
|
+
const headers = {};
|
|
326
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
327
|
+
"/applications/{applicationId}/conversations/{conversationId}";
|
|
328
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "conversationId", () => input.conversationId, "{conversationId}", false);
|
|
329
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
330
|
+
const query = (0, smithy_client_1.map)({
|
|
331
|
+
userId: [, (0, smithy_client_1.expectNonNull)(input.userId, `userId`)],
|
|
332
|
+
});
|
|
333
|
+
let body;
|
|
334
|
+
return new protocol_http_1.HttpRequest({
|
|
335
|
+
protocol,
|
|
336
|
+
hostname,
|
|
337
|
+
port,
|
|
338
|
+
method: "DELETE",
|
|
339
|
+
headers,
|
|
340
|
+
path: resolvedPath,
|
|
341
|
+
query,
|
|
342
|
+
body,
|
|
343
|
+
});
|
|
344
|
+
};
|
|
345
|
+
exports.se_DeleteConversationCommand = se_DeleteConversationCommand;
|
|
346
|
+
const se_DeleteDataSourceCommand = async (input, context) => {
|
|
347
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
348
|
+
const headers = {};
|
|
349
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
350
|
+
"/applications/{applicationId}/indices/{indexId}/datasources/{dataSourceId}";
|
|
351
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
352
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "indexId", () => input.indexId, "{indexId}", false);
|
|
353
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dataSourceId", () => input.dataSourceId, "{dataSourceId}", false);
|
|
354
|
+
let body;
|
|
355
|
+
return new protocol_http_1.HttpRequest({
|
|
356
|
+
protocol,
|
|
357
|
+
hostname,
|
|
358
|
+
port,
|
|
359
|
+
method: "DELETE",
|
|
360
|
+
headers,
|
|
361
|
+
path: resolvedPath,
|
|
362
|
+
body,
|
|
363
|
+
});
|
|
364
|
+
};
|
|
365
|
+
exports.se_DeleteDataSourceCommand = se_DeleteDataSourceCommand;
|
|
366
|
+
const se_DeleteGroupCommand = async (input, context) => {
|
|
367
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
368
|
+
const headers = {};
|
|
369
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
370
|
+
"/applications/{applicationId}/indices/{indexId}/groups/{groupName}";
|
|
371
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
372
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "indexId", () => input.indexId, "{indexId}", false);
|
|
373
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "groupName", () => input.groupName, "{groupName}", false);
|
|
374
|
+
const query = (0, smithy_client_1.map)({
|
|
375
|
+
dataSourceId: [, input.dataSourceId],
|
|
376
|
+
});
|
|
377
|
+
let body;
|
|
378
|
+
return new protocol_http_1.HttpRequest({
|
|
379
|
+
protocol,
|
|
380
|
+
hostname,
|
|
381
|
+
port,
|
|
382
|
+
method: "DELETE",
|
|
383
|
+
headers,
|
|
384
|
+
path: resolvedPath,
|
|
385
|
+
query,
|
|
386
|
+
body,
|
|
387
|
+
});
|
|
388
|
+
};
|
|
389
|
+
exports.se_DeleteGroupCommand = se_DeleteGroupCommand;
|
|
390
|
+
const se_DeleteIndexCommand = async (input, context) => {
|
|
391
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
392
|
+
const headers = {};
|
|
393
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
394
|
+
"/applications/{applicationId}/indices/{indexId}";
|
|
395
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
396
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "indexId", () => input.indexId, "{indexId}", false);
|
|
397
|
+
let body;
|
|
398
|
+
return new protocol_http_1.HttpRequest({
|
|
399
|
+
protocol,
|
|
400
|
+
hostname,
|
|
401
|
+
port,
|
|
402
|
+
method: "DELETE",
|
|
403
|
+
headers,
|
|
404
|
+
path: resolvedPath,
|
|
405
|
+
body,
|
|
406
|
+
});
|
|
407
|
+
};
|
|
408
|
+
exports.se_DeleteIndexCommand = se_DeleteIndexCommand;
|
|
409
|
+
const se_DeletePluginCommand = async (input, context) => {
|
|
410
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
411
|
+
const headers = {};
|
|
412
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
413
|
+
"/applications/{applicationId}/plugins/{pluginId}";
|
|
414
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
415
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "pluginId", () => input.pluginId, "{pluginId}", false);
|
|
416
|
+
let body;
|
|
417
|
+
return new protocol_http_1.HttpRequest({
|
|
418
|
+
protocol,
|
|
419
|
+
hostname,
|
|
420
|
+
port,
|
|
421
|
+
method: "DELETE",
|
|
422
|
+
headers,
|
|
423
|
+
path: resolvedPath,
|
|
424
|
+
body,
|
|
425
|
+
});
|
|
426
|
+
};
|
|
427
|
+
exports.se_DeletePluginCommand = se_DeletePluginCommand;
|
|
428
|
+
const se_DeleteRetrieverCommand = async (input, context) => {
|
|
429
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
430
|
+
const headers = {};
|
|
431
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
432
|
+
"/applications/{applicationId}/retrievers/{retrieverId}";
|
|
433
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
434
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "retrieverId", () => input.retrieverId, "{retrieverId}", false);
|
|
435
|
+
let body;
|
|
436
|
+
return new protocol_http_1.HttpRequest({
|
|
437
|
+
protocol,
|
|
438
|
+
hostname,
|
|
439
|
+
port,
|
|
440
|
+
method: "DELETE",
|
|
441
|
+
headers,
|
|
442
|
+
path: resolvedPath,
|
|
443
|
+
body,
|
|
444
|
+
});
|
|
445
|
+
};
|
|
446
|
+
exports.se_DeleteRetrieverCommand = se_DeleteRetrieverCommand;
|
|
447
|
+
const se_DeleteUserCommand = async (input, context) => {
|
|
448
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
449
|
+
const headers = {};
|
|
450
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
451
|
+
"/applications/{applicationId}/users/{userId}";
|
|
452
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
453
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
|
|
454
|
+
let body;
|
|
455
|
+
return new protocol_http_1.HttpRequest({
|
|
456
|
+
protocol,
|
|
457
|
+
hostname,
|
|
458
|
+
port,
|
|
459
|
+
method: "DELETE",
|
|
460
|
+
headers,
|
|
461
|
+
path: resolvedPath,
|
|
462
|
+
body,
|
|
463
|
+
});
|
|
464
|
+
};
|
|
465
|
+
exports.se_DeleteUserCommand = se_DeleteUserCommand;
|
|
466
|
+
const se_DeleteWebExperienceCommand = async (input, context) => {
|
|
467
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
468
|
+
const headers = {};
|
|
469
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
470
|
+
"/applications/{applicationId}/experiences/{webExperienceId}";
|
|
471
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
472
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "webExperienceId", () => input.webExperienceId, "{webExperienceId}", false);
|
|
473
|
+
let body;
|
|
474
|
+
return new protocol_http_1.HttpRequest({
|
|
475
|
+
protocol,
|
|
476
|
+
hostname,
|
|
477
|
+
port,
|
|
478
|
+
method: "DELETE",
|
|
479
|
+
headers,
|
|
480
|
+
path: resolvedPath,
|
|
481
|
+
body,
|
|
482
|
+
});
|
|
483
|
+
};
|
|
484
|
+
exports.se_DeleteWebExperienceCommand = se_DeleteWebExperienceCommand;
|
|
485
|
+
const se_GetApplicationCommand = async (input, context) => {
|
|
486
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
487
|
+
const headers = {};
|
|
488
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}";
|
|
489
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
490
|
+
let body;
|
|
491
|
+
return new protocol_http_1.HttpRequest({
|
|
492
|
+
protocol,
|
|
493
|
+
hostname,
|
|
494
|
+
port,
|
|
495
|
+
method: "GET",
|
|
496
|
+
headers,
|
|
497
|
+
path: resolvedPath,
|
|
498
|
+
body,
|
|
499
|
+
});
|
|
500
|
+
};
|
|
501
|
+
exports.se_GetApplicationCommand = se_GetApplicationCommand;
|
|
502
|
+
const se_GetChatControlsConfigurationCommand = async (input, context) => {
|
|
503
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
504
|
+
const headers = {};
|
|
505
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
506
|
+
"/applications/{applicationId}/chatcontrols";
|
|
507
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
508
|
+
const query = (0, smithy_client_1.map)({
|
|
509
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
510
|
+
nextToken: [, input.nextToken],
|
|
511
|
+
});
|
|
512
|
+
let body;
|
|
513
|
+
return new protocol_http_1.HttpRequest({
|
|
514
|
+
protocol,
|
|
515
|
+
hostname,
|
|
516
|
+
port,
|
|
517
|
+
method: "GET",
|
|
518
|
+
headers,
|
|
519
|
+
path: resolvedPath,
|
|
520
|
+
query,
|
|
521
|
+
body,
|
|
522
|
+
});
|
|
523
|
+
};
|
|
524
|
+
exports.se_GetChatControlsConfigurationCommand = se_GetChatControlsConfigurationCommand;
|
|
525
|
+
const se_GetDataSourceCommand = async (input, context) => {
|
|
526
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
527
|
+
const headers = {};
|
|
528
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
529
|
+
"/applications/{applicationId}/indices/{indexId}/datasources/{dataSourceId}";
|
|
530
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
531
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "indexId", () => input.indexId, "{indexId}", false);
|
|
532
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dataSourceId", () => input.dataSourceId, "{dataSourceId}", false);
|
|
533
|
+
let body;
|
|
534
|
+
return new protocol_http_1.HttpRequest({
|
|
535
|
+
protocol,
|
|
536
|
+
hostname,
|
|
537
|
+
port,
|
|
538
|
+
method: "GET",
|
|
539
|
+
headers,
|
|
540
|
+
path: resolvedPath,
|
|
541
|
+
body,
|
|
542
|
+
});
|
|
543
|
+
};
|
|
544
|
+
exports.se_GetDataSourceCommand = se_GetDataSourceCommand;
|
|
545
|
+
const se_GetGroupCommand = async (input, context) => {
|
|
546
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
547
|
+
const headers = {};
|
|
548
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
549
|
+
"/applications/{applicationId}/indices/{indexId}/groups/{groupName}";
|
|
550
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
551
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "indexId", () => input.indexId, "{indexId}", false);
|
|
552
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "groupName", () => input.groupName, "{groupName}", false);
|
|
553
|
+
const query = (0, smithy_client_1.map)({
|
|
554
|
+
dataSourceId: [, input.dataSourceId],
|
|
555
|
+
});
|
|
556
|
+
let body;
|
|
557
|
+
return new protocol_http_1.HttpRequest({
|
|
558
|
+
protocol,
|
|
559
|
+
hostname,
|
|
560
|
+
port,
|
|
561
|
+
method: "GET",
|
|
562
|
+
headers,
|
|
563
|
+
path: resolvedPath,
|
|
564
|
+
query,
|
|
565
|
+
body,
|
|
566
|
+
});
|
|
567
|
+
};
|
|
568
|
+
exports.se_GetGroupCommand = se_GetGroupCommand;
|
|
569
|
+
const se_GetIndexCommand = async (input, context) => {
|
|
570
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
571
|
+
const headers = {};
|
|
572
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
573
|
+
"/applications/{applicationId}/indices/{indexId}";
|
|
574
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
575
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "indexId", () => input.indexId, "{indexId}", false);
|
|
576
|
+
let body;
|
|
577
|
+
return new protocol_http_1.HttpRequest({
|
|
578
|
+
protocol,
|
|
579
|
+
hostname,
|
|
580
|
+
port,
|
|
581
|
+
method: "GET",
|
|
582
|
+
headers,
|
|
583
|
+
path: resolvedPath,
|
|
584
|
+
body,
|
|
585
|
+
});
|
|
586
|
+
};
|
|
587
|
+
exports.se_GetIndexCommand = se_GetIndexCommand;
|
|
588
|
+
const se_GetPluginCommand = async (input, context) => {
|
|
589
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
590
|
+
const headers = {};
|
|
591
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
592
|
+
"/applications/{applicationId}/plugins/{pluginId}";
|
|
593
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
594
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "pluginId", () => input.pluginId, "{pluginId}", false);
|
|
595
|
+
let body;
|
|
596
|
+
return new protocol_http_1.HttpRequest({
|
|
597
|
+
protocol,
|
|
598
|
+
hostname,
|
|
599
|
+
port,
|
|
600
|
+
method: "GET",
|
|
601
|
+
headers,
|
|
602
|
+
path: resolvedPath,
|
|
603
|
+
body,
|
|
604
|
+
});
|
|
605
|
+
};
|
|
606
|
+
exports.se_GetPluginCommand = se_GetPluginCommand;
|
|
607
|
+
const se_GetRetrieverCommand = async (input, context) => {
|
|
608
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
609
|
+
const headers = {};
|
|
610
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
611
|
+
"/applications/{applicationId}/retrievers/{retrieverId}";
|
|
612
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
613
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "retrieverId", () => input.retrieverId, "{retrieverId}", false);
|
|
614
|
+
let body;
|
|
615
|
+
return new protocol_http_1.HttpRequest({
|
|
616
|
+
protocol,
|
|
617
|
+
hostname,
|
|
618
|
+
port,
|
|
619
|
+
method: "GET",
|
|
620
|
+
headers,
|
|
621
|
+
path: resolvedPath,
|
|
622
|
+
body,
|
|
623
|
+
});
|
|
624
|
+
};
|
|
625
|
+
exports.se_GetRetrieverCommand = se_GetRetrieverCommand;
|
|
626
|
+
const se_GetUserCommand = async (input, context) => {
|
|
627
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
628
|
+
const headers = {};
|
|
629
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
630
|
+
"/applications/{applicationId}/users/{userId}";
|
|
631
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
632
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
|
|
633
|
+
let body;
|
|
634
|
+
return new protocol_http_1.HttpRequest({
|
|
635
|
+
protocol,
|
|
636
|
+
hostname,
|
|
637
|
+
port,
|
|
638
|
+
method: "GET",
|
|
639
|
+
headers,
|
|
640
|
+
path: resolvedPath,
|
|
641
|
+
body,
|
|
642
|
+
});
|
|
643
|
+
};
|
|
644
|
+
exports.se_GetUserCommand = se_GetUserCommand;
|
|
645
|
+
const se_GetWebExperienceCommand = async (input, context) => {
|
|
646
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
647
|
+
const headers = {};
|
|
648
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
649
|
+
"/applications/{applicationId}/experiences/{webExperienceId}";
|
|
650
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
651
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "webExperienceId", () => input.webExperienceId, "{webExperienceId}", false);
|
|
652
|
+
let body;
|
|
653
|
+
return new protocol_http_1.HttpRequest({
|
|
654
|
+
protocol,
|
|
655
|
+
hostname,
|
|
656
|
+
port,
|
|
657
|
+
method: "GET",
|
|
658
|
+
headers,
|
|
659
|
+
path: resolvedPath,
|
|
660
|
+
body,
|
|
661
|
+
});
|
|
662
|
+
};
|
|
663
|
+
exports.se_GetWebExperienceCommand = se_GetWebExperienceCommand;
|
|
664
|
+
const se_ListApplicationsCommand = async (input, context) => {
|
|
665
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
666
|
+
const headers = {};
|
|
667
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
|
|
668
|
+
const query = (0, smithy_client_1.map)({
|
|
669
|
+
nextToken: [, input.nextToken],
|
|
670
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
671
|
+
});
|
|
672
|
+
let body;
|
|
673
|
+
return new protocol_http_1.HttpRequest({
|
|
674
|
+
protocol,
|
|
675
|
+
hostname,
|
|
676
|
+
port,
|
|
677
|
+
method: "GET",
|
|
678
|
+
headers,
|
|
679
|
+
path: resolvedPath,
|
|
680
|
+
query,
|
|
681
|
+
body,
|
|
682
|
+
});
|
|
683
|
+
};
|
|
684
|
+
exports.se_ListApplicationsCommand = se_ListApplicationsCommand;
|
|
685
|
+
const se_ListConversationsCommand = async (input, context) => {
|
|
686
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
687
|
+
const headers = {};
|
|
688
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
689
|
+
"/applications/{applicationId}/conversations";
|
|
690
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
691
|
+
const query = (0, smithy_client_1.map)({
|
|
692
|
+
userId: [, (0, smithy_client_1.expectNonNull)(input.userId, `userId`)],
|
|
693
|
+
nextToken: [, input.nextToken],
|
|
694
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
695
|
+
});
|
|
696
|
+
let body;
|
|
697
|
+
return new protocol_http_1.HttpRequest({
|
|
698
|
+
protocol,
|
|
699
|
+
hostname,
|
|
700
|
+
port,
|
|
701
|
+
method: "GET",
|
|
702
|
+
headers,
|
|
703
|
+
path: resolvedPath,
|
|
704
|
+
query,
|
|
705
|
+
body,
|
|
706
|
+
});
|
|
707
|
+
};
|
|
708
|
+
exports.se_ListConversationsCommand = se_ListConversationsCommand;
|
|
709
|
+
const se_ListDataSourcesCommand = async (input, context) => {
|
|
710
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
711
|
+
const headers = {};
|
|
712
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
713
|
+
"/applications/{applicationId}/indices/{indexId}/datasources";
|
|
714
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
715
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "indexId", () => input.indexId, "{indexId}", false);
|
|
716
|
+
const query = (0, smithy_client_1.map)({
|
|
717
|
+
nextToken: [, input.nextToken],
|
|
718
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
719
|
+
});
|
|
720
|
+
let body;
|
|
721
|
+
return new protocol_http_1.HttpRequest({
|
|
722
|
+
protocol,
|
|
723
|
+
hostname,
|
|
724
|
+
port,
|
|
725
|
+
method: "GET",
|
|
726
|
+
headers,
|
|
727
|
+
path: resolvedPath,
|
|
728
|
+
query,
|
|
729
|
+
body,
|
|
730
|
+
});
|
|
731
|
+
};
|
|
732
|
+
exports.se_ListDataSourcesCommand = se_ListDataSourcesCommand;
|
|
733
|
+
const se_ListDataSourceSyncJobsCommand = async (input, context) => {
|
|
734
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
735
|
+
const headers = {};
|
|
736
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
737
|
+
"/applications/{applicationId}/indices/{indexId}/datasources/{dataSourceId}/syncjobs";
|
|
738
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dataSourceId", () => input.dataSourceId, "{dataSourceId}", false);
|
|
739
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
740
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "indexId", () => input.indexId, "{indexId}", false);
|
|
741
|
+
const query = (0, smithy_client_1.map)({
|
|
742
|
+
nextToken: [, input.nextToken],
|
|
743
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
744
|
+
startTime: [
|
|
745
|
+
() => input.startTime !== void 0,
|
|
746
|
+
() => (input.startTime.toISOString().split(".")[0] + "Z").toString(),
|
|
747
|
+
],
|
|
748
|
+
endTime: [() => input.endTime !== void 0, () => (input.endTime.toISOString().split(".")[0] + "Z").toString()],
|
|
749
|
+
syncStatus: [, input.statusFilter],
|
|
750
|
+
});
|
|
751
|
+
let body;
|
|
752
|
+
return new protocol_http_1.HttpRequest({
|
|
753
|
+
protocol,
|
|
754
|
+
hostname,
|
|
755
|
+
port,
|
|
756
|
+
method: "GET",
|
|
757
|
+
headers,
|
|
758
|
+
path: resolvedPath,
|
|
759
|
+
query,
|
|
760
|
+
body,
|
|
761
|
+
});
|
|
762
|
+
};
|
|
763
|
+
exports.se_ListDataSourceSyncJobsCommand = se_ListDataSourceSyncJobsCommand;
|
|
764
|
+
const se_ListDocumentsCommand = async (input, context) => {
|
|
765
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
766
|
+
const headers = {};
|
|
767
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
768
|
+
"/applications/{applicationId}/index/{indexId}/documents";
|
|
769
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
770
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "indexId", () => input.indexId, "{indexId}", false);
|
|
771
|
+
const query = (0, smithy_client_1.map)({
|
|
772
|
+
dataSourceIds: [
|
|
773
|
+
() => input.dataSourceIds !== void 0,
|
|
774
|
+
() => (input.dataSourceIds || []).map((_entry) => _entry),
|
|
775
|
+
],
|
|
776
|
+
nextToken: [, input.nextToken],
|
|
777
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
778
|
+
});
|
|
779
|
+
let body;
|
|
780
|
+
return new protocol_http_1.HttpRequest({
|
|
781
|
+
protocol,
|
|
782
|
+
hostname,
|
|
783
|
+
port,
|
|
784
|
+
method: "GET",
|
|
785
|
+
headers,
|
|
786
|
+
path: resolvedPath,
|
|
787
|
+
query,
|
|
788
|
+
body,
|
|
789
|
+
});
|
|
790
|
+
};
|
|
791
|
+
exports.se_ListDocumentsCommand = se_ListDocumentsCommand;
|
|
792
|
+
const se_ListGroupsCommand = async (input, context) => {
|
|
793
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
794
|
+
const headers = {};
|
|
795
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
796
|
+
"/applications/{applicationId}/indices/{indexId}/groups";
|
|
797
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
798
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "indexId", () => input.indexId, "{indexId}", false);
|
|
799
|
+
const query = (0, smithy_client_1.map)({
|
|
800
|
+
updatedEarlierThan: [
|
|
801
|
+
(0, smithy_client_1.expectNonNull)(input.updatedEarlierThan, `updatedEarlierThan`) != null,
|
|
802
|
+
() => (input.updatedEarlierThan.toISOString().split(".")[0] + "Z").toString(),
|
|
803
|
+
],
|
|
804
|
+
dataSourceId: [, input.dataSourceId],
|
|
805
|
+
nextToken: [, input.nextToken],
|
|
806
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
807
|
+
});
|
|
808
|
+
let body;
|
|
809
|
+
return new protocol_http_1.HttpRequest({
|
|
810
|
+
protocol,
|
|
811
|
+
hostname,
|
|
812
|
+
port,
|
|
813
|
+
method: "GET",
|
|
814
|
+
headers,
|
|
815
|
+
path: resolvedPath,
|
|
816
|
+
query,
|
|
817
|
+
body,
|
|
818
|
+
});
|
|
819
|
+
};
|
|
820
|
+
exports.se_ListGroupsCommand = se_ListGroupsCommand;
|
|
821
|
+
const se_ListIndicesCommand = async (input, context) => {
|
|
822
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
823
|
+
const headers = {};
|
|
824
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/indices";
|
|
825
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
826
|
+
const query = (0, smithy_client_1.map)({
|
|
827
|
+
nextToken: [, input.nextToken],
|
|
828
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
829
|
+
});
|
|
830
|
+
let body;
|
|
831
|
+
return new protocol_http_1.HttpRequest({
|
|
832
|
+
protocol,
|
|
833
|
+
hostname,
|
|
834
|
+
port,
|
|
835
|
+
method: "GET",
|
|
836
|
+
headers,
|
|
837
|
+
path: resolvedPath,
|
|
838
|
+
query,
|
|
839
|
+
body,
|
|
840
|
+
});
|
|
841
|
+
};
|
|
842
|
+
exports.se_ListIndicesCommand = se_ListIndicesCommand;
|
|
843
|
+
const se_ListMessagesCommand = async (input, context) => {
|
|
844
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
845
|
+
const headers = {};
|
|
846
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
847
|
+
"/applications/{applicationId}/conversations/{conversationId}";
|
|
848
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "conversationId", () => input.conversationId, "{conversationId}", false);
|
|
849
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
850
|
+
const query = (0, smithy_client_1.map)({
|
|
851
|
+
userId: [, (0, smithy_client_1.expectNonNull)(input.userId, `userId`)],
|
|
852
|
+
nextToken: [, input.nextToken],
|
|
853
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
854
|
+
});
|
|
855
|
+
let body;
|
|
856
|
+
return new protocol_http_1.HttpRequest({
|
|
857
|
+
protocol,
|
|
858
|
+
hostname,
|
|
859
|
+
port,
|
|
860
|
+
method: "GET",
|
|
861
|
+
headers,
|
|
862
|
+
path: resolvedPath,
|
|
863
|
+
query,
|
|
864
|
+
body,
|
|
865
|
+
});
|
|
866
|
+
};
|
|
867
|
+
exports.se_ListMessagesCommand = se_ListMessagesCommand;
|
|
868
|
+
const se_ListPluginsCommand = async (input, context) => {
|
|
869
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
870
|
+
const headers = {};
|
|
871
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/plugins";
|
|
872
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
873
|
+
const query = (0, smithy_client_1.map)({
|
|
874
|
+
nextToken: [, input.nextToken],
|
|
875
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
876
|
+
});
|
|
877
|
+
let body;
|
|
878
|
+
return new protocol_http_1.HttpRequest({
|
|
879
|
+
protocol,
|
|
880
|
+
hostname,
|
|
881
|
+
port,
|
|
882
|
+
method: "GET",
|
|
883
|
+
headers,
|
|
884
|
+
path: resolvedPath,
|
|
885
|
+
query,
|
|
886
|
+
body,
|
|
887
|
+
});
|
|
888
|
+
};
|
|
889
|
+
exports.se_ListPluginsCommand = se_ListPluginsCommand;
|
|
890
|
+
const se_ListRetrieversCommand = async (input, context) => {
|
|
891
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
892
|
+
const headers = {};
|
|
893
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/retrievers";
|
|
894
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
895
|
+
const query = (0, smithy_client_1.map)({
|
|
896
|
+
nextToken: [, input.nextToken],
|
|
897
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
898
|
+
});
|
|
899
|
+
let body;
|
|
900
|
+
return new protocol_http_1.HttpRequest({
|
|
901
|
+
protocol,
|
|
902
|
+
hostname,
|
|
903
|
+
port,
|
|
904
|
+
method: "GET",
|
|
905
|
+
headers,
|
|
906
|
+
path: resolvedPath,
|
|
907
|
+
query,
|
|
908
|
+
body,
|
|
909
|
+
});
|
|
910
|
+
};
|
|
911
|
+
exports.se_ListRetrieversCommand = se_ListRetrieversCommand;
|
|
912
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
913
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
914
|
+
const headers = {};
|
|
915
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceARN}";
|
|
916
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceARN", () => input.resourceARN, "{resourceARN}", false);
|
|
917
|
+
let body;
|
|
918
|
+
return new protocol_http_1.HttpRequest({
|
|
919
|
+
protocol,
|
|
920
|
+
hostname,
|
|
921
|
+
port,
|
|
922
|
+
method: "GET",
|
|
923
|
+
headers,
|
|
924
|
+
path: resolvedPath,
|
|
925
|
+
body,
|
|
926
|
+
});
|
|
927
|
+
};
|
|
928
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
929
|
+
const se_ListWebExperiencesCommand = async (input, context) => {
|
|
930
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
931
|
+
const headers = {};
|
|
932
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/experiences";
|
|
933
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
934
|
+
const query = (0, smithy_client_1.map)({
|
|
935
|
+
nextToken: [, input.nextToken],
|
|
936
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
937
|
+
});
|
|
938
|
+
let body;
|
|
939
|
+
return new protocol_http_1.HttpRequest({
|
|
940
|
+
protocol,
|
|
941
|
+
hostname,
|
|
942
|
+
port,
|
|
943
|
+
method: "GET",
|
|
944
|
+
headers,
|
|
945
|
+
path: resolvedPath,
|
|
946
|
+
query,
|
|
947
|
+
body,
|
|
948
|
+
});
|
|
949
|
+
};
|
|
950
|
+
exports.se_ListWebExperiencesCommand = se_ListWebExperiencesCommand;
|
|
951
|
+
const se_PutFeedbackCommand = async (input, context) => {
|
|
952
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
953
|
+
const headers = {
|
|
954
|
+
"content-type": "application/json",
|
|
955
|
+
};
|
|
956
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
957
|
+
"/applications/{applicationId}/conversations/{conversationId}/messages/{messageId}/feedback";
|
|
958
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
959
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "conversationId", () => input.conversationId, "{conversationId}", false);
|
|
960
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "messageId", () => input.messageId, "{messageId}", false);
|
|
961
|
+
const query = (0, smithy_client_1.map)({
|
|
962
|
+
userId: [, (0, smithy_client_1.expectNonNull)(input.userId, `userId`)],
|
|
963
|
+
});
|
|
964
|
+
let body;
|
|
965
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
966
|
+
messageCopiedAt: (_) => Math.round(_.getTime() / 1000),
|
|
967
|
+
messageUsefulness: (_) => se_MessageUsefulnessFeedback(_, context),
|
|
968
|
+
}));
|
|
969
|
+
return new protocol_http_1.HttpRequest({
|
|
970
|
+
protocol,
|
|
971
|
+
hostname,
|
|
972
|
+
port,
|
|
973
|
+
method: "POST",
|
|
974
|
+
headers,
|
|
975
|
+
path: resolvedPath,
|
|
976
|
+
query,
|
|
977
|
+
body,
|
|
978
|
+
});
|
|
979
|
+
};
|
|
980
|
+
exports.se_PutFeedbackCommand = se_PutFeedbackCommand;
|
|
981
|
+
const se_PutGroupCommand = async (input, context) => {
|
|
982
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
983
|
+
const headers = {
|
|
984
|
+
"content-type": "application/json",
|
|
985
|
+
};
|
|
986
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
987
|
+
"/applications/{applicationId}/indices/{indexId}/groups";
|
|
988
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
989
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "indexId", () => input.indexId, "{indexId}", false);
|
|
990
|
+
let body;
|
|
991
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
992
|
+
dataSourceId: [],
|
|
993
|
+
groupMembers: (_) => (0, smithy_client_1._json)(_),
|
|
994
|
+
groupName: [],
|
|
995
|
+
type: [],
|
|
996
|
+
}));
|
|
997
|
+
return new protocol_http_1.HttpRequest({
|
|
998
|
+
protocol,
|
|
999
|
+
hostname,
|
|
1000
|
+
port,
|
|
1001
|
+
method: "PUT",
|
|
1002
|
+
headers,
|
|
1003
|
+
path: resolvedPath,
|
|
1004
|
+
body,
|
|
1005
|
+
});
|
|
1006
|
+
};
|
|
1007
|
+
exports.se_PutGroupCommand = se_PutGroupCommand;
|
|
1008
|
+
const se_StartDataSourceSyncJobCommand = async (input, context) => {
|
|
1009
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1010
|
+
const headers = {};
|
|
1011
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1012
|
+
"/applications/{applicationId}/indices/{indexId}/datasources/{dataSourceId}/startsync";
|
|
1013
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dataSourceId", () => input.dataSourceId, "{dataSourceId}", false);
|
|
1014
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
1015
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "indexId", () => input.indexId, "{indexId}", false);
|
|
1016
|
+
let body;
|
|
1017
|
+
return new protocol_http_1.HttpRequest({
|
|
1018
|
+
protocol,
|
|
1019
|
+
hostname,
|
|
1020
|
+
port,
|
|
1021
|
+
method: "POST",
|
|
1022
|
+
headers,
|
|
1023
|
+
path: resolvedPath,
|
|
1024
|
+
body,
|
|
1025
|
+
});
|
|
1026
|
+
};
|
|
1027
|
+
exports.se_StartDataSourceSyncJobCommand = se_StartDataSourceSyncJobCommand;
|
|
1028
|
+
const se_StopDataSourceSyncJobCommand = async (input, context) => {
|
|
1029
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1030
|
+
const headers = {};
|
|
1031
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1032
|
+
"/applications/{applicationId}/indices/{indexId}/datasources/{dataSourceId}/stopsync";
|
|
1033
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dataSourceId", () => input.dataSourceId, "{dataSourceId}", false);
|
|
1034
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
1035
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "indexId", () => input.indexId, "{indexId}", false);
|
|
1036
|
+
let body;
|
|
1037
|
+
return new protocol_http_1.HttpRequest({
|
|
1038
|
+
protocol,
|
|
1039
|
+
hostname,
|
|
1040
|
+
port,
|
|
1041
|
+
method: "POST",
|
|
1042
|
+
headers,
|
|
1043
|
+
path: resolvedPath,
|
|
1044
|
+
body,
|
|
1045
|
+
});
|
|
1046
|
+
};
|
|
1047
|
+
exports.se_StopDataSourceSyncJobCommand = se_StopDataSourceSyncJobCommand;
|
|
1048
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
1049
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1050
|
+
const headers = {
|
|
1051
|
+
"content-type": "application/json",
|
|
1052
|
+
};
|
|
1053
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceARN}";
|
|
1054
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceARN", () => input.resourceARN, "{resourceARN}", false);
|
|
1055
|
+
let body;
|
|
1056
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1057
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
1058
|
+
}));
|
|
1059
|
+
return new protocol_http_1.HttpRequest({
|
|
1060
|
+
protocol,
|
|
1061
|
+
hostname,
|
|
1062
|
+
port,
|
|
1063
|
+
method: "POST",
|
|
1064
|
+
headers,
|
|
1065
|
+
path: resolvedPath,
|
|
1066
|
+
body,
|
|
1067
|
+
});
|
|
1068
|
+
};
|
|
1069
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
1070
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
1071
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1072
|
+
const headers = {};
|
|
1073
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceARN}";
|
|
1074
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceARN", () => input.resourceARN, "{resourceARN}", false);
|
|
1075
|
+
const query = (0, smithy_client_1.map)({
|
|
1076
|
+
tagKeys: [
|
|
1077
|
+
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
1078
|
+
() => (input.tagKeys || []).map((_entry) => _entry),
|
|
1079
|
+
],
|
|
1080
|
+
});
|
|
1081
|
+
let body;
|
|
1082
|
+
return new protocol_http_1.HttpRequest({
|
|
1083
|
+
protocol,
|
|
1084
|
+
hostname,
|
|
1085
|
+
port,
|
|
1086
|
+
method: "DELETE",
|
|
1087
|
+
headers,
|
|
1088
|
+
path: resolvedPath,
|
|
1089
|
+
query,
|
|
1090
|
+
body,
|
|
1091
|
+
});
|
|
1092
|
+
};
|
|
1093
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
1094
|
+
const se_UpdateApplicationCommand = async (input, context) => {
|
|
1095
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1096
|
+
const headers = {
|
|
1097
|
+
"content-type": "application/json",
|
|
1098
|
+
};
|
|
1099
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}";
|
|
1100
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
1101
|
+
let body;
|
|
1102
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1103
|
+
attachmentsConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
1104
|
+
description: [],
|
|
1105
|
+
displayName: [],
|
|
1106
|
+
roleArn: [],
|
|
1107
|
+
}));
|
|
1108
|
+
return new protocol_http_1.HttpRequest({
|
|
1109
|
+
protocol,
|
|
1110
|
+
hostname,
|
|
1111
|
+
port,
|
|
1112
|
+
method: "PUT",
|
|
1113
|
+
headers,
|
|
1114
|
+
path: resolvedPath,
|
|
1115
|
+
body,
|
|
1116
|
+
});
|
|
1117
|
+
};
|
|
1118
|
+
exports.se_UpdateApplicationCommand = se_UpdateApplicationCommand;
|
|
1119
|
+
const se_UpdateChatControlsConfigurationCommand = async (input, context) => {
|
|
1120
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1121
|
+
const headers = {
|
|
1122
|
+
"content-type": "application/json",
|
|
1123
|
+
};
|
|
1124
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1125
|
+
"/applications/{applicationId}/chatcontrols";
|
|
1126
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
1127
|
+
let body;
|
|
1128
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1129
|
+
blockedPhrasesConfigurationUpdate: (_) => (0, smithy_client_1._json)(_),
|
|
1130
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1131
|
+
responseScope: [],
|
|
1132
|
+
topicConfigurationsToCreateOrUpdate: (_) => (0, smithy_client_1._json)(_),
|
|
1133
|
+
topicConfigurationsToDelete: (_) => (0, smithy_client_1._json)(_),
|
|
1134
|
+
}));
|
|
1135
|
+
return new protocol_http_1.HttpRequest({
|
|
1136
|
+
protocol,
|
|
1137
|
+
hostname,
|
|
1138
|
+
port,
|
|
1139
|
+
method: "PATCH",
|
|
1140
|
+
headers,
|
|
1141
|
+
path: resolvedPath,
|
|
1142
|
+
body,
|
|
1143
|
+
});
|
|
1144
|
+
};
|
|
1145
|
+
exports.se_UpdateChatControlsConfigurationCommand = se_UpdateChatControlsConfigurationCommand;
|
|
1146
|
+
const se_UpdateDataSourceCommand = async (input, context) => {
|
|
1147
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1148
|
+
const headers = {
|
|
1149
|
+
"content-type": "application/json",
|
|
1150
|
+
};
|
|
1151
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1152
|
+
"/applications/{applicationId}/indices/{indexId}/datasources/{dataSourceId}";
|
|
1153
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
1154
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "indexId", () => input.indexId, "{indexId}", false);
|
|
1155
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dataSourceId", () => input.dataSourceId, "{dataSourceId}", false);
|
|
1156
|
+
let body;
|
|
1157
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1158
|
+
configuration: (_) => se_DataSourceConfiguration(_, context),
|
|
1159
|
+
description: [],
|
|
1160
|
+
displayName: [],
|
|
1161
|
+
documentEnrichmentConfiguration: (_) => se_DocumentEnrichmentConfiguration(_, context),
|
|
1162
|
+
roleArn: [],
|
|
1163
|
+
syncSchedule: [],
|
|
1164
|
+
vpcConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
1165
|
+
}));
|
|
1166
|
+
return new protocol_http_1.HttpRequest({
|
|
1167
|
+
protocol,
|
|
1168
|
+
hostname,
|
|
1169
|
+
port,
|
|
1170
|
+
method: "PUT",
|
|
1171
|
+
headers,
|
|
1172
|
+
path: resolvedPath,
|
|
1173
|
+
body,
|
|
1174
|
+
});
|
|
1175
|
+
};
|
|
1176
|
+
exports.se_UpdateDataSourceCommand = se_UpdateDataSourceCommand;
|
|
1177
|
+
const se_UpdateIndexCommand = async (input, context) => {
|
|
1178
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1179
|
+
const headers = {
|
|
1180
|
+
"content-type": "application/json",
|
|
1181
|
+
};
|
|
1182
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1183
|
+
"/applications/{applicationId}/indices/{indexId}";
|
|
1184
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
1185
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "indexId", () => input.indexId, "{indexId}", false);
|
|
1186
|
+
let body;
|
|
1187
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1188
|
+
capacityConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
1189
|
+
description: [],
|
|
1190
|
+
displayName: [],
|
|
1191
|
+
documentAttributeConfigurations: (_) => (0, smithy_client_1._json)(_),
|
|
1192
|
+
}));
|
|
1193
|
+
return new protocol_http_1.HttpRequest({
|
|
1194
|
+
protocol,
|
|
1195
|
+
hostname,
|
|
1196
|
+
port,
|
|
1197
|
+
method: "PUT",
|
|
1198
|
+
headers,
|
|
1199
|
+
path: resolvedPath,
|
|
1200
|
+
body,
|
|
1201
|
+
});
|
|
1202
|
+
};
|
|
1203
|
+
exports.se_UpdateIndexCommand = se_UpdateIndexCommand;
|
|
1204
|
+
const se_UpdatePluginCommand = async (input, context) => {
|
|
1205
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1206
|
+
const headers = {
|
|
1207
|
+
"content-type": "application/json",
|
|
1208
|
+
};
|
|
1209
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1210
|
+
"/applications/{applicationId}/plugins/{pluginId}";
|
|
1211
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
1212
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "pluginId", () => input.pluginId, "{pluginId}", false);
|
|
1213
|
+
let body;
|
|
1214
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1215
|
+
authConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
1216
|
+
displayName: [],
|
|
1217
|
+
serverUrl: [],
|
|
1218
|
+
state: [],
|
|
1219
|
+
}));
|
|
1220
|
+
return new protocol_http_1.HttpRequest({
|
|
1221
|
+
protocol,
|
|
1222
|
+
hostname,
|
|
1223
|
+
port,
|
|
1224
|
+
method: "PUT",
|
|
1225
|
+
headers,
|
|
1226
|
+
path: resolvedPath,
|
|
1227
|
+
body,
|
|
1228
|
+
});
|
|
1229
|
+
};
|
|
1230
|
+
exports.se_UpdatePluginCommand = se_UpdatePluginCommand;
|
|
1231
|
+
const se_UpdateRetrieverCommand = async (input, context) => {
|
|
1232
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1233
|
+
const headers = {
|
|
1234
|
+
"content-type": "application/json",
|
|
1235
|
+
};
|
|
1236
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1237
|
+
"/applications/{applicationId}/retrievers/{retrieverId}";
|
|
1238
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
1239
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "retrieverId", () => input.retrieverId, "{retrieverId}", false);
|
|
1240
|
+
let body;
|
|
1241
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1242
|
+
configuration: (_) => (0, smithy_client_1._json)(_),
|
|
1243
|
+
displayName: [],
|
|
1244
|
+
roleArn: [],
|
|
1245
|
+
}));
|
|
1246
|
+
return new protocol_http_1.HttpRequest({
|
|
1247
|
+
protocol,
|
|
1248
|
+
hostname,
|
|
1249
|
+
port,
|
|
1250
|
+
method: "PUT",
|
|
1251
|
+
headers,
|
|
1252
|
+
path: resolvedPath,
|
|
1253
|
+
body,
|
|
1254
|
+
});
|
|
1255
|
+
};
|
|
1256
|
+
exports.se_UpdateRetrieverCommand = se_UpdateRetrieverCommand;
|
|
1257
|
+
const se_UpdateUserCommand = async (input, context) => {
|
|
1258
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1259
|
+
const headers = {
|
|
1260
|
+
"content-type": "application/json",
|
|
1261
|
+
};
|
|
1262
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1263
|
+
"/applications/{applicationId}/users/{userId}";
|
|
1264
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
1265
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
|
|
1266
|
+
let body;
|
|
1267
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1268
|
+
userAliasesToDelete: (_) => (0, smithy_client_1._json)(_),
|
|
1269
|
+
userAliasesToUpdate: (_) => (0, smithy_client_1._json)(_),
|
|
1270
|
+
}));
|
|
1271
|
+
return new protocol_http_1.HttpRequest({
|
|
1272
|
+
protocol,
|
|
1273
|
+
hostname,
|
|
1274
|
+
port,
|
|
1275
|
+
method: "PUT",
|
|
1276
|
+
headers,
|
|
1277
|
+
path: resolvedPath,
|
|
1278
|
+
body,
|
|
1279
|
+
});
|
|
1280
|
+
};
|
|
1281
|
+
exports.se_UpdateUserCommand = se_UpdateUserCommand;
|
|
1282
|
+
const se_UpdateWebExperienceCommand = async (input, context) => {
|
|
1283
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1284
|
+
const headers = {
|
|
1285
|
+
"content-type": "application/json",
|
|
1286
|
+
};
|
|
1287
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1288
|
+
"/applications/{applicationId}/experiences/{webExperienceId}";
|
|
1289
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
1290
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "webExperienceId", () => input.webExperienceId, "{webExperienceId}", false);
|
|
1291
|
+
let body;
|
|
1292
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1293
|
+
authenticationConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
1294
|
+
samplePromptsControlMode: [],
|
|
1295
|
+
subtitle: [],
|
|
1296
|
+
title: [],
|
|
1297
|
+
welcomeMessage: [],
|
|
1298
|
+
}));
|
|
1299
|
+
return new protocol_http_1.HttpRequest({
|
|
1300
|
+
protocol,
|
|
1301
|
+
hostname,
|
|
1302
|
+
port,
|
|
1303
|
+
method: "PUT",
|
|
1304
|
+
headers,
|
|
1305
|
+
path: resolvedPath,
|
|
1306
|
+
body,
|
|
1307
|
+
});
|
|
1308
|
+
};
|
|
1309
|
+
exports.se_UpdateWebExperienceCommand = se_UpdateWebExperienceCommand;
|
|
1310
|
+
const de_BatchDeleteDocumentCommand = async (output, context) => {
|
|
1311
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1312
|
+
return de_BatchDeleteDocumentCommandError(output, context);
|
|
1313
|
+
}
|
|
1314
|
+
const contents = (0, smithy_client_1.map)({
|
|
1315
|
+
$metadata: deserializeMetadata(output),
|
|
1316
|
+
});
|
|
1317
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1318
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1319
|
+
failedDocuments: smithy_client_1._json,
|
|
1320
|
+
});
|
|
1321
|
+
Object.assign(contents, doc);
|
|
1322
|
+
return contents;
|
|
1323
|
+
};
|
|
1324
|
+
exports.de_BatchDeleteDocumentCommand = de_BatchDeleteDocumentCommand;
|
|
1325
|
+
const de_BatchDeleteDocumentCommandError = async (output, context) => {
|
|
1326
|
+
const parsedOutput = {
|
|
1327
|
+
...output,
|
|
1328
|
+
body: await parseErrorBody(output.body, context),
|
|
1329
|
+
};
|
|
1330
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1331
|
+
switch (errorCode) {
|
|
1332
|
+
case "AccessDeniedException":
|
|
1333
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
1334
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1335
|
+
case "ConflictException":
|
|
1336
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
1337
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1338
|
+
case "InternalServerException":
|
|
1339
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
1340
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1341
|
+
case "ResourceNotFoundException":
|
|
1342
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
1343
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1344
|
+
case "ThrottlingException":
|
|
1345
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
1346
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1347
|
+
case "ValidationException":
|
|
1348
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
1349
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1350
|
+
default:
|
|
1351
|
+
const parsedBody = parsedOutput.body;
|
|
1352
|
+
return throwDefaultError({
|
|
1353
|
+
output,
|
|
1354
|
+
parsedBody,
|
|
1355
|
+
errorCode,
|
|
1356
|
+
});
|
|
1357
|
+
}
|
|
1358
|
+
};
|
|
1359
|
+
const de_BatchPutDocumentCommand = async (output, context) => {
|
|
1360
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1361
|
+
return de_BatchPutDocumentCommandError(output, context);
|
|
1362
|
+
}
|
|
1363
|
+
const contents = (0, smithy_client_1.map)({
|
|
1364
|
+
$metadata: deserializeMetadata(output),
|
|
1365
|
+
});
|
|
1366
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1367
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1368
|
+
failedDocuments: smithy_client_1._json,
|
|
1369
|
+
});
|
|
1370
|
+
Object.assign(contents, doc);
|
|
1371
|
+
return contents;
|
|
1372
|
+
};
|
|
1373
|
+
exports.de_BatchPutDocumentCommand = de_BatchPutDocumentCommand;
|
|
1374
|
+
const de_BatchPutDocumentCommandError = async (output, context) => {
|
|
1375
|
+
const parsedOutput = {
|
|
1376
|
+
...output,
|
|
1377
|
+
body: await parseErrorBody(output.body, context),
|
|
1378
|
+
};
|
|
1379
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1380
|
+
switch (errorCode) {
|
|
1381
|
+
case "AccessDeniedException":
|
|
1382
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
1383
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1384
|
+
case "ConflictException":
|
|
1385
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
1386
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1387
|
+
case "InternalServerException":
|
|
1388
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
1389
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1390
|
+
case "ResourceNotFoundException":
|
|
1391
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
1392
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1393
|
+
case "ServiceQuotaExceededException":
|
|
1394
|
+
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
1395
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1396
|
+
case "ThrottlingException":
|
|
1397
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
1398
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1399
|
+
case "ValidationException":
|
|
1400
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
1401
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1402
|
+
default:
|
|
1403
|
+
const parsedBody = parsedOutput.body;
|
|
1404
|
+
return throwDefaultError({
|
|
1405
|
+
output,
|
|
1406
|
+
parsedBody,
|
|
1407
|
+
errorCode,
|
|
1408
|
+
});
|
|
1409
|
+
}
|
|
1410
|
+
};
|
|
1411
|
+
const de_ChatSyncCommand = async (output, context) => {
|
|
1412
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1413
|
+
return de_ChatSyncCommandError(output, context);
|
|
1414
|
+
}
|
|
1415
|
+
const contents = (0, smithy_client_1.map)({
|
|
1416
|
+
$metadata: deserializeMetadata(output),
|
|
1417
|
+
});
|
|
1418
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1419
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1420
|
+
actionReview: (_) => de_ActionReview(_, context),
|
|
1421
|
+
conversationId: smithy_client_1.expectString,
|
|
1422
|
+
failedAttachments: smithy_client_1._json,
|
|
1423
|
+
sourceAttributions: (_) => de_SourceAttributions(_, context),
|
|
1424
|
+
systemMessage: smithy_client_1.expectString,
|
|
1425
|
+
systemMessageId: smithy_client_1.expectString,
|
|
1426
|
+
userMessageId: smithy_client_1.expectString,
|
|
1427
|
+
});
|
|
1428
|
+
Object.assign(contents, doc);
|
|
1429
|
+
return contents;
|
|
1430
|
+
};
|
|
1431
|
+
exports.de_ChatSyncCommand = de_ChatSyncCommand;
|
|
1432
|
+
const de_ChatSyncCommandError = async (output, context) => {
|
|
1433
|
+
const parsedOutput = {
|
|
1434
|
+
...output,
|
|
1435
|
+
body: await parseErrorBody(output.body, context),
|
|
1436
|
+
};
|
|
1437
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1438
|
+
switch (errorCode) {
|
|
1439
|
+
case "AccessDeniedException":
|
|
1440
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
1441
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1442
|
+
case "ConflictException":
|
|
1443
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
1444
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1445
|
+
case "InternalServerException":
|
|
1446
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
1447
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1448
|
+
case "LicenseNotFoundException":
|
|
1449
|
+
case "com.amazonaws.qbusiness#LicenseNotFoundException":
|
|
1450
|
+
throw await de_LicenseNotFoundExceptionRes(parsedOutput, context);
|
|
1451
|
+
case "ResourceNotFoundException":
|
|
1452
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
1453
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1454
|
+
case "ThrottlingException":
|
|
1455
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
1456
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1457
|
+
case "ValidationException":
|
|
1458
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
1459
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1460
|
+
default:
|
|
1461
|
+
const parsedBody = parsedOutput.body;
|
|
1462
|
+
return throwDefaultError({
|
|
1463
|
+
output,
|
|
1464
|
+
parsedBody,
|
|
1465
|
+
errorCode,
|
|
1466
|
+
});
|
|
1467
|
+
}
|
|
1468
|
+
};
|
|
1469
|
+
const de_CreateApplicationCommand = async (output, context) => {
|
|
1470
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1471
|
+
return de_CreateApplicationCommandError(output, context);
|
|
1472
|
+
}
|
|
1473
|
+
const contents = (0, smithy_client_1.map)({
|
|
1474
|
+
$metadata: deserializeMetadata(output),
|
|
1475
|
+
});
|
|
1476
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1477
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1478
|
+
applicationArn: smithy_client_1.expectString,
|
|
1479
|
+
applicationId: smithy_client_1.expectString,
|
|
1480
|
+
});
|
|
1481
|
+
Object.assign(contents, doc);
|
|
1482
|
+
return contents;
|
|
1483
|
+
};
|
|
1484
|
+
exports.de_CreateApplicationCommand = de_CreateApplicationCommand;
|
|
1485
|
+
const de_CreateApplicationCommandError = async (output, context) => {
|
|
1486
|
+
const parsedOutput = {
|
|
1487
|
+
...output,
|
|
1488
|
+
body: await parseErrorBody(output.body, context),
|
|
1489
|
+
};
|
|
1490
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1491
|
+
switch (errorCode) {
|
|
1492
|
+
case "AccessDeniedException":
|
|
1493
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
1494
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1495
|
+
case "ConflictException":
|
|
1496
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
1497
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1498
|
+
case "InternalServerException":
|
|
1499
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
1500
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1501
|
+
case "ResourceNotFoundException":
|
|
1502
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
1503
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1504
|
+
case "ServiceQuotaExceededException":
|
|
1505
|
+
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
1506
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1507
|
+
case "ThrottlingException":
|
|
1508
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
1509
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1510
|
+
case "ValidationException":
|
|
1511
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
1512
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1513
|
+
default:
|
|
1514
|
+
const parsedBody = parsedOutput.body;
|
|
1515
|
+
return throwDefaultError({
|
|
1516
|
+
output,
|
|
1517
|
+
parsedBody,
|
|
1518
|
+
errorCode,
|
|
1519
|
+
});
|
|
1520
|
+
}
|
|
1521
|
+
};
|
|
1522
|
+
const de_CreateDataSourceCommand = async (output, context) => {
|
|
1523
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1524
|
+
return de_CreateDataSourceCommandError(output, context);
|
|
1525
|
+
}
|
|
1526
|
+
const contents = (0, smithy_client_1.map)({
|
|
1527
|
+
$metadata: deserializeMetadata(output),
|
|
1528
|
+
});
|
|
1529
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1530
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1531
|
+
dataSourceArn: smithy_client_1.expectString,
|
|
1532
|
+
dataSourceId: smithy_client_1.expectString,
|
|
1533
|
+
});
|
|
1534
|
+
Object.assign(contents, doc);
|
|
1535
|
+
return contents;
|
|
1536
|
+
};
|
|
1537
|
+
exports.de_CreateDataSourceCommand = de_CreateDataSourceCommand;
|
|
1538
|
+
const de_CreateDataSourceCommandError = async (output, context) => {
|
|
1539
|
+
const parsedOutput = {
|
|
1540
|
+
...output,
|
|
1541
|
+
body: await parseErrorBody(output.body, context),
|
|
1542
|
+
};
|
|
1543
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1544
|
+
switch (errorCode) {
|
|
1545
|
+
case "AccessDeniedException":
|
|
1546
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
1547
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1548
|
+
case "ConflictException":
|
|
1549
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
1550
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1551
|
+
case "InternalServerException":
|
|
1552
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
1553
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1554
|
+
case "ResourceNotFoundException":
|
|
1555
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
1556
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1557
|
+
case "ServiceQuotaExceededException":
|
|
1558
|
+
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
1559
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1560
|
+
case "ThrottlingException":
|
|
1561
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
1562
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1563
|
+
case "ValidationException":
|
|
1564
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
1565
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1566
|
+
default:
|
|
1567
|
+
const parsedBody = parsedOutput.body;
|
|
1568
|
+
return throwDefaultError({
|
|
1569
|
+
output,
|
|
1570
|
+
parsedBody,
|
|
1571
|
+
errorCode,
|
|
1572
|
+
});
|
|
1573
|
+
}
|
|
1574
|
+
};
|
|
1575
|
+
const de_CreateIndexCommand = async (output, context) => {
|
|
1576
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1577
|
+
return de_CreateIndexCommandError(output, context);
|
|
1578
|
+
}
|
|
1579
|
+
const contents = (0, smithy_client_1.map)({
|
|
1580
|
+
$metadata: deserializeMetadata(output),
|
|
1581
|
+
});
|
|
1582
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1583
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1584
|
+
indexArn: smithy_client_1.expectString,
|
|
1585
|
+
indexId: smithy_client_1.expectString,
|
|
1586
|
+
});
|
|
1587
|
+
Object.assign(contents, doc);
|
|
1588
|
+
return contents;
|
|
1589
|
+
};
|
|
1590
|
+
exports.de_CreateIndexCommand = de_CreateIndexCommand;
|
|
1591
|
+
const de_CreateIndexCommandError = async (output, context) => {
|
|
1592
|
+
const parsedOutput = {
|
|
1593
|
+
...output,
|
|
1594
|
+
body: await parseErrorBody(output.body, context),
|
|
1595
|
+
};
|
|
1596
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1597
|
+
switch (errorCode) {
|
|
1598
|
+
case "AccessDeniedException":
|
|
1599
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
1600
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1601
|
+
case "ConflictException":
|
|
1602
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
1603
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1604
|
+
case "InternalServerException":
|
|
1605
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
1606
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1607
|
+
case "ResourceNotFoundException":
|
|
1608
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
1609
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1610
|
+
case "ServiceQuotaExceededException":
|
|
1611
|
+
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
1612
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1613
|
+
case "ThrottlingException":
|
|
1614
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
1615
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1616
|
+
case "ValidationException":
|
|
1617
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
1618
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1619
|
+
default:
|
|
1620
|
+
const parsedBody = parsedOutput.body;
|
|
1621
|
+
return throwDefaultError({
|
|
1622
|
+
output,
|
|
1623
|
+
parsedBody,
|
|
1624
|
+
errorCode,
|
|
1625
|
+
});
|
|
1626
|
+
}
|
|
1627
|
+
};
|
|
1628
|
+
const de_CreatePluginCommand = async (output, context) => {
|
|
1629
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1630
|
+
return de_CreatePluginCommandError(output, context);
|
|
1631
|
+
}
|
|
1632
|
+
const contents = (0, smithy_client_1.map)({
|
|
1633
|
+
$metadata: deserializeMetadata(output),
|
|
1634
|
+
});
|
|
1635
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1636
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1637
|
+
pluginArn: smithy_client_1.expectString,
|
|
1638
|
+
pluginId: smithy_client_1.expectString,
|
|
1639
|
+
});
|
|
1640
|
+
Object.assign(contents, doc);
|
|
1641
|
+
return contents;
|
|
1642
|
+
};
|
|
1643
|
+
exports.de_CreatePluginCommand = de_CreatePluginCommand;
|
|
1644
|
+
const de_CreatePluginCommandError = async (output, context) => {
|
|
1645
|
+
const parsedOutput = {
|
|
1646
|
+
...output,
|
|
1647
|
+
body: await parseErrorBody(output.body, context),
|
|
1648
|
+
};
|
|
1649
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1650
|
+
switch (errorCode) {
|
|
1651
|
+
case "AccessDeniedException":
|
|
1652
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
1653
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1654
|
+
case "ConflictException":
|
|
1655
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
1656
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1657
|
+
case "InternalServerException":
|
|
1658
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
1659
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1660
|
+
case "ResourceNotFoundException":
|
|
1661
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
1662
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1663
|
+
case "ServiceQuotaExceededException":
|
|
1664
|
+
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
1665
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1666
|
+
case "ThrottlingException":
|
|
1667
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
1668
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1669
|
+
case "ValidationException":
|
|
1670
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
1671
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1672
|
+
default:
|
|
1673
|
+
const parsedBody = parsedOutput.body;
|
|
1674
|
+
return throwDefaultError({
|
|
1675
|
+
output,
|
|
1676
|
+
parsedBody,
|
|
1677
|
+
errorCode,
|
|
1678
|
+
});
|
|
1679
|
+
}
|
|
1680
|
+
};
|
|
1681
|
+
const de_CreateRetrieverCommand = async (output, context) => {
|
|
1682
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1683
|
+
return de_CreateRetrieverCommandError(output, context);
|
|
1684
|
+
}
|
|
1685
|
+
const contents = (0, smithy_client_1.map)({
|
|
1686
|
+
$metadata: deserializeMetadata(output),
|
|
1687
|
+
});
|
|
1688
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1689
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1690
|
+
retrieverArn: smithy_client_1.expectString,
|
|
1691
|
+
retrieverId: smithy_client_1.expectString,
|
|
1692
|
+
});
|
|
1693
|
+
Object.assign(contents, doc);
|
|
1694
|
+
return contents;
|
|
1695
|
+
};
|
|
1696
|
+
exports.de_CreateRetrieverCommand = de_CreateRetrieverCommand;
|
|
1697
|
+
const de_CreateRetrieverCommandError = async (output, context) => {
|
|
1698
|
+
const parsedOutput = {
|
|
1699
|
+
...output,
|
|
1700
|
+
body: await parseErrorBody(output.body, context),
|
|
1701
|
+
};
|
|
1702
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1703
|
+
switch (errorCode) {
|
|
1704
|
+
case "AccessDeniedException":
|
|
1705
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
1706
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1707
|
+
case "ConflictException":
|
|
1708
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
1709
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1710
|
+
case "InternalServerException":
|
|
1711
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
1712
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1713
|
+
case "ResourceNotFoundException":
|
|
1714
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
1715
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1716
|
+
case "ServiceQuotaExceededException":
|
|
1717
|
+
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
1718
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1719
|
+
case "ThrottlingException":
|
|
1720
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
1721
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1722
|
+
case "ValidationException":
|
|
1723
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
1724
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1725
|
+
default:
|
|
1726
|
+
const parsedBody = parsedOutput.body;
|
|
1727
|
+
return throwDefaultError({
|
|
1728
|
+
output,
|
|
1729
|
+
parsedBody,
|
|
1730
|
+
errorCode,
|
|
1731
|
+
});
|
|
1732
|
+
}
|
|
1733
|
+
};
|
|
1734
|
+
const de_CreateUserCommand = async (output, context) => {
|
|
1735
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1736
|
+
return de_CreateUserCommandError(output, context);
|
|
1737
|
+
}
|
|
1738
|
+
const contents = (0, smithy_client_1.map)({
|
|
1739
|
+
$metadata: deserializeMetadata(output),
|
|
1740
|
+
});
|
|
1741
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1742
|
+
return contents;
|
|
1743
|
+
};
|
|
1744
|
+
exports.de_CreateUserCommand = de_CreateUserCommand;
|
|
1745
|
+
const de_CreateUserCommandError = async (output, context) => {
|
|
1746
|
+
const parsedOutput = {
|
|
1747
|
+
...output,
|
|
1748
|
+
body: await parseErrorBody(output.body, context),
|
|
1749
|
+
};
|
|
1750
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1751
|
+
switch (errorCode) {
|
|
1752
|
+
case "AccessDeniedException":
|
|
1753
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
1754
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1755
|
+
case "ConflictException":
|
|
1756
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
1757
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1758
|
+
case "InternalServerException":
|
|
1759
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
1760
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1761
|
+
case "ResourceNotFoundException":
|
|
1762
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
1763
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1764
|
+
case "ServiceQuotaExceededException":
|
|
1765
|
+
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
1766
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1767
|
+
case "ThrottlingException":
|
|
1768
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
1769
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1770
|
+
case "ValidationException":
|
|
1771
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
1772
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1773
|
+
default:
|
|
1774
|
+
const parsedBody = parsedOutput.body;
|
|
1775
|
+
return throwDefaultError({
|
|
1776
|
+
output,
|
|
1777
|
+
parsedBody,
|
|
1778
|
+
errorCode,
|
|
1779
|
+
});
|
|
1780
|
+
}
|
|
1781
|
+
};
|
|
1782
|
+
const de_CreateWebExperienceCommand = async (output, context) => {
|
|
1783
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1784
|
+
return de_CreateWebExperienceCommandError(output, context);
|
|
1785
|
+
}
|
|
1786
|
+
const contents = (0, smithy_client_1.map)({
|
|
1787
|
+
$metadata: deserializeMetadata(output),
|
|
1788
|
+
});
|
|
1789
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1790
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1791
|
+
webExperienceArn: smithy_client_1.expectString,
|
|
1792
|
+
webExperienceId: smithy_client_1.expectString,
|
|
1793
|
+
});
|
|
1794
|
+
Object.assign(contents, doc);
|
|
1795
|
+
return contents;
|
|
1796
|
+
};
|
|
1797
|
+
exports.de_CreateWebExperienceCommand = de_CreateWebExperienceCommand;
|
|
1798
|
+
const de_CreateWebExperienceCommandError = async (output, context) => {
|
|
1799
|
+
const parsedOutput = {
|
|
1800
|
+
...output,
|
|
1801
|
+
body: await parseErrorBody(output.body, context),
|
|
1802
|
+
};
|
|
1803
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1804
|
+
switch (errorCode) {
|
|
1805
|
+
case "AccessDeniedException":
|
|
1806
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
1807
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1808
|
+
case "ConflictException":
|
|
1809
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
1810
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1811
|
+
case "InternalServerException":
|
|
1812
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
1813
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1814
|
+
case "ResourceNotFoundException":
|
|
1815
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
1816
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1817
|
+
case "ServiceQuotaExceededException":
|
|
1818
|
+
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
1819
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1820
|
+
case "ThrottlingException":
|
|
1821
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
1822
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1823
|
+
case "ValidationException":
|
|
1824
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
1825
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1826
|
+
default:
|
|
1827
|
+
const parsedBody = parsedOutput.body;
|
|
1828
|
+
return throwDefaultError({
|
|
1829
|
+
output,
|
|
1830
|
+
parsedBody,
|
|
1831
|
+
errorCode,
|
|
1832
|
+
});
|
|
1833
|
+
}
|
|
1834
|
+
};
|
|
1835
|
+
const de_DeleteApplicationCommand = async (output, context) => {
|
|
1836
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1837
|
+
return de_DeleteApplicationCommandError(output, context);
|
|
1838
|
+
}
|
|
1839
|
+
const contents = (0, smithy_client_1.map)({
|
|
1840
|
+
$metadata: deserializeMetadata(output),
|
|
1841
|
+
});
|
|
1842
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1843
|
+
return contents;
|
|
1844
|
+
};
|
|
1845
|
+
exports.de_DeleteApplicationCommand = de_DeleteApplicationCommand;
|
|
1846
|
+
const de_DeleteApplicationCommandError = async (output, context) => {
|
|
1847
|
+
const parsedOutput = {
|
|
1848
|
+
...output,
|
|
1849
|
+
body: await parseErrorBody(output.body, context),
|
|
1850
|
+
};
|
|
1851
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1852
|
+
switch (errorCode) {
|
|
1853
|
+
case "AccessDeniedException":
|
|
1854
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
1855
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1856
|
+
case "ConflictException":
|
|
1857
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
1858
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1859
|
+
case "InternalServerException":
|
|
1860
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
1861
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1862
|
+
case "ResourceNotFoundException":
|
|
1863
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
1864
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1865
|
+
case "ThrottlingException":
|
|
1866
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
1867
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1868
|
+
case "ValidationException":
|
|
1869
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
1870
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1871
|
+
default:
|
|
1872
|
+
const parsedBody = parsedOutput.body;
|
|
1873
|
+
return throwDefaultError({
|
|
1874
|
+
output,
|
|
1875
|
+
parsedBody,
|
|
1876
|
+
errorCode,
|
|
1877
|
+
});
|
|
1878
|
+
}
|
|
1879
|
+
};
|
|
1880
|
+
const de_DeleteChatControlsConfigurationCommand = async (output, context) => {
|
|
1881
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1882
|
+
return de_DeleteChatControlsConfigurationCommandError(output, context);
|
|
1883
|
+
}
|
|
1884
|
+
const contents = (0, smithy_client_1.map)({
|
|
1885
|
+
$metadata: deserializeMetadata(output),
|
|
1886
|
+
});
|
|
1887
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1888
|
+
return contents;
|
|
1889
|
+
};
|
|
1890
|
+
exports.de_DeleteChatControlsConfigurationCommand = de_DeleteChatControlsConfigurationCommand;
|
|
1891
|
+
const de_DeleteChatControlsConfigurationCommandError = async (output, context) => {
|
|
1892
|
+
const parsedOutput = {
|
|
1893
|
+
...output,
|
|
1894
|
+
body: await parseErrorBody(output.body, context),
|
|
1895
|
+
};
|
|
1896
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1897
|
+
switch (errorCode) {
|
|
1898
|
+
case "AccessDeniedException":
|
|
1899
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
1900
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1901
|
+
case "InternalServerException":
|
|
1902
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
1903
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1904
|
+
case "ResourceNotFoundException":
|
|
1905
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
1906
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1907
|
+
case "ThrottlingException":
|
|
1908
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
1909
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1910
|
+
case "ValidationException":
|
|
1911
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
1912
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1913
|
+
default:
|
|
1914
|
+
const parsedBody = parsedOutput.body;
|
|
1915
|
+
return throwDefaultError({
|
|
1916
|
+
output,
|
|
1917
|
+
parsedBody,
|
|
1918
|
+
errorCode,
|
|
1919
|
+
});
|
|
1920
|
+
}
|
|
1921
|
+
};
|
|
1922
|
+
const de_DeleteConversationCommand = async (output, context) => {
|
|
1923
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1924
|
+
return de_DeleteConversationCommandError(output, context);
|
|
1925
|
+
}
|
|
1926
|
+
const contents = (0, smithy_client_1.map)({
|
|
1927
|
+
$metadata: deserializeMetadata(output),
|
|
1928
|
+
});
|
|
1929
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1930
|
+
return contents;
|
|
1931
|
+
};
|
|
1932
|
+
exports.de_DeleteConversationCommand = de_DeleteConversationCommand;
|
|
1933
|
+
const de_DeleteConversationCommandError = async (output, context) => {
|
|
1934
|
+
const parsedOutput = {
|
|
1935
|
+
...output,
|
|
1936
|
+
body: await parseErrorBody(output.body, context),
|
|
1937
|
+
};
|
|
1938
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1939
|
+
switch (errorCode) {
|
|
1940
|
+
case "AccessDeniedException":
|
|
1941
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
1942
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1943
|
+
case "InternalServerException":
|
|
1944
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
1945
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1946
|
+
case "LicenseNotFoundException":
|
|
1947
|
+
case "com.amazonaws.qbusiness#LicenseNotFoundException":
|
|
1948
|
+
throw await de_LicenseNotFoundExceptionRes(parsedOutput, context);
|
|
1949
|
+
case "ResourceNotFoundException":
|
|
1950
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
1951
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1952
|
+
case "ThrottlingException":
|
|
1953
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
1954
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1955
|
+
case "ValidationException":
|
|
1956
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
1957
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1958
|
+
default:
|
|
1959
|
+
const parsedBody = parsedOutput.body;
|
|
1960
|
+
return throwDefaultError({
|
|
1961
|
+
output,
|
|
1962
|
+
parsedBody,
|
|
1963
|
+
errorCode,
|
|
1964
|
+
});
|
|
1965
|
+
}
|
|
1966
|
+
};
|
|
1967
|
+
const de_DeleteDataSourceCommand = async (output, context) => {
|
|
1968
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1969
|
+
return de_DeleteDataSourceCommandError(output, context);
|
|
1970
|
+
}
|
|
1971
|
+
const contents = (0, smithy_client_1.map)({
|
|
1972
|
+
$metadata: deserializeMetadata(output),
|
|
1973
|
+
});
|
|
1974
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1975
|
+
return contents;
|
|
1976
|
+
};
|
|
1977
|
+
exports.de_DeleteDataSourceCommand = de_DeleteDataSourceCommand;
|
|
1978
|
+
const de_DeleteDataSourceCommandError = async (output, context) => {
|
|
1979
|
+
const parsedOutput = {
|
|
1980
|
+
...output,
|
|
1981
|
+
body: await parseErrorBody(output.body, context),
|
|
1982
|
+
};
|
|
1983
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1984
|
+
switch (errorCode) {
|
|
1985
|
+
case "AccessDeniedException":
|
|
1986
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
1987
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1988
|
+
case "ConflictException":
|
|
1989
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
1990
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1991
|
+
case "InternalServerException":
|
|
1992
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
1993
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1994
|
+
case "ResourceNotFoundException":
|
|
1995
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
1996
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1997
|
+
case "ThrottlingException":
|
|
1998
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
1999
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2000
|
+
case "ValidationException":
|
|
2001
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
2002
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2003
|
+
default:
|
|
2004
|
+
const parsedBody = parsedOutput.body;
|
|
2005
|
+
return throwDefaultError({
|
|
2006
|
+
output,
|
|
2007
|
+
parsedBody,
|
|
2008
|
+
errorCode,
|
|
2009
|
+
});
|
|
2010
|
+
}
|
|
2011
|
+
};
|
|
2012
|
+
const de_DeleteGroupCommand = async (output, context) => {
|
|
2013
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2014
|
+
return de_DeleteGroupCommandError(output, context);
|
|
2015
|
+
}
|
|
2016
|
+
const contents = (0, smithy_client_1.map)({
|
|
2017
|
+
$metadata: deserializeMetadata(output),
|
|
2018
|
+
});
|
|
2019
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2020
|
+
return contents;
|
|
2021
|
+
};
|
|
2022
|
+
exports.de_DeleteGroupCommand = de_DeleteGroupCommand;
|
|
2023
|
+
const de_DeleteGroupCommandError = async (output, context) => {
|
|
2024
|
+
const parsedOutput = {
|
|
2025
|
+
...output,
|
|
2026
|
+
body: await parseErrorBody(output.body, context),
|
|
2027
|
+
};
|
|
2028
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2029
|
+
switch (errorCode) {
|
|
2030
|
+
case "AccessDeniedException":
|
|
2031
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2032
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2033
|
+
case "ConflictException":
|
|
2034
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
2035
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2036
|
+
case "InternalServerException":
|
|
2037
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2038
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2039
|
+
case "ResourceNotFoundException":
|
|
2040
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2041
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2042
|
+
case "ThrottlingException":
|
|
2043
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2044
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2045
|
+
case "ValidationException":
|
|
2046
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
2047
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2048
|
+
default:
|
|
2049
|
+
const parsedBody = parsedOutput.body;
|
|
2050
|
+
return throwDefaultError({
|
|
2051
|
+
output,
|
|
2052
|
+
parsedBody,
|
|
2053
|
+
errorCode,
|
|
2054
|
+
});
|
|
2055
|
+
}
|
|
2056
|
+
};
|
|
2057
|
+
const de_DeleteIndexCommand = async (output, context) => {
|
|
2058
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2059
|
+
return de_DeleteIndexCommandError(output, context);
|
|
2060
|
+
}
|
|
2061
|
+
const contents = (0, smithy_client_1.map)({
|
|
2062
|
+
$metadata: deserializeMetadata(output),
|
|
2063
|
+
});
|
|
2064
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2065
|
+
return contents;
|
|
2066
|
+
};
|
|
2067
|
+
exports.de_DeleteIndexCommand = de_DeleteIndexCommand;
|
|
2068
|
+
const de_DeleteIndexCommandError = async (output, context) => {
|
|
2069
|
+
const parsedOutput = {
|
|
2070
|
+
...output,
|
|
2071
|
+
body: await parseErrorBody(output.body, context),
|
|
2072
|
+
};
|
|
2073
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2074
|
+
switch (errorCode) {
|
|
2075
|
+
case "AccessDeniedException":
|
|
2076
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2077
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2078
|
+
case "ConflictException":
|
|
2079
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
2080
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2081
|
+
case "InternalServerException":
|
|
2082
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2083
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2084
|
+
case "ResourceNotFoundException":
|
|
2085
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2086
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2087
|
+
case "ThrottlingException":
|
|
2088
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2089
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2090
|
+
case "ValidationException":
|
|
2091
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
2092
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2093
|
+
default:
|
|
2094
|
+
const parsedBody = parsedOutput.body;
|
|
2095
|
+
return throwDefaultError({
|
|
2096
|
+
output,
|
|
2097
|
+
parsedBody,
|
|
2098
|
+
errorCode,
|
|
2099
|
+
});
|
|
2100
|
+
}
|
|
2101
|
+
};
|
|
2102
|
+
const de_DeletePluginCommand = async (output, context) => {
|
|
2103
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2104
|
+
return de_DeletePluginCommandError(output, context);
|
|
2105
|
+
}
|
|
2106
|
+
const contents = (0, smithy_client_1.map)({
|
|
2107
|
+
$metadata: deserializeMetadata(output),
|
|
2108
|
+
});
|
|
2109
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2110
|
+
return contents;
|
|
2111
|
+
};
|
|
2112
|
+
exports.de_DeletePluginCommand = de_DeletePluginCommand;
|
|
2113
|
+
const de_DeletePluginCommandError = async (output, context) => {
|
|
2114
|
+
const parsedOutput = {
|
|
2115
|
+
...output,
|
|
2116
|
+
body: await parseErrorBody(output.body, context),
|
|
2117
|
+
};
|
|
2118
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2119
|
+
switch (errorCode) {
|
|
2120
|
+
case "AccessDeniedException":
|
|
2121
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2122
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2123
|
+
case "ConflictException":
|
|
2124
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
2125
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2126
|
+
case "InternalServerException":
|
|
2127
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2128
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2129
|
+
case "ResourceNotFoundException":
|
|
2130
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2131
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2132
|
+
case "ThrottlingException":
|
|
2133
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2134
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2135
|
+
case "ValidationException":
|
|
2136
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
2137
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2138
|
+
default:
|
|
2139
|
+
const parsedBody = parsedOutput.body;
|
|
2140
|
+
return throwDefaultError({
|
|
2141
|
+
output,
|
|
2142
|
+
parsedBody,
|
|
2143
|
+
errorCode,
|
|
2144
|
+
});
|
|
2145
|
+
}
|
|
2146
|
+
};
|
|
2147
|
+
const de_DeleteRetrieverCommand = async (output, context) => {
|
|
2148
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2149
|
+
return de_DeleteRetrieverCommandError(output, context);
|
|
2150
|
+
}
|
|
2151
|
+
const contents = (0, smithy_client_1.map)({
|
|
2152
|
+
$metadata: deserializeMetadata(output),
|
|
2153
|
+
});
|
|
2154
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2155
|
+
return contents;
|
|
2156
|
+
};
|
|
2157
|
+
exports.de_DeleteRetrieverCommand = de_DeleteRetrieverCommand;
|
|
2158
|
+
const de_DeleteRetrieverCommandError = async (output, context) => {
|
|
2159
|
+
const parsedOutput = {
|
|
2160
|
+
...output,
|
|
2161
|
+
body: await parseErrorBody(output.body, context),
|
|
2162
|
+
};
|
|
2163
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2164
|
+
switch (errorCode) {
|
|
2165
|
+
case "AccessDeniedException":
|
|
2166
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2167
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2168
|
+
case "ConflictException":
|
|
2169
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
2170
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2171
|
+
case "InternalServerException":
|
|
2172
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2173
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2174
|
+
case "ResourceNotFoundException":
|
|
2175
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2176
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2177
|
+
case "ThrottlingException":
|
|
2178
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2179
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2180
|
+
case "ValidationException":
|
|
2181
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
2182
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2183
|
+
default:
|
|
2184
|
+
const parsedBody = parsedOutput.body;
|
|
2185
|
+
return throwDefaultError({
|
|
2186
|
+
output,
|
|
2187
|
+
parsedBody,
|
|
2188
|
+
errorCode,
|
|
2189
|
+
});
|
|
2190
|
+
}
|
|
2191
|
+
};
|
|
2192
|
+
const de_DeleteUserCommand = async (output, context) => {
|
|
2193
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2194
|
+
return de_DeleteUserCommandError(output, context);
|
|
2195
|
+
}
|
|
2196
|
+
const contents = (0, smithy_client_1.map)({
|
|
2197
|
+
$metadata: deserializeMetadata(output),
|
|
2198
|
+
});
|
|
2199
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2200
|
+
return contents;
|
|
2201
|
+
};
|
|
2202
|
+
exports.de_DeleteUserCommand = de_DeleteUserCommand;
|
|
2203
|
+
const de_DeleteUserCommandError = async (output, context) => {
|
|
2204
|
+
const parsedOutput = {
|
|
2205
|
+
...output,
|
|
2206
|
+
body: await parseErrorBody(output.body, context),
|
|
2207
|
+
};
|
|
2208
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2209
|
+
switch (errorCode) {
|
|
2210
|
+
case "AccessDeniedException":
|
|
2211
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2212
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2213
|
+
case "ConflictException":
|
|
2214
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
2215
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2216
|
+
case "InternalServerException":
|
|
2217
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2218
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2219
|
+
case "ResourceNotFoundException":
|
|
2220
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2221
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2222
|
+
case "ThrottlingException":
|
|
2223
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2224
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2225
|
+
case "ValidationException":
|
|
2226
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
2227
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2228
|
+
default:
|
|
2229
|
+
const parsedBody = parsedOutput.body;
|
|
2230
|
+
return throwDefaultError({
|
|
2231
|
+
output,
|
|
2232
|
+
parsedBody,
|
|
2233
|
+
errorCode,
|
|
2234
|
+
});
|
|
2235
|
+
}
|
|
2236
|
+
};
|
|
2237
|
+
const de_DeleteWebExperienceCommand = async (output, context) => {
|
|
2238
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2239
|
+
return de_DeleteWebExperienceCommandError(output, context);
|
|
2240
|
+
}
|
|
2241
|
+
const contents = (0, smithy_client_1.map)({
|
|
2242
|
+
$metadata: deserializeMetadata(output),
|
|
2243
|
+
});
|
|
2244
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2245
|
+
return contents;
|
|
2246
|
+
};
|
|
2247
|
+
exports.de_DeleteWebExperienceCommand = de_DeleteWebExperienceCommand;
|
|
2248
|
+
const de_DeleteWebExperienceCommandError = async (output, context) => {
|
|
2249
|
+
const parsedOutput = {
|
|
2250
|
+
...output,
|
|
2251
|
+
body: await parseErrorBody(output.body, context),
|
|
2252
|
+
};
|
|
2253
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2254
|
+
switch (errorCode) {
|
|
2255
|
+
case "AccessDeniedException":
|
|
2256
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2257
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2258
|
+
case "ConflictException":
|
|
2259
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
2260
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2261
|
+
case "InternalServerException":
|
|
2262
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2263
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2264
|
+
case "ResourceNotFoundException":
|
|
2265
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2266
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2267
|
+
case "ThrottlingException":
|
|
2268
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2269
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2270
|
+
case "ValidationException":
|
|
2271
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
2272
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2273
|
+
default:
|
|
2274
|
+
const parsedBody = parsedOutput.body;
|
|
2275
|
+
return throwDefaultError({
|
|
2276
|
+
output,
|
|
2277
|
+
parsedBody,
|
|
2278
|
+
errorCode,
|
|
2279
|
+
});
|
|
2280
|
+
}
|
|
2281
|
+
};
|
|
2282
|
+
const de_GetApplicationCommand = async (output, context) => {
|
|
2283
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2284
|
+
return de_GetApplicationCommandError(output, context);
|
|
2285
|
+
}
|
|
2286
|
+
const contents = (0, smithy_client_1.map)({
|
|
2287
|
+
$metadata: deserializeMetadata(output),
|
|
2288
|
+
});
|
|
2289
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2290
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2291
|
+
applicationArn: smithy_client_1.expectString,
|
|
2292
|
+
applicationId: smithy_client_1.expectString,
|
|
2293
|
+
attachmentsConfiguration: smithy_client_1._json,
|
|
2294
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2295
|
+
description: smithy_client_1.expectString,
|
|
2296
|
+
displayName: smithy_client_1.expectString,
|
|
2297
|
+
encryptionConfiguration: smithy_client_1._json,
|
|
2298
|
+
error: smithy_client_1._json,
|
|
2299
|
+
roleArn: smithy_client_1.expectString,
|
|
2300
|
+
status: smithy_client_1.expectString,
|
|
2301
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2302
|
+
});
|
|
2303
|
+
Object.assign(contents, doc);
|
|
2304
|
+
return contents;
|
|
2305
|
+
};
|
|
2306
|
+
exports.de_GetApplicationCommand = de_GetApplicationCommand;
|
|
2307
|
+
const de_GetApplicationCommandError = async (output, context) => {
|
|
2308
|
+
const parsedOutput = {
|
|
2309
|
+
...output,
|
|
2310
|
+
body: await parseErrorBody(output.body, context),
|
|
2311
|
+
};
|
|
2312
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2313
|
+
switch (errorCode) {
|
|
2314
|
+
case "AccessDeniedException":
|
|
2315
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2316
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2317
|
+
case "InternalServerException":
|
|
2318
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2319
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2320
|
+
case "ResourceNotFoundException":
|
|
2321
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2322
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2323
|
+
case "ThrottlingException":
|
|
2324
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2325
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2326
|
+
case "ValidationException":
|
|
2327
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
2328
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2329
|
+
default:
|
|
2330
|
+
const parsedBody = parsedOutput.body;
|
|
2331
|
+
return throwDefaultError({
|
|
2332
|
+
output,
|
|
2333
|
+
parsedBody,
|
|
2334
|
+
errorCode,
|
|
2335
|
+
});
|
|
2336
|
+
}
|
|
2337
|
+
};
|
|
2338
|
+
const de_GetChatControlsConfigurationCommand = async (output, context) => {
|
|
2339
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2340
|
+
return de_GetChatControlsConfigurationCommandError(output, context);
|
|
2341
|
+
}
|
|
2342
|
+
const contents = (0, smithy_client_1.map)({
|
|
2343
|
+
$metadata: deserializeMetadata(output),
|
|
2344
|
+
});
|
|
2345
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2346
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2347
|
+
blockedPhrases: smithy_client_1._json,
|
|
2348
|
+
nextToken: smithy_client_1.expectString,
|
|
2349
|
+
responseScope: smithy_client_1.expectString,
|
|
2350
|
+
topicConfigurations: smithy_client_1._json,
|
|
2351
|
+
});
|
|
2352
|
+
Object.assign(contents, doc);
|
|
2353
|
+
return contents;
|
|
2354
|
+
};
|
|
2355
|
+
exports.de_GetChatControlsConfigurationCommand = de_GetChatControlsConfigurationCommand;
|
|
2356
|
+
const de_GetChatControlsConfigurationCommandError = async (output, context) => {
|
|
2357
|
+
const parsedOutput = {
|
|
2358
|
+
...output,
|
|
2359
|
+
body: await parseErrorBody(output.body, context),
|
|
2360
|
+
};
|
|
2361
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2362
|
+
switch (errorCode) {
|
|
2363
|
+
case "AccessDeniedException":
|
|
2364
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2365
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2366
|
+
case "InternalServerException":
|
|
2367
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2368
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2369
|
+
case "ResourceNotFoundException":
|
|
2370
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2371
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2372
|
+
case "ThrottlingException":
|
|
2373
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2374
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2375
|
+
case "ValidationException":
|
|
2376
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
2377
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2378
|
+
default:
|
|
2379
|
+
const parsedBody = parsedOutput.body;
|
|
2380
|
+
return throwDefaultError({
|
|
2381
|
+
output,
|
|
2382
|
+
parsedBody,
|
|
2383
|
+
errorCode,
|
|
2384
|
+
});
|
|
2385
|
+
}
|
|
2386
|
+
};
|
|
2387
|
+
const de_GetDataSourceCommand = async (output, context) => {
|
|
2388
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2389
|
+
return de_GetDataSourceCommandError(output, context);
|
|
2390
|
+
}
|
|
2391
|
+
const contents = (0, smithy_client_1.map)({
|
|
2392
|
+
$metadata: deserializeMetadata(output),
|
|
2393
|
+
});
|
|
2394
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2395
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2396
|
+
applicationId: smithy_client_1.expectString,
|
|
2397
|
+
configuration: (_) => de_DataSourceConfiguration(_, context),
|
|
2398
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2399
|
+
dataSourceArn: smithy_client_1.expectString,
|
|
2400
|
+
dataSourceId: smithy_client_1.expectString,
|
|
2401
|
+
description: smithy_client_1.expectString,
|
|
2402
|
+
displayName: smithy_client_1.expectString,
|
|
2403
|
+
documentEnrichmentConfiguration: (_) => de_DocumentEnrichmentConfiguration(_, context),
|
|
2404
|
+
error: smithy_client_1._json,
|
|
2405
|
+
indexId: smithy_client_1.expectString,
|
|
2406
|
+
roleArn: smithy_client_1.expectString,
|
|
2407
|
+
status: smithy_client_1.expectString,
|
|
2408
|
+
syncSchedule: smithy_client_1.expectString,
|
|
2409
|
+
type: smithy_client_1.expectString,
|
|
2410
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2411
|
+
vpcConfiguration: smithy_client_1._json,
|
|
2412
|
+
});
|
|
2413
|
+
Object.assign(contents, doc);
|
|
2414
|
+
return contents;
|
|
2415
|
+
};
|
|
2416
|
+
exports.de_GetDataSourceCommand = de_GetDataSourceCommand;
|
|
2417
|
+
const de_GetDataSourceCommandError = async (output, context) => {
|
|
2418
|
+
const parsedOutput = {
|
|
2419
|
+
...output,
|
|
2420
|
+
body: await parseErrorBody(output.body, context),
|
|
2421
|
+
};
|
|
2422
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2423
|
+
switch (errorCode) {
|
|
2424
|
+
case "AccessDeniedException":
|
|
2425
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2426
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2427
|
+
case "InternalServerException":
|
|
2428
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2429
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2430
|
+
case "ResourceNotFoundException":
|
|
2431
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2432
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2433
|
+
case "ThrottlingException":
|
|
2434
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2435
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2436
|
+
case "ValidationException":
|
|
2437
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
2438
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2439
|
+
default:
|
|
2440
|
+
const parsedBody = parsedOutput.body;
|
|
2441
|
+
return throwDefaultError({
|
|
2442
|
+
output,
|
|
2443
|
+
parsedBody,
|
|
2444
|
+
errorCode,
|
|
2445
|
+
});
|
|
2446
|
+
}
|
|
2447
|
+
};
|
|
2448
|
+
const de_GetGroupCommand = async (output, context) => {
|
|
2449
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2450
|
+
return de_GetGroupCommandError(output, context);
|
|
2451
|
+
}
|
|
2452
|
+
const contents = (0, smithy_client_1.map)({
|
|
2453
|
+
$metadata: deserializeMetadata(output),
|
|
2454
|
+
});
|
|
2455
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2456
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2457
|
+
status: (_) => de_GroupStatusDetail(_, context),
|
|
2458
|
+
statusHistory: (_) => de_GroupStatusDetails(_, context),
|
|
2459
|
+
});
|
|
2460
|
+
Object.assign(contents, doc);
|
|
2461
|
+
return contents;
|
|
2462
|
+
};
|
|
2463
|
+
exports.de_GetGroupCommand = de_GetGroupCommand;
|
|
2464
|
+
const de_GetGroupCommandError = async (output, context) => {
|
|
2465
|
+
const parsedOutput = {
|
|
2466
|
+
...output,
|
|
2467
|
+
body: await parseErrorBody(output.body, context),
|
|
2468
|
+
};
|
|
2469
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2470
|
+
switch (errorCode) {
|
|
2471
|
+
case "AccessDeniedException":
|
|
2472
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2473
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2474
|
+
case "ConflictException":
|
|
2475
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
2476
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2477
|
+
case "InternalServerException":
|
|
2478
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2479
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2480
|
+
case "ResourceNotFoundException":
|
|
2481
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2482
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2483
|
+
case "ThrottlingException":
|
|
2484
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2485
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2486
|
+
case "ValidationException":
|
|
2487
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
2488
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2489
|
+
default:
|
|
2490
|
+
const parsedBody = parsedOutput.body;
|
|
2491
|
+
return throwDefaultError({
|
|
2492
|
+
output,
|
|
2493
|
+
parsedBody,
|
|
2494
|
+
errorCode,
|
|
2495
|
+
});
|
|
2496
|
+
}
|
|
2497
|
+
};
|
|
2498
|
+
const de_GetIndexCommand = async (output, context) => {
|
|
2499
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2500
|
+
return de_GetIndexCommandError(output, context);
|
|
2501
|
+
}
|
|
2502
|
+
const contents = (0, smithy_client_1.map)({
|
|
2503
|
+
$metadata: deserializeMetadata(output),
|
|
2504
|
+
});
|
|
2505
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2506
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2507
|
+
applicationId: smithy_client_1.expectString,
|
|
2508
|
+
capacityConfiguration: smithy_client_1._json,
|
|
2509
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2510
|
+
description: smithy_client_1.expectString,
|
|
2511
|
+
displayName: smithy_client_1.expectString,
|
|
2512
|
+
documentAttributeConfigurations: smithy_client_1._json,
|
|
2513
|
+
error: smithy_client_1._json,
|
|
2514
|
+
indexArn: smithy_client_1.expectString,
|
|
2515
|
+
indexId: smithy_client_1.expectString,
|
|
2516
|
+
indexStatistics: smithy_client_1._json,
|
|
2517
|
+
status: smithy_client_1.expectString,
|
|
2518
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2519
|
+
});
|
|
2520
|
+
Object.assign(contents, doc);
|
|
2521
|
+
return contents;
|
|
2522
|
+
};
|
|
2523
|
+
exports.de_GetIndexCommand = de_GetIndexCommand;
|
|
2524
|
+
const de_GetIndexCommandError = async (output, context) => {
|
|
2525
|
+
const parsedOutput = {
|
|
2526
|
+
...output,
|
|
2527
|
+
body: await parseErrorBody(output.body, context),
|
|
2528
|
+
};
|
|
2529
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2530
|
+
switch (errorCode) {
|
|
2531
|
+
case "AccessDeniedException":
|
|
2532
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2533
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2534
|
+
case "InternalServerException":
|
|
2535
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2536
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2537
|
+
case "ResourceNotFoundException":
|
|
2538
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2539
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2540
|
+
case "ThrottlingException":
|
|
2541
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2542
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2543
|
+
case "ValidationException":
|
|
2544
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
2545
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2546
|
+
default:
|
|
2547
|
+
const parsedBody = parsedOutput.body;
|
|
2548
|
+
return throwDefaultError({
|
|
2549
|
+
output,
|
|
2550
|
+
parsedBody,
|
|
2551
|
+
errorCode,
|
|
2552
|
+
});
|
|
2553
|
+
}
|
|
2554
|
+
};
|
|
2555
|
+
const de_GetPluginCommand = async (output, context) => {
|
|
2556
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2557
|
+
return de_GetPluginCommandError(output, context);
|
|
2558
|
+
}
|
|
2559
|
+
const contents = (0, smithy_client_1.map)({
|
|
2560
|
+
$metadata: deserializeMetadata(output),
|
|
2561
|
+
});
|
|
2562
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2563
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2564
|
+
applicationId: smithy_client_1.expectString,
|
|
2565
|
+
authConfiguration: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
2566
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2567
|
+
displayName: smithy_client_1.expectString,
|
|
2568
|
+
pluginArn: smithy_client_1.expectString,
|
|
2569
|
+
pluginId: smithy_client_1.expectString,
|
|
2570
|
+
serverUrl: smithy_client_1.expectString,
|
|
2571
|
+
state: smithy_client_1.expectString,
|
|
2572
|
+
type: smithy_client_1.expectString,
|
|
2573
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2574
|
+
});
|
|
2575
|
+
Object.assign(contents, doc);
|
|
2576
|
+
return contents;
|
|
2577
|
+
};
|
|
2578
|
+
exports.de_GetPluginCommand = de_GetPluginCommand;
|
|
2579
|
+
const de_GetPluginCommandError = async (output, context) => {
|
|
2580
|
+
const parsedOutput = {
|
|
2581
|
+
...output,
|
|
2582
|
+
body: await parseErrorBody(output.body, context),
|
|
2583
|
+
};
|
|
2584
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2585
|
+
switch (errorCode) {
|
|
2586
|
+
case "AccessDeniedException":
|
|
2587
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2588
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2589
|
+
case "InternalServerException":
|
|
2590
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2591
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2592
|
+
case "ResourceNotFoundException":
|
|
2593
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2594
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2595
|
+
case "ThrottlingException":
|
|
2596
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2597
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2598
|
+
case "ValidationException":
|
|
2599
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
2600
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2601
|
+
default:
|
|
2602
|
+
const parsedBody = parsedOutput.body;
|
|
2603
|
+
return throwDefaultError({
|
|
2604
|
+
output,
|
|
2605
|
+
parsedBody,
|
|
2606
|
+
errorCode,
|
|
2607
|
+
});
|
|
2608
|
+
}
|
|
2609
|
+
};
|
|
2610
|
+
const de_GetRetrieverCommand = async (output, context) => {
|
|
2611
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2612
|
+
return de_GetRetrieverCommandError(output, context);
|
|
2613
|
+
}
|
|
2614
|
+
const contents = (0, smithy_client_1.map)({
|
|
2615
|
+
$metadata: deserializeMetadata(output),
|
|
2616
|
+
});
|
|
2617
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2618
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2619
|
+
applicationId: smithy_client_1.expectString,
|
|
2620
|
+
configuration: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
2621
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2622
|
+
displayName: smithy_client_1.expectString,
|
|
2623
|
+
retrieverArn: smithy_client_1.expectString,
|
|
2624
|
+
retrieverId: smithy_client_1.expectString,
|
|
2625
|
+
roleArn: smithy_client_1.expectString,
|
|
2626
|
+
status: smithy_client_1.expectString,
|
|
2627
|
+
type: smithy_client_1.expectString,
|
|
2628
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2629
|
+
});
|
|
2630
|
+
Object.assign(contents, doc);
|
|
2631
|
+
return contents;
|
|
2632
|
+
};
|
|
2633
|
+
exports.de_GetRetrieverCommand = de_GetRetrieverCommand;
|
|
2634
|
+
const de_GetRetrieverCommandError = async (output, context) => {
|
|
2635
|
+
const parsedOutput = {
|
|
2636
|
+
...output,
|
|
2637
|
+
body: await parseErrorBody(output.body, context),
|
|
2638
|
+
};
|
|
2639
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2640
|
+
switch (errorCode) {
|
|
2641
|
+
case "AccessDeniedException":
|
|
2642
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2643
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2644
|
+
case "InternalServerException":
|
|
2645
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2646
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2647
|
+
case "ResourceNotFoundException":
|
|
2648
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2649
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2650
|
+
case "ThrottlingException":
|
|
2651
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2652
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2653
|
+
case "ValidationException":
|
|
2654
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
2655
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2656
|
+
default:
|
|
2657
|
+
const parsedBody = parsedOutput.body;
|
|
2658
|
+
return throwDefaultError({
|
|
2659
|
+
output,
|
|
2660
|
+
parsedBody,
|
|
2661
|
+
errorCode,
|
|
2662
|
+
});
|
|
2663
|
+
}
|
|
2664
|
+
};
|
|
2665
|
+
const de_GetUserCommand = async (output, context) => {
|
|
2666
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2667
|
+
return de_GetUserCommandError(output, context);
|
|
2668
|
+
}
|
|
2669
|
+
const contents = (0, smithy_client_1.map)({
|
|
2670
|
+
$metadata: deserializeMetadata(output),
|
|
2671
|
+
});
|
|
2672
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2673
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2674
|
+
userAliases: smithy_client_1._json,
|
|
2675
|
+
});
|
|
2676
|
+
Object.assign(contents, doc);
|
|
2677
|
+
return contents;
|
|
2678
|
+
};
|
|
2679
|
+
exports.de_GetUserCommand = de_GetUserCommand;
|
|
2680
|
+
const de_GetUserCommandError = async (output, context) => {
|
|
2681
|
+
const parsedOutput = {
|
|
2682
|
+
...output,
|
|
2683
|
+
body: await parseErrorBody(output.body, context),
|
|
2684
|
+
};
|
|
2685
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2686
|
+
switch (errorCode) {
|
|
2687
|
+
case "AccessDeniedException":
|
|
2688
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2689
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2690
|
+
case "ConflictException":
|
|
2691
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
2692
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2693
|
+
case "InternalServerException":
|
|
2694
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2695
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2696
|
+
case "ResourceNotFoundException":
|
|
2697
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2698
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2699
|
+
case "ThrottlingException":
|
|
2700
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2701
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2702
|
+
case "ValidationException":
|
|
2703
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
2704
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2705
|
+
default:
|
|
2706
|
+
const parsedBody = parsedOutput.body;
|
|
2707
|
+
return throwDefaultError({
|
|
2708
|
+
output,
|
|
2709
|
+
parsedBody,
|
|
2710
|
+
errorCode,
|
|
2711
|
+
});
|
|
2712
|
+
}
|
|
2713
|
+
};
|
|
2714
|
+
const de_GetWebExperienceCommand = async (output, context) => {
|
|
2715
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2716
|
+
return de_GetWebExperienceCommandError(output, context);
|
|
2717
|
+
}
|
|
2718
|
+
const contents = (0, smithy_client_1.map)({
|
|
2719
|
+
$metadata: deserializeMetadata(output),
|
|
2720
|
+
});
|
|
2721
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2722
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2723
|
+
applicationId: smithy_client_1.expectString,
|
|
2724
|
+
authenticationConfiguration: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
2725
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2726
|
+
defaultEndpoint: smithy_client_1.expectString,
|
|
2727
|
+
error: smithy_client_1._json,
|
|
2728
|
+
samplePromptsControlMode: smithy_client_1.expectString,
|
|
2729
|
+
status: smithy_client_1.expectString,
|
|
2730
|
+
subtitle: smithy_client_1.expectString,
|
|
2731
|
+
title: smithy_client_1.expectString,
|
|
2732
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2733
|
+
webExperienceArn: smithy_client_1.expectString,
|
|
2734
|
+
webExperienceId: smithy_client_1.expectString,
|
|
2735
|
+
welcomeMessage: smithy_client_1.expectString,
|
|
2736
|
+
});
|
|
2737
|
+
Object.assign(contents, doc);
|
|
2738
|
+
return contents;
|
|
2739
|
+
};
|
|
2740
|
+
exports.de_GetWebExperienceCommand = de_GetWebExperienceCommand;
|
|
2741
|
+
const de_GetWebExperienceCommandError = async (output, context) => {
|
|
2742
|
+
const parsedOutput = {
|
|
2743
|
+
...output,
|
|
2744
|
+
body: await parseErrorBody(output.body, context),
|
|
2745
|
+
};
|
|
2746
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2747
|
+
switch (errorCode) {
|
|
2748
|
+
case "AccessDeniedException":
|
|
2749
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2750
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2751
|
+
case "InternalServerException":
|
|
2752
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2753
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2754
|
+
case "ResourceNotFoundException":
|
|
2755
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2756
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2757
|
+
case "ThrottlingException":
|
|
2758
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2759
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2760
|
+
case "ValidationException":
|
|
2761
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
2762
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2763
|
+
default:
|
|
2764
|
+
const parsedBody = parsedOutput.body;
|
|
2765
|
+
return throwDefaultError({
|
|
2766
|
+
output,
|
|
2767
|
+
parsedBody,
|
|
2768
|
+
errorCode,
|
|
2769
|
+
});
|
|
2770
|
+
}
|
|
2771
|
+
};
|
|
2772
|
+
const de_ListApplicationsCommand = async (output, context) => {
|
|
2773
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2774
|
+
return de_ListApplicationsCommandError(output, context);
|
|
2775
|
+
}
|
|
2776
|
+
const contents = (0, smithy_client_1.map)({
|
|
2777
|
+
$metadata: deserializeMetadata(output),
|
|
2778
|
+
});
|
|
2779
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2780
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2781
|
+
applications: (_) => de_Applications(_, context),
|
|
2782
|
+
nextToken: smithy_client_1.expectString,
|
|
2783
|
+
});
|
|
2784
|
+
Object.assign(contents, doc);
|
|
2785
|
+
return contents;
|
|
2786
|
+
};
|
|
2787
|
+
exports.de_ListApplicationsCommand = de_ListApplicationsCommand;
|
|
2788
|
+
const de_ListApplicationsCommandError = async (output, context) => {
|
|
2789
|
+
const parsedOutput = {
|
|
2790
|
+
...output,
|
|
2791
|
+
body: await parseErrorBody(output.body, context),
|
|
2792
|
+
};
|
|
2793
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2794
|
+
switch (errorCode) {
|
|
2795
|
+
case "AccessDeniedException":
|
|
2796
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2797
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2798
|
+
case "InternalServerException":
|
|
2799
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2800
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2801
|
+
case "ThrottlingException":
|
|
2802
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2803
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2804
|
+
case "ValidationException":
|
|
2805
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
2806
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2807
|
+
default:
|
|
2808
|
+
const parsedBody = parsedOutput.body;
|
|
2809
|
+
return throwDefaultError({
|
|
2810
|
+
output,
|
|
2811
|
+
parsedBody,
|
|
2812
|
+
errorCode,
|
|
2813
|
+
});
|
|
2814
|
+
}
|
|
2815
|
+
};
|
|
2816
|
+
const de_ListConversationsCommand = async (output, context) => {
|
|
2817
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2818
|
+
return de_ListConversationsCommandError(output, context);
|
|
2819
|
+
}
|
|
2820
|
+
const contents = (0, smithy_client_1.map)({
|
|
2821
|
+
$metadata: deserializeMetadata(output),
|
|
2822
|
+
});
|
|
2823
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2824
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2825
|
+
conversations: (_) => de_Conversations(_, context),
|
|
2826
|
+
nextToken: smithy_client_1.expectString,
|
|
2827
|
+
});
|
|
2828
|
+
Object.assign(contents, doc);
|
|
2829
|
+
return contents;
|
|
2830
|
+
};
|
|
2831
|
+
exports.de_ListConversationsCommand = de_ListConversationsCommand;
|
|
2832
|
+
const de_ListConversationsCommandError = async (output, context) => {
|
|
2833
|
+
const parsedOutput = {
|
|
2834
|
+
...output,
|
|
2835
|
+
body: await parseErrorBody(output.body, context),
|
|
2836
|
+
};
|
|
2837
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2838
|
+
switch (errorCode) {
|
|
2839
|
+
case "AccessDeniedException":
|
|
2840
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2841
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2842
|
+
case "InternalServerException":
|
|
2843
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2844
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2845
|
+
case "LicenseNotFoundException":
|
|
2846
|
+
case "com.amazonaws.qbusiness#LicenseNotFoundException":
|
|
2847
|
+
throw await de_LicenseNotFoundExceptionRes(parsedOutput, context);
|
|
2848
|
+
case "ResourceNotFoundException":
|
|
2849
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2850
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2851
|
+
case "ThrottlingException":
|
|
2852
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2853
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2854
|
+
case "ValidationException":
|
|
2855
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
2856
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2857
|
+
default:
|
|
2858
|
+
const parsedBody = parsedOutput.body;
|
|
2859
|
+
return throwDefaultError({
|
|
2860
|
+
output,
|
|
2861
|
+
parsedBody,
|
|
2862
|
+
errorCode,
|
|
2863
|
+
});
|
|
2864
|
+
}
|
|
2865
|
+
};
|
|
2866
|
+
const de_ListDataSourcesCommand = async (output, context) => {
|
|
2867
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2868
|
+
return de_ListDataSourcesCommandError(output, context);
|
|
2869
|
+
}
|
|
2870
|
+
const contents = (0, smithy_client_1.map)({
|
|
2871
|
+
$metadata: deserializeMetadata(output),
|
|
2872
|
+
});
|
|
2873
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2874
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2875
|
+
dataSources: (_) => de_DataSources(_, context),
|
|
2876
|
+
nextToken: smithy_client_1.expectString,
|
|
2877
|
+
});
|
|
2878
|
+
Object.assign(contents, doc);
|
|
2879
|
+
return contents;
|
|
2880
|
+
};
|
|
2881
|
+
exports.de_ListDataSourcesCommand = de_ListDataSourcesCommand;
|
|
2882
|
+
const de_ListDataSourcesCommandError = async (output, context) => {
|
|
2883
|
+
const parsedOutput = {
|
|
2884
|
+
...output,
|
|
2885
|
+
body: await parseErrorBody(output.body, context),
|
|
2886
|
+
};
|
|
2887
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2888
|
+
switch (errorCode) {
|
|
2889
|
+
case "AccessDeniedException":
|
|
2890
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2891
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2892
|
+
case "InternalServerException":
|
|
2893
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2894
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2895
|
+
case "ResourceNotFoundException":
|
|
2896
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2897
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2898
|
+
case "ThrottlingException":
|
|
2899
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2900
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2901
|
+
case "ValidationException":
|
|
2902
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
2903
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2904
|
+
default:
|
|
2905
|
+
const parsedBody = parsedOutput.body;
|
|
2906
|
+
return throwDefaultError({
|
|
2907
|
+
output,
|
|
2908
|
+
parsedBody,
|
|
2909
|
+
errorCode,
|
|
2910
|
+
});
|
|
2911
|
+
}
|
|
2912
|
+
};
|
|
2913
|
+
const de_ListDataSourceSyncJobsCommand = async (output, context) => {
|
|
2914
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2915
|
+
return de_ListDataSourceSyncJobsCommandError(output, context);
|
|
2916
|
+
}
|
|
2917
|
+
const contents = (0, smithy_client_1.map)({
|
|
2918
|
+
$metadata: deserializeMetadata(output),
|
|
2919
|
+
});
|
|
2920
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2921
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2922
|
+
history: (_) => de_DataSourceSyncJobs(_, context),
|
|
2923
|
+
nextToken: smithy_client_1.expectString,
|
|
2924
|
+
});
|
|
2925
|
+
Object.assign(contents, doc);
|
|
2926
|
+
return contents;
|
|
2927
|
+
};
|
|
2928
|
+
exports.de_ListDataSourceSyncJobsCommand = de_ListDataSourceSyncJobsCommand;
|
|
2929
|
+
const de_ListDataSourceSyncJobsCommandError = async (output, context) => {
|
|
2930
|
+
const parsedOutput = {
|
|
2931
|
+
...output,
|
|
2932
|
+
body: await parseErrorBody(output.body, context),
|
|
2933
|
+
};
|
|
2934
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2935
|
+
switch (errorCode) {
|
|
2936
|
+
case "AccessDeniedException":
|
|
2937
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2938
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2939
|
+
case "InternalServerException":
|
|
2940
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2941
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2942
|
+
case "ResourceNotFoundException":
|
|
2943
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2944
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2945
|
+
case "ThrottlingException":
|
|
2946
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2947
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2948
|
+
case "ValidationException":
|
|
2949
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
2950
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2951
|
+
default:
|
|
2952
|
+
const parsedBody = parsedOutput.body;
|
|
2953
|
+
return throwDefaultError({
|
|
2954
|
+
output,
|
|
2955
|
+
parsedBody,
|
|
2956
|
+
errorCode,
|
|
2957
|
+
});
|
|
2958
|
+
}
|
|
2959
|
+
};
|
|
2960
|
+
const de_ListDocumentsCommand = async (output, context) => {
|
|
2961
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2962
|
+
return de_ListDocumentsCommandError(output, context);
|
|
2963
|
+
}
|
|
2964
|
+
const contents = (0, smithy_client_1.map)({
|
|
2965
|
+
$metadata: deserializeMetadata(output),
|
|
2966
|
+
});
|
|
2967
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2968
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2969
|
+
documentDetailList: (_) => de_DocumentDetailList(_, context),
|
|
2970
|
+
nextToken: smithy_client_1.expectString,
|
|
2971
|
+
});
|
|
2972
|
+
Object.assign(contents, doc);
|
|
2973
|
+
return contents;
|
|
2974
|
+
};
|
|
2975
|
+
exports.de_ListDocumentsCommand = de_ListDocumentsCommand;
|
|
2976
|
+
const de_ListDocumentsCommandError = async (output, context) => {
|
|
2977
|
+
const parsedOutput = {
|
|
2978
|
+
...output,
|
|
2979
|
+
body: await parseErrorBody(output.body, context),
|
|
2980
|
+
};
|
|
2981
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2982
|
+
switch (errorCode) {
|
|
2983
|
+
case "AccessDeniedException":
|
|
2984
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
2985
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2986
|
+
case "InternalServerException":
|
|
2987
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
2988
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2989
|
+
case "ResourceNotFoundException":
|
|
2990
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
2991
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2992
|
+
case "ThrottlingException":
|
|
2993
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
2994
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2995
|
+
case "ValidationException":
|
|
2996
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
2997
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2998
|
+
default:
|
|
2999
|
+
const parsedBody = parsedOutput.body;
|
|
3000
|
+
return throwDefaultError({
|
|
3001
|
+
output,
|
|
3002
|
+
parsedBody,
|
|
3003
|
+
errorCode,
|
|
3004
|
+
});
|
|
3005
|
+
}
|
|
3006
|
+
};
|
|
3007
|
+
const de_ListGroupsCommand = async (output, context) => {
|
|
3008
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3009
|
+
return de_ListGroupsCommandError(output, context);
|
|
3010
|
+
}
|
|
3011
|
+
const contents = (0, smithy_client_1.map)({
|
|
3012
|
+
$metadata: deserializeMetadata(output),
|
|
3013
|
+
});
|
|
3014
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3015
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3016
|
+
items: smithy_client_1._json,
|
|
3017
|
+
nextToken: smithy_client_1.expectString,
|
|
3018
|
+
});
|
|
3019
|
+
Object.assign(contents, doc);
|
|
3020
|
+
return contents;
|
|
3021
|
+
};
|
|
3022
|
+
exports.de_ListGroupsCommand = de_ListGroupsCommand;
|
|
3023
|
+
const de_ListGroupsCommandError = async (output, context) => {
|
|
3024
|
+
const parsedOutput = {
|
|
3025
|
+
...output,
|
|
3026
|
+
body: await parseErrorBody(output.body, context),
|
|
3027
|
+
};
|
|
3028
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3029
|
+
switch (errorCode) {
|
|
3030
|
+
case "AccessDeniedException":
|
|
3031
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3032
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3033
|
+
case "ConflictException":
|
|
3034
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
3035
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3036
|
+
case "InternalServerException":
|
|
3037
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3038
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3039
|
+
case "ResourceNotFoundException":
|
|
3040
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3041
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3042
|
+
case "ThrottlingException":
|
|
3043
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3044
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3045
|
+
case "ValidationException":
|
|
3046
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
3047
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3048
|
+
default:
|
|
3049
|
+
const parsedBody = parsedOutput.body;
|
|
3050
|
+
return throwDefaultError({
|
|
3051
|
+
output,
|
|
3052
|
+
parsedBody,
|
|
3053
|
+
errorCode,
|
|
3054
|
+
});
|
|
3055
|
+
}
|
|
3056
|
+
};
|
|
3057
|
+
const de_ListIndicesCommand = async (output, context) => {
|
|
3058
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3059
|
+
return de_ListIndicesCommandError(output, context);
|
|
3060
|
+
}
|
|
3061
|
+
const contents = (0, smithy_client_1.map)({
|
|
3062
|
+
$metadata: deserializeMetadata(output),
|
|
3063
|
+
});
|
|
3064
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3065
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3066
|
+
indices: (_) => de_Indices(_, context),
|
|
3067
|
+
nextToken: smithy_client_1.expectString,
|
|
3068
|
+
});
|
|
3069
|
+
Object.assign(contents, doc);
|
|
3070
|
+
return contents;
|
|
3071
|
+
};
|
|
3072
|
+
exports.de_ListIndicesCommand = de_ListIndicesCommand;
|
|
3073
|
+
const de_ListIndicesCommandError = async (output, context) => {
|
|
3074
|
+
const parsedOutput = {
|
|
3075
|
+
...output,
|
|
3076
|
+
body: await parseErrorBody(output.body, context),
|
|
3077
|
+
};
|
|
3078
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3079
|
+
switch (errorCode) {
|
|
3080
|
+
case "AccessDeniedException":
|
|
3081
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3082
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3083
|
+
case "InternalServerException":
|
|
3084
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3085
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3086
|
+
case "ResourceNotFoundException":
|
|
3087
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3088
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3089
|
+
case "ThrottlingException":
|
|
3090
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3091
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3092
|
+
case "ValidationException":
|
|
3093
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
3094
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3095
|
+
default:
|
|
3096
|
+
const parsedBody = parsedOutput.body;
|
|
3097
|
+
return throwDefaultError({
|
|
3098
|
+
output,
|
|
3099
|
+
parsedBody,
|
|
3100
|
+
errorCode,
|
|
3101
|
+
});
|
|
3102
|
+
}
|
|
3103
|
+
};
|
|
3104
|
+
const de_ListMessagesCommand = async (output, context) => {
|
|
3105
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3106
|
+
return de_ListMessagesCommandError(output, context);
|
|
3107
|
+
}
|
|
3108
|
+
const contents = (0, smithy_client_1.map)({
|
|
3109
|
+
$metadata: deserializeMetadata(output),
|
|
3110
|
+
});
|
|
3111
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3112
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3113
|
+
messages: (_) => de_Messages(_, context),
|
|
3114
|
+
nextToken: smithy_client_1.expectString,
|
|
3115
|
+
});
|
|
3116
|
+
Object.assign(contents, doc);
|
|
3117
|
+
return contents;
|
|
3118
|
+
};
|
|
3119
|
+
exports.de_ListMessagesCommand = de_ListMessagesCommand;
|
|
3120
|
+
const de_ListMessagesCommandError = async (output, context) => {
|
|
3121
|
+
const parsedOutput = {
|
|
3122
|
+
...output,
|
|
3123
|
+
body: await parseErrorBody(output.body, context),
|
|
3124
|
+
};
|
|
3125
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3126
|
+
switch (errorCode) {
|
|
3127
|
+
case "AccessDeniedException":
|
|
3128
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3129
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3130
|
+
case "InternalServerException":
|
|
3131
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3132
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3133
|
+
case "LicenseNotFoundException":
|
|
3134
|
+
case "com.amazonaws.qbusiness#LicenseNotFoundException":
|
|
3135
|
+
throw await de_LicenseNotFoundExceptionRes(parsedOutput, context);
|
|
3136
|
+
case "ResourceNotFoundException":
|
|
3137
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3138
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3139
|
+
case "ThrottlingException":
|
|
3140
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3141
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3142
|
+
case "ValidationException":
|
|
3143
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
3144
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3145
|
+
default:
|
|
3146
|
+
const parsedBody = parsedOutput.body;
|
|
3147
|
+
return throwDefaultError({
|
|
3148
|
+
output,
|
|
3149
|
+
parsedBody,
|
|
3150
|
+
errorCode,
|
|
3151
|
+
});
|
|
3152
|
+
}
|
|
3153
|
+
};
|
|
3154
|
+
const de_ListPluginsCommand = async (output, context) => {
|
|
3155
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3156
|
+
return de_ListPluginsCommandError(output, context);
|
|
3157
|
+
}
|
|
3158
|
+
const contents = (0, smithy_client_1.map)({
|
|
3159
|
+
$metadata: deserializeMetadata(output),
|
|
3160
|
+
});
|
|
3161
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3162
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3163
|
+
nextToken: smithy_client_1.expectString,
|
|
3164
|
+
plugins: (_) => de_Plugins(_, context),
|
|
3165
|
+
});
|
|
3166
|
+
Object.assign(contents, doc);
|
|
3167
|
+
return contents;
|
|
3168
|
+
};
|
|
3169
|
+
exports.de_ListPluginsCommand = de_ListPluginsCommand;
|
|
3170
|
+
const de_ListPluginsCommandError = async (output, context) => {
|
|
3171
|
+
const parsedOutput = {
|
|
3172
|
+
...output,
|
|
3173
|
+
body: await parseErrorBody(output.body, context),
|
|
3174
|
+
};
|
|
3175
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3176
|
+
switch (errorCode) {
|
|
3177
|
+
case "AccessDeniedException":
|
|
3178
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3179
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3180
|
+
case "InternalServerException":
|
|
3181
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3182
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3183
|
+
case "ResourceNotFoundException":
|
|
3184
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3185
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3186
|
+
case "ThrottlingException":
|
|
3187
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3188
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3189
|
+
case "ValidationException":
|
|
3190
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
3191
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3192
|
+
default:
|
|
3193
|
+
const parsedBody = parsedOutput.body;
|
|
3194
|
+
return throwDefaultError({
|
|
3195
|
+
output,
|
|
3196
|
+
parsedBody,
|
|
3197
|
+
errorCode,
|
|
3198
|
+
});
|
|
3199
|
+
}
|
|
3200
|
+
};
|
|
3201
|
+
const de_ListRetrieversCommand = async (output, context) => {
|
|
3202
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3203
|
+
return de_ListRetrieversCommandError(output, context);
|
|
3204
|
+
}
|
|
3205
|
+
const contents = (0, smithy_client_1.map)({
|
|
3206
|
+
$metadata: deserializeMetadata(output),
|
|
3207
|
+
});
|
|
3208
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3209
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3210
|
+
nextToken: smithy_client_1.expectString,
|
|
3211
|
+
retrievers: smithy_client_1._json,
|
|
3212
|
+
});
|
|
3213
|
+
Object.assign(contents, doc);
|
|
3214
|
+
return contents;
|
|
3215
|
+
};
|
|
3216
|
+
exports.de_ListRetrieversCommand = de_ListRetrieversCommand;
|
|
3217
|
+
const de_ListRetrieversCommandError = async (output, context) => {
|
|
3218
|
+
const parsedOutput = {
|
|
3219
|
+
...output,
|
|
3220
|
+
body: await parseErrorBody(output.body, context),
|
|
3221
|
+
};
|
|
3222
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3223
|
+
switch (errorCode) {
|
|
3224
|
+
case "AccessDeniedException":
|
|
3225
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3226
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3227
|
+
case "InternalServerException":
|
|
3228
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3229
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3230
|
+
case "ResourceNotFoundException":
|
|
3231
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3232
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3233
|
+
case "ThrottlingException":
|
|
3234
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3235
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3236
|
+
case "ValidationException":
|
|
3237
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
3238
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3239
|
+
default:
|
|
3240
|
+
const parsedBody = parsedOutput.body;
|
|
3241
|
+
return throwDefaultError({
|
|
3242
|
+
output,
|
|
3243
|
+
parsedBody,
|
|
3244
|
+
errorCode,
|
|
3245
|
+
});
|
|
3246
|
+
}
|
|
3247
|
+
};
|
|
3248
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
3249
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3250
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
3251
|
+
}
|
|
3252
|
+
const contents = (0, smithy_client_1.map)({
|
|
3253
|
+
$metadata: deserializeMetadata(output),
|
|
3254
|
+
});
|
|
3255
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3256
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3257
|
+
tags: smithy_client_1._json,
|
|
3258
|
+
});
|
|
3259
|
+
Object.assign(contents, doc);
|
|
3260
|
+
return contents;
|
|
3261
|
+
};
|
|
3262
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
3263
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
3264
|
+
const parsedOutput = {
|
|
3265
|
+
...output,
|
|
3266
|
+
body: await parseErrorBody(output.body, context),
|
|
3267
|
+
};
|
|
3268
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3269
|
+
switch (errorCode) {
|
|
3270
|
+
case "AccessDeniedException":
|
|
3271
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3272
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3273
|
+
case "InternalServerException":
|
|
3274
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3275
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3276
|
+
case "ResourceNotFoundException":
|
|
3277
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3278
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3279
|
+
case "ThrottlingException":
|
|
3280
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3281
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3282
|
+
case "ValidationException":
|
|
3283
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
3284
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3285
|
+
default:
|
|
3286
|
+
const parsedBody = parsedOutput.body;
|
|
3287
|
+
return throwDefaultError({
|
|
3288
|
+
output,
|
|
3289
|
+
parsedBody,
|
|
3290
|
+
errorCode,
|
|
3291
|
+
});
|
|
3292
|
+
}
|
|
3293
|
+
};
|
|
3294
|
+
const de_ListWebExperiencesCommand = async (output, context) => {
|
|
3295
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3296
|
+
return de_ListWebExperiencesCommandError(output, context);
|
|
3297
|
+
}
|
|
3298
|
+
const contents = (0, smithy_client_1.map)({
|
|
3299
|
+
$metadata: deserializeMetadata(output),
|
|
3300
|
+
});
|
|
3301
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3302
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3303
|
+
nextToken: smithy_client_1.expectString,
|
|
3304
|
+
webExperiences: (_) => de_WebExperiences(_, context),
|
|
3305
|
+
});
|
|
3306
|
+
Object.assign(contents, doc);
|
|
3307
|
+
return contents;
|
|
3308
|
+
};
|
|
3309
|
+
exports.de_ListWebExperiencesCommand = de_ListWebExperiencesCommand;
|
|
3310
|
+
const de_ListWebExperiencesCommandError = async (output, context) => {
|
|
3311
|
+
const parsedOutput = {
|
|
3312
|
+
...output,
|
|
3313
|
+
body: await parseErrorBody(output.body, context),
|
|
3314
|
+
};
|
|
3315
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3316
|
+
switch (errorCode) {
|
|
3317
|
+
case "AccessDeniedException":
|
|
3318
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3319
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3320
|
+
case "InternalServerException":
|
|
3321
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3322
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3323
|
+
case "ResourceNotFoundException":
|
|
3324
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3325
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3326
|
+
case "ThrottlingException":
|
|
3327
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3328
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3329
|
+
case "ValidationException":
|
|
3330
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
3331
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3332
|
+
default:
|
|
3333
|
+
const parsedBody = parsedOutput.body;
|
|
3334
|
+
return throwDefaultError({
|
|
3335
|
+
output,
|
|
3336
|
+
parsedBody,
|
|
3337
|
+
errorCode,
|
|
3338
|
+
});
|
|
3339
|
+
}
|
|
3340
|
+
};
|
|
3341
|
+
const de_PutFeedbackCommand = async (output, context) => {
|
|
3342
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3343
|
+
return de_PutFeedbackCommandError(output, context);
|
|
3344
|
+
}
|
|
3345
|
+
const contents = (0, smithy_client_1.map)({
|
|
3346
|
+
$metadata: deserializeMetadata(output),
|
|
3347
|
+
});
|
|
3348
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3349
|
+
return contents;
|
|
3350
|
+
};
|
|
3351
|
+
exports.de_PutFeedbackCommand = de_PutFeedbackCommand;
|
|
3352
|
+
const de_PutFeedbackCommandError = async (output, context) => {
|
|
3353
|
+
const parsedOutput = {
|
|
3354
|
+
...output,
|
|
3355
|
+
body: await parseErrorBody(output.body, context),
|
|
3356
|
+
};
|
|
3357
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3358
|
+
switch (errorCode) {
|
|
3359
|
+
case "AccessDeniedException":
|
|
3360
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3361
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3362
|
+
case "InternalServerException":
|
|
3363
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3364
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3365
|
+
case "ResourceNotFoundException":
|
|
3366
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3367
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3368
|
+
case "ThrottlingException":
|
|
3369
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3370
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3371
|
+
case "ValidationException":
|
|
3372
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
3373
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3374
|
+
default:
|
|
3375
|
+
const parsedBody = parsedOutput.body;
|
|
3376
|
+
return throwDefaultError({
|
|
3377
|
+
output,
|
|
3378
|
+
parsedBody,
|
|
3379
|
+
errorCode,
|
|
3380
|
+
});
|
|
3381
|
+
}
|
|
3382
|
+
};
|
|
3383
|
+
const de_PutGroupCommand = async (output, context) => {
|
|
3384
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3385
|
+
return de_PutGroupCommandError(output, context);
|
|
3386
|
+
}
|
|
3387
|
+
const contents = (0, smithy_client_1.map)({
|
|
3388
|
+
$metadata: deserializeMetadata(output),
|
|
3389
|
+
});
|
|
3390
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3391
|
+
return contents;
|
|
3392
|
+
};
|
|
3393
|
+
exports.de_PutGroupCommand = de_PutGroupCommand;
|
|
3394
|
+
const de_PutGroupCommandError = async (output, context) => {
|
|
3395
|
+
const parsedOutput = {
|
|
3396
|
+
...output,
|
|
3397
|
+
body: await parseErrorBody(output.body, context),
|
|
3398
|
+
};
|
|
3399
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3400
|
+
switch (errorCode) {
|
|
3401
|
+
case "AccessDeniedException":
|
|
3402
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3403
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3404
|
+
case "ConflictException":
|
|
3405
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
3406
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3407
|
+
case "InternalServerException":
|
|
3408
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3409
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3410
|
+
case "ResourceNotFoundException":
|
|
3411
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3412
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3413
|
+
case "ServiceQuotaExceededException":
|
|
3414
|
+
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
3415
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3416
|
+
case "ThrottlingException":
|
|
3417
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3418
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3419
|
+
case "ValidationException":
|
|
3420
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
3421
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3422
|
+
default:
|
|
3423
|
+
const parsedBody = parsedOutput.body;
|
|
3424
|
+
return throwDefaultError({
|
|
3425
|
+
output,
|
|
3426
|
+
parsedBody,
|
|
3427
|
+
errorCode,
|
|
3428
|
+
});
|
|
3429
|
+
}
|
|
3430
|
+
};
|
|
3431
|
+
const de_StartDataSourceSyncJobCommand = async (output, context) => {
|
|
3432
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3433
|
+
return de_StartDataSourceSyncJobCommandError(output, context);
|
|
3434
|
+
}
|
|
3435
|
+
const contents = (0, smithy_client_1.map)({
|
|
3436
|
+
$metadata: deserializeMetadata(output),
|
|
3437
|
+
});
|
|
3438
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3439
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3440
|
+
executionId: smithy_client_1.expectString,
|
|
3441
|
+
});
|
|
3442
|
+
Object.assign(contents, doc);
|
|
3443
|
+
return contents;
|
|
3444
|
+
};
|
|
3445
|
+
exports.de_StartDataSourceSyncJobCommand = de_StartDataSourceSyncJobCommand;
|
|
3446
|
+
const de_StartDataSourceSyncJobCommandError = async (output, context) => {
|
|
3447
|
+
const parsedOutput = {
|
|
3448
|
+
...output,
|
|
3449
|
+
body: await parseErrorBody(output.body, context),
|
|
3450
|
+
};
|
|
3451
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3452
|
+
switch (errorCode) {
|
|
3453
|
+
case "AccessDeniedException":
|
|
3454
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3455
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3456
|
+
case "ConflictException":
|
|
3457
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
3458
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3459
|
+
case "InternalServerException":
|
|
3460
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3461
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3462
|
+
case "ResourceNotFoundException":
|
|
3463
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3464
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3465
|
+
case "ServiceQuotaExceededException":
|
|
3466
|
+
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
3467
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3468
|
+
case "ThrottlingException":
|
|
3469
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3470
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3471
|
+
case "ValidationException":
|
|
3472
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
3473
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3474
|
+
default:
|
|
3475
|
+
const parsedBody = parsedOutput.body;
|
|
3476
|
+
return throwDefaultError({
|
|
3477
|
+
output,
|
|
3478
|
+
parsedBody,
|
|
3479
|
+
errorCode,
|
|
3480
|
+
});
|
|
3481
|
+
}
|
|
3482
|
+
};
|
|
3483
|
+
const de_StopDataSourceSyncJobCommand = async (output, context) => {
|
|
3484
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3485
|
+
return de_StopDataSourceSyncJobCommandError(output, context);
|
|
3486
|
+
}
|
|
3487
|
+
const contents = (0, smithy_client_1.map)({
|
|
3488
|
+
$metadata: deserializeMetadata(output),
|
|
3489
|
+
});
|
|
3490
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3491
|
+
return contents;
|
|
3492
|
+
};
|
|
3493
|
+
exports.de_StopDataSourceSyncJobCommand = de_StopDataSourceSyncJobCommand;
|
|
3494
|
+
const de_StopDataSourceSyncJobCommandError = async (output, context) => {
|
|
3495
|
+
const parsedOutput = {
|
|
3496
|
+
...output,
|
|
3497
|
+
body: await parseErrorBody(output.body, context),
|
|
3498
|
+
};
|
|
3499
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3500
|
+
switch (errorCode) {
|
|
3501
|
+
case "AccessDeniedException":
|
|
3502
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3503
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3504
|
+
case "InternalServerException":
|
|
3505
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3506
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3507
|
+
case "ResourceNotFoundException":
|
|
3508
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3509
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3510
|
+
case "ThrottlingException":
|
|
3511
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3512
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3513
|
+
case "ValidationException":
|
|
3514
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
3515
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3516
|
+
default:
|
|
3517
|
+
const parsedBody = parsedOutput.body;
|
|
3518
|
+
return throwDefaultError({
|
|
3519
|
+
output,
|
|
3520
|
+
parsedBody,
|
|
3521
|
+
errorCode,
|
|
3522
|
+
});
|
|
3523
|
+
}
|
|
3524
|
+
};
|
|
3525
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
3526
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3527
|
+
return de_TagResourceCommandError(output, context);
|
|
3528
|
+
}
|
|
3529
|
+
const contents = (0, smithy_client_1.map)({
|
|
3530
|
+
$metadata: deserializeMetadata(output),
|
|
3531
|
+
});
|
|
3532
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3533
|
+
return contents;
|
|
3534
|
+
};
|
|
3535
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
3536
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
3537
|
+
const parsedOutput = {
|
|
3538
|
+
...output,
|
|
3539
|
+
body: await parseErrorBody(output.body, context),
|
|
3540
|
+
};
|
|
3541
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3542
|
+
switch (errorCode) {
|
|
3543
|
+
case "AccessDeniedException":
|
|
3544
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3545
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3546
|
+
case "ConflictException":
|
|
3547
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
3548
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3549
|
+
case "InternalServerException":
|
|
3550
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3551
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3552
|
+
case "ResourceNotFoundException":
|
|
3553
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3554
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3555
|
+
case "ThrottlingException":
|
|
3556
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3557
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3558
|
+
case "ValidationException":
|
|
3559
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
3560
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3561
|
+
default:
|
|
3562
|
+
const parsedBody = parsedOutput.body;
|
|
3563
|
+
return throwDefaultError({
|
|
3564
|
+
output,
|
|
3565
|
+
parsedBody,
|
|
3566
|
+
errorCode,
|
|
3567
|
+
});
|
|
3568
|
+
}
|
|
3569
|
+
};
|
|
3570
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
3571
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3572
|
+
return de_UntagResourceCommandError(output, context);
|
|
3573
|
+
}
|
|
3574
|
+
const contents = (0, smithy_client_1.map)({
|
|
3575
|
+
$metadata: deserializeMetadata(output),
|
|
3576
|
+
});
|
|
3577
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3578
|
+
return contents;
|
|
3579
|
+
};
|
|
3580
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
3581
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
3582
|
+
const parsedOutput = {
|
|
3583
|
+
...output,
|
|
3584
|
+
body: await parseErrorBody(output.body, context),
|
|
3585
|
+
};
|
|
3586
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3587
|
+
switch (errorCode) {
|
|
3588
|
+
case "AccessDeniedException":
|
|
3589
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3590
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3591
|
+
case "InternalServerException":
|
|
3592
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3593
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3594
|
+
case "ResourceNotFoundException":
|
|
3595
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3596
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3597
|
+
case "ThrottlingException":
|
|
3598
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3599
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3600
|
+
case "ValidationException":
|
|
3601
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
3602
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3603
|
+
default:
|
|
3604
|
+
const parsedBody = parsedOutput.body;
|
|
3605
|
+
return throwDefaultError({
|
|
3606
|
+
output,
|
|
3607
|
+
parsedBody,
|
|
3608
|
+
errorCode,
|
|
3609
|
+
});
|
|
3610
|
+
}
|
|
3611
|
+
};
|
|
3612
|
+
const de_UpdateApplicationCommand = async (output, context) => {
|
|
3613
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3614
|
+
return de_UpdateApplicationCommandError(output, context);
|
|
3615
|
+
}
|
|
3616
|
+
const contents = (0, smithy_client_1.map)({
|
|
3617
|
+
$metadata: deserializeMetadata(output),
|
|
3618
|
+
});
|
|
3619
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3620
|
+
return contents;
|
|
3621
|
+
};
|
|
3622
|
+
exports.de_UpdateApplicationCommand = de_UpdateApplicationCommand;
|
|
3623
|
+
const de_UpdateApplicationCommandError = async (output, context) => {
|
|
3624
|
+
const parsedOutput = {
|
|
3625
|
+
...output,
|
|
3626
|
+
body: await parseErrorBody(output.body, context),
|
|
3627
|
+
};
|
|
3628
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3629
|
+
switch (errorCode) {
|
|
3630
|
+
case "AccessDeniedException":
|
|
3631
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3632
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3633
|
+
case "ConflictException":
|
|
3634
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
3635
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3636
|
+
case "InternalServerException":
|
|
3637
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3638
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3639
|
+
case "ResourceNotFoundException":
|
|
3640
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3641
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3642
|
+
case "ThrottlingException":
|
|
3643
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3644
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3645
|
+
case "ValidationException":
|
|
3646
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
3647
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3648
|
+
default:
|
|
3649
|
+
const parsedBody = parsedOutput.body;
|
|
3650
|
+
return throwDefaultError({
|
|
3651
|
+
output,
|
|
3652
|
+
parsedBody,
|
|
3653
|
+
errorCode,
|
|
3654
|
+
});
|
|
3655
|
+
}
|
|
3656
|
+
};
|
|
3657
|
+
const de_UpdateChatControlsConfigurationCommand = async (output, context) => {
|
|
3658
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3659
|
+
return de_UpdateChatControlsConfigurationCommandError(output, context);
|
|
3660
|
+
}
|
|
3661
|
+
const contents = (0, smithy_client_1.map)({
|
|
3662
|
+
$metadata: deserializeMetadata(output),
|
|
3663
|
+
});
|
|
3664
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3665
|
+
return contents;
|
|
3666
|
+
};
|
|
3667
|
+
exports.de_UpdateChatControlsConfigurationCommand = de_UpdateChatControlsConfigurationCommand;
|
|
3668
|
+
const de_UpdateChatControlsConfigurationCommandError = async (output, context) => {
|
|
3669
|
+
const parsedOutput = {
|
|
3670
|
+
...output,
|
|
3671
|
+
body: await parseErrorBody(output.body, context),
|
|
3672
|
+
};
|
|
3673
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3674
|
+
switch (errorCode) {
|
|
3675
|
+
case "AccessDeniedException":
|
|
3676
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3677
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3678
|
+
case "ConflictException":
|
|
3679
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
3680
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3681
|
+
case "InternalServerException":
|
|
3682
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3683
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3684
|
+
case "ResourceNotFoundException":
|
|
3685
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3686
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3687
|
+
case "ServiceQuotaExceededException":
|
|
3688
|
+
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
3689
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3690
|
+
case "ThrottlingException":
|
|
3691
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3692
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3693
|
+
case "ValidationException":
|
|
3694
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
3695
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3696
|
+
default:
|
|
3697
|
+
const parsedBody = parsedOutput.body;
|
|
3698
|
+
return throwDefaultError({
|
|
3699
|
+
output,
|
|
3700
|
+
parsedBody,
|
|
3701
|
+
errorCode,
|
|
3702
|
+
});
|
|
3703
|
+
}
|
|
3704
|
+
};
|
|
3705
|
+
const de_UpdateDataSourceCommand = async (output, context) => {
|
|
3706
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3707
|
+
return de_UpdateDataSourceCommandError(output, context);
|
|
3708
|
+
}
|
|
3709
|
+
const contents = (0, smithy_client_1.map)({
|
|
3710
|
+
$metadata: deserializeMetadata(output),
|
|
3711
|
+
});
|
|
3712
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3713
|
+
return contents;
|
|
3714
|
+
};
|
|
3715
|
+
exports.de_UpdateDataSourceCommand = de_UpdateDataSourceCommand;
|
|
3716
|
+
const de_UpdateDataSourceCommandError = async (output, context) => {
|
|
3717
|
+
const parsedOutput = {
|
|
3718
|
+
...output,
|
|
3719
|
+
body: await parseErrorBody(output.body, context),
|
|
3720
|
+
};
|
|
3721
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3722
|
+
switch (errorCode) {
|
|
3723
|
+
case "AccessDeniedException":
|
|
3724
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3725
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3726
|
+
case "ConflictException":
|
|
3727
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
3728
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3729
|
+
case "InternalServerException":
|
|
3730
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3731
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3732
|
+
case "ResourceNotFoundException":
|
|
3733
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3734
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3735
|
+
case "ThrottlingException":
|
|
3736
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3737
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3738
|
+
case "ValidationException":
|
|
3739
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
3740
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3741
|
+
default:
|
|
3742
|
+
const parsedBody = parsedOutput.body;
|
|
3743
|
+
return throwDefaultError({
|
|
3744
|
+
output,
|
|
3745
|
+
parsedBody,
|
|
3746
|
+
errorCode,
|
|
3747
|
+
});
|
|
3748
|
+
}
|
|
3749
|
+
};
|
|
3750
|
+
const de_UpdateIndexCommand = async (output, context) => {
|
|
3751
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3752
|
+
return de_UpdateIndexCommandError(output, context);
|
|
3753
|
+
}
|
|
3754
|
+
const contents = (0, smithy_client_1.map)({
|
|
3755
|
+
$metadata: deserializeMetadata(output),
|
|
3756
|
+
});
|
|
3757
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3758
|
+
return contents;
|
|
3759
|
+
};
|
|
3760
|
+
exports.de_UpdateIndexCommand = de_UpdateIndexCommand;
|
|
3761
|
+
const de_UpdateIndexCommandError = async (output, context) => {
|
|
3762
|
+
const parsedOutput = {
|
|
3763
|
+
...output,
|
|
3764
|
+
body: await parseErrorBody(output.body, context),
|
|
3765
|
+
};
|
|
3766
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3767
|
+
switch (errorCode) {
|
|
3768
|
+
case "AccessDeniedException":
|
|
3769
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3770
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3771
|
+
case "ConflictException":
|
|
3772
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
3773
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3774
|
+
case "InternalServerException":
|
|
3775
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3776
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3777
|
+
case "ResourceNotFoundException":
|
|
3778
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3779
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3780
|
+
case "ServiceQuotaExceededException":
|
|
3781
|
+
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
3782
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3783
|
+
case "ThrottlingException":
|
|
3784
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3785
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3786
|
+
case "ValidationException":
|
|
3787
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
3788
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3789
|
+
default:
|
|
3790
|
+
const parsedBody = parsedOutput.body;
|
|
3791
|
+
return throwDefaultError({
|
|
3792
|
+
output,
|
|
3793
|
+
parsedBody,
|
|
3794
|
+
errorCode,
|
|
3795
|
+
});
|
|
3796
|
+
}
|
|
3797
|
+
};
|
|
3798
|
+
const de_UpdatePluginCommand = async (output, context) => {
|
|
3799
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3800
|
+
return de_UpdatePluginCommandError(output, context);
|
|
3801
|
+
}
|
|
3802
|
+
const contents = (0, smithy_client_1.map)({
|
|
3803
|
+
$metadata: deserializeMetadata(output),
|
|
3804
|
+
});
|
|
3805
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3806
|
+
return contents;
|
|
3807
|
+
};
|
|
3808
|
+
exports.de_UpdatePluginCommand = de_UpdatePluginCommand;
|
|
3809
|
+
const de_UpdatePluginCommandError = async (output, context) => {
|
|
3810
|
+
const parsedOutput = {
|
|
3811
|
+
...output,
|
|
3812
|
+
body: await parseErrorBody(output.body, context),
|
|
3813
|
+
};
|
|
3814
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3815
|
+
switch (errorCode) {
|
|
3816
|
+
case "AccessDeniedException":
|
|
3817
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3818
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3819
|
+
case "ConflictException":
|
|
3820
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
3821
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3822
|
+
case "InternalServerException":
|
|
3823
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3824
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3825
|
+
case "ResourceNotFoundException":
|
|
3826
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3827
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3828
|
+
case "ServiceQuotaExceededException":
|
|
3829
|
+
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
3830
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3831
|
+
case "ThrottlingException":
|
|
3832
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3833
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3834
|
+
case "ValidationException":
|
|
3835
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
3836
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3837
|
+
default:
|
|
3838
|
+
const parsedBody = parsedOutput.body;
|
|
3839
|
+
return throwDefaultError({
|
|
3840
|
+
output,
|
|
3841
|
+
parsedBody,
|
|
3842
|
+
errorCode,
|
|
3843
|
+
});
|
|
3844
|
+
}
|
|
3845
|
+
};
|
|
3846
|
+
const de_UpdateRetrieverCommand = async (output, context) => {
|
|
3847
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3848
|
+
return de_UpdateRetrieverCommandError(output, context);
|
|
3849
|
+
}
|
|
3850
|
+
const contents = (0, smithy_client_1.map)({
|
|
3851
|
+
$metadata: deserializeMetadata(output),
|
|
3852
|
+
});
|
|
3853
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3854
|
+
return contents;
|
|
3855
|
+
};
|
|
3856
|
+
exports.de_UpdateRetrieverCommand = de_UpdateRetrieverCommand;
|
|
3857
|
+
const de_UpdateRetrieverCommandError = async (output, context) => {
|
|
3858
|
+
const parsedOutput = {
|
|
3859
|
+
...output,
|
|
3860
|
+
body: await parseErrorBody(output.body, context),
|
|
3861
|
+
};
|
|
3862
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3863
|
+
switch (errorCode) {
|
|
3864
|
+
case "AccessDeniedException":
|
|
3865
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3866
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3867
|
+
case "ConflictException":
|
|
3868
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
3869
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3870
|
+
case "InternalServerException":
|
|
3871
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3872
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3873
|
+
case "ResourceNotFoundException":
|
|
3874
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3875
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3876
|
+
case "ServiceQuotaExceededException":
|
|
3877
|
+
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
3878
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3879
|
+
case "ThrottlingException":
|
|
3880
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3881
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3882
|
+
case "ValidationException":
|
|
3883
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
3884
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3885
|
+
default:
|
|
3886
|
+
const parsedBody = parsedOutput.body;
|
|
3887
|
+
return throwDefaultError({
|
|
3888
|
+
output,
|
|
3889
|
+
parsedBody,
|
|
3890
|
+
errorCode,
|
|
3891
|
+
});
|
|
3892
|
+
}
|
|
3893
|
+
};
|
|
3894
|
+
const de_UpdateUserCommand = async (output, context) => {
|
|
3895
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3896
|
+
return de_UpdateUserCommandError(output, context);
|
|
3897
|
+
}
|
|
3898
|
+
const contents = (0, smithy_client_1.map)({
|
|
3899
|
+
$metadata: deserializeMetadata(output),
|
|
3900
|
+
});
|
|
3901
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3902
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3903
|
+
userAliasesAdded: smithy_client_1._json,
|
|
3904
|
+
userAliasesDeleted: smithy_client_1._json,
|
|
3905
|
+
userAliasesUpdated: smithy_client_1._json,
|
|
3906
|
+
});
|
|
3907
|
+
Object.assign(contents, doc);
|
|
3908
|
+
return contents;
|
|
3909
|
+
};
|
|
3910
|
+
exports.de_UpdateUserCommand = de_UpdateUserCommand;
|
|
3911
|
+
const de_UpdateUserCommandError = async (output, context) => {
|
|
3912
|
+
const parsedOutput = {
|
|
3913
|
+
...output,
|
|
3914
|
+
body: await parseErrorBody(output.body, context),
|
|
3915
|
+
};
|
|
3916
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3917
|
+
switch (errorCode) {
|
|
3918
|
+
case "AccessDeniedException":
|
|
3919
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3920
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3921
|
+
case "InternalServerException":
|
|
3922
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3923
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3924
|
+
case "ResourceNotFoundException":
|
|
3925
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3926
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3927
|
+
case "ServiceQuotaExceededException":
|
|
3928
|
+
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
3929
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3930
|
+
case "ThrottlingException":
|
|
3931
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3932
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3933
|
+
case "ValidationException":
|
|
3934
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
3935
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3936
|
+
default:
|
|
3937
|
+
const parsedBody = parsedOutput.body;
|
|
3938
|
+
return throwDefaultError({
|
|
3939
|
+
output,
|
|
3940
|
+
parsedBody,
|
|
3941
|
+
errorCode,
|
|
3942
|
+
});
|
|
3943
|
+
}
|
|
3944
|
+
};
|
|
3945
|
+
const de_UpdateWebExperienceCommand = async (output, context) => {
|
|
3946
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3947
|
+
return de_UpdateWebExperienceCommandError(output, context);
|
|
3948
|
+
}
|
|
3949
|
+
const contents = (0, smithy_client_1.map)({
|
|
3950
|
+
$metadata: deserializeMetadata(output),
|
|
3951
|
+
});
|
|
3952
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3953
|
+
return contents;
|
|
3954
|
+
};
|
|
3955
|
+
exports.de_UpdateWebExperienceCommand = de_UpdateWebExperienceCommand;
|
|
3956
|
+
const de_UpdateWebExperienceCommandError = async (output, context) => {
|
|
3957
|
+
const parsedOutput = {
|
|
3958
|
+
...output,
|
|
3959
|
+
body: await parseErrorBody(output.body, context),
|
|
3960
|
+
};
|
|
3961
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3962
|
+
switch (errorCode) {
|
|
3963
|
+
case "AccessDeniedException":
|
|
3964
|
+
case "com.amazonaws.qbusiness#AccessDeniedException":
|
|
3965
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3966
|
+
case "ConflictException":
|
|
3967
|
+
case "com.amazonaws.qbusiness#ConflictException":
|
|
3968
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3969
|
+
case "InternalServerException":
|
|
3970
|
+
case "com.amazonaws.qbusiness#InternalServerException":
|
|
3971
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3972
|
+
case "ResourceNotFoundException":
|
|
3973
|
+
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
3974
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3975
|
+
case "ThrottlingException":
|
|
3976
|
+
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
3977
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3978
|
+
case "ValidationException":
|
|
3979
|
+
case "com.amazonaws.qbusiness#ValidationException":
|
|
3980
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3981
|
+
default:
|
|
3982
|
+
const parsedBody = parsedOutput.body;
|
|
3983
|
+
return throwDefaultError({
|
|
3984
|
+
output,
|
|
3985
|
+
parsedBody,
|
|
3986
|
+
errorCode,
|
|
3987
|
+
});
|
|
3988
|
+
}
|
|
3989
|
+
};
|
|
3990
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(QBusinessServiceException_1.QBusinessServiceException);
|
|
3991
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3992
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3993
|
+
const data = parsedOutput.body;
|
|
3994
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3995
|
+
message: smithy_client_1.expectString,
|
|
3996
|
+
});
|
|
3997
|
+
Object.assign(contents, doc);
|
|
3998
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
3999
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4000
|
+
...contents,
|
|
4001
|
+
});
|
|
4002
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4003
|
+
};
|
|
4004
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
4005
|
+
const contents = (0, smithy_client_1.map)({});
|
|
4006
|
+
const data = parsedOutput.body;
|
|
4007
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4008
|
+
message: smithy_client_1.expectString,
|
|
4009
|
+
resourceId: smithy_client_1.expectString,
|
|
4010
|
+
resourceType: smithy_client_1.expectString,
|
|
4011
|
+
});
|
|
4012
|
+
Object.assign(contents, doc);
|
|
4013
|
+
const exception = new models_0_1.ConflictException({
|
|
4014
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4015
|
+
...contents,
|
|
4016
|
+
});
|
|
4017
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4018
|
+
};
|
|
4019
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
4020
|
+
const contents = (0, smithy_client_1.map)({});
|
|
4021
|
+
const data = parsedOutput.body;
|
|
4022
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4023
|
+
message: smithy_client_1.expectString,
|
|
4024
|
+
});
|
|
4025
|
+
Object.assign(contents, doc);
|
|
4026
|
+
const exception = new models_0_1.InternalServerException({
|
|
4027
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4028
|
+
...contents,
|
|
4029
|
+
});
|
|
4030
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4031
|
+
};
|
|
4032
|
+
const de_LicenseNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
4033
|
+
const contents = (0, smithy_client_1.map)({});
|
|
4034
|
+
const data = parsedOutput.body;
|
|
4035
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4036
|
+
message: smithy_client_1.expectString,
|
|
4037
|
+
});
|
|
4038
|
+
Object.assign(contents, doc);
|
|
4039
|
+
const exception = new models_0_1.LicenseNotFoundException({
|
|
4040
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4041
|
+
...contents,
|
|
4042
|
+
});
|
|
4043
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4044
|
+
};
|
|
4045
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
4046
|
+
const contents = (0, smithy_client_1.map)({});
|
|
4047
|
+
const data = parsedOutput.body;
|
|
4048
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4049
|
+
message: smithy_client_1.expectString,
|
|
4050
|
+
resourceId: smithy_client_1.expectString,
|
|
4051
|
+
resourceType: smithy_client_1.expectString,
|
|
4052
|
+
});
|
|
4053
|
+
Object.assign(contents, doc);
|
|
4054
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
4055
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4056
|
+
...contents,
|
|
4057
|
+
});
|
|
4058
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4059
|
+
};
|
|
4060
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
4061
|
+
const contents = (0, smithy_client_1.map)({});
|
|
4062
|
+
const data = parsedOutput.body;
|
|
4063
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4064
|
+
message: smithy_client_1.expectString,
|
|
4065
|
+
resourceId: smithy_client_1.expectString,
|
|
4066
|
+
resourceType: smithy_client_1.expectString,
|
|
4067
|
+
});
|
|
4068
|
+
Object.assign(contents, doc);
|
|
4069
|
+
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
4070
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4071
|
+
...contents,
|
|
4072
|
+
});
|
|
4073
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4074
|
+
};
|
|
4075
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
4076
|
+
const contents = (0, smithy_client_1.map)({});
|
|
4077
|
+
const data = parsedOutput.body;
|
|
4078
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4079
|
+
message: smithy_client_1.expectString,
|
|
4080
|
+
});
|
|
4081
|
+
Object.assign(contents, doc);
|
|
4082
|
+
const exception = new models_0_1.ThrottlingException({
|
|
4083
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4084
|
+
...contents,
|
|
4085
|
+
});
|
|
4086
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4087
|
+
};
|
|
4088
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
4089
|
+
const contents = (0, smithy_client_1.map)({});
|
|
4090
|
+
const data = parsedOutput.body;
|
|
4091
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4092
|
+
fields: smithy_client_1._json,
|
|
4093
|
+
message: smithy_client_1.expectString,
|
|
4094
|
+
reason: smithy_client_1.expectString,
|
|
4095
|
+
});
|
|
4096
|
+
Object.assign(contents, doc);
|
|
4097
|
+
const exception = new models_0_1.ValidationException({
|
|
4098
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4099
|
+
...contents,
|
|
4100
|
+
});
|
|
4101
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4102
|
+
};
|
|
4103
|
+
const se_ActionExecution = (input, context) => {
|
|
4104
|
+
return (0, smithy_client_1.take)(input, {
|
|
4105
|
+
payload: (_) => se_ActionExecutionPayload(_, context),
|
|
4106
|
+
payloadFieldNameSeparator: [],
|
|
4107
|
+
pluginId: [],
|
|
4108
|
+
});
|
|
4109
|
+
};
|
|
4110
|
+
const se_ActionExecutionPayload = (input, context) => {
|
|
4111
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
4112
|
+
if (value === null) {
|
|
4113
|
+
return acc;
|
|
4114
|
+
}
|
|
4115
|
+
acc[key] = se_ActionExecutionPayloadField(value, context);
|
|
4116
|
+
return acc;
|
|
4117
|
+
}, {});
|
|
4118
|
+
};
|
|
4119
|
+
const se_ActionExecutionPayloadField = (input, context) => {
|
|
4120
|
+
return (0, smithy_client_1.take)(input, {
|
|
4121
|
+
value: (_) => se_ActionPayloadFieldValue(_, context),
|
|
4122
|
+
});
|
|
4123
|
+
};
|
|
4124
|
+
const se_ActionPayloadFieldValue = (input, context) => {
|
|
4125
|
+
return input;
|
|
4126
|
+
};
|
|
4127
|
+
const se_AttachmentInput = (input, context) => {
|
|
4128
|
+
return (0, smithy_client_1.take)(input, {
|
|
4129
|
+
data: context.base64Encoder,
|
|
4130
|
+
name: [],
|
|
4131
|
+
});
|
|
4132
|
+
};
|
|
4133
|
+
const se_AttachmentsInput = (input, context) => {
|
|
4134
|
+
return input
|
|
4135
|
+
.filter((e) => e != null)
|
|
4136
|
+
.map((entry) => {
|
|
4137
|
+
return se_AttachmentInput(entry, context);
|
|
4138
|
+
});
|
|
4139
|
+
};
|
|
4140
|
+
const se_AttributeFilter = (input, context) => {
|
|
4141
|
+
return (0, smithy_client_1.take)(input, {
|
|
4142
|
+
andAllFilters: (_) => se_AttributeFilters(_, context),
|
|
4143
|
+
containsAll: (_) => se_DocumentAttribute(_, context),
|
|
4144
|
+
containsAny: (_) => se_DocumentAttribute(_, context),
|
|
4145
|
+
equalsTo: (_) => se_DocumentAttribute(_, context),
|
|
4146
|
+
greaterThan: (_) => se_DocumentAttribute(_, context),
|
|
4147
|
+
greaterThanOrEquals: (_) => se_DocumentAttribute(_, context),
|
|
4148
|
+
lessThan: (_) => se_DocumentAttribute(_, context),
|
|
4149
|
+
lessThanOrEquals: (_) => se_DocumentAttribute(_, context),
|
|
4150
|
+
notFilter: (_) => se_AttributeFilter(_, context),
|
|
4151
|
+
orAllFilters: (_) => se_AttributeFilters(_, context),
|
|
4152
|
+
});
|
|
4153
|
+
};
|
|
4154
|
+
const se_AttributeFilters = (input, context) => {
|
|
4155
|
+
return input
|
|
4156
|
+
.filter((e) => e != null)
|
|
4157
|
+
.map((entry) => {
|
|
4158
|
+
return se_AttributeFilter(entry, context);
|
|
4159
|
+
});
|
|
4160
|
+
};
|
|
4161
|
+
const se_DataSourceConfiguration = (input, context) => {
|
|
4162
|
+
return input;
|
|
4163
|
+
};
|
|
4164
|
+
const se_Document = (input, context) => {
|
|
4165
|
+
return (0, smithy_client_1.take)(input, {
|
|
4166
|
+
accessConfiguration: smithy_client_1._json,
|
|
4167
|
+
attributes: (_) => se_DocumentAttributes(_, context),
|
|
4168
|
+
content: (_) => se_DocumentContent(_, context),
|
|
4169
|
+
contentType: [],
|
|
4170
|
+
documentEnrichmentConfiguration: (_) => se_DocumentEnrichmentConfiguration(_, context),
|
|
4171
|
+
id: [],
|
|
4172
|
+
title: [],
|
|
4173
|
+
});
|
|
4174
|
+
};
|
|
4175
|
+
const se_DocumentAttribute = (input, context) => {
|
|
4176
|
+
return (0, smithy_client_1.take)(input, {
|
|
4177
|
+
name: [],
|
|
4178
|
+
value: (_) => se_DocumentAttributeValue(_, context),
|
|
4179
|
+
});
|
|
4180
|
+
};
|
|
4181
|
+
const se_DocumentAttributeCondition = (input, context) => {
|
|
4182
|
+
return (0, smithy_client_1.take)(input, {
|
|
4183
|
+
key: [],
|
|
4184
|
+
operator: [],
|
|
4185
|
+
value: (_) => se_DocumentAttributeValue(_, context),
|
|
4186
|
+
});
|
|
4187
|
+
};
|
|
4188
|
+
const se_DocumentAttributes = (input, context) => {
|
|
4189
|
+
return input
|
|
4190
|
+
.filter((e) => e != null)
|
|
4191
|
+
.map((entry) => {
|
|
4192
|
+
return se_DocumentAttribute(entry, context);
|
|
4193
|
+
});
|
|
4194
|
+
};
|
|
4195
|
+
const se_DocumentAttributeTarget = (input, context) => {
|
|
4196
|
+
return (0, smithy_client_1.take)(input, {
|
|
4197
|
+
attributeValueOperator: [],
|
|
4198
|
+
key: [],
|
|
4199
|
+
value: (_) => se_DocumentAttributeValue(_, context),
|
|
4200
|
+
});
|
|
4201
|
+
};
|
|
4202
|
+
const se_DocumentAttributeValue = (input, context) => {
|
|
4203
|
+
return models_0_1.DocumentAttributeValue.visit(input, {
|
|
4204
|
+
dateValue: (value) => ({ dateValue: Math.round(value.getTime() / 1000) }),
|
|
4205
|
+
longValue: (value) => ({ longValue: value }),
|
|
4206
|
+
stringListValue: (value) => ({ stringListValue: (0, smithy_client_1._json)(value) }),
|
|
4207
|
+
stringValue: (value) => ({ stringValue: value }),
|
|
4208
|
+
_: (name, value) => ({ name: value }),
|
|
4209
|
+
});
|
|
4210
|
+
};
|
|
4211
|
+
const se_DocumentContent = (input, context) => {
|
|
4212
|
+
return models_0_1.DocumentContent.visit(input, {
|
|
4213
|
+
blob: (value) => ({ blob: context.base64Encoder(value) }),
|
|
4214
|
+
s3: (value) => ({ s3: (0, smithy_client_1._json)(value) }),
|
|
4215
|
+
_: (name, value) => ({ name: value }),
|
|
4216
|
+
});
|
|
4217
|
+
};
|
|
4218
|
+
const se_DocumentEnrichmentConfiguration = (input, context) => {
|
|
4219
|
+
return (0, smithy_client_1.take)(input, {
|
|
4220
|
+
inlineConfigurations: (_) => se_InlineDocumentEnrichmentConfigurations(_, context),
|
|
4221
|
+
postExtractionHookConfiguration: (_) => se_HookConfiguration(_, context),
|
|
4222
|
+
preExtractionHookConfiguration: (_) => se_HookConfiguration(_, context),
|
|
4223
|
+
});
|
|
4224
|
+
};
|
|
4225
|
+
const se_Documents = (input, context) => {
|
|
4226
|
+
return input
|
|
4227
|
+
.filter((e) => e != null)
|
|
4228
|
+
.map((entry) => {
|
|
4229
|
+
return se_Document(entry, context);
|
|
4230
|
+
});
|
|
4231
|
+
};
|
|
4232
|
+
const se_HookConfiguration = (input, context) => {
|
|
4233
|
+
return (0, smithy_client_1.take)(input, {
|
|
4234
|
+
invocationCondition: (_) => se_DocumentAttributeCondition(_, context),
|
|
4235
|
+
lambdaArn: [],
|
|
4236
|
+
roleArn: [],
|
|
4237
|
+
s3BucketName: [],
|
|
4238
|
+
});
|
|
4239
|
+
};
|
|
4240
|
+
const se_InlineDocumentEnrichmentConfiguration = (input, context) => {
|
|
4241
|
+
return (0, smithy_client_1.take)(input, {
|
|
4242
|
+
condition: (_) => se_DocumentAttributeCondition(_, context),
|
|
4243
|
+
documentContentOperator: [],
|
|
4244
|
+
target: (_) => se_DocumentAttributeTarget(_, context),
|
|
4245
|
+
});
|
|
4246
|
+
};
|
|
4247
|
+
const se_InlineDocumentEnrichmentConfigurations = (input, context) => {
|
|
4248
|
+
return input
|
|
4249
|
+
.filter((e) => e != null)
|
|
4250
|
+
.map((entry) => {
|
|
4251
|
+
return se_InlineDocumentEnrichmentConfiguration(entry, context);
|
|
4252
|
+
});
|
|
4253
|
+
};
|
|
4254
|
+
const se_MessageUsefulnessFeedback = (input, context) => {
|
|
4255
|
+
return (0, smithy_client_1.take)(input, {
|
|
4256
|
+
comment: [],
|
|
4257
|
+
reason: [],
|
|
4258
|
+
submittedAt: (_) => Math.round(_.getTime() / 1000),
|
|
4259
|
+
usefulness: [],
|
|
4260
|
+
});
|
|
4261
|
+
};
|
|
4262
|
+
const de_ActionExecution = (output, context) => {
|
|
4263
|
+
return (0, smithy_client_1.take)(output, {
|
|
4264
|
+
payload: (_) => de_ActionExecutionPayload(_, context),
|
|
4265
|
+
payloadFieldNameSeparator: smithy_client_1.expectString,
|
|
4266
|
+
pluginId: smithy_client_1.expectString,
|
|
4267
|
+
});
|
|
4268
|
+
};
|
|
4269
|
+
const de_ActionExecutionPayload = (output, context) => {
|
|
4270
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4271
|
+
if (value === null) {
|
|
4272
|
+
return acc;
|
|
4273
|
+
}
|
|
4274
|
+
acc[key] = de_ActionExecutionPayloadField(value, context);
|
|
4275
|
+
return acc;
|
|
4276
|
+
}, {});
|
|
4277
|
+
};
|
|
4278
|
+
const de_ActionExecutionPayloadField = (output, context) => {
|
|
4279
|
+
return (0, smithy_client_1.take)(output, {
|
|
4280
|
+
value: (_) => de_ActionPayloadFieldValue(_, context),
|
|
4281
|
+
});
|
|
4282
|
+
};
|
|
4283
|
+
const de_ActionPayloadFieldValue = (output, context) => {
|
|
4284
|
+
return output;
|
|
4285
|
+
};
|
|
4286
|
+
const de_ActionReview = (output, context) => {
|
|
4287
|
+
return (0, smithy_client_1.take)(output, {
|
|
4288
|
+
payload: (_) => de_ActionReviewPayload(_, context),
|
|
4289
|
+
payloadFieldNameSeparator: smithy_client_1.expectString,
|
|
4290
|
+
pluginId: smithy_client_1.expectString,
|
|
4291
|
+
pluginType: smithy_client_1.expectString,
|
|
4292
|
+
});
|
|
4293
|
+
};
|
|
4294
|
+
const de_ActionReviewPayload = (output, context) => {
|
|
4295
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4296
|
+
if (value === null) {
|
|
4297
|
+
return acc;
|
|
4298
|
+
}
|
|
4299
|
+
acc[key] = de_ActionReviewPayloadField(value, context);
|
|
4300
|
+
return acc;
|
|
4301
|
+
}, {});
|
|
4302
|
+
};
|
|
4303
|
+
const de_ActionReviewPayloadField = (output, context) => {
|
|
4304
|
+
return (0, smithy_client_1.take)(output, {
|
|
4305
|
+
allowedValues: (_) => de_ActionReviewPayloadFieldAllowedValues(_, context),
|
|
4306
|
+
displayName: smithy_client_1.expectString,
|
|
4307
|
+
displayOrder: smithy_client_1.expectInt32,
|
|
4308
|
+
required: smithy_client_1.expectBoolean,
|
|
4309
|
+
type: smithy_client_1.expectString,
|
|
4310
|
+
value: (_) => de_ActionPayloadFieldValue(_, context),
|
|
4311
|
+
});
|
|
4312
|
+
};
|
|
4313
|
+
const de_ActionReviewPayloadFieldAllowedValue = (output, context) => {
|
|
4314
|
+
return (0, smithy_client_1.take)(output, {
|
|
4315
|
+
displayValue: (_) => de_ActionPayloadFieldValue(_, context),
|
|
4316
|
+
value: (_) => de_ActionPayloadFieldValue(_, context),
|
|
4317
|
+
});
|
|
4318
|
+
};
|
|
4319
|
+
const de_ActionReviewPayloadFieldAllowedValues = (output, context) => {
|
|
4320
|
+
const retVal = (output || [])
|
|
4321
|
+
.filter((e) => e != null)
|
|
4322
|
+
.map((entry) => {
|
|
4323
|
+
return de_ActionReviewPayloadFieldAllowedValue(entry, context);
|
|
4324
|
+
});
|
|
4325
|
+
return retVal;
|
|
4326
|
+
};
|
|
4327
|
+
const de_Application = (output, context) => {
|
|
4328
|
+
return (0, smithy_client_1.take)(output, {
|
|
4329
|
+
applicationId: smithy_client_1.expectString,
|
|
4330
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4331
|
+
displayName: smithy_client_1.expectString,
|
|
4332
|
+
status: smithy_client_1.expectString,
|
|
4333
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4334
|
+
});
|
|
4335
|
+
};
|
|
4336
|
+
const de_Applications = (output, context) => {
|
|
4337
|
+
const retVal = (output || [])
|
|
4338
|
+
.filter((e) => e != null)
|
|
4339
|
+
.map((entry) => {
|
|
4340
|
+
return de_Application(entry, context);
|
|
4341
|
+
});
|
|
4342
|
+
return retVal;
|
|
4343
|
+
};
|
|
4344
|
+
const de_Conversation = (output, context) => {
|
|
4345
|
+
return (0, smithy_client_1.take)(output, {
|
|
4346
|
+
conversationId: smithy_client_1.expectString,
|
|
4347
|
+
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4348
|
+
title: smithy_client_1.expectString,
|
|
4349
|
+
});
|
|
4350
|
+
};
|
|
4351
|
+
const de_Conversations = (output, context) => {
|
|
4352
|
+
const retVal = (output || [])
|
|
4353
|
+
.filter((e) => e != null)
|
|
4354
|
+
.map((entry) => {
|
|
4355
|
+
return de_Conversation(entry, context);
|
|
4356
|
+
});
|
|
4357
|
+
return retVal;
|
|
4358
|
+
};
|
|
4359
|
+
const de_DataSource = (output, context) => {
|
|
4360
|
+
return (0, smithy_client_1.take)(output, {
|
|
4361
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4362
|
+
dataSourceId: smithy_client_1.expectString,
|
|
4363
|
+
displayName: smithy_client_1.expectString,
|
|
4364
|
+
status: smithy_client_1.expectString,
|
|
4365
|
+
type: smithy_client_1.expectString,
|
|
4366
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4367
|
+
});
|
|
4368
|
+
};
|
|
4369
|
+
const de_DataSourceConfiguration = (output, context) => {
|
|
4370
|
+
return output;
|
|
4371
|
+
};
|
|
4372
|
+
const de_DataSources = (output, context) => {
|
|
4373
|
+
const retVal = (output || [])
|
|
4374
|
+
.filter((e) => e != null)
|
|
4375
|
+
.map((entry) => {
|
|
4376
|
+
return de_DataSource(entry, context);
|
|
4377
|
+
});
|
|
4378
|
+
return retVal;
|
|
4379
|
+
};
|
|
4380
|
+
const de_DataSourceSyncJob = (output, context) => {
|
|
4381
|
+
return (0, smithy_client_1.take)(output, {
|
|
4382
|
+
dataSourceErrorCode: smithy_client_1.expectString,
|
|
4383
|
+
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4384
|
+
error: smithy_client_1._json,
|
|
4385
|
+
executionId: smithy_client_1.expectString,
|
|
4386
|
+
metrics: smithy_client_1._json,
|
|
4387
|
+
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4388
|
+
status: smithy_client_1.expectString,
|
|
4389
|
+
});
|
|
4390
|
+
};
|
|
4391
|
+
const de_DataSourceSyncJobs = (output, context) => {
|
|
4392
|
+
const retVal = (output || [])
|
|
4393
|
+
.filter((e) => e != null)
|
|
4394
|
+
.map((entry) => {
|
|
4395
|
+
return de_DataSourceSyncJob(entry, context);
|
|
4396
|
+
});
|
|
4397
|
+
return retVal;
|
|
4398
|
+
};
|
|
4399
|
+
const de_DocumentAttributeCondition = (output, context) => {
|
|
4400
|
+
return (0, smithy_client_1.take)(output, {
|
|
4401
|
+
key: smithy_client_1.expectString,
|
|
4402
|
+
operator: smithy_client_1.expectString,
|
|
4403
|
+
value: (_) => de_DocumentAttributeValue((0, core_1.awsExpectUnion)(_), context),
|
|
4404
|
+
});
|
|
4405
|
+
};
|
|
4406
|
+
const de_DocumentAttributeTarget = (output, context) => {
|
|
4407
|
+
return (0, smithy_client_1.take)(output, {
|
|
4408
|
+
attributeValueOperator: smithy_client_1.expectString,
|
|
4409
|
+
key: smithy_client_1.expectString,
|
|
4410
|
+
value: (_) => de_DocumentAttributeValue((0, core_1.awsExpectUnion)(_), context),
|
|
4411
|
+
});
|
|
4412
|
+
};
|
|
4413
|
+
const de_DocumentAttributeValue = (output, context) => {
|
|
4414
|
+
if (output.dateValue != null) {
|
|
4415
|
+
return {
|
|
4416
|
+
dateValue: (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.dateValue))),
|
|
4417
|
+
};
|
|
4418
|
+
}
|
|
4419
|
+
if ((0, smithy_client_1.expectLong)(output.longValue) !== undefined) {
|
|
4420
|
+
return { longValue: (0, smithy_client_1.expectLong)(output.longValue) };
|
|
4421
|
+
}
|
|
4422
|
+
if (output.stringListValue != null) {
|
|
4423
|
+
return {
|
|
4424
|
+
stringListValue: (0, smithy_client_1._json)(output.stringListValue),
|
|
4425
|
+
};
|
|
4426
|
+
}
|
|
4427
|
+
if ((0, smithy_client_1.expectString)(output.stringValue) !== undefined) {
|
|
4428
|
+
return { stringValue: (0, smithy_client_1.expectString)(output.stringValue) };
|
|
4429
|
+
}
|
|
4430
|
+
return { $unknown: Object.entries(output)[0] };
|
|
4431
|
+
};
|
|
4432
|
+
const de_DocumentDetailList = (output, context) => {
|
|
4433
|
+
const retVal = (output || [])
|
|
4434
|
+
.filter((e) => e != null)
|
|
4435
|
+
.map((entry) => {
|
|
4436
|
+
return de_DocumentDetails(entry, context);
|
|
4437
|
+
});
|
|
4438
|
+
return retVal;
|
|
4439
|
+
};
|
|
4440
|
+
const de_DocumentDetails = (output, context) => {
|
|
4441
|
+
return (0, smithy_client_1.take)(output, {
|
|
4442
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4443
|
+
documentId: smithy_client_1.expectString,
|
|
4444
|
+
error: smithy_client_1._json,
|
|
4445
|
+
status: smithy_client_1.expectString,
|
|
4446
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4447
|
+
});
|
|
4448
|
+
};
|
|
4449
|
+
const de_DocumentEnrichmentConfiguration = (output, context) => {
|
|
4450
|
+
return (0, smithy_client_1.take)(output, {
|
|
4451
|
+
inlineConfigurations: (_) => de_InlineDocumentEnrichmentConfigurations(_, context),
|
|
4452
|
+
postExtractionHookConfiguration: (_) => de_HookConfiguration(_, context),
|
|
4453
|
+
preExtractionHookConfiguration: (_) => de_HookConfiguration(_, context),
|
|
4454
|
+
});
|
|
4455
|
+
};
|
|
4456
|
+
const de_GroupStatusDetail = (output, context) => {
|
|
4457
|
+
return (0, smithy_client_1.take)(output, {
|
|
4458
|
+
errorDetail: smithy_client_1._json,
|
|
4459
|
+
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4460
|
+
status: smithy_client_1.expectString,
|
|
4461
|
+
});
|
|
4462
|
+
};
|
|
4463
|
+
const de_GroupStatusDetails = (output, context) => {
|
|
4464
|
+
const retVal = (output || [])
|
|
4465
|
+
.filter((e) => e != null)
|
|
4466
|
+
.map((entry) => {
|
|
4467
|
+
return de_GroupStatusDetail(entry, context);
|
|
4468
|
+
});
|
|
4469
|
+
return retVal;
|
|
4470
|
+
};
|
|
4471
|
+
const de_HookConfiguration = (output, context) => {
|
|
4472
|
+
return (0, smithy_client_1.take)(output, {
|
|
4473
|
+
invocationCondition: (_) => de_DocumentAttributeCondition(_, context),
|
|
4474
|
+
lambdaArn: smithy_client_1.expectString,
|
|
4475
|
+
roleArn: smithy_client_1.expectString,
|
|
4476
|
+
s3BucketName: smithy_client_1.expectString,
|
|
4477
|
+
});
|
|
4478
|
+
};
|
|
4479
|
+
const de_Index = (output, context) => {
|
|
4480
|
+
return (0, smithy_client_1.take)(output, {
|
|
4481
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4482
|
+
displayName: smithy_client_1.expectString,
|
|
4483
|
+
indexId: smithy_client_1.expectString,
|
|
4484
|
+
status: smithy_client_1.expectString,
|
|
4485
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4486
|
+
});
|
|
4487
|
+
};
|
|
4488
|
+
const de_Indices = (output, context) => {
|
|
4489
|
+
const retVal = (output || [])
|
|
4490
|
+
.filter((e) => e != null)
|
|
4491
|
+
.map((entry) => {
|
|
4492
|
+
return de_Index(entry, context);
|
|
4493
|
+
});
|
|
4494
|
+
return retVal;
|
|
4495
|
+
};
|
|
4496
|
+
const de_InlineDocumentEnrichmentConfiguration = (output, context) => {
|
|
4497
|
+
return (0, smithy_client_1.take)(output, {
|
|
4498
|
+
condition: (_) => de_DocumentAttributeCondition(_, context),
|
|
4499
|
+
documentContentOperator: smithy_client_1.expectString,
|
|
4500
|
+
target: (_) => de_DocumentAttributeTarget(_, context),
|
|
4501
|
+
});
|
|
4502
|
+
};
|
|
4503
|
+
const de_InlineDocumentEnrichmentConfigurations = (output, context) => {
|
|
4504
|
+
const retVal = (output || [])
|
|
4505
|
+
.filter((e) => e != null)
|
|
4506
|
+
.map((entry) => {
|
|
4507
|
+
return de_InlineDocumentEnrichmentConfiguration(entry, context);
|
|
4508
|
+
});
|
|
4509
|
+
return retVal;
|
|
4510
|
+
};
|
|
4511
|
+
const de_Message = (output, context) => {
|
|
4512
|
+
return (0, smithy_client_1.take)(output, {
|
|
4513
|
+
actionExecution: (_) => de_ActionExecution(_, context),
|
|
4514
|
+
actionReview: (_) => de_ActionReview(_, context),
|
|
4515
|
+
attachments: smithy_client_1._json,
|
|
4516
|
+
body: smithy_client_1.expectString,
|
|
4517
|
+
messageId: smithy_client_1.expectString,
|
|
4518
|
+
sourceAttribution: (_) => de_SourceAttributions(_, context),
|
|
4519
|
+
time: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4520
|
+
type: smithy_client_1.expectString,
|
|
4521
|
+
});
|
|
4522
|
+
};
|
|
4523
|
+
const de_Messages = (output, context) => {
|
|
4524
|
+
const retVal = (output || [])
|
|
4525
|
+
.filter((e) => e != null)
|
|
4526
|
+
.map((entry) => {
|
|
4527
|
+
return de_Message(entry, context);
|
|
4528
|
+
});
|
|
4529
|
+
return retVal;
|
|
4530
|
+
};
|
|
4531
|
+
const de_Plugin = (output, context) => {
|
|
4532
|
+
return (0, smithy_client_1.take)(output, {
|
|
4533
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4534
|
+
displayName: smithy_client_1.expectString,
|
|
4535
|
+
pluginId: smithy_client_1.expectString,
|
|
4536
|
+
serverUrl: smithy_client_1.expectString,
|
|
4537
|
+
state: smithy_client_1.expectString,
|
|
4538
|
+
type: smithy_client_1.expectString,
|
|
4539
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4540
|
+
});
|
|
4541
|
+
};
|
|
4542
|
+
const de_Plugins = (output, context) => {
|
|
4543
|
+
const retVal = (output || [])
|
|
4544
|
+
.filter((e) => e != null)
|
|
4545
|
+
.map((entry) => {
|
|
4546
|
+
return de_Plugin(entry, context);
|
|
4547
|
+
});
|
|
4548
|
+
return retVal;
|
|
4549
|
+
};
|
|
4550
|
+
const de_SourceAttribution = (output, context) => {
|
|
4551
|
+
return (0, smithy_client_1.take)(output, {
|
|
4552
|
+
citationNumber: smithy_client_1.expectInt32,
|
|
4553
|
+
snippet: smithy_client_1.expectString,
|
|
4554
|
+
textMessageSegments: smithy_client_1._json,
|
|
4555
|
+
title: smithy_client_1.expectString,
|
|
4556
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4557
|
+
url: smithy_client_1.expectString,
|
|
4558
|
+
});
|
|
4559
|
+
};
|
|
4560
|
+
const de_SourceAttributions = (output, context) => {
|
|
4561
|
+
const retVal = (output || []).map((entry) => {
|
|
4562
|
+
if (entry === null) {
|
|
4563
|
+
return null;
|
|
4564
|
+
}
|
|
4565
|
+
return de_SourceAttribution(entry, context);
|
|
4566
|
+
});
|
|
4567
|
+
return retVal;
|
|
4568
|
+
};
|
|
4569
|
+
const de_WebExperience = (output, context) => {
|
|
4570
|
+
return (0, smithy_client_1.take)(output, {
|
|
4571
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4572
|
+
defaultEndpoint: smithy_client_1.expectString,
|
|
4573
|
+
status: smithy_client_1.expectString,
|
|
4574
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4575
|
+
webExperienceId: smithy_client_1.expectString,
|
|
4576
|
+
});
|
|
4577
|
+
};
|
|
4578
|
+
const de_WebExperiences = (output, context) => {
|
|
4579
|
+
const retVal = (output || [])
|
|
4580
|
+
.filter((e) => e != null)
|
|
4581
|
+
.map((entry) => {
|
|
4582
|
+
return de_WebExperience(entry, context);
|
|
4583
|
+
});
|
|
4584
|
+
return retVal;
|
|
4585
|
+
};
|
|
4586
|
+
const deserializeMetadata = (output) => ({
|
|
4587
|
+
httpStatusCode: output.statusCode,
|
|
4588
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
4589
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
4590
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
4591
|
+
});
|
|
4592
|
+
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
4593
|
+
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
4594
|
+
value !== null &&
|
|
4595
|
+
value !== "" &&
|
|
4596
|
+
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
4597
|
+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
4598
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4599
|
+
if (encoded.length) {
|
|
4600
|
+
return JSON.parse(encoded);
|
|
4601
|
+
}
|
|
4602
|
+
return {};
|
|
4603
|
+
});
|
|
4604
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
4605
|
+
const value = await parseBody(errorBody, context);
|
|
4606
|
+
value.message = value.message ?? value.Message;
|
|
4607
|
+
return value;
|
|
4608
|
+
};
|
|
4609
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
4610
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4611
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
4612
|
+
let cleanValue = rawValue;
|
|
4613
|
+
if (typeof cleanValue === "number") {
|
|
4614
|
+
cleanValue = cleanValue.toString();
|
|
4615
|
+
}
|
|
4616
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
4617
|
+
cleanValue = cleanValue.split(",")[0];
|
|
4618
|
+
}
|
|
4619
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
4620
|
+
cleanValue = cleanValue.split(":")[0];
|
|
4621
|
+
}
|
|
4622
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
4623
|
+
cleanValue = cleanValue.split("#")[1];
|
|
4624
|
+
}
|
|
4625
|
+
return cleanValue;
|
|
4626
|
+
};
|
|
4627
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
4628
|
+
if (headerKey !== undefined) {
|
|
4629
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
4630
|
+
}
|
|
4631
|
+
if (data.code !== undefined) {
|
|
4632
|
+
return sanitizeErrorCode(data.code);
|
|
4633
|
+
}
|
|
4634
|
+
if (data["__type"] !== undefined) {
|
|
4635
|
+
return sanitizeErrorCode(data["__type"]);
|
|
4636
|
+
}
|
|
4637
|
+
};
|