@aws-sdk/client-connect 3.473.0 → 3.474.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 (31) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/Connect.js +4 -0
  3. package/dist-cjs/commands/TagContactCommand.js +51 -0
  4. package/dist-cjs/commands/UntagContactCommand.js +51 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/protocols/Aws_restJson1.js +140 -7
  7. package/dist-es/Connect.js +4 -0
  8. package/dist-es/commands/TagContactCommand.js +47 -0
  9. package/dist-es/commands/UntagContactCommand.js +47 -0
  10. package/dist-es/commands/index.js +2 -0
  11. package/dist-es/protocols/Aws_restJson1.js +129 -0
  12. package/dist-types/Connect.d.ts +14 -0
  13. package/dist-types/ConnectClient.d.ts +4 -2
  14. package/dist-types/commands/BatchAssociateAnalyticsDataSetCommand.d.ts +2 -2
  15. package/dist-types/commands/DescribeContactCommand.d.ts +3 -0
  16. package/dist-types/commands/TagContactCommand.d.ts +92 -0
  17. package/dist-types/commands/UntagContactCommand.d.ts +91 -0
  18. package/dist-types/commands/index.d.ts +2 -0
  19. package/dist-types/models/models_0.d.ts +34 -28
  20. package/dist-types/models/models_1.d.ts +15 -15
  21. package/dist-types/models/models_2.d.ts +62 -7
  22. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  23. package/dist-types/ts3.4/Connect.d.ts +34 -0
  24. package/dist-types/ts3.4/ConnectClient.d.ts +12 -0
  25. package/dist-types/ts3.4/commands/TagContactCommand.d.ts +35 -0
  26. package/dist-types/ts3.4/commands/UntagContactCommand.d.ts +35 -0
  27. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  28. package/dist-types/ts3.4/models/models_0.d.ts +1 -0
  29. package/dist-types/ts3.4/models/models_2.d.ts +12 -0
  30. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  31. package/package.json +4 -4
@@ -0,0 +1,35 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ ConnectClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../ConnectClient";
14
+ import { TagContactRequest, TagContactResponse } from "../models/models_2";
15
+ export { __MetadataBearer, $Command };
16
+ export interface TagContactCommandInput extends TagContactRequest {}
17
+ export interface TagContactCommandOutput
18
+ extends TagContactResponse,
19
+ __MetadataBearer {}
20
+ export declare class TagContactCommand extends $Command<
21
+ TagContactCommandInput,
22
+ TagContactCommandOutput,
23
+ ConnectClientResolvedConfig
24
+ > {
25
+ readonly input: TagContactCommandInput;
26
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
27
+ constructor(input: TagContactCommandInput);
28
+ resolveMiddleware(
29
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
30
+ configuration: ConnectClientResolvedConfig,
31
+ options?: __HttpHandlerOptions
32
+ ): Handler<TagContactCommandInput, TagContactCommandOutput>;
33
+ private serialize;
34
+ private deserialize;
35
+ }
@@ -0,0 +1,35 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ ConnectClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../ConnectClient";
14
+ import { UntagContactRequest, UntagContactResponse } from "../models/models_2";
15
+ export { __MetadataBearer, $Command };
16
+ export interface UntagContactCommandInput extends UntagContactRequest {}
17
+ export interface UntagContactCommandOutput
18
+ extends UntagContactResponse,
19
+ __MetadataBearer {}
20
+ export declare class UntagContactCommand extends $Command<
21
+ UntagContactCommandInput,
22
+ UntagContactCommandOutput,
23
+ ConnectClientResolvedConfig
24
+ > {
25
+ readonly input: UntagContactCommandInput;
26
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
27
+ constructor(input: UntagContactCommandInput);
28
+ resolveMiddleware(
29
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
30
+ configuration: ConnectClientResolvedConfig,
31
+ options?: __HttpHandlerOptions
32
+ ): Handler<UntagContactCommandInput, UntagContactCommandOutput>;
33
+ private serialize;
34
+ private deserialize;
35
+ }
@@ -179,8 +179,10 @@ export * from "./StopContactRecordingCommand";
179
179
  export * from "./StopContactStreamingCommand";
180
180
  export * from "./SubmitContactEvaluationCommand";
181
181
  export * from "./SuspendContactRecordingCommand";
182
+ export * from "./TagContactCommand";
182
183
  export * from "./TagResourceCommand";
183
184
  export * from "./TransferContactCommand";
185
+ export * from "./UntagContactCommand";
184
186
  export * from "./UntagResourceCommand";
185
187
  export * from "./UpdateAgentStatusCommand";
186
188
  export * from "./UpdateContactAttributesCommand";
@@ -1489,6 +1489,7 @@ export interface Contact {
1489
1489
  ScheduledTimestamp?: Date;
1490
1490
  RelatedContactId?: string;
1491
1491
  WisdomInfo?: WisdomInfo;
1492
+ Tags?: Record<string, string>;
1492
1493
  }
1493
1494
  export interface DescribeContactResponse {
1494
1495
  Contact?: Contact;
@@ -297,6 +297,12 @@ export interface SuspendContactRecordingRequest {
297
297
  InitialContactId: string | undefined;
298
298
  }
299
299
  export interface SuspendContactRecordingResponse {}
300
+ export interface TagContactRequest {
301
+ ContactId: string | undefined;
302
+ InstanceId: string | undefined;
303
+ Tags: Record<string, string> | undefined;
304
+ }
305
+ export interface TagContactResponse {}
300
306
  export interface TagResourceRequest {
301
307
  resourceArn: string | undefined;
302
308
  tags: Record<string, string> | undefined;
@@ -313,6 +319,12 @@ export interface TransferContactResponse {
313
319
  ContactId?: string;
314
320
  ContactArn?: string;
315
321
  }
322
+ export interface UntagContactRequest {
323
+ ContactId: string | undefined;
324
+ InstanceId: string | undefined;
325
+ TagKeys: string[] | undefined;
326
+ }
327
+ export interface UntagContactResponse {}
316
328
  export interface UntagResourceRequest {
317
329
  resourceArn: string | undefined;
318
330
  tagKeys: string[] | undefined;
@@ -727,6 +727,10 @@ import {
727
727
  SuspendContactRecordingCommandInput,
728
728
  SuspendContactRecordingCommandOutput,
729
729
  } from "../commands/SuspendContactRecordingCommand";
730
+ import {
731
+ TagContactCommandInput,
732
+ TagContactCommandOutput,
733
+ } from "../commands/TagContactCommand";
730
734
  import {
731
735
  TagResourceCommandInput,
732
736
  TagResourceCommandOutput,
@@ -735,6 +739,10 @@ import {
735
739
  TransferContactCommandInput,
736
740
  TransferContactCommandOutput,
737
741
  } from "../commands/TransferContactCommand";
742
+ import {
743
+ UntagContactCommandInput,
744
+ UntagContactCommandOutput,
745
+ } from "../commands/UntagContactCommand";
738
746
  import {
739
747
  UntagResourceCommandInput,
740
748
  UntagResourceCommandOutput,
@@ -1635,6 +1643,10 @@ export declare const se_SuspendContactRecordingCommand: (
1635
1643
  input: SuspendContactRecordingCommandInput,
1636
1644
  context: __SerdeContext
1637
1645
  ) => Promise<__HttpRequest>;
1646
+ export declare const se_TagContactCommand: (
1647
+ input: TagContactCommandInput,
1648
+ context: __SerdeContext
1649
+ ) => Promise<__HttpRequest>;
1638
1650
  export declare const se_TagResourceCommand: (
1639
1651
  input: TagResourceCommandInput,
1640
1652
  context: __SerdeContext
@@ -1643,6 +1655,10 @@ export declare const se_TransferContactCommand: (
1643
1655
  input: TransferContactCommandInput,
1644
1656
  context: __SerdeContext
1645
1657
  ) => Promise<__HttpRequest>;
1658
+ export declare const se_UntagContactCommand: (
1659
+ input: UntagContactCommandInput,
1660
+ context: __SerdeContext
1661
+ ) => Promise<__HttpRequest>;
1646
1662
  export declare const se_UntagResourceCommand: (
1647
1663
  input: UntagResourceCommandInput,
1648
1664
  context: __SerdeContext
@@ -2543,6 +2559,10 @@ export declare const de_SuspendContactRecordingCommand: (
2543
2559
  output: __HttpResponse,
2544
2560
  context: __SerdeContext
2545
2561
  ) => Promise<SuspendContactRecordingCommandOutput>;
2562
+ export declare const de_TagContactCommand: (
2563
+ output: __HttpResponse,
2564
+ context: __SerdeContext
2565
+ ) => Promise<TagContactCommandOutput>;
2546
2566
  export declare const de_TagResourceCommand: (
2547
2567
  output: __HttpResponse,
2548
2568
  context: __SerdeContext
@@ -2551,6 +2571,10 @@ export declare const de_TransferContactCommand: (
2551
2571
  output: __HttpResponse,
2552
2572
  context: __SerdeContext
2553
2573
  ) => Promise<TransferContactCommandOutput>;
2574
+ export declare const de_UntagContactCommand: (
2575
+ output: __HttpResponse,
2576
+ context: __SerdeContext
2577
+ ) => Promise<UntagContactCommandOutput>;
2554
2578
  export declare const de_UntagResourceCommand: (
2555
2579
  output: __HttpResponse,
2556
2580
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-connect",
3
3
  "description": "AWS SDK for JavaScript Connect Client for Node.js, Browser and React Native",
4
- "version": "3.473.0",
4
+ "version": "3.474.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -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.473.0",
24
- "@aws-sdk/core": "3.468.0",
25
- "@aws-sdk/credential-provider-node": "3.470.0",
23
+ "@aws-sdk/client-sts": "3.474.0",
24
+ "@aws-sdk/core": "3.474.0",
25
+ "@aws-sdk/credential-provider-node": "3.474.0",
26
26
  "@aws-sdk/middleware-host-header": "3.468.0",
27
27
  "@aws-sdk/middleware-logger": "3.468.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.468.0",