@aws-sdk/client-connect 3.1111.0 → 3.1112.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 (78) hide show
  1. package/README.md +35 -0
  2. package/dist-cjs/index.js +206 -9
  3. package/dist-es/Connect.js +12 -0
  4. package/dist-es/commands/CreateExtractionDefinitionCommand.js +4 -0
  5. package/dist-es/commands/DeleteExtractionDefinitionCommand.js +4 -0
  6. package/dist-es/commands/DescribeExtractionDefinitionCommand.js +4 -0
  7. package/dist-es/commands/ListExtractionDefinitionsCommand.js +4 -0
  8. package/dist-es/commands/UpdateExtractionDefinitionCommand.js +4 -0
  9. package/dist-es/commands/index.js +5 -0
  10. package/dist-es/models/enums.js +7 -0
  11. package/dist-es/pagination/ListExtractionDefinitionsPaginator.js +4 -0
  12. package/dist-es/pagination/index.js +1 -0
  13. package/dist-es/schemas/schemas_0.js +146 -8
  14. package/dist-types/Connect.d.ts +42 -0
  15. package/dist-types/ConnectClient.d.ts +7 -2
  16. package/dist-types/commands/CreateExtractionDefinitionCommand.d.ts +111 -0
  17. package/dist-types/commands/CreateRuleCommand.d.ts +9 -2
  18. package/dist-types/commands/CreateTestCaseCommand.d.ts +1 -1
  19. package/dist-types/commands/CreateTrafficDistributionGroupCommand.d.ts +1 -1
  20. package/dist-types/commands/CreateUseCaseCommand.d.ts +1 -1
  21. package/dist-types/commands/DeleteExtractionDefinitionCommand.d.ts +85 -0
  22. package/dist-types/commands/DescribeExtractionDefinitionCommand.d.ts +107 -0
  23. package/dist-types/commands/DescribeRuleCommand.d.ts +9 -2
  24. package/dist-types/commands/GetCurrentMetricDataCommand.d.ts +1 -1
  25. package/dist-types/commands/GetCurrentUserDataCommand.d.ts +1 -2
  26. package/dist-types/commands/ListExtractionDefinitionsCommand.d.ts +98 -0
  27. package/dist-types/commands/ListRulesCommand.d.ts +3 -3
  28. package/dist-types/commands/SearchContactEvaluationsCommand.d.ts +1 -1
  29. package/dist-types/commands/SearchContactFlowModulesCommand.d.ts +1 -1
  30. package/dist-types/commands/SearchRulesCommand.d.ts +2 -2
  31. package/dist-types/commands/StartAssistantContactCommand.d.ts +4 -1
  32. package/dist-types/commands/UpdateExtractionDefinitionCommand.d.ts +100 -0
  33. package/dist-types/commands/UpdateRuleCommand.d.ts +8 -1
  34. package/dist-types/commands/UpdateViewMetadataCommand.d.ts +2 -1
  35. package/dist-types/commands/UpdateWorkspaceMetadataCommand.d.ts +1 -1
  36. package/dist-types/commands/UpdateWorkspacePageCommand.d.ts +1 -1
  37. package/dist-types/commands/UpdateWorkspaceThemeCommand.d.ts +1 -1
  38. package/dist-types/commands/UpdateWorkspaceVisibilityCommand.d.ts +1 -1
  39. package/dist-types/commands/index.d.ts +5 -0
  40. package/dist-types/models/enums.d.ts +15 -0
  41. package/dist-types/models/models_0.d.ts +128 -188
  42. package/dist-types/models/models_1.d.ts +285 -492
  43. package/dist-types/models/models_2.d.ts +1736 -1606
  44. package/dist-types/models/models_3.d.ts +2192 -2081
  45. package/dist-types/models/models_4.d.ts +367 -7
  46. package/dist-types/pagination/ListExtractionDefinitionsPaginator.d.ts +7 -0
  47. package/dist-types/pagination/index.d.ts +1 -0
  48. package/dist-types/schemas/schemas_0.d.ts +22 -0
  49. package/dist-types/ts3.4/Connect.d.ts +92 -0
  50. package/dist-types/ts3.4/ConnectClient.d.ts +30 -0
  51. package/dist-types/ts3.4/commands/CreateExtractionDefinitionCommand.d.ts +42 -0
  52. package/dist-types/ts3.4/commands/CreateTestCaseCommand.d.ts +1 -1
  53. package/dist-types/ts3.4/commands/CreateTrafficDistributionGroupCommand.d.ts +1 -1
  54. package/dist-types/ts3.4/commands/CreateUseCaseCommand.d.ts +1 -1
  55. package/dist-types/ts3.4/commands/DeleteExtractionDefinitionCommand.d.ts +42 -0
  56. package/dist-types/ts3.4/commands/DescribeExtractionDefinitionCommand.d.ts +42 -0
  57. package/dist-types/ts3.4/commands/GetCurrentMetricDataCommand.d.ts +1 -1
  58. package/dist-types/ts3.4/commands/GetCurrentUserDataCommand.d.ts +1 -2
  59. package/dist-types/ts3.4/commands/ListExtractionDefinitionsCommand.d.ts +42 -0
  60. package/dist-types/ts3.4/commands/SearchContactEvaluationsCommand.d.ts +1 -1
  61. package/dist-types/ts3.4/commands/SearchContactFlowModulesCommand.d.ts +1 -1
  62. package/dist-types/ts3.4/commands/UpdateExtractionDefinitionCommand.d.ts +42 -0
  63. package/dist-types/ts3.4/commands/UpdateViewMetadataCommand.d.ts +2 -1
  64. package/dist-types/ts3.4/commands/UpdateWorkspaceMetadataCommand.d.ts +1 -1
  65. package/dist-types/ts3.4/commands/UpdateWorkspacePageCommand.d.ts +1 -1
  66. package/dist-types/ts3.4/commands/UpdateWorkspaceThemeCommand.d.ts +1 -1
  67. package/dist-types/ts3.4/commands/UpdateWorkspaceVisibilityCommand.d.ts +1 -1
  68. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  69. package/dist-types/ts3.4/models/enums.d.ts +8 -0
  70. package/dist-types/ts3.4/models/models_0.d.ts +31 -46
  71. package/dist-types/ts3.4/models/models_1.d.ts +72 -72
  72. package/dist-types/ts3.4/models/models_2.d.ts +89 -102
  73. package/dist-types/ts3.4/models/models_3.d.ts +112 -104
  74. package/dist-types/ts3.4/models/models_4.d.ts +109 -14
  75. package/dist-types/ts3.4/pagination/ListExtractionDefinitionsPaginator.d.ts +11 -0
  76. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  77. package/dist-types/ts3.4/schemas/schemas_0.d.ts +22 -0
  78. package/package.json +1 -1
@@ -1,5 +1,192 @@
1
- import type { AgentAvailabilityTimer, AttachmentScope, AutoEvaluationStatus, AvailableFilterType, Channel, ContactField, ContactFlowModuleState, ContactFlowModuleStatus, ContactFlowState, ContactFlowStatus, ContactFlowType, ContactMetricName, ContactParticipantRole, ContactState, CurrentMetricName, DataTableAttributeValueType, DataTableLockLevel, DataTableStatus, DirectoryType, EndpointType, EntityType, EvaluationQuestionAnswerAnalysisType, EvaluationStatus, EvaluationSuggestedAnswerStatus, EvaluationTranscriptType, EvaluationType, FileStatusType, FileUseCaseType, FlowAssociationResourceType, Grouping, InstanceAttributeType, InstanceReplicationStatus, InstanceStatus, InstanceStorageResourceType, LocaleCode, MediaStreamType, MediaType, MetricCreationMethod, MetricStatus, MetricType, MetricUnit, NextContactType, NotificationPriority, OverrideType, ParticipantType, PerformanceCategoryName, PhoneNumberCountryCode, PhoneNumberType, PhoneNumberWorkflowStatus, PhoneType, QuestionRuleCategoryAutomationCondition, QueueStatus, QuickConnectType, RecordingStatus, RuleCapabilityTier, RulePublishStatus, SortOrder, Status, StorageType, TestCaseStatus, TrafficDistributionGroupStatus, TrendIndicator, Unit, ViewStatus, ViewType, Visibility, VocabularyLanguageCode, VocabularyState, VoiceEnhancementMode, WorkspaceFontFamily } from "./enums";
2
- import type { AfterContactWorkConfigPerChannel, AgentQualityMetrics, AgentsCriteria, AgentStatus, AgentStatusIdentifier, AiAgentInfo, AliasConfiguration, AllowedExtension, AudioQualityMetricsInfo, CreatedByInfo, DataTableLockVersion, DeviceInfo, ExternalInvocationConfiguration, FailedBatchAssociationSummary, GranularAccessControlConfiguration, HoursOfOperationConfig, HoursOfOperationOverrideConfig, InstanceStorageConfig, LexBot, LexV2Bot, MediaConcurrency, MetricCalculation, OutboundCallerConfig, OutboundEmailConfig, ParticipantCapabilities, PredefinedAttributeValues, PrimaryValue, QueueReference, QuickConnectConfig, RecurrenceConfig, RoutingProfileQueueReference, RuleAction, RuleTriggerEventSource, SecurityProfileItem, SuccessfulBatchAssociationSummary, TestCaseEntryPoint, Validation } from "./models_0";
1
+ import type { AgentAvailabilityTimer, AttachmentScope, AutoEvaluationStatus, AvailableFilterType, Channel, ContactField, ContactFlowModuleState, ContactFlowModuleStatus, ContactFlowState, ContactFlowStatus, ContactFlowType, ContactMetricName, ContactParticipantRole, CurrentMetricName, DataTableAttributeValueType, DataTableLockLevel, DataTableStatus, DirectoryType, EndpointType, EntityType, EvaluationQuestionAnswerAnalysisType, EvaluationStatus, EvaluationSuggestedAnswerStatus, EvaluationTranscriptType, EvaluationType, FileStatusType, FileUseCaseType, FlowAssociationResourceType, InstanceAttributeType, InstanceReplicationStatus, InstanceStatus, InstanceStorageResourceType, LocaleCode, MediaStreamType, MediaType, MetricCreationMethod, MetricStatus, MetricType, MetricUnit, NextContactType, NotificationPriority, OverrideType, ParticipantType, PerformanceCategoryName, PhoneNumberCountryCode, PhoneNumberType, PhoneNumberWorkflowStatus, PhoneType, QuestionRuleCategoryAutomationCondition, QueueStatus, QuickConnectType, RecordingStatus, RuleCapabilityTier, RulePublishStatus, SortOrder, Status, StorageType, TestCaseEntryPointType, TestCaseStatus, TrafficDistributionGroupStatus, TrendIndicator, Unit, UseCaseType, ViewStatus, ViewType, Visibility, VocabularyLanguageCode, VocabularyState, VoiceEnhancementMode, WorkspaceFontFamily } from "./enums";
2
+ import type { AfterContactWorkConfigPerChannel, AgentQualityMetrics, AgentsCriteria, AgentStatus, AiAgentInfo, AliasConfiguration, AllowedExtension, AudioQualityMetricsInfo, ChatEntryPointParameters, CreatedByInfo, DataTableLockVersion, DeviceInfo, ExternalInvocationConfiguration, ExtractionConfiguration, ExtractionDefinitionDisplay, FailedBatchAssociationSummary, GranularAccessControlConfiguration, HoursOfOperationConfig, HoursOfOperationOverrideConfig, InstanceStorageConfig, LexBot, LexV2Bot, MediaConcurrency, MetricCalculation, OutboundCallerConfig, OutboundEmailConfig, ParticipantCapabilities, PredefinedAttributeValues, PrimaryValue, QuickConnectConfig, RecurrenceConfig, RoutingProfileQueueReference, RuleAction, RuleTriggerEventSource, SecurityProfileItem, SuccessfulBatchAssociationSummary, Validation, VoiceCallEntryPointParameters } from "./models_0";
3
+ /**
4
+ * <p>Defines the starting point for a test case.</p>
5
+ * @public
6
+ */
7
+ export interface TestCaseEntryPoint {
8
+ /**
9
+ * <p>The type of entry point.</p>
10
+ * @public
11
+ */
12
+ Type?: TestCaseEntryPointType | undefined;
13
+ /**
14
+ * <p>Parameters for voice call entry point.</p>
15
+ * @public
16
+ */
17
+ VoiceCallEntryPointParameters?: VoiceCallEntryPointParameters | undefined;
18
+ /**
19
+ * <p>Parameters for chat entry point.</p>
20
+ * @public
21
+ */
22
+ ChatEntryPointParameters?: ChatEntryPointParameters | undefined;
23
+ }
24
+ /**
25
+ * @public
26
+ */
27
+ export interface CreateTestCaseRequest {
28
+ /**
29
+ * <p>The identifier of the Amazon Connect instance.</p>
30
+ * @public
31
+ */
32
+ InstanceId: string | undefined;
33
+ /**
34
+ * <p>The name of the test.</p>
35
+ * @public
36
+ */
37
+ Name: string | undefined;
38
+ /**
39
+ * <p>The description of the test.</p>
40
+ * @public
41
+ */
42
+ Description?: string | undefined;
43
+ /**
44
+ * <p>The JSON string that represents the content of the test.</p>
45
+ * @public
46
+ */
47
+ Content: string | undefined;
48
+ /**
49
+ * <p>Defines the starting point for your test.</p>
50
+ * @public
51
+ */
52
+ EntryPoint?: TestCaseEntryPoint | undefined;
53
+ /**
54
+ * <p>Defines the initial custom attributes for your test.</p>
55
+ * @public
56
+ */
57
+ InitializationData?: string | undefined;
58
+ /**
59
+ * <p>Indicates the test status as either SAVED or PUBLISHED. The PUBLISHED status will initiate validation on the content. The SAVED status does not initiate validation of the content.</p>
60
+ * @public
61
+ */
62
+ Status?: TestCaseStatus | undefined;
63
+ /**
64
+ * <p>Id of the test case if you want to create it in a replica region using Amazon Connect Global Resiliency</p>
65
+ * @public
66
+ */
67
+ TestCaseId?: string | undefined;
68
+ /**
69
+ * <p>The tags used to organize, track, or control access for this resource.</p>
70
+ * @public
71
+ */
72
+ Tags?: Record<string, string> | undefined;
73
+ /**
74
+ * <p>The time at which the resource was last modified.</p>
75
+ * @public
76
+ */
77
+ LastModifiedTime?: Date | undefined;
78
+ /**
79
+ * <p>The region in which the resource was last modified</p>
80
+ * @public
81
+ */
82
+ LastModifiedRegion?: string | undefined;
83
+ }
84
+ /**
85
+ * @public
86
+ */
87
+ export interface CreateTestCaseResponse {
88
+ /**
89
+ * <p>The identifier of the test.</p>
90
+ * @public
91
+ */
92
+ TestCaseId?: string | undefined;
93
+ /**
94
+ * <p>The Amazon Resource Name (ARN) of the test.</p>
95
+ * @public
96
+ */
97
+ TestCaseArn?: string | undefined;
98
+ }
99
+ /**
100
+ * @public
101
+ */
102
+ export interface CreateTrafficDistributionGroupRequest {
103
+ /**
104
+ * <p>The name for the traffic distribution group. </p>
105
+ * @public
106
+ */
107
+ Name: string | undefined;
108
+ /**
109
+ * <p>A description for the traffic distribution group.</p>
110
+ * @public
111
+ */
112
+ Description?: string | undefined;
113
+ /**
114
+ * <p>The identifier of the Connect Customer instance that has been replicated. You can find the
115
+ * <code>instanceId</code> in the ARN of the instance.</p>
116
+ * @public
117
+ */
118
+ InstanceId: string | undefined;
119
+ /**
120
+ * <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the
121
+ * request. If not provided, the Amazon Web Services
122
+ * SDK populates this field. For more information about idempotency, see
123
+ * <a href="https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making retries safe with idempotent APIs</a>.</p>
124
+ * @public
125
+ */
126
+ ClientToken?: string | undefined;
127
+ /**
128
+ * <p>The tags used to organize, track, or control access for this resource. For example, \{ "Tags": \{"key1":"value1", "key2":"value2"\} \}.</p>
129
+ * @public
130
+ */
131
+ Tags?: Record<string, string> | undefined;
132
+ }
133
+ /**
134
+ * @public
135
+ */
136
+ export interface CreateTrafficDistributionGroupResponse {
137
+ /**
138
+ * <p>The identifier of the traffic distribution group.
139
+ * This can be the ID or the ARN of the traffic distribution group.</p>
140
+ * @public
141
+ */
142
+ Id?: string | undefined;
143
+ /**
144
+ * <p>The Amazon Resource Name (ARN) of the traffic distribution group.</p>
145
+ * @public
146
+ */
147
+ Arn?: string | undefined;
148
+ }
149
+ /**
150
+ * @public
151
+ */
152
+ export interface CreateUseCaseRequest {
153
+ /**
154
+ * <p>The identifier of the Connect Customer instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
155
+ * @public
156
+ */
157
+ InstanceId: string | undefined;
158
+ /**
159
+ * <p>The identifier for the integration association.</p>
160
+ * @public
161
+ */
162
+ IntegrationAssociationId: string | undefined;
163
+ /**
164
+ * <p>The type of use case to associate to the integration association. Each integration association can have only one
165
+ * of each use case type.</p>
166
+ * @public
167
+ */
168
+ UseCaseType: UseCaseType | undefined;
169
+ /**
170
+ * <p>The tags used to organize, track, or control access for this resource. For example, \{ "Tags": \{"key1":"value1", "key2":"value2"\} \}.</p>
171
+ * @public
172
+ */
173
+ Tags?: Record<string, string> | undefined;
174
+ }
175
+ /**
176
+ * @public
177
+ */
178
+ export interface CreateUseCaseResponse {
179
+ /**
180
+ * <p>The identifier of the use case.</p>
181
+ * @public
182
+ */
183
+ UseCaseId?: string | undefined;
184
+ /**
185
+ * <p>The Amazon Resource Name (ARN) for the use case.</p>
186
+ * @public
187
+ */
188
+ UseCaseArn?: string | undefined;
189
+ }
3
190
  /**
4
191
  * <p>Configuration settings for auto-accept for a specific channel.</p>
5
192
  * @public
@@ -1233,6 +1420,26 @@ export interface DeleteEvaluationFormRequest {
1233
1420
  */
1234
1421
  EvaluationFormVersion?: number | undefined;
1235
1422
  }
1423
+ /**
1424
+ * @public
1425
+ */
1426
+ export interface DeleteExtractionDefinitionRequest {
1427
+ /**
1428
+ * <p>The identifier of the Connect Customer instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
1429
+ * @public
1430
+ */
1431
+ InstanceId: string | undefined;
1432
+ /**
1433
+ * <p>The identifier of the extraction definition to delete.</p>
1434
+ * @public
1435
+ */
1436
+ ExtractionDefinitionId: string | undefined;
1437
+ }
1438
+ /**
1439
+ * @public
1440
+ */
1441
+ export interface DeleteExtractionDefinitionResponse {
1442
+ }
1236
1443
  /**
1237
1444
  * @public
1238
1445
  */
@@ -3723,6 +3930,82 @@ export interface DescribeEvaluationFormRequest {
3723
3930
  */
3724
3931
  EvaluationFormVersion?: number | undefined;
3725
3932
  }
3933
+ /**
3934
+ * @public
3935
+ */
3936
+ export interface DescribeExtractionDefinitionRequest {
3937
+ /**
3938
+ * <p>The identifier of the Connect Customer instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
3939
+ * @public
3940
+ */
3941
+ InstanceId: string | undefined;
3942
+ /**
3943
+ * <p>The identifier of the extraction definition to describe.</p>
3944
+ * @public
3945
+ */
3946
+ ExtractionDefinitionId: string | undefined;
3947
+ }
3948
+ /**
3949
+ * <p>Information about an extraction definition.</p>
3950
+ * @public
3951
+ */
3952
+ export interface ExtractionDefinition {
3953
+ /**
3954
+ * <p>The name of the extraction definition.</p>
3955
+ * @public
3956
+ */
3957
+ Name: string | undefined;
3958
+ /**
3959
+ * <p>The identifier of the extraction definition.</p>
3960
+ * @public
3961
+ */
3962
+ ExtractionDefinitionId: string | undefined;
3963
+ /**
3964
+ * <p>The Amazon Resource Name (ARN) of the extraction definition.</p>
3965
+ * @public
3966
+ */
3967
+ ExtractionDefinitionArn: string | undefined;
3968
+ /**
3969
+ * <p>The configuration that defines how data is extracted.</p>
3970
+ * @public
3971
+ */
3972
+ ExtractionConfiguration: ExtractionConfiguration | undefined;
3973
+ /**
3974
+ * <p>The display settings for the extraction definition.</p>
3975
+ * @public
3976
+ */
3977
+ Display?: ExtractionDefinitionDisplay | undefined;
3978
+ /**
3979
+ * <p>The timestamp when the extraction definition was created.</p>
3980
+ * @public
3981
+ */
3982
+ CreatedTime: Date | undefined;
3983
+ /**
3984
+ * <p>The timestamp when the extraction definition was last updated.</p>
3985
+ * @public
3986
+ */
3987
+ LastUpdatedTime: Date | undefined;
3988
+ /**
3989
+ * <p>The Amazon Resource Name (ARN) of the user who last updated the extraction definition.</p>
3990
+ * @public
3991
+ */
3992
+ LastUpdatedBy: string | undefined;
3993
+ /**
3994
+ * <p>The tags used to organize, track, or control access for this resource.</p>
3995
+ * @public
3996
+ */
3997
+ Tags?: Record<string, string> | undefined;
3998
+ }
3999
+ /**
4000
+ * @public
4001
+ */
4002
+ export interface DescribeExtractionDefinitionResponse {
4003
+ /**
4004
+ * <p>The extraction definition.</p>
4005
+ * @public
4006
+ */
4007
+ ExtractionDefinition: ExtractionDefinition | undefined;
4008
+ }
3726
4009
  /**
3727
4010
  * @public
3728
4011
  */
@@ -6850,493 +7133,3 @@ export interface CurrentMetricSortCriteria {
6850
7133
  */
6851
7134
  SortOrder?: SortOrder | undefined;
6852
7135
  }
6853
- /**
6854
- * @public
6855
- */
6856
- export interface GetCurrentMetricDataRequest {
6857
- /**
6858
- * <p>The identifier of the Connect Customer instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
6859
- * @public
6860
- */
6861
- InstanceId: string | undefined;
6862
- /**
6863
- * <p>The filters to apply to returned metrics. You can filter up to the following limits:</p>
6864
- * <ul>
6865
- * <li>
6866
- * <p>Queues: 100</p>
6867
- * </li>
6868
- * <li>
6869
- * <p>Routing profiles: 100</p>
6870
- * </li>
6871
- * <li>
6872
- * <p>Channels: 3 (VOICE, CHAT, and TASK channels are supported.)</p>
6873
- * </li>
6874
- * <li>
6875
- * <p>RoutingStepExpressions: 50</p>
6876
- * </li>
6877
- * <li>
6878
- * <p>AgentStatuses: 50</p>
6879
- * </li>
6880
- * <li>
6881
- * <p>Subtypes: 10</p>
6882
- * </li>
6883
- * <li>
6884
- * <p>ValidationTestTypes: 10</p>
6885
- * </li>
6886
- * </ul>
6887
- * <p>Metric data is retrieved only for the resources associated with the queues or routing profiles, and by any
6888
- * channels included in the filter. (You cannot filter by both queue AND routing profile.) You can include both resource
6889
- * IDs and resource ARNs in the same request.</p>
6890
- * <p>When using <code>AgentStatuses</code> as filter make sure Queues is added as primary filter.</p>
6891
- * <p>When using <code>Subtypes</code> as filter make sure Queues is added as primary filter.</p>
6892
- * <p>When using <code>ValidationTestTypes</code> as filter make sure Queues is added as primary filter.</p>
6893
- * <p>When using the <code>RoutingStepExpression</code> filter, you need to pass exactly one <code>QueueId</code>. The
6894
- * filter is also case sensitive so when using the <code>RoutingStepExpression</code> filter, grouping by
6895
- * <code>ROUTING_STEP_EXPRESSION</code> is required.</p>
6896
- * <p>Currently tagging is only supported on the resources that are passed in the filter.</p>
6897
- * @public
6898
- */
6899
- Filters: Filters | undefined;
6900
- /**
6901
- * <p>Defines the level of aggregation for metrics data by a dimension(s). Its similar to sorting items into buckets
6902
- * based on a common characteristic, then counting or calculating something for each bucket. For example, when grouped
6903
- * by <code>QUEUE</code>, the metrics returned apply to each queue rather than aggregated for all queues. </p>
6904
- * <p>The grouping list is an ordered list, with the first item in the list defined as the primary grouping. If no
6905
- * grouping is included in the request, the aggregation happens at the instance-level.</p>
6906
- * <ul>
6907
- * <li>
6908
- * <p>If you group by <code>CHANNEL</code>, you should include a Channels filter. VOICE, CHAT, and TASK channels are supported.</p>
6909
- * </li>
6910
- * <li>
6911
- * <p>If you group by <code>AGENT_STATUS</code>, you must include the <code>QUEUE</code> as the primary grouping and
6912
- * use queue filter. When you group by <code>AGENT_STATUS</code>, the only metric available is the
6913
- * <code>AGENTS_ONLINE</code> metric.</p>
6914
- * </li>
6915
- * <li>
6916
- * <p>If you group by <code>SUBTYPE</code> or <code>VALIDATION_TEST_TYPE</code> as secondary grouping then you must include <code>QUEUE</code> as
6917
- * primary grouping and use Queue as filter</p>
6918
- * </li>
6919
- * <li>
6920
- * <p>If you group by <code>ROUTING_PROFILE</code>, you must include either a queue or routing profile filter. In
6921
- * addition, a routing profile filter is required for metrics <code>CONTACTS_SCHEDULED</code>,
6922
- * <code>CONTACTS_IN_QUEUE</code>, and <code> OLDEST_CONTACT_AGE</code>.</p>
6923
- * </li>
6924
- * <li>
6925
- * <p>When using the <code>RoutingStepExpression</code> filter, group by <code>ROUTING_STEP_EXPRESSION</code> is
6926
- * required.</p>
6927
- * </li>
6928
- * </ul>
6929
- * @public
6930
- */
6931
- Groupings?: Grouping[] | undefined;
6932
- /**
6933
- * <p>The metrics to retrieve. Specify the name or metricId, and unit for each metric. The following metrics are available. For a
6934
- * description of all the metrics, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html">Metrics definitions</a> in the <i>Connect Customer Administrator Guide</i>.</p>
6935
- * <note>
6936
- * <p> MetricId should be used to reference custom metrics or out of the box metrics as Arn. If using MetricId, the limit is 10 MetricId per request.</p>
6937
- * </note>
6938
- * <dl>
6939
- * <dt>AGENTS_AFTER_CONTACT_WORK</dt>
6940
- * <dd>
6941
- * <p>Unit: COUNT</p>
6942
- * <p>Name in real-time metrics report: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#aftercallwork-real-time">ACW</a>
6943
- * </p>
6944
- * </dd>
6945
- * <dt>AGENTS_AVAILABLE</dt>
6946
- * <dd>
6947
- * <p>Unit: COUNT</p>
6948
- * <p>Name in real-time metrics report: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#available-real-time">Available</a>
6949
- * </p>
6950
- * </dd>
6951
- * <dt>AGENTS_ERROR</dt>
6952
- * <dd>
6953
- * <p>Unit: COUNT</p>
6954
- * <p>Name in real-time metrics report: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#error-real-time">Error</a>
6955
- * </p>
6956
- * </dd>
6957
- * <dt>AGENTS_NON_PRODUCTIVE</dt>
6958
- * <dd>
6959
- * <p>Unit: COUNT</p>
6960
- * <p>Name in real-time metrics report: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#non-productive-time-real-time">NPT (Non-Productive
6961
- * Time)</a>
6962
- * </p>
6963
- * </dd>
6964
- * <dt>AGENTS_ON_CALL</dt>
6965
- * <dd>
6966
- * <p>Unit: COUNT</p>
6967
- * <p>Name in real-time metrics report: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#on-call-real-time">On contact</a>
6968
- * </p>
6969
- * </dd>
6970
- * <dt>AGENTS_ON_CONTACT</dt>
6971
- * <dd>
6972
- * <p>Unit: COUNT</p>
6973
- * <p>Name in real-time metrics report: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#on-call-real-time">On contact</a>
6974
- * </p>
6975
- * </dd>
6976
- * <dt>AGENTS_ONLINE</dt>
6977
- * <dd>
6978
- * <p>Unit: COUNT</p>
6979
- * <p>Name in real-time metrics report: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#online-real-time">Online</a>
6980
- * </p>
6981
- * </dd>
6982
- * <dt>AGENTS_STAFFED</dt>
6983
- * <dd>
6984
- * <p>Unit: COUNT</p>
6985
- * <p>Name in real-time metrics report: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#staffed-real-time">Staffed</a>
6986
- * </p>
6987
- * </dd>
6988
- * <dt>CONTACTS_IN_QUEUE</dt>
6989
- * <dd>
6990
- * <p>Unit: COUNT</p>
6991
- * <p>Name in real-time metrics report: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#in-queue-real-time">In queue</a>
6992
- * </p>
6993
- * </dd>
6994
- * <dt>CONTACTS_SCHEDULED</dt>
6995
- * <dd>
6996
- * <p>Unit: COUNT</p>
6997
- * <p>Name in real-time metrics report: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#scheduled-real-time">Scheduled</a>
6998
- * </p>
6999
- * </dd>
7000
- * <dt>ESTIMATED_WAIT_TIME</dt>
7001
- * <dd>
7002
- * <p>Unit: SECONDS</p>
7003
- * <p>This metric supports filter and grouping combination only used for core routing purpose.
7004
- * Valid filter and grouping use cases:
7005
- * </p>
7006
- * <ul>
7007
- * <li>
7008
- * <p>Filter by a list of [Queues] and a list of [Channels], group by [“QUEUE”, “CHANNEL”]</p>
7009
- * </li>
7010
- * <li>
7011
- * <p>Filter by a singleton list of [Queue], a singleton list of [Channel], a list of [RoutingStepExpression], group by [“ROUTING_STEP_EXPRESSION”].</p>
7012
- * </li>
7013
- * </ul>
7014
- * </dd>
7015
- * <dt>OLDEST_CONTACT_AGE</dt>
7016
- * <dd>
7017
- * <p>Unit: SECONDS</p>
7018
- * <p>When you use groupings, Unit says SECONDS and the Value is returned in SECONDS. </p>
7019
- * <p>When you do not use groupings, Unit says SECONDS but the Value is returned in MILLISECONDS. For example, if
7020
- * you get a response like this:</p>
7021
- * <p>
7022
- * <code>\{ "Metric": \{ "Name": "OLDEST_CONTACT_AGE", "Unit": "SECONDS" \}, "Value": 24113.0 </code>\}</p>
7023
- * <p>The actual OLDEST_CONTACT_AGE is 24 seconds.</p>
7024
- * <p>When the filter <code>RoutingStepExpression</code> is used, this metric is still calculated from enqueue
7025
- * time. For example, if a contact that has been queued under <code><Expression 1></code> for 10 seconds has
7026
- * expired and <code><Expression 2></code> becomes active, then <code>OLDEST_CONTACT_AGE</code> for this queue
7027
- * will be counted starting from 10, not 0.</p>
7028
- * <p>Name in real-time metrics report: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#oldest-real-time">Oldest</a>
7029
- * </p>
7030
- * </dd>
7031
- * <dt>SLOTS_ACTIVE</dt>
7032
- * <dd>
7033
- * <p>Unit: COUNT</p>
7034
- * <p>Name in real-time metrics report: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#active-real-time">Active</a>
7035
- * </p>
7036
- * </dd>
7037
- * <dt>SLOTS_AVAILABLE</dt>
7038
- * <dd>
7039
- * <p>Unit: COUNT</p>
7040
- * <p>Name in real-time metrics report: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#availability-real-time">Availability</a>
7041
- * </p>
7042
- * </dd>
7043
- * </dl>
7044
- * @public
7045
- */
7046
- CurrentMetrics: CurrentMetric[] | undefined;
7047
- /**
7048
- * <p>The token for the next set of results. Use the value returned in the previous
7049
- * response in the next request to retrieve the next set of results.</p>
7050
- * <p>The token expires after 5 minutes from the time it is created. Subsequent requests that use
7051
- * the token must use the same request parameters as the request that generated the token.</p>
7052
- * @public
7053
- */
7054
- NextToken?: string | undefined;
7055
- /**
7056
- * <p>The maximum number of results to return per page.</p>
7057
- * @public
7058
- */
7059
- MaxResults?: number | undefined;
7060
- /**
7061
- * <p>The way to sort the resulting response based on metrics. You can enter one sort criteria. By default resources
7062
- * are sorted based on <code>AGENTS_ONLINE</code>, <code>DESCENDING</code>. The metric collection is sorted based on the
7063
- * input metrics.</p>
7064
- * <p>Note the following:</p>
7065
- * <ul>
7066
- * <li>
7067
- * <p>Sorting on <code>SLOTS_ACTIVE</code> and <code>SLOTS_AVAILABLE</code> is not supported.</p>
7068
- * </li>
7069
- * </ul>
7070
- * @public
7071
- */
7072
- SortCriteria?: CurrentMetricSortCriteria[] | undefined;
7073
- }
7074
- /**
7075
- * <p>Contains the data for a real-time metric.</p>
7076
- * @public
7077
- */
7078
- export interface CurrentMetricData {
7079
- /**
7080
- * <p>Information about the metric.</p>
7081
- * @public
7082
- */
7083
- Metric?: CurrentMetric | undefined;
7084
- /**
7085
- * <p>The value of the metric.</p>
7086
- * @public
7087
- */
7088
- Value?: number | undefined;
7089
- }
7090
- /**
7091
- * <p>Information about the routing profile assigned to the user.</p>
7092
- * @public
7093
- */
7094
- export interface RoutingProfileReference {
7095
- /**
7096
- * <p>The identifier of the routing profile.</p>
7097
- * @public
7098
- */
7099
- Id?: string | undefined;
7100
- /**
7101
- * <p>The Amazon Resource Name (ARN) of the routing profile.</p>
7102
- * @public
7103
- */
7104
- Arn?: string | undefined;
7105
- }
7106
- /**
7107
- * <p>Contains information about the dimensions for a set of metrics.</p>
7108
- * @public
7109
- */
7110
- export interface Dimensions {
7111
- /**
7112
- * <p>Information about the queue for which metrics are returned.</p>
7113
- * @public
7114
- */
7115
- Queue?: QueueReference | undefined;
7116
- /**
7117
- * <p>The channel used for grouping and filters.</p>
7118
- * @public
7119
- */
7120
- Channel?: Channel | undefined;
7121
- /**
7122
- * <p>Information about the routing profile assigned to the user.</p>
7123
- * @public
7124
- */
7125
- RoutingProfile?: RoutingProfileReference | undefined;
7126
- /**
7127
- * <p>The expression of a step in a routing criteria.</p>
7128
- * @public
7129
- */
7130
- RoutingStepExpression?: string | undefined;
7131
- /**
7132
- * <p>Information about the agent status assigned to the user.</p>
7133
- * @public
7134
- */
7135
- AgentStatus?: AgentStatusIdentifier | undefined;
7136
- /**
7137
- * <p>The subtype of the channel used for the contact.</p>
7138
- * @public
7139
- */
7140
- Subtype?: string | undefined;
7141
- /**
7142
- * <p>The testing and simulation type</p>
7143
- * @public
7144
- */
7145
- ValidationTestType?: string | undefined;
7146
- }
7147
- /**
7148
- * <p>Contains information about a set of real-time metrics.</p>
7149
- * @public
7150
- */
7151
- export interface CurrentMetricResult {
7152
- /**
7153
- * <p>The dimensions for the metrics.</p>
7154
- * @public
7155
- */
7156
- Dimensions?: Dimensions | undefined;
7157
- /**
7158
- * <p>The set of metrics.</p>
7159
- * @public
7160
- */
7161
- Collections?: CurrentMetricData[] | undefined;
7162
- }
7163
- /**
7164
- * @public
7165
- */
7166
- export interface GetCurrentMetricDataResponse {
7167
- /**
7168
- * <p>If there are additional results, this is the token for the next set of results.</p>
7169
- * <p>The token expires after 5 minutes from the time it is created. Subsequent requests that use
7170
- * the token must use the same request parameters as the request that generated the token.</p>
7171
- * @public
7172
- */
7173
- NextToken?: string | undefined;
7174
- /**
7175
- * <p>Information about the real-time metrics.</p>
7176
- * @public
7177
- */
7178
- MetricResults?: CurrentMetricResult[] | undefined;
7179
- /**
7180
- * <p>The time at which the metrics were retrieved and cached for pagination.</p>
7181
- * @public
7182
- */
7183
- DataSnapshotTime?: Date | undefined;
7184
- /**
7185
- * <p>The total count of the result, regardless of the current page size. </p>
7186
- * @public
7187
- */
7188
- ApproximateTotalCount?: number | undefined;
7189
- }
7190
- /**
7191
- * <p>Filters user data based on the contact information that is associated to the users. It contains a list of <a href="https://docs.aws.amazon.com/connect/latest/adminguide/about-contact-states.html">contact states</a>.</p>
7192
- * @public
7193
- */
7194
- export interface ContactFilter {
7195
- /**
7196
- * <p>A list of up to 9 <a href="https://docs.aws.amazon.com/connect/latest/adminguide/about-contact-states.html">contact
7197
- * states</a>.</p>
7198
- * @public
7199
- */
7200
- ContactStates?: ContactState[] | undefined;
7201
- }
7202
- /**
7203
- * <p>A filter for the user data.</p>
7204
- * @public
7205
- */
7206
- export interface UserDataFilters {
7207
- /**
7208
- * <p>A list of up to 100 queues or ARNs.</p>
7209
- * @public
7210
- */
7211
- Queues?: string[] | undefined;
7212
- /**
7213
- * <p>A filter for the user data based on the contact information that is associated to the user. It contains a list
7214
- * of contact states. </p>
7215
- * @public
7216
- */
7217
- ContactFilter?: ContactFilter | undefined;
7218
- /**
7219
- * <p>A list of up to 100 routing profile IDs or ARNs.</p>
7220
- * @public
7221
- */
7222
- RoutingProfiles?: string[] | undefined;
7223
- /**
7224
- * <p>A list of up to 100 agent IDs or ARNs.</p>
7225
- * @public
7226
- */
7227
- Agents?: string[] | undefined;
7228
- /**
7229
- * <p>A UserHierarchyGroup ID or ARN.</p>
7230
- * @public
7231
- */
7232
- UserHierarchyGroups?: string[] | undefined;
7233
- }
7234
- /**
7235
- * @public
7236
- */
7237
- export interface GetCurrentUserDataRequest {
7238
- /**
7239
- * <p>The identifier of the Connect Customer instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
7240
- * @public
7241
- */
7242
- InstanceId: string | undefined;
7243
- /**
7244
- * <p>The filters to apply to returned user data. You can filter up to the following limits:</p>
7245
- * <ul>
7246
- * <li>
7247
- * <p>Queues: 100</p>
7248
- * </li>
7249
- * <li>
7250
- * <p>Routing profiles: 100</p>
7251
- * </li>
7252
- * <li>
7253
- * <p>Agents: 100</p>
7254
- * </li>
7255
- * <li>
7256
- * <p>Contact states: 9</p>
7257
- * </li>
7258
- * <li>
7259
- * <p>User hierarchy groups: 1</p>
7260
- * </li>
7261
- * </ul>
7262
- * <p> The user data is retrieved for only the specified values/resources in the filter. A maximum of one filter can
7263
- * be passed from queues, routing profiles, agents, and user hierarchy groups. </p>
7264
- * <p>Currently tagging is only supported on the resources that are passed in the filter.</p>
7265
- * @public
7266
- */
7267
- Filters: UserDataFilters | undefined;
7268
- /**
7269
- * <p>The token for the next set of results. Use the value returned in the previous
7270
- * response in the next request to retrieve the next set of results.</p>
7271
- * @public
7272
- */
7273
- NextToken?: string | undefined;
7274
- /**
7275
- * <p>The maximum number of results to return per page.</p>
7276
- * @public
7277
- */
7278
- MaxResults?: number | undefined;
7279
- }
7280
- /**
7281
- * <p>Information about the hierarchy group.</p>
7282
- * @public
7283
- */
7284
- export interface HierarchyGroupSummaryReference {
7285
- /**
7286
- * <p>The unique identifier for the hierarchy group.</p>
7287
- * @public
7288
- */
7289
- Id?: string | undefined;
7290
- /**
7291
- * <p>The Amazon Resource Name (ARN) for the hierarchy group. </p>
7292
- * @public
7293
- */
7294
- Arn?: string | undefined;
7295
- }
7296
- /**
7297
- * <p>Information about the levels in the hierarchy group.</p>
7298
- * @public
7299
- */
7300
- export interface HierarchyPathReference {
7301
- /**
7302
- * <p>Information about level one.</p>
7303
- * @public
7304
- */
7305
- LevelOne?: HierarchyGroupSummaryReference | undefined;
7306
- /**
7307
- * <p>Information about level two.</p>
7308
- * @public
7309
- */
7310
- LevelTwo?: HierarchyGroupSummaryReference | undefined;
7311
- /**
7312
- * <p>Information about level three.</p>
7313
- * @public
7314
- */
7315
- LevelThree?: HierarchyGroupSummaryReference | undefined;
7316
- /**
7317
- * <p>Information about level four.</p>
7318
- * @public
7319
- */
7320
- LevelFour?: HierarchyGroupSummaryReference | undefined;
7321
- /**
7322
- * <p>Information about level five.</p>
7323
- * @public
7324
- */
7325
- LevelFive?: HierarchyGroupSummaryReference | undefined;
7326
- }
7327
- /**
7328
- * <p>Information about the user.</p>
7329
- * @public
7330
- */
7331
- export interface UserReference {
7332
- /**
7333
- * <p>The unique identifier for the user.</p>
7334
- * @public
7335
- */
7336
- Id?: string | undefined;
7337
- /**
7338
- * <p>The Amazon Resource Name (ARN) for the user.</p>
7339
- * @public
7340
- */
7341
- Arn?: string | undefined;
7342
- }