@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
@@ -153,9 +153,11 @@ import { ListUsersCommand } from "./commands/ListUsersCommand";
153
153
  import { ListViewsCommand } from "./commands/ListViewsCommand";
154
154
  import { ListViewVersionsCommand, } from "./commands/ListViewVersionsCommand";
155
155
  import { MonitorContactCommand, } from "./commands/MonitorContactCommand";
156
+ import { PauseContactCommand, } from "./commands/PauseContactCommand";
156
157
  import { PutUserStatusCommand, } from "./commands/PutUserStatusCommand";
157
158
  import { ReleasePhoneNumberCommand, } from "./commands/ReleasePhoneNumberCommand";
158
159
  import { ReplicateInstanceCommand, } from "./commands/ReplicateInstanceCommand";
160
+ import { ResumeContactCommand, } from "./commands/ResumeContactCommand";
159
161
  import { ResumeContactRecordingCommand, } from "./commands/ResumeContactRecordingCommand";
160
162
  import { SearchAvailablePhoneNumbersCommand, } from "./commands/SearchAvailablePhoneNumbersCommand";
161
163
  import { SearchHoursOfOperationsCommand, } from "./commands/SearchHoursOfOperationsCommand";
@@ -180,8 +182,10 @@ import { StopContactRecordingCommand, } from "./commands/StopContactRecordingCom
180
182
  import { StopContactStreamingCommand, } from "./commands/StopContactStreamingCommand";
181
183
  import { SubmitContactEvaluationCommand, } from "./commands/SubmitContactEvaluationCommand";
182
184
  import { SuspendContactRecordingCommand, } from "./commands/SuspendContactRecordingCommand";
185
+ import { TagContactCommand } from "./commands/TagContactCommand";
183
186
  import { TagResourceCommand } from "./commands/TagResourceCommand";
184
187
  import { TransferContactCommand, } from "./commands/TransferContactCommand";
188
+ import { UntagContactCommand, } from "./commands/UntagContactCommand";
185
189
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
186
190
  import { UpdateAgentStatusCommand, } from "./commands/UpdateAgentStatusCommand";
187
191
  import { UpdateContactAttributesCommand, } from "./commands/UpdateContactAttributesCommand";
@@ -382,9 +386,11 @@ const commands = {
382
386
  ListViewsCommand,
383
387
  ListViewVersionsCommand,
384
388
  MonitorContactCommand,
389
+ PauseContactCommand,
385
390
  PutUserStatusCommand,
386
391
  ReleasePhoneNumberCommand,
387
392
  ReplicateInstanceCommand,
393
+ ResumeContactCommand,
388
394
  ResumeContactRecordingCommand,
389
395
  SearchAvailablePhoneNumbersCommand,
390
396
  SearchHoursOfOperationsCommand,
@@ -409,8 +415,10 @@ const commands = {
409
415
  StopContactStreamingCommand,
410
416
  SubmitContactEvaluationCommand,
411
417
  SuspendContactRecordingCommand,
418
+ TagContactCommand,
412
419
  TagResourceCommand,
413
420
  TransferContactCommand,
421
+ UntagContactCommand,
414
422
  UntagResourceCommand,
415
423
  UpdateAgentStatusCommand,
416
424
  UpdateContactCommand,
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_PauseContactCommand, se_PauseContactCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class PauseContactCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, PauseContactCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "ConnectClient";
26
+ const commandName = "PauseContactCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "AmazonConnectService",
35
+ operation: "PauseContact",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_PauseContactCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_PauseContactCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_ResumeContactCommand, se_ResumeContactCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ResumeContactCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, ResumeContactCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "ConnectClient";
26
+ const commandName = "ResumeContactCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "AmazonConnectService",
35
+ operation: "ResumeContact",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_ResumeContactCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_ResumeContactCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_TagContactCommand, se_TagContactCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class TagContactCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, TagContactCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "ConnectClient";
26
+ const commandName = "TagContactCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "AmazonConnectService",
35
+ operation: "TagContact",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_TagContactCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_TagContactCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_UntagContactCommand, se_UntagContactCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class UntagContactCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, UntagContactCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "ConnectClient";
26
+ const commandName = "UntagContactCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "AmazonConnectService",
35
+ operation: "UntagContact",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_UntagContactCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_UntagContactCommand(output, context);
46
+ }
47
+ }
@@ -152,9 +152,11 @@ export * from "./ListUsersCommand";
152
152
  export * from "./ListViewVersionsCommand";
153
153
  export * from "./ListViewsCommand";
154
154
  export * from "./MonitorContactCommand";
155
+ export * from "./PauseContactCommand";
155
156
  export * from "./PutUserStatusCommand";
156
157
  export * from "./ReleasePhoneNumberCommand";
157
158
  export * from "./ReplicateInstanceCommand";
159
+ export * from "./ResumeContactCommand";
158
160
  export * from "./ResumeContactRecordingCommand";
159
161
  export * from "./SearchAvailablePhoneNumbersCommand";
160
162
  export * from "./SearchHoursOfOperationsCommand";
@@ -179,8 +181,10 @@ export * from "./StopContactRecordingCommand";
179
181
  export * from "./StopContactStreamingCommand";
180
182
  export * from "./SubmitContactEvaluationCommand";
181
183
  export * from "./SuspendContactRecordingCommand";
184
+ export * from "./TagContactCommand";
182
185
  export * from "./TagResourceCommand";
183
186
  export * from "./TransferContactCommand";
187
+ export * from "./UntagContactCommand";
184
188
  export * from "./UntagResourceCommand";
185
189
  export * from "./UpdateAgentStatusCommand";
186
190
  export * from "./UpdateContactAttributesCommand";
@@ -15,9 +15,12 @@ export class AccessDeniedException extends __BaseException {
15
15
  }
16
16
  export const ActionType = {
17
17
  ASSIGN_CONTACT_CATEGORY: "ASSIGN_CONTACT_CATEGORY",
18
+ CREATE_CASE: "CREATE_CASE",
18
19
  CREATE_TASK: "CREATE_TASK",
20
+ END_ASSOCIATED_TASKS: "END_ASSOCIATED_TASKS",
19
21
  GENERATE_EVENTBRIDGE_EVENT: "GENERATE_EVENTBRIDGE_EVENT",
20
22
  SEND_NOTIFICATION: "SEND_NOTIFICATION",
23
+ UPDATE_CASE: "UPDATE_CASE",
21
24
  };
22
25
  export class InternalServiceException extends __BaseException {
23
26
  constructor(opts) {
@@ -385,6 +388,7 @@ export const IntegrationType = {
385
388
  WISDOM_QUICK_RESPONSES: "WISDOM_QUICK_RESPONSES",
386
389
  };
387
390
  export const SourceType = {
391
+ CASES: "CASES",
388
392
  SALESFORCE: "SALESFORCE",
389
393
  ZENDESK: "ZENDESK",
390
394
  };
@@ -426,6 +430,8 @@ export const RulePublishStatus = {
426
430
  PUBLISHED: "PUBLISHED",
427
431
  };
428
432
  export const EventSourceName = {
433
+ OnCaseCreate: "OnCaseCreate",
434
+ OnCaseUpdate: "OnCaseUpdate",
429
435
  OnContactEvaluationSubmit: "OnContactEvaluationSubmit",
430
436
  OnMetricDataUpdate: "OnMetricDataUpdate",
431
437
  OnPostCallAnalysisAvailable: "OnPostCallAnalysisAvailable",
@@ -864,10 +870,6 @@ export const PhoneNumberType = {
864
870
  TOLL_FREE: "TOLL_FREE",
865
871
  UIFN: "UIFN",
866
872
  };
867
- export const QueueStatus = {
868
- DISABLED: "DISABLED",
869
- ENABLED: "ENABLED",
870
- };
871
873
  export const CreateInstanceRequestFilterSensitiveLog = (obj) => ({
872
874
  ...obj,
873
875
  ...(obj.InstanceAlias && { InstanceAlias: SENSITIVE_STRING }),
@@ -1,6 +1,10 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { ConnectServiceException as __BaseException } from "./ConnectServiceException";
3
3
  import { ViewFilterSensitiveLog, } from "./models_0";
4
+ export const QueueStatus = {
5
+ DISABLED: "DISABLED",
6
+ ENABLED: "ENABLED",
7
+ };
4
8
  export const TrafficDistributionGroupStatus = {
5
9
  ACTIVE: "ACTIVE",
6
10
  CREATION_FAILED: "CREATION_FAILED",
@@ -191,6 +195,19 @@ export class OutputTypeNotFoundException extends __BaseException {
191
195
  this.Message = opts.Message;
192
196
  }
193
197
  }
198
+ export class ConflictException extends __BaseException {
199
+ constructor(opts) {
200
+ super({
201
+ name: "ConflictException",
202
+ $fault: "client",
203
+ ...opts,
204
+ });
205
+ this.name = "ConflictException";
206
+ this.$fault = "client";
207
+ Object.setPrototypeOf(this, ConflictException.prototype);
208
+ this.Message = opts.Message;
209
+ }
210
+ }
194
211
  export const StringComparisonType = {
195
212
  CONTAINS: "CONTAINS",
196
213
  EXACT: "EXACT",
@@ -216,11 +233,6 @@ export const HierarchyGroupMatchType = {
216
233
  EXACT: "EXACT",
217
234
  WITH_CHILD_GROUPS: "WITH_CHILD_GROUPS",
218
235
  };
219
- export const ChatEventType = {
220
- DISCONNECT: "DISCONNECT",
221
- EVENT: "EVENT",
222
- MESSAGE: "MESSAGE",
223
- };
224
236
  export const DescribeViewResponseFilterSensitiveLog = (obj) => ({
225
237
  ...obj,
226
238
  ...(obj.View && { View: ViewFilterSensitiveLog(obj.View) }),
@@ -1,6 +1,11 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { ConnectServiceException as __BaseException } from "./ConnectServiceException";
3
3
  import { ViewFilterSensitiveLog, ViewInputContentFilterSensitiveLog, } from "./models_0";
4
+ export const ChatEventType = {
5
+ DISCONNECT: "DISCONNECT",
6
+ EVENT: "EVENT",
7
+ MESSAGE: "MESSAGE",
8
+ };
4
9
  export const VoiceRecordingTrack = {
5
10
  ALL: "ALL",
6
11
  FROM_AGENT: "FROM_AGENT",