@aws-sdk/client-qconnect 3.552.0 → 3.554.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 (33) hide show
  1. package/README.md +19 -11
  2. package/dist-cjs/index.js +80 -1
  3. package/dist-es/QConnect.js +2 -0
  4. package/dist-es/commands/UpdateSessionCommand.js +24 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/models_0.js +22 -0
  7. package/dist-es/protocols/Aws_restJson1.js +31 -0
  8. package/dist-types/QConnect.d.ts +18 -11
  9. package/dist-types/QConnectClient.d.ts +14 -13
  10. package/dist-types/commands/CreateContentCommand.d.ts +1 -2
  11. package/dist-types/commands/CreateQuickResponseCommand.d.ts +1 -1
  12. package/dist-types/commands/CreateSessionCommand.d.ts +45 -2
  13. package/dist-types/commands/GetRecommendationsCommand.d.ts +7 -1
  14. package/dist-types/commands/GetSessionCommand.d.ts +20 -0
  15. package/dist-types/commands/PutFeedbackCommand.d.ts +2 -1
  16. package/dist-types/commands/QueryAssistantCommand.d.ts +8 -3
  17. package/dist-types/commands/SearchQuickResponsesCommand.d.ts +1 -1
  18. package/dist-types/commands/StartContentUploadCommand.d.ts +4 -2
  19. package/dist-types/commands/StartImportJobCommand.d.ts +5 -2
  20. package/dist-types/commands/UpdateKnowledgeBaseTemplateUriCommand.d.ts +1 -1
  21. package/dist-types/commands/UpdateQuickResponseCommand.d.ts +1 -1
  22. package/dist-types/commands/UpdateSessionCommand.d.ts +123 -0
  23. package/dist-types/commands/index.d.ts +1 -0
  24. package/dist-types/index.d.ts +11 -11
  25. package/dist-types/models/models_0.d.ts +316 -158
  26. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  27. package/dist-types/ts3.4/QConnect.d.ts +17 -0
  28. package/dist-types/ts3.4/QConnectClient.d.ts +8 -2
  29. package/dist-types/ts3.4/commands/UpdateSessionCommand.d.ts +38 -0
  30. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  31. package/dist-types/ts3.4/models/models_0.d.ts +80 -0
  32. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  33. package/package.json +4 -4
@@ -42,6 +42,7 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../comman
42
42
  import { UpdateContentCommandInput, UpdateContentCommandOutput } from "../commands/UpdateContentCommand";
43
43
  import { UpdateKnowledgeBaseTemplateUriCommandInput, UpdateKnowledgeBaseTemplateUriCommandOutput } from "../commands/UpdateKnowledgeBaseTemplateUriCommand";
44
44
  import { UpdateQuickResponseCommandInput, UpdateQuickResponseCommandOutput } from "../commands/UpdateQuickResponseCommand";
45
+ import { UpdateSessionCommandInput, UpdateSessionCommandOutput } from "../commands/UpdateSessionCommand";
45
46
  /**
46
47
  * serializeAws_restJson1CreateAssistantCommand
47
48
  */
@@ -210,6 +211,10 @@ export declare const se_UpdateKnowledgeBaseTemplateUriCommand: (input: UpdateKno
210
211
  * serializeAws_restJson1UpdateQuickResponseCommand
211
212
  */
212
213
  export declare const se_UpdateQuickResponseCommand: (input: UpdateQuickResponseCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
214
+ /**
215
+ * serializeAws_restJson1UpdateSessionCommand
216
+ */
217
+ export declare const se_UpdateSessionCommand: (input: UpdateSessionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
213
218
  /**
214
219
  * deserializeAws_restJson1CreateAssistantCommand
215
220
  */
@@ -378,3 +383,7 @@ export declare const de_UpdateKnowledgeBaseTemplateUriCommand: (output: __HttpRe
378
383
  * deserializeAws_restJson1UpdateQuickResponseCommand
379
384
  */
380
385
  export declare const de_UpdateQuickResponseCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateQuickResponseCommandOutput>;
386
+ /**
387
+ * deserializeAws_restJson1UpdateSessionCommand
388
+ */
389
+ export declare const de_UpdateSessionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateSessionCommandOutput>;
@@ -167,6 +167,10 @@ import {
167
167
  UpdateQuickResponseCommandInput,
168
168
  UpdateQuickResponseCommandOutput,
169
169
  } from "./commands/UpdateQuickResponseCommand";
170
+ import {
171
+ UpdateSessionCommandInput,
172
+ UpdateSessionCommandOutput,
173
+ } from "./commands/UpdateSessionCommand";
170
174
  import { QConnectClient } from "./QConnectClient";
171
175
  export interface QConnect {
172
176
  createAssistant(
@@ -717,5 +721,18 @@ export interface QConnect {
717
721
  options: __HttpHandlerOptions,
718
722
  cb: (err: any, data?: UpdateQuickResponseCommandOutput) => void
719
723
  ): void;
724
+ updateSession(
725
+ args: UpdateSessionCommandInput,
726
+ options?: __HttpHandlerOptions
727
+ ): Promise<UpdateSessionCommandOutput>;
728
+ updateSession(
729
+ args: UpdateSessionCommandInput,
730
+ cb: (err: any, data?: UpdateSessionCommandOutput) => void
731
+ ): void;
732
+ updateSession(
733
+ args: UpdateSessionCommandInput,
734
+ options: __HttpHandlerOptions,
735
+ cb: (err: any, data?: UpdateSessionCommandOutput) => void
736
+ ): void;
720
737
  }
721
738
  export declare class QConnect extends QConnectClient implements QConnect {}
@@ -213,6 +213,10 @@ import {
213
213
  UpdateQuickResponseCommandInput,
214
214
  UpdateQuickResponseCommandOutput,
215
215
  } from "./commands/UpdateQuickResponseCommand";
216
+ import {
217
+ UpdateSessionCommandInput,
218
+ UpdateSessionCommandOutput,
219
+ } from "./commands/UpdateSessionCommand";
216
220
  import {
217
221
  ClientInputEndpointParameters,
218
222
  ClientResolvedEndpointParameters,
@@ -262,7 +266,8 @@ export type ServiceInputTypes =
262
266
  | UntagResourceCommandInput
263
267
  | UpdateContentCommandInput
264
268
  | UpdateKnowledgeBaseTemplateUriCommandInput
265
- | UpdateQuickResponseCommandInput;
269
+ | UpdateQuickResponseCommandInput
270
+ | UpdateSessionCommandInput;
266
271
  export type ServiceOutputTypes =
267
272
  | CreateAssistantAssociationCommandOutput
268
273
  | CreateAssistantCommandOutput
@@ -305,7 +310,8 @@ export type ServiceOutputTypes =
305
310
  | UntagResourceCommandOutput
306
311
  | UpdateContentCommandOutput
307
312
  | UpdateKnowledgeBaseTemplateUriCommandOutput
308
- | UpdateQuickResponseCommandOutput;
313
+ | UpdateQuickResponseCommandOutput
314
+ | UpdateSessionCommandOutput;
309
315
  export interface ClientDefaults
310
316
  extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
311
317
  requestHandler?: __HttpHandlerUserInput;
@@ -0,0 +1,38 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ UpdateSessionRequest,
5
+ UpdateSessionResponse,
6
+ } from "../models/models_0";
7
+ import {
8
+ QConnectClientResolvedConfig,
9
+ ServiceInputTypes,
10
+ ServiceOutputTypes,
11
+ } from "../QConnectClient";
12
+ export { __MetadataBearer, $Command };
13
+ export interface UpdateSessionCommandInput extends UpdateSessionRequest {}
14
+ export interface UpdateSessionCommandOutput
15
+ extends UpdateSessionResponse,
16
+ __MetadataBearer {}
17
+ declare const UpdateSessionCommand_base: {
18
+ new (
19
+ input: UpdateSessionCommandInput
20
+ ): import("@smithy/smithy-client").CommandImpl<
21
+ UpdateSessionCommandInput,
22
+ UpdateSessionCommandOutput,
23
+ QConnectClientResolvedConfig,
24
+ ServiceInputTypes,
25
+ ServiceOutputTypes
26
+ >;
27
+ new (
28
+ __0_0: UpdateSessionCommandInput
29
+ ): import("@smithy/smithy-client").CommandImpl<
30
+ UpdateSessionCommandInput,
31
+ UpdateSessionCommandOutput,
32
+ QConnectClientResolvedConfig,
33
+ ServiceInputTypes,
34
+ ServiceOutputTypes
35
+ >;
36
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
37
+ };
38
+ export declare class UpdateSessionCommand extends UpdateSessionCommand_base {}
@@ -40,3 +40,4 @@ export * from "./UntagResourceCommand";
40
40
  export * from "./UpdateContentCommand";
41
41
  export * from "./UpdateKnowledgeBaseTemplateUriCommand";
42
42
  export * from "./UpdateQuickResponseCommand";
43
+ export * from "./UpdateSessionCommand";
@@ -7,6 +7,10 @@ export declare class AccessDeniedException extends __BaseException {
7
7
  opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
8
8
  );
9
9
  }
10
+ export interface TagCondition {
11
+ key: string | undefined;
12
+ value?: string;
13
+ }
10
14
  export interface AppIntegrationsConfiguration {
11
15
  appIntegrationArn: string | undefined;
12
16
  objectFields?: string[];
@@ -499,12 +503,78 @@ export interface SearchSessionsResponse {
499
503
  sessionSummaries: SessionSummary[] | undefined;
500
504
  nextToken?: string;
501
505
  }
506
+ export type OrCondition =
507
+ | OrCondition.AndConditionsMember
508
+ | OrCondition.TagConditionMember
509
+ | OrCondition.$UnknownMember;
510
+ export declare namespace OrCondition {
511
+ interface AndConditionsMember {
512
+ andConditions: TagCondition[];
513
+ tagCondition?: never;
514
+ $unknown?: never;
515
+ }
516
+ interface TagConditionMember {
517
+ andConditions?: never;
518
+ tagCondition: TagCondition;
519
+ $unknown?: never;
520
+ }
521
+ interface $UnknownMember {
522
+ andConditions?: never;
523
+ tagCondition?: never;
524
+ $unknown: [string, any];
525
+ }
526
+ interface Visitor<T> {
527
+ andConditions: (value: TagCondition[]) => T;
528
+ tagCondition: (value: TagCondition) => T;
529
+ _: (name: string, value: any) => T;
530
+ }
531
+ const visit: <T>(value: OrCondition, visitor: Visitor<T>) => T;
532
+ }
533
+ export type TagFilter =
534
+ | TagFilter.AndConditionsMember
535
+ | TagFilter.OrConditionsMember
536
+ | TagFilter.TagConditionMember
537
+ | TagFilter.$UnknownMember;
538
+ export declare namespace TagFilter {
539
+ interface TagConditionMember {
540
+ tagCondition: TagCondition;
541
+ andConditions?: never;
542
+ orConditions?: never;
543
+ $unknown?: never;
544
+ }
545
+ interface AndConditionsMember {
546
+ tagCondition?: never;
547
+ andConditions: TagCondition[];
548
+ orConditions?: never;
549
+ $unknown?: never;
550
+ }
551
+ interface OrConditionsMember {
552
+ tagCondition?: never;
553
+ andConditions?: never;
554
+ orConditions: OrCondition[];
555
+ $unknown?: never;
556
+ }
557
+ interface $UnknownMember {
558
+ tagCondition?: never;
559
+ andConditions?: never;
560
+ orConditions?: never;
561
+ $unknown: [string, any];
562
+ }
563
+ interface Visitor<T> {
564
+ tagCondition: (value: TagCondition) => T;
565
+ andConditions: (value: TagCondition[]) => T;
566
+ orConditions: (value: OrCondition[]) => T;
567
+ _: (name: string, value: any) => T;
568
+ }
569
+ const visit: <T>(value: TagFilter, visitor: Visitor<T>) => T;
570
+ }
502
571
  export interface CreateSessionRequest {
503
572
  clientToken?: string;
504
573
  assistantId: string | undefined;
505
574
  name: string | undefined;
506
575
  description?: string;
507
576
  tags?: Record<string, string>;
577
+ tagFilter?: TagFilter;
508
578
  }
509
579
  export interface SessionIntegrationConfiguration {
510
580
  topicIntegrationArn?: string;
@@ -516,6 +586,7 @@ export interface SessionData {
516
586
  description?: string;
517
587
  tags?: Record<string, string>;
518
588
  integrationConfiguration?: SessionIntegrationConfiguration;
589
+ tagFilter?: TagFilter;
519
590
  }
520
591
  export interface CreateSessionResponse {
521
592
  session?: SessionData;
@@ -527,6 +598,15 @@ export interface GetSessionRequest {
527
598
  export interface GetSessionResponse {
528
599
  session?: SessionData;
529
600
  }
601
+ export interface UpdateSessionRequest {
602
+ assistantId: string | undefined;
603
+ sessionId: string | undefined;
604
+ description?: string;
605
+ tagFilter?: TagFilter;
606
+ }
607
+ export interface UpdateSessionResponse {
608
+ session?: SessionData;
609
+ }
530
610
  export interface ConnectConfiguration {
531
611
  instanceId?: string;
532
612
  }
@@ -171,6 +171,10 @@ import {
171
171
  UpdateQuickResponseCommandInput,
172
172
  UpdateQuickResponseCommandOutput,
173
173
  } from "../commands/UpdateQuickResponseCommand";
174
+ import {
175
+ UpdateSessionCommandInput,
176
+ UpdateSessionCommandOutput,
177
+ } from "../commands/UpdateSessionCommand";
174
178
  export declare const se_CreateAssistantCommand: (
175
179
  input: CreateAssistantCommandInput,
176
180
  context: __SerdeContext
@@ -339,6 +343,10 @@ export declare const se_UpdateQuickResponseCommand: (
339
343
  input: UpdateQuickResponseCommandInput,
340
344
  context: __SerdeContext
341
345
  ) => Promise<__HttpRequest>;
346
+ export declare const se_UpdateSessionCommand: (
347
+ input: UpdateSessionCommandInput,
348
+ context: __SerdeContext
349
+ ) => Promise<__HttpRequest>;
342
350
  export declare const de_CreateAssistantCommand: (
343
351
  output: __HttpResponse,
344
352
  context: __SerdeContext
@@ -507,3 +515,7 @@ export declare const de_UpdateQuickResponseCommand: (
507
515
  output: __HttpResponse,
508
516
  context: __SerdeContext
509
517
  ) => Promise<UpdateQuickResponseCommandOutput>;
518
+ export declare const de_UpdateSessionCommand: (
519
+ output: __HttpResponse,
520
+ context: __SerdeContext
521
+ ) => Promise<UpdateSessionCommandOutput>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-qconnect",
3
3
  "description": "AWS SDK for JavaScript Qconnect Client for Node.js, Browser and React Native",
4
- "version": "3.552.0",
4
+ "version": "3.554.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-qconnect",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.552.0",
24
- "@aws-sdk/core": "3.552.0",
25
- "@aws-sdk/credential-provider-node": "3.552.0",
23
+ "@aws-sdk/client-sts": "3.554.0",
24
+ "@aws-sdk/core": "3.554.0",
25
+ "@aws-sdk/credential-provider-node": "3.554.0",
26
26
  "@aws-sdk/middleware-host-header": "3.535.0",
27
27
  "@aws-sdk/middleware-logger": "3.535.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.535.0",