1
1
// smithy-typescript generated code
2
+ import {
3
+ EventStreamInputConfig ,
4
+ EventStreamResolvedConfig ,
5
+ resolveEventStreamConfig ,
6
+ } from "@aws-sdk/middleware-eventstream" ;
2
7
import {
3
8
getHostHeaderPlugin ,
4
9
HostHeaderInputConfig ,
@@ -13,12 +18,18 @@ import {
13
18
UserAgentInputConfig ,
14
19
UserAgentResolvedConfig ,
15
20
} from "@aws-sdk/middleware-user-agent" ;
21
+ import { EventStreamPayloadHandlerProvider as __EventStreamPayloadHandlerProvider } from "@aws-sdk/types" ;
16
22
import { RegionInputConfig , RegionResolvedConfig , resolveRegionConfig } from "@smithy/config-resolver" ;
17
23
import {
18
24
DefaultIdentityProviderConfig ,
19
25
getHttpAuthSchemeEndpointRuleSetPlugin ,
20
26
getHttpSigningPlugin ,
21
27
} from "@smithy/core" ;
28
+ import {
29
+ EventStreamSerdeInputConfig ,
30
+ EventStreamSerdeResolvedConfig ,
31
+ resolveEventStreamSerdeConfig ,
32
+ } from "@smithy/eventstream-serde-config-resolver" ;
22
33
import { getContentLengthPlugin } from "@smithy/middleware-content-length" ;
23
34
import { EndpointInputConfig , EndpointResolvedConfig , resolveEndpointConfig } from "@smithy/middleware-endpoint" ;
24
35
import { getRetryPlugin , resolveRetryConfig , RetryInputConfig , RetryResolvedConfig } from "@smithy/middleware-retry" ;
@@ -37,6 +48,7 @@ import {
37
48
Decoder as __Decoder ,
38
49
Encoder as __Encoder ,
39
50
EndpointV2 as __EndpointV2 ,
51
+ EventStreamSerdeProvider as __EventStreamSerdeProvider ,
40
52
HashConstructor as __HashConstructor ,
41
53
HttpHandlerOptions as __HttpHandlerOptions ,
42
54
Logger as __Logger ,
@@ -58,6 +70,7 @@ import {
58
70
BatchDeleteDocumentCommandOutput ,
59
71
} from "./commands/BatchDeleteDocumentCommand" ;
60
72
import { BatchPutDocumentCommandInput , BatchPutDocumentCommandOutput } from "./commands/BatchPutDocumentCommand" ;
73
+ import { ChatCommandInput , ChatCommandOutput } from "./commands/ChatCommand" ;
61
74
import { ChatSyncCommandInput , ChatSyncCommandOutput } from "./commands/ChatSyncCommand" ;
62
75
import { CreateApplicationCommandInput , CreateApplicationCommandOutput } from "./commands/CreateApplicationCommand" ;
63
76
import { CreateDataSourceCommandInput , CreateDataSourceCommandOutput } from "./commands/CreateDataSourceCommand" ;
@@ -158,6 +171,7 @@ export { __Client };
158
171
export type ServiceInputTypes =
159
172
| BatchDeleteDocumentCommandInput
160
173
| BatchPutDocumentCommandInput
174
+ | ChatCommandInput
161
175
| ChatSyncCommandInput
162
176
| CreateApplicationCommandInput
163
177
| CreateDataSourceCommandInput
@@ -218,6 +232,7 @@ export type ServiceInputTypes =
218
232
export type ServiceOutputTypes =
219
233
| BatchDeleteDocumentCommandOutput
220
234
| BatchPutDocumentCommandOutput
235
+ | ChatCommandOutput
221
236
| ChatSyncCommandOutput
222
237
| CreateApplicationCommandOutput
223
238
| CreateDataSourceCommandOutput
@@ -398,10 +413,21 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
398
413
*/
399
414
extensions ?: RuntimeExtension [ ] ;
400
415
416
+ /**
417
+ * The function that provides necessary utilities for generating and parsing event stream
418
+ */
419
+ eventStreamSerdeProvider ?: __EventStreamSerdeProvider ;
420
+
401
421
/**
402
422
* The {@link @smithy/smithy-client#DefaultsMode } that will be used to determine how certain default configuration options are resolved in the SDK.
403
423
*/
404
424
defaultsMode ?: __DefaultsMode | __Provider < __DefaultsMode > ;
425
+
426
+ /**
427
+ * The function that provides necessary utilities for handling request event stream.
428
+ * @internal
429
+ */
430
+ eventStreamPayloadHandlerProvider ?: __EventStreamPayloadHandlerProvider ;
405
431
}
406
432
407
433
/**
@@ -414,7 +440,9 @@ export type QBusinessClientConfigType = Partial<__SmithyConfiguration<__HttpHand
414
440
RetryInputConfig &
415
441
HostHeaderInputConfig &
416
442
UserAgentInputConfig &
443
+ EventStreamSerdeInputConfig &
417
444
HttpAuthSchemeInputConfig &
445
+ EventStreamInputConfig &
418
446
ClientInputEndpointParameters ;
419
447
/**
420
448
* @public
@@ -434,7 +462,9 @@ export type QBusinessClientResolvedConfigType = __SmithyResolvedConfiguration<__
434
462
RetryResolvedConfig &
435
463
HostHeaderResolvedConfig &
436
464
UserAgentResolvedConfig &
465
+ EventStreamSerdeResolvedConfig &
437
466
HttpAuthSchemeResolvedConfig &
467
+ EventStreamResolvedConfig &
438
468
ClientResolvedEndpointParameters ;
439
469
/**
440
470
* @public
@@ -444,10 +474,7 @@ export type QBusinessClientResolvedConfigType = __SmithyResolvedConfiguration<__
444
474
export interface QBusinessClientResolvedConfig extends QBusinessClientResolvedConfigType { }
445
475
446
476
/**
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
451
478
* managed, generative-AI powered enterprise chat assistant that you can deploy within your
452
479
* organization. Amazon Q Business enhances employee productivity by supporting key tasks such
453
480
* as question-answering, knowledge discovery, writing email messages, summarizing text,
@@ -547,10 +574,12 @@ export class QBusinessClient extends __Client<
547
574
const _config_4 = resolveRetryConfig ( _config_3 ) ;
548
575
const _config_5 = resolveHostHeaderConfig ( _config_4 ) ;
549
576
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 ;
554
583
this . middlewareStack . use ( getRetryPlugin ( this . config ) ) ;
555
584
this . middlewareStack . use ( getContentLengthPlugin ( this . config ) ) ;
556
585
this . middlewareStack . use ( getHostHeaderPlugin ( this . config ) ) ;
0 commit comments