@aws-sdk/client-connect 3.839.0 → 3.844.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
@@ -1719,6 +1719,13 @@ var AnsweringMachineDetectionStatus = {
1719
1719
  VOICEMAIL_BEEP: "VOICEMAIL_BEEP",
1720
1720
  VOICEMAIL_NO_BEEP: "VOICEMAIL_NO_BEEP"
1721
1721
  };
1722
+ var ParticipantType = {
1723
+ AGENT: "AGENT",
1724
+ ALL: "ALL",
1725
+ CUSTOMER: "CUSTOMER",
1726
+ MANAGER: "MANAGER",
1727
+ THIRDPARTY: "THIRDPARTY"
1728
+ };
1722
1729
  var Status = {
1723
1730
  COMPLETE: "COMPLETE",
1724
1731
  DELETED: "DELETED",
@@ -1728,13 +1735,6 @@ var MediaStreamType = {
1728
1735
  AUDIO: "AUDIO",
1729
1736
  VIDEO: "VIDEO"
1730
1737
  };
1731
- var ParticipantType = {
1732
- AGENT: "AGENT",
1733
- ALL: "ALL",
1734
- CUSTOMER: "CUSTOMER",
1735
- MANAGER: "MANAGER",
1736
- THIRDPARTY: "THIRDPARTY"
1737
- };
1738
1738
  var RecordingStatus = {
1739
1739
  AVAILABLE: "AVAILABLE",
1740
1740
  DELETED: "DELETED"
@@ -2546,8 +2546,8 @@ var ParticipantTimerValue;
2546
2546
  }, "visit");
2547
2547
  })(ParticipantTimerValue || (ParticipantTimerValue = {}));
2548
2548
  var UpdateParticipantRoleConfigChannelInfo;
2549
- ((UpdateParticipantRoleConfigChannelInfo3) => {
2550
- UpdateParticipantRoleConfigChannelInfo3.visit = /* @__PURE__ */ __name((value, visitor) => {
2549
+ ((UpdateParticipantRoleConfigChannelInfo4) => {
2550
+ UpdateParticipantRoleConfigChannelInfo4.visit = /* @__PURE__ */ __name((value, visitor) => {
2551
2551
  if (value.Chat !== void 0) return visitor.Chat(value.Chat);
2552
2552
  return visitor._(value.$unknown[0], value.$unknown[1]);
2553
2553
  }, "visit");
@@ -12066,6 +12066,25 @@ var de_CaseSlaConfiguration = /* @__PURE__ */ __name((output, context) => {
12066
12066
  Type: import_smithy_client.expectString
12067
12067
  });
12068
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");
12069
12088
  var de_Contact = /* @__PURE__ */ __name((output, context) => {
12070
12089
  return (0, import_smithy_client.take)(output, {
12071
12090
  AdditionalEmailRecipients: import_smithy_client._json,
@@ -12075,6 +12094,7 @@ var de_Contact = /* @__PURE__ */ __name((output, context) => {
12075
12094
  Attributes: import_smithy_client._json,
12076
12095
  Campaign: import_smithy_client._json,
12077
12096
  Channel: import_smithy_client.expectString,
12097
+ ChatMetrics: /* @__PURE__ */ __name((_) => de_ChatMetrics(_, context), "ChatMetrics"),
12078
12098
  ConnectedToSystemTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ConnectedToSystemTimestamp"),
12079
12099
  ContactAssociationId: import_smithy_client.expectString,
12080
12100
  ContactDetails: import_smithy_client._json,
@@ -12666,6 +12686,19 @@ var de_MetricV2 = /* @__PURE__ */ __name((output, context) => {
12666
12686
  Threshold: /* @__PURE__ */ __name((_) => de_ThresholdCollections(_, context), "Threshold")
12667
12687
  });
12668
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");
12669
12702
  var de_PredefinedAttribute = /* @__PURE__ */ __name((output, context) => {
12670
12703
  return (0, import_smithy_client.take)(output, {
12671
12704
  LastModifiedRegion: import_smithy_client.expectString,
@@ -18579,9 +18612,9 @@ var paginateSearchVocabularies = (0, import_core.createPaginator)(ConnectClient,
18579
18612
  CreateViewResponseFilterSensitiveLog,
18580
18613
  CreateViewVersionResponseFilterSensitiveLog,
18581
18614
  AnsweringMachineDetectionStatus,
18615
+ ParticipantType,
18582
18616
  Status,
18583
18617
  MediaStreamType,
18584
- ParticipantType,
18585
18618
  RecordingStatus,
18586
18619
  RoutingCriteriaStepStatus,
18587
18620
  EvaluationAnswerData,
@@ -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
@@ -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
  * // },
@@ -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
  */
@@ -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
  */
@@ -461,6 +461,139 @@ export declare const AnsweringMachineDetectionStatus: {
461
461
  * @public
462
462
  */
463
463
  export type AnsweringMachineDetectionStatus = (typeof AnsweringMachineDetectionStatus)[keyof typeof AnsweringMachineDetectionStatus];
464
+ /**
465
+ * @public
466
+ * @enum
467
+ */
468
+ export declare const ParticipantType: {
469
+ readonly AGENT: "AGENT";
470
+ readonly ALL: "ALL";
471
+ readonly CUSTOMER: "CUSTOMER";
472
+ readonly MANAGER: "MANAGER";
473
+ readonly THIRDPARTY: "THIRDPARTY";
474
+ };
475
+ /**
476
+ * @public
477
+ */
478
+ export type ParticipantType = (typeof ParticipantType)[keyof typeof ParticipantType];
479
+ /**
480
+ * <p>Information about a participant's interactions in a contact.</p>
481
+ * @public
482
+ */
483
+ export interface ParticipantMetrics {
484
+ /**
485
+ * <p>The Participant's ID.</p>
486
+ * @public
487
+ */
488
+ ParticipantId?: string | undefined;
489
+ /**
490
+ * <p>Information about the conversation participant. Following are the participant types: [Agent, Customer, Supervisor].</p>
491
+ * @public
492
+ */
493
+ ParticipantType?: ParticipantType | undefined;
494
+ /**
495
+ * <p>A boolean flag indicating whether the chat conversation was abandoned by a Participant.</p>
496
+ * @public
497
+ */
498
+ ConversationAbandon?: boolean | undefined;
499
+ /**
500
+ * <p>Number of chat messages sent by Participant.</p>
501
+ * @public
502
+ */
503
+ MessagesSent?: number | undefined;
504
+ /**
505
+ * <p>Number of chat messages sent by Participant.</p>
506
+ * @public
507
+ */
508
+ NumResponses?: number | undefined;
509
+ /**
510
+ * <p>Number of chat characters sent by Participant.</p>
511
+ * @public
512
+ */
513
+ MessageLengthInChars?: number | undefined;
514
+ /**
515
+ * <p>Total chat response time by Participant.</p>
516
+ * @public
517
+ */
518
+ TotalResponseTimeInMillis?: number | undefined;
519
+ /**
520
+ * <p>Maximum chat response time by Participant.</p>
521
+ * @public
522
+ */
523
+ MaxResponseTimeInMillis?: number | undefined;
524
+ /**
525
+ * <p>Timestamp of last chat message by Participant.</p>
526
+ * @public
527
+ */
528
+ LastMessageTimestamp?: Date | undefined;
529
+ }
530
+ /**
531
+ * <p>Information about the overall participant interactions at the contact level.</p>
532
+ * @public
533
+ */
534
+ export interface ChatContactMetrics {
535
+ /**
536
+ * <p>A boolean flag indicating whether multiparty chat or supervisor barge were enabled on this contact.</p>
537
+ * @public
538
+ */
539
+ MultiParty?: boolean | undefined;
540
+ /**
541
+ * <p>The number of chat messages on the contact.</p>
542
+ * @public
543
+ */
544
+ TotalMessages?: number | undefined;
545
+ /**
546
+ * <p>The total number of bot and automated messages on a chat contact.</p>
547
+ * @public
548
+ */
549
+ TotalBotMessages?: number | undefined;
550
+ /**
551
+ * <p>The total number of characters from bot and automated messages on a chat contact.</p>
552
+ * @public
553
+ */
554
+ TotalBotMessageLengthInChars?: number | undefined;
555
+ /**
556
+ * <p>The time it took for a contact to end after the last customer message.</p>
557
+ * @public
558
+ */
559
+ ConversationCloseTimeInMillis?: number | undefined;
560
+ /**
561
+ * <p>The number of conversation turns in a chat contact, which represents the back-and-forth exchanges between customer and other participants.</p>
562
+ * @public
563
+ */
564
+ ConversationTurnCount?: number | undefined;
565
+ /**
566
+ * <p>The agent first response timestamp for a chat contact.</p>
567
+ * @public
568
+ */
569
+ AgentFirstResponseTimestamp?: Date | undefined;
570
+ /**
571
+ * <p>The time for an agent to respond after obtaining a chat contact.</p>
572
+ * @public
573
+ */
574
+ AgentFirstResponseTimeInMillis?: number | undefined;
575
+ }
576
+ /**
577
+ * <p>Information about how agent, bot, and customer interact in a chat contact.</p>
578
+ * @public
579
+ */
580
+ export interface ChatMetrics {
581
+ /**
582
+ * <p>Information about the overall participant interactions at the contact level.</p>
583
+ * @public
584
+ */
585
+ ChatContactMetrics?: ChatContactMetrics | undefined;
586
+ /**
587
+ * <p>Information about agent interactions in a contact.</p>
588
+ * @public
589
+ */
590
+ AgentMetrics?: ParticipantMetrics | undefined;
591
+ /**
592
+ * <p>Information about customer interactions in a contact.</p>
593
+ * @public
594
+ */
595
+ CustomerMetrics?: ParticipantMetrics | undefined;
596
+ }
464
597
  /**
465
598
  * <p>A map of string key/value pairs that contain user-defined attributes which are lightly typed
466
599
  * within the contact. This object is used only for task contacts. </p>
@@ -656,21 +789,6 @@ export declare const MediaStreamType: {
656
789
  * @public
657
790
  */
658
791
  export type MediaStreamType = (typeof MediaStreamType)[keyof typeof MediaStreamType];
659
- /**
660
- * @public
661
- * @enum
662
- */
663
- export declare const ParticipantType: {
664
- readonly AGENT: "AGENT";
665
- readonly ALL: "ALL";
666
- readonly CUSTOMER: "CUSTOMER";
667
- readonly MANAGER: "MANAGER";
668
- readonly THIRDPARTY: "THIRDPARTY";
669
- };
670
- /**
671
- * @public
672
- */
673
- export type ParticipantType = (typeof ParticipantType)[keyof typeof ParticipantType];
674
792
  /**
675
793
  * @public
676
794
  * @enum
@@ -8800,99 +8918,6 @@ export interface ListPhoneNumbersRequest {
8800
8918
  */
8801
8919
  MaxResults?: number | undefined;
8802
8920
  }
8803
- /**
8804
- * <p>Contains summary information about a phone number for a contact center.</p>
8805
- * @public
8806
- */
8807
- export interface PhoneNumberSummary {
8808
- /**
8809
- * <p>The identifier of the phone number.</p>
8810
- * @public
8811
- */
8812
- Id?: string | undefined;
8813
- /**
8814
- * <p>The Amazon Resource Name (ARN) of the phone number.</p>
8815
- * @public
8816
- */
8817
- Arn?: string | undefined;
8818
- /**
8819
- * <p>The phone number.</p>
8820
- * @public
8821
- */
8822
- PhoneNumber?: string | undefined;
8823
- /**
8824
- * <p>The type of phone number.</p>
8825
- * @public
8826
- */
8827
- PhoneNumberType?: PhoneNumberType | undefined;
8828
- /**
8829
- * <p>The ISO country code.</p>
8830
- * @public
8831
- */
8832
- PhoneNumberCountryCode?: PhoneNumberCountryCode | undefined;
8833
- }
8834
- /**
8835
- * @public
8836
- */
8837
- export interface ListPhoneNumbersResponse {
8838
- /**
8839
- * <p>Information about the phone numbers.</p>
8840
- * @public
8841
- */
8842
- PhoneNumberSummaryList?: PhoneNumberSummary[] | undefined;
8843
- /**
8844
- * <p>If there are additional results, this is the token for the next set of results.</p>
8845
- * @public
8846
- */
8847
- NextToken?: string | undefined;
8848
- }
8849
- /**
8850
- * @public
8851
- */
8852
- export interface ListPhoneNumbersV2Request {
8853
- /**
8854
- * <p>The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution groups that phone number inbound traffic is routed through. If both <code>TargetArn</code> and <code>InstanceId</code> input are not
8855
- * provided, this API lists numbers claimed to all the Amazon Connect instances belonging to
8856
- * your account in the same Amazon Web Services Region as the request.</p>
8857
- * @public
8858
- */
8859
- TargetArn?: string | undefined;
8860
- /**
8861
- * <p>The identifier of the Amazon Connect instance that phone numbers are claimed to. You
8862
- * can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the
8863
- * instance ID</a> in the Amazon Resource Name (ARN) of the instance. If both <code>TargetArn</code> and <code>InstanceId</code> are not
8864
- * provided, this API lists numbers claimed to all the Amazon Connect instances belonging to your account in
8865
- * the same AWS Region as the request.</p>
8866
- * @public
8867
- */
8868
- InstanceId?: string | undefined;
8869
- /**
8870
- * <p>The maximum number of results to return per page.</p>
8871
- * @public
8872
- */
8873
- MaxResults?: number | undefined;
8874
- /**
8875
- * <p>The token for the next set of results. Use the value returned in the previous
8876
- * response in the next request to retrieve the next set of results.</p>
8877
- * @public
8878
- */
8879
- NextToken?: string | undefined;
8880
- /**
8881
- * <p>The ISO country code.</p>
8882
- * @public
8883
- */
8884
- PhoneNumberCountryCodes?: PhoneNumberCountryCode[] | undefined;
8885
- /**
8886
- * <p>The type of phone number.</p>
8887
- * @public
8888
- */
8889
- PhoneNumberTypes?: PhoneNumberType[] | undefined;
8890
- /**
8891
- * <p>The prefix of the phone number. If provided, it must contain <code>+</code> as part of the country code.</p>
8892
- * @public
8893
- */
8894
- PhoneNumberPrefix?: string | undefined;
8895
- }
8896
8921
  /**
8897
8922
  * @internal
8898
8923
  */
@@ -2,6 +2,99 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-cli
2
2
  import { ConnectServiceException as __BaseException } from "./ConnectServiceException";
3
3
  import { ActionSummary, AgentHierarchyGroups, AgentStatus, AgentStatusState, AllowedCapabilities, Application, Channel, ContactInitiationMethod, ControlPlaneAttributeFilter, CreatedByInfo, EventSourceName, FileStatusType, FileUseCaseType, HoursOfOperationConfig, HoursOfOperationOverrideConfig, InstanceStorageConfig, InstanceStorageResourceType, MonitorCapability, ParticipantRole, QuickConnectType, Reference, RehydrationType, RulePublishStatus, StringComparisonType, StringCondition, TagCondition, TaskTemplateStatus, UseCaseType, UserPhoneConfig, UserProficiency, ViewStatus, ViewType, VocabularyLanguageCode, VocabularyState } from "./models_0";
4
4
  import { ContactFlow, ContactFlowModule, ContactFlowModuleState, ContactFlowState, EvaluationAnswerData, EvaluationNote, HierarchyGroup, HierarchyGroupSummary, HoursOfOperation, HoursOfOperationOverride, InstanceAttributeType, PhoneNumberCountryCode, PhoneNumberType, PredefinedAttribute, Prompt, Queue, QuickConnect, RoutingProfile, SortOrder, TrafficDistributionGroupStatus } from "./models_1";
5
+ /**
6
+ * <p>Contains summary information about a phone number for a contact center.</p>
7
+ * @public
8
+ */
9
+ export interface PhoneNumberSummary {
10
+ /**
11
+ * <p>The identifier of the phone number.</p>
12
+ * @public
13
+ */
14
+ Id?: string | undefined;
15
+ /**
16
+ * <p>The Amazon Resource Name (ARN) of the phone number.</p>
17
+ * @public
18
+ */
19
+ Arn?: string | undefined;
20
+ /**
21
+ * <p>The phone number.</p>
22
+ * @public
23
+ */
24
+ PhoneNumber?: string | undefined;
25
+ /**
26
+ * <p>The type of phone number.</p>
27
+ * @public
28
+ */
29
+ PhoneNumberType?: PhoneNumberType | undefined;
30
+ /**
31
+ * <p>The ISO country code.</p>
32
+ * @public
33
+ */
34
+ PhoneNumberCountryCode?: PhoneNumberCountryCode | undefined;
35
+ }
36
+ /**
37
+ * @public
38
+ */
39
+ export interface ListPhoneNumbersResponse {
40
+ /**
41
+ * <p>Information about the phone numbers.</p>
42
+ * @public
43
+ */
44
+ PhoneNumberSummaryList?: PhoneNumberSummary[] | undefined;
45
+ /**
46
+ * <p>If there are additional results, this is the token for the next set of results.</p>
47
+ * @public
48
+ */
49
+ NextToken?: string | undefined;
50
+ }
51
+ /**
52
+ * @public
53
+ */
54
+ export interface ListPhoneNumbersV2Request {
55
+ /**
56
+ * <p>The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution groups that phone number inbound traffic is routed through. If both <code>TargetArn</code> and <code>InstanceId</code> input are not
57
+ * provided, this API lists numbers claimed to all the Amazon Connect instances belonging to
58
+ * your account in the same Amazon Web Services Region as the request.</p>
59
+ * @public
60
+ */
61
+ TargetArn?: string | undefined;
62
+ /**
63
+ * <p>The identifier of the Amazon Connect instance that phone numbers are claimed to. You
64
+ * can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the
65
+ * instance ID</a> in the Amazon Resource Name (ARN) of the instance. If both <code>TargetArn</code> and <code>InstanceId</code> are not
66
+ * provided, this API lists numbers claimed to all the Amazon Connect instances belonging to your account in
67
+ * the same AWS Region as the request.</p>
68
+ * @public
69
+ */
70
+ InstanceId?: string | undefined;
71
+ /**
72
+ * <p>The maximum number of results to return per page.</p>
73
+ * @public
74
+ */
75
+ MaxResults?: number | undefined;
76
+ /**
77
+ * <p>The token for the next set of results. Use the value returned in the previous
78
+ * response in the next request to retrieve the next set of results.</p>
79
+ * @public
80
+ */
81
+ NextToken?: string | undefined;
82
+ /**
83
+ * <p>The ISO country code.</p>
84
+ * @public
85
+ */
86
+ PhoneNumberCountryCodes?: PhoneNumberCountryCode[] | undefined;
87
+ /**
88
+ * <p>The type of phone number.</p>
89
+ * @public
90
+ */
91
+ PhoneNumberTypes?: PhoneNumberType[] | undefined;
92
+ /**
93
+ * <p>The prefix of the phone number. If provided, it must contain <code>+</code> as part of the country code.</p>
94
+ * @public
95
+ */
96
+ PhoneNumberPrefix?: string | undefined;
97
+ }
5
98
  /**
6
99
  * <p>Information about phone numbers that have been claimed to your Amazon Connect instance
7
100
  * or traffic distribution group.</p>
@@ -4370,8 +4463,9 @@ export interface EmailAddressInfo {
4370
4463
  */
4371
4464
  export interface OutboundAdditionalRecipients {
4372
4465
  /**
4373
- * <p>Information about the <b>additional</b> CC email address recipients.
4374
- * Email recipients are limited to 50 total addresses: 1 required recipient in the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_SendOutboundEmail.html#API_SendOutboundEmail_RequestBody">DestinationEmailAddress</a> field and up to 49 recipients in the 'CcEmailAddresses'
4466
+ * <p>Information about the <b>additional</b> CC email address
4467
+ * recipients. Email recipients are limited to 50 total addresses: 1 required recipient in the
4468
+ * <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_SendOutboundEmail.html#API_SendOutboundEmail_RequestBody">DestinationEmailAddress</a> field and up to 49 recipients in the 'CcEmailAddresses'
4375
4469
  * field.</p>
4376
4470
  * @public
4377
4471
  */
@@ -4933,25 +5027,27 @@ export interface StartContactStreamingResponse {
4933
5027
  /**
4934
5028
  * <p>Information about the additional TO and CC recipients of an inbound email contact.</p>
4935
5029
  * <note>
4936
- * <p>You can include up to 50 email addresses in total, distributed across
4937
- * <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_StartEmailContact.html#API_StartEmailContact_RequestBody">DestinationEmailAddress</a>, <code>ToAddresses</code>, and <code>CcAddresses</code>. This total must include one required
4938
- * <code>DestinationEmailAddress</code>. You can then specify up to 49 addresses allocated across <code>ToAddresses</code>
4939
- * and <code>CcAddresses</code> as needed.</p>
5030
+ * <p>You can include up to 50 email addresses in total, distributed across <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_StartEmailContact.html#API_StartEmailContact_RequestBody">DestinationEmailAddress</a>, <code>ToAddresses</code>, and <code>CcAddresses</code>. This
5031
+ * total must include one required <code>DestinationEmailAddress</code>. You can then specify up to
5032
+ * 49 addresses allocated across <code>ToAddresses</code> and <code>CcAddresses</code> as
5033
+ * needed.</p>
4940
5034
  * </note>
4941
5035
  * @public
4942
5036
  */
4943
5037
  export interface InboundAdditionalRecipients {
4944
5038
  /**
4945
5039
  * <p>The <b>additional</b> recipients information present in to list.
4946
- * You must have 1 required recipient (<code>DestinationEmailAddress</code>). You can then specify up to
4947
- * 49 additional recipients (across <code>ToAddresses</code> and <code>CcAddresses</code>), for a total of 50 recipients.</p>
5040
+ * You must have 1 required recipient (<code>DestinationEmailAddress</code>). You can then specify
5041
+ * up to 49 additional recipients (across <code>ToAddresses</code> and <code>CcAddresses</code>),
5042
+ * for a total of 50 recipients.</p>
4948
5043
  * @public
4949
5044
  */
4950
5045
  ToAddresses?: EmailAddressInfo[] | undefined;
4951
5046
  /**
4952
5047
  * <p>The <b>additional</b> recipients information present in cc list.
4953
- * You must have 1 required recipient (<code>DestinationEmailAddress</code>). You can then specify up to
4954
- * 49 additional recipients (across <code>ToAddresses</code> and <code>CcAddresses</code>), for a total of 50 recipients.</p>
5048
+ * You must have 1 required recipient (<code>DestinationEmailAddress</code>). You can then specify
5049
+ * up to 49 additional recipients (across <code>ToAddresses</code> and <code>CcAddresses</code>),
5050
+ * for a total of 50 recipients.</p>
4955
5051
  * @public
4956
5052
  */
4957
5053
  CcAddresses?: EmailAddressInfo[] | undefined;
@@ -6674,61 +6770,6 @@ export declare namespace UpdateParticipantRoleConfigChannelInfo {
6674
6770
  }
6675
6771
  const visit: <T>(value: UpdateParticipantRoleConfigChannelInfo, visitor: Visitor<T>) => T;
6676
6772
  }
6677
- /**
6678
- * @public
6679
- */
6680
- export interface UpdateParticipantRoleConfigRequest {
6681
- /**
6682
- * <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>
6683
- * @public
6684
- */
6685
- InstanceId: string | undefined;
6686
- /**
6687
- * <p>The identifier of the contact in this instance of Amazon Connect. </p>
6688
- * @public
6689
- */
6690
- ContactId: string | undefined;
6691
- /**
6692
- * <p>The Amazon Connect channel you want to configure.</p>
6693
- * @public
6694
- */
6695
- ChannelConfiguration: UpdateParticipantRoleConfigChannelInfo | undefined;
6696
- }
6697
- /**
6698
- * @public
6699
- */
6700
- export interface UpdateParticipantRoleConfigResponse {
6701
- }
6702
- /**
6703
- * @public
6704
- */
6705
- export interface UpdatePhoneNumberRequest {
6706
- /**
6707
- * <p>A unique identifier for the phone number.</p>
6708
- * @public
6709
- */
6710
- PhoneNumberId: string | undefined;
6711
- /**
6712
- * <p>The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution groups that phone number inbound traffic is routed through. You must enter <code>InstanceId</code> or <code>TargetArn</code>. </p>
6713
- * @public
6714
- */
6715
- TargetArn?: string | undefined;
6716
- /**
6717
- * <p>The identifier of the Amazon Connect instance that phone numbers are claimed to. You
6718
- * can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the
6719
- * instance ID</a> in the Amazon Resource Name (ARN) of the instance. You must enter <code>InstanceId</code> or <code>TargetArn</code>. </p>
6720
- * @public
6721
- */
6722
- InstanceId?: string | undefined;
6723
- /**
6724
- * <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the
6725
- * request. If not provided, the Amazon Web Services
6726
- * SDK populates this field. For more information about idempotency, see
6727
- * <a href="https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making retries safe with idempotent APIs</a>.</p>
6728
- * @public
6729
- */
6730
- ClientToken?: string | undefined;
6731
- }
6732
6773
  /**
6733
6774
  * @internal
6734
6775
  */
@@ -1,6 +1,61 @@
1
1
  import { AdditionalEmailRecipients, AgentAvailabilityTimer, AgentConfig, AgentInfo, AgentStatusSearchFilter, Application, Campaign, Channel, ContactFlowStatus, ContactFlowType, ContactInitiationMethod, Endpoint, EvaluationFormQuestion, EvaluationFormScoringStrategy, InitiateAs, MediaConcurrency, OutboundCallerConfig, OutboundEmailConfig, PredefinedAttributeValues, QuickConnectConfig, Reference, RoutingProfileQueueConfig, RuleAction, RulePublishStatus, StringCondition, TaskTemplateConstraints, TaskTemplateDefaults, TaskTemplateField, TaskTemplateStatus, UserIdentityInfo, UserInfo, UserPhoneConfig, UserProficiency, View, ViewInputContent, ViewStatus } from "./models_0";
2
- import { AnsweringMachineDetectionStatus, AttributeCondition, ContactDetails, ContactEvaluation, ContactFlowModuleState, ContactFlowModuleStatus, ContactFlowState, Customer, CustomerVoiceActivity, DisconnectDetails, EndpointInfo, Evaluation, EvaluationFormVersionStatus, Expiry, QualityMetrics, QueueInfo, QueueStatus, RecordingInfo, RoutingCriteriaStepStatus, SignInConfig, TelephonyConfig, WisdomInfo } from "./models_1";
3
- import { ChatMessage, ContactFlowModuleSearchFilter, ContactFlowSearchFilter, DateCondition, EmailAddressInfo, EmailAddressSearchFilter, EmailAttachment, HierarchyGroupCondition, HoursOfOperationSearchFilter, InboundAdditionalRecipients, InboundEmailContent, ListCondition, ParticipantDetails, PersistentChat, PromptSearchFilter, QueueInfoInput, QueueSearchFilter, QuickConnectSearchFilter, RoutingCriteriaInputStepExpiry, RoutingProfileSearchFilter, SearchableQueueType, SecurityProfilesSearchFilter, UserHierarchyGroupSearchFilter, UserSearchFilter } from "./models_2";
2
+ import { AnsweringMachineDetectionStatus, AttributeCondition, ChatMetrics, ContactDetails, ContactEvaluation, ContactFlowModuleState, ContactFlowModuleStatus, ContactFlowState, Customer, CustomerVoiceActivity, DisconnectDetails, EndpointInfo, Evaluation, EvaluationFormVersionStatus, Expiry, QualityMetrics, QueueInfo, QueueStatus, RecordingInfo, RoutingCriteriaStepStatus, SignInConfig, TelephonyConfig, WisdomInfo } from "./models_1";
3
+ import { ChatMessage, ContactFlowModuleSearchFilter, ContactFlowSearchFilter, DateCondition, EmailAddressInfo, EmailAddressSearchFilter, EmailAttachment, HierarchyGroupCondition, HoursOfOperationSearchFilter, InboundAdditionalRecipients, InboundEmailContent, ListCondition, ParticipantDetails, PersistentChat, PromptSearchFilter, QueueInfoInput, QueueSearchFilter, QuickConnectSearchFilter, RoutingCriteriaInputStepExpiry, RoutingProfileSearchFilter, SearchableQueueType, SecurityProfilesSearchFilter, UpdateParticipantRoleConfigChannelInfo, UserHierarchyGroupSearchFilter, UserSearchFilter } from "./models_2";
4
+ /**
5
+ * @public
6
+ */
7
+ export interface UpdateParticipantRoleConfigRequest {
8
+ /**
9
+ * <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>
10
+ * @public
11
+ */
12
+ InstanceId: string | undefined;
13
+ /**
14
+ * <p>The identifier of the contact in this instance of Amazon Connect. </p>
15
+ * @public
16
+ */
17
+ ContactId: string | undefined;
18
+ /**
19
+ * <p>The Amazon Connect channel you want to configure.</p>
20
+ * @public
21
+ */
22
+ ChannelConfiguration: UpdateParticipantRoleConfigChannelInfo | undefined;
23
+ }
24
+ /**
25
+ * @public
26
+ */
27
+ export interface UpdateParticipantRoleConfigResponse {
28
+ }
29
+ /**
30
+ * @public
31
+ */
32
+ export interface UpdatePhoneNumberRequest {
33
+ /**
34
+ * <p>A unique identifier for the phone number.</p>
35
+ * @public
36
+ */
37
+ PhoneNumberId: string | undefined;
38
+ /**
39
+ * <p>The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution groups that phone number inbound traffic is routed through. You must enter <code>InstanceId</code> or <code>TargetArn</code>. </p>
40
+ * @public
41
+ */
42
+ TargetArn?: string | undefined;
43
+ /**
44
+ * <p>The identifier of the Amazon Connect instance that phone numbers are claimed to. You
45
+ * can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the
46
+ * instance ID</a> in the Amazon Resource Name (ARN) of the instance. You must enter <code>InstanceId</code> or <code>TargetArn</code>. </p>
47
+ * @public
48
+ */
49
+ InstanceId?: string | undefined;
50
+ /**
51
+ * <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the
52
+ * request. If not provided, the Amazon Web Services
53
+ * SDK populates this field. For more information about idempotency, see
54
+ * <a href="https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making retries safe with idempotent APIs</a>.</p>
55
+ * @public
56
+ */
57
+ ClientToken?: string | undefined;
58
+ }
4
59
  /**
5
60
  * @public
6
61
  */
@@ -1145,16 +1200,16 @@ export interface CreateContactRequest {
1145
1200
  Attributes?: Record<string, string> | undefined;
1146
1201
  /**
1147
1202
  * <p>A formatted URL that is shown to an agent in the Contact Control Panel (CCP). Tasks can have
1148
- * the following reference types at the time of creation: URL | NUMBER | STRING | DATE | EMAIL |
1149
- * ATTACHMENT.</p>
1203
+ * the following reference types at the time of creation: <code>URL</code> | <code>NUMBER</code> |
1204
+ * <code>STRING</code> | <code>DATE</code> | <code>EMAIL</code> | <code>ATTACHMENT</code>.</p>
1150
1205
  * @public
1151
1206
  */
1152
1207
  References?: Record<string, Reference> | undefined;
1153
1208
  /**
1154
- * <p>The channel for the contact</p>
1209
+ * <p>The channel for the contact.</p>
1155
1210
  * <important>
1156
- * <p>CreateContact only supports the EMAIL and VOICE channels. The following information that
1157
- * states other channels are supported is incorrect. We are working to update this topic.</p>
1211
+ * <p>The CHAT channel is not supported. The following information is incorrect. We're working to
1212
+ * correct it.</p>
1158
1213
  * </important>
1159
1214
  * @public
1160
1215
  */
@@ -1162,17 +1217,23 @@ export interface CreateContactRequest {
1162
1217
  /**
1163
1218
  * <p>Indicates how the contact was initiated. </p>
1164
1219
  * <important>
1165
- * <p>CreateContact only supports the following initiation methods: </p>
1220
+ * <p>CreateContact only supports the following initiation methods. Valid values by channel are: </p>
1166
1221
  * <ul>
1167
1222
  * <li>
1168
- * <p>For EMAIL: OUTBOUND, AGENT_REPLY, and FLOW. </p>
1223
+ * <p>For VOICE: <code>TRANSFER</code> and the subtype <code>connect:ExternalAudio</code>
1224
+ * </p>
1225
+ * </li>
1226
+ * <li>
1227
+ * <p>For EMAIL: <code>OUTBOUND</code> | <code>AGENT_REPLY</code> | <code>FLOW</code>
1228
+ * </p>
1169
1229
  * </li>
1170
1230
  * <li>
1171
- * <p>For VOICE: TRANSFER and the subtype connect:ExternalAudio. </p>
1231
+ * <p>For TASK: <code>API</code>
1232
+ * </p>
1172
1233
  * </li>
1173
1234
  * </ul>
1174
- * <p>The following information that states other initiation methods are supported is incorrect.
1175
- * We are working to update this topic.</p>
1235
+ * <p>The other channels listed below are incorrect. We're working to correct this
1236
+ * information.</p>
1176
1237
  * </important>
1177
1238
  * @public
1178
1239
  */
@@ -1185,14 +1246,15 @@ export interface CreateContactRequest {
1185
1246
  /**
1186
1247
  * <p>User details for the contact</p>
1187
1248
  * <important>
1188
- * <p>UserInfo is required when creating an EMAIL contact with OUTBOUND and AGENT_REPLY contact
1189
- * initiation methods.</p>
1249
+ * <p>UserInfo is required when creating an EMAIL contact with <code>OUTBOUND</code> and
1250
+ * <code>AGENT_REPLY</code> contact initiation methods.</p>
1190
1251
  * </important>
1191
1252
  * @public
1192
1253
  */
1193
1254
  UserInfo?: UserInfo | undefined;
1194
1255
  /**
1195
- * <p>Initial state of the contact when it's created</p>
1256
+ * <p>Initial state of the contact when it's created. Only TASK channel contacts can be initiated
1257
+ * with <code>COMPLETED</code> state.</p>
1196
1258
  * @public
1197
1259
  */
1198
1260
  InitiateAs?: InitiateAs | undefined;
@@ -3113,6 +3175,11 @@ export interface Contact {
3113
3175
  * @public
3114
3176
  */
3115
3177
  QualityMetrics?: QualityMetrics | undefined;
3178
+ /**
3179
+ * <p>Information about how agent, bot, and customer interact in a chat contact.</p>
3180
+ * @public
3181
+ */
3182
+ ChatMetrics?: ChatMetrics | undefined;
3116
3183
  /**
3117
3184
  * <p>Information about the call disconnect experience.</p>
3118
3185
  * @public
@@ -5,10 +5,8 @@ import {
5
5
  ServiceInputTypes,
6
6
  ServiceOutputTypes,
7
7
  } from "../ConnectClient";
8
- import {
9
- ListPhoneNumbersRequest,
10
- ListPhoneNumbersResponse,
11
- } from "../models/models_1";
8
+ import { ListPhoneNumbersRequest } from "../models/models_1";
9
+ import { ListPhoneNumbersResponse } from "../models/models_2";
12
10
  export { __MetadataBearer };
13
11
  export { $Command };
14
12
  export interface ListPhoneNumbersCommandInput extends ListPhoneNumbersRequest {}
@@ -5,8 +5,10 @@ import {
5
5
  ServiceInputTypes,
6
6
  ServiceOutputTypes,
7
7
  } from "../ConnectClient";
8
- import { ListPhoneNumbersV2Request } from "../models/models_1";
9
- import { ListPhoneNumbersV2Response } from "../models/models_2";
8
+ import {
9
+ ListPhoneNumbersV2Request,
10
+ ListPhoneNumbersV2Response,
11
+ } from "../models/models_2";
10
12
  export { __MetadataBearer };
11
13
  export { $Command };
12
14
  export interface ListPhoneNumbersV2CommandInput
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  UpdateParticipantRoleConfigRequest,
10
10
  UpdateParticipantRoleConfigResponse,
11
- } from "../models/models_2";
11
+ } from "../models/models_3";
12
12
  export { __MetadataBearer };
13
13
  export { $Command };
14
14
  export interface UpdateParticipantRoleConfigCommandInput
@@ -5,8 +5,10 @@ import {
5
5
  ServiceInputTypes,
6
6
  ServiceOutputTypes,
7
7
  } from "../ConnectClient";
8
- import { UpdatePhoneNumberRequest } from "../models/models_2";
9
- import { UpdatePhoneNumberResponse } from "../models/models_3";
8
+ import {
9
+ UpdatePhoneNumberRequest,
10
+ UpdatePhoneNumberResponse,
11
+ } from "../models/models_3";
10
12
  export { __MetadataBearer };
11
13
  export { $Command };
12
14
  export interface UpdatePhoneNumberCommandInput
@@ -182,6 +182,41 @@ export declare const AnsweringMachineDetectionStatus: {
182
182
  };
183
183
  export type AnsweringMachineDetectionStatus =
184
184
  (typeof AnsweringMachineDetectionStatus)[keyof typeof AnsweringMachineDetectionStatus];
185
+ export declare const ParticipantType: {
186
+ readonly AGENT: "AGENT";
187
+ readonly ALL: "ALL";
188
+ readonly CUSTOMER: "CUSTOMER";
189
+ readonly MANAGER: "MANAGER";
190
+ readonly THIRDPARTY: "THIRDPARTY";
191
+ };
192
+ export type ParticipantType =
193
+ (typeof ParticipantType)[keyof typeof ParticipantType];
194
+ export interface ParticipantMetrics {
195
+ ParticipantId?: string | undefined;
196
+ ParticipantType?: ParticipantType | undefined;
197
+ ConversationAbandon?: boolean | undefined;
198
+ MessagesSent?: number | undefined;
199
+ NumResponses?: number | undefined;
200
+ MessageLengthInChars?: number | undefined;
201
+ TotalResponseTimeInMillis?: number | undefined;
202
+ MaxResponseTimeInMillis?: number | undefined;
203
+ LastMessageTimestamp?: Date | undefined;
204
+ }
205
+ export interface ChatContactMetrics {
206
+ MultiParty?: boolean | undefined;
207
+ TotalMessages?: number | undefined;
208
+ TotalBotMessages?: number | undefined;
209
+ TotalBotMessageLengthInChars?: number | undefined;
210
+ ConversationCloseTimeInMillis?: number | undefined;
211
+ ConversationTurnCount?: number | undefined;
212
+ AgentFirstResponseTimestamp?: Date | undefined;
213
+ AgentFirstResponseTimeInMillis?: number | undefined;
214
+ }
215
+ export interface ChatMetrics {
216
+ ChatContactMetrics?: ChatContactMetrics | undefined;
217
+ AgentMetrics?: ParticipantMetrics | undefined;
218
+ CustomerMetrics?: ParticipantMetrics | undefined;
219
+ }
185
220
  export interface ContactDetails {
186
221
  Name?: string | undefined;
187
222
  Description?: string | undefined;
@@ -234,15 +269,6 @@ export declare const MediaStreamType: {
234
269
  };
235
270
  export type MediaStreamType =
236
271
  (typeof MediaStreamType)[keyof typeof MediaStreamType];
237
- export declare const ParticipantType: {
238
- readonly AGENT: "AGENT";
239
- readonly ALL: "ALL";
240
- readonly CUSTOMER: "CUSTOMER";
241
- readonly MANAGER: "MANAGER";
242
- readonly THIRDPARTY: "THIRDPARTY";
243
- };
244
- export type ParticipantType =
245
- (typeof ParticipantType)[keyof typeof ParticipantType];
246
272
  export declare const RecordingStatus: {
247
273
  readonly AVAILABLE: "AVAILABLE";
248
274
  readonly DELETED: "DELETED";
@@ -2103,26 +2129,6 @@ export interface ListPhoneNumbersRequest {
2103
2129
  NextToken?: string | undefined;
2104
2130
  MaxResults?: number | undefined;
2105
2131
  }
2106
- export interface PhoneNumberSummary {
2107
- Id?: string | undefined;
2108
- Arn?: string | undefined;
2109
- PhoneNumber?: string | undefined;
2110
- PhoneNumberType?: PhoneNumberType | undefined;
2111
- PhoneNumberCountryCode?: PhoneNumberCountryCode | undefined;
2112
- }
2113
- export interface ListPhoneNumbersResponse {
2114
- PhoneNumberSummaryList?: PhoneNumberSummary[] | undefined;
2115
- NextToken?: string | undefined;
2116
- }
2117
- export interface ListPhoneNumbersV2Request {
2118
- TargetArn?: string | undefined;
2119
- InstanceId?: string | undefined;
2120
- MaxResults?: number | undefined;
2121
- NextToken?: string | undefined;
2122
- PhoneNumberCountryCodes?: PhoneNumberCountryCode[] | undefined;
2123
- PhoneNumberTypes?: PhoneNumberType[] | undefined;
2124
- PhoneNumberPrefix?: string | undefined;
2125
- }
2126
2132
  export declare const DescribeEmailAddressResponseFilterSensitiveLog: (
2127
2133
  obj: DescribeEmailAddressResponse
2128
2134
  ) => any;
@@ -58,6 +58,26 @@ import {
58
58
  SortOrder,
59
59
  TrafficDistributionGroupStatus,
60
60
  } from "./models_1";
61
+ export interface PhoneNumberSummary {
62
+ Id?: string | undefined;
63
+ Arn?: string | undefined;
64
+ PhoneNumber?: string | undefined;
65
+ PhoneNumberType?: PhoneNumberType | undefined;
66
+ PhoneNumberCountryCode?: PhoneNumberCountryCode | undefined;
67
+ }
68
+ export interface ListPhoneNumbersResponse {
69
+ PhoneNumberSummaryList?: PhoneNumberSummary[] | undefined;
70
+ NextToken?: string | undefined;
71
+ }
72
+ export interface ListPhoneNumbersV2Request {
73
+ TargetArn?: string | undefined;
74
+ InstanceId?: string | undefined;
75
+ MaxResults?: number | undefined;
76
+ NextToken?: string | undefined;
77
+ PhoneNumberCountryCodes?: PhoneNumberCountryCode[] | undefined;
78
+ PhoneNumberTypes?: PhoneNumberType[] | undefined;
79
+ PhoneNumberPrefix?: string | undefined;
80
+ }
61
81
  export interface ListPhoneNumbersSummary {
62
82
  PhoneNumberId?: string | undefined;
63
83
  PhoneNumberArn?: string | undefined;
@@ -1752,18 +1772,6 @@ export declare namespace UpdateParticipantRoleConfigChannelInfo {
1752
1772
  visitor: Visitor<T>
1753
1773
  ) => T;
1754
1774
  }
1755
- export interface UpdateParticipantRoleConfigRequest {
1756
- InstanceId: string | undefined;
1757
- ContactId: string | undefined;
1758
- ChannelConfiguration: UpdateParticipantRoleConfigChannelInfo | undefined;
1759
- }
1760
- export interface UpdateParticipantRoleConfigResponse {}
1761
- export interface UpdatePhoneNumberRequest {
1762
- PhoneNumberId: string | undefined;
1763
- TargetArn?: string | undefined;
1764
- InstanceId?: string | undefined;
1765
- ClientToken?: string | undefined;
1766
- }
1767
1775
  export declare const ViewSummaryFilterSensitiveLog: (obj: ViewSummary) => any;
1768
1776
  export declare const ListViewsResponseFilterSensitiveLog: (
1769
1777
  obj: ListViewsResponse
@@ -39,6 +39,7 @@ import {
39
39
  import {
40
40
  AnsweringMachineDetectionStatus,
41
41
  AttributeCondition,
42
+ ChatMetrics,
42
43
  ContactDetails,
43
44
  ContactEvaluation,
44
45
  ContactFlowModuleState,
@@ -83,9 +84,22 @@ import {
83
84
  RoutingProfileSearchFilter,
84
85
  SearchableQueueType,
85
86
  SecurityProfilesSearchFilter,
87
+ UpdateParticipantRoleConfigChannelInfo,
86
88
  UserHierarchyGroupSearchFilter,
87
89
  UserSearchFilter,
88
90
  } from "./models_2";
91
+ export interface UpdateParticipantRoleConfigRequest {
92
+ InstanceId: string | undefined;
93
+ ContactId: string | undefined;
94
+ ChannelConfiguration: UpdateParticipantRoleConfigChannelInfo | undefined;
95
+ }
96
+ export interface UpdateParticipantRoleConfigResponse {}
97
+ export interface UpdatePhoneNumberRequest {
98
+ PhoneNumberId: string | undefined;
99
+ TargetArn?: string | undefined;
100
+ InstanceId?: string | undefined;
101
+ ClientToken?: string | undefined;
102
+ }
89
103
  export interface UpdatePhoneNumberResponse {
90
104
  PhoneNumberId?: string | undefined;
91
105
  PhoneNumberArn?: string | undefined;
@@ -715,6 +729,7 @@ export interface Contact {
715
729
  AnsweringMachineDetectionStatus?: AnsweringMachineDetectionStatus | undefined;
716
730
  CustomerVoiceActivity?: CustomerVoiceActivity | undefined;
717
731
  QualityMetrics?: QualityMetrics | undefined;
732
+ ChatMetrics?: ChatMetrics | undefined;
718
733
  DisconnectDetails?: DisconnectDetails | undefined;
719
734
  AdditionalEmailRecipients?: AdditionalEmailRecipients | undefined;
720
735
  SegmentAttributes?: Record<string, SegmentAttributeValue> | 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.839.0",
4
+ "version": "3.844.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-connect",
@@ -20,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.839.0",
24
- "@aws-sdk/credential-provider-node": "3.839.0",
25
- "@aws-sdk/middleware-host-header": "3.821.0",
26
- "@aws-sdk/middleware-logger": "3.821.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.821.0",
28
- "@aws-sdk/middleware-user-agent": "3.839.0",
29
- "@aws-sdk/region-config-resolver": "3.821.0",
30
- "@aws-sdk/types": "3.821.0",
31
- "@aws-sdk/util-endpoints": "3.828.0",
32
- "@aws-sdk/util-user-agent-browser": "3.821.0",
33
- "@aws-sdk/util-user-agent-node": "3.839.0",
23
+ "@aws-sdk/core": "3.844.0",
24
+ "@aws-sdk/credential-provider-node": "3.844.0",
25
+ "@aws-sdk/middleware-host-header": "3.840.0",
26
+ "@aws-sdk/middleware-logger": "3.840.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.840.0",
28
+ "@aws-sdk/middleware-user-agent": "3.844.0",
29
+ "@aws-sdk/region-config-resolver": "3.840.0",
30
+ "@aws-sdk/types": "3.840.0",
31
+ "@aws-sdk/util-endpoints": "3.844.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.840.0",
33
+ "@aws-sdk/util-user-agent-node": "3.844.0",
34
34
  "@smithy/config-resolver": "^4.1.4",
35
- "@smithy/core": "^3.6.0",
36
- "@smithy/fetch-http-handler": "^5.0.4",
35
+ "@smithy/core": "^3.7.0",
36
+ "@smithy/fetch-http-handler": "^5.1.0",
37
37
  "@smithy/hash-node": "^4.0.4",
38
38
  "@smithy/invalid-dependency": "^4.0.4",
39
39
  "@smithy/middleware-content-length": "^4.0.4",
40
- "@smithy/middleware-endpoint": "^4.1.13",
41
- "@smithy/middleware-retry": "^4.1.14",
40
+ "@smithy/middleware-endpoint": "^4.1.14",
41
+ "@smithy/middleware-retry": "^4.1.15",
42
42
  "@smithy/middleware-serde": "^4.0.8",
43
43
  "@smithy/middleware-stack": "^4.0.4",
44
44
  "@smithy/node-config-provider": "^4.1.3",
45
- "@smithy/node-http-handler": "^4.0.6",
45
+ "@smithy/node-http-handler": "^4.1.0",
46
46
  "@smithy/protocol-http": "^5.1.2",
47
- "@smithy/smithy-client": "^4.4.5",
47
+ "@smithy/smithy-client": "^4.4.6",
48
48
  "@smithy/types": "^4.3.1",
49
49
  "@smithy/url-parser": "^4.0.4",
50
50
  "@smithy/util-base64": "^4.0.0",
51
51
  "@smithy/util-body-length-browser": "^4.0.0",
52
52
  "@smithy/util-body-length-node": "^4.0.0",
53
- "@smithy/util-defaults-mode-browser": "^4.0.21",
54
- "@smithy/util-defaults-mode-node": "^4.0.21",
53
+ "@smithy/util-defaults-mode-browser": "^4.0.22",
54
+ "@smithy/util-defaults-mode-node": "^4.0.22",
55
55
  "@smithy/util-endpoints": "^3.0.6",
56
56
  "@smithy/util-middleware": "^4.0.4",
57
57
  "@smithy/util-retry": "^4.0.6",