@aws-sdk/client-connect 3.251.0 → 3.254.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.
- package/dist-cjs/models/models_1.js +14 -5
- package/dist-cjs/protocols/Aws_restJson1.js +17 -4
- package/dist-es/models/models_1.js +8 -0
- package/dist-es/protocols/Aws_restJson1.js +17 -4
- package/dist-types/Connect.d.ts +7 -7
- package/dist-types/ConnectClient.d.ts +3 -3
- package/dist-types/commands/ClaimPhoneNumberCommand.d.ts +2 -2
- package/dist-types/commands/CreateRuleCommand.d.ts +2 -2
- package/dist-types/commands/DismissUserContactCommand.d.ts +1 -1
- package/dist-types/commands/UpdateRuleCommand.d.ts +2 -2
- package/dist-types/models/models_0.d.ts +22 -15
- package/dist-types/models/models_1.d.ts +67 -11
- package/dist-types/ts3.4/ConnectClient.d.ts +2 -1
- package/dist-types/ts3.4/models/models_0.d.ts +1 -0
- package/dist-types/ts3.4/models/models_1.d.ts +13 -0
- package/package.json +32 -32
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.SearchUsersRequestFilterSensitiveLog = exports.SearchSecurityProfilesRequestFilterSensitiveLog = exports.SearchRoutingProfilesRequestFilterSensitiveLog = exports.SearchQueuesRequestFilterSensitiveLog = exports.UserSearchCriteriaFilterSensitiveLog = exports.SecurityProfileSearchCriteriaFilterSensitiveLog = exports.RoutingProfileSearchCriteriaFilterSensitiveLog = exports.QueueSearchCriteriaFilterSensitiveLog = exports.UpdateUserSecurityProfilesRequestFilterSensitiveLog = exports.UpdateUserRoutingProfileRequestFilterSensitiveLog = exports.UpdateUserPhoneConfigRequestFilterSensitiveLog = void 0;
|
|
3
|
+
exports.ListPromptsRequestFilterSensitiveLog = exports.ListPhoneNumbersV2ResponseFilterSensitiveLog = exports.ListPhoneNumbersSummaryFilterSensitiveLog = exports.ListPhoneNumbersV2RequestFilterSensitiveLog = exports.ListPhoneNumbersResponseFilterSensitiveLog = exports.PhoneNumberSummaryFilterSensitiveLog = exports.ListPhoneNumbersRequestFilterSensitiveLog = exports.ListLexBotsResponseFilterSensitiveLog = exports.ListLexBotsRequestFilterSensitiveLog = exports.ListLambdaFunctionsResponseFilterSensitiveLog = exports.ListLambdaFunctionsRequestFilterSensitiveLog = exports.ListIntegrationAssociationsResponseFilterSensitiveLog = exports.IntegrationAssociationSummaryFilterSensitiveLog = exports.ListIntegrationAssociationsRequestFilterSensitiveLog = exports.ListInstanceStorageConfigsResponseFilterSensitiveLog = exports.ListInstanceStorageConfigsRequestFilterSensitiveLog = exports.ListInstancesResponseFilterSensitiveLog = exports.InstanceSummaryFilterSensitiveLog = exports.ListInstancesRequestFilterSensitiveLog = exports.ListInstanceAttributesResponseFilterSensitiveLog = exports.ListInstanceAttributesRequestFilterSensitiveLog = exports.ListHoursOfOperationsResponseFilterSensitiveLog = exports.HoursOfOperationSummaryFilterSensitiveLog = exports.ListHoursOfOperationsRequestFilterSensitiveLog = exports.ListDefaultVocabulariesResponseFilterSensitiveLog = exports.DefaultVocabularyFilterSensitiveLog = exports.ListDefaultVocabulariesRequestFilterSensitiveLog = exports.ListContactReferencesResponseFilterSensitiveLog = exports.ReferenceSummaryFilterSensitiveLog = exports.UrlReferenceFilterSensitiveLog = exports.StringReferenceFilterSensitiveLog = exports.NumberReferenceFilterSensitiveLog = exports.EmailReferenceFilterSensitiveLog = exports.DateReferenceFilterSensitiveLog = exports.UpdateParticipantRoleConfigChannelInfo = exports.ParticipantTimerValue = exports.ParticipantTimerAction = exports.ParticipantTimerType = exports.TimerEligibleParticipantRoles = exports.ContactNotFoundException = exports.TrafficType = exports.OutboundContactNotPermittedException = exports.DestinationNotAllowedException = exports.VoiceRecordingTrack = exports.RehydrationType = exports.HierarchyGroupMatchType = exports.StringComparisonType = exports.SearchableQueueType = exports.QueueType = exports.ReferenceSummary = void 0;
|
|
4
|
+
exports.ReplicateInstanceResponseFilterSensitiveLog = exports.ReplicateInstanceRequestFilterSensitiveLog = exports.ReleasePhoneNumberRequestFilterSensitiveLog = exports.PutUserStatusResponseFilterSensitiveLog = exports.PutUserStatusRequestFilterSensitiveLog = exports.MonitorContactResponseFilterSensitiveLog = exports.MonitorContactRequestFilterSensitiveLog = exports.ListUsersResponseFilterSensitiveLog = exports.UserSummaryFilterSensitiveLog = exports.ListUsersRequestFilterSensitiveLog = exports.ListUserHierarchyGroupsResponseFilterSensitiveLog = exports.ListUserHierarchyGroupsRequestFilterSensitiveLog = exports.ListUseCasesResponseFilterSensitiveLog = exports.UseCaseFilterSensitiveLog = exports.ListUseCasesRequestFilterSensitiveLog = exports.ListTrafficDistributionGroupsResponseFilterSensitiveLog = exports.TrafficDistributionGroupSummaryFilterSensitiveLog = exports.ListTrafficDistributionGroupsRequestFilterSensitiveLog = exports.ListTaskTemplatesResponseFilterSensitiveLog = exports.TaskTemplateMetadataFilterSensitiveLog = exports.ListTaskTemplatesRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListSecurityProfilesResponseFilterSensitiveLog = exports.SecurityProfileSummaryFilterSensitiveLog = exports.ListSecurityProfilesRequestFilterSensitiveLog = exports.ListSecurityProfilePermissionsResponseFilterSensitiveLog = exports.ListSecurityProfilePermissionsRequestFilterSensitiveLog = exports.ListSecurityKeysResponseFilterSensitiveLog = exports.SecurityKeyFilterSensitiveLog = exports.ListSecurityKeysRequestFilterSensitiveLog = exports.ListRulesResponseFilterSensitiveLog = exports.RuleSummaryFilterSensitiveLog = exports.ListRulesRequestFilterSensitiveLog = exports.ListRoutingProfilesResponseFilterSensitiveLog = exports.RoutingProfileSummaryFilterSensitiveLog = exports.ListRoutingProfilesRequestFilterSensitiveLog = exports.ListRoutingProfileQueuesResponseFilterSensitiveLog = exports.RoutingProfileQueueConfigSummaryFilterSensitiveLog = exports.ListRoutingProfileQueuesRequestFilterSensitiveLog = exports.ListQuickConnectsResponseFilterSensitiveLog = exports.ListQuickConnectsRequestFilterSensitiveLog = exports.ListQueuesResponseFilterSensitiveLog = exports.QueueSummaryFilterSensitiveLog = exports.ListQueuesRequestFilterSensitiveLog = exports.ListQueueQuickConnectsResponseFilterSensitiveLog = exports.QuickConnectSummaryFilterSensitiveLog = exports.ListQueueQuickConnectsRequestFilterSensitiveLog = exports.ListPromptsResponseFilterSensitiveLog = exports.PromptSummaryFilterSensitiveLog = void 0;
|
|
5
|
+
exports.TransferContactResponseFilterSensitiveLog = exports.TransferContactRequestFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.SuspendContactRecordingResponseFilterSensitiveLog = exports.SuspendContactRecordingRequestFilterSensitiveLog = exports.StopContactStreamingResponseFilterSensitiveLog = exports.StopContactStreamingRequestFilterSensitiveLog = exports.StopContactRecordingResponseFilterSensitiveLog = exports.StopContactRecordingRequestFilterSensitiveLog = exports.StopContactResponseFilterSensitiveLog = exports.StopContactRequestFilterSensitiveLog = exports.StartTaskContactResponseFilterSensitiveLog = exports.StartTaskContactRequestFilterSensitiveLog = exports.StartOutboundVoiceContactResponseFilterSensitiveLog = exports.StartOutboundVoiceContactRequestFilterSensitiveLog = exports.AnswerMachineDetectionConfigFilterSensitiveLog = exports.StartContactStreamingResponseFilterSensitiveLog = exports.StartContactStreamingRequestFilterSensitiveLog = exports.ChatStreamingConfigurationFilterSensitiveLog = exports.StartContactRecordingResponseFilterSensitiveLog = exports.StartContactRecordingRequestFilterSensitiveLog = exports.VoiceRecordingConfigurationFilterSensitiveLog = exports.StartChatContactResponseFilterSensitiveLog = exports.StartChatContactRequestFilterSensitiveLog = exports.PersistentChatFilterSensitiveLog = exports.ParticipantDetailsFilterSensitiveLog = exports.ChatMessageFilterSensitiveLog = exports.SearchVocabulariesResponseFilterSensitiveLog = exports.VocabularySummaryFilterSensitiveLog = exports.SearchVocabulariesRequestFilterSensitiveLog = exports.SearchUsersResponseFilterSensitiveLog = exports.UserSearchSummaryFilterSensitiveLog = exports.UserIdentityInfoLiteFilterSensitiveLog = exports.UserSearchFilterFilterSensitiveLog = exports.HierarchyGroupConditionFilterSensitiveLog = exports.SearchSecurityProfilesResponseFilterSensitiveLog = exports.SecurityProfileSearchSummaryFilterSensitiveLog = exports.SecurityProfilesSearchFilterFilterSensitiveLog = exports.SearchRoutingProfilesResponseFilterSensitiveLog = exports.RoutingProfileSearchFilterFilterSensitiveLog = exports.SearchQueuesResponseFilterSensitiveLog = exports.QueueSearchFilterFilterSensitiveLog = exports.ControlPlaneTagFilterFilterSensitiveLog = exports.TagConditionFilterSensitiveLog = exports.StringConditionFilterSensitiveLog = exports.SearchAvailablePhoneNumbersResponseFilterSensitiveLog = exports.AvailableNumberSummaryFilterSensitiveLog = exports.SearchAvailablePhoneNumbersRequestFilterSensitiveLog = exports.ResumeContactRecordingResponseFilterSensitiveLog = exports.ResumeContactRecordingRequestFilterSensitiveLog = void 0;
|
|
6
|
+
exports.HierarchyStructureUpdateFilterSensitiveLog = exports.HierarchyLevelUpdateFilterSensitiveLog = exports.UpdateUserHierarchyGroupNameRequestFilterSensitiveLog = exports.UpdateUserHierarchyRequestFilterSensitiveLog = exports.UpdateTrafficDistributionResponseFilterSensitiveLog = exports.UpdateTrafficDistributionRequestFilterSensitiveLog = exports.UpdateTaskTemplateResponseFilterSensitiveLog = exports.UpdateTaskTemplateRequestFilterSensitiveLog = exports.UpdateSecurityProfileRequestFilterSensitiveLog = exports.UpdateRuleRequestFilterSensitiveLog = exports.UpdateRoutingProfileQueuesRequestFilterSensitiveLog = exports.UpdateRoutingProfileNameRequestFilterSensitiveLog = exports.UpdateRoutingProfileDefaultOutboundQueueRequestFilterSensitiveLog = exports.UpdateRoutingProfileConcurrencyRequestFilterSensitiveLog = exports.UpdateQuickConnectNameRequestFilterSensitiveLog = exports.UpdateQuickConnectConfigRequestFilterSensitiveLog = exports.UpdateQueueStatusRequestFilterSensitiveLog = exports.UpdateQueueOutboundCallerConfigRequestFilterSensitiveLog = exports.UpdateQueueNameRequestFilterSensitiveLog = exports.UpdateQueueMaxContactsRequestFilterSensitiveLog = exports.UpdateQueueHoursOfOperationRequestFilterSensitiveLog = exports.UpdatePhoneNumberResponseFilterSensitiveLog = exports.UpdatePhoneNumberRequestFilterSensitiveLog = exports.UpdateParticipantRoleConfigResponseFilterSensitiveLog = exports.UpdateParticipantRoleConfigRequestFilterSensitiveLog = exports.UpdateParticipantRoleConfigChannelInfoFilterSensitiveLog = exports.ChatParticipantRoleConfigFilterSensitiveLog = exports.ParticipantTimerConfigurationFilterSensitiveLog = exports.ParticipantTimerValueFilterSensitiveLog = exports.UpdateInstanceStorageConfigRequestFilterSensitiveLog = exports.UpdateInstanceAttributeRequestFilterSensitiveLog = exports.UpdateHoursOfOperationRequestFilterSensitiveLog = exports.UpdateContactScheduleResponseFilterSensitiveLog = exports.UpdateContactScheduleRequestFilterSensitiveLog = exports.UpdateContactFlowNameResponseFilterSensitiveLog = exports.UpdateContactFlowNameRequestFilterSensitiveLog = exports.UpdateContactFlowModuleMetadataResponseFilterSensitiveLog = exports.UpdateContactFlowModuleMetadataRequestFilterSensitiveLog = exports.UpdateContactFlowModuleContentResponseFilterSensitiveLog = exports.UpdateContactFlowModuleContentRequestFilterSensitiveLog = exports.UpdateContactFlowMetadataResponseFilterSensitiveLog = exports.UpdateContactFlowMetadataRequestFilterSensitiveLog = exports.UpdateContactFlowContentResponseFilterSensitiveLog = exports.UpdateContactFlowContentRequestFilterSensitiveLog = exports.UpdateContactAttributesResponseFilterSensitiveLog = exports.UpdateContactAttributesRequestFilterSensitiveLog = exports.UpdateContactResponseFilterSensitiveLog = exports.UpdateContactRequestFilterSensitiveLog = exports.UpdateAgentStatusRequestFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = void 0;
|
|
7
|
+
exports.SearchUsersRequestFilterSensitiveLog = exports.SearchSecurityProfilesRequestFilterSensitiveLog = exports.SearchRoutingProfilesRequestFilterSensitiveLog = exports.SearchQueuesRequestFilterSensitiveLog = exports.UserSearchCriteriaFilterSensitiveLog = exports.SecurityProfileSearchCriteriaFilterSensitiveLog = exports.RoutingProfileSearchCriteriaFilterSensitiveLog = exports.QueueSearchCriteriaFilterSensitiveLog = exports.UpdateUserSecurityProfilesRequestFilterSensitiveLog = exports.UpdateUserRoutingProfileRequestFilterSensitiveLog = exports.UpdateUserPhoneConfigRequestFilterSensitiveLog = exports.UpdateUserIdentityInfoRequestFilterSensitiveLog = exports.UpdateUserHierarchyStructureRequestFilterSensitiveLog = void 0;
|
|
8
8
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
9
9
|
const ConnectServiceException_1 = require("./ConnectServiceException");
|
|
10
10
|
const models_0_1 = require("./models_0");
|
|
@@ -46,6 +46,11 @@ var HierarchyGroupMatchType;
|
|
|
46
46
|
HierarchyGroupMatchType["EXACT"] = "EXACT";
|
|
47
47
|
HierarchyGroupMatchType["WITH_CHILD_GROUPS"] = "WITH_CHILD_GROUPS";
|
|
48
48
|
})(HierarchyGroupMatchType = exports.HierarchyGroupMatchType || (exports.HierarchyGroupMatchType = {}));
|
|
49
|
+
var RehydrationType;
|
|
50
|
+
(function (RehydrationType) {
|
|
51
|
+
RehydrationType["ENTIRE_PAST_SESSION"] = "ENTIRE_PAST_SESSION";
|
|
52
|
+
RehydrationType["FROM_SEGMENT"] = "FROM_SEGMENT";
|
|
53
|
+
})(RehydrationType = exports.RehydrationType || (exports.RehydrationType = {}));
|
|
49
54
|
var VoiceRecordingTrack;
|
|
50
55
|
(function (VoiceRecordingTrack) {
|
|
51
56
|
VoiceRecordingTrack["ALL"] = "ALL";
|
|
@@ -588,6 +593,10 @@ const ParticipantDetailsFilterSensitiveLog = (obj) => ({
|
|
|
588
593
|
...obj,
|
|
589
594
|
});
|
|
590
595
|
exports.ParticipantDetailsFilterSensitiveLog = ParticipantDetailsFilterSensitiveLog;
|
|
596
|
+
const PersistentChatFilterSensitiveLog = (obj) => ({
|
|
597
|
+
...obj,
|
|
598
|
+
});
|
|
599
|
+
exports.PersistentChatFilterSensitiveLog = PersistentChatFilterSensitiveLog;
|
|
591
600
|
const StartChatContactRequestFilterSensitiveLog = (obj) => ({
|
|
592
601
|
...obj,
|
|
593
602
|
});
|
|
@@ -1692,7 +1692,7 @@ const serializeAws_restJson1GetMetricDataCommand = async (input, context) => {
|
|
|
1692
1692
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
1693
1693
|
let body;
|
|
1694
1694
|
body = JSON.stringify({
|
|
1695
|
-
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000)
|
|
1695
|
+
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
1696
1696
|
...(input.Filters != null && { Filters: serializeAws_restJson1Filters(input.Filters, context) }),
|
|
1697
1697
|
...(input.Groupings != null && { Groupings: serializeAws_restJson1Groupings(input.Groupings, context) }),
|
|
1698
1698
|
...(input.HistoricalMetrics != null && {
|
|
@@ -1700,7 +1700,7 @@ const serializeAws_restJson1GetMetricDataCommand = async (input, context) => {
|
|
|
1700
1700
|
}),
|
|
1701
1701
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1702
1702
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1703
|
-
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000)
|
|
1703
|
+
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
1704
1704
|
});
|
|
1705
1705
|
return new protocol_http_1.HttpRequest({
|
|
1706
1706
|
protocol,
|
|
@@ -2811,6 +2811,9 @@ const serializeAws_restJson1StartChatContactCommand = async (input, context) =>
|
|
|
2811
2811
|
...(input.ParticipantDetails != null && {
|
|
2812
2812
|
ParticipantDetails: serializeAws_restJson1ParticipantDetails(input.ParticipantDetails, context),
|
|
2813
2813
|
}),
|
|
2814
|
+
...(input.PersistentChat != null && {
|
|
2815
|
+
PersistentChat: serializeAws_restJson1PersistentChat(input.PersistentChat, context),
|
|
2816
|
+
}),
|
|
2814
2817
|
...(input.SupportedMessagingContentTypes != null && {
|
|
2815
2818
|
SupportedMessagingContentTypes: serializeAws_restJson1SupportedMessagingContentTypes(input.SupportedMessagingContentTypes, context),
|
|
2816
2819
|
}),
|
|
@@ -2927,7 +2930,7 @@ const serializeAws_restJson1StartTaskContactCommand = async (input, context) =>
|
|
|
2927
2930
|
...(input.PreviousContactId != null && { PreviousContactId: input.PreviousContactId }),
|
|
2928
2931
|
...(input.QuickConnectId != null && { QuickConnectId: input.QuickConnectId }),
|
|
2929
2932
|
...(input.References != null && { References: serializeAws_restJson1ContactReferences(input.References, context) }),
|
|
2930
|
-
...(input.ScheduledTime != null && { ScheduledTime: Math.round(input.ScheduledTime.getTime() / 1000)
|
|
2933
|
+
...(input.ScheduledTime != null && { ScheduledTime: Math.round(input.ScheduledTime.getTime() / 1000) }),
|
|
2931
2934
|
...(input.TaskTemplateId != null && { TaskTemplateId: input.TaskTemplateId }),
|
|
2932
2935
|
});
|
|
2933
2936
|
return new protocol_http_1.HttpRequest({
|
|
@@ -3315,7 +3318,7 @@ const serializeAws_restJson1UpdateContactScheduleCommand = async (input, context
|
|
|
3315
3318
|
body = JSON.stringify({
|
|
3316
3319
|
...(input.ContactId != null && { ContactId: input.ContactId }),
|
|
3317
3320
|
...(input.InstanceId != null && { InstanceId: input.InstanceId }),
|
|
3318
|
-
...(input.ScheduledTime != null && { ScheduledTime: Math.round(input.ScheduledTime.getTime() / 1000)
|
|
3321
|
+
...(input.ScheduledTime != null && { ScheduledTime: Math.round(input.ScheduledTime.getTime() / 1000) }),
|
|
3319
3322
|
});
|
|
3320
3323
|
return new protocol_http_1.HttpRequest({
|
|
3321
3324
|
protocol,
|
|
@@ -9883,6 +9886,9 @@ const deserializeAws_restJson1StartChatContactCommand = async (output, context)
|
|
|
9883
9886
|
if (data.ContactId != null) {
|
|
9884
9887
|
contents.ContactId = (0, smithy_client_1.expectString)(data.ContactId);
|
|
9885
9888
|
}
|
|
9889
|
+
if (data.ContinuedFromContactId != null) {
|
|
9890
|
+
contents.ContinuedFromContactId = (0, smithy_client_1.expectString)(data.ContinuedFromContactId);
|
|
9891
|
+
}
|
|
9886
9892
|
if (data.ParticipantId != null) {
|
|
9887
9893
|
contents.ParticipantId = (0, smithy_client_1.expectString)(data.ParticipantId);
|
|
9888
9894
|
}
|
|
@@ -12666,6 +12672,12 @@ const serializeAws_restJson1PermissionsList = (input, context) => {
|
|
|
12666
12672
|
return entry;
|
|
12667
12673
|
});
|
|
12668
12674
|
};
|
|
12675
|
+
const serializeAws_restJson1PersistentChat = (input, context) => {
|
|
12676
|
+
return {
|
|
12677
|
+
...(input.RehydrationType != null && { RehydrationType: input.RehydrationType }),
|
|
12678
|
+
...(input.SourceContactId != null && { SourceContactId: input.SourceContactId }),
|
|
12679
|
+
};
|
|
12680
|
+
};
|
|
12669
12681
|
const serializeAws_restJson1PhoneNumberCountryCodes = (input, context) => {
|
|
12670
12682
|
return input
|
|
12671
12683
|
.filter((e) => e != null)
|
|
@@ -13357,6 +13369,7 @@ const deserializeAws_restJson1Contact = (output, context) => {
|
|
|
13357
13369
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
13358
13370
|
PreviousContactId: (0, smithy_client_1.expectString)(output.PreviousContactId),
|
|
13359
13371
|
QueueInfo: output.QueueInfo != null ? deserializeAws_restJson1QueueInfo(output.QueueInfo, context) : undefined,
|
|
13372
|
+
RelatedContactId: (0, smithy_client_1.expectString)(output.RelatedContactId),
|
|
13360
13373
|
ScheduledTimestamp: output.ScheduledTimestamp != null
|
|
13361
13374
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ScheduledTimestamp)))
|
|
13362
13375
|
: undefined,
|
|
@@ -39,6 +39,11 @@ export var HierarchyGroupMatchType;
|
|
|
39
39
|
HierarchyGroupMatchType["EXACT"] = "EXACT";
|
|
40
40
|
HierarchyGroupMatchType["WITH_CHILD_GROUPS"] = "WITH_CHILD_GROUPS";
|
|
41
41
|
})(HierarchyGroupMatchType || (HierarchyGroupMatchType = {}));
|
|
42
|
+
export var RehydrationType;
|
|
43
|
+
(function (RehydrationType) {
|
|
44
|
+
RehydrationType["ENTIRE_PAST_SESSION"] = "ENTIRE_PAST_SESSION";
|
|
45
|
+
RehydrationType["FROM_SEGMENT"] = "FROM_SEGMENT";
|
|
46
|
+
})(RehydrationType || (RehydrationType = {}));
|
|
42
47
|
export var VoiceRecordingTrack;
|
|
43
48
|
(function (VoiceRecordingTrack) {
|
|
44
49
|
VoiceRecordingTrack["ALL"] = "ALL";
|
|
@@ -469,6 +474,9 @@ export const ChatMessageFilterSensitiveLog = (obj) => ({
|
|
|
469
474
|
export const ParticipantDetailsFilterSensitiveLog = (obj) => ({
|
|
470
475
|
...obj,
|
|
471
476
|
});
|
|
477
|
+
export const PersistentChatFilterSensitiveLog = (obj) => ({
|
|
478
|
+
...obj,
|
|
479
|
+
});
|
|
472
480
|
export const StartChatContactRequestFilterSensitiveLog = (obj) => ({
|
|
473
481
|
...obj,
|
|
474
482
|
});
|
|
@@ -1608,7 +1608,7 @@ export const serializeAws_restJson1GetMetricDataCommand = async (input, context)
|
|
|
1608
1608
|
resolvedPath = __resolvedPath(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
1609
1609
|
let body;
|
|
1610
1610
|
body = JSON.stringify({
|
|
1611
|
-
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000)
|
|
1611
|
+
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
1612
1612
|
...(input.Filters != null && { Filters: serializeAws_restJson1Filters(input.Filters, context) }),
|
|
1613
1613
|
...(input.Groupings != null && { Groupings: serializeAws_restJson1Groupings(input.Groupings, context) }),
|
|
1614
1614
|
...(input.HistoricalMetrics != null && {
|
|
@@ -1616,7 +1616,7 @@ export const serializeAws_restJson1GetMetricDataCommand = async (input, context)
|
|
|
1616
1616
|
}),
|
|
1617
1617
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1618
1618
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1619
|
-
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000)
|
|
1619
|
+
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
1620
1620
|
});
|
|
1621
1621
|
return new __HttpRequest({
|
|
1622
1622
|
protocol,
|
|
@@ -2681,6 +2681,9 @@ export const serializeAws_restJson1StartChatContactCommand = async (input, conte
|
|
|
2681
2681
|
...(input.ParticipantDetails != null && {
|
|
2682
2682
|
ParticipantDetails: serializeAws_restJson1ParticipantDetails(input.ParticipantDetails, context),
|
|
2683
2683
|
}),
|
|
2684
|
+
...(input.PersistentChat != null && {
|
|
2685
|
+
PersistentChat: serializeAws_restJson1PersistentChat(input.PersistentChat, context),
|
|
2686
|
+
}),
|
|
2684
2687
|
...(input.SupportedMessagingContentTypes != null && {
|
|
2685
2688
|
SupportedMessagingContentTypes: serializeAws_restJson1SupportedMessagingContentTypes(input.SupportedMessagingContentTypes, context),
|
|
2686
2689
|
}),
|
|
@@ -2793,7 +2796,7 @@ export const serializeAws_restJson1StartTaskContactCommand = async (input, conte
|
|
|
2793
2796
|
...(input.PreviousContactId != null && { PreviousContactId: input.PreviousContactId }),
|
|
2794
2797
|
...(input.QuickConnectId != null && { QuickConnectId: input.QuickConnectId }),
|
|
2795
2798
|
...(input.References != null && { References: serializeAws_restJson1ContactReferences(input.References, context) }),
|
|
2796
|
-
...(input.ScheduledTime != null && { ScheduledTime: Math.round(input.ScheduledTime.getTime() / 1000)
|
|
2799
|
+
...(input.ScheduledTime != null && { ScheduledTime: Math.round(input.ScheduledTime.getTime() / 1000) }),
|
|
2797
2800
|
...(input.TaskTemplateId != null && { TaskTemplateId: input.TaskTemplateId }),
|
|
2798
2801
|
});
|
|
2799
2802
|
return new __HttpRequest({
|
|
@@ -3165,7 +3168,7 @@ export const serializeAws_restJson1UpdateContactScheduleCommand = async (input,
|
|
|
3165
3168
|
body = JSON.stringify({
|
|
3166
3169
|
...(input.ContactId != null && { ContactId: input.ContactId }),
|
|
3167
3170
|
...(input.InstanceId != null && { InstanceId: input.InstanceId }),
|
|
3168
|
-
...(input.ScheduledTime != null && { ScheduledTime: Math.round(input.ScheduledTime.getTime() / 1000)
|
|
3171
|
+
...(input.ScheduledTime != null && { ScheduledTime: Math.round(input.ScheduledTime.getTime() / 1000) }),
|
|
3169
3172
|
});
|
|
3170
3173
|
return new __HttpRequest({
|
|
3171
3174
|
protocol,
|
|
@@ -9584,6 +9587,9 @@ export const deserializeAws_restJson1StartChatContactCommand = async (output, co
|
|
|
9584
9587
|
if (data.ContactId != null) {
|
|
9585
9588
|
contents.ContactId = __expectString(data.ContactId);
|
|
9586
9589
|
}
|
|
9590
|
+
if (data.ContinuedFromContactId != null) {
|
|
9591
|
+
contents.ContinuedFromContactId = __expectString(data.ContinuedFromContactId);
|
|
9592
|
+
}
|
|
9587
9593
|
if (data.ParticipantId != null) {
|
|
9588
9594
|
contents.ParticipantId = __expectString(data.ParticipantId);
|
|
9589
9595
|
}
|
|
@@ -12319,6 +12325,12 @@ const serializeAws_restJson1PermissionsList = (input, context) => {
|
|
|
12319
12325
|
return entry;
|
|
12320
12326
|
});
|
|
12321
12327
|
};
|
|
12328
|
+
const serializeAws_restJson1PersistentChat = (input, context) => {
|
|
12329
|
+
return {
|
|
12330
|
+
...(input.RehydrationType != null && { RehydrationType: input.RehydrationType }),
|
|
12331
|
+
...(input.SourceContactId != null && { SourceContactId: input.SourceContactId }),
|
|
12332
|
+
};
|
|
12333
|
+
};
|
|
12322
12334
|
const serializeAws_restJson1PhoneNumberCountryCodes = (input, context) => {
|
|
12323
12335
|
return input
|
|
12324
12336
|
.filter((e) => e != null)
|
|
@@ -13010,6 +13022,7 @@ const deserializeAws_restJson1Contact = (output, context) => {
|
|
|
13010
13022
|
Name: __expectString(output.Name),
|
|
13011
13023
|
PreviousContactId: __expectString(output.PreviousContactId),
|
|
13012
13024
|
QueueInfo: output.QueueInfo != null ? deserializeAws_restJson1QueueInfo(output.QueueInfo, context) : undefined,
|
|
13025
|
+
RelatedContactId: __expectString(output.RelatedContactId),
|
|
13013
13026
|
ScheduledTimestamp: output.ScheduledTimestamp != null
|
|
13014
13027
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ScheduledTimestamp)))
|
|
13015
13028
|
: undefined,
|
package/dist-types/Connect.d.ts
CHANGED
|
@@ -277,8 +277,8 @@ export declare class Connect extends ConnectClient {
|
|
|
277
277
|
* numbers to traffic distribution groups</a> in the <i>Amazon Connect Administrator
|
|
278
278
|
* Guide</i>. </p>
|
|
279
279
|
* <important>
|
|
280
|
-
* <p>You can call the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_SearchAvailablePhoneNumbers.html">SearchAvailablePhoneNumbers</a> API for available phone numbers that you can claim. Call
|
|
281
|
-
* to verify the status of a previous <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_ClaimPhoneNumber.html">ClaimPhoneNumber</a>
|
|
280
|
+
* <p>You can call the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_SearchAvailablePhoneNumbers.html">SearchAvailablePhoneNumbers</a> API for available phone numbers that you can claim. Call
|
|
281
|
+
* the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribePhoneNumber.html">DescribePhoneNumber</a> API to verify the status of a previous <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_ClaimPhoneNumber.html">ClaimPhoneNumber</a>
|
|
282
282
|
* operation.</p>
|
|
283
283
|
* </important>
|
|
284
284
|
*/
|
|
@@ -364,8 +364,8 @@ export declare class Connect extends ConnectClient {
|
|
|
364
364
|
createRoutingProfile(args: CreateRoutingProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateRoutingProfileCommandOutput) => void): void;
|
|
365
365
|
/**
|
|
366
366
|
* <p>Creates a rule for the specified Amazon Connect instance.</p>
|
|
367
|
-
* <p>Use the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/connect-rules-language.html">Rules Function language</a> to
|
|
368
|
-
*
|
|
367
|
+
* <p>Use the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/connect-rules-language.html">Rules Function language</a> to
|
|
368
|
+
* code conditions for the rule. </p>
|
|
369
369
|
*/
|
|
370
370
|
createRule(args: CreateRuleCommandInput, options?: __HttpHandlerOptions): Promise<CreateRuleCommandOutput>;
|
|
371
371
|
createRule(args: CreateRuleCommandInput, cb: (err: any, data?: CreateRuleCommandOutput) => void): void;
|
|
@@ -744,7 +744,7 @@ export declare class Connect extends ConnectClient {
|
|
|
744
744
|
/**
|
|
745
745
|
* <p>Dismisses contacts from an agent’s CCP and returns the agent to an available state, which
|
|
746
746
|
* allows the agent to receive a new routed contact. Contacts can only be dismissed if they are in a
|
|
747
|
-
*
|
|
747
|
+
* <code>MISSED</code>, <code>ERROR</code>, <code>ENDED</code>, or <code>REJECTED</code> state in
|
|
748
748
|
* the <a href="https://docs.aws.amazon.com/connect/latest/adminguide/about-contact-states.html">Agent
|
|
749
749
|
* Event Stream</a>.</p>
|
|
750
750
|
*/
|
|
@@ -1560,8 +1560,8 @@ export declare class Connect extends ConnectClient {
|
|
|
1560
1560
|
updateRoutingProfileQueues(args: UpdateRoutingProfileQueuesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRoutingProfileQueuesCommandOutput) => void): void;
|
|
1561
1561
|
/**
|
|
1562
1562
|
* <p>Updates a rule for the specified Amazon Connect instance.</p>
|
|
1563
|
-
* <p>Use the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/connect-rules-language.html">Rules Function language</a> to
|
|
1564
|
-
*
|
|
1563
|
+
* <p>Use the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/connect-rules-language.html">Rules Function language</a> to
|
|
1564
|
+
* code conditions for the rule. </p>
|
|
1565
1565
|
*/
|
|
1566
1566
|
updateRule(args: UpdateRuleCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRuleCommandOutput>;
|
|
1567
1567
|
updateRule(args: UpdateRuleCommandInput, cb: (err: any, data?: UpdateRuleCommandOutput) => void): void;
|
|
@@ -6,7 +6,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
6
6
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
7
7
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
8
8
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
9
|
-
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
10
10
|
import { AssociateApprovedOriginCommandInput, AssociateApprovedOriginCommandOutput } from "./commands/AssociateApprovedOriginCommand";
|
|
11
11
|
import { AssociateBotCommandInput, AssociateBotCommandOutput } from "./commands/AssociateBotCommand";
|
|
12
12
|
import { AssociateDefaultVocabularyCommandInput, AssociateDefaultVocabularyCommandOutput } from "./commands/AssociateDefaultVocabularyCommand";
|
|
@@ -185,11 +185,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
185
185
|
*/
|
|
186
186
|
requestHandler?: __HttpHandler;
|
|
187
187
|
/**
|
|
188
|
-
* A constructor for a class implementing the {@link
|
|
188
|
+
* A constructor for a class implementing the {@link __Checksum} interface
|
|
189
189
|
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
190
190
|
* @internal
|
|
191
191
|
*/
|
|
192
|
-
sha256?: __HashConstructor;
|
|
192
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
193
193
|
/**
|
|
194
194
|
* The function that will be used to convert strings into HTTP endpoints.
|
|
195
195
|
* @internal
|
|
@@ -15,8 +15,8 @@ export interface ClaimPhoneNumberCommandOutput extends ClaimPhoneNumberResponse,
|
|
|
15
15
|
* numbers to traffic distribution groups</a> in the <i>Amazon Connect Administrator
|
|
16
16
|
* Guide</i>. </p>
|
|
17
17
|
* <important>
|
|
18
|
-
* <p>You can call the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_SearchAvailablePhoneNumbers.html">SearchAvailablePhoneNumbers</a> API for available phone numbers that you can claim. Call
|
|
19
|
-
* to verify the status of a previous <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_ClaimPhoneNumber.html">ClaimPhoneNumber</a>
|
|
18
|
+
* <p>You can call the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_SearchAvailablePhoneNumbers.html">SearchAvailablePhoneNumbers</a> API for available phone numbers that you can claim. Call
|
|
19
|
+
* the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribePhoneNumber.html">DescribePhoneNumber</a> API to verify the status of a previous <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_ClaimPhoneNumber.html">ClaimPhoneNumber</a>
|
|
20
20
|
* operation.</p>
|
|
21
21
|
* </important>
|
|
22
22
|
* @example
|
|
@@ -9,8 +9,8 @@ export interface CreateRuleCommandOutput extends CreateRuleResponse, __MetadataB
|
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* <p>Creates a rule for the specified Amazon Connect instance.</p>
|
|
12
|
-
* <p>Use the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/connect-rules-language.html">Rules Function language</a> to
|
|
13
|
-
*
|
|
12
|
+
* <p>Use the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/connect-rules-language.html">Rules Function language</a> to
|
|
13
|
+
* code conditions for the rule. </p>
|
|
14
14
|
* @example
|
|
15
15
|
* Use a bare-bones client and the command you need to make an API call.
|
|
16
16
|
* ```javascript
|
|
@@ -10,7 +10,7 @@ export interface DismissUserContactCommandOutput extends DismissUserContactRespo
|
|
|
10
10
|
/**
|
|
11
11
|
* <p>Dismisses contacts from an agent’s CCP and returns the agent to an available state, which
|
|
12
12
|
* allows the agent to receive a new routed contact. Contacts can only be dismissed if they are in a
|
|
13
|
-
*
|
|
13
|
+
* <code>MISSED</code>, <code>ERROR</code>, <code>ENDED</code>, or <code>REJECTED</code> state in
|
|
14
14
|
* the <a href="https://docs.aws.amazon.com/connect/latest/adminguide/about-contact-states.html">Agent
|
|
15
15
|
* Event Stream</a>.</p>
|
|
16
16
|
* @example
|
|
@@ -9,8 +9,8 @@ export interface UpdateRuleCommandOutput extends __MetadataBearer {
|
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* <p>Updates a rule for the specified Amazon Connect instance.</p>
|
|
12
|
-
* <p>Use the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/connect-rules-language.html">Rules Function language</a> to
|
|
13
|
-
*
|
|
12
|
+
* <p>Use the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/connect-rules-language.html">Rules Function language</a> to
|
|
13
|
+
* code conditions for the rule. </p>
|
|
14
14
|
* @example
|
|
15
15
|
* Use a bare-bones client and the command you need to make an API call.
|
|
16
16
|
* ```javascript
|
|
@@ -1265,8 +1265,8 @@ export interface CreateRoutingProfileResponse {
|
|
|
1265
1265
|
}
|
|
1266
1266
|
/**
|
|
1267
1267
|
* <p>This action must be set if <code>TriggerEventSource</code> is one of the following values:
|
|
1268
|
-
*
|
|
1269
|
-
*
|
|
1268
|
+
* <code>OnPostCallAnalysisAvailable</code> | <code>OnRealTimeCallAnalysisAvailable</code> |
|
|
1269
|
+
* <code>OnPostChatAnalysisAvailable</code>. Contact is categorized using the rule name.</p>
|
|
1270
1270
|
* <p>
|
|
1271
1271
|
* <code>RuleName</code> is used as <code>ContactCategory</code>.</p>
|
|
1272
1272
|
*/
|
|
@@ -1391,7 +1391,7 @@ export interface RuleAction {
|
|
|
1391
1391
|
/**
|
|
1392
1392
|
* <p>Information about the task action. This field is required if <code>TriggerEventSource</code>
|
|
1393
1393
|
* is one of the following values: <code>OnZendeskTicketCreate</code> |
|
|
1394
|
-
*
|
|
1394
|
+
* <code>OnZendeskTicketStatusUpdate</code> | <code>OnSalesforceCaseCreate</code>
|
|
1395
1395
|
* </p>
|
|
1396
1396
|
*/
|
|
1397
1397
|
TaskAction?: TaskActionDefinition;
|
|
@@ -1423,7 +1423,7 @@ export declare enum EventSourceName {
|
|
|
1423
1423
|
/**
|
|
1424
1424
|
* <p>The name of the event source. This field is required if <code>TriggerEventSource</code> is one of the
|
|
1425
1425
|
* following values: <code>OnZendeskTicketCreate</code> | <code>OnZendeskTicketStatusUpdate</code> |
|
|
1426
|
-
*
|
|
1426
|
+
* <code>OnSalesforceCaseCreate</code>
|
|
1427
1427
|
* </p>
|
|
1428
1428
|
*/
|
|
1429
1429
|
export interface RuleTriggerEventSource {
|
|
@@ -1506,8 +1506,8 @@ export interface CreateSecurityProfileRequest {
|
|
|
1506
1506
|
*/
|
|
1507
1507
|
AllowedAccessControlTags?: Record<string, string>;
|
|
1508
1508
|
/**
|
|
1509
|
-
* <p>The list of resources that a security profile applies tag restrictions to in Amazon Connect. Following are acceptable ResourceNames: <code>User</code> |
|
|
1510
|
-
*
|
|
1509
|
+
* <p>The list of resources that a security profile applies tag restrictions to in Amazon Connect. Following are acceptable ResourceNames: <code>User</code> |
|
|
1510
|
+
* <code>SecurityProfile</code> | <code>Queue</code> | <code>RoutingProfile</code>
|
|
1511
1511
|
* </p>
|
|
1512
1512
|
*/
|
|
1513
1513
|
TagRestrictedResources?: string[];
|
|
@@ -2309,6 +2309,11 @@ export interface Contact {
|
|
|
2309
2309
|
* </p>
|
|
2310
2310
|
*/
|
|
2311
2311
|
ScheduledTimestamp?: Date;
|
|
2312
|
+
/**
|
|
2313
|
+
* <p>The contactId that is <a href="https://docs.aws.amazon.com/connect/latest/adminguide/chat-persistence.html#relatedcontactid">related</a> to this
|
|
2314
|
+
* contact.</p>
|
|
2315
|
+
*/
|
|
2316
|
+
RelatedContactId?: string;
|
|
2312
2317
|
}
|
|
2313
2318
|
export interface DescribeContactResponse {
|
|
2314
2319
|
/**
|
|
@@ -3879,7 +3884,8 @@ export interface GetCurrentMetricDataRequest {
|
|
|
3879
3884
|
* </li>
|
|
3880
3885
|
* </ul>
|
|
3881
3886
|
* <p>Metric data is retrieved only for the resources associated with the queues or routing
|
|
3882
|
-
* profiles, and by any channels included in the filter. (You cannot filter by both queue AND
|
|
3887
|
+
* profiles, and by any channels included in the filter. (You cannot filter by both queue AND
|
|
3888
|
+
* routing profile.) You can include both resource IDs and resource ARNs in the same request. </p>
|
|
3883
3889
|
* <p>Currently tagging is only supported on the resources that are passed in the filter.</p>
|
|
3884
3890
|
*/
|
|
3885
3891
|
Filters: Filters | undefined;
|
|
@@ -3894,9 +3900,9 @@ export interface GetCurrentMetricDataRequest {
|
|
|
3894
3900
|
* </li>
|
|
3895
3901
|
* <li>
|
|
3896
3902
|
* <p>If you group by <code>ROUTING_PROFILE</code>, you must include either a queue or routing
|
|
3897
|
-
* profile filter. In addition, a routing profile filter is
|
|
3898
|
-
*
|
|
3899
|
-
*
|
|
3903
|
+
* profile filter. In addition, a routing profile filter is required for metrics
|
|
3904
|
+
* <code>CONTACTS_SCHEDULED</code>, <code>CONTACTS_IN_QUEUE</code>, and <code>
|
|
3905
|
+
* OLDEST_CONTACT_AGE</code>.</p>
|
|
3900
3906
|
* </li>
|
|
3901
3907
|
* <li>
|
|
3902
3908
|
* <p>If no <code>Grouping</code> is included in the request, a summary of metrics is
|
|
@@ -4019,7 +4025,8 @@ export interface GetCurrentMetricDataRequest {
|
|
|
4019
4025
|
* <p>Note the following:</p>
|
|
4020
4026
|
* <ul>
|
|
4021
4027
|
* <li>
|
|
4022
|
-
* <p>Sorting on <code>SLOTS_ACTIVE</code> and <code>SLOTS_AVAILABLE</code> is not
|
|
4028
|
+
* <p>Sorting on <code>SLOTS_ACTIVE</code> and <code>SLOTS_AVAILABLE</code> is not
|
|
4029
|
+
* supported.</p>
|
|
4023
4030
|
* </li>
|
|
4024
4031
|
* </ul>
|
|
4025
4032
|
*/
|
|
@@ -4143,7 +4150,8 @@ export interface GetCurrentUserDataRequest {
|
|
|
4143
4150
|
*/
|
|
4144
4151
|
InstanceId: string | undefined;
|
|
4145
4152
|
/**
|
|
4146
|
-
* <p>The filters to apply to returned user data. You can filter up to the following
|
|
4153
|
+
* <p>The filters to apply to returned user data. You can filter up to the following
|
|
4154
|
+
* limits:</p>
|
|
4147
4155
|
* <ul>
|
|
4148
4156
|
* <li>
|
|
4149
4157
|
* <p>Queues: 100</p>
|
|
@@ -4161,9 +4169,8 @@ export interface GetCurrentUserDataRequest {
|
|
|
4161
4169
|
* <p>User hierarchy groups: 1</p>
|
|
4162
4170
|
* </li>
|
|
4163
4171
|
* </ul>
|
|
4164
|
-
* <p> The user data is retrieved for only the specified
|
|
4165
|
-
*
|
|
4166
|
-
* agents, and user hierarchy groups. </p>
|
|
4172
|
+
* <p> The user data is retrieved for only the specified values/resources in the filter. A maximum
|
|
4173
|
+
* of one filter can be passed from queues, routing profiles, agents, and user hierarchy groups. </p>
|
|
4167
4174
|
* <p>Currently tagging is only supported on the resources that are passed in the filter.</p>
|
|
4168
4175
|
*/
|
|
4169
4176
|
Filters: UserDataFilters | undefined;
|
|
@@ -1965,7 +1965,8 @@ export interface SearchVocabulariesResponse {
|
|
|
1965
1965
|
*/
|
|
1966
1966
|
export interface ChatMessage {
|
|
1967
1967
|
/**
|
|
1968
|
-
* <p>The type of the content. Supported types are <code>text/plain</code>,
|
|
1968
|
+
* <p>The type of the content. Supported types are <code>text/plain</code>,
|
|
1969
|
+
* <code>text/markdown</code>, and <code>application/json</code>.</p>
|
|
1969
1970
|
*/
|
|
1970
1971
|
ContentType: string | undefined;
|
|
1971
1972
|
/**
|
|
@@ -1992,6 +1993,44 @@ export interface ParticipantDetails {
|
|
|
1992
1993
|
*/
|
|
1993
1994
|
DisplayName: string | undefined;
|
|
1994
1995
|
}
|
|
1996
|
+
export declare enum RehydrationType {
|
|
1997
|
+
ENTIRE_PAST_SESSION = "ENTIRE_PAST_SESSION",
|
|
1998
|
+
FROM_SEGMENT = "FROM_SEGMENT"
|
|
1999
|
+
}
|
|
2000
|
+
/**
|
|
2001
|
+
* <p>Enable persistent chats. For more
|
|
2002
|
+
* information about enabling persistent chat, and for example use cases and how to configure for them, see
|
|
2003
|
+
* <a href="https://docs.aws.amazon.com/connect/latest/adminguide/chat-persistence.html">Enable persistent chat</a>.</p>
|
|
2004
|
+
*/
|
|
2005
|
+
export interface PersistentChat {
|
|
2006
|
+
/**
|
|
2007
|
+
* <p>The contactId that is used for rehydration depends on the rehydration type. RehydrationType
|
|
2008
|
+
* is required for persistent chat. </p>
|
|
2009
|
+
* <ul>
|
|
2010
|
+
* <li>
|
|
2011
|
+
* <p>
|
|
2012
|
+
* <code>ENTIRE_PAST_SESSION</code>: Rehydrates a chat from the most recently terminated past
|
|
2013
|
+
* chat contact of the specified past ended chat session. To use this type, provide the
|
|
2014
|
+
* <code>initialContactId</code> of the past ended chat session in the
|
|
2015
|
+
* <code>sourceContactId</code> field. In this type, Amazon Connect determines the most
|
|
2016
|
+
* recent chat contact on the specified chat session that has ended, and uses it to start a
|
|
2017
|
+
* persistent chat. </p>
|
|
2018
|
+
* </li>
|
|
2019
|
+
* <li>
|
|
2020
|
+
* <p>
|
|
2021
|
+
* <code>FROM_SEGMENT</code>: Rehydrates a chat from the past chat contact that is specified
|
|
2022
|
+
* in the <code>sourceContactId</code> field. </p>
|
|
2023
|
+
* </li>
|
|
2024
|
+
* </ul>
|
|
2025
|
+
* <p>The actual contactId used for rehydration is provided in the response of this API.
|
|
2026
|
+
* </p>
|
|
2027
|
+
*/
|
|
2028
|
+
RehydrationType?: RehydrationType | string;
|
|
2029
|
+
/**
|
|
2030
|
+
* <p>The contactId from which a persistent chat session must be started.</p>
|
|
2031
|
+
*/
|
|
2032
|
+
SourceContactId?: string;
|
|
2033
|
+
}
|
|
1995
2034
|
export interface StartChatContactRequest {
|
|
1996
2035
|
/**
|
|
1997
2036
|
* <p>The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.</p>
|
|
@@ -2037,12 +2076,19 @@ export interface StartChatContactRequest {
|
|
|
2037
2076
|
*/
|
|
2038
2077
|
ChatDurationInMinutes?: number;
|
|
2039
2078
|
/**
|
|
2040
|
-
* <p>The supported chat message content types. Content types must always contain
|
|
2041
|
-
*
|
|
2042
|
-
* because they contain <code>text/plain</code>: <code>[text/plain,
|
|
2043
|
-
*
|
|
2079
|
+
* <p>The supported chat message content types. Content types must always contain
|
|
2080
|
+
* <code>text/plain</code>. You can then put any other supported type in the list. For example, all
|
|
2081
|
+
* the following lists are valid because they contain <code>text/plain</code>: <code>[text/plain,
|
|
2082
|
+
* text/markdown, application/json]</code>, <code>[text/markdown, text/plain]</code>,
|
|
2083
|
+
* <code>[text/plain, application/json]</code>.</p>
|
|
2044
2084
|
*/
|
|
2045
2085
|
SupportedMessagingContentTypes?: string[];
|
|
2086
|
+
/**
|
|
2087
|
+
* <p>Enable persistent chats. For more
|
|
2088
|
+
* information about enabling persistent chat, and for example use cases and how to configure for them, see
|
|
2089
|
+
* <a href="https://docs.aws.amazon.com/connect/latest/adminguide/chat-persistence.html">Enable persistent chat</a>.</p>
|
|
2090
|
+
*/
|
|
2091
|
+
PersistentChat?: PersistentChat;
|
|
2046
2092
|
}
|
|
2047
2093
|
export interface StartChatContactResponse {
|
|
2048
2094
|
/**
|
|
@@ -2059,6 +2105,11 @@ export interface StartChatContactResponse {
|
|
|
2059
2105
|
* participant.</p>
|
|
2060
2106
|
*/
|
|
2061
2107
|
ParticipantToken?: string;
|
|
2108
|
+
/**
|
|
2109
|
+
* <p>The contactId from which a persistent chat session is started. This field is populated only
|
|
2110
|
+
* for persistent chats.</p>
|
|
2111
|
+
*/
|
|
2112
|
+
ContinuedFromContactId?: string;
|
|
2062
2113
|
}
|
|
2063
2114
|
export declare enum VoiceRecordingTrack {
|
|
2064
2115
|
ALL = "ALL",
|
|
@@ -2535,8 +2586,8 @@ export interface UpdateContactFlowContentRequest {
|
|
|
2535
2586
|
*/
|
|
2536
2587
|
ContactFlowId: string | undefined;
|
|
2537
2588
|
/**
|
|
2538
|
-
* <p>The JSON string that represents flow's content. For an example, see <a href="https://docs.aws.amazon.com/connect/latest/APIReference/flow-language-example.html">Example
|
|
2539
|
-
* flow in Amazon Connect Flow language</a>. </p>
|
|
2589
|
+
* <p>The JSON string that represents flow's content. For an example, see <a href="https://docs.aws.amazon.com/connect/latest/APIReference/flow-language-example.html">Example
|
|
2590
|
+
* contact flow in Amazon Connect Flow language</a>. </p>
|
|
2540
2591
|
*/
|
|
2541
2592
|
Content: string | undefined;
|
|
2542
2593
|
}
|
|
@@ -2724,7 +2775,8 @@ export declare enum ParticipantTimerAction {
|
|
|
2724
2775
|
export declare type ParticipantTimerValue = ParticipantTimerValue.ParticipantTimerActionMember | ParticipantTimerValue.ParticipantTimerDurationInMinutesMember | ParticipantTimerValue.$UnknownMember;
|
|
2725
2776
|
export declare namespace ParticipantTimerValue {
|
|
2726
2777
|
/**
|
|
2727
|
-
* <p>The timer action. Currently only one value is allowed: <code>Unset</code>. It deletes a
|
|
2778
|
+
* <p>The timer action. Currently only one value is allowed: <code>Unset</code>. It deletes a
|
|
2779
|
+
* timer.</p>
|
|
2728
2780
|
*/
|
|
2729
2781
|
interface ParticipantTimerActionMember {
|
|
2730
2782
|
ParticipantTimerAction: ParticipantTimerAction | string;
|
|
@@ -2764,9 +2816,9 @@ export interface ParticipantTimerConfiguration {
|
|
|
2764
2816
|
*/
|
|
2765
2817
|
ParticipantRole: TimerEligibleParticipantRoles | string | undefined;
|
|
2766
2818
|
/**
|
|
2767
|
-
* <p>The type of timer. <code>IDLE</code> indicates the timer applies for considering a human
|
|
2768
|
-
* <code>DISCONNECT_NONCUSTOMER</code> indicates the timer applies to
|
|
2769
|
-
* idleness.</p>
|
|
2819
|
+
* <p>The type of timer. <code>IDLE</code> indicates the timer applies for considering a human
|
|
2820
|
+
* chat participant as idle. <code>DISCONNECT_NONCUSTOMER</code> indicates the timer applies to
|
|
2821
|
+
* automatically disconnecting a chat participant due to idleness.</p>
|
|
2770
2822
|
*/
|
|
2771
2823
|
TimerType: ParticipantTimerType | string | undefined;
|
|
2772
2824
|
/**
|
|
@@ -3972,6 +4024,10 @@ export declare const ChatMessageFilterSensitiveLog: (obj: ChatMessage) => any;
|
|
|
3972
4024
|
* @internal
|
|
3973
4025
|
*/
|
|
3974
4026
|
export declare const ParticipantDetailsFilterSensitiveLog: (obj: ParticipantDetails) => any;
|
|
4027
|
+
/**
|
|
4028
|
+
* @internal
|
|
4029
|
+
*/
|
|
4030
|
+
export declare const PersistentChatFilterSensitiveLog: (obj: PersistentChat) => any;
|
|
3975
4031
|
/**
|
|
3976
4032
|
* @internal
|
|
3977
4033
|
*/
|
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
} from "@aws-sdk/smithy-client";
|
|
32
32
|
import {
|
|
33
33
|
BodyLengthCalculator as __BodyLengthCalculator,
|
|
34
|
+
ChecksumConstructor as __ChecksumConstructor,
|
|
34
35
|
Credentials as __Credentials,
|
|
35
36
|
Decoder as __Decoder,
|
|
36
37
|
Encoder as __Encoder,
|
|
@@ -1067,7 +1068,7 @@ export declare type ServiceOutputTypes =
|
|
|
1067
1068
|
export interface ClientDefaults
|
|
1068
1069
|
extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
1069
1070
|
requestHandler?: __HttpHandler;
|
|
1070
|
-
sha256?: __HashConstructor;
|
|
1071
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
1071
1072
|
urlParser?: __UrlParser;
|
|
1072
1073
|
bodyLengthChecker?: __BodyLengthCalculator;
|
|
1073
1074
|
streamCollector?: __StreamCollector;
|
|
@@ -695,6 +695,14 @@ export interface ChatMessage {
|
|
|
695
695
|
export interface ParticipantDetails {
|
|
696
696
|
DisplayName: string | undefined;
|
|
697
697
|
}
|
|
698
|
+
export declare enum RehydrationType {
|
|
699
|
+
ENTIRE_PAST_SESSION = "ENTIRE_PAST_SESSION",
|
|
700
|
+
FROM_SEGMENT = "FROM_SEGMENT",
|
|
701
|
+
}
|
|
702
|
+
export interface PersistentChat {
|
|
703
|
+
RehydrationType?: RehydrationType | string;
|
|
704
|
+
SourceContactId?: string;
|
|
705
|
+
}
|
|
698
706
|
export interface StartChatContactRequest {
|
|
699
707
|
InstanceId: string | undefined;
|
|
700
708
|
ContactFlowId: string | undefined;
|
|
@@ -704,11 +712,13 @@ export interface StartChatContactRequest {
|
|
|
704
712
|
ClientToken?: string;
|
|
705
713
|
ChatDurationInMinutes?: number;
|
|
706
714
|
SupportedMessagingContentTypes?: string[];
|
|
715
|
+
PersistentChat?: PersistentChat;
|
|
707
716
|
}
|
|
708
717
|
export interface StartChatContactResponse {
|
|
709
718
|
ContactId?: string;
|
|
710
719
|
ParticipantId?: string;
|
|
711
720
|
ParticipantToken?: string;
|
|
721
|
+
ContinuedFromContactId?: string;
|
|
712
722
|
}
|
|
713
723
|
export declare enum VoiceRecordingTrack {
|
|
714
724
|
ALL = "ALL",
|
|
@@ -1520,6 +1530,9 @@ export declare const ChatMessageFilterSensitiveLog: (obj: ChatMessage) => any;
|
|
|
1520
1530
|
export declare const ParticipantDetailsFilterSensitiveLog: (
|
|
1521
1531
|
obj: ParticipantDetails
|
|
1522
1532
|
) => any;
|
|
1533
|
+
export declare const PersistentChatFilterSensitiveLog: (
|
|
1534
|
+
obj: PersistentChat
|
|
1535
|
+
) => any;
|
|
1523
1536
|
export declare const StartChatContactRequestFilterSensitiveLog: (
|
|
1524
1537
|
obj: StartChatContactRequest
|
|
1525
1538
|
) => any;
|
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.
|
|
4
|
+
"version": "3.254.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",
|
|
@@ -11,46 +11,46 @@
|
|
|
11
11
|
"build:types": "tsc -p tsconfig.types.json",
|
|
12
12
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
13
13
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
14
|
-
"generate:client": "
|
|
14
|
+
"generate:client": "node ../../scripts/generate-clients/single-service --solo connect"
|
|
15
15
|
},
|
|
16
16
|
"main": "./dist-cjs/index.js",
|
|
17
17
|
"types": "./dist-types/index.d.ts",
|
|
18
18
|
"module": "./dist-es/index.js",
|
|
19
19
|
"sideEffects": false,
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@aws-crypto/sha256-browser": "
|
|
22
|
-
"@aws-crypto/sha256-js": "
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/config-resolver": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
27
|
-
"@aws-sdk/hash-node": "3.
|
|
28
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
29
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
30
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
31
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
32
|
-
"@aws-sdk/middleware-logger": "3.
|
|
33
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
34
|
-
"@aws-sdk/middleware-retry": "3.
|
|
35
|
-
"@aws-sdk/middleware-serde": "3.
|
|
36
|
-
"@aws-sdk/middleware-signing": "3.
|
|
37
|
-
"@aws-sdk/middleware-stack": "3.
|
|
38
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
-
"@aws-sdk/node-config-provider": "3.
|
|
40
|
-
"@aws-sdk/node-http-handler": "3.
|
|
41
|
-
"@aws-sdk/protocol-http": "3.
|
|
42
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
-
"@aws-sdk/types": "3.
|
|
44
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
|
+
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
+
"@aws-sdk/client-sts": "3.254.0",
|
|
24
|
+
"@aws-sdk/config-resolver": "3.254.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.254.0",
|
|
26
|
+
"@aws-sdk/fetch-http-handler": "3.254.0",
|
|
27
|
+
"@aws-sdk/hash-node": "3.254.0",
|
|
28
|
+
"@aws-sdk/invalid-dependency": "3.254.0",
|
|
29
|
+
"@aws-sdk/middleware-content-length": "3.254.0",
|
|
30
|
+
"@aws-sdk/middleware-endpoint": "3.254.0",
|
|
31
|
+
"@aws-sdk/middleware-host-header": "3.254.0",
|
|
32
|
+
"@aws-sdk/middleware-logger": "3.254.0",
|
|
33
|
+
"@aws-sdk/middleware-recursion-detection": "3.254.0",
|
|
34
|
+
"@aws-sdk/middleware-retry": "3.254.0",
|
|
35
|
+
"@aws-sdk/middleware-serde": "3.254.0",
|
|
36
|
+
"@aws-sdk/middleware-signing": "3.254.0",
|
|
37
|
+
"@aws-sdk/middleware-stack": "3.254.0",
|
|
38
|
+
"@aws-sdk/middleware-user-agent": "3.254.0",
|
|
39
|
+
"@aws-sdk/node-config-provider": "3.254.0",
|
|
40
|
+
"@aws-sdk/node-http-handler": "3.254.0",
|
|
41
|
+
"@aws-sdk/protocol-http": "3.254.0",
|
|
42
|
+
"@aws-sdk/smithy-client": "3.254.0",
|
|
43
|
+
"@aws-sdk/types": "3.254.0",
|
|
44
|
+
"@aws-sdk/url-parser": "3.254.0",
|
|
45
45
|
"@aws-sdk/util-base64": "3.208.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-retry": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.254.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.254.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.254.0",
|
|
51
|
+
"@aws-sdk/util-retry": "3.254.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-browser": "3.254.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-node": "3.254.0",
|
|
54
54
|
"@aws-sdk/util-utf8-browser": "3.188.0",
|
|
55
55
|
"@aws-sdk/util-utf8-node": "3.208.0",
|
|
56
56
|
"tslib": "^2.3.1",
|