@aws-sdk/client-identitystore 3.310.0 → 3.312.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.
@@ -6,190 +6,133 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const IdentitystoreServiceException_1 = require("../models/IdentitystoreServiceException");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const se_CreateGroupCommand = async (input, context) => {
9
- const headers = {
10
- "content-type": "application/x-amz-json-1.1",
11
- "x-amz-target": "AWSIdentityStore.CreateGroup",
12
- };
9
+ const headers = sharedHeaders("CreateGroup");
13
10
  let body;
14
11
  body = JSON.stringify(se_CreateGroupRequest(input, context));
15
12
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
16
13
  };
17
14
  exports.se_CreateGroupCommand = se_CreateGroupCommand;
18
15
  const se_CreateGroupMembershipCommand = async (input, context) => {
19
- const headers = {
20
- "content-type": "application/x-amz-json-1.1",
21
- "x-amz-target": "AWSIdentityStore.CreateGroupMembership",
22
- };
16
+ const headers = sharedHeaders("CreateGroupMembership");
23
17
  let body;
24
18
  body = JSON.stringify(se_CreateGroupMembershipRequest(input, context));
25
19
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
26
20
  };
27
21
  exports.se_CreateGroupMembershipCommand = se_CreateGroupMembershipCommand;
28
22
  const se_CreateUserCommand = async (input, context) => {
29
- const headers = {
30
- "content-type": "application/x-amz-json-1.1",
31
- "x-amz-target": "AWSIdentityStore.CreateUser",
32
- };
23
+ const headers = sharedHeaders("CreateUser");
33
24
  let body;
34
25
  body = JSON.stringify(se_CreateUserRequest(input, context));
35
26
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
36
27
  };
37
28
  exports.se_CreateUserCommand = se_CreateUserCommand;
38
29
  const se_DeleteGroupCommand = async (input, context) => {
39
- const headers = {
40
- "content-type": "application/x-amz-json-1.1",
41
- "x-amz-target": "AWSIdentityStore.DeleteGroup",
42
- };
30
+ const headers = sharedHeaders("DeleteGroup");
43
31
  let body;
44
32
  body = JSON.stringify(se_DeleteGroupRequest(input, context));
45
33
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
46
34
  };
47
35
  exports.se_DeleteGroupCommand = se_DeleteGroupCommand;
48
36
  const se_DeleteGroupMembershipCommand = async (input, context) => {
49
- const headers = {
50
- "content-type": "application/x-amz-json-1.1",
51
- "x-amz-target": "AWSIdentityStore.DeleteGroupMembership",
52
- };
37
+ const headers = sharedHeaders("DeleteGroupMembership");
53
38
  let body;
54
39
  body = JSON.stringify(se_DeleteGroupMembershipRequest(input, context));
55
40
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
56
41
  };
57
42
  exports.se_DeleteGroupMembershipCommand = se_DeleteGroupMembershipCommand;
58
43
  const se_DeleteUserCommand = async (input, context) => {
59
- const headers = {
60
- "content-type": "application/x-amz-json-1.1",
61
- "x-amz-target": "AWSIdentityStore.DeleteUser",
62
- };
44
+ const headers = sharedHeaders("DeleteUser");
63
45
  let body;
64
46
  body = JSON.stringify(se_DeleteUserRequest(input, context));
65
47
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
66
48
  };
67
49
  exports.se_DeleteUserCommand = se_DeleteUserCommand;
68
50
  const se_DescribeGroupCommand = async (input, context) => {
69
- const headers = {
70
- "content-type": "application/x-amz-json-1.1",
71
- "x-amz-target": "AWSIdentityStore.DescribeGroup",
72
- };
51
+ const headers = sharedHeaders("DescribeGroup");
73
52
  let body;
74
53
  body = JSON.stringify(se_DescribeGroupRequest(input, context));
75
54
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
55
  };
77
56
  exports.se_DescribeGroupCommand = se_DescribeGroupCommand;
78
57
  const se_DescribeGroupMembershipCommand = async (input, context) => {
79
- const headers = {
80
- "content-type": "application/x-amz-json-1.1",
81
- "x-amz-target": "AWSIdentityStore.DescribeGroupMembership",
82
- };
58
+ const headers = sharedHeaders("DescribeGroupMembership");
83
59
  let body;
84
60
  body = JSON.stringify(se_DescribeGroupMembershipRequest(input, context));
85
61
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
86
62
  };
87
63
  exports.se_DescribeGroupMembershipCommand = se_DescribeGroupMembershipCommand;
88
64
  const se_DescribeUserCommand = async (input, context) => {
89
- const headers = {
90
- "content-type": "application/x-amz-json-1.1",
91
- "x-amz-target": "AWSIdentityStore.DescribeUser",
92
- };
65
+ const headers = sharedHeaders("DescribeUser");
93
66
  let body;
94
67
  body = JSON.stringify(se_DescribeUserRequest(input, context));
95
68
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
96
69
  };
97
70
  exports.se_DescribeUserCommand = se_DescribeUserCommand;
98
71
  const se_GetGroupIdCommand = async (input, context) => {
99
- const headers = {
100
- "content-type": "application/x-amz-json-1.1",
101
- "x-amz-target": "AWSIdentityStore.GetGroupId",
102
- };
72
+ const headers = sharedHeaders("GetGroupId");
103
73
  let body;
104
74
  body = JSON.stringify(se_GetGroupIdRequest(input, context));
105
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
106
76
  };
107
77
  exports.se_GetGroupIdCommand = se_GetGroupIdCommand;
108
78
  const se_GetGroupMembershipIdCommand = async (input, context) => {
109
- const headers = {
110
- "content-type": "application/x-amz-json-1.1",
111
- "x-amz-target": "AWSIdentityStore.GetGroupMembershipId",
112
- };
79
+ const headers = sharedHeaders("GetGroupMembershipId");
113
80
  let body;
114
81
  body = JSON.stringify(se_GetGroupMembershipIdRequest(input, context));
115
82
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
116
83
  };
117
84
  exports.se_GetGroupMembershipIdCommand = se_GetGroupMembershipIdCommand;
118
85
  const se_GetUserIdCommand = async (input, context) => {
119
- const headers = {
120
- "content-type": "application/x-amz-json-1.1",
121
- "x-amz-target": "AWSIdentityStore.GetUserId",
122
- };
86
+ const headers = sharedHeaders("GetUserId");
123
87
  let body;
124
88
  body = JSON.stringify(se_GetUserIdRequest(input, context));
125
89
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
126
90
  };
127
91
  exports.se_GetUserIdCommand = se_GetUserIdCommand;
128
92
  const se_IsMemberInGroupsCommand = async (input, context) => {
129
- const headers = {
130
- "content-type": "application/x-amz-json-1.1",
131
- "x-amz-target": "AWSIdentityStore.IsMemberInGroups",
132
- };
93
+ const headers = sharedHeaders("IsMemberInGroups");
133
94
  let body;
134
95
  body = JSON.stringify(se_IsMemberInGroupsRequest(input, context));
135
96
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
136
97
  };
137
98
  exports.se_IsMemberInGroupsCommand = se_IsMemberInGroupsCommand;
138
99
  const se_ListGroupMembershipsCommand = async (input, context) => {
139
- const headers = {
140
- "content-type": "application/x-amz-json-1.1",
141
- "x-amz-target": "AWSIdentityStore.ListGroupMemberships",
142
- };
100
+ const headers = sharedHeaders("ListGroupMemberships");
143
101
  let body;
144
102
  body = JSON.stringify(se_ListGroupMembershipsRequest(input, context));
145
103
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
146
104
  };
147
105
  exports.se_ListGroupMembershipsCommand = se_ListGroupMembershipsCommand;
148
106
  const se_ListGroupMembershipsForMemberCommand = async (input, context) => {
149
- const headers = {
150
- "content-type": "application/x-amz-json-1.1",
151
- "x-amz-target": "AWSIdentityStore.ListGroupMembershipsForMember",
152
- };
107
+ const headers = sharedHeaders("ListGroupMembershipsForMember");
153
108
  let body;
154
109
  body = JSON.stringify(se_ListGroupMembershipsForMemberRequest(input, context));
155
110
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
156
111
  };
157
112
  exports.se_ListGroupMembershipsForMemberCommand = se_ListGroupMembershipsForMemberCommand;
158
113
  const se_ListGroupsCommand = async (input, context) => {
159
- const headers = {
160
- "content-type": "application/x-amz-json-1.1",
161
- "x-amz-target": "AWSIdentityStore.ListGroups",
162
- };
114
+ const headers = sharedHeaders("ListGroups");
163
115
  let body;
164
116
  body = JSON.stringify(se_ListGroupsRequest(input, context));
165
117
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
166
118
  };
167
119
  exports.se_ListGroupsCommand = se_ListGroupsCommand;
168
120
  const se_ListUsersCommand = async (input, context) => {
169
- const headers = {
170
- "content-type": "application/x-amz-json-1.1",
171
- "x-amz-target": "AWSIdentityStore.ListUsers",
172
- };
121
+ const headers = sharedHeaders("ListUsers");
173
122
  let body;
174
123
  body = JSON.stringify(se_ListUsersRequest(input, context));
175
124
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
176
125
  };
177
126
  exports.se_ListUsersCommand = se_ListUsersCommand;
178
127
  const se_UpdateGroupCommand = async (input, context) => {
179
- const headers = {
180
- "content-type": "application/x-amz-json-1.1",
181
- "x-amz-target": "AWSIdentityStore.UpdateGroup",
182
- };
128
+ const headers = sharedHeaders("UpdateGroup");
183
129
  let body;
184
130
  body = JSON.stringify(se_UpdateGroupRequest(input, context));
185
131
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
186
132
  };
187
133
  exports.se_UpdateGroupCommand = se_UpdateGroupCommand;
188
134
  const se_UpdateUserCommand = async (input, context) => {
189
- const headers = {
190
- "content-type": "application/x-amz-json-1.1",
191
- "x-amz-target": "AWSIdentityStore.UpdateUser",
192
- };
135
+ const headers = sharedHeaders("UpdateUser");
193
136
  let body;
194
137
  body = JSON.stringify(se_UpdateUserRequest(input, context));
195
138
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
@@ -1808,6 +1751,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
1808
1751
  }
1809
1752
  return new protocol_http_1.HttpRequest(contents);
1810
1753
  };
1754
+ function sharedHeaders(operation) {
1755
+ return {
1756
+ "content-type": "application/x-amz-json-1.1",
1757
+ "x-amz-target": `AWSIdentityStore.${operation}`,
1758
+ };
1759
+ }
1811
1760
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1812
1761
  if (encoded.length) {
1813
1762
  return JSON.parse(encoded);
@@ -3,172 +3,115 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
3
3
  import { IdentitystoreServiceException as __BaseException } from "../models/IdentitystoreServiceException";
4
4
  import { AccessDeniedException, AlternateIdentifier, ConflictException, InternalServerException, MemberId, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
5
5
  export const se_CreateGroupCommand = async (input, context) => {
6
- const headers = {
7
- "content-type": "application/x-amz-json-1.1",
8
- "x-amz-target": "AWSIdentityStore.CreateGroup",
9
- };
6
+ const headers = sharedHeaders("CreateGroup");
10
7
  let body;
11
8
  body = JSON.stringify(se_CreateGroupRequest(input, context));
12
9
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
10
  };
14
11
  export const se_CreateGroupMembershipCommand = async (input, context) => {
15
- const headers = {
16
- "content-type": "application/x-amz-json-1.1",
17
- "x-amz-target": "AWSIdentityStore.CreateGroupMembership",
18
- };
12
+ const headers = sharedHeaders("CreateGroupMembership");
19
13
  let body;
20
14
  body = JSON.stringify(se_CreateGroupMembershipRequest(input, context));
21
15
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
16
  };
23
17
  export const se_CreateUserCommand = async (input, context) => {
24
- const headers = {
25
- "content-type": "application/x-amz-json-1.1",
26
- "x-amz-target": "AWSIdentityStore.CreateUser",
27
- };
18
+ const headers = sharedHeaders("CreateUser");
28
19
  let body;
29
20
  body = JSON.stringify(se_CreateUserRequest(input, context));
30
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
31
22
  };
32
23
  export const se_DeleteGroupCommand = async (input, context) => {
33
- const headers = {
34
- "content-type": "application/x-amz-json-1.1",
35
- "x-amz-target": "AWSIdentityStore.DeleteGroup",
36
- };
24
+ const headers = sharedHeaders("DeleteGroup");
37
25
  let body;
38
26
  body = JSON.stringify(se_DeleteGroupRequest(input, context));
39
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
28
  };
41
29
  export const se_DeleteGroupMembershipCommand = async (input, context) => {
42
- const headers = {
43
- "content-type": "application/x-amz-json-1.1",
44
- "x-amz-target": "AWSIdentityStore.DeleteGroupMembership",
45
- };
30
+ const headers = sharedHeaders("DeleteGroupMembership");
46
31
  let body;
47
32
  body = JSON.stringify(se_DeleteGroupMembershipRequest(input, context));
48
33
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
49
34
  };
50
35
  export const se_DeleteUserCommand = async (input, context) => {
51
- const headers = {
52
- "content-type": "application/x-amz-json-1.1",
53
- "x-amz-target": "AWSIdentityStore.DeleteUser",
54
- };
36
+ const headers = sharedHeaders("DeleteUser");
55
37
  let body;
56
38
  body = JSON.stringify(se_DeleteUserRequest(input, context));
57
39
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
40
  };
59
41
  export const se_DescribeGroupCommand = async (input, context) => {
60
- const headers = {
61
- "content-type": "application/x-amz-json-1.1",
62
- "x-amz-target": "AWSIdentityStore.DescribeGroup",
63
- };
42
+ const headers = sharedHeaders("DescribeGroup");
64
43
  let body;
65
44
  body = JSON.stringify(se_DescribeGroupRequest(input, context));
66
45
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
67
46
  };
68
47
  export const se_DescribeGroupMembershipCommand = async (input, context) => {
69
- const headers = {
70
- "content-type": "application/x-amz-json-1.1",
71
- "x-amz-target": "AWSIdentityStore.DescribeGroupMembership",
72
- };
48
+ const headers = sharedHeaders("DescribeGroupMembership");
73
49
  let body;
74
50
  body = JSON.stringify(se_DescribeGroupMembershipRequest(input, context));
75
51
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
52
  };
77
53
  export const se_DescribeUserCommand = async (input, context) => {
78
- const headers = {
79
- "content-type": "application/x-amz-json-1.1",
80
- "x-amz-target": "AWSIdentityStore.DescribeUser",
81
- };
54
+ const headers = sharedHeaders("DescribeUser");
82
55
  let body;
83
56
  body = JSON.stringify(se_DescribeUserRequest(input, context));
84
57
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
58
  };
86
59
  export const se_GetGroupIdCommand = async (input, context) => {
87
- const headers = {
88
- "content-type": "application/x-amz-json-1.1",
89
- "x-amz-target": "AWSIdentityStore.GetGroupId",
90
- };
60
+ const headers = sharedHeaders("GetGroupId");
91
61
  let body;
92
62
  body = JSON.stringify(se_GetGroupIdRequest(input, context));
93
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
94
64
  };
95
65
  export const se_GetGroupMembershipIdCommand = async (input, context) => {
96
- const headers = {
97
- "content-type": "application/x-amz-json-1.1",
98
- "x-amz-target": "AWSIdentityStore.GetGroupMembershipId",
99
- };
66
+ const headers = sharedHeaders("GetGroupMembershipId");
100
67
  let body;
101
68
  body = JSON.stringify(se_GetGroupMembershipIdRequest(input, context));
102
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
103
70
  };
104
71
  export const se_GetUserIdCommand = async (input, context) => {
105
- const headers = {
106
- "content-type": "application/x-amz-json-1.1",
107
- "x-amz-target": "AWSIdentityStore.GetUserId",
108
- };
72
+ const headers = sharedHeaders("GetUserId");
109
73
  let body;
110
74
  body = JSON.stringify(se_GetUserIdRequest(input, context));
111
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
76
  };
113
77
  export const se_IsMemberInGroupsCommand = async (input, context) => {
114
- const headers = {
115
- "content-type": "application/x-amz-json-1.1",
116
- "x-amz-target": "AWSIdentityStore.IsMemberInGroups",
117
- };
78
+ const headers = sharedHeaders("IsMemberInGroups");
118
79
  let body;
119
80
  body = JSON.stringify(se_IsMemberInGroupsRequest(input, context));
120
81
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
121
82
  };
122
83
  export const se_ListGroupMembershipsCommand = async (input, context) => {
123
- const headers = {
124
- "content-type": "application/x-amz-json-1.1",
125
- "x-amz-target": "AWSIdentityStore.ListGroupMemberships",
126
- };
84
+ const headers = sharedHeaders("ListGroupMemberships");
127
85
  let body;
128
86
  body = JSON.stringify(se_ListGroupMembershipsRequest(input, context));
129
87
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
130
88
  };
131
89
  export const se_ListGroupMembershipsForMemberCommand = async (input, context) => {
132
- const headers = {
133
- "content-type": "application/x-amz-json-1.1",
134
- "x-amz-target": "AWSIdentityStore.ListGroupMembershipsForMember",
135
- };
90
+ const headers = sharedHeaders("ListGroupMembershipsForMember");
136
91
  let body;
137
92
  body = JSON.stringify(se_ListGroupMembershipsForMemberRequest(input, context));
138
93
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
139
94
  };
140
95
  export const se_ListGroupsCommand = async (input, context) => {
141
- const headers = {
142
- "content-type": "application/x-amz-json-1.1",
143
- "x-amz-target": "AWSIdentityStore.ListGroups",
144
- };
96
+ const headers = sharedHeaders("ListGroups");
145
97
  let body;
146
98
  body = JSON.stringify(se_ListGroupsRequest(input, context));
147
99
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
100
  };
149
101
  export const se_ListUsersCommand = async (input, context) => {
150
- const headers = {
151
- "content-type": "application/x-amz-json-1.1",
152
- "x-amz-target": "AWSIdentityStore.ListUsers",
153
- };
102
+ const headers = sharedHeaders("ListUsers");
154
103
  let body;
155
104
  body = JSON.stringify(se_ListUsersRequest(input, context));
156
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
157
106
  };
158
107
  export const se_UpdateGroupCommand = async (input, context) => {
159
- const headers = {
160
- "content-type": "application/x-amz-json-1.1",
161
- "x-amz-target": "AWSIdentityStore.UpdateGroup",
162
- };
108
+ const headers = sharedHeaders("UpdateGroup");
163
109
  let body;
164
110
  body = JSON.stringify(se_UpdateGroupRequest(input, context));
165
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
166
112
  };
167
113
  export const se_UpdateUserCommand = async (input, context) => {
168
- const headers = {
169
- "content-type": "application/x-amz-json-1.1",
170
- "x-amz-target": "AWSIdentityStore.UpdateUser",
171
- };
114
+ const headers = sharedHeaders("UpdateUser");
172
115
  let body;
173
116
  body = JSON.stringify(se_UpdateUserRequest(input, context));
174
117
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
@@ -1767,6 +1710,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
1767
1710
  }
1768
1711
  return new __HttpRequest(contents);
1769
1712
  };
1713
+ function sharedHeaders(operation) {
1714
+ return {
1715
+ "content-type": "application/x-amz-json-1.1",
1716
+ "x-amz-target": `AWSIdentityStore.${operation}`,
1717
+ };
1718
+ }
1770
1719
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1771
1720
  if (encoded.length) {
1772
1721
  return JSON.parse(encoded);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-identitystore",
3
3
  "description": "AWS SDK for JavaScript Identitystore Client for Node.js, Browser and React Native",
4
- "version": "3.310.0",
4
+ "version": "3.312.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.310.0",
24
+ "@aws-sdk/client-sts": "3.312.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
26
  "@aws-sdk/credential-provider-node": "3.310.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",