@aws-sdk/client-qbusiness 3.565.0 → 3.566.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.
Files changed (48) hide show
  1. package/README.md +8 -3
  2. package/dist-cjs/index.js +434 -9
  3. package/dist-cjs/runtimeConfig.browser.js +4 -0
  4. package/dist-cjs/runtimeConfig.js +4 -0
  5. package/dist-cjs/runtimeConfig.native.js +3 -0
  6. package/dist-es/QBusiness.js +2 -0
  7. package/dist-es/QBusinessClient.js +8 -4
  8. package/dist-es/commands/ChatCommand.js +32 -0
  9. package/dist-es/commands/CreatePluginCommand.js +2 -1
  10. package/dist-es/commands/GetPluginCommand.js +2 -1
  11. package/dist-es/commands/UpdatePluginCommand.js +2 -1
  12. package/dist-es/commands/index.js +1 -0
  13. package/dist-es/models/models_0.js +134 -0
  14. package/dist-es/protocols/Aws_restJson1.js +225 -1
  15. package/dist-es/runtimeConfig.browser.js +5 -1
  16. package/dist-es/runtimeConfig.js +4 -0
  17. package/dist-es/runtimeConfig.native.js +3 -0
  18. package/dist-types/QBusiness.d.ts +8 -4
  19. package/dist-types/QBusinessClient.d.ts +19 -9
  20. package/dist-types/commands/ChatCommand.d.ts +281 -0
  21. package/dist-types/commands/ChatSyncCommand.d.ts +14 -1
  22. package/dist-types/commands/CreateApplicationCommand.d.ts +8 -1
  23. package/dist-types/commands/CreateIndexCommand.d.ts +1 -0
  24. package/dist-types/commands/CreatePluginCommand.d.ts +15 -2
  25. package/dist-types/commands/GetIndexCommand.d.ts +1 -0
  26. package/dist-types/commands/GetPluginCommand.d.ts +14 -1
  27. package/dist-types/commands/ListMessagesCommand.d.ts +6 -1
  28. package/dist-types/commands/ListPluginsCommand.d.ts +2 -1
  29. package/dist-types/commands/UpdateApplicationCommand.d.ts +1 -0
  30. package/dist-types/commands/UpdatePluginCommand.d.ts +12 -0
  31. package/dist-types/commands/UpdateWebExperienceCommand.d.ts +1 -0
  32. package/dist-types/commands/index.d.ts +1 -0
  33. package/dist-types/index.d.ts +1 -4
  34. package/dist-types/models/models_0.d.ts +867 -47
  35. package/dist-types/protocols/Aws_restJson1.d.ts +10 -1
  36. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  37. package/dist-types/runtimeConfig.d.ts +2 -0
  38. package/dist-types/runtimeConfig.native.d.ts +2 -0
  39. package/dist-types/ts3.4/QBusiness.d.ts +14 -0
  40. package/dist-types/ts3.4/QBusinessClient.d.ts +19 -0
  41. package/dist-types/ts3.4/commands/ChatCommand.d.ts +29 -0
  42. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  43. package/dist-types/ts3.4/models/models_0.d.ts +333 -11
  44. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +13 -1
  45. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  46. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  47. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  48. package/package.json +6 -1
@@ -1,7 +1,8 @@
1
1
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
2
- import { SerdeContext as __SerdeContext } from "@smithy/types";
2
+ import { EventStreamSerdeContext as __EventStreamSerdeContext, SerdeContext as __SerdeContext } from "@smithy/types";
3
3
  import { BatchDeleteDocumentCommandInput, BatchDeleteDocumentCommandOutput } from "../commands/BatchDeleteDocumentCommand";
4
4
  import { BatchPutDocumentCommandInput, BatchPutDocumentCommandOutput } from "../commands/BatchPutDocumentCommand";
5
+ import { ChatCommandInput, ChatCommandOutput } from "../commands/ChatCommand";
5
6
  import { ChatSyncCommandInput, ChatSyncCommandOutput } from "../commands/ChatSyncCommand";
6
7
  import { CreateApplicationCommandInput, CreateApplicationCommandOutput } from "../commands/CreateApplicationCommand";
7
8
  import { CreateDataSourceCommandInput, CreateDataSourceCommandOutput } from "../commands/CreateDataSourceCommand";
@@ -63,6 +64,10 @@ export declare const se_BatchDeleteDocumentCommand: (input: BatchDeleteDocumentC
63
64
  * serializeAws_restJson1BatchPutDocumentCommand
64
65
  */
65
66
  export declare const se_BatchPutDocumentCommand: (input: BatchPutDocumentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
67
+ /**
68
+ * serializeAws_restJson1ChatCommand
69
+ */
70
+ export declare const se_ChatCommand: (input: ChatCommandInput, context: __SerdeContext & __EventStreamSerdeContext) => Promise<__HttpRequest>;
66
71
  /**
67
72
  * serializeAws_restJson1ChatSyncCommand
68
73
  */
@@ -283,6 +288,10 @@ export declare const de_BatchDeleteDocumentCommand: (output: __HttpResponse, con
283
288
  * deserializeAws_restJson1BatchPutDocumentCommand
284
289
  */
285
290
  export declare const de_BatchPutDocumentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchPutDocumentCommandOutput>;
291
+ /**
292
+ * deserializeAws_restJson1ChatCommand
293
+ */
294
+ export declare const de_ChatCommand: (output: __HttpResponse, context: __SerdeContext & __EventStreamSerdeContext) => Promise<ChatCommandOutput>;
286
295
  /**
287
296
  * deserializeAws_restJson1ChatSyncCommand
288
297
  */
@@ -9,6 +9,8 @@ export declare const getRuntimeConfig: (config: QBusinessClientConfig) => {
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
11
11
  defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
12
+ eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
13
+ eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
12
14
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
15
  region: string | import("@smithy/types").Provider<any>;
14
16
  requestHandler: import("@smithy/protocol-http").HttpHandler<any> | RequestHandler;
@@ -9,6 +9,8 @@ export declare const getRuntimeConfig: (config: QBusinessClientConfig) => {
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>;
11
11
  defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
12
+ eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
13
+ eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
12
14
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
15
  region: string | import("@smithy/types").Provider<string>;
14
16
  requestHandler: RequestHandler | import("@smithy/protocol-http").HttpHandler<any>;
@@ -4,6 +4,7 @@ import { QBusinessClientConfig } from "./QBusinessClient";
4
4
  */
5
5
  export declare const getRuntimeConfig: (config: QBusinessClientConfig) => {
6
6
  runtime: string;
7
+ eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
7
8
  sha256: import("@smithy/types").HashConstructor;
8
9
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
9
10
  apiVersion: string;
@@ -25,6 +26,7 @@ export declare const getRuntimeConfig: (config: QBusinessClientConfig) => {
25
26
  retryMode: string | import("@smithy/types").Provider<string>;
26
27
  logger: import("@smithy/types").Logger;
27
28
  extensions: import("./runtimeExtensions").RuntimeExtension[];
29
+ eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
28
30
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
29
31
  endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
30
32
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
@@ -7,6 +7,7 @@ import {
7
7
  BatchPutDocumentCommandInput,
8
8
  BatchPutDocumentCommandOutput,
9
9
  } from "./commands/BatchPutDocumentCommand";
10
+ import { ChatCommandInput, ChatCommandOutput } from "./commands/ChatCommand";
10
11
  import {
11
12
  ChatSyncCommandInput,
12
13
  ChatSyncCommandOutput,
@@ -247,6 +248,19 @@ export interface QBusiness {
247
248
  options: __HttpHandlerOptions,
248
249
  cb: (err: any, data?: BatchPutDocumentCommandOutput) => void
249
250
  ): void;
251
+ chat(
252
+ args: ChatCommandInput,
253
+ options?: __HttpHandlerOptions
254
+ ): Promise<ChatCommandOutput>;
255
+ chat(
256
+ args: ChatCommandInput,
257
+ cb: (err: any, data?: ChatCommandOutput) => void
258
+ ): void;
259
+ chat(
260
+ args: ChatCommandInput,
261
+ options: __HttpHandlerOptions,
262
+ cb: (err: any, data?: ChatCommandOutput) => void
263
+ ): void;
250
264
  chatSync(
251
265
  args: ChatSyncCommandInput,
252
266
  options?: __HttpHandlerOptions
@@ -1,3 +1,7 @@
1
+ import {
2
+ EventStreamInputConfig,
3
+ EventStreamResolvedConfig,
4
+ } from "@aws-sdk/middleware-eventstream";
1
5
  import {
2
6
  HostHeaderInputConfig,
3
7
  HostHeaderResolvedConfig,
@@ -6,10 +10,15 @@ import {
6
10
  UserAgentInputConfig,
7
11
  UserAgentResolvedConfig,
8
12
  } from "@aws-sdk/middleware-user-agent";
13
+ import { EventStreamPayloadHandlerProvider as __EventStreamPayloadHandlerProvider } from "@aws-sdk/types";
9
14
  import {
10
15
  RegionInputConfig,
11
16
  RegionResolvedConfig,
12
17
  } from "@smithy/config-resolver";
18
+ import {
19
+ EventStreamSerdeInputConfig,
20
+ EventStreamSerdeResolvedConfig,
21
+ } from "@smithy/eventstream-serde-config-resolver";
13
22
  import {
14
23
  EndpointInputConfig,
15
24
  EndpointResolvedConfig,
@@ -32,6 +41,7 @@ import {
32
41
  ChecksumConstructor as __ChecksumConstructor,
33
42
  Decoder as __Decoder,
34
43
  Encoder as __Encoder,
44
+ EventStreamSerdeProvider as __EventStreamSerdeProvider,
35
45
  HashConstructor as __HashConstructor,
36
46
  HttpHandlerOptions as __HttpHandlerOptions,
37
47
  Logger as __Logger,
@@ -53,6 +63,7 @@ import {
53
63
  BatchPutDocumentCommandInput,
54
64
  BatchPutDocumentCommandOutput,
55
65
  } from "./commands/BatchPutDocumentCommand";
66
+ import { ChatCommandInput, ChatCommandOutput } from "./commands/ChatCommand";
56
67
  import {
57
68
  ChatSyncCommandInput,
58
69
  ChatSyncCommandOutput,
@@ -275,6 +286,7 @@ export { __Client };
275
286
  export type ServiceInputTypes =
276
287
  | BatchDeleteDocumentCommandInput
277
288
  | BatchPutDocumentCommandInput
289
+ | ChatCommandInput
278
290
  | ChatSyncCommandInput
279
291
  | CreateApplicationCommandInput
280
292
  | CreateDataSourceCommandInput
@@ -331,6 +343,7 @@ export type ServiceInputTypes =
331
343
  export type ServiceOutputTypes =
332
344
  | BatchDeleteDocumentCommandOutput
333
345
  | BatchPutDocumentCommandOutput
346
+ | ChatCommandOutput
334
347
  | ChatSyncCommandOutput
335
348
  | CreateApplicationCommandOutput
336
349
  | CreateDataSourceCommandOutput
@@ -407,7 +420,9 @@ export interface ClientDefaults
407
420
  retryMode?: string | __Provider<string>;
408
421
  logger?: __Logger;
409
422
  extensions?: RuntimeExtension[];
423
+ eventStreamSerdeProvider?: __EventStreamSerdeProvider;
410
424
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
425
+ eventStreamPayloadHandlerProvider?: __EventStreamPayloadHandlerProvider;
411
426
  }
412
427
  export type QBusinessClientConfigType = Partial<
413
428
  __SmithyConfiguration<__HttpHandlerOptions>
@@ -418,7 +433,9 @@ export type QBusinessClientConfigType = Partial<
418
433
  RetryInputConfig &
419
434
  HostHeaderInputConfig &
420
435
  UserAgentInputConfig &
436
+ EventStreamSerdeInputConfig &
421
437
  HttpAuthSchemeInputConfig &
438
+ EventStreamInputConfig &
422
439
  ClientInputEndpointParameters;
423
440
  export interface QBusinessClientConfig extends QBusinessClientConfigType {}
424
441
  export type QBusinessClientResolvedConfigType =
@@ -430,7 +447,9 @@ export type QBusinessClientResolvedConfigType =
430
447
  RetryResolvedConfig &
431
448
  HostHeaderResolvedConfig &
432
449
  UserAgentResolvedConfig &
450
+ EventStreamSerdeResolvedConfig &
433
451
  HttpAuthSchemeResolvedConfig &
452
+ EventStreamResolvedConfig &
434
453
  ClientResolvedEndpointParameters;
435
454
  export interface QBusinessClientResolvedConfig
436
455
  extends QBusinessClientResolvedConfigType {}
@@ -0,0 +1,29 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ChatInput, ChatOutput } from "../models/models_0";
4
+ import {
5
+ QBusinessClientResolvedConfig,
6
+ ServiceInputTypes,
7
+ ServiceOutputTypes,
8
+ } from "../QBusinessClient";
9
+ export { __MetadataBearer, $Command };
10
+ export interface ChatCommandInput extends ChatInput {}
11
+ export interface ChatCommandOutput extends ChatOutput, __MetadataBearer {}
12
+ declare const ChatCommand_base: {
13
+ new (input: ChatCommandInput): import("@smithy/smithy-client").CommandImpl<
14
+ ChatCommandInput,
15
+ ChatCommandOutput,
16
+ QBusinessClientResolvedConfig,
17
+ ServiceInputTypes,
18
+ ServiceOutputTypes
19
+ >;
20
+ new (__0_0: ChatCommandInput): import("@smithy/smithy-client").CommandImpl<
21
+ ChatCommandInput,
22
+ ChatCommandOutput,
23
+ QBusinessClientResolvedConfig,
24
+ ServiceInputTypes,
25
+ ServiceOutputTypes
26
+ >;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ export declare class ChatCommand extends ChatCommand_base {}
@@ -1,5 +1,6 @@
1
1
  export * from "./BatchDeleteDocumentCommand";
2
2
  export * from "./BatchPutDocumentCommand";
3
+ export * from "./ChatCommand";
3
4
  export * from "./ChatSyncCommand";
4
5
  export * from "./CreateApplicationCommand";
5
6
  export * from "./CreateDataSourceCommand";