@aws-sdk/client-connect 3.977.0 → 3.980.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/index.js +265 -175
- package/dist-es/Connect.js +173 -1
- package/dist-es/models/enums.js +2 -0
- package/dist-es/schemas/schemas_0.js +5 -4
- package/dist-types/Connect.d.ts +596 -1
- package/dist-types/commands/GetContactMetricsCommand.d.ts +13 -10
- package/dist-types/commands/GetCurrentMetricDataCommand.d.ts +3 -3
- package/dist-types/commands/SearchContactsCommand.d.ts +20 -0
- package/dist-types/models/enums.d.ts +2 -0
- package/dist-types/models/models_1.d.ts +37 -11
- package/dist-types/models/models_2.d.ts +14 -0
- package/dist-types/models/models_3.d.ts +5 -0
- package/dist-types/ts3.4/Connect.d.ts +600 -1
- package/dist-types/ts3.4/models/enums.d.ts +2 -0
- package/dist-types/ts3.4/models/models_2.d.ts +1 -0
- package/dist-types/ts3.4/models/models_3.d.ts +1 -0
- package/package.json +17 -17
|
@@ -27,23 +27,27 @@ declare const GetContactMetricsCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Retrieves
|
|
30
|
+
* <p>Retrieves contact metric data for a specified contact.</p>
|
|
31
31
|
* <p>
|
|
32
32
|
* <b>Use cases</b>
|
|
33
33
|
* </p>
|
|
34
|
-
* <p>Following are common
|
|
34
|
+
* <p>Following are common use cases for position in queue and estimated wait time:</p>
|
|
35
35
|
* <ul>
|
|
36
36
|
* <li>
|
|
37
|
-
* <p>
|
|
37
|
+
* <p>Customer-Facing Wait Time Announcements - Display or announce the estimated wait time and position in queue to customers before or during their queue experience.
|
|
38
|
+
* </p>
|
|
38
39
|
* </li>
|
|
39
40
|
* <li>
|
|
40
|
-
* <p>
|
|
41
|
+
* <p>Callback Offerings - Offer customers a callback option when the estimated wait time or position in queue exceeds a defined threshold.
|
|
42
|
+
* </p>
|
|
41
43
|
* </li>
|
|
42
44
|
* <li>
|
|
43
|
-
* <p>
|
|
45
|
+
* <p>Queue Routing Decisions - Route incoming contacts to less congested queues by comparing estimated wait time and position in queue across multiple queues.
|
|
46
|
+
* </p>
|
|
44
47
|
* </li>
|
|
45
48
|
* <li>
|
|
46
|
-
* <p>
|
|
49
|
+
* <p>Self-Service Deflection - Redirect customers to self-service options like chatbots or FAQs when estimated wait time is high or position in queue is unfavorable.
|
|
50
|
+
* </p>
|
|
47
51
|
* </li>
|
|
48
52
|
* </ul>
|
|
49
53
|
* <p>
|
|
@@ -51,8 +55,7 @@ declare const GetContactMetricsCommand_base: {
|
|
|
51
55
|
* </p>
|
|
52
56
|
* <ul>
|
|
53
57
|
* <li>
|
|
54
|
-
* <p>
|
|
55
|
-
* position by using flows and attributes.</p>
|
|
58
|
+
* <p>Metrics are only available while the contact is actively in queue.</p>
|
|
56
59
|
* </li>
|
|
57
60
|
* <li>
|
|
58
61
|
* <p>For more information, see the <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html">Position in queue</a> metric in the <i>Amazon Connect Administrator Guide</i>. </p>
|
|
@@ -73,7 +76,7 @@ declare const GetContactMetricsCommand_base: {
|
|
|
73
76
|
* ContactId: "STRING_VALUE", // required
|
|
74
77
|
* Metrics: [ // ContactMetrics // required
|
|
75
78
|
* { // ContactMetricInfo
|
|
76
|
-
* Name: "POSITION_IN_QUEUE", // required
|
|
79
|
+
* Name: "ESTIMATED_WAIT_TIME" || "POSITION_IN_QUEUE", // required
|
|
77
80
|
* },
|
|
78
81
|
* ],
|
|
79
82
|
* };
|
|
@@ -82,7 +85,7 @@ declare const GetContactMetricsCommand_base: {
|
|
|
82
85
|
* // { // GetContactMetricsResponse
|
|
83
86
|
* // MetricResults: [ // ContactMetricResults
|
|
84
87
|
* // { // ContactMetricResult
|
|
85
|
-
* // Name: "POSITION_IN_QUEUE", // required
|
|
88
|
+
* // Name: "ESTIMATED_WAIT_TIME" || "POSITION_IN_QUEUE", // required
|
|
86
89
|
* // Value: { // ContactMetricValue Union: only one key present
|
|
87
90
|
* // Number: Number("double"),
|
|
88
91
|
* // },
|
|
@@ -104,7 +104,7 @@ declare const GetCurrentMetricDataCommand_base: {
|
|
|
104
104
|
* ],
|
|
105
105
|
* CurrentMetrics: [ // CurrentMetrics // required
|
|
106
106
|
* { // CurrentMetric
|
|
107
|
-
* Name: "AGENTS_ONLINE" || "AGENTS_AVAILABLE" || "AGENTS_ON_CALL" || "AGENTS_NON_PRODUCTIVE" || "AGENTS_AFTER_CONTACT_WORK" || "AGENTS_ERROR" || "AGENTS_STAFFED" || "CONTACTS_IN_QUEUE" || "OLDEST_CONTACT_AGE" || "CONTACTS_SCHEDULED" || "AGENTS_ON_CONTACT" || "SLOTS_ACTIVE" || "SLOTS_AVAILABLE",
|
|
107
|
+
* Name: "AGENTS_ONLINE" || "AGENTS_AVAILABLE" || "AGENTS_ON_CALL" || "AGENTS_NON_PRODUCTIVE" || "AGENTS_AFTER_CONTACT_WORK" || "AGENTS_ERROR" || "AGENTS_STAFFED" || "CONTACTS_IN_QUEUE" || "OLDEST_CONTACT_AGE" || "CONTACTS_SCHEDULED" || "AGENTS_ON_CONTACT" || "SLOTS_ACTIVE" || "SLOTS_AVAILABLE" || "ESTIMATED_WAIT_TIME",
|
|
108
108
|
* MetricId: "STRING_VALUE",
|
|
109
109
|
* Unit: "SECONDS" || "COUNT" || "PERCENT",
|
|
110
110
|
* },
|
|
@@ -113,7 +113,7 @@ declare const GetCurrentMetricDataCommand_base: {
|
|
|
113
113
|
* MaxResults: Number("int"),
|
|
114
114
|
* SortCriteria: [ // CurrentMetricSortCriteriaMaxOne
|
|
115
115
|
* { // CurrentMetricSortCriteria
|
|
116
|
-
* SortByMetric: "AGENTS_ONLINE" || "AGENTS_AVAILABLE" || "AGENTS_ON_CALL" || "AGENTS_NON_PRODUCTIVE" || "AGENTS_AFTER_CONTACT_WORK" || "AGENTS_ERROR" || "AGENTS_STAFFED" || "CONTACTS_IN_QUEUE" || "OLDEST_CONTACT_AGE" || "CONTACTS_SCHEDULED" || "AGENTS_ON_CONTACT" || "SLOTS_ACTIVE" || "SLOTS_AVAILABLE",
|
|
116
|
+
* SortByMetric: "AGENTS_ONLINE" || "AGENTS_AVAILABLE" || "AGENTS_ON_CALL" || "AGENTS_NON_PRODUCTIVE" || "AGENTS_AFTER_CONTACT_WORK" || "AGENTS_ERROR" || "AGENTS_STAFFED" || "CONTACTS_IN_QUEUE" || "OLDEST_CONTACT_AGE" || "CONTACTS_SCHEDULED" || "AGENTS_ON_CONTACT" || "SLOTS_ACTIVE" || "SLOTS_AVAILABLE" || "ESTIMATED_WAIT_TIME",
|
|
117
117
|
* SortOrder: "ASCENDING" || "DESCENDING",
|
|
118
118
|
* },
|
|
119
119
|
* ],
|
|
@@ -145,7 +145,7 @@ declare const GetCurrentMetricDataCommand_base: {
|
|
|
145
145
|
* // Collections: [ // CurrentMetricDataCollections
|
|
146
146
|
* // { // CurrentMetricData
|
|
147
147
|
* // Metric: { // CurrentMetric
|
|
148
|
-
* // Name: "AGENTS_ONLINE" || "AGENTS_AVAILABLE" || "AGENTS_ON_CALL" || "AGENTS_NON_PRODUCTIVE" || "AGENTS_AFTER_CONTACT_WORK" || "AGENTS_ERROR" || "AGENTS_STAFFED" || "CONTACTS_IN_QUEUE" || "OLDEST_CONTACT_AGE" || "CONTACTS_SCHEDULED" || "AGENTS_ON_CONTACT" || "SLOTS_ACTIVE" || "SLOTS_AVAILABLE",
|
|
148
|
+
* // Name: "AGENTS_ONLINE" || "AGENTS_AVAILABLE" || "AGENTS_ON_CALL" || "AGENTS_NON_PRODUCTIVE" || "AGENTS_AFTER_CONTACT_WORK" || "AGENTS_ERROR" || "AGENTS_STAFFED" || "CONTACTS_IN_QUEUE" || "OLDEST_CONTACT_AGE" || "CONTACTS_SCHEDULED" || "AGENTS_ON_CONTACT" || "SLOTS_ACTIVE" || "SLOTS_AVAILABLE" || "ESTIMATED_WAIT_TIME",
|
|
149
149
|
* // MetricId: "STRING_VALUE",
|
|
150
150
|
* // Unit: "SECONDS" || "COUNT" || "PERCENT",
|
|
151
151
|
* // },
|
|
@@ -147,6 +147,23 @@ declare const SearchContactsCommand_base: {
|
|
|
147
147
|
* ActiveRegions: [ // ActiveRegionList
|
|
148
148
|
* "STRING_VALUE",
|
|
149
149
|
* ],
|
|
150
|
+
* ContactTags: { // ControlPlaneTagFilter
|
|
151
|
+
* OrConditions: [ // TagOrConditionList
|
|
152
|
+
* [ // TagAndConditionList
|
|
153
|
+
* { // TagCondition
|
|
154
|
+
* TagKey: "STRING_VALUE",
|
|
155
|
+
* TagValue: "STRING_VALUE",
|
|
156
|
+
* },
|
|
157
|
+
* ],
|
|
158
|
+
* ],
|
|
159
|
+
* AndConditions: [
|
|
160
|
+
* {
|
|
161
|
+
* TagKey: "STRING_VALUE",
|
|
162
|
+
* TagValue: "STRING_VALUE",
|
|
163
|
+
* },
|
|
164
|
+
* ],
|
|
165
|
+
* TagCondition: "<TagCondition>",
|
|
166
|
+
* },
|
|
150
167
|
* },
|
|
151
168
|
* MaxResults: Number("int"),
|
|
152
169
|
* NextToken: "STRING_VALUE",
|
|
@@ -300,6 +317,9 @@ declare const SearchContactsCommand_base: {
|
|
|
300
317
|
* // ActivationTimestamp: new Date("TIMESTAMP"),
|
|
301
318
|
* // Index: Number("int"),
|
|
302
319
|
* // },
|
|
320
|
+
* // Tags: { // ContactTagMap
|
|
321
|
+
* // "<keys>": "STRING_VALUE",
|
|
322
|
+
* // },
|
|
303
323
|
* // GlobalResiliencyMetadata: { // GlobalResiliencyMetadata
|
|
304
324
|
* // ActiveRegion: "STRING_VALUE",
|
|
305
325
|
* // OriginRegion: "STRING_VALUE",
|
|
@@ -1865,6 +1865,7 @@ export type Visibility = (typeof Visibility)[keyof typeof Visibility];
|
|
|
1865
1865
|
* @enum
|
|
1866
1866
|
*/
|
|
1867
1867
|
export declare const ContactMetricName: {
|
|
1868
|
+
readonly ESTIMATED_WAIT_TIME: "ESTIMATED_WAIT_TIME";
|
|
1868
1869
|
readonly POSITION_IN_QUEUE: "POSITION_IN_QUEUE";
|
|
1869
1870
|
};
|
|
1870
1871
|
/**
|
|
@@ -1886,6 +1887,7 @@ export declare const CurrentMetricName: {
|
|
|
1886
1887
|
readonly AGENTS_STAFFED: "AGENTS_STAFFED";
|
|
1887
1888
|
readonly CONTACTS_IN_QUEUE: "CONTACTS_IN_QUEUE";
|
|
1888
1889
|
readonly CONTACTS_SCHEDULED: "CONTACTS_SCHEDULED";
|
|
1890
|
+
readonly ESTIMATED_WAIT_TIME: "ESTIMATED_WAIT_TIME";
|
|
1889
1891
|
readonly OLDEST_CONTACT_AGE: "OLDEST_CONTACT_AGE";
|
|
1890
1892
|
readonly SLOTS_ACTIVE: "SLOTS_ACTIVE";
|
|
1891
1893
|
readonly SLOTS_AVAILABLE: "SLOTS_AVAILABLE";
|
|
@@ -5273,12 +5273,14 @@ export interface GetContactAttributesResponse {
|
|
|
5273
5273
|
Attributes?: Record<string, string> | undefined;
|
|
5274
5274
|
}
|
|
5275
5275
|
/**
|
|
5276
|
-
* <p>
|
|
5276
|
+
* <p>Contains the details of a metric to be retrieved for a contact. Use this object to specify which
|
|
5277
|
+
* contact level metrics you want to include in your GetContactMetrics request.</p>
|
|
5277
5278
|
* @public
|
|
5278
5279
|
*/
|
|
5279
5280
|
export interface ContactMetricInfo {
|
|
5280
5281
|
/**
|
|
5281
|
-
* <p>The name of the metric
|
|
5282
|
+
* <p>The name of the metric to retrieve. Supported values are POSITION_IN_QUEUE (returns the contact's
|
|
5283
|
+
* current position in the queue) and ESTIMATED_WAIT_TIME (returns the predicted wait time in seconds).</p>
|
|
5282
5284
|
* @public
|
|
5283
5285
|
*/
|
|
5284
5286
|
Name: ContactMetricName | undefined;
|
|
@@ -5298,13 +5300,15 @@ export interface GetContactMetricsRequest {
|
|
|
5298
5300
|
*/
|
|
5299
5301
|
ContactId: string | undefined;
|
|
5300
5302
|
/**
|
|
5301
|
-
* <p>A list of contact
|
|
5303
|
+
* <p>A list of contact level metrics to retrieve.Supported metrics include POSITION_IN_QUEUE (the contact's
|
|
5304
|
+
* current position in the queue) and ESTIMATED_WAIT_TIME (the predicted time in seconds until the contact is
|
|
5305
|
+
* connected to an agent)</p>
|
|
5302
5306
|
* @public
|
|
5303
5307
|
*/
|
|
5304
5308
|
Metrics: ContactMetricInfo[] | undefined;
|
|
5305
5309
|
}
|
|
5306
5310
|
/**
|
|
5307
|
-
* <p>
|
|
5311
|
+
* <p>Contains the numeric value of a contact metric result.</p>
|
|
5308
5312
|
* @public
|
|
5309
5313
|
*/
|
|
5310
5314
|
export type ContactMetricValue = ContactMetricValue.NumberMember | ContactMetricValue.$UnknownMember;
|
|
@@ -5313,7 +5317,9 @@ export type ContactMetricValue = ContactMetricValue.NumberMember | ContactMetric
|
|
|
5313
5317
|
*/
|
|
5314
5318
|
export declare namespace ContactMetricValue {
|
|
5315
5319
|
/**
|
|
5316
|
-
* <p>The
|
|
5320
|
+
* <p>The numeric value of the metric result. For POSITION_IN_QUEUE, this represents the contact's
|
|
5321
|
+
* current position in the queue (e.g., 3.00 means third in line). For ESTIMATED_WAIT_TIME, this represents
|
|
5322
|
+
* the predicted wait time in seconds (e.g., 120.00 means approximately 2 minutes).</p>
|
|
5317
5323
|
* @public
|
|
5318
5324
|
*/
|
|
5319
5325
|
interface NumberMember {
|
|
@@ -5337,17 +5343,20 @@ export declare namespace ContactMetricValue {
|
|
|
5337
5343
|
}
|
|
5338
5344
|
}
|
|
5339
5345
|
/**
|
|
5340
|
-
* <p>
|
|
5346
|
+
* <p>Contains the result of a requested metric for the contact. This object is returned as part of the
|
|
5347
|
+
* GetContactMetrics response and includes both the metric name and its calculated value.</p>
|
|
5341
5348
|
* @public
|
|
5342
5349
|
*/
|
|
5343
5350
|
export interface ContactMetricResult {
|
|
5344
5351
|
/**
|
|
5345
|
-
* <p>The name of the metric
|
|
5352
|
+
* <p>The name of the metric that was retrieved. This corresponds to the metric name specified in the
|
|
5353
|
+
* request, such as POSITION_IN_QUEUE or ESTIMATED_WAIT_TIME.</p>
|
|
5346
5354
|
* @public
|
|
5347
5355
|
*/
|
|
5348
5356
|
Name: ContactMetricName | undefined;
|
|
5349
5357
|
/**
|
|
5350
|
-
* <p>
|
|
5358
|
+
* <p>The calculated value for the requested metric. This object contains the numeric result based on
|
|
5359
|
+
* the contact's current state in the queue.</p>
|
|
5351
5360
|
* @public
|
|
5352
5361
|
*/
|
|
5353
5362
|
Value: ContactMetricValue | undefined;
|
|
@@ -5357,13 +5366,15 @@ export interface ContactMetricResult {
|
|
|
5357
5366
|
*/
|
|
5358
5367
|
export interface GetContactMetricsResponse {
|
|
5359
5368
|
/**
|
|
5360
|
-
* <p>A list of metric results containing the calculated values for each requested metric. Each result includes
|
|
5361
|
-
* metric name and its corresponding
|
|
5369
|
+
* <p>A list of metric results containing the calculated values for each requested metric. Each result includes
|
|
5370
|
+
* the metric name and its corresponding value. For example, POSITION_IN_QUEUE returns a numeric value representing
|
|
5371
|
+
* the contact's position in queue, and ESTIMATED_WAIT_TIME returns the predicted wait time in seconds.</p>
|
|
5362
5372
|
* @public
|
|
5363
5373
|
*/
|
|
5364
5374
|
MetricResults?: ContactMetricResult[] | undefined;
|
|
5365
5375
|
/**
|
|
5366
|
-
* <p>The unique identifier of the contact for which metrics were retrieved
|
|
5376
|
+
* <p>The unique identifier of the contact for which metrics were retrieved. This matches the ContactId provided
|
|
5377
|
+
* in the request.</p>
|
|
5367
5378
|
* @public
|
|
5368
5379
|
*/
|
|
5369
5380
|
Id?: string | undefined;
|
|
@@ -5608,6 +5619,21 @@ export interface GetCurrentMetricDataRequest {
|
|
|
5608
5619
|
* <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>
|
|
5609
5620
|
* </p>
|
|
5610
5621
|
* </dd>
|
|
5622
|
+
* <dt>ESTIMATED_WAIT_TIME</dt>
|
|
5623
|
+
* <dd>
|
|
5624
|
+
* <p>Unit: SECONDS</p>
|
|
5625
|
+
* <p>This metric supports filter and grouping combination only used for core routing purpose.
|
|
5626
|
+
* Valid filter and grouping use cases:
|
|
5627
|
+
* </p>
|
|
5628
|
+
* <ul>
|
|
5629
|
+
* <li>
|
|
5630
|
+
* <p>Filter by a list of [Queues] and a list of [Channels], group by [“QUEUE”, “CHANNEL”]</p>
|
|
5631
|
+
* </li>
|
|
5632
|
+
* <li>
|
|
5633
|
+
* <p>Filter by a singleton list of [Queue], a singleton list of [Channel], a list of [RoutingStepExpression], group by [“ROUTING_STEP_EXPRESSION”].</p>
|
|
5634
|
+
* </li>
|
|
5635
|
+
* </ul>
|
|
5636
|
+
* </dd>
|
|
5611
5637
|
* <dt>OLDEST_CONTACT_AGE</dt>
|
|
5612
5638
|
* <dd>
|
|
5613
5639
|
* <p>Unit: SECONDS</p>
|
|
@@ -6115,6 +6115,20 @@ export interface SearchCriteria {
|
|
|
6115
6115
|
* @public
|
|
6116
6116
|
*/
|
|
6117
6117
|
ActiveRegions?: string[] | undefined;
|
|
6118
|
+
/**
|
|
6119
|
+
* <p>An object that can be used to specify Tag conditions inside the <code>SearchFilter</code>. This accepts an
|
|
6120
|
+
* <code>OR</code> of <code>AND</code> (List of List) input where:</p>
|
|
6121
|
+
* <ul>
|
|
6122
|
+
* <li>
|
|
6123
|
+
* <p>Top level list specifies conditions that need to be applied with <code>OR</code> operator</p>
|
|
6124
|
+
* </li>
|
|
6125
|
+
* <li>
|
|
6126
|
+
* <p>Inner list specifies conditions that need to be applied with <code>AND</code> operator.</p>
|
|
6127
|
+
* </li>
|
|
6128
|
+
* </ul>
|
|
6129
|
+
* @public
|
|
6130
|
+
*/
|
|
6131
|
+
ContactTags?: ControlPlaneTagFilter | undefined;
|
|
6118
6132
|
}
|
|
6119
6133
|
/**
|
|
6120
6134
|
* <p>A structure that defines the field name to sort by and a sort order.</p>
|
|
@@ -6933,6 +6933,11 @@ export interface ContactSearchSummary {
|
|
|
6933
6933
|
* @public
|
|
6934
6934
|
*/
|
|
6935
6935
|
RoutingCriteria?: RoutingCriteria | undefined;
|
|
6936
|
+
/**
|
|
6937
|
+
* <p>Tags associated with the contact. This contains both Amazon Web Services generated and user-defined tags.</p>
|
|
6938
|
+
* @public
|
|
6939
|
+
*/
|
|
6940
|
+
Tags?: Record<string, string> | undefined;
|
|
6936
6941
|
/**
|
|
6937
6942
|
* <p>Additional routing information for contacts created in ACGR instances.</p>
|
|
6938
6943
|
* @public
|