Skip to content

Commit

Permalink
feat(client-connect): Enables access to ValueMap and ValueInteger typ…
Browse files Browse the repository at this point in the history
…es for SegmentAttributes and fixes deserialization bug for DescribeContactFlow in AmazonConnect Public API
  • Loading branch information
awstools committed Nov 26, 2024
1 parent a370f24 commit b8975e6
Show file tree
Hide file tree
Showing 33 changed files with 2,382 additions and 2,101 deletions.
19 changes: 13 additions & 6 deletions clients/client-connect/src/commands/CreateContactCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
import { commonParams } from "../endpoint/EndpointParameters";
import {
CreateContactRequest,
CreateContactRequestFilterSensitiveLog,
CreateContactResponse,
} from "../models/models_0";
import { CreateContactResponse } from "../models/models_0";
import { CreateContactRequest, CreateContactRequestFilterSensitiveLog } from "../models/models_2";
import { de_CreateContactCommand, se_CreateContactCommand } from "../protocols/Aws_restJson1";

/**
Expand All @@ -32,7 +29,7 @@ export interface CreateContactCommandInput extends CreateContactRequest {}
export interface CreateContactCommandOutput extends CreateContactResponse, __MetadataBearer {}

/**
* <p></p>
* <p>Creates a new contact.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down Expand Up @@ -67,6 +64,16 @@ export interface CreateContactCommandOutput extends CreateContactResponse, __Met
* SegmentAttributes: { // SegmentAttributes
* "<keys>": { // SegmentAttributeValue
* ValueString: "STRING_VALUE",
* ValueMap: { // SegmentAttributeValueMap
* "<keys>": {
* ValueString: "STRING_VALUE",
* ValueMap: {
* "<keys>": "<SegmentAttributeValue>",
* },
* ValueInteger: Number("int"),
* },
* },
* ValueInteger: Number("int"),
* },
* },
* };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ export interface CreateEmailAddressCommandInput extends CreateEmailAddressReques
export interface CreateEmailAddressCommandOutput extends CreateEmailAddressResponse, __MetadataBearer {}

/**
* <p></p>
* <p>Create new email address in the specified Amazon Connect instance. For more information
* about email addresses, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/create-email-address1.html">Create email addresses</a> in the
* Amazon Connect Administrator Guide.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
import { commonParams } from "../endpoint/EndpointParameters";
import { CreateEvaluationFormResponse } from "../models/models_0";
import { CreateEvaluationFormRequest } from "../models/models_3";
import { CreateEvaluationFormRequest } from "../models/models_2";
import { de_CreateEvaluationFormCommand, se_CreateEvaluationFormCommand } from "../protocols/Aws_restJson1";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface DeleteEmailAddressCommandInput extends DeleteEmailAddressReques
export interface DeleteEmailAddressCommandOutput extends DeleteEmailAddressResponse, __MetadataBearer {}

/**
* <p></p>
* <p>Deletes email address from the specified Amazon Connect instance.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteViewVersionRequest } from "../models/models_0";
import { DeleteViewVersionResponse } from "../models/models_1";
import { DeleteViewVersionRequest, DeleteViewVersionResponse } from "../models/models_0";
import { de_DeleteViewVersionCommand, se_DeleteViewVersionCommand } from "../protocols/Aws_restJson1";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteVocabularyRequest, DeleteVocabularyResponse } from "../models/models_1";
import { DeleteVocabularyRequest } from "../models/models_0";
import { DeleteVocabularyResponse } from "../models/models_1";
import { de_DeleteVocabularyCommand, se_DeleteVocabularyCommand } from "../protocols/Aws_restJson1";

/**
Expand Down
10 changes: 10 additions & 0 deletions clients/client-connect/src/commands/DescribeContactCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,16 @@ export interface DescribeContactCommandOutput extends DescribeContactResponse, _
* // SegmentAttributes: { // SegmentAttributes
* // "<keys>": { // SegmentAttributeValue
* // ValueString: "STRING_VALUE",
* // ValueMap: { // SegmentAttributeValueMap
* // "<keys>": {
* // ValueString: "STRING_VALUE",
* // ValueMap: {
* // "<keys>": "<SegmentAttributeValue>",
* // },
* // ValueInteger: Number("int"),
* // },
* // },
* // ValueInteger: Number("int"),
* // },
* // },
* // },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface DescribeContactFlowCommandOutput extends DescribeContactFlowRes
* <p>You can also create and update flows using the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/flow-language.html">Amazon Connect
* Flow language</a>.</p>
* <p>Use the <code>$SAVED</code> alias in the request to describe the <code>SAVED</code> content
* of a Flow. For example, <code>arn:aws:.../contact-flow/\{id\}:$SAVED</code>. Once a contact flow is
* of a Flow. For example, <code>arn:aws:.../contact-flow/\{id\}:$SAVED</code>. After a flow is
* published, <code>$SAVED</code> needs to be supplied to view saved content that has not been
* published.</p>
* <p>In the response, <b>Status</b> indicates the flow status as either
Expand Down Expand Up @@ -65,7 +65,6 @@ export interface DescribeContactFlowCommandOutput extends DescribeContactFlowRes
* // Tags: { // TagMap
* // "<keys>": "STRING_VALUE",
* // },
* // IsDefault: true || false,
* // FlowContentSha256: "STRING_VALUE",
* // Version: Number("long"),
* // VersionDescription: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface DescribeContactFlowModuleCommandOutput extends DescribeContactF
/**
* <p>Describes the specified flow module.</p>
* <p>Use the <code>$SAVED</code> alias in the request to describe the <code>SAVED</code> content
* of a Flow. For example, <code>arn:aws:.../contact-flow/\{id\}:$SAVED</code>. Once a contact flow is
* of a Flow. For example, <code>arn:aws:.../contact-flow/\{id\}:$SAVED</code>. After a flow is
* published, <code>$SAVED</code> needs to be supplied to view saved content that has not been
* published.</p>
* @example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface DescribeEmailAddressCommandInput extends DescribeEmailAddressRe
export interface DescribeEmailAddressCommandOutput extends DescribeEmailAddressResponse, __MetadataBearer {}

/**
* <p></p>
* <p>Describe email address form the specified Amazon Connect instance.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export interface ListAssociatedContactsCommandInput extends ListAssociatedContac
export interface ListAssociatedContactsCommandOutput extends ListAssociatedContactsResponse, __MetadataBearer {}

/**
* <p></p>
* <p>Provides information about contact tree, a list of associated contacts with a unique
* identifier.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export interface ListRealtimeContactAnalysisSegmentsV2CommandOutput
* @throws {@link OutputTypeNotFoundException} (client fault)
* <p>Thrown for analyzed content when requested OutputType was not enabled for a given contact.
* For example, if an OutputType.Raw was requested for a contact that had `RedactedOnly` Redaction
* policy set in Contact flow.</p>
* policy set in the flow.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource was not found.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ export interface SearchContactFlowsCommandInput extends SearchContactFlowsReques
export interface SearchContactFlowsCommandOutput extends SearchContactFlowsResponse, __MetadataBearer {}

/**
* <p>Searches the contact flows in an Amazon Connect instance, with optional
* filtering.</p>
* <p>Searches the flows in an Amazon Connect instance, with optional filtering.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down Expand Up @@ -108,7 +107,6 @@ export interface SearchContactFlowsCommandOutput extends SearchContactFlowsRespo
* // Tags: { // TagMap
* // "<keys>": "STRING_VALUE",
* // },
* // IsDefault: true || false,
* // FlowContentSha256: "STRING_VALUE",
* // Version: Number("long"),
* // VersionDescription: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export interface SearchEmailAddressesCommandInput extends SearchEmailAddressesRe
export interface SearchEmailAddressesCommandOutput extends SearchEmailAddressesResponse, __MetadataBearer {}

/**
* <p></p>
* <p>Searches email address in an instance, with optional filtering.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ export interface SendOutboundEmailCommandInput extends SendOutboundEmailRequest
export interface SendOutboundEmailCommandOutput extends SendOutboundEmailResponse, __MetadataBearer {}

/**
* <p></p>
* <p>Send outbound email for outbound campaigns. For more information about outbound campaigns,
* see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/enable-outbound-campaigns.html">Set up Amazon Connect outbound campaigns</a>.</p>
* <note>
* <p>Only the Amazon Connect outbound campaigns service principal is allowed to assume a
* role in your account and call this API.</p>
* </note>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ export interface StartAttachedFileUploadCommandOutput extends StartAttachedFileU
/**
* <p>Provides a pre-signed Amazon S3 URL in response for uploading your content.</p>
* <important>
* <p>You may only use this API to upload attachments to an <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-cases_CreateCase.html">Amazon Connect Case</a>.</p>
* <p>You may only use this API to upload attachments to an <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-cases_CreateCase.html">Amazon Connect Case</a> or
* <a href="https://docs.aws.amazon.com/connect/latest/adminguide/setup-email-channel.html">Amazon Connect
* Email</a>. </p>
* </important>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
13 changes: 12 additions & 1 deletion clients/client-connect/src/commands/StartChatContactCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
import { commonParams } from "../endpoint/EndpointParameters";
import { StartChatContactRequest, StartChatContactResponse } from "../models/models_2";
import { StartChatContactResponse } from "../models/models_2";
import { StartChatContactRequest } from "../models/models_3";
import { de_StartChatContactCommand, se_StartChatContactCommand } from "../protocols/Aws_restJson1";

/**
Expand Down Expand Up @@ -93,6 +94,16 @@ export interface StartChatContactCommandOutput extends StartChatContactResponse,
* SegmentAttributes: { // SegmentAttributes
* "<keys>": { // SegmentAttributeValue
* ValueString: "STRING_VALUE",
* ValueMap: { // SegmentAttributeValueMap
* "<keys>": {
* ValueString: "STRING_VALUE",
* ValueMap: {
* "<keys>": "<SegmentAttributeValue>",
* },
* ValueInteger: Number("int"),
* },
* },
* ValueInteger: Number("int"),
* },
* },
* };
Expand Down
20 changes: 14 additions & 6 deletions clients/client-connect/src/commands/StartEmailContactCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
import { commonParams } from "../endpoint/EndpointParameters";
import {
StartEmailContactRequest,
StartEmailContactRequestFilterSensitiveLog,
StartEmailContactResponse,
} from "../models/models_2";
import { StartEmailContactResponse } from "../models/models_2";
import { StartEmailContactRequest, StartEmailContactRequestFilterSensitiveLog } from "../models/models_3";
import { de_StartEmailContactCommand, se_StartEmailContactCommand } from "../protocols/Aws_restJson1";

/**
Expand All @@ -32,7 +29,8 @@ export interface StartEmailContactCommandInput extends StartEmailContactRequest
export interface StartEmailContactCommandOutput extends StartEmailContactResponse, __MetadataBearer {}

/**
* <p></p>
* <p>Creates an inbound email contact and initiates a flow to start the email contact for the
* customer. Response of this API provides the ContactId of the email contact created.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down Expand Up @@ -96,6 +94,16 @@ export interface StartEmailContactCommandOutput extends StartEmailContactRespons
* SegmentAttributes: { // SegmentAttributes
* "<keys>": { // SegmentAttributeValue
* ValueString: "STRING_VALUE",
* ValueMap: { // SegmentAttributeValueMap
* "<keys>": {
* ValueString: "STRING_VALUE",
* ValueMap: {
* "<keys>": "<SegmentAttributeValue>",
* },
* ValueInteger: Number("int"),
* },
* },
* ValueInteger: Number("int"),
* },
* },
* ClientToken: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
import { commonParams } from "../endpoint/EndpointParameters";
import { StartOutboundChatContactRequest, StartOutboundChatContactResponse } from "../models/models_2";
import { StartOutboundChatContactResponse } from "../models/models_2";
import { StartOutboundChatContactRequest } from "../models/models_3";
import { de_StartOutboundChatContactCommand, se_StartOutboundChatContactCommand } from "../protocols/Aws_restJson1";

/**
Expand Down Expand Up @@ -72,6 +73,16 @@ export interface StartOutboundChatContactCommandOutput extends StartOutboundChat
* SegmentAttributes: { // SegmentAttributes // required
* "<keys>": { // SegmentAttributeValue
* ValueString: "STRING_VALUE",
* ValueMap: { // SegmentAttributeValueMap
* "<keys>": {
* ValueString: "STRING_VALUE",
* ValueMap: {
* "<keys>": "<SegmentAttributeValue>",
* },
* ValueInteger: Number("int"),
* },
* },
* ValueInteger: Number("int"),
* },
* },
* Attributes: { // Attributes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export interface StartOutboundEmailContactCommandInput extends StartOutboundEmai
export interface StartOutboundEmailContactCommandOutput extends StartOutboundEmailContactResponse, __MetadataBearer {}

/**
* <p></p>
* <p>Initiates a flow to send an agent reply or outbound email contact (created from the
* CreateContact API) to a customer.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
17 changes: 12 additions & 5 deletions clients/client-connect/src/commands/StartTaskContactCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
import { commonParams } from "../endpoint/EndpointParameters";
import {
StartTaskContactRequest,
StartTaskContactRequestFilterSensitiveLog,
StartTaskContactResponse,
} from "../models/models_2";
import { StartTaskContactResponse } from "../models/models_2";
import { StartTaskContactRequest, StartTaskContactRequestFilterSensitiveLog } from "../models/models_3";
import { de_StartTaskContactCommand, se_StartTaskContactCommand } from "../protocols/Aws_restJson1";

/**
Expand Down Expand Up @@ -115,6 +112,16 @@ export interface StartTaskContactCommandOutput extends StartTaskContactResponse,
* SegmentAttributes: { // SegmentAttributes
* "<keys>": { // SegmentAttributeValue
* ValueString: "STRING_VALUE",
* ValueMap: { // SegmentAttributeValueMap
* "<keys>": {
* ValueString: "STRING_VALUE",
* ValueMap: {
* "<keys>": "<SegmentAttributeValue>",
* },
* ValueInteger: Number("int"),
* },
* },
* ValueInteger: Number("int"),
* },
* },
* };
Expand Down
4 changes: 2 additions & 2 deletions clients/client-connect/src/commands/TagResourceCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export interface TagResourceCommandOutput extends __MetadataBearer {}
/**
* <p>Adds the specified tags to the specified resource.</p>
* <p>Some of the supported resource types are agents, routing profiles, queues, quick connects,
* contact flows, agent statuses, hours of operation, phone numbers, security profiles, and task
* templates. For a complete list, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/tagging.html">Tagging resources in Amazon Connect</a>.</p>
* flows, agent statuses, hours of operation, phone numbers, security profiles, and task templates.
* For a complete list, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/tagging.html">Tagging resources in Amazon Connect</a>.</p>
* <p>For sample policies that use tags, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/security_iam_id-based-policy-examples.html">Amazon Connect
* Identity-Based Policy Examples</a> in the <i>Amazon Connect Administrator
* Guide</i>.</p>
Expand Down
17 changes: 12 additions & 5 deletions clients/client-connect/src/commands/UpdateContactCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
import { commonParams } from "../endpoint/EndpointParameters";
import {
UpdateContactRequest,
UpdateContactRequestFilterSensitiveLog,
UpdateContactResponse,
} from "../models/models_2";
import { UpdateContactResponse } from "../models/models_2";
import { UpdateContactRequest, UpdateContactRequestFilterSensitiveLog } from "../models/models_3";
import { de_UpdateContactCommand, se_UpdateContactCommand } from "../protocols/Aws_restJson1";

/**
Expand Down Expand Up @@ -62,6 +59,16 @@ export interface UpdateContactCommandOutput extends UpdateContactResponse, __Met
* SegmentAttributes: { // SegmentAttributes
* "<keys>": { // SegmentAttributeValue
* ValueString: "STRING_VALUE",
* ValueMap: { // SegmentAttributeValueMap
* "<keys>": {
* ValueString: "STRING_VALUE",
* ValueMap: {
* "<keys>": "<SegmentAttributeValue>",
* },
* ValueInteger: Number("int"),
* },
* },
* ValueInteger: Number("int"),
* },
* },
* };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface UpdateContactFlowContentCommandOutput extends UpdateContactFlow
* <p>You can also create and update flows using the <a href="https://docs.aws.amazon.com/connect/latest/APIReference/flow-language.html">Amazon Connect
* Flow language</a>.</p>
* <p>Use the <code>$SAVED</code> alias in the request to describe the <code>SAVED</code> content
* of a Flow. For example, <code>arn:aws:.../contact-flow/\{id\}:$SAVED</code>. Once a contact flow is
* of a Flow. For example, <code>arn:aws:.../contact-flow/\{id\}:$SAVED</code>. After a flow is
* published, <code>$SAVED</code> needs to be supplied to view saved content that has not been
* published.</p>
* @example
Expand Down
Loading

0 comments on commit b8975e6

Please sign in to comment.