Skip to content

Commit

Permalink
feat(client-connectparticipant): Introduce new Supervisor participant…
Browse files Browse the repository at this point in the history
… role
  • Loading branch information
awstools committed Jan 12, 2024
1 parent 5aee321 commit 2413b69
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ export interface SendEventCommandOutput extends SendEventResponse, __MetadataBea
* @throws {@link AccessDeniedException} (client fault)
* <p>You do not have sufficient access to perform this action.</p>
*
* @throws {@link ConflictException} (client fault)
* <p>An attachment with that identifier is already being uploaded.</p>
*
* @throws {@link InternalServerException} (server fault)
* <p>This exception occurs when there is an internal failure in the Amazon Connect service.</p>
*
Expand Down
2 changes: 2 additions & 0 deletions clients/client-connectparticipant/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ export const ResourceType = {
HIERARCHY_LEVEL: "HIERARCHY_LEVEL",
INSTANCE: "INSTANCE",
PARTICIPANT: "PARTICIPANT",
PHONE_NUMBER: "PHONE_NUMBER",
USER: "USER",
} as const;

Expand Down Expand Up @@ -670,6 +671,7 @@ export const ParticipantRole = {
AGENT: "AGENT",
CUSTOMER: "CUSTOMER",
CUSTOM_BOT: "CUSTOM_BOT",
SUPERVISOR: "SUPERVISOR",
SYSTEM: "SYSTEM",
} as const;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
15 changes: 15 additions & 0 deletions codegen/sdk-codegen/aws-models/connectparticipant.json
Original file line number Diff line number Diff line change
Expand Up @@ -1762,6 +1762,12 @@
"traits": {
"smithy.api#enumValue": "CUSTOM_BOT"
}
},
"SUPERVISOR": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "SUPERVISOR"
}
}
}
},
Expand Down Expand Up @@ -1905,6 +1911,12 @@
"traits": {
"smithy.api#enumValue": "USER"
}
},
"PHONE_NUMBER": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "PHONE_NUMBER"
}
}
}
},
Expand Down Expand Up @@ -1937,6 +1949,9 @@
{
"target": "com.amazonaws.connectparticipant#AccessDeniedException"
},
{
"target": "com.amazonaws.connectparticipant#ConflictException"
},
{
"target": "com.amazonaws.connectparticipant#InternalServerException"
},
Expand Down

0 comments on commit 2413b69

Please sign in to comment.