From 2413b690d5d36016b6529254a639781a73b378bd Mon Sep 17 00:00:00 2001 From: awstools Date: Fri, 12 Jan 2024 19:39:53 +0000 Subject: [PATCH] feat(client-connectparticipant): Introduce new Supervisor participant role --- .../src/commands/GetTranscriptCommand.ts | 2 +- .../src/commands/SendEventCommand.ts | 3 +++ .../src/models/models_0.ts | 2 ++ .../src/protocols/Aws_restJson1.ts | 3 +++ .../aws-models/connectparticipant.json | 15 +++++++++++++++ 5 files changed, 24 insertions(+), 1 deletion(-) diff --git a/clients/client-connectparticipant/src/commands/GetTranscriptCommand.ts b/clients/client-connectparticipant/src/commands/GetTranscriptCommand.ts index 34978827d7da..8810846c3398 100644 --- a/clients/client-connectparticipant/src/commands/GetTranscriptCommand.ts +++ b/clients/client-connectparticipant/src/commands/GetTranscriptCommand.ts @@ -74,7 +74,7 @@ export interface GetTranscriptCommandOutput extends GetTranscriptResponse, __Met * // Type: "TYPING" || "PARTICIPANT_JOINED" || "PARTICIPANT_LEFT" || "CHAT_ENDED" || "TRANSFER_SUCCEEDED" || "TRANSFER_FAILED" || "MESSAGE" || "EVENT" || "ATTACHMENT" || "CONNECTION_ACK" || "MESSAGE_DELIVERED" || "MESSAGE_READ", * // ParticipantId: "STRING_VALUE", * // DisplayName: "STRING_VALUE", - * // ParticipantRole: "AGENT" || "CUSTOMER" || "SYSTEM" || "CUSTOM_BOT", + * // ParticipantRole: "AGENT" || "CUSTOMER" || "SYSTEM" || "CUSTOM_BOT" || "SUPERVISOR", * // Attachments: [ // Attachments * // { // AttachmentItem * // ContentType: "STRING_VALUE", diff --git a/clients/client-connectparticipant/src/commands/SendEventCommand.ts b/clients/client-connectparticipant/src/commands/SendEventCommand.ts index 0b5eb8c6c7f7..69e5a6c0dcf5 100644 --- a/clients/client-connectparticipant/src/commands/SendEventCommand.ts +++ b/clients/client-connectparticipant/src/commands/SendEventCommand.ts @@ -70,6 +70,9 @@ export interface SendEventCommandOutput extends SendEventResponse, __MetadataBea * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient access to perform this action.

* + * @throws {@link ConflictException} (client fault) + *

An attachment with that identifier is already being uploaded.

+ * * @throws {@link InternalServerException} (server fault) *

This exception occurs when there is an internal failure in the Amazon Connect service.

* diff --git a/clients/client-connectparticipant/src/models/models_0.ts b/clients/client-connectparticipant/src/models/models_0.ts index 1b5183c2e643..79eef7f9dacf 100644 --- a/clients/client-connectparticipant/src/models/models_0.ts +++ b/clients/client-connectparticipant/src/models/models_0.ts @@ -367,6 +367,7 @@ export const ResourceType = { HIERARCHY_LEVEL: "HIERARCHY_LEVEL", INSTANCE: "INSTANCE", PARTICIPANT: "PARTICIPANT", + PHONE_NUMBER: "PHONE_NUMBER", USER: "USER", } as const; @@ -670,6 +671,7 @@ export const ParticipantRole = { AGENT: "AGENT", CUSTOMER: "CUSTOMER", CUSTOM_BOT: "CUSTOM_BOT", + SUPERVISOR: "SUPERVISOR", SYSTEM: "SYSTEM", } as const; diff --git a/clients/client-connectparticipant/src/protocols/Aws_restJson1.ts b/clients/client-connectparticipant/src/protocols/Aws_restJson1.ts index f5d06fe718ff..c3c82cd4a258 100644 --- a/clients/client-connectparticipant/src/protocols/Aws_restJson1.ts +++ b/clients/client-connectparticipant/src/protocols/Aws_restJson1.ts @@ -649,6 +649,9 @@ const de_SendEventCommandError = async ( case "AccessDeniedException": case "com.amazonaws.connectparticipant#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ConflictException": + case "com.amazonaws.connectparticipant#ConflictException": + throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.connectparticipant#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); diff --git a/codegen/sdk-codegen/aws-models/connectparticipant.json b/codegen/sdk-codegen/aws-models/connectparticipant.json index 07ffbed0b7ab..9cafc31e3b1f 100644 --- a/codegen/sdk-codegen/aws-models/connectparticipant.json +++ b/codegen/sdk-codegen/aws-models/connectparticipant.json @@ -1762,6 +1762,12 @@ "traits": { "smithy.api#enumValue": "CUSTOM_BOT" } + }, + "SUPERVISOR": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SUPERVISOR" + } } } }, @@ -1905,6 +1911,12 @@ "traits": { "smithy.api#enumValue": "USER" } + }, + "PHONE_NUMBER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PHONE_NUMBER" + } } } }, @@ -1937,6 +1949,9 @@ { "target": "com.amazonaws.connectparticipant#AccessDeniedException" }, + { + "target": "com.amazonaws.connectparticipant#ConflictException" + }, { "target": "com.amazonaws.connectparticipant#InternalServerException" },