@aws-sdk/client-connect 3.835.0 → 3.840.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
@@ -1257,6 +1257,7 @@ var ConflictException = class _ConflictException extends ConnectServiceException
1257
1257
  }
1258
1258
  };
1259
1259
  var InitiateAs = {
1260
+ COMPLETED: "COMPLETED",
1260
1261
  CONNECTED_TO_USER: "CONNECTED_TO_USER"
1261
1262
  };
1262
1263
  var ReferenceStatus = {
@@ -1718,6 +1719,13 @@ var AnsweringMachineDetectionStatus = {
1718
1719
  VOICEMAIL_BEEP: "VOICEMAIL_BEEP",
1719
1720
  VOICEMAIL_NO_BEEP: "VOICEMAIL_NO_BEEP"
1720
1721
  };
1722
+ var ParticipantType = {
1723
+ AGENT: "AGENT",
1724
+ ALL: "ALL",
1725
+ CUSTOMER: "CUSTOMER",
1726
+ MANAGER: "MANAGER",
1727
+ THIRDPARTY: "THIRDPARTY"
1728
+ };
1721
1729
  var Status = {
1722
1730
  COMPLETE: "COMPLETE",
1723
1731
  DELETED: "DELETED",
@@ -1727,13 +1735,6 @@ var MediaStreamType = {
1727
1735
  AUDIO: "AUDIO",
1728
1736
  VIDEO: "VIDEO"
1729
1737
  };
1730
- var ParticipantType = {
1731
- AGENT: "AGENT",
1732
- ALL: "ALL",
1733
- CUSTOMER: "CUSTOMER",
1734
- MANAGER: "MANAGER",
1735
- THIRDPARTY: "THIRDPARTY"
1736
- };
1737
1738
  var RecordingStatus = {
1738
1739
  AVAILABLE: "AVAILABLE",
1739
1740
  DELETED: "DELETED"
@@ -2545,8 +2546,8 @@ var ParticipantTimerValue;
2545
2546
  }, "visit");
2546
2547
  })(ParticipantTimerValue || (ParticipantTimerValue = {}));
2547
2548
  var UpdateParticipantRoleConfigChannelInfo;
2548
- ((UpdateParticipantRoleConfigChannelInfo3) => {
2549
- UpdateParticipantRoleConfigChannelInfo3.visit = /* @__PURE__ */ __name((value, visitor) => {
2549
+ ((UpdateParticipantRoleConfigChannelInfo4) => {
2550
+ UpdateParticipantRoleConfigChannelInfo4.visit = /* @__PURE__ */ __name((value, visitor) => {
2550
2551
  if (value.Chat !== void 0) return visitor.Chat(value.Chat);
2551
2552
  return visitor._(value.$unknown[0], value.$unknown[1]);
2552
2553
  }, "visit");
@@ -12065,6 +12066,25 @@ var de_CaseSlaConfiguration = /* @__PURE__ */ __name((output, context) => {
12065
12066
  Type: import_smithy_client.expectString
12066
12067
  });
12067
12068
  }, "de_CaseSlaConfiguration");
12069
+ var de_ChatContactMetrics = /* @__PURE__ */ __name((output, context) => {
12070
+ return (0, import_smithy_client.take)(output, {
12071
+ AgentFirstResponseTimeInMillis: import_smithy_client.expectLong,
12072
+ AgentFirstResponseTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "AgentFirstResponseTimestamp"),
12073
+ ConversationCloseTimeInMillis: import_smithy_client.expectLong,
12074
+ ConversationTurnCount: import_smithy_client.expectInt32,
12075
+ MultiParty: import_smithy_client.expectBoolean,
12076
+ TotalBotMessageLengthInChars: import_smithy_client.expectInt32,
12077
+ TotalBotMessages: import_smithy_client.expectInt32,
12078
+ TotalMessages: import_smithy_client.expectInt32
12079
+ });
12080
+ }, "de_ChatContactMetrics");
12081
+ var de_ChatMetrics = /* @__PURE__ */ __name((output, context) => {
12082
+ return (0, import_smithy_client.take)(output, {
12083
+ AgentMetrics: /* @__PURE__ */ __name((_) => de_ParticipantMetrics(_, context), "AgentMetrics"),
12084
+ ChatContactMetrics: /* @__PURE__ */ __name((_) => de_ChatContactMetrics(_, context), "ChatContactMetrics"),
12085
+ CustomerMetrics: /* @__PURE__ */ __name((_) => de_ParticipantMetrics(_, context), "CustomerMetrics")
12086
+ });
12087
+ }, "de_ChatMetrics");
12068
12088
  var de_Contact = /* @__PURE__ */ __name((output, context) => {
12069
12089
  return (0, import_smithy_client.take)(output, {
12070
12090
  AdditionalEmailRecipients: import_smithy_client._json,
@@ -12074,6 +12094,7 @@ var de_Contact = /* @__PURE__ */ __name((output, context) => {
12074
12094
  Attributes: import_smithy_client._json,
12075
12095
  Campaign: import_smithy_client._json,
12076
12096
  Channel: import_smithy_client.expectString,
12097
+ ChatMetrics: /* @__PURE__ */ __name((_) => de_ChatMetrics(_, context), "ChatMetrics"),
12077
12098
  ConnectedToSystemTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ConnectedToSystemTimestamp"),
12078
12099
  ContactAssociationId: import_smithy_client.expectString,
12079
12100
  ContactDetails: import_smithy_client._json,
@@ -12665,6 +12686,19 @@ var de_MetricV2 = /* @__PURE__ */ __name((output, context) => {
12665
12686
  Threshold: /* @__PURE__ */ __name((_) => de_ThresholdCollections(_, context), "Threshold")
12666
12687
  });
12667
12688
  }, "de_MetricV2");
12689
+ var de_ParticipantMetrics = /* @__PURE__ */ __name((output, context) => {
12690
+ return (0, import_smithy_client.take)(output, {
12691
+ ConversationAbandon: import_smithy_client.expectBoolean,
12692
+ LastMessageTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastMessageTimestamp"),
12693
+ MaxResponseTimeInMillis: import_smithy_client.expectLong,
12694
+ MessageLengthInChars: import_smithy_client.expectInt32,
12695
+ MessagesSent: import_smithy_client.expectInt32,
12696
+ NumResponses: import_smithy_client.expectInt32,
12697
+ ParticipantId: import_smithy_client.expectString,
12698
+ ParticipantType: import_smithy_client.expectString,
12699
+ TotalResponseTimeInMillis: import_smithy_client.expectLong
12700
+ });
12701
+ }, "de_ParticipantMetrics");
12668
12702
  var de_PredefinedAttribute = /* @__PURE__ */ __name((output, context) => {
12669
12703
  return (0, import_smithy_client.take)(output, {
12670
12704
  LastModifiedRegion: import_smithy_client.expectString,
@@ -18578,9 +18612,9 @@ var paginateSearchVocabularies = (0, import_core.createPaginator)(ConnectClient,
18578
18612
  CreateViewResponseFilterSensitiveLog,
18579
18613
  CreateViewVersionResponseFilterSensitiveLog,
18580
18614
  AnsweringMachineDetectionStatus,
18615
+ ParticipantType,
18581
18616
  Status,
18582
18617
  MediaStreamType,
18583
- ParticipantType,
18584
18618
  RecordingStatus,
18585
18619
  RoutingCriteriaStepStatus,
18586
18620
  EvaluationAnswerData,
@@ -386,6 +386,7 @@ export class ConflictException extends __BaseException {
386
386
  }
387
387
  }
388
388
  export const InitiateAs = {
389
+ COMPLETED: "COMPLETED",
389
390
  CONNECTED_TO_USER: "CONNECTED_TO_USER",
390
391
  };
391
392
  export const ReferenceStatus = {
@@ -17,6 +17,13 @@ export const AnsweringMachineDetectionStatus = {
17
17
  VOICEMAIL_BEEP: "VOICEMAIL_BEEP",
18
18
  VOICEMAIL_NO_BEEP: "VOICEMAIL_NO_BEEP",
19
19
  };
20
+ export const ParticipantType = {
21
+ AGENT: "AGENT",
22
+ ALL: "ALL",
23
+ CUSTOMER: "CUSTOMER",
24
+ MANAGER: "MANAGER",
25
+ THIRDPARTY: "THIRDPARTY",
26
+ };
20
27
  export const Status = {
21
28
  COMPLETE: "COMPLETE",
22
29
  DELETED: "DELETED",
@@ -26,13 +33,6 @@ export const MediaStreamType = {
26
33
  AUDIO: "AUDIO",
27
34
  VIDEO: "VIDEO",
28
35
  };
29
- export const ParticipantType = {
30
- AGENT: "AGENT",
31
- ALL: "ALL",
32
- CUSTOMER: "CUSTOMER",
33
- MANAGER: "MANAGER",
34
- THIRDPARTY: "THIRDPARTY",
35
- };
36
36
  export const RecordingStatus = {
37
37
  AVAILABLE: "AVAILABLE",
38
38
  DELETED: "DELETED",
@@ -9001,6 +9001,25 @@ const de_CaseSlaConfiguration = (output, context) => {
9001
9001
  Type: __expectString,
9002
9002
  });
9003
9003
  };
9004
+ const de_ChatContactMetrics = (output, context) => {
9005
+ return take(output, {
9006
+ AgentFirstResponseTimeInMillis: __expectLong,
9007
+ AgentFirstResponseTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
9008
+ ConversationCloseTimeInMillis: __expectLong,
9009
+ ConversationTurnCount: __expectInt32,
9010
+ MultiParty: __expectBoolean,
9011
+ TotalBotMessageLengthInChars: __expectInt32,
9012
+ TotalBotMessages: __expectInt32,
9013
+ TotalMessages: __expectInt32,
9014
+ });
9015
+ };
9016
+ const de_ChatMetrics = (output, context) => {
9017
+ return take(output, {
9018
+ AgentMetrics: (_) => de_ParticipantMetrics(_, context),
9019
+ ChatContactMetrics: (_) => de_ChatContactMetrics(_, context),
9020
+ CustomerMetrics: (_) => de_ParticipantMetrics(_, context),
9021
+ });
9022
+ };
9004
9023
  const de_Contact = (output, context) => {
9005
9024
  return take(output, {
9006
9025
  AdditionalEmailRecipients: _json,
@@ -9010,6 +9029,7 @@ const de_Contact = (output, context) => {
9010
9029
  Attributes: _json,
9011
9030
  Campaign: _json,
9012
9031
  Channel: __expectString,
9032
+ ChatMetrics: (_) => de_ChatMetrics(_, context),
9013
9033
  ConnectedToSystemTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
9014
9034
  ContactAssociationId: __expectString,
9015
9035
  ContactDetails: _json,
@@ -9637,6 +9657,19 @@ const de_MetricV2 = (output, context) => {
9637
9657
  Threshold: (_) => de_ThresholdCollections(_, context),
9638
9658
  });
9639
9659
  };
9660
+ const de_ParticipantMetrics = (output, context) => {
9661
+ return take(output, {
9662
+ ConversationAbandon: __expectBoolean,
9663
+ LastMessageTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
9664
+ MaxResponseTimeInMillis: __expectLong,
9665
+ MessageLengthInChars: __expectInt32,
9666
+ MessagesSent: __expectInt32,
9667
+ NumResponses: __expectInt32,
9668
+ ParticipantId: __expectString,
9669
+ ParticipantType: __expectString,
9670
+ TotalResponseTimeInMillis: __expectLong,
9671
+ });
9672
+ };
9640
9673
  const de_PredefinedAttribute = (output, context) => {
9641
9674
  return take(output, {
9642
9675
  LastModifiedRegion: __expectString,
@@ -29,11 +29,28 @@ declare const CreateContactCommand_base: {
29
29
  };
30
30
  /**
31
31
  * <important>
32
- * <p>Only the EMAIL and VOICE channels are supported. The supported initiation methods for EMAIL
33
- * are: OUTBOUND, AGENT_REPLY, and FLOW. For VOICE the supported initiation methods are TRANSFER
34
- * and the subtype connect:ExternalAudio. </p>
32
+ * <p>Only the VOICE, EMAIL, and TASK channels are supported. </p>
33
+ * <ul>
34
+ * <li>
35
+ * <p>For VOICE: The supported initiation method is <code>TRANSFER</code>. The contacts created
36
+ * with this initiation method have a subtype <code>connect:ExternalAudio</code>. </p>
37
+ * </li>
38
+ * <li>
39
+ * <p>For EMAIL: The supported initiation methods are <code>OUTBOUND</code>,
40
+ * <code>AGENT_REPLY</code>, and <code>FLOW</code>. </p>
41
+ * </li>
42
+ * <li>
43
+ * <p>For TASK: The supported initiation method is <code>API</code>. Contacts created with this
44
+ * API have a sub-type of <code>connect:ExternalTask</code>.</p>
45
+ * </li>
46
+ * </ul>
35
47
  * </important>
36
- * <p>Creates a new EMAIL or VOICE contact. </p>
48
+ * <p>Creates a new VOICE, EMAIL, or TASK contact. </p>
49
+ * <p>After a contact is created, you can move it to the desired state by using the
50
+ * <code>InitiateAs</code> parameter. While you can use API to create task contacts that are in the
51
+ * <code>COMPLETED</code> state, you must contact Amazon Web Services Support before using it for
52
+ * bulk import use cases. Bulk import causes your requests to be throttled or fail if your
53
+ * CreateContact limits aren't high enough. </p>
37
54
  * @example
38
55
  * Use a bare-bones client and the command you need to make an API call.
39
56
  * ```javascript
@@ -62,7 +79,7 @@ declare const CreateContactCommand_base: {
62
79
  * UserInfo: { // UserInfo
63
80
  * UserId: "STRING_VALUE",
64
81
  * },
65
- * InitiateAs: "CONNECTED_TO_USER",
82
+ * InitiateAs: "CONNECTED_TO_USER" || "COMPLETED",
66
83
  * Name: "STRING_VALUE",
67
84
  * Description: "STRING_VALUE",
68
85
  * SegmentAttributes: { // SegmentAttributes
@@ -275,6 +275,40 @@ declare const DescribeContactCommand_base: {
275
275
  * // },
276
276
  * // },
277
277
  * // },
278
+ * // ChatMetrics: { // ChatMetrics
279
+ * // ChatContactMetrics: { // ChatContactMetrics
280
+ * // MultiParty: true || false,
281
+ * // TotalMessages: Number("int"),
282
+ * // TotalBotMessages: Number("int"),
283
+ * // TotalBotMessageLengthInChars: Number("int"),
284
+ * // ConversationCloseTimeInMillis: Number("long"),
285
+ * // ConversationTurnCount: Number("int"),
286
+ * // AgentFirstResponseTimestamp: new Date("TIMESTAMP"),
287
+ * // AgentFirstResponseTimeInMillis: Number("long"),
288
+ * // },
289
+ * // AgentMetrics: { // ParticipantMetrics
290
+ * // ParticipantId: "STRING_VALUE",
291
+ * // ParticipantType: "ALL" || "MANAGER" || "AGENT" || "CUSTOMER" || "THIRDPARTY",
292
+ * // ConversationAbandon: true || false,
293
+ * // MessagesSent: Number("int"),
294
+ * // NumResponses: Number("int"),
295
+ * // MessageLengthInChars: Number("int"),
296
+ * // TotalResponseTimeInMillis: Number("long"),
297
+ * // MaxResponseTimeInMillis: Number("long"),
298
+ * // LastMessageTimestamp: new Date("TIMESTAMP"),
299
+ * // },
300
+ * // CustomerMetrics: {
301
+ * // ParticipantId: "STRING_VALUE",
302
+ * // ParticipantType: "ALL" || "MANAGER" || "AGENT" || "CUSTOMER" || "THIRDPARTY",
303
+ * // ConversationAbandon: true || false,
304
+ * // MessagesSent: Number("int"),
305
+ * // NumResponses: Number("int"),
306
+ * // MessageLengthInChars: Number("int"),
307
+ * // TotalResponseTimeInMillis: Number("long"),
308
+ * // MaxResponseTimeInMillis: Number("long"),
309
+ * // LastMessageTimestamp: new Date("TIMESTAMP"),
310
+ * // },
311
+ * // },
278
312
  * // DisconnectDetails: { // DisconnectDetails
279
313
  * // PotentialDisconnectIssue: "STRING_VALUE",
280
314
  * // },
@@ -28,6 +28,11 @@ declare const DescribeRoutingProfileCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <p>Describes the specified routing profile.</p>
31
+ * <note>
32
+ * <p>
33
+ * <code>DescribeRoutingProfile</code> does not populate AssociatedQueueIds in its response.
34
+ * The example Response Syntax shown on this page is incorrect; we are working to update it. <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_SearchRoutingProfiles.html">SearchRoutingProfiles</a> does include AssociatedQueueIds.</p>
35
+ * </note>
31
36
  * @example
32
37
  * Use a bare-bones client and the command you need to make an API call.
33
38
  * ```javascript
@@ -1,7 +1,8 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
4
- import { ListPhoneNumbersRequest, ListPhoneNumbersResponse } from "../models/models_1";
4
+ import { ListPhoneNumbersRequest } from "../models/models_1";
5
+ import { ListPhoneNumbersResponse } from "../models/models_2";
5
6
  /**
6
7
  * @public
7
8
  */
@@ -1,8 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
4
- import { ListPhoneNumbersV2Request } from "../models/models_1";
5
- import { ListPhoneNumbersV2Response } from "../models/models_2";
4
+ import { ListPhoneNumbersV2Request, ListPhoneNumbersV2Response } from "../models/models_2";
6
5
  /**
7
6
  * @public
8
7
  */
@@ -29,6 +29,11 @@ declare const SearchRoutingProfilesCommand_base: {
29
29
  };
30
30
  /**
31
31
  * <p>Searches routing profiles in an Amazon Connect instance, with optional filtering.</p>
32
+ * <note>
33
+ * <p>
34
+ * <code>SearchRoutingProfiles</code> does not populate LastModifiedRegion, LastModifiedTime,
35
+ * MediaConcurrencies.CrossChannelBehavior, and AgentAvailabilityTimer in its response, but <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeRoutingProfile.html">DescribeRoutingProfile</a> does.</p>
36
+ * </note>
32
37
  * @example
33
38
  * Use a bare-bones client and the command you need to make an API call.
34
39
  * ```javascript
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
4
- import { UpdateParticipantRoleConfigRequest, UpdateParticipantRoleConfigResponse } from "../models/models_2";
4
+ import { UpdateParticipantRoleConfigRequest, UpdateParticipantRoleConfigResponse } from "../models/models_3";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,8 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
4
- import { UpdatePhoneNumberRequest } from "../models/models_2";
5
- import { UpdatePhoneNumberResponse } from "../models/models_3";
4
+ import { UpdatePhoneNumberRequest, UpdatePhoneNumberResponse } from "../models/models_3";
6
5
  /**
7
6
  * @public
8
7
  */
@@ -2562,6 +2562,7 @@ export declare class ConflictException extends __BaseException {
2562
2562
  * @enum
2563
2563
  */
2564
2564
  export declare const InitiateAs: {
2565
+ readonly COMPLETED: "COMPLETED";
2565
2566
  readonly CONNECTED_TO_USER: "CONNECTED_TO_USER";
2566
2567
  };
2567
2568
  /**
@@ -2925,7 +2926,7 @@ export interface CreateEmailAddressRequest {
2925
2926
  */
2926
2927
  InstanceId: string | undefined;
2927
2928
  /**
2928
- * <p>The email address with the instance, in [^\s@]+@[^\s@]+\.[^\s@]+ format.</p>
2929
+ * <p>The email address, including the domain.</p>
2929
2930
  * @public
2930
2931
  */
2931
2932
  EmailAddress: string | undefined;
@@ -4226,7 +4227,7 @@ export interface OutboundCallerConfig {
4226
4227
  OutboundFlowId?: string | undefined;
4227
4228
  }
4228
4229
  /**
4229
- * <p>The outbound email address Id.</p>
4230
+ * <p>The outbound email address ID.</p>
4230
4231
  * @public
4231
4232
  */
4232
4233
  export interface OutboundEmailConfig {