Skip to content

Commit 171954c

Browse files
author
awstools
committed
feat(client-connect): This release introduces ChatMetrics to the model, providing comprehensive analytics insights for Amazon Connect chat conversations. Users can access these detailed metrics through the AWS Connect API by using the DescribeContact operation with their specific instance and contact IDs
1 parent 417e154 commit 171954c

File tree

11 files changed

+647
-229
lines changed

11 files changed

+647
-229
lines changed

clients/client-connect/src/commands/CreateContactCommand.ts

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,28 @@ export interface CreateContactCommandOutput extends CreateContactResponse, __Met
3030

3131
/**
3232
* <important>
33-
* <p>Only the EMAIL and VOICE channels are supported. The supported initiation methods for EMAIL
34-
* are: OUTBOUND, AGENT_REPLY, and FLOW. For VOICE the supported initiation methods are TRANSFER
35-
* and the subtype connect:ExternalAudio. </p>
33+
* <p>Only the VOICE, EMAIL, and TASK channels are supported. </p>
34+
* <ul>
35+
* <li>
36+
* <p>For VOICE: The supported initiation method is <code>TRANSFER</code>. The contacts created
37+
* with this initiation method have a subtype <code>connect:ExternalAudio</code>. </p>
38+
* </li>
39+
* <li>
40+
* <p>For EMAIL: The supported initiation methods are <code>OUTBOUND</code>,
41+
* <code>AGENT_REPLY</code>, and <code>FLOW</code>. </p>
42+
* </li>
43+
* <li>
44+
* <p>For TASK: The supported initiation method is <code>API</code>. Contacts created with this
45+
* API have a sub-type of <code>connect:ExternalTask</code>.</p>
46+
* </li>
47+
* </ul>
3648
* </important>
37-
* <p>Creates a new EMAIL or VOICE contact. </p>
49+
* <p>Creates a new VOICE, EMAIL, or TASK contact. </p>
50+
* <p>After a contact is created, you can move it to the desired state by using the
51+
* <code>InitiateAs</code> parameter. While you can use API to create task contacts that are in the
52+
* <code>COMPLETED</code> state, you must contact Amazon Web Services Support before using it for
53+
* bulk import use cases. Bulk import causes your requests to be throttled or fail if your
54+
* CreateContact limits aren't high enough. </p>
3855
* @example
3956
* Use a bare-bones client and the command you need to make an API call.
4057
* ```javascript

clients/client-connect/src/commands/DescribeContactCommand.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,40 @@ export interface DescribeContactCommandOutput extends DescribeContactResponse, _
276276
* // },
277277
* // },
278278
* // },
279+
* // ChatMetrics: { // ChatMetrics
280+
* // ChatContactMetrics: { // ChatContactMetrics
281+
* // MultiParty: true || false,
282+
* // TotalMessages: Number("int"),
283+
* // TotalBotMessages: Number("int"),
284+
* // TotalBotMessageLengthInChars: Number("int"),
285+
* // ConversationCloseTimeInMillis: Number("long"),
286+
* // ConversationTurnCount: Number("int"),
287+
* // AgentFirstResponseTimestamp: new Date("TIMESTAMP"),
288+
* // AgentFirstResponseTimeInMillis: Number("long"),
289+
* // },
290+
* // AgentMetrics: { // ParticipantMetrics
291+
* // ParticipantId: "STRING_VALUE",
292+
* // ParticipantType: "ALL" || "MANAGER" || "AGENT" || "CUSTOMER" || "THIRDPARTY",
293+
* // ConversationAbandon: true || false,
294+
* // MessagesSent: Number("int"),
295+
* // NumResponses: Number("int"),
296+
* // MessageLengthInChars: Number("int"),
297+
* // TotalResponseTimeInMillis: Number("long"),
298+
* // MaxResponseTimeInMillis: Number("long"),
299+
* // LastMessageTimestamp: new Date("TIMESTAMP"),
300+
* // },
301+
* // CustomerMetrics: {
302+
* // ParticipantId: "STRING_VALUE",
303+
* // ParticipantType: "ALL" || "MANAGER" || "AGENT" || "CUSTOMER" || "THIRDPARTY",
304+
* // ConversationAbandon: true || false,
305+
* // MessagesSent: Number("int"),
306+
* // NumResponses: Number("int"),
307+
* // MessageLengthInChars: Number("int"),
308+
* // TotalResponseTimeInMillis: Number("long"),
309+
* // MaxResponseTimeInMillis: Number("long"),
310+
* // LastMessageTimestamp: new Date("TIMESTAMP"),
311+
* // },
312+
* // },
279313
* // DisconnectDetails: { // DisconnectDetails
280314
* // PotentialDisconnectIssue: "STRING_VALUE",
281315
* // },

clients/client-connect/src/commands/ListPhoneNumbersCommand.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { ListPhoneNumbersRequest, ListPhoneNumbersResponse } from "../models/models_1";
9+
import { ListPhoneNumbersRequest } from "../models/models_1";
10+
import { ListPhoneNumbersResponse } from "../models/models_2";
1011
import { de_ListPhoneNumbersCommand, se_ListPhoneNumbersCommand } from "../protocols/Aws_restJson1";
1112

1213
/**

clients/client-connect/src/commands/ListPhoneNumbersV2Command.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { ListPhoneNumbersV2Request } from "../models/models_1";
10-
import { ListPhoneNumbersV2Response } from "../models/models_2";
9+
import { ListPhoneNumbersV2Request, ListPhoneNumbersV2Response } from "../models/models_2";
1110
import { de_ListPhoneNumbersV2Command, se_ListPhoneNumbersV2Command } from "../protocols/Aws_restJson1";
1211

1312
/**

clients/client-connect/src/commands/UpdateParticipantRoleConfigCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { UpdateParticipantRoleConfigRequest, UpdateParticipantRoleConfigResponse } from "../models/models_2";
9+
import { UpdateParticipantRoleConfigRequest, UpdateParticipantRoleConfigResponse } from "../models/models_3";
1010
import {
1111
de_UpdateParticipantRoleConfigCommand,
1212
se_UpdateParticipantRoleConfigCommand,

clients/client-connect/src/commands/UpdatePhoneNumberCommand.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { UpdatePhoneNumberRequest } from "../models/models_2";
10-
import { UpdatePhoneNumberResponse } from "../models/models_3";
9+
import { UpdatePhoneNumberRequest, UpdatePhoneNumberResponse } from "../models/models_3";
1110
import { de_UpdatePhoneNumberCommand, se_UpdatePhoneNumberCommand } from "../protocols/Aws_restJson1";
1211

1312
/**

0 commit comments

Comments
 (0)