11// smithy-typescript generated code
2+ import {
3+ EventStreamInputConfig ,
4+ EventStreamResolvedConfig ,
5+ resolveEventStreamConfig ,
6+ } from "@aws-sdk/middleware-eventstream" ;
27import {
38 getHostHeaderPlugin ,
49 HostHeaderInputConfig ,
@@ -13,12 +18,18 @@ import {
1318 UserAgentInputConfig ,
1419 UserAgentResolvedConfig ,
1520} from "@aws-sdk/middleware-user-agent" ;
21+ import { EventStreamPayloadHandlerProvider as __EventStreamPayloadHandlerProvider } from "@aws-sdk/types" ;
1622import { RegionInputConfig , RegionResolvedConfig , resolveRegionConfig } from "@smithy/config-resolver" ;
1723import {
1824 DefaultIdentityProviderConfig ,
1925 getHttpAuthSchemeEndpointRuleSetPlugin ,
2026 getHttpSigningPlugin ,
2127} from "@smithy/core" ;
28+ import {
29+ EventStreamSerdeInputConfig ,
30+ EventStreamSerdeResolvedConfig ,
31+ resolveEventStreamSerdeConfig ,
32+ } from "@smithy/eventstream-serde-config-resolver" ;
2233import { getContentLengthPlugin } from "@smithy/middleware-content-length" ;
2334import { EndpointInputConfig , EndpointResolvedConfig , resolveEndpointConfig } from "@smithy/middleware-endpoint" ;
2435import { getRetryPlugin , resolveRetryConfig , RetryInputConfig , RetryResolvedConfig } from "@smithy/middleware-retry" ;
@@ -37,6 +48,7 @@ import {
3748 Decoder as __Decoder ,
3849 Encoder as __Encoder ,
3950 EndpointV2 as __EndpointV2 ,
51+ EventStreamSerdeProvider as __EventStreamSerdeProvider ,
4052 HashConstructor as __HashConstructor ,
4153 HttpHandlerOptions as __HttpHandlerOptions ,
4254 Logger as __Logger ,
@@ -58,6 +70,7 @@ import {
5870 BatchDeleteDocumentCommandOutput ,
5971} from "./commands/BatchDeleteDocumentCommand" ;
6072import { BatchPutDocumentCommandInput , BatchPutDocumentCommandOutput } from "./commands/BatchPutDocumentCommand" ;
73+ import { ChatCommandInput , ChatCommandOutput } from "./commands/ChatCommand" ;
6174import { ChatSyncCommandInput , ChatSyncCommandOutput } from "./commands/ChatSyncCommand" ;
6275import { CreateApplicationCommandInput , CreateApplicationCommandOutput } from "./commands/CreateApplicationCommand" ;
6376import { CreateDataSourceCommandInput , CreateDataSourceCommandOutput } from "./commands/CreateDataSourceCommand" ;
@@ -158,6 +171,7 @@ export { __Client };
158171export type ServiceInputTypes =
159172 | BatchDeleteDocumentCommandInput
160173 | BatchPutDocumentCommandInput
174+ | ChatCommandInput
161175 | ChatSyncCommandInput
162176 | CreateApplicationCommandInput
163177 | CreateDataSourceCommandInput
@@ -218,6 +232,7 @@ export type ServiceInputTypes =
218232export type ServiceOutputTypes =
219233 | BatchDeleteDocumentCommandOutput
220234 | BatchPutDocumentCommandOutput
235+ | ChatCommandOutput
221236 | ChatSyncCommandOutput
222237 | CreateApplicationCommandOutput
223238 | CreateDataSourceCommandOutput
@@ -398,10 +413,21 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
398413 */
399414 extensions ?: RuntimeExtension [ ] ;
400415
416+ /**
417+ * The function that provides necessary utilities for generating and parsing event stream
418+ */
419+ eventStreamSerdeProvider ?: __EventStreamSerdeProvider ;
420+
401421 /**
402422 * The {@link @smithy/smithy-client#DefaultsMode } that will be used to determine how certain default configuration options are resolved in the SDK.
403423 */
404424 defaultsMode ?: __DefaultsMode | __Provider < __DefaultsMode > ;
425+
426+ /**
427+ * The function that provides necessary utilities for handling request event stream.
428+ * @internal
429+ */
430+ eventStreamPayloadHandlerProvider ?: __EventStreamPayloadHandlerProvider ;
405431}
406432
407433/**
@@ -414,7 +440,9 @@ export type QBusinessClientConfigType = Partial<__SmithyConfiguration<__HttpHand
414440 RetryInputConfig &
415441 HostHeaderInputConfig &
416442 UserAgentInputConfig &
443+ EventStreamSerdeInputConfig &
417444 HttpAuthSchemeInputConfig &
445+ EventStreamInputConfig &
418446 ClientInputEndpointParameters ;
419447/**
420448 * @public
@@ -434,7 +462,9 @@ export type QBusinessClientResolvedConfigType = __SmithyResolvedConfiguration<__
434462 RetryResolvedConfig &
435463 HostHeaderResolvedConfig &
436464 UserAgentResolvedConfig &
465+ EventStreamSerdeResolvedConfig &
437466 HttpAuthSchemeResolvedConfig &
467+ EventStreamResolvedConfig &
438468 ClientResolvedEndpointParameters ;
439469/**
440470 * @public
@@ -444,10 +474,7 @@ export type QBusinessClientResolvedConfigType = __SmithyResolvedConfiguration<__
444474export interface QBusinessClientResolvedConfig extends QBusinessClientResolvedConfigType { }
445475
446476/**
447- * <note>
448- * <p>Amazon Q is in preview release and is subject to change.</p>
449- * </note>
450- * <p>This is the <i>Amazon Q Business</i> API Reference. Amazon Q Business is a fully
477+ * <p>This is the <i>Amazon Q Business</i> API Reference. Amazon Q Business is a fully
451478 * managed, generative-AI powered enterprise chat assistant that you can deploy within your
452479 * organization. Amazon Q Business enhances employee productivity by supporting key tasks such
453480 * as question-answering, knowledge discovery, writing email messages, summarizing text,
@@ -547,10 +574,12 @@ export class QBusinessClient extends __Client<
547574 const _config_4 = resolveRetryConfig ( _config_3 ) ;
548575 const _config_5 = resolveHostHeaderConfig ( _config_4 ) ;
549576 const _config_6 = resolveUserAgentConfig ( _config_5 ) ;
550- const _config_7 = resolveHttpAuthSchemeConfig ( _config_6 ) ;
551- const _config_8 = resolveRuntimeExtensions ( _config_7 , configuration ?. extensions || [ ] ) ;
552- super ( _config_8 ) ;
553- this . config = _config_8 ;
577+ const _config_7 = resolveEventStreamSerdeConfig ( _config_6 ) ;
578+ const _config_8 = resolveHttpAuthSchemeConfig ( _config_7 ) ;
579+ const _config_9 = resolveEventStreamConfig ( _config_8 ) ;
580+ const _config_10 = resolveRuntimeExtensions ( _config_9 , configuration ?. extensions || [ ] ) ;
581+ super ( _config_10 ) ;
582+ this . config = _config_10 ;
554583 this . middlewareStack . use ( getRetryPlugin ( this . config ) ) ;
555584 this . middlewareStack . use ( getContentLengthPlugin ( this . config ) ) ;
556585 this . middlewareStack . use ( getHostHeaderPlugin ( this . config ) ) ;
0 commit comments