Skip to content

Commit 226e9c6

Browse files
author
awstools
committed
feat(client-connect): Amazon Connect expands search API coverage for additional resources. Search for hierarchy groups by name, ID, tag, or other criteria (new endpoint). Search for agent statuses by name, ID, tag, or other criteria (new endpoint). Search for users by their assigned proficiencies (enhanced endpoint)
1 parent 207cd84 commit 226e9c6

20 files changed

+2046
-406
lines changed

clients/client-connect/README.md

+17-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ AWS SDK for JavaScript Connect Client for Node.js, Browser and React Native.
99
<ul>
1010
<li>
1111
<p>
12-
<a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Operations_Amazon_Connect_Service.html">Amazon Connect
13-
actions</a>
12+
<a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Operations_Amazon_Connect_Service.html">Amazon Connect actions</a>
1413
</p>
1514
</li>
1615
<li>
@@ -1610,6 +1609,14 @@ ResumeContactRecording
16101609

16111610
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/ResumeContactRecordingCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/ResumeContactRecordingCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/ResumeContactRecordingCommandOutput/)
16121611

1612+
</details>
1613+
<details>
1614+
<summary>
1615+
SearchAgentStatuses
1616+
</summary>
1617+
1618+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/SearchAgentStatusesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/SearchAgentStatusesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/SearchAgentStatusesCommandOutput/)
1619+
16131620
</details>
16141621
<details>
16151622
<summary>
@@ -1706,6 +1713,14 @@ SearchSecurityProfiles
17061713

17071714
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/SearchSecurityProfilesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/SearchSecurityProfilesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/SearchSecurityProfilesCommandOutput/)
17081715

1716+
</details>
1717+
<details>
1718+
<summary>
1719+
SearchUserHierarchyGroups
1720+
</summary>
1721+
1722+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/SearchUserHierarchyGroupsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/SearchUserHierarchyGroupsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/SearchUserHierarchyGroupsCommandOutput/)
1723+
17091724
</details>
17101725
<details>
17111726
<summary>

clients/client-connect/src/Connect.ts

+48-3
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,11 @@ import {
807807
ResumeContactRecordingCommandInput,
808808
ResumeContactRecordingCommandOutput,
809809
} from "./commands/ResumeContactRecordingCommand";
810+
import {
811+
SearchAgentStatusesCommand,
812+
SearchAgentStatusesCommandInput,
813+
SearchAgentStatusesCommandOutput,
814+
} from "./commands/SearchAgentStatusesCommand";
810815
import {
811816
SearchAvailablePhoneNumbersCommand,
812817
SearchAvailablePhoneNumbersCommandInput,
@@ -867,6 +872,11 @@ import {
867872
SearchSecurityProfilesCommandInput,
868873
SearchSecurityProfilesCommandOutput,
869874
} from "./commands/SearchSecurityProfilesCommand";
875+
import {
876+
SearchUserHierarchyGroupsCommand,
877+
SearchUserHierarchyGroupsCommandInput,
878+
SearchUserHierarchyGroupsCommandOutput,
879+
} from "./commands/SearchUserHierarchyGroupsCommand";
870880
import { SearchUsersCommand, SearchUsersCommandInput, SearchUsersCommandOutput } from "./commands/SearchUsersCommand";
871881
import {
872882
SearchVocabulariesCommand,
@@ -1363,6 +1373,7 @@ const commands = {
13631373
ReplicateInstanceCommand,
13641374
ResumeContactCommand,
13651375
ResumeContactRecordingCommand,
1376+
SearchAgentStatusesCommand,
13661377
SearchAvailablePhoneNumbersCommand,
13671378
SearchContactFlowModulesCommand,
13681379
SearchContactFlowsCommand,
@@ -1375,6 +1386,7 @@ const commands = {
13751386
SearchResourceTagsCommand,
13761387
SearchRoutingProfilesCommand,
13771388
SearchSecurityProfilesCommand,
1389+
SearchUserHierarchyGroupsCommand,
13781390
SearchUsersCommand,
13791391
SearchVocabulariesCommand,
13801392
SendChatIntegrationEventCommand,
@@ -4165,6 +4177,23 @@ export interface Connect {
41654177
cb: (err: any, data?: ResumeContactRecordingCommandOutput) => void
41664178
): void;
41674179

4180+
/**
4181+
* @see {@link SearchAgentStatusesCommand}
4182+
*/
4183+
searchAgentStatuses(
4184+
args: SearchAgentStatusesCommandInput,
4185+
options?: __HttpHandlerOptions
4186+
): Promise<SearchAgentStatusesCommandOutput>;
4187+
searchAgentStatuses(
4188+
args: SearchAgentStatusesCommandInput,
4189+
cb: (err: any, data?: SearchAgentStatusesCommandOutput) => void
4190+
): void;
4191+
searchAgentStatuses(
4192+
args: SearchAgentStatusesCommandInput,
4193+
options: __HttpHandlerOptions,
4194+
cb: (err: any, data?: SearchAgentStatusesCommandOutput) => void
4195+
): void;
4196+
41684197
/**
41694198
* @see {@link SearchAvailablePhoneNumbersCommand}
41704199
*/
@@ -4354,6 +4383,23 @@ export interface Connect {
43544383
cb: (err: any, data?: SearchSecurityProfilesCommandOutput) => void
43554384
): void;
43564385

4386+
/**
4387+
* @see {@link SearchUserHierarchyGroupsCommand}
4388+
*/
4389+
searchUserHierarchyGroups(
4390+
args: SearchUserHierarchyGroupsCommandInput,
4391+
options?: __HttpHandlerOptions
4392+
): Promise<SearchUserHierarchyGroupsCommandOutput>;
4393+
searchUserHierarchyGroups(
4394+
args: SearchUserHierarchyGroupsCommandInput,
4395+
cb: (err: any, data?: SearchUserHierarchyGroupsCommandOutput) => void
4396+
): void;
4397+
searchUserHierarchyGroups(
4398+
args: SearchUserHierarchyGroupsCommandInput,
4399+
options: __HttpHandlerOptions,
4400+
cb: (err: any, data?: SearchUserHierarchyGroupsCommandOutput) => void
4401+
): void;
4402+
43574403
/**
43584404
* @see {@link SearchUsersCommand}
43594405
*/
@@ -5455,14 +5501,13 @@ export interface Connect {
54555501
* <ul>
54565502
* <li>
54575503
* <p>
5458-
* <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Operations_Amazon_Connect_Service.html">Amazon Connect
5459-
* actions</a>
5504+
* <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Operations_Amazon_Connect_Service.html">Amazon Connect actions</a>
54605505
* </p>
54615506
* </li>
54625507
* <li>
54635508
* <p>
54645509
* <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Types_Amazon_Connect_Service.html">Amazon Connect
5465-
* data types</a>
5510+
* data types</a>
54665511
* </p>
54675512
* </li>
54685513
* </ul>

clients/client-connect/src/ConnectClient.ts

+14-3
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,10 @@ import {
517517
ResumeContactRecordingCommandInput,
518518
ResumeContactRecordingCommandOutput,
519519
} from "./commands/ResumeContactRecordingCommand";
520+
import {
521+
SearchAgentStatusesCommandInput,
522+
SearchAgentStatusesCommandOutput,
523+
} from "./commands/SearchAgentStatusesCommand";
520524
import {
521525
SearchAvailablePhoneNumbersCommandInput,
522526
SearchAvailablePhoneNumbersCommandOutput,
@@ -550,6 +554,10 @@ import {
550554
SearchSecurityProfilesCommandInput,
551555
SearchSecurityProfilesCommandOutput,
552556
} from "./commands/SearchSecurityProfilesCommand";
557+
import {
558+
SearchUserHierarchyGroupsCommandInput,
559+
SearchUserHierarchyGroupsCommandOutput,
560+
} from "./commands/SearchUserHierarchyGroupsCommand";
553561
import { SearchUsersCommandInput, SearchUsersCommandOutput } from "./commands/SearchUsersCommand";
554562
import { SearchVocabulariesCommandInput, SearchVocabulariesCommandOutput } from "./commands/SearchVocabulariesCommand";
555563
import {
@@ -947,6 +955,7 @@ export type ServiceInputTypes =
947955
| ReplicateInstanceCommandInput
948956
| ResumeContactCommandInput
949957
| ResumeContactRecordingCommandInput
958+
| SearchAgentStatusesCommandInput
950959
| SearchAvailablePhoneNumbersCommandInput
951960
| SearchContactFlowModulesCommandInput
952961
| SearchContactFlowsCommandInput
@@ -959,6 +968,7 @@ export type ServiceInputTypes =
959968
| SearchResourceTagsCommandInput
960969
| SearchRoutingProfilesCommandInput
961970
| SearchSecurityProfilesCommandInput
971+
| SearchUserHierarchyGroupsCommandInput
962972
| SearchUsersCommandInput
963973
| SearchVocabulariesCommandInput
964974
| SendChatIntegrationEventCommandInput
@@ -1205,6 +1215,7 @@ export type ServiceOutputTypes =
12051215
| ReplicateInstanceCommandOutput
12061216
| ResumeContactCommandOutput
12071217
| ResumeContactRecordingCommandOutput
1218+
| SearchAgentStatusesCommandOutput
12081219
| SearchAvailablePhoneNumbersCommandOutput
12091220
| SearchContactFlowModulesCommandOutput
12101221
| SearchContactFlowsCommandOutput
@@ -1217,6 +1228,7 @@ export type ServiceOutputTypes =
12171228
| SearchResourceTagsCommandOutput
12181229
| SearchRoutingProfilesCommandOutput
12191230
| SearchSecurityProfilesCommandOutput
1231+
| SearchUserHierarchyGroupsCommandOutput
12201232
| SearchUsersCommandOutput
12211233
| SearchVocabulariesCommandOutput
12221234
| SendChatIntegrationEventCommandOutput
@@ -1461,14 +1473,13 @@ export interface ConnectClientResolvedConfig extends ConnectClientResolvedConfig
14611473
* <ul>
14621474
* <li>
14631475
* <p>
1464-
* <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Operations_Amazon_Connect_Service.html">Amazon Connect
1465-
* actions</a>
1476+
* <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Operations_Amazon_Connect_Service.html">Amazon Connect actions</a>
14661477
* </p>
14671478
* </li>
14681479
* <li>
14691480
* <p>
14701481
* <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Types_Amazon_Connect_Service.html">Amazon Connect
1471-
* data types</a>
1482+
* data types</a>
14721483
* </p>
14731484
* </li>
14741485
* </ul>

clients/client-connect/src/auth/httpAuthSchemeProvider.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function createAwsAuthSigv4HttpAuthOption(authParameters: ConnectHttpAuthSchemeP
6060
name: "connect",
6161
region: authParameters.region,
6262
},
63-
propertiesExtractor: (config: ConnectClientConfig, context) => ({
63+
propertiesExtractor: (config: Partial<ConnectClientConfig>, context) => ({
6464
/**
6565
* @internal
6666
*/

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

+1-1
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 { DescribeContactEvaluationRequest } from "../models/models_0";
9+
import { DescribeContactEvaluationRequest } from "../models/models_1";
1010
import { DescribeContactEvaluationResponse } from "../models/models_2";
1111
import { de_DescribeContactEvaluationCommand, se_DescribeContactEvaluationCommand } from "../protocols/Aws_restJson1";
1212

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { commonParams } from "../endpoint/EndpointParameters";
99
import {
1010
ListTrafficDistributionGroupUsersRequest,
1111
ListTrafficDistributionGroupUsersResponse,
12-
} from "../models/models_1";
12+
} from "../models/models_2";
1313
import {
1414
de_ListTrafficDistributionGroupUsersCommand,
1515
se_ListTrafficDistributionGroupUsersCommand,

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

+1-1
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 { ListUseCasesRequest, ListUseCasesResponse } from "../models/models_1";
9+
import { ListUseCasesRequest, ListUseCasesResponse } from "../models/models_2";
1010
import { de_ListUseCasesCommand, se_ListUseCasesCommand } from "../protocols/Aws_restJson1";
1111

1212
/**

0 commit comments

Comments
 (0)