@aws-sdk/client-connect 3.423.0 → 3.424.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 (26) hide show
  1. package/dist-cjs/models/models_1.js +9 -9
  2. package/dist-cjs/models/models_2.js +9 -1
  3. package/dist-cjs/protocols/Aws_restJson1.js +9 -0
  4. package/dist-es/models/models_1.js +8 -8
  5. package/dist-es/models/models_2.js +8 -0
  6. package/dist-es/protocols/Aws_restJson1.js +9 -0
  7. package/dist-types/commands/CreateSecurityProfileCommand.d.ts +1 -2
  8. package/dist-types/commands/CreateViewCommand.d.ts +7 -5
  9. package/dist-types/commands/CreateViewVersionCommand.d.ts +3 -3
  10. package/dist-types/commands/DeleteSecurityProfileCommand.d.ts +1 -2
  11. package/dist-types/commands/DeleteViewCommand.d.ts +2 -1
  12. package/dist-types/commands/DescribeSecurityProfileCommand.d.ts +1 -2
  13. package/dist-types/commands/DescribeViewCommand.d.ts +4 -4
  14. package/dist-types/commands/GetMetricDataV2Command.d.ts +12 -2
  15. package/dist-types/commands/ListSecurityProfilePermissionsCommand.d.ts +1 -2
  16. package/dist-types/commands/ListViewVersionsCommand.d.ts +2 -1
  17. package/dist-types/commands/UpdateParticipantRoleConfigCommand.d.ts +1 -1
  18. package/dist-types/commands/UpdateSecurityProfileCommand.d.ts +1 -2
  19. package/dist-types/commands/UpdateViewContentCommand.d.ts +6 -4
  20. package/dist-types/models/models_0.d.ts +40 -24
  21. package/dist-types/models/models_1.d.ts +223 -83
  22. package/dist-types/models/models_2.d.ts +65 -6
  23. package/dist-types/ts3.4/commands/UpdateParticipantRoleConfigCommand.d.ts +1 -1
  24. package/dist-types/ts3.4/models/models_1.d.ts +22 -27
  25. package/dist-types/ts3.4/models/models_2.d.ts +28 -0
  26. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ReplicateInstanceRequestFilterSensitiveLog = exports.ListViewVersionsResponseFilterSensitiveLog = exports.ViewVersionSummaryFilterSensitiveLog = exports.ListViewsResponseFilterSensitiveLog = exports.ViewSummaryFilterSensitiveLog = exports.ListInstancesResponseFilterSensitiveLog = exports.InstanceSummaryFilterSensitiveLog = exports.GetFederationTokenResponseFilterSensitiveLog = exports.CredentialsFilterSensitiveLog = 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.MaximumResultReturnedException = exports.SearchableQueueType = exports.StringComparisonType = exports.QueueType = exports.ReferenceSummary = exports.ReferenceStatus = exports.LexVersion = exports.Comparison = exports.Statistic = exports.HistoricalMetricName = exports.UserNotFoundException = exports.SortOrder = exports.Grouping = exports.Unit = exports.CurrentMetricName = void 0;
3
+ exports.ReplicateInstanceRequestFilterSensitiveLog = exports.ListViewVersionsResponseFilterSensitiveLog = exports.ViewVersionSummaryFilterSensitiveLog = exports.ListViewsResponseFilterSensitiveLog = exports.ViewSummaryFilterSensitiveLog = exports.ListInstancesResponseFilterSensitiveLog = exports.InstanceSummaryFilterSensitiveLog = exports.GetFederationTokenResponseFilterSensitiveLog = exports.CredentialsFilterSensitiveLog = exports.ParticipantTimerValue = exports.ParticipantTimerAction = exports.ParticipantTimerType = exports.TimerEligibleParticipantRoles = exports.ContactNotFoundException = exports.TrafficType = exports.OutboundContactNotPermittedException = exports.DestinationNotAllowedException = exports.VoiceRecordingTrack = exports.RehydrationType = exports.HierarchyGroupMatchType = exports.MaximumResultReturnedException = exports.SearchableQueueType = exports.StringComparisonType = exports.QueueType = exports.ReferenceSummary = exports.ReferenceStatus = exports.LexVersion = exports.IntervalPeriod = exports.Comparison = exports.Statistic = exports.HistoricalMetricName = exports.UserNotFoundException = exports.SortOrder = exports.Grouping = exports.Unit = exports.CurrentMetricName = void 0;
4
4
  const smithy_client_1 = require("@smithy/smithy-client");
5
5
  const ConnectServiceException_1 = require("./ConnectServiceException");
6
6
  exports.CurrentMetricName = {
@@ -81,6 +81,14 @@ exports.Statistic = {
81
81
  exports.Comparison = {
82
82
  LT: "LT",
83
83
  };
84
+ exports.IntervalPeriod = {
85
+ DAY: "DAY",
86
+ FIFTEEN_MIN: "FIFTEEN_MIN",
87
+ HOUR: "HOUR",
88
+ THIRTY_MIN: "THIRTY_MIN",
89
+ TOTAL: "TOTAL",
90
+ WEEK: "WEEK",
91
+ };
84
92
  exports.LexVersion = {
85
93
  V1: "V1",
86
94
  V2: "V2",
@@ -213,14 +221,6 @@ var ParticipantTimerValue;
213
221
  return visitor._(value.$unknown[0], value.$unknown[1]);
214
222
  };
215
223
  })(ParticipantTimerValue = exports.ParticipantTimerValue || (exports.ParticipantTimerValue = {}));
216
- var UpdateParticipantRoleConfigChannelInfo;
217
- (function (UpdateParticipantRoleConfigChannelInfo) {
218
- UpdateParticipantRoleConfigChannelInfo.visit = (value, visitor) => {
219
- if (value.Chat !== undefined)
220
- return visitor.Chat(value.Chat);
221
- return visitor._(value.$unknown[0], value.$unknown[1]);
222
- };
223
- })(UpdateParticipantRoleConfigChannelInfo = exports.UpdateParticipantRoleConfigChannelInfo || (exports.UpdateParticipantRoleConfigChannelInfo = {}));
224
224
  const CredentialsFilterSensitiveLog = (obj) => ({
225
225
  ...obj,
226
226
  ...(obj.AccessToken && { AccessToken: smithy_client_1.SENSITIVE_STRING }),
@@ -1,8 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateViewMetadataRequestFilterSensitiveLog = exports.UpdateViewContentResponseFilterSensitiveLog = exports.UpdateViewContentRequestFilterSensitiveLog = exports.EvaluationFormItem = void 0;
3
+ exports.UpdateViewMetadataRequestFilterSensitiveLog = exports.UpdateViewContentResponseFilterSensitiveLog = exports.UpdateViewContentRequestFilterSensitiveLog = exports.EvaluationFormItem = exports.UpdateParticipantRoleConfigChannelInfo = void 0;
4
4
  const smithy_client_1 = require("@smithy/smithy-client");
5
5
  const models_0_1 = require("./models_0");
6
+ var UpdateParticipantRoleConfigChannelInfo;
7
+ (function (UpdateParticipantRoleConfigChannelInfo) {
8
+ UpdateParticipantRoleConfigChannelInfo.visit = (value, visitor) => {
9
+ if (value.Chat !== undefined)
10
+ return visitor.Chat(value.Chat);
11
+ return visitor._(value.$unknown[0], value.$unknown[1]);
12
+ };
13
+ })(UpdateParticipantRoleConfigChannelInfo = exports.UpdateParticipantRoleConfigChannelInfo || (exports.UpdateParticipantRoleConfigChannelInfo = {}));
6
14
  var EvaluationFormItem;
7
15
  (function (EvaluationFormItem) {
8
16
  EvaluationFormItem.visit = (value, visitor) => {
@@ -2121,6 +2121,7 @@ const se_GetMetricDataV2Command = async (input, context) => {
2121
2121
  EndTime: (_) => Math.round(_.getTime() / 1000),
2122
2122
  Filters: (_) => (0, smithy_client_1._json)(_),
2123
2123
  Groupings: (_) => (0, smithy_client_1._json)(_),
2124
+ Interval: (_) => (0, smithy_client_1._json)(_),
2124
2125
  MaxResults: [],
2125
2126
  Metrics: (_) => se_MetricsV2(_, context),
2126
2127
  NextToken: [],
@@ -15449,6 +15450,13 @@ const de_MetricDataV2 = (output, context) => {
15449
15450
  Value: smithy_client_1.limitedParseDouble,
15450
15451
  });
15451
15452
  };
15453
+ const de_MetricInterval = (output, context) => {
15454
+ return (0, smithy_client_1.take)(output, {
15455
+ EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
15456
+ Interval: smithy_client_1.expectString,
15457
+ StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
15458
+ });
15459
+ };
15452
15460
  const de_MetricResultsV2 = (output, context) => {
15453
15461
  const retVal = (output || [])
15454
15462
  .filter((e) => e != null)
@@ -15461,6 +15469,7 @@ const de_MetricResultV2 = (output, context) => {
15461
15469
  return (0, smithy_client_1.take)(output, {
15462
15470
  Collections: (_) => de_MetricDataCollectionsV2(_, context),
15463
15471
  Dimensions: smithy_client_1._json,
15472
+ MetricInterval: (_) => de_MetricInterval(_, context),
15464
15473
  });
15465
15474
  };
15466
15475
  const de_MetricV2 = (output, context) => {
@@ -77,6 +77,14 @@ export const Statistic = {
77
77
  export const Comparison = {
78
78
  LT: "LT",
79
79
  };
80
+ export const IntervalPeriod = {
81
+ DAY: "DAY",
82
+ FIFTEEN_MIN: "FIFTEEN_MIN",
83
+ HOUR: "HOUR",
84
+ THIRTY_MIN: "THIRTY_MIN",
85
+ TOTAL: "TOTAL",
86
+ WEEK: "WEEK",
87
+ };
80
88
  export const LexVersion = {
81
89
  V1: "V1",
82
90
  V2: "V2",
@@ -205,14 +213,6 @@ export var ParticipantTimerValue;
205
213
  return visitor._(value.$unknown[0], value.$unknown[1]);
206
214
  };
207
215
  })(ParticipantTimerValue || (ParticipantTimerValue = {}));
208
- export var UpdateParticipantRoleConfigChannelInfo;
209
- (function (UpdateParticipantRoleConfigChannelInfo) {
210
- UpdateParticipantRoleConfigChannelInfo.visit = (value, visitor) => {
211
- if (value.Chat !== undefined)
212
- return visitor.Chat(value.Chat);
213
- return visitor._(value.$unknown[0], value.$unknown[1]);
214
- };
215
- })(UpdateParticipantRoleConfigChannelInfo || (UpdateParticipantRoleConfigChannelInfo = {}));
216
216
  export const CredentialsFilterSensitiveLog = (obj) => ({
217
217
  ...obj,
218
218
  ...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
@@ -1,5 +1,13 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { ViewFilterSensitiveLog, ViewInputContentFilterSensitiveLog, } from "./models_0";
3
+ export var UpdateParticipantRoleConfigChannelInfo;
4
+ (function (UpdateParticipantRoleConfigChannelInfo) {
5
+ UpdateParticipantRoleConfigChannelInfo.visit = (value, visitor) => {
6
+ if (value.Chat !== undefined)
7
+ return visitor.Chat(value.Chat);
8
+ return visitor._(value.$unknown[0], value.$unknown[1]);
9
+ };
10
+ })(UpdateParticipantRoleConfigChannelInfo || (UpdateParticipantRoleConfigChannelInfo = {}));
3
11
  export var EvaluationFormItem;
4
12
  (function (EvaluationFormItem) {
5
13
  EvaluationFormItem.visit = (value, visitor) => {
@@ -2014,6 +2014,7 @@ export const se_GetMetricDataV2Command = async (input, context) => {
2014
2014
  EndTime: (_) => Math.round(_.getTime() / 1000),
2015
2015
  Filters: (_) => _json(_),
2016
2016
  Groupings: (_) => _json(_),
2017
+ Interval: (_) => _json(_),
2017
2018
  MaxResults: [],
2018
2019
  Metrics: (_) => se_MetricsV2(_, context),
2019
2020
  NextToken: [],
@@ -15018,6 +15019,13 @@ const de_MetricDataV2 = (output, context) => {
15018
15019
  Value: __limitedParseDouble,
15019
15020
  });
15020
15021
  };
15022
+ const de_MetricInterval = (output, context) => {
15023
+ return take(output, {
15024
+ EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
15025
+ Interval: __expectString,
15026
+ StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
15027
+ });
15028
+ };
15021
15029
  const de_MetricResultsV2 = (output, context) => {
15022
15030
  const retVal = (output || [])
15023
15031
  .filter((e) => e != null)
@@ -15030,6 +15038,7 @@ const de_MetricResultV2 = (output, context) => {
15030
15038
  return take(output, {
15031
15039
  Collections: (_) => de_MetricDataCollectionsV2(_, context),
15032
15040
  Dimensions: _json,
15041
+ MetricInterval: (_) => de_MetricInterval(_, context),
15033
15042
  });
15034
15043
  };
15035
15044
  const de_MetricV2 = (output, context) => {
@@ -23,8 +23,7 @@ export interface CreateSecurityProfileCommandOutput extends CreateSecurityProfil
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>This API is in preview release for Amazon Connect and is subject to change.</p>
27
- * <p>Creates a security profile.</p>
26
+ * <p>Creates a security profile.</p>
28
27
  * @example
29
28
  * Use a bare-bones client and the command you need to make an API call.
30
29
  * ```javascript
@@ -23,12 +23,14 @@ export interface CreateViewCommandOutput extends CreateViewResponse, __MetadataB
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Creates a new view with the possible status of <code>SAVED</code> or <code>PUBLISHED</code>.</p>
26
+ * <p>Creates a new view with the possible status of <code>SAVED</code> or
27
+ * <code>PUBLISHED</code>.</p>
27
28
  * <p>The views will have a unique name for each connect instance.</p>
28
- * <p>It performs basic content validation if the status is <code>SAVED</code> or full content validation if the status
29
- * is set to <code>PUBLISHED</code>. An error is returned if validation fails. It associates either
30
- * the <code>$SAVED</code> qualifier or both of the <code>$SAVED</code> and <code>$LATEST</code> qualifiers with the
31
- * provided view content based on the status. The view is idempotent if ClientToken is provided.</p>
29
+ * <p>It performs basic content validation if the status is <code>SAVED</code> or full content
30
+ * validation if the status is set to <code>PUBLISHED</code>. An error is returned if validation
31
+ * fails. It associates either the <code>$SAVED</code> qualifier or both of the <code>$SAVED</code>
32
+ * and <code>$LATEST</code> qualifiers with the provided view content based on the status. The view
33
+ * is idempotent if ClientToken is provided.</p>
32
34
  * @example
33
35
  * Use a bare-bones client and the command you need to make an API call.
34
36
  * ```javascript
@@ -25,9 +25,9 @@ export interface CreateViewVersionCommandOutput extends CreateViewVersionRespons
25
25
  * @public
26
26
  * <p>Publishes a new version of the view identifier.</p>
27
27
  * <p>Versions are immutable and monotonically increasing.</p>
28
- * <p>It returns the highest version if there is no change in content compared to that version. An error
29
- * is displayed if the supplied ViewContentSha256 is different from the ViewContentSha256 of the
30
- * <code>$LATEST</code> alias.</p>
28
+ * <p>It returns the highest version if there is no change in content compared to that version. An
29
+ * error is displayed if the supplied ViewContentSha256 is different from the ViewContentSha256 of
30
+ * the <code>$LATEST</code> alias.</p>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -23,8 +23,7 @@ export interface DeleteSecurityProfileCommandOutput extends __MetadataBearer {
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>This API is in preview release for Amazon Connect and is subject to change.</p>
27
- * <p>Deletes a security profile.</p>
26
+ * <p>Deletes a security profile.</p>
28
27
  * @example
29
28
  * Use a bare-bones client and the command you need to make an API call.
30
29
  * ```javascript
@@ -23,7 +23,8 @@ export interface DeleteViewCommandOutput extends DeleteViewResponse, __MetadataB
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Deletes the view entirely. It deletes the view and all associated qualifiers (versions and aliases).</p>
26
+ * <p>Deletes the view entirely. It deletes the view and all associated qualifiers (versions and
27
+ * aliases).</p>
27
28
  * @example
28
29
  * Use a bare-bones client and the command you need to make an API call.
29
30
  * ```javascript
@@ -23,8 +23,7 @@ export interface DescribeSecurityProfileCommandOutput extends DescribeSecurityPr
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>This API is in preview release for Amazon Connect and is subject to change.</p>
27
- * <p>Gets basic information about the security profle.</p>
26
+ * <p>Gets basic information about the security profle.</p>
28
27
  * @example
29
28
  * Use a bare-bones client and the command you need to make an API call.
30
29
  * ```javascript
@@ -27,10 +27,10 @@ export interface DescribeViewCommandOutput extends DescribeViewResponse, __Metad
27
27
  * <p>The view identifier can be supplied as a ViewId or ARN.</p>
28
28
  * <p>
29
29
  * <code>$SAVED</code> needs to be supplied if a view is unpublished.</p>
30
- * <p>The view identifier can contain an optional qualifier, for example, <code><view-id>:$SAVED</code>, which
31
- * is either an actual version number or an Amazon Connect managed qualifier <code>$SAVED | $LATEST</code>.
32
- * If it is not supplied, then <code>$LATEST</code> is assumed for customer managed views and an error is
33
- * returned if there is no published content available. Version 1 is assumed for Amazon Web Services managed views.</p>
30
+ * <p>The view identifier can contain an optional qualifier, for example,
31
+ * <code><view-id>:$SAVED</code>, which is either an actual version number or an Amazon Connect managed qualifier <code>$SAVED | $LATEST</code>. If it is not supplied, then
32
+ * <code>$LATEST</code> is assumed for customer managed views and an error is returned if there is
33
+ * no published content available. Version 1 is assumed for Amazon Web Services managed views.</p>
34
34
  * @example
35
35
  * Use a bare-bones client and the command you need to make an API call.
36
36
  * ```javascript
@@ -28,8 +28,7 @@ export interface GetMetricDataV2CommandOutput extends GetMetricDataV2Response, _
28
28
  * <code>GetMetricDataV2</code> offers more features than <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_GetMetricData.html">GetMetricData</a>, the previous
29
29
  * version of this API. It has new metrics, offers filtering at a metric level, and offers the
30
30
  * ability to filter and group data by channels, queues, routing profiles, agents, and agent
31
- * hierarchy levels. It can retrieve historical data for the last 35 days, in 24-hour
32
- * intervals.</p>
31
+ * hierarchy levels. It can retrieve historical data for the last 3 months, at varying intervals. </p>
33
32
  * <p>For a description of the historical metrics that are supported by
34
33
  * <code>GetMetricDataV2</code> and <code>GetMetricData</code>, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html">Historical metrics
35
34
  * definitions</a> in the <i>Amazon Connect Administrator's Guide</i>.</p>
@@ -43,6 +42,10 @@ export interface GetMetricDataV2CommandOutput extends GetMetricDataV2Response, _
43
42
  * ResourceArn: "STRING_VALUE", // required
44
43
  * StartTime: new Date("TIMESTAMP"), // required
45
44
  * EndTime: new Date("TIMESTAMP"), // required
45
+ * Interval: { // IntervalDetails
46
+ * TimeZone: "STRING_VALUE",
47
+ * IntervalPeriod: "FIFTEEN_MIN" || "THIRTY_MIN" || "HOUR" || "DAY" || "WEEK" || "TOTAL",
48
+ * },
46
49
  * Filters: [ // FiltersV2List // required
47
50
  * { // FilterV2
48
51
  * FilterKey: "STRING_VALUE",
@@ -69,6 +72,7 @@ export interface GetMetricDataV2CommandOutput extends GetMetricDataV2Response, _
69
72
  * MetricFilterValues: [ // MetricFilterValueList
70
73
  * "STRING_VALUE",
71
74
  * ],
75
+ * Negate: true || false,
72
76
  * },
73
77
  * ],
74
78
  * },
@@ -85,6 +89,11 @@ export interface GetMetricDataV2CommandOutput extends GetMetricDataV2Response, _
85
89
  * // Dimensions: { // DimensionsV2Map
86
90
  * // "<keys>": "STRING_VALUE",
87
91
  * // },
92
+ * // MetricInterval: { // MetricInterval
93
+ * // Interval: "FIFTEEN_MIN" || "THIRTY_MIN" || "HOUR" || "DAY" || "WEEK" || "TOTAL",
94
+ * // StartTime: new Date("TIMESTAMP"),
95
+ * // EndTime: new Date("TIMESTAMP"),
96
+ * // },
88
97
  * // Collections: [ // MetricDataCollectionsV2
89
98
  * // { // MetricDataV2
90
99
  * // Metric: { // MetricV2
@@ -101,6 +110,7 @@ export interface GetMetricDataV2CommandOutput extends GetMetricDataV2Response, _
101
110
  * // MetricFilterValues: [ // MetricFilterValueList
102
111
  * // "STRING_VALUE",
103
112
  * // ],
113
+ * // Negate: true || false,
104
114
  * // },
105
115
  * // ],
106
116
  * // },
@@ -23,8 +23,7 @@ export interface ListSecurityProfilePermissionsCommandOutput extends ListSecurit
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>This API is in preview release for Amazon Connect and is subject to change.</p>
27
- * <p>Lists the permissions granted to a security profile.</p>
26
+ * <p>Lists the permissions granted to a security profile.</p>
28
27
  * @example
29
28
  * Use a bare-bones client and the command you need to make an API call.
30
29
  * ```javascript
@@ -23,7 +23,8 @@ export interface ListViewVersionsCommandOutput extends ListViewVersionsResponse,
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Returns all the available versions for the specified Amazon Connect instance and view identifier.</p>
26
+ * <p>Returns all the available versions for the specified Amazon Connect instance and view
27
+ * identifier.</p>
27
28
  * <p>Results will be sorted from highest to lowest.</p>
28
29
  * @example
29
30
  * Use a bare-bones client and the command you need to make an API call.
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
4
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
5
- import { UpdateParticipantRoleConfigRequest, UpdateParticipantRoleConfigResponse } from "../models/models_1";
5
+ import { UpdateParticipantRoleConfigRequest, UpdateParticipantRoleConfigResponse } from "../models/models_2";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -23,8 +23,7 @@ export interface UpdateSecurityProfileCommandOutput extends __MetadataBearer {
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>This API is in preview release for Amazon Connect and is subject to change.</p>
27
- * <p>Updates a security profile.</p>
26
+ * <p>Updates a security profile.</p>
28
27
  * @example
29
28
  * Use a bare-bones client and the command you need to make an API call.
30
29
  * ```javascript
@@ -23,10 +23,12 @@ export interface UpdateViewContentCommandOutput extends UpdateViewContentRespons
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Updates the view content of the given view identifier in the specified Amazon Connect instance.</p>
27
- * <p>It performs content validation if <code>Status</code> is set to <code>SAVED</code> and performs full content validation if
28
- * <code>Status</code> is <code>PUBLISHED</code>. Note that the <code>$SAVED</code> alias' content will always be updated,
29
- * but the <code>$LATEST</code> alias' content will only be updated if <code>Status</code> is <code>PUBLISHED</code>.</p>
26
+ * <p>Updates the view content of the given view identifier in the specified Amazon Connect
27
+ * instance.</p>
28
+ * <p>It performs content validation if <code>Status</code> is set to <code>SAVED</code> and
29
+ * performs full content validation if <code>Status</code> is <code>PUBLISHED</code>. Note that the
30
+ * <code>$SAVED</code> alias' content will always be updated, but the <code>$LATEST</code> alias'
31
+ * content will only be updated if <code>Status</code> is <code>PUBLISHED</code>.</p>
30
32
  * @example
31
33
  * Use a bare-bones client and the command you need to make an API call.
32
34
  * ```javascript
@@ -1179,7 +1179,9 @@ export interface CreateContactFlowRequest {
1179
1179
  Description?: string;
1180
1180
  /**
1181
1181
  * @public
1182
- * <p>The content of the flow. </p>
1182
+ * <p>The JSON string that represents the content of the flow. For an example, see <a href="https://docs.aws.amazon.com/connect/latest/APIReference/flow-language-example.html">Example
1183
+ * contact flow in Amazon Connect Flow language</a>. </p>
1184
+ * <p>Length Constraints: Minimum length of 1. Maximum length of 256000.</p>
1183
1185
  */
1184
1186
  Content: string | undefined;
1185
1187
  /**
@@ -2664,7 +2666,7 @@ export interface RuleAction {
2664
2666
  * <p>Supported only for <code>TriggerEventSource</code> values:
2665
2667
  * <code>OnPostCallAnalysisAvailable</code> | <code>OnRealTimeCallAnalysisAvailable</code> |
2666
2668
  * <code>OnPostChatAnalysisAvailable</code> | <code>OnContactEvaluationSubmit</code> |
2667
- * <code>OnMetricDataUpdate</code>
2669
+ * <code>OnMetricDataUpdate</code>
2668
2670
  * </p>
2669
2671
  */
2670
2672
  SendNotificationAction?: SendNotificationActionDefinition;
@@ -3448,9 +3450,8 @@ export interface CreateUserHierarchyGroupResponse {
3448
3450
  }
3449
3451
  /**
3450
3452
  * @public
3451
- * <p>View content containing all content necessary to render a view except
3452
- * for runtime input data and the runtime input schema, which is auto-generated
3453
- * by this operation.</p>
3453
+ * <p>View content containing all content necessary to render a view except for runtime input data
3454
+ * and the runtime input schema, which is auto-generated by this operation.</p>
3454
3455
  */
3455
3456
  export interface ViewInputContent {
3456
3457
  /**
@@ -3488,19 +3489,20 @@ export interface CreateViewRequest {
3488
3489
  InstanceId: string | undefined;
3489
3490
  /**
3490
3491
  * @public
3491
- * <p>A unique Id for each create view request to avoid duplicate view creation. For example, the view
3492
- * is idempotent ClientToken is provided.</p>
3492
+ * <p>A unique Id for each create view request to avoid duplicate view creation. For example, the
3493
+ * view is idempotent ClientToken is provided.</p>
3493
3494
  */
3494
3495
  ClientToken?: string;
3495
3496
  /**
3496
3497
  * @public
3497
3498
  * <p>Indicates the view status as either <code>SAVED</code> or <code>PUBLISHED</code>. The
3498
- * <code>PUBLISHED</code> status will initiate validation on the content.</p>
3499
+ * <code>PUBLISHED</code> status will initiate validation on the content.</p>
3499
3500
  */
3500
3501
  Status: ViewStatus | string | undefined;
3501
3502
  /**
3502
3503
  * @public
3503
- * <p>View content containing all content necessary to render a view except for runtime input data.</p>
3504
+ * <p>View content containing all content necessary to render a view except for runtime input
3505
+ * data.</p>
3504
3506
  * <p>The total uncompressed content has a maximum file size of 400kB.</p>
3505
3507
  */
3506
3508
  Content: ViewInputContent | undefined;
@@ -3516,14 +3518,16 @@ export interface CreateViewRequest {
3516
3518
  Name: string | undefined;
3517
3519
  /**
3518
3520
  * @public
3519
- * <p>The tags associated with the view resource (not specific to view version).These tags can be used
3520
- * to organize, track, or control access for this resource. For example, \{ "tags": \{"key1":"value1", "key2":"value2"\} \}.</p>
3521
+ * <p>The tags associated with the view resource (not specific to view version).These tags can be
3522
+ * used to organize, track, or control access for this resource. For example, \{ "tags":
3523
+ * \{"key1":"value1", "key2":"value2"\} \}.</p>
3521
3524
  */
3522
3525
  Tags?: Record<string, string>;
3523
3526
  }
3524
3527
  /**
3525
3528
  * @public
3526
- * <p>View content containing all content necessary to render a view except for runtime input data.</p>
3529
+ * <p>View content containing all content necessary to render a view except for runtime input
3530
+ * data.</p>
3527
3531
  */
3528
3532
  export interface ViewContent {
3529
3533
  /**
@@ -3577,7 +3581,7 @@ export interface View {
3577
3581
  /**
3578
3582
  * @public
3579
3583
  * <p>Indicates the view status as either <code>SAVED</code> or <code>PUBLISHED</code>. The
3580
- * <code>PUBLISHED</code> status will initiate validation on the content.</p>
3584
+ * <code>PUBLISHED</code> status will initiate validation on the content.</p>
3581
3585
  */
3582
3586
  Status?: ViewStatus | string;
3583
3587
  /**
@@ -3602,7 +3606,8 @@ export interface View {
3602
3606
  VersionDescription?: string;
3603
3607
  /**
3604
3608
  * @public
3605
- * <p>View content containing all content necessary to render a view except for runtime input data.</p>
3609
+ * <p>View content containing all content necessary to render a view except for runtime input
3610
+ * data.</p>
3606
3611
  */
3607
3612
  Content?: ViewContent;
3608
3613
  /**
@@ -3617,7 +3622,8 @@ export interface View {
3617
3622
  CreatedTime?: Date;
3618
3623
  /**
3619
3624
  * @public
3620
- * <p>Latest timestamp of the <code>UpdateViewContent</code> or <code>CreateViewVersion</code> operations.</p>
3625
+ * <p>Latest timestamp of the <code>UpdateViewContent</code> or <code>CreateViewVersion</code>
3626
+ * operations.</p>
3621
3627
  */
3622
3628
  LastModifiedTime?: Date;
3623
3629
  /**
@@ -3695,12 +3701,14 @@ export declare class TooManyRequestsException extends __BaseException {
3695
3701
  export interface CreateViewVersionRequest {
3696
3702
  /**
3697
3703
  * @public
3698
- * <p>The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.</p>
3704
+ * <p>The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of
3705
+ * the instance.</p>
3699
3706
  */
3700
3707
  InstanceId: string | undefined;
3701
3708
  /**
3702
3709
  * @public
3703
- * <p>The identifier of the view. Both <code>ViewArn</code> and <code>ViewId</code> can be used.</p>
3710
+ * <p>The identifier of the view. Both <code>ViewArn</code> and <code>ViewId</code> can be
3711
+ * used.</p>
3704
3712
  */
3705
3713
  ViewId: string | undefined;
3706
3714
  /**
@@ -4142,12 +4150,14 @@ export interface DeleteUserHierarchyGroupRequest {
4142
4150
  export interface DeleteViewRequest {
4143
4151
  /**
4144
4152
  * @public
4145
- * <p>The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.</p>
4153
+ * <p>The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of
4154
+ * the instance.</p>
4146
4155
  */
4147
4156
  InstanceId: string | undefined;
4148
4157
  /**
4149
4158
  * @public
4150
- * <p>The identifier of the view. Both <code>ViewArn</code> and <code>ViewId</code> can be used.</p>
4159
+ * <p>The identifier of the view. Both <code>ViewArn</code> and <code>ViewId</code> can be
4160
+ * used.</p>
4151
4161
  */
4152
4162
  ViewId: string | undefined;
4153
4163
  }
@@ -4162,12 +4172,14 @@ export interface DeleteViewResponse {
4162
4172
  export interface DeleteViewVersionRequest {
4163
4173
  /**
4164
4174
  * @public
4165
- * <p>The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.</p>
4175
+ * <p>The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of
4176
+ * the instance.</p>
4166
4177
  */
4167
4178
  InstanceId: string | undefined;
4168
4179
  /**
4169
4180
  * @public
4170
- * <p>The identifier of the view. Both <code>ViewArn</code> and <code>ViewId</code> can be used.</p>
4181
+ * <p>The identifier of the view. Both <code>ViewArn</code> and <code>ViewId</code> can be
4182
+ * used.</p>
4171
4183
  */
4172
4184
  ViewId: string | undefined;
4173
4185
  /**
@@ -4680,7 +4692,8 @@ export interface ContactFlow {
4680
4692
  Description?: string;
4681
4693
  /**
4682
4694
  * @public
4683
- * <p>The content of the flow.</p>
4695
+ * <p>The JSON string that represents the content of the flow. For an example, see <a href="https://docs.aws.amazon.com/connect/latest/APIReference/flow-language-example.html">Example
4696
+ * contact flow in Amazon Connect Flow language</a>. </p>
4684
4697
  */
4685
4698
  Content?: string;
4686
4699
  /**
@@ -4760,7 +4773,9 @@ export interface ContactFlowModule {
4760
4773
  Name?: string;
4761
4774
  /**
4762
4775
  * @public
4763
- * <p>The content of the flow module.</p>
4776
+ * <p>The JSON string that represents the content of the flow. For an example, see <a href="https://docs.aws.amazon.com/connect/latest/APIReference/flow-language-example.html">Example
4777
+ * contact flow in Amazon Connect Flow language</a>. </p>
4778
+ * <p>Length Constraints: Minimum length of 1. Maximum length of 256000.</p>
4764
4779
  */
4765
4780
  Content?: string;
4766
4781
  /**
@@ -6359,7 +6374,8 @@ export interface DescribeUserHierarchyStructureResponse {
6359
6374
  export interface DescribeViewRequest {
6360
6375
  /**
6361
6376
  * @public
6362
- * <p>The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.</p>
6377
+ * <p>The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of
6378
+ * the instance.</p>
6363
6379
  */
6364
6380
  InstanceId: string | undefined;
6365
6381
  /**
@@ -1392,6 +1392,80 @@ export interface FilterV2 {
1392
1392
  */
1393
1393
  FilterValues?: string[];
1394
1394
  }
1395
+ /**
1396
+ * @public
1397
+ * @enum
1398
+ */
1399
+ export declare const IntervalPeriod: {
1400
+ readonly DAY: "DAY";
1401
+ readonly FIFTEEN_MIN: "FIFTEEN_MIN";
1402
+ readonly HOUR: "HOUR";
1403
+ readonly THIRTY_MIN: "THIRTY_MIN";
1404
+ readonly TOTAL: "TOTAL";
1405
+ readonly WEEK: "WEEK";
1406
+ };
1407
+ /**
1408
+ * @public
1409
+ */
1410
+ export type IntervalPeriod = (typeof IntervalPeriod)[keyof typeof IntervalPeriod];
1411
+ /**
1412
+ * @public
1413
+ * <p>Information about the interval period to use for returning results.</p>
1414
+ */
1415
+ export interface IntervalDetails {
1416
+ /**
1417
+ * @public
1418
+ * <p>The timezone applied to requested metrics.</p>
1419
+ */
1420
+ TimeZone?: string;
1421
+ /**
1422
+ * @public
1423
+ * <p>
1424
+ * <code>IntervalPeriod</code>: An aggregated grouping applied to request metrics. Valid
1425
+ * <code>IntervalPeriod</code> values are: <code>FIFTEEN_MIN</code> | <code>THIRTY_MIN</code> |
1426
+ * <code>HOUR</code> | <code>DAY</code> | <code>WEEK</code> | <code>TOTAL</code>. </p>
1427
+ * <p>For example, if <code>IntervalPeriod</code> is selected <code>THIRTY_MIN</code>,
1428
+ * <code>StartTime</code> and <code>EndTime</code> differs by 1 day, then Amazon Connect
1429
+ * returns 48 results in the response. Each result is aggregated by the THIRTY_MIN period. By
1430
+ * default Amazon Connect aggregates results based on the <code>TOTAL</code> interval period. </p>
1431
+ * <p>The following list describes restrictions on <code>StartTime</code> and <code>EndTime</code>
1432
+ * based on what <code>IntervalPeriod</code> is requested. </p>
1433
+ * <ul>
1434
+ * <li>
1435
+ * <p>
1436
+ * <code>FIFTEEN_MIN</code>: The
1437
+ * difference between <code>StartTime</code> and <code>EndTime</code> must be less than 3
1438
+ * days.</p>
1439
+ * </li>
1440
+ * <li>
1441
+ * <p>
1442
+ * <code>THIRTY_MIN</code>: The difference between <code>StartTime</code> and
1443
+ * <code>EndTime</code> must be less than 3 days.</p>
1444
+ * </li>
1445
+ * <li>
1446
+ * <p>
1447
+ * <code>HOUR</code>: The difference between <code>StartTime</code> and <code>EndTime</code>
1448
+ * must be less than 3 days.</p>
1449
+ * </li>
1450
+ * <li>
1451
+ * <p>
1452
+ * <code>DAY</code>: The difference between <code>StartTime</code> and <code>EndTime</code>
1453
+ * must be less than 35 days.</p>
1454
+ * </li>
1455
+ * <li>
1456
+ * <p>
1457
+ * <code>WEEK</code>: The difference between <code>StartTime</code> and <code>EndTime</code>
1458
+ * must be less than 35 days.</p>
1459
+ * </li>
1460
+ * <li>
1461
+ * <p>
1462
+ * <code>TOTAL</code>: The difference between <code>StartTime</code> and <code>EndTime</code>
1463
+ * must be less than 35 days.</p>
1464
+ * </li>
1465
+ * </ul>
1466
+ */
1467
+ IntervalPeriod?: IntervalPeriod | string;
1468
+ }
1395
1469
  /**
1396
1470
  * @public
1397
1471
  * <p>Contains information about the filter used when retrieving metrics.
@@ -1424,6 +1498,13 @@ export interface MetricFilterV2 {
1424
1498
  * </p>
1425
1499
  */
1426
1500
  MetricFilterValues?: string[];
1501
+ /**
1502
+ * @public
1503
+ * <p>The flag to use to filter on requested metric filter values or to not filter on requested
1504
+ * metric filter values. By default the negate is <code>false</code>, which indicates to filter on
1505
+ * the requested metric filter. </p>
1506
+ */
1507
+ Negate?: boolean;
1427
1508
  }
1428
1509
  /**
1429
1510
  * @public
@@ -1478,9 +1559,9 @@ export interface GetMetricDataV2Request {
1478
1559
  /**
1479
1560
  * @public
1480
1561
  * <p>The timestamp, in UNIX Epoch time format, at which to start the reporting interval for the
1481
- * retrieval of historical metrics data. The time must be before the end time timestamp. The time
1482
- * range between the start and end time must be less than 24 hours. The start time cannot be earlier
1483
- * than 35 days before the time of the request. Historical metrics are available for 35 days.</p>
1562
+ * retrieval of historical metrics data. The time must be before the end time timestamp. The start
1563
+ * and end time depends on the <code>IntervalPeriod</code> selected. By default the time range between
1564
+ * start and end time is 35 days. Historical metrics are available for 3 months.</p>
1484
1565
  */
1485
1566
  StartTime: Date | undefined;
1486
1567
  /**
@@ -1488,9 +1569,63 @@ export interface GetMetricDataV2Request {
1488
1569
  * <p>The timestamp, in UNIX Epoch time format, at which to end the reporting interval for the
1489
1570
  * retrieval of historical metrics data. The time must be later than the start time timestamp. It
1490
1571
  * cannot be later than the current timestamp.</p>
1491
- * <p>The time range between the start and end time must be less than 24 hours.</p>
1492
1572
  */
1493
1573
  EndTime: Date | undefined;
1574
+ /**
1575
+ * @public
1576
+ * <p>The interval period and timezone to apply to returned metrics.</p>
1577
+ * <ul>
1578
+ * <li>
1579
+ * <p>
1580
+ * <code>IntervalPeriod</code>: An aggregated grouping applied to request metrics. Valid
1581
+ * <code>IntervalPeriod</code> values are: <code>FIFTEEN_MIN</code> | <code>THIRTY_MIN</code> |
1582
+ * <code>HOUR</code> | <code>DAY</code> | <code>WEEK</code> | <code>TOTAL</code>. </p>
1583
+ * <p>For example, if <code>IntervalPeriod</code> is selected <code>THIRTY_MIN</code>,
1584
+ * <code>StartTime</code> and <code>EndTime</code> differs by 1 day, then Amazon Connect
1585
+ * returns 48 results in the response. Each result is aggregated by the THIRTY_MIN period. By
1586
+ * default Amazon Connect aggregates results based on the <code>TOTAL</code> interval period. </p>
1587
+ * <p>The following list describes restrictions on <code>StartTime</code> and
1588
+ * <code>EndTime</code> based on which <code>IntervalPeriod</code> is requested. </p>
1589
+ * <ul>
1590
+ * <li>
1591
+ * <p>
1592
+ * <code>FIFTEEN_MIN</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less than 3
1593
+ * days.</p>
1594
+ * </li>
1595
+ * <li>
1596
+ * <p>
1597
+ * <code>THIRTY_MIN</code>: The difference between <code>StartTime</code> and
1598
+ * <code>EndTime</code> must be less than 3 days.</p>
1599
+ * </li>
1600
+ * <li>
1601
+ * <p>
1602
+ * <code>HOUR</code>: The difference between <code>StartTime</code> and
1603
+ * <code>EndTime</code> must be less than 3 days.</p>
1604
+ * </li>
1605
+ * <li>
1606
+ * <p>
1607
+ * <code>DAY</code>: The difference between <code>StartTime</code> and <code>EndTime</code>
1608
+ * must be less than 35 days.</p>
1609
+ * </li>
1610
+ * <li>
1611
+ * <p>
1612
+ * <code>WEEK</code>: The difference between <code>StartTime</code> and
1613
+ * <code>EndTime</code> must be less than 35 days.</p>
1614
+ * </li>
1615
+ * <li>
1616
+ * <p>
1617
+ * <code>TOTAL</code>: The difference between <code>StartTime</code> and
1618
+ * <code>EndTime</code> must be less than 35 days.</p>
1619
+ * </li>
1620
+ * </ul>
1621
+ * </li>
1622
+ * <li>
1623
+ * <p>
1624
+ * <code>TimeZone</code>: The timezone applied to requested metrics.</p>
1625
+ * </li>
1626
+ * </ul>
1627
+ */
1628
+ Interval?: IntervalDetails;
1494
1629
  /**
1495
1630
  * @public
1496
1631
  * <p>The filters to apply to returned metrics. You can filter on the following resources:</p>
@@ -1565,6 +1700,11 @@ export interface GetMetricDataV2Request {
1565
1700
  * following historical metrics are available. For a description of each metric, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html">Historical metrics definitions</a> in the <i>Amazon Connect Administrator's
1566
1701
  * Guide</i>.</p>
1567
1702
  * <dl>
1703
+ * <dt>ABANDONMENT_RATE</dt>
1704
+ * <dd>
1705
+ * <p>Unit: Percent</p>
1706
+ * <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
1707
+ * </dd>
1568
1708
  * <dt>AGENT_ADHERENT_TIME</dt>
1569
1709
  * <dd>
1570
1710
  * <p>This metric is available only in Amazon Web Services Regions where <a href="https://docs.aws.amazon.com/connect/latest/adminguide/regions.html#optimization_region">Forecasting, capacity planning, and scheduling</a> is available.</p>
@@ -1576,6 +1716,12 @@ export interface GetMetricDataV2Request {
1576
1716
  * <p>Unit: Count</p>
1577
1717
  * <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy </p>
1578
1718
  * </dd>
1719
+ * <dt>AGENT_NON_RESPONSE_WITHOUT_CUSTOMER_ABANDONS</dt>
1720
+ * <dd>
1721
+ * <p>Unit: Count</p>
1722
+ * <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
1723
+ * <p>Data for this metric is available starting from October 1, 2023 0:00:00 GMT.</p>
1724
+ * </dd>
1579
1725
  * <dt>AGENT_OCCUPANCY</dt>
1580
1726
  * <dd>
1581
1727
  * <p>Unit: Percentage</p>
@@ -1614,15 +1760,9 @@ export interface GetMetricDataV2Request {
1614
1760
  * <code>OUTBOUND</code> | <code>CALLBACK</code> | <code>API</code>
1615
1761
  * </p>
1616
1762
  * <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
1617
- * </dd>
1618
- * <dt>AVG_AGENT_CONNECTING_TIME</dt>
1619
- * <dd>
1620
- * <p>Unit: Seconds</p>
1621
- * <p>Valid metric filter key: <code>INITIATION_METHOD</code>. For now, this metric only
1622
- * supports the following as <code>INITIATION_METHOD</code>: <code>INBOUND</code> |
1623
- * <code>OUTBOUND</code> | <code>CALLBACK</code> | <code>API</code>
1624
- * </p>
1625
- * <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
1763
+ * <note>
1764
+ * <p>The <code>Negate</code> key in Metric Level Filters is not applicable for this metric.</p>
1765
+ * </note>
1626
1766
  * </dd>
1627
1767
  * <dt>AVG_CONTACT_DURATION</dt>
1628
1768
  * <dd>
@@ -1660,6 +1800,11 @@ export interface GetMetricDataV2Request {
1660
1800
  * <p>Feature is a valid filter but not a valid grouping.</p>
1661
1801
  * </note>
1662
1802
  * </dd>
1803
+ * <dt>AVG_HOLD_TIME_ALL_CONTACTS</dt>
1804
+ * <dd>
1805
+ * <p>Unit: Seconds</p>
1806
+ * <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
1807
+ * </dd>
1663
1808
  * <dt>AVG_HOLDS</dt>
1664
1809
  * <dd>
1665
1810
  * <p>Unit: Count</p>
@@ -1710,6 +1855,11 @@ export interface GetMetricDataV2Request {
1710
1855
  * <p>Feature is a valid filter but not a valid grouping.</p>
1711
1856
  * </note>
1712
1857
  * </dd>
1858
+ * <dt>AVG_RESOLUTION_TIME</dt>
1859
+ * <dd>
1860
+ * <p>Unit: Seconds</p>
1861
+ * <p>Valid groupings and filters: Queue, Channel, Routing Profile</p>
1862
+ * </dd>
1713
1863
  * <dt>AVG_TALK_TIME</dt>
1714
1864
  * <dd>
1715
1865
  * <p>This metric is available only for contacts analyzed by Contact Lens conversational
@@ -1767,6 +1917,14 @@ export interface GetMetricDataV2Request {
1767
1917
  * <p>Unit: Count</p>
1768
1918
  * <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
1769
1919
  * </dd>
1920
+ * <dt>CONTACTS_RESOLVED_IN_X</dt>
1921
+ * <dd>
1922
+ * <p>Unit: Count</p>
1923
+ * <p>Valid groupings and filters: Queue, Channel, Routing Profile</p>
1924
+ * <p>Threshold: For <code>ThresholdValue</code> enter any whole number from 1 to 604800
1925
+ * (inclusive), in seconds. For <code>Comparison</code>, you must enter <code>LT</code> (for
1926
+ * "Less than").</p>
1927
+ * </dd>
1770
1928
  * <dt>CONTACTS_TRANSFERRED_OUT</dt>
1771
1929
  * <dd>
1772
1930
  * <p>Unit: Count</p>
@@ -1858,6 +2016,32 @@ export interface MetricDataV2 {
1858
2016
  */
1859
2017
  Value?: number;
1860
2018
  }
2019
+ /**
2020
+ * @public
2021
+ * <p>The interval period with the start and end time for the metrics.</p>
2022
+ */
2023
+ export interface MetricInterval {
2024
+ /**
2025
+ * @public
2026
+ * <p>The interval period provided in the API request. </p>
2027
+ */
2028
+ Interval?: IntervalPeriod | string;
2029
+ /**
2030
+ * @public
2031
+ * <p>The timestamp, in UNIX Epoch time format. Start time is based on the interval period
2032
+ * selected. </p>
2033
+ */
2034
+ StartTime?: Date;
2035
+ /**
2036
+ * @public
2037
+ * <p>The timestamp, in UNIX Epoch time format. End time is based on the interval period selected.
2038
+ * For example, If <code>IntervalPeriod</code> is selected <code>THIRTY_MIN</code>,
2039
+ * <code>StartTime</code> and <code>EndTime</code> in the API request differs by 1 day, then 48
2040
+ * results are returned in the response. Each result is aggregated by the 30 minutes period, with
2041
+ * each <code>StartTime</code> and <code>EndTime</code> differing by 30 minutes. </p>
2042
+ */
2043
+ EndTime?: Date;
2044
+ }
1861
2045
  /**
1862
2046
  * @public
1863
2047
  * <p>Contains information about the metric results.</p>
@@ -1868,6 +2052,11 @@ export interface MetricResultV2 {
1868
2052
  * <p>The dimension for the metrics.</p>
1869
2053
  */
1870
2054
  Dimensions?: Record<string, string>;
2055
+ /**
2056
+ * @public
2057
+ * <p>The interval period with the start and end time for the metrics.</p>
2058
+ */
2059
+ MetricInterval?: MetricInterval;
1871
2060
  /**
1872
2061
  * @public
1873
2062
  * <p>The set of metrics.</p>
@@ -4134,7 +4323,8 @@ export interface ListSecurityProfileApplicationsRequest {
4134
4323
  export interface ListSecurityProfileApplicationsResponse {
4135
4324
  /**
4136
4325
  * @public
4137
- * <p>A list of the third party application's metadata.</p>
4326
+ * <p>This API is in preview release for Amazon Connect and is subject to change.</p>
4327
+ * <p>A list of the third party application's metadata.</p>
4138
4328
  */
4139
4329
  Applications?: Application[];
4140
4330
  /**
@@ -4687,7 +4877,8 @@ export interface ListUsersResponse {
4687
4877
  export interface ListViewsRequest {
4688
4878
  /**
4689
4879
  * @public
4690
- * <p>The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.</p>
4880
+ * <p>The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of
4881
+ * the instance.</p>
4691
4882
  */
4692
4883
  InstanceId: string | undefined;
4693
4884
  /**
@@ -4697,8 +4888,8 @@ export interface ListViewsRequest {
4697
4888
  Type?: ViewType | string;
4698
4889
  /**
4699
4890
  * @public
4700
- * <p>The token for the next set of results. Use the value returned in the previous response in the next request to
4701
- * retrieve the next set of results.</p>
4891
+ * <p>The token for the next set of results. Use the value returned in the previous response in
4892
+ * the next request to retrieve the next set of results.</p>
4702
4893
  */
4703
4894
  NextToken?: string;
4704
4895
  /**
@@ -4735,7 +4926,7 @@ export interface ViewSummary {
4735
4926
  /**
4736
4927
  * @public
4737
4928
  * <p>Indicates the view status as either <code>SAVED</code> or <code>PUBLISHED</code>. The
4738
- * <code>PUBLISHED</code> status will initiate validation on the content.</p>
4929
+ * <code>PUBLISHED</code> status will initiate validation on the content.</p>
4739
4930
  */
4740
4931
  Status?: ViewStatus | string;
4741
4932
  /**
@@ -4755,8 +4946,8 @@ export interface ListViewsResponse {
4755
4946
  ViewsSummaryList?: ViewSummary[];
4756
4947
  /**
4757
4948
  * @public
4758
- * <p>The token for the next set of results. Use the value returned in the previous response in the next request to
4759
- * retrieve the next set of results.</p>
4949
+ * <p>The token for the next set of results. Use the value returned in the previous response in
4950
+ * the next request to retrieve the next set of results.</p>
4760
4951
  */
4761
4952
  NextToken?: string;
4762
4953
  }
@@ -4766,18 +4957,20 @@ export interface ListViewsResponse {
4766
4957
  export interface ListViewVersionsRequest {
4767
4958
  /**
4768
4959
  * @public
4769
- * <p>The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.</p>
4960
+ * <p>The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of
4961
+ * the instance.</p>
4770
4962
  */
4771
4963
  InstanceId: string | undefined;
4772
4964
  /**
4773
4965
  * @public
4774
- * <p>The identifier of the view. Both <code>ViewArn</code> and <code>ViewId</code> can be used.</p>
4966
+ * <p>The identifier of the view. Both <code>ViewArn</code> and <code>ViewId</code> can be
4967
+ * used.</p>
4775
4968
  */
4776
4969
  ViewId: string | undefined;
4777
4970
  /**
4778
4971
  * @public
4779
- * <p>The token for the next set of results. Use the value returned in the previous response in the next request to
4780
- * retrieve the next set of results.</p>
4972
+ * <p>The token for the next set of results. Use the value returned in the previous response in
4973
+ * the next request to retrieve the next set of results.</p>
4781
4974
  */
4782
4975
  NextToken?: string;
4783
4976
  /**
@@ -4838,8 +5031,8 @@ export interface ListViewVersionsResponse {
4838
5031
  ViewVersionSummaryList?: ViewVersionSummary[];
4839
5032
  /**
4840
5033
  * @public
4841
- * <p>The token for the next set of results. Use the value returned in the previous response in the next request to
4842
- * retrieve the next set of results.</p>
5034
+ * <p>The token for the next set of results. Use the value returned in the previous response in
5035
+ * the next request to retrieve the next set of results.</p>
4843
5036
  */
4844
5037
  NextToken?: string;
4845
5038
  }
@@ -6818,8 +7011,9 @@ export interface UpdateContactFlowContentRequest {
6818
7011
  ContactFlowId: string | undefined;
6819
7012
  /**
6820
7013
  * @public
6821
- * <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
7014
+ * <p>The JSON string that represents the content of the flow. For an example, see <a href="https://docs.aws.amazon.com/connect/latest/APIReference/flow-language-example.html">Example
6822
7015
  * contact flow in Amazon Connect Flow language</a>. </p>
7016
+ * <p>Length Constraints: Minimum length of 1. Maximum length of 256000.</p>
6823
7017
  */
6824
7018
  Content: string | undefined;
6825
7019
  }
@@ -6879,7 +7073,8 @@ export interface UpdateContactFlowModuleContentRequest {
6879
7073
  ContactFlowModuleId: string | undefined;
6880
7074
  /**
6881
7075
  * @public
6882
- * <p>The content of the flow module.</p>
7076
+ * <p>The JSON string that represents the content of the flow. For an example, see <a href="https://docs.aws.amazon.com/connect/latest/APIReference/flow-language-example.html">Example
7077
+ * contact flow in Amazon Connect Flow language</a>. </p>
6883
7078
  */
6884
7079
  Content: string | undefined;
6885
7080
  }
@@ -7203,61 +7398,6 @@ export interface ChatParticipantRoleConfig {
7203
7398
  */
7204
7399
  ParticipantTimerConfigList: ParticipantTimerConfiguration[] | undefined;
7205
7400
  }
7206
- /**
7207
- * @public
7208
- * <p>Configuration information for the chat participant role.</p>
7209
- */
7210
- export type UpdateParticipantRoleConfigChannelInfo = UpdateParticipantRoleConfigChannelInfo.ChatMember | UpdateParticipantRoleConfigChannelInfo.$UnknownMember;
7211
- /**
7212
- * @public
7213
- */
7214
- export declare namespace UpdateParticipantRoleConfigChannelInfo {
7215
- /**
7216
- * @public
7217
- * <p>Configuration information for the chat participant role.</p>
7218
- */
7219
- interface ChatMember {
7220
- Chat: ChatParticipantRoleConfig;
7221
- $unknown?: never;
7222
- }
7223
- /**
7224
- * @public
7225
- */
7226
- interface $UnknownMember {
7227
- Chat?: never;
7228
- $unknown: [string, any];
7229
- }
7230
- interface Visitor<T> {
7231
- Chat: (value: ChatParticipantRoleConfig) => T;
7232
- _: (name: string, value: any) => T;
7233
- }
7234
- const visit: <T>(value: UpdateParticipantRoleConfigChannelInfo, visitor: Visitor<T>) => T;
7235
- }
7236
- /**
7237
- * @public
7238
- */
7239
- export interface UpdateParticipantRoleConfigRequest {
7240
- /**
7241
- * @public
7242
- * <p>The identifier of the Amazon Connect 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>
7243
- */
7244
- InstanceId: string | undefined;
7245
- /**
7246
- * @public
7247
- * <p>The identifier of the contact in this instance of Amazon Connect. </p>
7248
- */
7249
- ContactId: string | undefined;
7250
- /**
7251
- * @public
7252
- * <p>The Amazon Connect channel you want to configure.</p>
7253
- */
7254
- ChannelConfiguration: UpdateParticipantRoleConfigChannelInfo | undefined;
7255
- }
7256
- /**
7257
- * @public
7258
- */
7259
- export interface UpdateParticipantRoleConfigResponse {
7260
- }
7261
7401
  /**
7262
7402
  * @internal
7263
7403
  */
@@ -1,5 +1,60 @@
1
1
  import { AgentAvailabilityTimer, AgentConfig, Application, Evaluation, EvaluationFormQuestion, EvaluationFormScoringStrategy, EvaluationFormVersionStatus, MediaConcurrency, OutboundCallerConfig, QueueStatus, QuickConnectConfig, RoutingProfileQueueConfig, RuleAction, RulePublishStatus, TaskTemplateConstraints, TaskTemplateDefaults, TaskTemplateField, TaskTemplateStatus, UserIdentityInfo, UserPhoneConfig, View, ViewInputContent, ViewStatus } from "./models_0";
2
- import { HierarchyGroupCondition, HoursOfOperationSearchFilter, PromptSearchFilter, QueueSearchFilter, QuickConnectSearchFilter, RoutingProfileSearchFilter, SearchableQueueType, SecurityProfilesSearchFilter, SignInConfig, StringCondition, TelephonyConfig, UserSearchFilter } from "./models_1";
2
+ import { ChatParticipantRoleConfig, HierarchyGroupCondition, HoursOfOperationSearchFilter, PromptSearchFilter, QueueSearchFilter, QuickConnectSearchFilter, RoutingProfileSearchFilter, SearchableQueueType, SecurityProfilesSearchFilter, SignInConfig, StringCondition, TelephonyConfig, UserSearchFilter } from "./models_1";
3
+ /**
4
+ * @public
5
+ * <p>Configuration information for the chat participant role.</p>
6
+ */
7
+ export type UpdateParticipantRoleConfigChannelInfo = UpdateParticipantRoleConfigChannelInfo.ChatMember | UpdateParticipantRoleConfigChannelInfo.$UnknownMember;
8
+ /**
9
+ * @public
10
+ */
11
+ export declare namespace UpdateParticipantRoleConfigChannelInfo {
12
+ /**
13
+ * @public
14
+ * <p>Configuration information for the chat participant role.</p>
15
+ */
16
+ interface ChatMember {
17
+ Chat: ChatParticipantRoleConfig;
18
+ $unknown?: never;
19
+ }
20
+ /**
21
+ * @public
22
+ */
23
+ interface $UnknownMember {
24
+ Chat?: never;
25
+ $unknown: [string, any];
26
+ }
27
+ interface Visitor<T> {
28
+ Chat: (value: ChatParticipantRoleConfig) => T;
29
+ _: (name: string, value: any) => T;
30
+ }
31
+ const visit: <T>(value: UpdateParticipantRoleConfigChannelInfo, visitor: Visitor<T>) => T;
32
+ }
33
+ /**
34
+ * @public
35
+ */
36
+ export interface UpdateParticipantRoleConfigRequest {
37
+ /**
38
+ * @public
39
+ * <p>The identifier of the Amazon Connect 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>
40
+ */
41
+ InstanceId: string | undefined;
42
+ /**
43
+ * @public
44
+ * <p>The identifier of the contact in this instance of Amazon Connect. </p>
45
+ */
46
+ ContactId: string | undefined;
47
+ /**
48
+ * @public
49
+ * <p>The Amazon Connect channel you want to configure.</p>
50
+ */
51
+ ChannelConfiguration: UpdateParticipantRoleConfigChannelInfo | undefined;
52
+ }
53
+ /**
54
+ * @public
55
+ */
56
+ export interface UpdateParticipantRoleConfigResponse {
57
+ }
3
58
  /**
4
59
  * @public
5
60
  */
@@ -758,18 +813,20 @@ export interface UpdateUserSecurityProfilesRequest {
758
813
  export interface UpdateViewContentRequest {
759
814
  /**
760
815
  * @public
761
- * <p>The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.</p>
816
+ * <p>The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of
817
+ * the instance.</p>
762
818
  */
763
819
  InstanceId: string | undefined;
764
820
  /**
765
821
  * @public
766
- * <p>The identifier of the view. Both <code>ViewArn</code> and <code>ViewId</code> can be used.</p>
822
+ * <p>The identifier of the view. Both <code>ViewArn</code> and <code>ViewId</code> can be
823
+ * used.</p>
767
824
  */
768
825
  ViewId: string | undefined;
769
826
  /**
770
827
  * @public
771
828
  * <p>Indicates the view status as either <code>SAVED</code> or <code>PUBLISHED</code>. The
772
- * <code>PUBLISHED</code> status will initiate validation on the content.</p>
829
+ * <code>PUBLISHED</code> status will initiate validation on the content.</p>
773
830
  */
774
831
  Status: ViewStatus | string | undefined;
775
832
  /**
@@ -796,12 +853,14 @@ export interface UpdateViewContentResponse {
796
853
  export interface UpdateViewMetadataRequest {
797
854
  /**
798
855
  * @public
799
- * <p>The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.</p>
856
+ * <p>The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of
857
+ * the instance.</p>
800
858
  */
801
859
  InstanceId: string | undefined;
802
860
  /**
803
861
  * @public
804
- * <p>The identifier of the view. Both <code>ViewArn</code> and <code>ViewId</code> can be used.</p>
862
+ * <p>The identifier of the view. Both <code>ViewArn</code> and <code>ViewId</code> can be
863
+ * used.</p>
805
864
  */
806
865
  ViewId: string | undefined;
807
866
  /**
@@ -14,7 +14,7 @@ import {
14
14
  import {
15
15
  UpdateParticipantRoleConfigRequest,
16
16
  UpdateParticipantRoleConfigResponse,
17
- } from "../models/models_1";
17
+ } from "../models/models_2";
18
18
  export { __MetadataBearer, $Command };
19
19
  export interface UpdateParticipantRoleConfigCommandInput
20
20
  extends UpdateParticipantRoleConfigRequest {}
@@ -361,9 +361,24 @@ export interface FilterV2 {
361
361
  FilterKey?: string;
362
362
  FilterValues?: string[];
363
363
  }
364
+ export declare const IntervalPeriod: {
365
+ readonly DAY: "DAY";
366
+ readonly FIFTEEN_MIN: "FIFTEEN_MIN";
367
+ readonly HOUR: "HOUR";
368
+ readonly THIRTY_MIN: "THIRTY_MIN";
369
+ readonly TOTAL: "TOTAL";
370
+ readonly WEEK: "WEEK";
371
+ };
372
+ export type IntervalPeriod =
373
+ (typeof IntervalPeriod)[keyof typeof IntervalPeriod];
374
+ export interface IntervalDetails {
375
+ TimeZone?: string;
376
+ IntervalPeriod?: IntervalPeriod | string;
377
+ }
364
378
  export interface MetricFilterV2 {
365
379
  MetricFilterKey?: string;
366
380
  MetricFilterValues?: string[];
381
+ Negate?: boolean;
367
382
  }
368
383
  export interface ThresholdV2 {
369
384
  Comparison?: string;
@@ -378,6 +393,7 @@ export interface GetMetricDataV2Request {
378
393
  ResourceArn: string | undefined;
379
394
  StartTime: Date | undefined;
380
395
  EndTime: Date | undefined;
396
+ Interval?: IntervalDetails;
381
397
  Filters: FilterV2[] | undefined;
382
398
  Groupings?: string[];
383
399
  Metrics: MetricV2[] | undefined;
@@ -388,8 +404,14 @@ export interface MetricDataV2 {
388
404
  Metric?: MetricV2;
389
405
  Value?: number;
390
406
  }
407
+ export interface MetricInterval {
408
+ Interval?: IntervalPeriod | string;
409
+ StartTime?: Date;
410
+ EndTime?: Date;
411
+ }
391
412
  export interface MetricResultV2 {
392
413
  Dimensions?: Record<string, string>;
414
+ MetricInterval?: MetricInterval;
393
415
  Collections?: MetricDataV2[];
394
416
  }
395
417
  export interface GetMetricDataV2Response {
@@ -1709,33 +1731,6 @@ export interface ParticipantTimerConfiguration {
1709
1731
  export interface ChatParticipantRoleConfig {
1710
1732
  ParticipantTimerConfigList: ParticipantTimerConfiguration[] | undefined;
1711
1733
  }
1712
- export type UpdateParticipantRoleConfigChannelInfo =
1713
- | UpdateParticipantRoleConfigChannelInfo.ChatMember
1714
- | UpdateParticipantRoleConfigChannelInfo.$UnknownMember;
1715
- export declare namespace UpdateParticipantRoleConfigChannelInfo {
1716
- interface ChatMember {
1717
- Chat: ChatParticipantRoleConfig;
1718
- $unknown?: never;
1719
- }
1720
- interface $UnknownMember {
1721
- Chat?: never;
1722
- $unknown: [string, any];
1723
- }
1724
- interface Visitor<T> {
1725
- Chat: (value: ChatParticipantRoleConfig) => T;
1726
- _: (name: string, value: any) => T;
1727
- }
1728
- const visit: <T>(
1729
- value: UpdateParticipantRoleConfigChannelInfo,
1730
- visitor: Visitor<T>
1731
- ) => T;
1732
- }
1733
- export interface UpdateParticipantRoleConfigRequest {
1734
- InstanceId: string | undefined;
1735
- ContactId: string | undefined;
1736
- ChannelConfiguration: UpdateParticipantRoleConfigChannelInfo | undefined;
1737
- }
1738
- export interface UpdateParticipantRoleConfigResponse {}
1739
1734
  export declare const CredentialsFilterSensitiveLog: (obj: Credentials) => any;
1740
1735
  export declare const GetFederationTokenResponseFilterSensitiveLog: (
1741
1736
  obj: GetFederationTokenResponse
@@ -24,6 +24,7 @@ import {
24
24
  ViewStatus,
25
25
  } from "./models_0";
26
26
  import {
27
+ ChatParticipantRoleConfig,
27
28
  HierarchyGroupCondition,
28
29
  HoursOfOperationSearchFilter,
29
30
  PromptSearchFilter,
@@ -37,6 +38,33 @@ import {
37
38
  TelephonyConfig,
38
39
  UserSearchFilter,
39
40
  } from "./models_1";
41
+ export type UpdateParticipantRoleConfigChannelInfo =
42
+ | UpdateParticipantRoleConfigChannelInfo.ChatMember
43
+ | UpdateParticipantRoleConfigChannelInfo.$UnknownMember;
44
+ export declare namespace UpdateParticipantRoleConfigChannelInfo {
45
+ interface ChatMember {
46
+ Chat: ChatParticipantRoleConfig;
47
+ $unknown?: never;
48
+ }
49
+ interface $UnknownMember {
50
+ Chat?: never;
51
+ $unknown: [string, any];
52
+ }
53
+ interface Visitor<T> {
54
+ Chat: (value: ChatParticipantRoleConfig) => T;
55
+ _: (name: string, value: any) => T;
56
+ }
57
+ const visit: <T>(
58
+ value: UpdateParticipantRoleConfigChannelInfo,
59
+ visitor: Visitor<T>
60
+ ) => T;
61
+ }
62
+ export interface UpdateParticipantRoleConfigRequest {
63
+ InstanceId: string | undefined;
64
+ ContactId: string | undefined;
65
+ ChannelConfiguration: UpdateParticipantRoleConfigChannelInfo | undefined;
66
+ }
67
+ export interface UpdateParticipantRoleConfigResponse {}
40
68
  export interface UpdatePhoneNumberRequest {
41
69
  PhoneNumberId: string | undefined;
42
70
  TargetArn: string | undefined;
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.423.0",
4
+ "version": "3.424.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",