@aws-sdk/client-connect 3.798.0 → 3.801.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 (51) hide show
  1. package/dist-cjs/index.js +102 -3
  2. package/dist-cjs/runtimeConfig.js +1 -0
  3. package/dist-es/models/models_0.js +6 -0
  4. package/dist-es/models/models_1.js +20 -0
  5. package/dist-es/protocols/Aws_restJson1.js +67 -0
  6. package/dist-es/runtimeConfig.js +2 -1
  7. package/dist-types/commands/CreateContactCommand.d.ts +3 -2
  8. package/dist-types/commands/DeletePromptCommand.d.ts +1 -1
  9. package/dist-types/commands/DeletePushNotificationRegistrationCommand.d.ts +1 -2
  10. package/dist-types/commands/DescribeContactCommand.d.ts +46 -2
  11. package/dist-types/commands/GetCurrentMetricDataCommand.d.ts +2 -2
  12. package/dist-types/commands/GetMetricDataCommand.d.ts +2 -2
  13. package/dist-types/commands/GetMetricDataV2Command.d.ts +2 -2
  14. package/dist-types/commands/ListPhoneNumbersV2Command.d.ts +2 -1
  15. package/dist-types/commands/ListPredefinedAttributesCommand.d.ts +1 -1
  16. package/dist-types/commands/ListPromptsCommand.d.ts +1 -1
  17. package/dist-types/commands/ListQueueQuickConnectsCommand.d.ts +1 -2
  18. package/dist-types/commands/SuspendContactRecordingCommand.d.ts +3 -5
  19. package/dist-types/commands/UpdatePhoneNumberCommand.d.ts +2 -1
  20. package/dist-types/commands/UpdatePhoneNumberMetadataCommand.d.ts +1 -1
  21. package/dist-types/commands/UpdatePredefinedAttributeCommand.d.ts +1 -1
  22. package/dist-types/commands/UpdatePromptCommand.d.ts +1 -1
  23. package/dist-types/commands/UpdateQueueHoursOfOperationCommand.d.ts +1 -1
  24. package/dist-types/commands/UpdateQueueMaxContactsCommand.d.ts +1 -1
  25. package/dist-types/commands/UpdateQueueNameCommand.d.ts +1 -1
  26. package/dist-types/commands/UpdateQueueOutboundCallerConfigCommand.d.ts +1 -1
  27. package/dist-types/models/models_0.d.ts +68 -37
  28. package/dist-types/models/models_1.d.ts +426 -360
  29. package/dist-types/models/models_2.d.ts +225 -192
  30. package/dist-types/models/models_3.d.ts +225 -7
  31. package/dist-types/runtimeConfig.d.ts +1 -1
  32. package/dist-types/ts3.4/commands/DeletePromptCommand.d.ts +1 -1
  33. package/dist-types/ts3.4/commands/DeletePushNotificationRegistrationCommand.d.ts +4 -2
  34. package/dist-types/ts3.4/commands/ListPhoneNumbersV2Command.d.ts +2 -4
  35. package/dist-types/ts3.4/commands/ListPredefinedAttributesCommand.d.ts +1 -1
  36. package/dist-types/ts3.4/commands/ListPromptsCommand.d.ts +1 -1
  37. package/dist-types/ts3.4/commands/ListQueueQuickConnectsCommand.d.ts +4 -2
  38. package/dist-types/ts3.4/commands/UpdatePhoneNumberCommand.d.ts +2 -4
  39. package/dist-types/ts3.4/commands/UpdatePhoneNumberMetadataCommand.d.ts +1 -1
  40. package/dist-types/ts3.4/commands/UpdatePredefinedAttributeCommand.d.ts +1 -1
  41. package/dist-types/ts3.4/commands/UpdatePromptCommand.d.ts +1 -1
  42. package/dist-types/ts3.4/commands/UpdateQueueHoursOfOperationCommand.d.ts +1 -1
  43. package/dist-types/ts3.4/commands/UpdateQueueMaxContactsCommand.d.ts +1 -1
  44. package/dist-types/ts3.4/commands/UpdateQueueNameCommand.d.ts +1 -1
  45. package/dist-types/ts3.4/commands/UpdateQueueOutboundCallerConfigCommand.d.ts +1 -1
  46. package/dist-types/ts3.4/models/models_0.d.ts +18 -9
  47. package/dist-types/ts3.4/models/models_1.d.ts +62 -51
  48. package/dist-types/ts3.4/models/models_2.d.ts +51 -48
  49. package/dist-types/ts3.4/models/models_3.d.ts +56 -0
  50. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -4
  51. package/package.json +5 -5
package/dist-cjs/index.js CHANGED
@@ -309,6 +309,7 @@ __export(index_exports, {
309
309
  ListViewsCommand: () => ListViewsCommand,
310
310
  ListViewsResponseFilterSensitiveLog: () => ListViewsResponseFilterSensitiveLog,
311
311
  MaximumResultReturnedException: () => MaximumResultReturnedException,
312
+ MediaStreamType: () => MediaStreamType,
312
313
  MeetingFeatureStatus: () => MeetingFeatureStatus,
313
314
  MonitorCapability: () => MonitorCapability,
314
315
  MonitorContactCommand: () => MonitorContactCommand,
@@ -324,9 +325,11 @@ __export(index_exports, {
324
325
  OutputTypeNotFoundException: () => OutputTypeNotFoundException,
325
326
  OverrideDays: () => OverrideDays,
326
327
  ParticipantRole: () => ParticipantRole,
328
+ ParticipantState: () => ParticipantState,
327
329
  ParticipantTimerAction: () => ParticipantTimerAction,
328
330
  ParticipantTimerType: () => ParticipantTimerType,
329
331
  ParticipantTimerValue: () => ParticipantTimerValue,
332
+ ParticipantType: () => ParticipantType,
330
333
  PauseContactCommand: () => PauseContactCommand,
331
334
  PhoneNumberCountryCode: () => PhoneNumberCountryCode,
332
335
  PhoneNumberType: () => PhoneNumberType,
@@ -348,6 +351,7 @@ __export(index_exports, {
348
351
  RealTimeContactAnalysisSupportedChannel: () => RealTimeContactAnalysisSupportedChannel,
349
352
  RealTimeContactAnalysisTimeData: () => RealTimeContactAnalysisTimeData,
350
353
  RealtimeContactAnalysisSegment: () => RealtimeContactAnalysisSegment,
354
+ RecordingStatus: () => RecordingStatus,
351
355
  ReferenceStatus: () => ReferenceStatus,
352
356
  ReferenceSummary: () => ReferenceSummary,
353
357
  ReferenceType: () => ReferenceType,
@@ -425,6 +429,7 @@ __export(index_exports, {
425
429
  StartWebRTCContactRequestFilterSensitiveLog: () => StartWebRTCContactRequestFilterSensitiveLog,
426
430
  StartWebRTCContactResponseFilterSensitiveLog: () => StartWebRTCContactResponseFilterSensitiveLog,
427
431
  Statistic: () => Statistic,
432
+ Status: () => Status,
428
433
  StopContactCommand: () => StopContactCommand,
429
434
  StopContactRecordingCommand: () => StopContactRecordingCommand,
430
435
  StopContactStreamingCommand: () => StopContactStreamingCommand,
@@ -950,6 +955,12 @@ var ScreenShareCapability = {
950
955
  var VideoCapability = {
951
956
  SEND: "SEND"
952
957
  };
958
+ var ParticipantState = {
959
+ CONNECTED: "CONNECTED",
960
+ DISCONNECTED: "DISCONNECTED",
961
+ INITIAL: "INITIAL",
962
+ MISSED: "MISSED"
963
+ };
953
964
  var AgentStatusState = {
954
965
  DISABLED: "DISABLED",
955
966
  ENABLED: "ENABLED"
@@ -1435,8 +1446,8 @@ var RehydrationType = {
1435
1446
  FROM_SEGMENT: "FROM_SEGMENT"
1436
1447
  };
1437
1448
  var PredefinedAttributeValues;
1438
- ((PredefinedAttributeValues4) => {
1439
- PredefinedAttributeValues4.visit = /* @__PURE__ */ __name((value, visitor) => {
1449
+ ((PredefinedAttributeValues5) => {
1450
+ PredefinedAttributeValues5.visit = /* @__PURE__ */ __name((value, visitor) => {
1440
1451
  if (value.StringList !== void 0) return visitor.StringList(value.StringList);
1441
1452
  return visitor._(value.$unknown[0], value.$unknown[1]);
1442
1453
  }, "visit");
@@ -1707,6 +1718,26 @@ var AnsweringMachineDetectionStatus = {
1707
1718
  VOICEMAIL_BEEP: "VOICEMAIL_BEEP",
1708
1719
  VOICEMAIL_NO_BEEP: "VOICEMAIL_NO_BEEP"
1709
1720
  };
1721
+ var Status = {
1722
+ COMPLETE: "COMPLETE",
1723
+ DELETED: "DELETED",
1724
+ IN_PROGRESS: "IN_PROGRESS"
1725
+ };
1726
+ var MediaStreamType = {
1727
+ AUDIO: "AUDIO",
1728
+ VIDEO: "VIDEO"
1729
+ };
1730
+ var ParticipantType = {
1731
+ AGENT: "AGENT",
1732
+ ALL: "ALL",
1733
+ CUSTOMER: "CUSTOMER",
1734
+ MANAGER: "MANAGER",
1735
+ THIRDPARTY: "THIRDPARTY"
1736
+ };
1737
+ var RecordingStatus = {
1738
+ AVAILABLE: "AVAILABLE",
1739
+ DELETED: "DELETED"
1740
+ };
1710
1741
  var RoutingCriteriaStepStatus = {
1711
1742
  ACTIVE: "ACTIVE",
1712
1743
  EXPIRED: "EXPIRED",
@@ -11891,12 +11922,17 @@ var de_AgentContactReferenceList = /* @__PURE__ */ __name((output, context) => {
11891
11922
  }, "de_AgentContactReferenceList");
11892
11923
  var de_AgentInfo = /* @__PURE__ */ __name((output, context) => {
11893
11924
  return (0, import_smithy_client.take)(output, {
11925
+ AfterContactWorkDuration: import_smithy_client.expectInt32,
11926
+ AfterContactWorkEndTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "AfterContactWorkEndTimestamp"),
11927
+ AfterContactWorkStartTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "AfterContactWorkStartTimestamp"),
11928
+ AgentInitiatedHoldDuration: import_smithy_client.expectInt32,
11894
11929
  AgentPauseDurationInSeconds: import_smithy_client.expectInt32,
11895
11930
  Capabilities: import_smithy_client._json,
11896
11931
  ConnectedToAgentTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ConnectedToAgentTimestamp"),
11897
11932
  DeviceInfo: import_smithy_client._json,
11898
11933
  HierarchyGroups: import_smithy_client._json,
11899
- Id: import_smithy_client.expectString
11934
+ Id: import_smithy_client.expectString,
11935
+ StateTransitions: /* @__PURE__ */ __name((_) => de_StateTransitions(_, context), "StateTransitions")
11900
11936
  });
11901
11937
  }, "de_AgentInfo");
11902
11938
  var de_AgentQualityMetrics = /* @__PURE__ */ __name((output, context) => {
@@ -12035,16 +12071,20 @@ var de_Contact = /* @__PURE__ */ __name((output, context) => {
12035
12071
  AgentInfo: /* @__PURE__ */ __name((_) => de_AgentInfo(_, context), "AgentInfo"),
12036
12072
  AnsweringMachineDetectionStatus: import_smithy_client.expectString,
12037
12073
  Arn: import_smithy_client.expectString,
12074
+ Attributes: import_smithy_client._json,
12038
12075
  Campaign: import_smithy_client._json,
12039
12076
  Channel: import_smithy_client.expectString,
12040
12077
  ConnectedToSystemTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ConnectedToSystemTimestamp"),
12041
12078
  ContactAssociationId: import_smithy_client.expectString,
12079
+ ContactDetails: import_smithy_client._json,
12080
+ ContactEvaluations: /* @__PURE__ */ __name((_) => de_ContactEvaluations(_, context), "ContactEvaluations"),
12042
12081
  Customer: import_smithy_client._json,
12043
12082
  CustomerEndpoint: import_smithy_client._json,
12044
12083
  CustomerId: import_smithy_client.expectString,
12045
12084
  CustomerVoiceActivity: /* @__PURE__ */ __name((_) => de_CustomerVoiceActivity(_, context), "CustomerVoiceActivity"),
12046
12085
  Description: import_smithy_client.expectString,
12047
12086
  DisconnectDetails: import_smithy_client._json,
12087
+ DisconnectReason: import_smithy_client.expectString,
12048
12088
  DisconnectTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "DisconnectTimestamp"),
12049
12089
  Id: import_smithy_client.expectString,
12050
12090
  InitialContactId: import_smithy_client.expectString,
@@ -12059,6 +12099,7 @@ var de_Contact = /* @__PURE__ */ __name((output, context) => {
12059
12099
  QueueInfo: /* @__PURE__ */ __name((_) => de_QueueInfo(_, context), "QueueInfo"),
12060
12100
  QueuePriority: import_smithy_client.expectLong,
12061
12101
  QueueTimeAdjustmentSeconds: import_smithy_client.expectInt32,
12102
+ Recordings: /* @__PURE__ */ __name((_) => de_Recordings(_, context), "Recordings"),
12062
12103
  RelatedContactId: import_smithy_client.expectString,
12063
12104
  RoutingCriteria: /* @__PURE__ */ __name((_) => de_RoutingCriteria(_, context), "RoutingCriteria"),
12064
12105
  ScheduledTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ScheduledTimestamp"),
@@ -12070,6 +12111,26 @@ var de_Contact = /* @__PURE__ */ __name((output, context) => {
12070
12111
  WisdomInfo: import_smithy_client._json
12071
12112
  });
12072
12113
  }, "de_Contact");
12114
+ var de_ContactEvaluation = /* @__PURE__ */ __name((output, context) => {
12115
+ return (0, import_smithy_client.take)(output, {
12116
+ DeleteTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "DeleteTimestamp"),
12117
+ EndTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "EndTimestamp"),
12118
+ EvaluationArn: import_smithy_client.expectString,
12119
+ ExportLocation: import_smithy_client.expectString,
12120
+ FormId: import_smithy_client.expectString,
12121
+ StartTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartTimestamp"),
12122
+ Status: import_smithy_client.expectString
12123
+ });
12124
+ }, "de_ContactEvaluation");
12125
+ var de_ContactEvaluations = /* @__PURE__ */ __name((output, context) => {
12126
+ return Object.entries(output).reduce((acc, [key, value]) => {
12127
+ if (value === null) {
12128
+ return acc;
12129
+ }
12130
+ acc[key] = de_ContactEvaluation(value, context);
12131
+ return acc;
12132
+ }, {});
12133
+ }, "de_ContactEvaluations");
12073
12134
  var de_ContactFlow = /* @__PURE__ */ __name((output, context) => {
12074
12135
  return (0, import_smithy_client.take)(output, {
12075
12136
  Arn: import_smithy_client.expectString,
@@ -12833,6 +12894,26 @@ var de_RealTimeContactAnalysisTimeData = /* @__PURE__ */ __name((output, context
12833
12894
  }
12834
12895
  return { $unknown: Object.entries(output)[0] };
12835
12896
  }, "de_RealTimeContactAnalysisTimeData");
12897
+ var de_RecordingInfo = /* @__PURE__ */ __name((output, context) => {
12898
+ return (0, import_smithy_client.take)(output, {
12899
+ DeletionReason: import_smithy_client.expectString,
12900
+ FragmentStartNumber: import_smithy_client.expectString,
12901
+ FragmentStopNumber: import_smithy_client.expectString,
12902
+ Location: import_smithy_client.expectString,
12903
+ MediaStreamType: import_smithy_client.expectString,
12904
+ ParticipantType: import_smithy_client.expectString,
12905
+ StartTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartTimestamp"),
12906
+ Status: import_smithy_client.expectString,
12907
+ StopTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StopTimestamp"),
12908
+ StorageType: import_smithy_client.expectString
12909
+ });
12910
+ }, "de_RecordingInfo");
12911
+ var de_Recordings = /* @__PURE__ */ __name((output, context) => {
12912
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
12913
+ return de_RecordingInfo(entry, context);
12914
+ });
12915
+ return retVal;
12916
+ }, "de_Recordings");
12836
12917
  var de_RoutingCriteria = /* @__PURE__ */ __name((output, context) => {
12837
12918
  return (0, import_smithy_client.take)(output, {
12838
12919
  ActivationTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ActivationTimestamp"),
@@ -13008,6 +13089,19 @@ var de_SlaFieldValueUnionList = /* @__PURE__ */ __name((output, context) => {
13008
13089
  });
13009
13090
  return retVal;
13010
13091
  }, "de_SlaFieldValueUnionList");
13092
+ var de_StateTransition = /* @__PURE__ */ __name((output, context) => {
13093
+ return (0, import_smithy_client.take)(output, {
13094
+ State: import_smithy_client.expectString,
13095
+ StateEndTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StateEndTimestamp"),
13096
+ StateStartTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StateStartTimestamp")
13097
+ });
13098
+ }, "de_StateTransition");
13099
+ var de_StateTransitions = /* @__PURE__ */ __name((output, context) => {
13100
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
13101
+ return de_StateTransition(entry, context);
13102
+ });
13103
+ return retVal;
13104
+ }, "de_StateTransitions");
13011
13105
  var de_Step = /* @__PURE__ */ __name((output, context) => {
13012
13106
  return (0, import_smithy_client.take)(output, {
13013
13107
  Expiry: /* @__PURE__ */ __name((_) => de_Expiry(_, context), "Expiry"),
@@ -18401,6 +18495,7 @@ var paginateSearchVocabularies = (0, import_core.createPaginator)(ConnectClient,
18401
18495
  ContactInitiationMethod,
18402
18496
  ScreenShareCapability,
18403
18497
  VideoCapability,
18498
+ ParticipantState,
18404
18499
  AgentStatusState,
18405
18500
  AgentStatusType,
18406
18501
  StringComparisonType,
@@ -18483,6 +18578,10 @@ var paginateSearchVocabularies = (0, import_core.createPaginator)(ConnectClient,
18483
18578
  CreateViewResponseFilterSensitiveLog,
18484
18579
  CreateViewVersionResponseFilterSensitiveLog,
18485
18580
  AnsweringMachineDetectionStatus,
18581
+ Status,
18582
+ MediaStreamType,
18583
+ ParticipantType,
18584
+ RecordingStatus,
18486
18585
  RoutingCriteriaStepStatus,
18487
18586
  EvaluationAnswerData,
18488
18587
  EvaluationStatus,
@@ -29,6 +29,7 @@ const getRuntimeConfig = (config) => {
29
29
  ...config,
30
30
  runtime: "node",
31
31
  defaultsMode,
32
+ authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, profileConfig),
32
33
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
33
34
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
34
35
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
@@ -136,6 +136,12 @@ export const ScreenShareCapability = {
136
136
  export const VideoCapability = {
137
137
  SEND: "SEND",
138
138
  };
139
+ export const ParticipantState = {
140
+ CONNECTED: "CONNECTED",
141
+ DISCONNECTED: "DISCONNECTED",
142
+ INITIAL: "INITIAL",
143
+ MISSED: "MISSED",
144
+ };
139
145
  export const AgentStatusState = {
140
146
  DISABLED: "DISABLED",
141
147
  ENABLED: "ENABLED",
@@ -17,6 +17,26 @@ export const AnsweringMachineDetectionStatus = {
17
17
  VOICEMAIL_BEEP: "VOICEMAIL_BEEP",
18
18
  VOICEMAIL_NO_BEEP: "VOICEMAIL_NO_BEEP",
19
19
  };
20
+ export const Status = {
21
+ COMPLETE: "COMPLETE",
22
+ DELETED: "DELETED",
23
+ IN_PROGRESS: "IN_PROGRESS",
24
+ };
25
+ export const MediaStreamType = {
26
+ AUDIO: "AUDIO",
27
+ VIDEO: "VIDEO",
28
+ };
29
+ export const ParticipantType = {
30
+ AGENT: "AGENT",
31
+ ALL: "ALL",
32
+ CUSTOMER: "CUSTOMER",
33
+ MANAGER: "MANAGER",
34
+ THIRDPARTY: "THIRDPARTY",
35
+ };
36
+ export const RecordingStatus = {
37
+ AVAILABLE: "AVAILABLE",
38
+ DELETED: "DELETED",
39
+ };
20
40
  export const RoutingCriteriaStepStatus = {
21
41
  ACTIVE: "ACTIVE",
22
42
  EXPIRED: "EXPIRED",
@@ -8850,12 +8850,17 @@ const de_AgentContactReferenceList = (output, context) => {
8850
8850
  };
8851
8851
  const de_AgentInfo = (output, context) => {
8852
8852
  return take(output, {
8853
+ AfterContactWorkDuration: __expectInt32,
8854
+ AfterContactWorkEndTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
8855
+ AfterContactWorkStartTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
8856
+ AgentInitiatedHoldDuration: __expectInt32,
8853
8857
  AgentPauseDurationInSeconds: __expectInt32,
8854
8858
  Capabilities: _json,
8855
8859
  ConnectedToAgentTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
8856
8860
  DeviceInfo: _json,
8857
8861
  HierarchyGroups: _json,
8858
8862
  Id: __expectString,
8863
+ StateTransitions: (_) => de_StateTransitions(_, context),
8859
8864
  });
8860
8865
  };
8861
8866
  const de_AgentQualityMetrics = (output, context) => {
@@ -9002,16 +9007,20 @@ const de_Contact = (output, context) => {
9002
9007
  AgentInfo: (_) => de_AgentInfo(_, context),
9003
9008
  AnsweringMachineDetectionStatus: __expectString,
9004
9009
  Arn: __expectString,
9010
+ Attributes: _json,
9005
9011
  Campaign: _json,
9006
9012
  Channel: __expectString,
9007
9013
  ConnectedToSystemTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
9008
9014
  ContactAssociationId: __expectString,
9015
+ ContactDetails: _json,
9016
+ ContactEvaluations: (_) => de_ContactEvaluations(_, context),
9009
9017
  Customer: _json,
9010
9018
  CustomerEndpoint: _json,
9011
9019
  CustomerId: __expectString,
9012
9020
  CustomerVoiceActivity: (_) => de_CustomerVoiceActivity(_, context),
9013
9021
  Description: __expectString,
9014
9022
  DisconnectDetails: _json,
9023
+ DisconnectReason: __expectString,
9015
9024
  DisconnectTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
9016
9025
  Id: __expectString,
9017
9026
  InitialContactId: __expectString,
@@ -9026,6 +9035,7 @@ const de_Contact = (output, context) => {
9026
9035
  QueueInfo: (_) => de_QueueInfo(_, context),
9027
9036
  QueuePriority: __expectLong,
9028
9037
  QueueTimeAdjustmentSeconds: __expectInt32,
9038
+ Recordings: (_) => de_Recordings(_, context),
9029
9039
  RelatedContactId: __expectString,
9030
9040
  RoutingCriteria: (_) => de_RoutingCriteria(_, context),
9031
9041
  ScheduledTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -9037,6 +9047,26 @@ const de_Contact = (output, context) => {
9037
9047
  WisdomInfo: _json,
9038
9048
  });
9039
9049
  };
9050
+ const de_ContactEvaluation = (output, context) => {
9051
+ return take(output, {
9052
+ DeleteTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
9053
+ EndTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
9054
+ EvaluationArn: __expectString,
9055
+ ExportLocation: __expectString,
9056
+ FormId: __expectString,
9057
+ StartTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
9058
+ Status: __expectString,
9059
+ });
9060
+ };
9061
+ const de_ContactEvaluations = (output, context) => {
9062
+ return Object.entries(output).reduce((acc, [key, value]) => {
9063
+ if (value === null) {
9064
+ return acc;
9065
+ }
9066
+ acc[key] = de_ContactEvaluation(value, context);
9067
+ return acc;
9068
+ }, {});
9069
+ };
9040
9070
  const de_ContactFlow = (output, context) => {
9041
9071
  return take(output, {
9042
9072
  Arn: __expectString,
@@ -9854,6 +9884,28 @@ const de_RealTimeContactAnalysisTimeData = (output, context) => {
9854
9884
  }
9855
9885
  return { $unknown: Object.entries(output)[0] };
9856
9886
  };
9887
+ const de_RecordingInfo = (output, context) => {
9888
+ return take(output, {
9889
+ DeletionReason: __expectString,
9890
+ FragmentStartNumber: __expectString,
9891
+ FragmentStopNumber: __expectString,
9892
+ Location: __expectString,
9893
+ MediaStreamType: __expectString,
9894
+ ParticipantType: __expectString,
9895
+ StartTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
9896
+ Status: __expectString,
9897
+ StopTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
9898
+ StorageType: __expectString,
9899
+ });
9900
+ };
9901
+ const de_Recordings = (output, context) => {
9902
+ const retVal = (output || [])
9903
+ .filter((e) => e != null)
9904
+ .map((entry) => {
9905
+ return de_RecordingInfo(entry, context);
9906
+ });
9907
+ return retVal;
9908
+ };
9857
9909
  const de_RoutingCriteria = (output, context) => {
9858
9910
  return take(output, {
9859
9911
  ActivationTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -10043,6 +10095,21 @@ const de_SlaFieldValueUnionList = (output, context) => {
10043
10095
  });
10044
10096
  return retVal;
10045
10097
  };
10098
+ const de_StateTransition = (output, context) => {
10099
+ return take(output, {
10100
+ State: __expectString,
10101
+ StateEndTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
10102
+ StateStartTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
10103
+ });
10104
+ };
10105
+ const de_StateTransitions = (output, context) => {
10106
+ const retVal = (output || [])
10107
+ .filter((e) => e != null)
10108
+ .map((entry) => {
10109
+ return de_StateTransition(entry, context);
10110
+ });
10111
+ return retVal;
10112
+ };
10046
10113
  const de_Step = (output, context) => {
10047
10114
  return take(output, {
10048
10115
  Expiry: (_) => de_Expiry(_, context),
@@ -1,5 +1,5 @@
1
1
  import packageInfo from "../package.json";
2
- import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
2
+ import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
3
3
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
4
4
  import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node";
5
5
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
@@ -25,6 +25,7 @@ export const getRuntimeConfig = (config) => {
25
25
  ...config,
26
26
  runtime: "node",
27
27
  defaultsMode,
28
+ authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, profileConfig),
28
29
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
29
30
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
30
31
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
@@ -29,8 +29,9 @@ declare const CreateContactCommand_base: {
29
29
  };
30
30
  /**
31
31
  * <important>
32
- * <p>Only the EMAIL and VOICE channels are supported. The supported initiation methods for EMAIL are: OUTBOUND,
33
- * AGENT_REPLY, and FLOW. For VOICE the supported initiation methods are TRANSFER and the subtype connect:ExternalAudio. </p>
32
+ * <p>Only the EMAIL and VOICE channels are supported. The supported initiation methods for EMAIL
33
+ * are: OUTBOUND, AGENT_REPLY, and FLOW. For VOICE the supported initiation methods are TRANSFER
34
+ * and the subtype connect:ExternalAudio. </p>
34
35
  * </important>
35
36
  * <p>Creates a new EMAIL or VOICE contact. </p>
36
37
  * @example
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
4
- import { DeletePromptRequest } from "../models/models_0";
4
+ import { DeletePromptRequest } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,8 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
4
- import { DeletePushNotificationRegistrationRequest } from "../models/models_0";
5
- import { DeletePushNotificationRegistrationResponse } from "../models/models_1";
4
+ import { DeletePushNotificationRegistrationRequest, DeletePushNotificationRegistrationResponse } from "../models/models_1";
6
5
  /**
7
6
  * @public
8
7
  */
@@ -34,8 +34,8 @@ declare const DescribeContactCommand_base: {
34
34
  * <ul>
35
35
  * <li>
36
36
  * <p>
37
- * <code>CustomerEndpoint</code> and <code>SystemEndpoint</code> are only populated for
38
- * EMAIL contacts. </p>
37
+ * <code>SystemEndpoint</code> is not populated for contacts with initiation method of
38
+ * MONITOR, QUEUE_TRANSFER, or CALLBACK</p>
39
39
  * </li>
40
40
  * <li>
41
41
  * <p>Contact information remains available in Amazon Connect for 24 months from the
@@ -101,6 +101,17 @@ declare const DescribeContactCommand_base: {
101
101
  * // Video: "SEND",
102
102
  * // ScreenShare: "SEND",
103
103
  * // },
104
+ * // AfterContactWorkDuration: Number("int"),
105
+ * // AfterContactWorkStartTimestamp: new Date("TIMESTAMP"),
106
+ * // AfterContactWorkEndTimestamp: new Date("TIMESTAMP"),
107
+ * // AgentInitiatedHoldDuration: Number("int"),
108
+ * // StateTransitions: [ // StateTransitions
109
+ * // { // StateTransition
110
+ * // State: "INITIAL" || "CONNECTED" || "DISCONNECTED" || "MISSED",
111
+ * // StateStartTimestamp: new Date("TIMESTAMP"),
112
+ * // StateEndTimestamp: new Date("TIMESTAMP"),
113
+ * // },
114
+ * // ],
104
115
  * // },
105
116
  * // InitiationTimestamp: new Date("TIMESTAMP"),
106
117
  * // DisconnectTimestamp: new Date("TIMESTAMP"),
@@ -296,6 +307,39 @@ declare const DescribeContactCommand_base: {
296
307
  * // ValueInteger: Number("int"),
297
308
  * // },
298
309
  * // },
310
+ * // Recordings: [ // Recordings
311
+ * // { // RecordingInfo
312
+ * // StorageType: "S3" || "KINESIS_VIDEO_STREAM" || "KINESIS_STREAM" || "KINESIS_FIREHOSE",
313
+ * // Location: "STRING_VALUE",
314
+ * // MediaStreamType: "AUDIO" || "VIDEO",
315
+ * // ParticipantType: "ALL" || "MANAGER" || "AGENT" || "CUSTOMER" || "THIRDPARTY",
316
+ * // FragmentStartNumber: "STRING_VALUE",
317
+ * // FragmentStopNumber: "STRING_VALUE",
318
+ * // StartTimestamp: new Date("TIMESTAMP"),
319
+ * // StopTimestamp: new Date("TIMESTAMP"),
320
+ * // Status: "AVAILABLE" || "DELETED",
321
+ * // DeletionReason: "STRING_VALUE",
322
+ * // },
323
+ * // ],
324
+ * // DisconnectReason: "STRING_VALUE",
325
+ * // ContactEvaluations: { // ContactEvaluations
326
+ * // "<keys>": { // ContactEvaluation
327
+ * // FormId: "STRING_VALUE",
328
+ * // EvaluationArn: "STRING_VALUE",
329
+ * // Status: "COMPLETE" || "IN_PROGRESS" || "DELETED",
330
+ * // StartTimestamp: new Date("TIMESTAMP"),
331
+ * // EndTimestamp: new Date("TIMESTAMP"),
332
+ * // DeleteTimestamp: new Date("TIMESTAMP"),
333
+ * // ExportLocation: "STRING_VALUE",
334
+ * // },
335
+ * // },
336
+ * // ContactDetails: { // ContactDetails
337
+ * // Name: "STRING_VALUE",
338
+ * // Description: "STRING_VALUE",
339
+ * // },
340
+ * // Attributes: { // Attributes
341
+ * // "<keys>": "STRING_VALUE",
342
+ * // },
299
343
  * // },
300
344
  * // };
301
345
  *
@@ -28,8 +28,8 @@ declare const GetCurrentMetricDataCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <p>Gets the real-time metric data from the specified Amazon Connect instance.</p>
31
- * <p>For a description of each metric, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html">Real-time Metrics
32
- * Definitions</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
31
+ * <p>For a description of each metric, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html">Metrics definitions</a> in the
32
+ * <i>Amazon Connect Administrator Guide</i>.</p>
33
33
  * @example
34
34
  * Use a bare-bones client and the command you need to make an API call.
35
35
  * ```javascript
@@ -28,8 +28,8 @@ declare const GetMetricDataCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <p>Gets historical metric data from the specified Amazon Connect instance.</p>
31
- * <p>For a description of each historical metric, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html">Historical Metrics
32
- * Definitions</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
31
+ * <p>For a description of each historical metric, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html">Metrics definitions</a> in the
32
+ * <i>Amazon Connect Administrator Guide</i>.</p>
33
33
  * <note>
34
34
  * <p>We recommend using the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_GetMetricDataV2.html">GetMetricDataV2</a> API. It
35
35
  * provides more flexibility, features, and the ability to query longer time ranges than
@@ -35,8 +35,8 @@ declare const GetMetricDataV2Command_base: {
35
35
  * hierarchy levels. It can retrieve historical data for the last 3 months, at varying intervals. It
36
36
  * does not support agent queues.</p>
37
37
  * <p>For a description of the historical metrics that are supported by
38
- * <code>GetMetricDataV2</code> and <code>GetMetricData</code>, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html">Historical metrics
39
- * definitions</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
38
+ * <code>GetMetricDataV2</code> and <code>GetMetricData</code>, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html">Metrics definitions</a> in the
39
+ * <i>Amazon Connect Administrator Guide</i>.</p>
40
40
  * @example
41
41
  * Use a bare-bones client and the command you need to make an API call.
42
42
  * ```javascript
@@ -1,7 +1,8 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
4
- import { ListPhoneNumbersV2Request, ListPhoneNumbersV2Response } from "../models/models_1";
4
+ import { ListPhoneNumbersV2Request } from "../models/models_1";
5
+ import { ListPhoneNumbersV2Response } from "../models/models_2";
5
6
  /**
6
7
  * @public
7
8
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
4
- import { ListPredefinedAttributesRequest, ListPredefinedAttributesResponse } from "../models/models_1";
4
+ import { ListPredefinedAttributesRequest, ListPredefinedAttributesResponse } from "../models/models_2";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
4
- import { ListPromptsRequest, ListPromptsResponse } from "../models/models_1";
4
+ import { ListPromptsRequest, ListPromptsResponse } from "../models/models_2";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,8 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
4
- import { ListQueueQuickConnectsRequest } from "../models/models_1";
5
- import { ListQueueQuickConnectsResponse } from "../models/models_2";
4
+ import { ListQueueQuickConnectsRequest, ListQueueQuickConnectsResponse } from "../models/models_2";
6
5
  /**
7
6
  * @public
8
7
  */
@@ -30,11 +30,9 @@ declare const SuspendContactRecordingCommand_base: {
30
30
  * <p>When a contact is being recorded, this API suspends recording whatever is selected in the
31
31
  * flow configuration: call (IVR or agent), screen, or both. If only call recording or only screen
32
32
  * recording is enabled, then it would be suspended. For example, you might suspend the screen
33
- * recording while collecting sensitive information, such as a credit card number. Then use
34
- * <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_ResumeContactRecording.html">ResumeContactRecording</a>
35
- * to restart recording the screen.</p>
36
- * <p>The period of time that the recording is suspended is filled with silence in the final recording.
37
- * </p>
33
+ * recording while collecting sensitive information, such as a credit card number. Then use <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_ResumeContactRecording.html">ResumeContactRecording</a> to restart recording the screen.</p>
34
+ * <p>The period of time that the recording is suspended is filled with silence in the final
35
+ * recording. </p>
38
36
  * <p> Voice (IVR, agent) and screen recordings are supported.</p>
39
37
  * @example
40
38
  * Use a bare-bones client and the command you need to make an API call.
@@ -1,7 +1,8 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
4
- import { UpdatePhoneNumberRequest, UpdatePhoneNumberResponse } from "../models/models_2";
4
+ import { UpdatePhoneNumberRequest } from "../models/models_2";
5
+ import { UpdatePhoneNumberResponse } from "../models/models_3";
5
6
  /**
6
7
  * @public
7
8
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
4
- import { UpdatePhoneNumberMetadataRequest } from "../models/models_2";
4
+ import { UpdatePhoneNumberMetadataRequest } from "../models/models_3";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
4
- import { UpdatePredefinedAttributeRequest } from "../models/models_2";
4
+ import { UpdatePredefinedAttributeRequest } from "../models/models_3";
5
5
  /**
6
6
  * @public
7
7
  */