@aws-sdk/client-connect 3.613.0 → 3.616.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/README.md +17 -2
  2. package/dist-cjs/index.js +204 -31
  3. package/dist-es/Connect.js +4 -0
  4. package/dist-es/ConnectClient.js +5 -5
  5. package/dist-es/commands/SearchAgentStatusesCommand.js +24 -0
  6. package/dist-es/commands/SearchUserHierarchyGroupsCommand.js +24 -0
  7. package/dist-es/commands/index.js +2 -0
  8. package/dist-es/models/models_0.js +5 -18
  9. package/dist-es/models/models_1.js +18 -0
  10. package/dist-es/models/models_2.js +12 -5
  11. package/dist-es/pagination/SearchAgentStatusesPaginator.js +4 -0
  12. package/dist-es/pagination/SearchUserHierarchyGroupsPaginator.js +4 -0
  13. package/dist-es/pagination/index.js +2 -0
  14. package/dist-es/protocols/Aws_restJson1.js +113 -2
  15. package/dist-types/Connect.d.ts +16 -3
  16. package/dist-types/ConnectClient.d.ts +8 -7
  17. package/dist-types/commands/DescribeContactEvaluationCommand.d.ts +1 -1
  18. package/dist-types/commands/ListTrafficDistributionGroupUsersCommand.d.ts +1 -1
  19. package/dist-types/commands/ListUseCasesCommand.d.ts +1 -1
  20. package/dist-types/commands/SearchAgentStatusesCommand.d.ts +142 -0
  21. package/dist-types/commands/SearchUserHierarchyGroupsCommand.d.ts +181 -0
  22. package/dist-types/commands/SearchUsersCommand.d.ts +32 -4
  23. package/dist-types/commands/index.d.ts +2 -0
  24. package/dist-types/index.d.ts +2 -3
  25. package/dist-types/models/models_0.d.ts +128 -133
  26. package/dist-types/models/models_1.d.ts +128 -118
  27. package/dist-types/models/models_2.d.ts +431 -73
  28. package/dist-types/pagination/SearchAgentStatusesPaginator.d.ts +7 -0
  29. package/dist-types/pagination/SearchUserHierarchyGroupsPaginator.d.ts +7 -0
  30. package/dist-types/pagination/index.d.ts +2 -0
  31. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  32. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  33. package/dist-types/runtimeConfig.d.ts +1 -1
  34. package/dist-types/runtimeConfig.native.d.ts +1 -1
  35. package/dist-types/ts3.4/Connect.d.ts +34 -0
  36. package/dist-types/ts3.4/ConnectClient.d.ts +14 -2
  37. package/dist-types/ts3.4/commands/DescribeContactEvaluationCommand.d.ts +1 -1
  38. package/dist-types/ts3.4/commands/ListTrafficDistributionGroupUsersCommand.d.ts +1 -1
  39. package/dist-types/ts3.4/commands/ListUseCasesCommand.d.ts +1 -1
  40. package/dist-types/ts3.4/commands/SearchAgentStatusesCommand.d.ts +40 -0
  41. package/dist-types/ts3.4/commands/SearchUserHierarchyGroupsCommand.d.ts +40 -0
  42. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  43. package/dist-types/ts3.4/models/models_0.d.ts +27 -60
  44. package/dist-types/ts3.4/models/models_1.d.ts +60 -29
  45. package/dist-types/ts3.4/models/models_2.d.ts +107 -20
  46. package/dist-types/ts3.4/pagination/SearchAgentStatusesPaginator.d.ts +11 -0
  47. package/dist-types/ts3.4/pagination/SearchUserHierarchyGroupsPaginator.d.ts +11 -0
  48. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  49. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  50. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  51. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  52. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  53. package/package.json +24 -24
@@ -0,0 +1,142 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
4
+ import { SearchAgentStatusesRequest, SearchAgentStatusesResponse } from "../models/models_2";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link SearchAgentStatusesCommand}.
14
+ */
15
+ export interface SearchAgentStatusesCommandInput extends SearchAgentStatusesRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link SearchAgentStatusesCommand}.
21
+ */
22
+ export interface SearchAgentStatusesCommandOutput extends SearchAgentStatusesResponse, __MetadataBearer {
23
+ }
24
+ declare const SearchAgentStatusesCommand_base: {
25
+ new (input: SearchAgentStatusesCommandInput): import("@smithy/smithy-client").CommandImpl<SearchAgentStatusesCommandInput, SearchAgentStatusesCommandOutput, ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: SearchAgentStatusesCommandInput): import("@smithy/smithy-client").CommandImpl<SearchAgentStatusesCommandInput, SearchAgentStatusesCommandOutput, ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Searches AgentStatuses in an Amazon Connect instance, with optional filtering.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { ConnectClient, SearchAgentStatusesCommand } from "@aws-sdk/client-connect"; // ES Modules import
35
+ * // const { ConnectClient, SearchAgentStatusesCommand } = require("@aws-sdk/client-connect"); // CommonJS import
36
+ * const client = new ConnectClient(config);
37
+ * const input = { // SearchAgentStatusesRequest
38
+ * InstanceId: "STRING_VALUE", // required
39
+ * NextToken: "STRING_VALUE",
40
+ * MaxResults: Number("int"),
41
+ * SearchFilter: { // AgentStatusSearchFilter
42
+ * AttributeFilter: { // ControlPlaneAttributeFilter
43
+ * OrConditions: [ // CommonAttributeOrConditionList
44
+ * { // CommonAttributeAndCondition
45
+ * TagConditions: [ // TagAndConditionList
46
+ * { // TagCondition
47
+ * TagKey: "STRING_VALUE",
48
+ * TagValue: "STRING_VALUE",
49
+ * },
50
+ * ],
51
+ * },
52
+ * ],
53
+ * AndCondition: {
54
+ * TagConditions: [
55
+ * {
56
+ * TagKey: "STRING_VALUE",
57
+ * TagValue: "STRING_VALUE",
58
+ * },
59
+ * ],
60
+ * },
61
+ * TagCondition: "<TagCondition>",
62
+ * },
63
+ * },
64
+ * SearchCriteria: { // AgentStatusSearchCriteria
65
+ * OrConditions: [ // AgentStatusSearchConditionList
66
+ * {
67
+ * OrConditions: [
68
+ * "<AgentStatusSearchCriteria>",
69
+ * ],
70
+ * AndConditions: [
71
+ * "<AgentStatusSearchCriteria>",
72
+ * ],
73
+ * StringCondition: { // StringCondition
74
+ * FieldName: "STRING_VALUE",
75
+ * Value: "STRING_VALUE",
76
+ * ComparisonType: "STARTS_WITH" || "CONTAINS" || "EXACT",
77
+ * },
78
+ * },
79
+ * ],
80
+ * AndConditions: [
81
+ * "<AgentStatusSearchCriteria>",
82
+ * ],
83
+ * StringCondition: {
84
+ * FieldName: "STRING_VALUE",
85
+ * Value: "STRING_VALUE",
86
+ * ComparisonType: "STARTS_WITH" || "CONTAINS" || "EXACT",
87
+ * },
88
+ * },
89
+ * };
90
+ * const command = new SearchAgentStatusesCommand(input);
91
+ * const response = await client.send(command);
92
+ * // { // SearchAgentStatusesResponse
93
+ * // AgentStatuses: [ // AgentStatusList
94
+ * // { // AgentStatus
95
+ * // AgentStatusARN: "STRING_VALUE",
96
+ * // AgentStatusId: "STRING_VALUE",
97
+ * // Name: "STRING_VALUE",
98
+ * // Description: "STRING_VALUE",
99
+ * // Type: "ROUTABLE" || "CUSTOM" || "OFFLINE",
100
+ * // DisplayOrder: Number("int"),
101
+ * // State: "ENABLED" || "DISABLED",
102
+ * // Tags: { // TagMap
103
+ * // "<keys>": "STRING_VALUE",
104
+ * // },
105
+ * // LastModifiedTime: new Date("TIMESTAMP"),
106
+ * // LastModifiedRegion: "STRING_VALUE",
107
+ * // },
108
+ * // ],
109
+ * // NextToken: "STRING_VALUE",
110
+ * // ApproximateTotalCount: Number("long"),
111
+ * // };
112
+ *
113
+ * ```
114
+ *
115
+ * @param SearchAgentStatusesCommandInput - {@link SearchAgentStatusesCommandInput}
116
+ * @returns {@link SearchAgentStatusesCommandOutput}
117
+ * @see {@link SearchAgentStatusesCommandInput} for command's `input` shape.
118
+ * @see {@link SearchAgentStatusesCommandOutput} for command's `response` shape.
119
+ * @see {@link ConnectClientResolvedConfig | config} for ConnectClient's `config` shape.
120
+ *
121
+ * @throws {@link InternalServiceException} (server fault)
122
+ * <p>Request processing failed because of an error or failure with the service.</p>
123
+ *
124
+ * @throws {@link InvalidParameterException} (client fault)
125
+ * <p>One or more of the specified parameters are not valid.</p>
126
+ *
127
+ * @throws {@link InvalidRequestException} (client fault)
128
+ * <p>The request is not valid.</p>
129
+ *
130
+ * @throws {@link ResourceNotFoundException} (client fault)
131
+ * <p>The specified resource was not found.</p>
132
+ *
133
+ * @throws {@link ThrottlingException} (client fault)
134
+ * <p>The throttling limit has been exceeded.</p>
135
+ *
136
+ * @throws {@link ConnectServiceException}
137
+ * <p>Base exception class for all service exceptions from Connect service.</p>
138
+ *
139
+ * @public
140
+ */
141
+ export declare class SearchAgentStatusesCommand extends SearchAgentStatusesCommand_base {
142
+ }
@@ -0,0 +1,181 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
4
+ import { SearchUserHierarchyGroupsRequest, SearchUserHierarchyGroupsResponse } from "../models/models_2";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link SearchUserHierarchyGroupsCommand}.
14
+ */
15
+ export interface SearchUserHierarchyGroupsCommandInput extends SearchUserHierarchyGroupsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link SearchUserHierarchyGroupsCommand}.
21
+ */
22
+ export interface SearchUserHierarchyGroupsCommandOutput extends SearchUserHierarchyGroupsResponse, __MetadataBearer {
23
+ }
24
+ declare const SearchUserHierarchyGroupsCommand_base: {
25
+ new (input: SearchUserHierarchyGroupsCommandInput): import("@smithy/smithy-client").CommandImpl<SearchUserHierarchyGroupsCommandInput, SearchUserHierarchyGroupsCommandOutput, ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: SearchUserHierarchyGroupsCommandInput): import("@smithy/smithy-client").CommandImpl<SearchUserHierarchyGroupsCommandInput, SearchUserHierarchyGroupsCommandOutput, ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Searches UserHierarchyGroups in an Amazon Connect instance, with optional
31
+ * filtering.</p>
32
+ * <important>
33
+ * <p>The UserHierarchyGroup with <code>"LevelId": "0"</code> is the foundation for building
34
+ * levels on top of an instance. It is not user-definable, nor is it visible in the UI.</p>
35
+ * </important>
36
+ * @example
37
+ * Use a bare-bones client and the command you need to make an API call.
38
+ * ```javascript
39
+ * import { ConnectClient, SearchUserHierarchyGroupsCommand } from "@aws-sdk/client-connect"; // ES Modules import
40
+ * // const { ConnectClient, SearchUserHierarchyGroupsCommand } = require("@aws-sdk/client-connect"); // CommonJS import
41
+ * const client = new ConnectClient(config);
42
+ * const input = { // SearchUserHierarchyGroupsRequest
43
+ * InstanceId: "STRING_VALUE", // required
44
+ * NextToken: "STRING_VALUE",
45
+ * MaxResults: Number("int"),
46
+ * SearchFilter: { // UserHierarchyGroupSearchFilter
47
+ * AttributeFilter: { // ControlPlaneAttributeFilter
48
+ * OrConditions: [ // CommonAttributeOrConditionList
49
+ * { // CommonAttributeAndCondition
50
+ * TagConditions: [ // TagAndConditionList
51
+ * { // TagCondition
52
+ * TagKey: "STRING_VALUE",
53
+ * TagValue: "STRING_VALUE",
54
+ * },
55
+ * ],
56
+ * },
57
+ * ],
58
+ * AndCondition: {
59
+ * TagConditions: [
60
+ * {
61
+ * TagKey: "STRING_VALUE",
62
+ * TagValue: "STRING_VALUE",
63
+ * },
64
+ * ],
65
+ * },
66
+ * TagCondition: "<TagCondition>",
67
+ * },
68
+ * },
69
+ * SearchCriteria: { // UserHierarchyGroupSearchCriteria
70
+ * OrConditions: [ // UserHierarchyGroupSearchConditionList
71
+ * {
72
+ * OrConditions: [
73
+ * "<UserHierarchyGroupSearchCriteria>",
74
+ * ],
75
+ * AndConditions: [
76
+ * "<UserHierarchyGroupSearchCriteria>",
77
+ * ],
78
+ * StringCondition: { // StringCondition
79
+ * FieldName: "STRING_VALUE",
80
+ * Value: "STRING_VALUE",
81
+ * ComparisonType: "STARTS_WITH" || "CONTAINS" || "EXACT",
82
+ * },
83
+ * },
84
+ * ],
85
+ * AndConditions: [
86
+ * "<UserHierarchyGroupSearchCriteria>",
87
+ * ],
88
+ * StringCondition: {
89
+ * FieldName: "STRING_VALUE",
90
+ * Value: "STRING_VALUE",
91
+ * ComparisonType: "STARTS_WITH" || "CONTAINS" || "EXACT",
92
+ * },
93
+ * },
94
+ * };
95
+ * const command = new SearchUserHierarchyGroupsCommand(input);
96
+ * const response = await client.send(command);
97
+ * // { // SearchUserHierarchyGroupsResponse
98
+ * // UserHierarchyGroups: [ // UserHierarchyGroupList
99
+ * // { // HierarchyGroup
100
+ * // Id: "STRING_VALUE",
101
+ * // Arn: "STRING_VALUE",
102
+ * // Name: "STRING_VALUE",
103
+ * // LevelId: "STRING_VALUE",
104
+ * // HierarchyPath: { // HierarchyPath
105
+ * // LevelOne: { // HierarchyGroupSummary
106
+ * // Id: "STRING_VALUE",
107
+ * // Arn: "STRING_VALUE",
108
+ * // Name: "STRING_VALUE",
109
+ * // LastModifiedTime: new Date("TIMESTAMP"),
110
+ * // LastModifiedRegion: "STRING_VALUE",
111
+ * // },
112
+ * // LevelTwo: {
113
+ * // Id: "STRING_VALUE",
114
+ * // Arn: "STRING_VALUE",
115
+ * // Name: "STRING_VALUE",
116
+ * // LastModifiedTime: new Date("TIMESTAMP"),
117
+ * // LastModifiedRegion: "STRING_VALUE",
118
+ * // },
119
+ * // LevelThree: {
120
+ * // Id: "STRING_VALUE",
121
+ * // Arn: "STRING_VALUE",
122
+ * // Name: "STRING_VALUE",
123
+ * // LastModifiedTime: new Date("TIMESTAMP"),
124
+ * // LastModifiedRegion: "STRING_VALUE",
125
+ * // },
126
+ * // LevelFour: {
127
+ * // Id: "STRING_VALUE",
128
+ * // Arn: "STRING_VALUE",
129
+ * // Name: "STRING_VALUE",
130
+ * // LastModifiedTime: new Date("TIMESTAMP"),
131
+ * // LastModifiedRegion: "STRING_VALUE",
132
+ * // },
133
+ * // LevelFive: {
134
+ * // Id: "STRING_VALUE",
135
+ * // Arn: "STRING_VALUE",
136
+ * // Name: "STRING_VALUE",
137
+ * // LastModifiedTime: new Date("TIMESTAMP"),
138
+ * // LastModifiedRegion: "STRING_VALUE",
139
+ * // },
140
+ * // },
141
+ * // Tags: { // TagMap
142
+ * // "<keys>": "STRING_VALUE",
143
+ * // },
144
+ * // LastModifiedTime: new Date("TIMESTAMP"),
145
+ * // LastModifiedRegion: "STRING_VALUE",
146
+ * // },
147
+ * // ],
148
+ * // NextToken: "STRING_VALUE",
149
+ * // ApproximateTotalCount: Number("long"),
150
+ * // };
151
+ *
152
+ * ```
153
+ *
154
+ * @param SearchUserHierarchyGroupsCommandInput - {@link SearchUserHierarchyGroupsCommandInput}
155
+ * @returns {@link SearchUserHierarchyGroupsCommandOutput}
156
+ * @see {@link SearchUserHierarchyGroupsCommandInput} for command's `input` shape.
157
+ * @see {@link SearchUserHierarchyGroupsCommandOutput} for command's `response` shape.
158
+ * @see {@link ConnectClientResolvedConfig | config} for ConnectClient's `config` shape.
159
+ *
160
+ * @throws {@link InternalServiceException} (server fault)
161
+ * <p>Request processing failed because of an error or failure with the service.</p>
162
+ *
163
+ * @throws {@link InvalidParameterException} (client fault)
164
+ * <p>One or more of the specified parameters are not valid.</p>
165
+ *
166
+ * @throws {@link InvalidRequestException} (client fault)
167
+ * <p>The request is not valid.</p>
168
+ *
169
+ * @throws {@link ResourceNotFoundException} (client fault)
170
+ * <p>The specified resource was not found.</p>
171
+ *
172
+ * @throws {@link ThrottlingException} (client fault)
173
+ * <p>The throttling limit has been exceeded.</p>
174
+ *
175
+ * @throws {@link ConnectServiceException}
176
+ * <p>Base exception class for all service exceptions from Connect service.</p>
177
+ *
178
+ * @public
179
+ */
180
+ export declare class SearchUserHierarchyGroupsCommand extends SearchUserHierarchyGroupsCommand_base {
181
+ }
@@ -95,16 +95,44 @@ declare const SearchUsersCommand_base: {
95
95
  * Value: "STRING_VALUE",
96
96
  * ComparisonType: "STARTS_WITH" || "CONTAINS" || "EXACT",
97
97
  * },
98
+ * ListCondition: { // ListCondition
99
+ * TargetListType: "PROFICIENCIES",
100
+ * Conditions: [ // Conditions
101
+ * { // Condition
102
+ * StringCondition: {
103
+ * FieldName: "STRING_VALUE",
104
+ * Value: "STRING_VALUE",
105
+ * ComparisonType: "STARTS_WITH" || "CONTAINS" || "EXACT",
106
+ * },
107
+ * NumberCondition: { // NumberCondition
108
+ * FieldName: "STRING_VALUE",
109
+ * MinValue: Number("int"),
110
+ * MaxValue: Number("int"),
111
+ * ComparisonType: "GREATER_OR_EQUAL" || "GREATER" || "LESSER_OR_EQUAL" || "LESSER" || "EQUAL" || "NOT_EQUAL" || "RANGE",
112
+ * },
113
+ * },
114
+ * ],
115
+ * },
98
116
  * HierarchyGroupCondition: "<HierarchyGroupCondition>",
99
117
  * },
100
118
  * ],
101
119
  * AndConditions: [
102
120
  * "<UserSearchCriteria>",
103
121
  * ],
104
- * StringCondition: {
105
- * FieldName: "STRING_VALUE",
106
- * Value: "STRING_VALUE",
107
- * ComparisonType: "STARTS_WITH" || "CONTAINS" || "EXACT",
122
+ * StringCondition: "<StringCondition>",
123
+ * ListCondition: {
124
+ * TargetListType: "PROFICIENCIES",
125
+ * Conditions: [
126
+ * {
127
+ * StringCondition: "<StringCondition>",
128
+ * NumberCondition: {
129
+ * FieldName: "STRING_VALUE",
130
+ * MinValue: Number("int"),
131
+ * MaxValue: Number("int"),
132
+ * ComparisonType: "GREATER_OR_EQUAL" || "GREATER" || "LESSER_OR_EQUAL" || "LESSER" || "EQUAL" || "NOT_EQUAL" || "RANGE",
133
+ * },
134
+ * },
135
+ * ],
108
136
  * },
109
137
  * HierarchyGroupCondition: "<HierarchyGroupCondition>",
110
138
  * },
@@ -171,6 +171,7 @@ export * from "./ReleasePhoneNumberCommand";
171
171
  export * from "./ReplicateInstanceCommand";
172
172
  export * from "./ResumeContactCommand";
173
173
  export * from "./ResumeContactRecordingCommand";
174
+ export * from "./SearchAgentStatusesCommand";
174
175
  export * from "./SearchAvailablePhoneNumbersCommand";
175
176
  export * from "./SearchContactFlowModulesCommand";
176
177
  export * from "./SearchContactFlowsCommand";
@@ -183,6 +184,7 @@ export * from "./SearchQuickConnectsCommand";
183
184
  export * from "./SearchResourceTagsCommand";
184
185
  export * from "./SearchRoutingProfilesCommand";
185
186
  export * from "./SearchSecurityProfilesCommand";
187
+ export * from "./SearchUserHierarchyGroupsCommand";
186
188
  export * from "./SearchUsersCommand";
187
189
  export * from "./SearchVocabulariesCommand";
188
190
  export * from "./SendChatIntegrationEventCommand";
@@ -2,14 +2,13 @@
2
2
  * <ul>
3
3
  * <li>
4
4
  * <p>
5
- * <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Operations_Amazon_Connect_Service.html">Amazon Connect
6
- * actions</a>
5
+ * <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Operations_Amazon_Connect_Service.html">Amazon Connect actions</a>
7
6
  * </p>
8
7
  * </li>
9
8
  * <li>
10
9
  * <p>
11
10
  * <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Types_Amazon_Connect_Service.html">Amazon Connect
12
- * data types</a>
11
+ * data types</a>
13
12
  * </p>
14
13
  * </li>
15
14
  * </ul>