@aws-sdk/client-connect 3.473.0 → 3.475.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 (61) hide show
  1. package/README.md +32 -0
  2. package/dist-cjs/Connect.js +8 -0
  3. package/dist-cjs/commands/PauseContactCommand.js +51 -0
  4. package/dist-cjs/commands/ResumeContactCommand.js +51 -0
  5. package/dist-cjs/commands/TagContactCommand.js +51 -0
  6. package/dist-cjs/commands/UntagContactCommand.js +51 -0
  7. package/dist-cjs/commands/index.js +4 -0
  8. package/dist-cjs/models/models_0.js +7 -5
  9. package/dist-cjs/models/models_1.js +19 -6
  10. package/dist-cjs/models/models_2.js +6 -1
  11. package/dist-cjs/protocols/Aws_restJson1.js +414 -10
  12. package/dist-es/Connect.js +8 -0
  13. package/dist-es/commands/PauseContactCommand.js +47 -0
  14. package/dist-es/commands/ResumeContactCommand.js +47 -0
  15. package/dist-es/commands/TagContactCommand.js +47 -0
  16. package/dist-es/commands/UntagContactCommand.js +47 -0
  17. package/dist-es/commands/index.js +4 -0
  18. package/dist-es/models/models_0.js +6 -4
  19. package/dist-es/models/models_1.js +17 -5
  20. package/dist-es/models/models_2.js +5 -0
  21. package/dist-es/protocols/Aws_restJson1.js +400 -4
  22. package/dist-types/Connect.d.ts +28 -0
  23. package/dist-types/ConnectClient.d.ts +6 -2
  24. package/dist-types/commands/BatchAssociateAnalyticsDataSetCommand.d.ts +2 -2
  25. package/dist-types/commands/CreateIntegrationAssociationCommand.d.ts +1 -1
  26. package/dist-types/commands/CreateRuleCommand.d.ts +30 -2
  27. package/dist-types/commands/DescribeContactCommand.d.ts +8 -0
  28. package/dist-types/commands/DescribePromptCommand.d.ts +2 -1
  29. package/dist-types/commands/DescribeQueueCommand.d.ts +1 -1
  30. package/dist-types/commands/DescribeRuleCommand.d.ts +30 -2
  31. package/dist-types/commands/ListIntegrationAssociationsCommand.d.ts +1 -1
  32. package/dist-types/commands/ListRulesCommand.d.ts +3 -3
  33. package/dist-types/commands/PauseContactCommand.d.ts +97 -0
  34. package/dist-types/commands/ResumeContactCommand.d.ts +94 -0
  35. package/dist-types/commands/SearchUsersCommand.d.ts +1 -2
  36. package/dist-types/commands/SearchVocabulariesCommand.d.ts +1 -1
  37. package/dist-types/commands/StartOutboundVoiceContactCommand.d.ts +9 -0
  38. package/dist-types/commands/TagContactCommand.d.ts +92 -0
  39. package/dist-types/commands/UntagContactCommand.d.ts +91 -0
  40. package/dist-types/commands/UpdateRuleCommand.d.ts +29 -1
  41. package/dist-types/commands/index.d.ts +4 -0
  42. package/dist-types/models/models_0.d.ts +164 -175
  43. package/dist-types/models/models_1.d.ts +237 -319
  44. package/dist-types/models/models_2.d.ts +398 -9
  45. package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
  46. package/dist-types/ts3.4/Connect.d.ts +68 -0
  47. package/dist-types/ts3.4/ConnectClient.d.ts +24 -0
  48. package/dist-types/ts3.4/commands/DescribePromptCommand.d.ts +2 -4
  49. package/dist-types/ts3.4/commands/DescribeQueueCommand.d.ts +1 -1
  50. package/dist-types/ts3.4/commands/PauseContactCommand.d.ts +35 -0
  51. package/dist-types/ts3.4/commands/ResumeContactCommand.d.ts +38 -0
  52. package/dist-types/ts3.4/commands/SearchUsersCommand.d.ts +1 -2
  53. package/dist-types/ts3.4/commands/SearchVocabulariesCommand.d.ts +1 -1
  54. package/dist-types/ts3.4/commands/TagContactCommand.d.ts +35 -0
  55. package/dist-types/ts3.4/commands/UntagContactCommand.d.ts +35 -0
  56. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  57. package/dist-types/ts3.4/models/models_0.d.ts +34 -37
  58. package/dist-types/ts3.4/models/models_1.d.ts +56 -65
  59. package/dist-types/ts3.4/models/models_2.d.ts +84 -5
  60. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
  61. package/package.json +4 -4
@@ -20,7 +20,6 @@ import {
20
20
  InstanceStorageResourceType,
21
21
  MediaConcurrency,
22
22
  OutboundCallerConfig,
23
- QueueStatus,
24
23
  QuickConnectConfig,
25
24
  Reference,
26
25
  RehydrationType,
@@ -36,14 +35,16 @@ import {
36
35
  View,
37
36
  ViewInputContent,
38
37
  ViewStatus,
38
+ VocabularyLanguageCode,
39
+ VocabularyState,
39
40
  } from "./models_0";
40
41
  import {
41
- ChatEvent,
42
- HierarchyGroupCondition,
42
+ ControlPlaneTagFilter,
43
+ HierarchyGroupMatchType,
43
44
  HoursOfOperationSearchFilter,
44
- ParticipantDetails,
45
45
  PromptSearchFilter,
46
46
  QueueSearchFilter,
47
+ QueueStatus,
47
48
  QuickConnectSearchFilter,
48
49
  RoutingProfileSearchFilter,
49
50
  SearchableQueueType,
@@ -51,8 +52,70 @@ import {
51
52
  SignInConfig,
52
53
  StringCondition,
53
54
  TelephonyConfig,
54
- UserSearchFilter,
55
55
  } from "./models_1";
56
+ export interface HierarchyGroupCondition {
57
+ Value?: string;
58
+ HierarchyGroupMatchType?: HierarchyGroupMatchType;
59
+ }
60
+ export interface UserSearchFilter {
61
+ TagFilter?: ControlPlaneTagFilter;
62
+ }
63
+ export interface UserIdentityInfoLite {
64
+ FirstName?: string;
65
+ LastName?: string;
66
+ }
67
+ export interface UserSearchSummary {
68
+ Arn?: string;
69
+ DirectoryUserId?: string;
70
+ HierarchyGroupId?: string;
71
+ Id?: string;
72
+ IdentityInfo?: UserIdentityInfoLite;
73
+ PhoneConfig?: UserPhoneConfig;
74
+ RoutingProfileId?: string;
75
+ SecurityProfileIds?: string[];
76
+ Tags?: Record<string, string>;
77
+ Username?: string;
78
+ }
79
+ export interface SearchUsersResponse {
80
+ Users?: UserSearchSummary[];
81
+ NextToken?: string;
82
+ ApproximateTotalCount?: number;
83
+ }
84
+ export interface SearchVocabulariesRequest {
85
+ InstanceId: string | undefined;
86
+ MaxResults?: number;
87
+ NextToken?: string;
88
+ State?: VocabularyState;
89
+ NameStartsWith?: string;
90
+ LanguageCode?: VocabularyLanguageCode;
91
+ }
92
+ export interface VocabularySummary {
93
+ Name: string | undefined;
94
+ Id: string | undefined;
95
+ Arn: string | undefined;
96
+ LanguageCode: VocabularyLanguageCode | undefined;
97
+ State: VocabularyState | undefined;
98
+ LastModifiedTime: Date | undefined;
99
+ FailureReason?: string;
100
+ }
101
+ export interface SearchVocabulariesResponse {
102
+ VocabularySummaryList?: VocabularySummary[];
103
+ NextToken?: string;
104
+ }
105
+ export declare const ChatEventType: {
106
+ readonly DISCONNECT: "DISCONNECT";
107
+ readonly EVENT: "EVENT";
108
+ readonly MESSAGE: "MESSAGE";
109
+ };
110
+ export type ChatEventType = (typeof ChatEventType)[keyof typeof ChatEventType];
111
+ export interface ChatEvent {
112
+ Type: ChatEventType | undefined;
113
+ ContentType?: string;
114
+ Content?: string;
115
+ }
116
+ export interface ParticipantDetails {
117
+ DisplayName: string | undefined;
118
+ }
56
119
  export interface ChatStreamingConfiguration {
57
120
  StreamingEndpointArn: string | undefined;
58
121
  }
@@ -168,6 +231,10 @@ export declare const TrafficType: {
168
231
  };
169
232
  export type TrafficType = (typeof TrafficType)[keyof typeof TrafficType];
170
233
  export interface StartOutboundVoiceContactRequest {
234
+ Name?: string;
235
+ Description?: string;
236
+ References?: Record<string, Reference>;
237
+ RelatedContactId?: string;
171
238
  DestinationPhoneNumber: string | undefined;
172
239
  ContactFlowId: string | undefined;
173
240
  InstanceId: string | undefined;
@@ -297,6 +364,12 @@ export interface SuspendContactRecordingRequest {
297
364
  InitialContactId: string | undefined;
298
365
  }
299
366
  export interface SuspendContactRecordingResponse {}
367
+ export interface TagContactRequest {
368
+ ContactId: string | undefined;
369
+ InstanceId: string | undefined;
370
+ Tags: Record<string, string> | undefined;
371
+ }
372
+ export interface TagContactResponse {}
300
373
  export interface TagResourceRequest {
301
374
  resourceArn: string | undefined;
302
375
  tags: Record<string, string> | undefined;
@@ -313,6 +386,12 @@ export interface TransferContactResponse {
313
386
  ContactId?: string;
314
387
  ContactArn?: string;
315
388
  }
389
+ export interface UntagContactRequest {
390
+ ContactId: string | undefined;
391
+ InstanceId: string | undefined;
392
+ TagKeys: string[] | undefined;
393
+ }
394
+ export interface UntagContactResponse {}
316
395
  export interface UntagResourceRequest {
317
396
  resourceArn: string | undefined;
318
397
  tagKeys: string[] | undefined;
@@ -619,6 +619,10 @@ import {
619
619
  MonitorContactCommandInput,
620
620
  MonitorContactCommandOutput,
621
621
  } from "../commands/MonitorContactCommand";
622
+ import {
623
+ PauseContactCommandInput,
624
+ PauseContactCommandOutput,
625
+ } from "../commands/PauseContactCommand";
622
626
  import {
623
627
  PutUserStatusCommandInput,
624
628
  PutUserStatusCommandOutput,
@@ -631,6 +635,10 @@ import {
631
635
  ReplicateInstanceCommandInput,
632
636
  ReplicateInstanceCommandOutput,
633
637
  } from "../commands/ReplicateInstanceCommand";
638
+ import {
639
+ ResumeContactCommandInput,
640
+ ResumeContactCommandOutput,
641
+ } from "../commands/ResumeContactCommand";
634
642
  import {
635
643
  ResumeContactRecordingCommandInput,
636
644
  ResumeContactRecordingCommandOutput,
@@ -727,6 +735,10 @@ import {
727
735
  SuspendContactRecordingCommandInput,
728
736
  SuspendContactRecordingCommandOutput,
729
737
  } from "../commands/SuspendContactRecordingCommand";
738
+ import {
739
+ TagContactCommandInput,
740
+ TagContactCommandOutput,
741
+ } from "../commands/TagContactCommand";
730
742
  import {
731
743
  TagResourceCommandInput,
732
744
  TagResourceCommandOutput,
@@ -735,6 +747,10 @@ import {
735
747
  TransferContactCommandInput,
736
748
  TransferContactCommandOutput,
737
749
  } from "../commands/TransferContactCommand";
750
+ import {
751
+ UntagContactCommandInput,
752
+ UntagContactCommandOutput,
753
+ } from "../commands/UntagContactCommand";
738
754
  import {
739
755
  UntagResourceCommandInput,
740
756
  UntagResourceCommandOutput,
@@ -1527,6 +1543,10 @@ export declare const se_MonitorContactCommand: (
1527
1543
  input: MonitorContactCommandInput,
1528
1544
  context: __SerdeContext
1529
1545
  ) => Promise<__HttpRequest>;
1546
+ export declare const se_PauseContactCommand: (
1547
+ input: PauseContactCommandInput,
1548
+ context: __SerdeContext
1549
+ ) => Promise<__HttpRequest>;
1530
1550
  export declare const se_PutUserStatusCommand: (
1531
1551
  input: PutUserStatusCommandInput,
1532
1552
  context: __SerdeContext
@@ -1539,6 +1559,10 @@ export declare const se_ReplicateInstanceCommand: (
1539
1559
  input: ReplicateInstanceCommandInput,
1540
1560
  context: __SerdeContext
1541
1561
  ) => Promise<__HttpRequest>;
1562
+ export declare const se_ResumeContactCommand: (
1563
+ input: ResumeContactCommandInput,
1564
+ context: __SerdeContext
1565
+ ) => Promise<__HttpRequest>;
1542
1566
  export declare const se_ResumeContactRecordingCommand: (
1543
1567
  input: ResumeContactRecordingCommandInput,
1544
1568
  context: __SerdeContext
@@ -1635,6 +1659,10 @@ export declare const se_SuspendContactRecordingCommand: (
1635
1659
  input: SuspendContactRecordingCommandInput,
1636
1660
  context: __SerdeContext
1637
1661
  ) => Promise<__HttpRequest>;
1662
+ export declare const se_TagContactCommand: (
1663
+ input: TagContactCommandInput,
1664
+ context: __SerdeContext
1665
+ ) => Promise<__HttpRequest>;
1638
1666
  export declare const se_TagResourceCommand: (
1639
1667
  input: TagResourceCommandInput,
1640
1668
  context: __SerdeContext
@@ -1643,6 +1671,10 @@ export declare const se_TransferContactCommand: (
1643
1671
  input: TransferContactCommandInput,
1644
1672
  context: __SerdeContext
1645
1673
  ) => Promise<__HttpRequest>;
1674
+ export declare const se_UntagContactCommand: (
1675
+ input: UntagContactCommandInput,
1676
+ context: __SerdeContext
1677
+ ) => Promise<__HttpRequest>;
1646
1678
  export declare const se_UntagResourceCommand: (
1647
1679
  input: UntagResourceCommandInput,
1648
1680
  context: __SerdeContext
@@ -2435,6 +2467,10 @@ export declare const de_MonitorContactCommand: (
2435
2467
  output: __HttpResponse,
2436
2468
  context: __SerdeContext
2437
2469
  ) => Promise<MonitorContactCommandOutput>;
2470
+ export declare const de_PauseContactCommand: (
2471
+ output: __HttpResponse,
2472
+ context: __SerdeContext
2473
+ ) => Promise<PauseContactCommandOutput>;
2438
2474
  export declare const de_PutUserStatusCommand: (
2439
2475
  output: __HttpResponse,
2440
2476
  context: __SerdeContext
@@ -2447,6 +2483,10 @@ export declare const de_ReplicateInstanceCommand: (
2447
2483
  output: __HttpResponse,
2448
2484
  context: __SerdeContext
2449
2485
  ) => Promise<ReplicateInstanceCommandOutput>;
2486
+ export declare const de_ResumeContactCommand: (
2487
+ output: __HttpResponse,
2488
+ context: __SerdeContext
2489
+ ) => Promise<ResumeContactCommandOutput>;
2450
2490
  export declare const de_ResumeContactRecordingCommand: (
2451
2491
  output: __HttpResponse,
2452
2492
  context: __SerdeContext
@@ -2543,6 +2583,10 @@ export declare const de_SuspendContactRecordingCommand: (
2543
2583
  output: __HttpResponse,
2544
2584
  context: __SerdeContext
2545
2585
  ) => Promise<SuspendContactRecordingCommandOutput>;
2586
+ export declare const de_TagContactCommand: (
2587
+ output: __HttpResponse,
2588
+ context: __SerdeContext
2589
+ ) => Promise<TagContactCommandOutput>;
2546
2590
  export declare const de_TagResourceCommand: (
2547
2591
  output: __HttpResponse,
2548
2592
  context: __SerdeContext
@@ -2551,6 +2595,10 @@ export declare const de_TransferContactCommand: (
2551
2595
  output: __HttpResponse,
2552
2596
  context: __SerdeContext
2553
2597
  ) => Promise<TransferContactCommandOutput>;
2598
+ export declare const de_UntagContactCommand: (
2599
+ output: __HttpResponse,
2600
+ context: __SerdeContext
2601
+ ) => Promise<UntagContactCommandOutput>;
2554
2602
  export declare const de_UntagResourceCommand: (
2555
2603
  output: __HttpResponse,
2556
2604
  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.475.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",