From 4e1a96b295ea0ee861e6c5f0016b65e5cc00f169 Mon Sep 17 00:00:00 2001 From: awstools Date: Wed, 18 Dec 2024 19:12:49 +0000 Subject: [PATCH] feat(client-connect): This release adds support for the UpdateParticipantAuthentication API used for customer authentication within Amazon Connect chats. --- clients/client-connect/README.md | 8 + clients/client-connect/src/Connect.ts | 23 +++ clients/client-connect/src/ConnectClient.ts | 6 + .../CreateIntegrationAssociationCommand.ts | 2 +- ...eatePushNotificationRegistrationCommand.ts | 2 +- .../src/commands/DescribeContactCommand.ts | 1 + .../DescribeInstanceAttributeCommand.ts | 4 +- .../src/commands/ListBotsCommand.ts | 2 +- .../commands/ListInstanceAttributesCommand.ts | 2 +- .../ListIntegrationAssociationsCommand.ts | 4 +- .../src/commands/StartChatContactCommand.ts | 5 +- .../UpdateInstanceAttributeCommand.ts | 2 +- .../UpdateParticipantAuthenticationCommand.ts | 139 +++++++++++++ .../commands/UpdateSecurityProfileCommand.ts | 2 +- .../src/commands/UpdateTaskTemplateCommand.ts | 3 +- clients/client-connect/src/commands/index.ts | 1 + clients/client-connect/src/models/models_0.ts | 1 + clients/client-connect/src/models/models_1.ts | 1 + clients/client-connect/src/models/models_2.ts | 193 ++++++------------ clients/client-connect/src/models/models_3.ts | 154 ++++++++++++++ .../src/protocols/Aws_restJson1.ts | 49 +++++ codegen/sdk-codegen/aws-models/connect.json | 170 ++++++++++++++- 22 files changed, 623 insertions(+), 151 deletions(-) create mode 100644 clients/client-connect/src/commands/UpdateParticipantAuthenticationCommand.ts diff --git a/clients/client-connect/README.md b/clients/client-connect/README.md index 34aca0a4f6e9f..f062676db4357 100644 --- a/clients/client-connect/README.md +++ b/clients/client-connect/README.md @@ -2201,6 +2201,14 @@ UpdateInstanceStorageConfig [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/UpdateInstanceStorageConfigCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/UpdateInstanceStorageConfigCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/UpdateInstanceStorageConfigCommandOutput/) + +
+ +UpdateParticipantAuthentication + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/UpdateParticipantAuthenticationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/UpdateParticipantAuthenticationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/UpdateParticipantAuthenticationCommandOutput/) +
diff --git a/clients/client-connect/src/Connect.ts b/clients/client-connect/src/Connect.ts index a330632b1f48e..2dadc997984f0 100644 --- a/clients/client-connect/src/Connect.ts +++ b/clients/client-connect/src/Connect.ts @@ -1161,6 +1161,11 @@ import { UpdateInstanceStorageConfigCommandInput, UpdateInstanceStorageConfigCommandOutput, } from "./commands/UpdateInstanceStorageConfigCommand"; +import { + UpdateParticipantAuthenticationCommand, + UpdateParticipantAuthenticationCommandInput, + UpdateParticipantAuthenticationCommandOutput, +} from "./commands/UpdateParticipantAuthenticationCommand"; import { UpdateParticipantRoleConfigCommand, UpdateParticipantRoleConfigCommandInput, @@ -1567,6 +1572,7 @@ const commands = { UpdateHoursOfOperationOverrideCommand, UpdateInstanceAttributeCommand, UpdateInstanceStorageConfigCommand, + UpdateParticipantAuthenticationCommand, UpdateParticipantRoleConfigCommand, UpdatePhoneNumberCommand, UpdatePhoneNumberMetadataCommand, @@ -5513,6 +5519,23 @@ export interface Connect { cb: (err: any, data?: UpdateInstanceStorageConfigCommandOutput) => void ): void; + /** + * @see {@link UpdateParticipantAuthenticationCommand} + */ + updateParticipantAuthentication( + args: UpdateParticipantAuthenticationCommandInput, + options?: __HttpHandlerOptions + ): Promise; + updateParticipantAuthentication( + args: UpdateParticipantAuthenticationCommandInput, + cb: (err: any, data?: UpdateParticipantAuthenticationCommandOutput) => void + ): void; + updateParticipantAuthentication( + args: UpdateParticipantAuthenticationCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateParticipantAuthenticationCommandOutput) => void + ): void; + /** * @see {@link UpdateParticipantRoleConfigCommand} */ diff --git a/clients/client-connect/src/ConnectClient.ts b/clients/client-connect/src/ConnectClient.ts index f75657fbd99c5..b7b1e757dbbbb 100644 --- a/clients/client-connect/src/ConnectClient.ts +++ b/clients/client-connect/src/ConnectClient.ts @@ -741,6 +741,10 @@ import { UpdateInstanceStorageConfigCommandInput, UpdateInstanceStorageConfigCommandOutput, } from "./commands/UpdateInstanceStorageConfigCommand"; +import { + UpdateParticipantAuthenticationCommandInput, + UpdateParticipantAuthenticationCommandOutput, +} from "./commands/UpdateParticipantAuthenticationCommand"; import { UpdateParticipantRoleConfigCommandInput, UpdateParticipantRoleConfigCommandOutput, @@ -1107,6 +1111,7 @@ export type ServiceInputTypes = | UpdateHoursOfOperationOverrideCommandInput | UpdateInstanceAttributeCommandInput | UpdateInstanceStorageConfigCommandInput + | UpdateParticipantAuthenticationCommandInput | UpdateParticipantRoleConfigCommandInput | UpdatePhoneNumberCommandInput | UpdatePhoneNumberMetadataCommandInput @@ -1391,6 +1396,7 @@ export type ServiceOutputTypes = | UpdateHoursOfOperationOverrideCommandOutput | UpdateInstanceAttributeCommandOutput | UpdateInstanceStorageConfigCommandOutput + | UpdateParticipantAuthenticationCommandOutput | UpdateParticipantRoleConfigCommandOutput | UpdatePhoneNumberCommandOutput | UpdatePhoneNumberMetadataCommandOutput diff --git a/clients/client-connect/src/commands/CreateIntegrationAssociationCommand.ts b/clients/client-connect/src/commands/CreateIntegrationAssociationCommand.ts index ce0b851c1c515..10f2b78381cfe 100644 --- a/clients/client-connect/src/commands/CreateIntegrationAssociationCommand.ts +++ b/clients/client-connect/src/commands/CreateIntegrationAssociationCommand.ts @@ -43,7 +43,7 @@ export interface CreateIntegrationAssociationCommandOutput * const client = new ConnectClient(config); * const input = { // CreateIntegrationAssociationRequest * InstanceId: "STRING_VALUE", // required - * IntegrationType: "EVENT" || "VOICE_ID" || "PINPOINT_APP" || "WISDOM_ASSISTANT" || "WISDOM_KNOWLEDGE_BASE" || "WISDOM_QUICK_RESPONSES" || "Q_MESSAGE_TEMPLATES" || "CASES_DOMAIN" || "APPLICATION" || "FILE_SCANNER" || "SES_IDENTITY" || "ANALYTICS_CONNECTOR" || "CALL_TRANSFER_CONNECTOR", // required + * IntegrationType: "EVENT" || "VOICE_ID" || "PINPOINT_APP" || "WISDOM_ASSISTANT" || "WISDOM_KNOWLEDGE_BASE" || "WISDOM_QUICK_RESPONSES" || "Q_MESSAGE_TEMPLATES" || "CASES_DOMAIN" || "APPLICATION" || "FILE_SCANNER" || "SES_IDENTITY" || "ANALYTICS_CONNECTOR" || "CALL_TRANSFER_CONNECTOR" || "COGNITO_USER_POOL", // required * IntegrationArn: "STRING_VALUE", // required * SourceApplicationUrl: "STRING_VALUE", * SourceApplicationName: "STRING_VALUE", diff --git a/clients/client-connect/src/commands/CreatePushNotificationRegistrationCommand.ts b/clients/client-connect/src/commands/CreatePushNotificationRegistrationCommand.ts index 44f3b0a409164..ed93a73df790e 100644 --- a/clients/client-connect/src/commands/CreatePushNotificationRegistrationCommand.ts +++ b/clients/client-connect/src/commands/CreatePushNotificationRegistrationCommand.ts @@ -37,7 +37,7 @@ export interface CreatePushNotificationRegistrationCommandOutput /** *

Creates registration for a device token and a chat contact to receive real-time push - * notifications. For more information about push notifications, see Set up push + * notifications. For more information about push notifications, see Set up push * notifications in Amazon Connect for mobile chat in the Amazon Connect * Administrator Guide.

* @example diff --git a/clients/client-connect/src/commands/DescribeContactCommand.ts b/clients/client-connect/src/commands/DescribeContactCommand.ts index ba20c1630b510..1b9855b6a3d2b 100644 --- a/clients/client-connect/src/commands/DescribeContactCommand.ts +++ b/clients/client-connect/src/commands/DescribeContactCommand.ts @@ -106,6 +106,7 @@ export interface DescribeContactCommandOutput extends DescribeContactResponse, _ * // WisdomInfo: { // WisdomInfo * // SessionArn: "STRING_VALUE", * // }, + * // CustomerId: "STRING_VALUE", * // CustomerEndpoint: { // EndpointInfo * // Type: "TELEPHONE_NUMBER" || "VOIP" || "CONTACT_FLOW" || "CONNECT_PHONENUMBER_ARN" || "EMAIL_ADDRESS", * // Address: "STRING_VALUE", diff --git a/clients/client-connect/src/commands/DescribeInstanceAttributeCommand.ts b/clients/client-connect/src/commands/DescribeInstanceAttributeCommand.ts index 4489cf8c6cbf2..cab209aad63ff 100644 --- a/clients/client-connect/src/commands/DescribeInstanceAttributeCommand.ts +++ b/clients/client-connect/src/commands/DescribeInstanceAttributeCommand.ts @@ -38,13 +38,13 @@ export interface DescribeInstanceAttributeCommandOutput extends DescribeInstance * const client = new ConnectClient(config); * const input = { // DescribeInstanceAttributeRequest * InstanceId: "STRING_VALUE", // required - * AttributeType: "INBOUND_CALLS" || "OUTBOUND_CALLS" || "CONTACTFLOW_LOGS" || "CONTACT_LENS" || "AUTO_RESOLVE_BEST_VOICES" || "USE_CUSTOM_TTS_VOICES" || "EARLY_MEDIA" || "MULTI_PARTY_CONFERENCE" || "HIGH_VOLUME_OUTBOUND" || "ENHANCED_CONTACT_MONITORING" || "ENHANCED_CHAT_MONITORING", // required + * AttributeType: "INBOUND_CALLS" || "OUTBOUND_CALLS" || "CONTACTFLOW_LOGS" || "CONTACT_LENS" || "AUTO_RESOLVE_BEST_VOICES" || "USE_CUSTOM_TTS_VOICES" || "EARLY_MEDIA" || "MULTI_PARTY_CONFERENCE" || "HIGH_VOLUME_OUTBOUND" || "ENHANCED_CONTACT_MONITORING" || "ENHANCED_CHAT_MONITORING" || "MULTI_PARTY_CHAT_CONFERENCE", // required * }; * const command = new DescribeInstanceAttributeCommand(input); * const response = await client.send(command); * // { // DescribeInstanceAttributeResponse * // Attribute: { // Attribute - * // AttributeType: "INBOUND_CALLS" || "OUTBOUND_CALLS" || "CONTACTFLOW_LOGS" || "CONTACT_LENS" || "AUTO_RESOLVE_BEST_VOICES" || "USE_CUSTOM_TTS_VOICES" || "EARLY_MEDIA" || "MULTI_PARTY_CONFERENCE" || "HIGH_VOLUME_OUTBOUND" || "ENHANCED_CONTACT_MONITORING" || "ENHANCED_CHAT_MONITORING", + * // AttributeType: "INBOUND_CALLS" || "OUTBOUND_CALLS" || "CONTACTFLOW_LOGS" || "CONTACT_LENS" || "AUTO_RESOLVE_BEST_VOICES" || "USE_CUSTOM_TTS_VOICES" || "EARLY_MEDIA" || "MULTI_PARTY_CONFERENCE" || "HIGH_VOLUME_OUTBOUND" || "ENHANCED_CONTACT_MONITORING" || "ENHANCED_CHAT_MONITORING" || "MULTI_PARTY_CHAT_CONFERENCE", * // Value: "STRING_VALUE", * // }, * // }; diff --git a/clients/client-connect/src/commands/ListBotsCommand.ts b/clients/client-connect/src/commands/ListBotsCommand.ts index d207ec320f2a1..4780e22494c3e 100644 --- a/clients/client-connect/src/commands/ListBotsCommand.ts +++ b/clients/client-connect/src/commands/ListBotsCommand.ts @@ -29,7 +29,7 @@ export interface ListBotsCommandOutput extends ListBotsResponse, __MetadataBeare /** *

This API is in preview release for Amazon Connect and is subject to change.

- *

For the specified version of Amazon Lex, returns a paginated list of all the Amazon Lex bots currently associated with the instance. Use this API to returns both Amazon Lex V1 and V2 bots.

+ *

For the specified version of Amazon Lex, returns a paginated list of all the Amazon Lex bots currently associated with the instance. Use this API to return both Amazon Lex V1 and V2 bots.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-connect/src/commands/ListInstanceAttributesCommand.ts b/clients/client-connect/src/commands/ListInstanceAttributesCommand.ts index 2d0190dd0a485..5fec0648376d3 100644 --- a/clients/client-connect/src/commands/ListInstanceAttributesCommand.ts +++ b/clients/client-connect/src/commands/ListInstanceAttributesCommand.ts @@ -46,7 +46,7 @@ export interface ListInstanceAttributesCommandOutput extends ListInstanceAttribu * // { // ListInstanceAttributesResponse * // Attributes: [ // AttributesList * // { // Attribute - * // AttributeType: "INBOUND_CALLS" || "OUTBOUND_CALLS" || "CONTACTFLOW_LOGS" || "CONTACT_LENS" || "AUTO_RESOLVE_BEST_VOICES" || "USE_CUSTOM_TTS_VOICES" || "EARLY_MEDIA" || "MULTI_PARTY_CONFERENCE" || "HIGH_VOLUME_OUTBOUND" || "ENHANCED_CONTACT_MONITORING" || "ENHANCED_CHAT_MONITORING", + * // AttributeType: "INBOUND_CALLS" || "OUTBOUND_CALLS" || "CONTACTFLOW_LOGS" || "CONTACT_LENS" || "AUTO_RESOLVE_BEST_VOICES" || "USE_CUSTOM_TTS_VOICES" || "EARLY_MEDIA" || "MULTI_PARTY_CONFERENCE" || "HIGH_VOLUME_OUTBOUND" || "ENHANCED_CONTACT_MONITORING" || "ENHANCED_CHAT_MONITORING" || "MULTI_PARTY_CHAT_CONFERENCE", * // Value: "STRING_VALUE", * // }, * // ], diff --git a/clients/client-connect/src/commands/ListIntegrationAssociationsCommand.ts b/clients/client-connect/src/commands/ListIntegrationAssociationsCommand.ts index 32ef6868d4329..90c988e0200f3 100644 --- a/clients/client-connect/src/commands/ListIntegrationAssociationsCommand.ts +++ b/clients/client-connect/src/commands/ListIntegrationAssociationsCommand.ts @@ -43,7 +43,7 @@ export interface ListIntegrationAssociationsCommandOutput * const client = new ConnectClient(config); * const input = { // ListIntegrationAssociationsRequest * InstanceId: "STRING_VALUE", // required - * IntegrationType: "EVENT" || "VOICE_ID" || "PINPOINT_APP" || "WISDOM_ASSISTANT" || "WISDOM_KNOWLEDGE_BASE" || "WISDOM_QUICK_RESPONSES" || "Q_MESSAGE_TEMPLATES" || "CASES_DOMAIN" || "APPLICATION" || "FILE_SCANNER" || "SES_IDENTITY" || "ANALYTICS_CONNECTOR" || "CALL_TRANSFER_CONNECTOR", + * IntegrationType: "EVENT" || "VOICE_ID" || "PINPOINT_APP" || "WISDOM_ASSISTANT" || "WISDOM_KNOWLEDGE_BASE" || "WISDOM_QUICK_RESPONSES" || "Q_MESSAGE_TEMPLATES" || "CASES_DOMAIN" || "APPLICATION" || "FILE_SCANNER" || "SES_IDENTITY" || "ANALYTICS_CONNECTOR" || "CALL_TRANSFER_CONNECTOR" || "COGNITO_USER_POOL", * NextToken: "STRING_VALUE", * MaxResults: Number("int"), * IntegrationArn: "STRING_VALUE", @@ -56,7 +56,7 @@ export interface ListIntegrationAssociationsCommandOutput * // IntegrationAssociationId: "STRING_VALUE", * // IntegrationAssociationArn: "STRING_VALUE", * // InstanceId: "STRING_VALUE", - * // IntegrationType: "EVENT" || "VOICE_ID" || "PINPOINT_APP" || "WISDOM_ASSISTANT" || "WISDOM_KNOWLEDGE_BASE" || "WISDOM_QUICK_RESPONSES" || "Q_MESSAGE_TEMPLATES" || "CASES_DOMAIN" || "APPLICATION" || "FILE_SCANNER" || "SES_IDENTITY" || "ANALYTICS_CONNECTOR" || "CALL_TRANSFER_CONNECTOR", + * // IntegrationType: "EVENT" || "VOICE_ID" || "PINPOINT_APP" || "WISDOM_ASSISTANT" || "WISDOM_KNOWLEDGE_BASE" || "WISDOM_QUICK_RESPONSES" || "Q_MESSAGE_TEMPLATES" || "CASES_DOMAIN" || "APPLICATION" || "FILE_SCANNER" || "SES_IDENTITY" || "ANALYTICS_CONNECTOR" || "CALL_TRANSFER_CONNECTOR" || "COGNITO_USER_POOL", * // IntegrationArn: "STRING_VALUE", * // SourceApplicationUrl: "STRING_VALUE", * // SourceApplicationName: "STRING_VALUE", diff --git a/clients/client-connect/src/commands/StartChatContactCommand.ts b/clients/client-connect/src/commands/StartChatContactCommand.ts index 4108f91cbded0..7469fb80a6ab3 100644 --- a/clients/client-connect/src/commands/StartChatContactCommand.ts +++ b/clients/client-connect/src/commands/StartChatContactCommand.ts @@ -7,7 +7,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient"; import { commonParams } from "../endpoint/EndpointParameters"; import { StartChatContactResponse } from "../models/models_2"; -import { StartChatContactRequest } from "../models/models_3"; +import { StartChatContactRequest, StartChatContactRequestFilterSensitiveLog } from "../models/models_3"; import { de_StartChatContactCommand, se_StartChatContactCommand } from "../protocols/Aws_restJson1"; /** @@ -106,6 +106,7 @@ export interface StartChatContactCommandOutput extends StartChatContactResponse, * ValueInteger: Number("int"), * }, * }, + * CustomerId: "STRING_VALUE", * }; * const command = new StartChatContactCommand(input); * const response = await client.send(command); @@ -161,7 +162,7 @@ export class StartChatContactCommand extends $Command }) .s("AmazonConnectService", "StartChatContact", {}) .n("ConnectClient", "StartChatContactCommand") - .f(void 0, void 0) + .f(StartChatContactRequestFilterSensitiveLog, void 0) .ser(se_StartChatContactCommand) .de(de_StartChatContactCommand) .build() { diff --git a/clients/client-connect/src/commands/UpdateInstanceAttributeCommand.ts b/clients/client-connect/src/commands/UpdateInstanceAttributeCommand.ts index 7c01ff07e63fa..d49410f8b9cf3 100644 --- a/clients/client-connect/src/commands/UpdateInstanceAttributeCommand.ts +++ b/clients/client-connect/src/commands/UpdateInstanceAttributeCommand.ts @@ -38,7 +38,7 @@ export interface UpdateInstanceAttributeCommandOutput extends __MetadataBearer { * const client = new ConnectClient(config); * const input = { // UpdateInstanceAttributeRequest * InstanceId: "STRING_VALUE", // required - * AttributeType: "INBOUND_CALLS" || "OUTBOUND_CALLS" || "CONTACTFLOW_LOGS" || "CONTACT_LENS" || "AUTO_RESOLVE_BEST_VOICES" || "USE_CUSTOM_TTS_VOICES" || "EARLY_MEDIA" || "MULTI_PARTY_CONFERENCE" || "HIGH_VOLUME_OUTBOUND" || "ENHANCED_CONTACT_MONITORING" || "ENHANCED_CHAT_MONITORING", // required + * AttributeType: "INBOUND_CALLS" || "OUTBOUND_CALLS" || "CONTACTFLOW_LOGS" || "CONTACT_LENS" || "AUTO_RESOLVE_BEST_VOICES" || "USE_CUSTOM_TTS_VOICES" || "EARLY_MEDIA" || "MULTI_PARTY_CONFERENCE" || "HIGH_VOLUME_OUTBOUND" || "ENHANCED_CONTACT_MONITORING" || "ENHANCED_CHAT_MONITORING" || "MULTI_PARTY_CHAT_CONFERENCE", // required * Value: "STRING_VALUE", // required * }; * const command = new UpdateInstanceAttributeCommand(input); diff --git a/clients/client-connect/src/commands/UpdateParticipantAuthenticationCommand.ts b/clients/client-connect/src/commands/UpdateParticipantAuthenticationCommand.ts new file mode 100644 index 0000000000000..b630f639c61ee --- /dev/null +++ b/clients/client-connect/src/commands/UpdateParticipantAuthenticationCommand.ts @@ -0,0 +1,139 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient"; +import { commonParams } from "../endpoint/EndpointParameters"; +import { + UpdateParticipantAuthenticationRequest, + UpdateParticipantAuthenticationRequestFilterSensitiveLog, + UpdateParticipantAuthenticationResponse, +} from "../models/models_2"; +import { + de_UpdateParticipantAuthenticationCommand, + se_UpdateParticipantAuthenticationCommand, +} from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link UpdateParticipantAuthenticationCommand}. + */ +export interface UpdateParticipantAuthenticationCommandInput extends UpdateParticipantAuthenticationRequest {} +/** + * @public + * + * The output of {@link UpdateParticipantAuthenticationCommand}. + */ +export interface UpdateParticipantAuthenticationCommandOutput + extends UpdateParticipantAuthenticationResponse, + __MetadataBearer {} + +/** + *

Instructs Amazon Connect to resume the authentication process. The subsequent actions + * depend on the request body contents:

+ *
    + *
  • + *

    + * If a code is provided: Connect retrieves the identity + * information from Amazon Cognito and imports it into Connect Customer Profiles.

    + *
  • + *
  • + *

    + * If an error is provided: The error branch of the + * Authenticate Customer block is executed.

    + *
  • + *
+ * + *

The API returns a success response to acknowledge the request. However, the interaction and + * exchange of identity information occur asynchronously after the response is returned.

+ *
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { ConnectClient, UpdateParticipantAuthenticationCommand } from "@aws-sdk/client-connect"; // ES Modules import + * // const { ConnectClient, UpdateParticipantAuthenticationCommand } = require("@aws-sdk/client-connect"); // CommonJS import + * const client = new ConnectClient(config); + * const input = { // UpdateParticipantAuthenticationRequest + * State: "STRING_VALUE", // required + * InstanceId: "STRING_VALUE", // required + * Code: "STRING_VALUE", + * Error: "STRING_VALUE", + * ErrorDescription: "STRING_VALUE", + * }; + * const command = new UpdateParticipantAuthenticationCommand(input); + * const response = await client.send(command); + * // {}; + * + * ``` + * + * @param UpdateParticipantAuthenticationCommandInput - {@link UpdateParticipantAuthenticationCommandInput} + * @returns {@link UpdateParticipantAuthenticationCommandOutput} + * @see {@link UpdateParticipantAuthenticationCommandInput} for command's `input` shape. + * @see {@link UpdateParticipantAuthenticationCommandOutput} for command's `response` shape. + * @see {@link ConnectClientResolvedConfig | config} for ConnectClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

You do not have sufficient permissions to perform this action.

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

Operation cannot be performed at this time as there is a conflict with another operation or + * contact state.

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

Request processing failed because of an error or failure with the service.

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

One or more of the specified parameters are not valid.

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

The request is not valid.

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

The throttling limit has been exceeded.

+ * + * @throws {@link ConnectServiceException} + *

Base exception class for all service exceptions from Connect service.

+ * + * @public + */ +export class UpdateParticipantAuthenticationCommand extends $Command + .classBuilder< + UpdateParticipantAuthenticationCommandInput, + UpdateParticipantAuthenticationCommandOutput, + ConnectClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: ConnectClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("AmazonConnectService", "UpdateParticipantAuthentication", {}) + .n("ConnectClient", "UpdateParticipantAuthenticationCommand") + .f(UpdateParticipantAuthenticationRequestFilterSensitiveLog, void 0) + .ser(se_UpdateParticipantAuthenticationCommand) + .de(de_UpdateParticipantAuthenticationCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: UpdateParticipantAuthenticationRequest; + output: {}; + }; + sdk: { + input: UpdateParticipantAuthenticationCommandInput; + output: UpdateParticipantAuthenticationCommandOutput; + }; + }; +} diff --git a/clients/client-connect/src/commands/UpdateSecurityProfileCommand.ts b/clients/client-connect/src/commands/UpdateSecurityProfileCommand.ts index 764c89427a9c4..1044810eff2d2 100644 --- a/clients/client-connect/src/commands/UpdateSecurityProfileCommand.ts +++ b/clients/client-connect/src/commands/UpdateSecurityProfileCommand.ts @@ -6,7 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient"; import { commonParams } from "../endpoint/EndpointParameters"; -import { UpdateSecurityProfileRequest } from "../models/models_2"; +import { UpdateSecurityProfileRequest } from "../models/models_3"; import { de_UpdateSecurityProfileCommand, se_UpdateSecurityProfileCommand } from "../protocols/Aws_restJson1"; /** diff --git a/clients/client-connect/src/commands/UpdateTaskTemplateCommand.ts b/clients/client-connect/src/commands/UpdateTaskTemplateCommand.ts index 13199fc8295fc..0a72d401251b4 100644 --- a/clients/client-connect/src/commands/UpdateTaskTemplateCommand.ts +++ b/clients/client-connect/src/commands/UpdateTaskTemplateCommand.ts @@ -6,8 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient"; import { commonParams } from "../endpoint/EndpointParameters"; -import { UpdateTaskTemplateRequest } from "../models/models_2"; -import { UpdateTaskTemplateResponse } from "../models/models_3"; +import { UpdateTaskTemplateRequest, UpdateTaskTemplateResponse } from "../models/models_3"; import { de_UpdateTaskTemplateCommand, se_UpdateTaskTemplateCommand } from "../protocols/Aws_restJson1"; /** diff --git a/clients/client-connect/src/commands/index.ts b/clients/client-connect/src/commands/index.ts index eaf942eae2343..9380f4890ccd3 100644 --- a/clients/client-connect/src/commands/index.ts +++ b/clients/client-connect/src/commands/index.ts @@ -246,6 +246,7 @@ export * from "./UpdateHoursOfOperationCommand"; export * from "./UpdateHoursOfOperationOverrideCommand"; export * from "./UpdateInstanceAttributeCommand"; export * from "./UpdateInstanceStorageConfigCommand"; +export * from "./UpdateParticipantAuthenticationCommand"; export * from "./UpdateParticipantRoleConfigCommand"; export * from "./UpdatePhoneNumberCommand"; export * from "./UpdatePhoneNumberMetadataCommand"; diff --git a/clients/client-connect/src/models/models_0.ts b/clients/client-connect/src/models/models_0.ts index fbe7cdbd5d2dc..fd56433acc6bb 100644 --- a/clients/client-connect/src/models/models_0.ts +++ b/clients/client-connect/src/models/models_0.ts @@ -4183,6 +4183,7 @@ export const IntegrationType = { APPLICATION: "APPLICATION", CALL_TRANSFER_CONNECTOR: "CALL_TRANSFER_CONNECTOR", CASES_DOMAIN: "CASES_DOMAIN", + COGNITO_USER_POOL: "COGNITO_USER_POOL", EVENT: "EVENT", FILE_SCANNER: "FILE_SCANNER", PINPOINT_APP: "PINPOINT_APP", diff --git a/clients/client-connect/src/models/models_1.ts b/clients/client-connect/src/models/models_1.ts index 98537610a8284..134b1a6dd4b0c 100644 --- a/clients/client-connect/src/models/models_1.ts +++ b/clients/client-connect/src/models/models_1.ts @@ -1722,6 +1722,7 @@ export const InstanceAttributeType = { ENHANCED_CONTACT_MONITORING: "ENHANCED_CONTACT_MONITORING", HIGH_VOLUME_OUTBOUND: "HIGH_VOLUME_OUTBOUND", INBOUND_CALLS: "INBOUND_CALLS", + MULTI_PARTY_CHAT_CONFERENCE: "MULTI_PARTY_CHAT_CONFERENCE", MULTI_PARTY_CONFERENCE: "MULTI_PARTY_CONFERENCE", OUTBOUND_CALLS: "OUTBOUND_CALLS", USE_CUSTOM_TTS_VOICES: "USE_CUSTOM_TTS_VOICES", diff --git a/clients/client-connect/src/models/models_2.ts b/clients/client-connect/src/models/models_2.ts index f3fa67baa2bc8..14c1fe8c8cc39 100644 --- a/clients/client-connect/src/models/models_2.ts +++ b/clients/client-connect/src/models/models_2.ts @@ -37,9 +37,6 @@ import { StringComparisonType, StringCondition, TagCondition, - TaskTemplateConstraints, - TaskTemplateDefaults, - TaskTemplateField, TaskTemplateStatus, UseCaseType, UserPhoneConfig, @@ -3236,7 +3233,7 @@ export interface DateCondition { /** *

An object to specify the hours of operation override date condition - * comparisonType.

+ * comparisonType.

* @public */ ComparisonType?: DateComparisonType | undefined; @@ -5074,6 +5071,7 @@ export interface VoiceRecordingConfiguration { /** *

Identifies which IVR track is being recorded.

+ *

One and only one of the track configurations should be presented in the request.

* @public */ IvrRecordingTrack?: IvrRecordingTrack | undefined; @@ -6912,6 +6910,52 @@ export interface UpdateInstanceStorageConfigRequest { StorageConfig: InstanceStorageConfig | undefined; } +/** + * @public + */ +export interface UpdateParticipantAuthenticationRequest { + /** + *

The state query parameter that was provided by Cognito in the + * redirectUri. This will also match the state parameter provided in the + * AuthenticationUrl from the GetAuthenticationUrl + * response.

+ * @public + */ + State: string | undefined; + + /** + *

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

+ * @public + */ + InstanceId: string | undefined; + + /** + *

The code query parameter provided by Cognito in the + * redirectUri.

+ * @public + */ + Code?: string | undefined; + + /** + *

The error query parameter provided by Cognito in the + * redirectUri.

+ * @public + */ + Error?: string | undefined; + + /** + *

The error_description parameter provided by Cognito in the + * redirectUri.

+ * @public + */ + ErrorDescription?: string | undefined; +} + +/** + * @public + */ +export interface UpdateParticipantAuthenticationResponse {} + /** * @public * @enum @@ -7646,135 +7690,6 @@ export interface UpdateRuleRequest { PublishStatus: RulePublishStatus | undefined; } -/** - * @public - */ -export interface UpdateSecurityProfileRequest { - /** - *

The description of the security profile.

- * @public - */ - Description?: string | undefined; - - /** - *

The permissions granted to a security profile. For a list of valid permissions, see List of security - * profile permissions.

- * @public - */ - Permissions?: string[] | undefined; - - /** - *

The identifier for the security profle.

- * @public - */ - SecurityProfileId: string | undefined; - - /** - *

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

- * @public - */ - InstanceId: string | undefined; - - /** - *

The list of tags that a security profile uses to restrict access to resources in Amazon Connect.

- * @public - */ - AllowedAccessControlTags?: Record | undefined; - - /** - *

The list of resources that a security profile applies tag restrictions to in Amazon Connect.

- * @public - */ - TagRestrictedResources?: string[] | undefined; - - /** - *

A list of the third-party application's metadata.

- * @public - */ - Applications?: Application[] | undefined; - - /** - *

The list of resources that a security profile applies hierarchy restrictions to in Amazon Connect. Following are acceptable ResourceNames: User.

- * @public - */ - HierarchyRestrictedResources?: string[] | undefined; - - /** - *

The identifier of the hierarchy group that a security profile uses to restrict access to - * resources in Amazon Connect.

- * @public - */ - AllowedAccessControlHierarchyGroupId?: string | undefined; -} - -/** - * @public - */ -export interface UpdateTaskTemplateRequest { - /** - *

A unique identifier for the task template.

- * @public - */ - TaskTemplateId: string | undefined; - - /** - *

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

- * @public - */ - InstanceId: string | undefined; - - /** - *

The name of the task template.

- * @public - */ - Name?: string | undefined; - - /** - *

The description of the task template.

- * @public - */ - Description?: string | undefined; - - /** - *

The identifier of the flow that runs by default when a task is created by referencing this template.

- * @public - */ - ContactFlowId?: string | undefined; - - /** - *

The ContactFlowId for the flow that will be run if this template is used to create a - * self-assigned task.

- * @public - */ - SelfAssignFlowId?: string | undefined; - - /** - *

Constraints that are applicable to the fields listed.

- * @public - */ - Constraints?: TaskTemplateConstraints | undefined; - - /** - *

The default values for fields when a task is created by referencing this template.

- * @public - */ - Defaults?: TaskTemplateDefaults | undefined; - - /** - *

Marks a template as ACTIVE or INACTIVE for a task to refer to it. - * Tasks can only be created from ACTIVE templates. - * If a template is marked as INACTIVE, then a task that refers to this template cannot be created.

- * @public - */ - Status?: TaskTemplateStatus | undefined; - - /** - *

Fields that are part of the template.

- * @public - */ - Fields?: TaskTemplateField[] | undefined; -} - /** * @internal */ @@ -8093,3 +8008,15 @@ export const UpdateEmailAddressMetadataRequestFilterSensitiveLog = (obj: UpdateE ...(obj.Description && { Description: SENSITIVE_STRING }), ...(obj.DisplayName && { DisplayName: SENSITIVE_STRING }), }); + +/** + * @internal + */ +export const UpdateParticipantAuthenticationRequestFilterSensitiveLog = ( + obj: UpdateParticipantAuthenticationRequest +): any => ({ + ...obj, + ...(obj.Code && { Code: SENSITIVE_STRING }), + ...(obj.Error && { Error: SENSITIVE_STRING }), + ...(obj.ErrorDescription && { ErrorDescription: SENSITIVE_STRING }), +}); diff --git a/clients/client-connect/src/models/models_3.ts b/clients/client-connect/src/models/models_3.ts index b4c352d788a61..7042351f9e7ce 100644 --- a/clients/client-connect/src/models/models_3.ts +++ b/clients/client-connect/src/models/models_3.ts @@ -6,6 +6,7 @@ import { AgentConfig, AgentInfo, AgentStatusSearchFilter, + Application, Campaign, Channel, ContactFlowStatus, @@ -84,6 +85,135 @@ import { UserSearchFilter, } from "./models_2"; +/** + * @public + */ +export interface UpdateSecurityProfileRequest { + /** + *

The description of the security profile.

+ * @public + */ + Description?: string | undefined; + + /** + *

The permissions granted to a security profile. For a list of valid permissions, see List of security + * profile permissions.

+ * @public + */ + Permissions?: string[] | undefined; + + /** + *

The identifier for the security profle.

+ * @public + */ + SecurityProfileId: string | undefined; + + /** + *

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

+ * @public + */ + InstanceId: string | undefined; + + /** + *

The list of tags that a security profile uses to restrict access to resources in Amazon Connect.

+ * @public + */ + AllowedAccessControlTags?: Record | undefined; + + /** + *

The list of resources that a security profile applies tag restrictions to in Amazon Connect.

+ * @public + */ + TagRestrictedResources?: string[] | undefined; + + /** + *

A list of the third-party application's metadata.

+ * @public + */ + Applications?: Application[] | undefined; + + /** + *

The list of resources that a security profile applies hierarchy restrictions to in Amazon Connect. Following are acceptable ResourceNames: User.

+ * @public + */ + HierarchyRestrictedResources?: string[] | undefined; + + /** + *

The identifier of the hierarchy group that a security profile uses to restrict access to + * resources in Amazon Connect.

+ * @public + */ + AllowedAccessControlHierarchyGroupId?: string | undefined; +} + +/** + * @public + */ +export interface UpdateTaskTemplateRequest { + /** + *

A unique identifier for the task template.

+ * @public + */ + TaskTemplateId: string | undefined; + + /** + *

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

+ * @public + */ + InstanceId: string | undefined; + + /** + *

The name of the task template.

+ * @public + */ + Name?: string | undefined; + + /** + *

The description of the task template.

+ * @public + */ + Description?: string | undefined; + + /** + *

The identifier of the flow that runs by default when a task is created by referencing this template.

+ * @public + */ + ContactFlowId?: string | undefined; + + /** + *

The ContactFlowId for the flow that will be run if this template is used to create a + * self-assigned task.

+ * @public + */ + SelfAssignFlowId?: string | undefined; + + /** + *

Constraints that are applicable to the fields listed.

+ * @public + */ + Constraints?: TaskTemplateConstraints | undefined; + + /** + *

The default values for fields when a task is created by referencing this template.

+ * @public + */ + Defaults?: TaskTemplateDefaults | undefined; + + /** + *

Marks a template as ACTIVE or INACTIVE for a task to refer to it. + * Tasks can only be created from ACTIVE templates. + * If a template is marked as INACTIVE, then a task that refers to this template cannot be created.

+ * @public + */ + Status?: TaskTemplateStatus | undefined; + + /** + *

Fields that are part of the template.

+ * @public + */ + Fields?: TaskTemplateField[] | undefined; +} + /** * @public */ @@ -1438,6 +1568,13 @@ export interface StartChatContactRequest { * @public */ SegmentAttributes?: Record | undefined; + + /** + *

The customer's identification number. For example, the CustomerId may be a + * customer number from your CRM.

+ * @public + */ + CustomerId?: string | undefined; } /** @@ -2891,6 +3028,15 @@ export interface Contact { */ WisdomInfo?: WisdomInfo | undefined; + /** + *

The customer's identification number. For example, the CustomerId may be a + * customer number from your CRM. You can create a Lambda function to pull the unique customer ID of + * the caller from your CRM system. If you enable Amazon Connect Voice ID capability, this + * attribute is populated with the CustomerSpeakerId of the caller.

+ * @public + */ + CustomerId?: string | undefined; + /** *

The customer or external third party participant endpoint.

* @public @@ -3048,6 +3194,14 @@ export const CreateContactRequestFilterSensitiveLog = (obj: CreateContactRequest ...(obj.Description && { Description: SENSITIVE_STRING }), }); +/** + * @internal + */ +export const StartChatContactRequestFilterSensitiveLog = (obj: StartChatContactRequest): any => ({ + ...obj, + ...(obj.CustomerId && { CustomerId: SENSITIVE_STRING }), +}); + /** * @internal */ diff --git a/clients/client-connect/src/protocols/Aws_restJson1.ts b/clients/client-connect/src/protocols/Aws_restJson1.ts index ecb37091e460b..bbe5e5aa30a85 100644 --- a/clients/client-connect/src/protocols/Aws_restJson1.ts +++ b/clients/client-connect/src/protocols/Aws_restJson1.ts @@ -724,6 +724,10 @@ import { UpdateInstanceStorageConfigCommandInput, UpdateInstanceStorageConfigCommandOutput, } from "../commands/UpdateInstanceStorageConfigCommand"; +import { + UpdateParticipantAuthenticationCommandInput, + UpdateParticipantAuthenticationCommandOutput, +} from "../commands/UpdateParticipantAuthenticationCommand"; import { UpdateParticipantRoleConfigCommandInput, UpdateParticipantRoleConfigCommandOutput, @@ -5720,6 +5724,7 @@ export const se_StartChatContactCommand = async ( ChatDurationInMinutes: [], ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], ContactFlowId: [], + CustomerId: [], InitialMessage: (_) => _json(_), InstanceId: [], ParticipantDetails: (_) => _json(_), @@ -6737,6 +6742,32 @@ export const se_UpdateInstanceStorageConfigCommand = async ( return b.build(); }; +/** + * serializeAws_restJson1UpdateParticipantAuthenticationCommand + */ +export const se_UpdateParticipantAuthenticationCommand = async ( + input: UpdateParticipantAuthenticationCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = { + "content-type": "application/json", + }; + b.bp("/contact/update-participant-authentication"); + let body: any; + body = JSON.stringify( + take(input, { + Code: [], + Error: [], + ErrorDescription: [], + InstanceId: [], + State: [], + }) + ); + b.m("POST").h(headers).b(body); + return b.build(); +}; + /** * serializeAws_restJson1UpdateParticipantRoleConfigCommand */ @@ -12590,6 +12621,23 @@ export const de_UpdateInstanceStorageConfigCommand = async ( return contents; }; +/** + * deserializeAws_restJson1UpdateParticipantAuthenticationCommand + */ +export const de_UpdateParticipantAuthenticationCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; + /** * deserializeAws_restJson1UpdateParticipantRoleConfigCommand */ @@ -15244,6 +15292,7 @@ const de_Contact = (output: any, context: __SerdeContext): Contact => { ContactAssociationId: __expectString, Customer: _json, CustomerEndpoint: _json, + CustomerId: __expectString, CustomerVoiceActivity: (_: any) => de_CustomerVoiceActivity(_, context), Description: __expectString, DisconnectDetails: _json, diff --git a/codegen/sdk-codegen/aws-models/connect.json b/codegen/sdk-codegen/aws-models/connect.json index 55bbef4687a30..1998ec67043b1 100644 --- a/codegen/sdk-codegen/aws-models/connect.json +++ b/codegen/sdk-codegen/aws-models/connect.json @@ -1630,6 +1630,9 @@ { "target": "com.amazonaws.connect#UpdateInstanceStorageConfig" }, + { + "target": "com.amazonaws.connect#UpdateParticipantAuthentication" + }, { "target": "com.amazonaws.connect#UpdateParticipantRoleConfig" }, @@ -4224,6 +4227,28 @@ "smithy.api#default": 0 } }, + "com.amazonaws.connect#AuthenticationError": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2048 + }, + "smithy.api#pattern": "^[\\x20-\\x21\\x23-\\x5B\\x5D-\\x7E]*$", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.connect#AuthenticationErrorDescription": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2048 + }, + "smithy.api#pattern": "^[\\x20-\\x21\\x23-\\x5B\\x5D-\\x7E]*$", + "smithy.api#sensitive": {} + } + }, "com.amazonaws.connect#AuthenticationProfile": { "type": "structure", "members": { @@ -4383,6 +4408,16 @@ "target": "com.amazonaws.connect#AuthenticationProfileSummary" } }, + "com.amazonaws.connect#AuthorizationCode": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2048 + }, + "smithy.api#sensitive": {} + } + }, "com.amazonaws.connect#AutoAccept": { "type": "boolean", "traits": { @@ -5656,6 +5691,12 @@ "smithy.api#documentation": "

Information about Amazon Connect Wisdom.

" } }, + "CustomerId": { + "target": "com.amazonaws.connect#CustomerId", + "traits": { + "smithy.api#documentation": "

The customer's identification number. For example, the CustomerId may be a\n customer number from your CRM. You can create a Lambda function to pull the unique customer ID of\n the caller from your CRM system. If you enable Amazon Connect Voice ID capability, this\n attribute is populated with the CustomerSpeakerId of the caller.

" + } + }, "CustomerEndpoint": { "target": "com.amazonaws.connect#EndpointInfo", "traits": { @@ -8640,7 +8681,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates registration for a device token and a chat contact to receive real-time push\n notifications. For more information about push notifications, see Set up push\n notifications in Amazon Connect for mobile chat in the Amazon Connect\n Administrator Guide.

", + "smithy.api#documentation": "

Creates registration for a device token and a chat contact to receive real-time push\n notifications. For more information about push notifications, see Set up push\n notifications in Amazon Connect for mobile chat in the Amazon Connect\n Administrator Guide.

", "smithy.api#http": { "method": "PUT", "uri": "/push-notification/{InstanceId}/registrations", @@ -10489,6 +10530,25 @@ "smithy.api#documentation": "

Information about the Customer on the contact.

" } }, + "com.amazonaws.connect#CustomerId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 128 + } + } + }, + "com.amazonaws.connect#CustomerIdNonEmpty": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 128 + }, + "smithy.api#sensitive": {} + } + }, "com.amazonaws.connect#CustomerProfileAttributesSerialized": { "type": "string" }, @@ -10594,7 +10654,7 @@ "ComparisonType": { "target": "com.amazonaws.connect#DateComparisonType", "traits": { - "smithy.api#documentation": "

An object to specify the hours of operation override date condition\n comparisonType.

" + "smithy.api#documentation": "

An object to specify the hours of operation override date condition\n comparisonType.

" } } }, @@ -20957,6 +21017,12 @@ "traits": { "smithy.api#enumValue": "ENHANCED_CHAT_MONITORING" } + }, + "MULTI_PARTY_CHAT_CONFERENCE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "MULTI_PARTY_CHAT_CONFERENCE" + } } } }, @@ -21439,6 +21505,12 @@ "traits": { "smithy.api#enumValue": "CALL_TRANSFER_CONNECTOR" } + }, + "COGNITO_USER_POOL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "COGNITO_USER_POOL" + } } } }, @@ -22331,7 +22403,7 @@ } ], "traits": { - "smithy.api#documentation": "

This API is in preview release for Amazon Connect and is subject to change.

\n

For the specified version of Amazon Lex, returns a paginated list of all the Amazon Lex bots currently associated with the instance. Use this API to returns both Amazon Lex V1 and V2 bots.

", + "smithy.api#documentation": "

This API is in preview release for Amazon Connect and is subject to change.

\n

For the specified version of Amazon Lex, returns a paginated list of all the Amazon Lex bots currently associated with the instance. Use this API to return both Amazon Lex V1 and V2 bots.

", "smithy.api#http": { "method": "GET", "uri": "/instance/{InstanceId}/bots", @@ -36923,6 +36995,12 @@ "traits": { "smithy.api#documentation": "

A set of system defined key-value pairs stored on individual contact segments using an\n attribute map. The attributes are standard Amazon Connect attributes. They can be accessed in\n flows.

\n

Attribute keys can include only alphanumeric, -, and _.

\n

This field can be used to show channel subtype, such as connect:Guide.

\n \n

The types application/vnd.amazonaws.connect.message.interactive and\n application/vnd.amazonaws.connect.message.interactive.response must be present in\n the SupportedMessagingContentTypes field of this API in order to set\n SegmentAttributes as { \"connect:Subtype\": {\"valueString\" : \"connect:Guide\"\n }}.

\n
" } + }, + "CustomerId": { + "target": "com.amazonaws.connect#CustomerIdNonEmpty", + "traits": { + "smithy.api#documentation": "

The customer's identification number. For example, the CustomerId may be a\n customer number from your CRM.

" + } } }, "traits": { @@ -41814,6 +41892,90 @@ "smithy.api#input": {} } }, + "com.amazonaws.connect#UpdateParticipantAuthentication": { + "type": "operation", + "input": { + "target": "com.amazonaws.connect#UpdateParticipantAuthenticationRequest" + }, + "output": { + "target": "com.amazonaws.connect#UpdateParticipantAuthenticationResponse" + }, + "errors": [ + { + "target": "com.amazonaws.connect#AccessDeniedException" + }, + { + "target": "com.amazonaws.connect#ConflictException" + }, + { + "target": "com.amazonaws.connect#InternalServiceException" + }, + { + "target": "com.amazonaws.connect#InvalidParameterException" + }, + { + "target": "com.amazonaws.connect#InvalidRequestException" + }, + { + "target": "com.amazonaws.connect#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "

Instructs Amazon Connect to resume the authentication process. The subsequent actions\n depend on the request body contents:

\n
    \n
  • \n

    \n If a code is provided: Connect retrieves the identity\n information from Amazon Cognito and imports it into Connect Customer Profiles.

    \n
  • \n
  • \n

    \n If an error is provided: The error branch of the\n Authenticate Customer block is executed.

    \n
  • \n
\n \n

The API returns a success response to acknowledge the request. However, the interaction and\n exchange of identity information occur asynchronously after the response is returned.

\n
", + "smithy.api#http": { + "method": "POST", + "uri": "/contact/update-participant-authentication", + "code": 200 + } + } + }, + "com.amazonaws.connect#UpdateParticipantAuthenticationRequest": { + "type": "structure", + "members": { + "State": { + "target": "com.amazonaws.connect#ParticipantToken", + "traits": { + "smithy.api#documentation": "

The state query parameter that was provided by Cognito in the\n redirectUri. This will also match the state parameter provided in the\n AuthenticationUrl from the GetAuthenticationUrl\n response.

", + "smithy.api#required": {} + } + }, + "InstanceId": { + "target": "com.amazonaws.connect#InstanceId", + "traits": { + "smithy.api#documentation": "

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

", + "smithy.api#required": {} + } + }, + "Code": { + "target": "com.amazonaws.connect#AuthorizationCode", + "traits": { + "smithy.api#documentation": "

The code query parameter provided by Cognito in the\n redirectUri.

" + } + }, + "Error": { + "target": "com.amazonaws.connect#AuthenticationError", + "traits": { + "smithy.api#documentation": "

The error query parameter provided by Cognito in the\n redirectUri.

" + } + }, + "ErrorDescription": { + "target": "com.amazonaws.connect#AuthenticationErrorDescription", + "traits": { + "smithy.api#documentation": "

The error_description parameter provided by Cognito in the\n redirectUri.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.connect#UpdateParticipantAuthenticationResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.connect#UpdateParticipantRoleConfig": { "type": "operation", "input": { @@ -45890,7 +46052,7 @@ "IvrRecordingTrack": { "target": "com.amazonaws.connect#IvrRecordingTrack", "traits": { - "smithy.api#documentation": "

Identifies which IVR track is being recorded.

" + "smithy.api#documentation": "

Identifies which IVR track is being recorded.

\n

One and only one of the track configurations should be presented in the request.

" } } },