@aws-sdk/client-connect 3.978.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 CHANGED
@@ -16767,6 +16767,7 @@ const Visibility = {
16767
16767
  None: "NONE",
16768
16768
  };
16769
16769
  const ContactMetricName = {
16770
+ ESTIMATED_WAIT_TIME: "ESTIMATED_WAIT_TIME",
16770
16771
  POSITION_IN_QUEUE: "POSITION_IN_QUEUE",
16771
16772
  };
16772
16773
  const CurrentMetricName = {
@@ -16780,6 +16781,7 @@ const CurrentMetricName = {
16780
16781
  AGENTS_STAFFED: "AGENTS_STAFFED",
16781
16782
  CONTACTS_IN_QUEUE: "CONTACTS_IN_QUEUE",
16782
16783
  CONTACTS_SCHEDULED: "CONTACTS_SCHEDULED",
16784
+ ESTIMATED_WAIT_TIME: "ESTIMATED_WAIT_TIME",
16783
16785
  OLDEST_CONTACT_AGE: "OLDEST_CONTACT_AGE",
16784
16786
  SLOTS_ACTIVE: "SLOTS_ACTIVE",
16785
16787
  SLOTS_AVAILABLE: "SLOTS_AVAILABLE",
@@ -941,6 +941,7 @@ export const Visibility = {
941
941
  None: "NONE",
942
942
  };
943
943
  export const ContactMetricName = {
944
+ ESTIMATED_WAIT_TIME: "ESTIMATED_WAIT_TIME",
944
945
  POSITION_IN_QUEUE: "POSITION_IN_QUEUE",
945
946
  };
946
947
  export const CurrentMetricName = {
@@ -954,6 +955,7 @@ export const CurrentMetricName = {
954
955
  AGENTS_STAFFED: "AGENTS_STAFFED",
955
956
  CONTACTS_IN_QUEUE: "CONTACTS_IN_QUEUE",
956
957
  CONTACTS_SCHEDULED: "CONTACTS_SCHEDULED",
958
+ ESTIMATED_WAIT_TIME: "ESTIMATED_WAIT_TIME",
957
959
  OLDEST_CONTACT_AGE: "OLDEST_CONTACT_AGE",
958
960
  SLOTS_ACTIVE: "SLOTS_ACTIVE",
959
961
  SLOTS_AVAILABLE: "SLOTS_AVAILABLE",
@@ -27,23 +27,27 @@ declare const GetContactMetricsCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Retrieves the position of the contact in the queue.</p>
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 uses cases for position in queue:</p>
34
+ * <p>Following are common use cases for position in queue and estimated wait time:</p>
35
35
  * <ul>
36
36
  * <li>
37
- * <p>Understand the expected wait experience of a contact.</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>Inform customers of their position in queue and potentially offer a callback.</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>Make data-driven routing decisions between primary and alternative queues.</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>Enhance queue visibility and leverage agent proficiencies to streamline contact routing.</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>The only way to retrieve the position of the contact in queue is by using this API. You can't retrieve the
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
  * // },
@@ -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>The object that contains information about metric being requested.</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 being retrieved in type String.</p>
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-level metrics to retrieve.</p>
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>Object which contains the number.</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 number of type Double. This number is the contact's position in queue.</p>
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>Object containing information about metric requested for the contact.</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 being retrieved in type String.</p>
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>Object result associated with the metric received.</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 the
5361
- * metric name and its corresponding calculated value.</p>
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.</p>
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>
@@ -1145,6 +1145,7 @@ export declare const Visibility: {
1145
1145
  };
1146
1146
  export type Visibility = (typeof Visibility)[keyof typeof Visibility];
1147
1147
  export declare const ContactMetricName: {
1148
+ readonly ESTIMATED_WAIT_TIME: "ESTIMATED_WAIT_TIME";
1148
1149
  readonly POSITION_IN_QUEUE: "POSITION_IN_QUEUE";
1149
1150
  };
1150
1151
  export type ContactMetricName =
@@ -1160,6 +1161,7 @@ export declare const CurrentMetricName: {
1160
1161
  readonly AGENTS_STAFFED: "AGENTS_STAFFED";
1161
1162
  readonly CONTACTS_IN_QUEUE: "CONTACTS_IN_QUEUE";
1162
1163
  readonly CONTACTS_SCHEDULED: "CONTACTS_SCHEDULED";
1164
+ readonly ESTIMATED_WAIT_TIME: "ESTIMATED_WAIT_TIME";
1163
1165
  readonly OLDEST_CONTACT_AGE: "OLDEST_CONTACT_AGE";
1164
1166
  readonly SLOTS_ACTIVE: "SLOTS_ACTIVE";
1165
1167
  readonly SLOTS_AVAILABLE: "SLOTS_AVAILABLE";
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.978.0",
4
+ "version": "3.980.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-connect",
@@ -21,17 +21,17 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.4",
25
- "@aws-sdk/credential-provider-node": "^3.972.2",
26
- "@aws-sdk/middleware-host-header": "^3.972.2",
27
- "@aws-sdk/middleware-logger": "^3.972.2",
28
- "@aws-sdk/middleware-recursion-detection": "^3.972.2",
29
- "@aws-sdk/middleware-user-agent": "^3.972.4",
30
- "@aws-sdk/region-config-resolver": "^3.972.2",
24
+ "@aws-sdk/core": "^3.973.5",
25
+ "@aws-sdk/credential-provider-node": "^3.972.4",
26
+ "@aws-sdk/middleware-host-header": "^3.972.3",
27
+ "@aws-sdk/middleware-logger": "^3.972.3",
28
+ "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.5",
30
+ "@aws-sdk/region-config-resolver": "^3.972.3",
31
31
  "@aws-sdk/types": "^3.973.1",
32
- "@aws-sdk/util-endpoints": "3.972.0",
33
- "@aws-sdk/util-user-agent-browser": "^3.972.2",
34
- "@aws-sdk/util-user-agent-node": "^3.972.2",
32
+ "@aws-sdk/util-endpoints": "3.980.0",
33
+ "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.3",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
36
  "@smithy/core": "^3.22.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",