@aws-sdk/client-sso 3.32.0 → 3.36.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 (134) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/{dist/cjs → dist-cjs}/SSO.js +1 -2
  3. package/{dist/cjs → dist-cjs}/SSOClient.js +7 -8
  4. package/{dist/cjs → dist-cjs}/commands/GetRoleCredentialsCommand.js +2 -3
  5. package/{dist/cjs → dist-cjs}/commands/ListAccountRolesCommand.js +2 -3
  6. package/{dist/cjs → dist-cjs}/commands/ListAccountsCommand.js +2 -3
  7. package/{dist/cjs → dist-cjs}/commands/LogoutCommand.js +2 -3
  8. package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
  9. package/{dist/cjs → dist-cjs}/index.js +0 -1
  10. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  11. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
  12. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  13. package/{dist/cjs → dist-cjs}/pagination/ListAccountRolesPaginator.js +1 -2
  14. package/{dist/cjs → dist-cjs}/pagination/ListAccountsPaginator.js +1 -2
  15. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +4 -5
  16. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
  17. package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
  18. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
  19. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
  20. package/{dist/es → dist-es}/SSO.js +2 -21
  21. package/{dist/es → dist-es}/SSOClient.js +2 -26
  22. package/{dist/es → dist-es}/commands/GetRoleCredentialsCommand.js +4 -31
  23. package/{dist/es → dist-es}/commands/ListAccountRolesCommand.js +4 -30
  24. package/{dist/es → dist-es}/commands/ListAccountsCommand.js +4 -32
  25. package/{dist/es → dist-es}/commands/LogoutCommand.js +4 -30
  26. package/{dist/es → dist-es}/endpoints.js +1 -2
  27. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  28. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  29. package/{dist/es → dist-es}/models/models_0.js +0 -43
  30. package/dist-es/pagination/Interfaces.js +1 -0
  31. package/{dist/es → dist-es}/pagination/ListAccountRolesPaginator.js +17 -30
  32. package/{dist/es → dist-es}/pagination/ListAccountsPaginator.js +17 -30
  33. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +96 -102
  34. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
  35. package/{dist/es → dist-es}/runtimeConfig.js +1 -5
  36. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
  37. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
  38. package/{dist/types → dist-types}/SSO.d.ts +2 -2
  39. package/{dist/types → dist-types}/SSOClient.d.ts +5 -5
  40. package/{dist/types → dist-types}/commands/GetRoleCredentialsCommand.d.ts +3 -3
  41. package/{dist/types → dist-types}/commands/ListAccountRolesCommand.d.ts +3 -3
  42. package/{dist/types → dist-types}/commands/ListAccountsCommand.d.ts +3 -3
  43. package/{dist/types → dist-types}/commands/LogoutCommand.d.ts +3 -3
  44. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  45. package/{index.ts → dist-types/index.d.ts} +0 -0
  46. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  47. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  48. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  49. package/{dist/types → dist-types}/pagination/ListAccountRolesPaginator.d.ts +1 -1
  50. package/{dist/types → dist-types}/pagination/ListAccountsPaginator.d.ts +1 -1
  51. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  52. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  53. package/{dist/types → dist-types}/runtimeConfig.d.ts +0 -0
  54. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  55. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  56. package/{dist/types → dist-types}/ts3.4/SSO.d.ts +2 -2
  57. package/{dist/types → dist-types}/ts3.4/SSOClient.d.ts +5 -5
  58. package/{dist/types → dist-types}/ts3.4/commands/GetRoleCredentialsCommand.d.ts +3 -3
  59. package/{dist/types → dist-types}/ts3.4/commands/ListAccountRolesCommand.d.ts +3 -3
  60. package/{dist/types → dist-types}/ts3.4/commands/ListAccountsCommand.d.ts +3 -3
  61. package/{dist/types → dist-types}/ts3.4/commands/LogoutCommand.d.ts +3 -3
  62. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  63. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  64. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  65. package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
  66. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  67. package/{dist/types → dist-types}/ts3.4/pagination/ListAccountRolesPaginator.d.ts +1 -1
  68. package/{dist/types → dist-types}/ts3.4/pagination/ListAccountsPaginator.d.ts +1 -1
  69. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  70. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +0 -0
  71. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +0 -0
  72. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +0 -0
  73. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
  74. package/package.json +49 -46
  75. package/SSO.ts +0 -160
  76. package/SSOClient.ts +0 -245
  77. package/commands/GetRoleCredentialsCommand.ts +0 -95
  78. package/commands/ListAccountRolesCommand.ts +0 -94
  79. package/commands/ListAccountsCommand.ts +0 -96
  80. package/commands/LogoutCommand.ts +0 -87
  81. package/dist/cjs/SSO.js.map +0 -1
  82. package/dist/cjs/SSOClient.js.map +0 -1
  83. package/dist/cjs/commands/GetRoleCredentialsCommand.js.map +0 -1
  84. package/dist/cjs/commands/ListAccountRolesCommand.js.map +0 -1
  85. package/dist/cjs/commands/ListAccountsCommand.js.map +0 -1
  86. package/dist/cjs/commands/LogoutCommand.js.map +0 -1
  87. package/dist/cjs/endpoints.js.map +0 -1
  88. package/dist/cjs/index.js.map +0 -1
  89. package/dist/cjs/models/index.js.map +0 -1
  90. package/dist/cjs/models/models_0.js.map +0 -1
  91. package/dist/cjs/package.json +0 -88
  92. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  93. package/dist/cjs/pagination/ListAccountRolesPaginator.js.map +0 -1
  94. package/dist/cjs/pagination/ListAccountsPaginator.js.map +0 -1
  95. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  96. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  97. package/dist/cjs/runtimeConfig.js.map +0 -1
  98. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  99. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  100. package/dist/es/SSO.js.map +0 -1
  101. package/dist/es/SSOClient.js.map +0 -1
  102. package/dist/es/commands/GetRoleCredentialsCommand.js.map +0 -1
  103. package/dist/es/commands/ListAccountRolesCommand.js.map +0 -1
  104. package/dist/es/commands/ListAccountsCommand.js.map +0 -1
  105. package/dist/es/commands/LogoutCommand.js.map +0 -1
  106. package/dist/es/endpoints.js.map +0 -1
  107. package/dist/es/index.js +0 -11
  108. package/dist/es/index.js.map +0 -1
  109. package/dist/es/models/index.js +0 -2
  110. package/dist/es/models/index.js.map +0 -1
  111. package/dist/es/models/models_0.js.map +0 -1
  112. package/dist/es/package.json +0 -88
  113. package/dist/es/pagination/Interfaces.js +0 -2
  114. package/dist/es/pagination/Interfaces.js.map +0 -1
  115. package/dist/es/pagination/ListAccountRolesPaginator.js.map +0 -1
  116. package/dist/es/pagination/ListAccountsPaginator.js.map +0 -1
  117. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  118. package/dist/es/runtimeConfig.browser.js.map +0 -1
  119. package/dist/es/runtimeConfig.js.map +0 -1
  120. package/dist/es/runtimeConfig.native.js.map +0 -1
  121. package/dist/es/runtimeConfig.shared.js.map +0 -1
  122. package/endpoints.ts +0 -94
  123. package/jest.config.js +0 -4
  124. package/models/models_0.ts +0 -334
  125. package/pagination/Interfaces.ts +0 -7
  126. package/pagination/ListAccountRolesPaginator.ts +0 -58
  127. package/pagination/ListAccountsPaginator.ts +0 -58
  128. package/protocols/Aws_restJson1.ts +0 -621
  129. package/runtimeConfig.browser.ts +0 -38
  130. package/runtimeConfig.native.ts +0 -16
  131. package/runtimeConfig.shared.ts +0 -16
  132. package/runtimeConfig.ts +0 -41
  133. package/tsconfig.es.json +0 -12
  134. package/tsconfig.json +0 -32
@@ -5,13 +5,13 @@ export var serializeAws_restJson1GetRoleCredentialsCommand = function (input, co
5
5
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
6
6
  return __generator(this, function (_c) {
7
7
  switch (_c.label) {
8
- case 0: return [4 /*yield*/, context.endpoint()];
8
+ case 0: return [4, context.endpoint()];
9
9
  case 1:
10
10
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
11
11
  headers = __assign({}, (isSerializableHeaderValue(input.accessToken) && { "x-amz-sso_bearer_token": input.accessToken }));
12
12
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/federation/credentials";
13
13
  query = __assign(__assign({}, (input.roleName !== undefined && { role_name: input.roleName })), (input.accountId !== undefined && { account_id: input.accountId }));
14
- return [2 /*return*/, new __HttpRequest({
14
+ return [2, new __HttpRequest({
15
15
  protocol: protocol,
16
16
  hostname: hostname,
17
17
  port: port,
@@ -28,13 +28,13 @@ export var serializeAws_restJson1ListAccountRolesCommand = function (input, cont
28
28
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
29
29
  return __generator(this, function (_c) {
30
30
  switch (_c.label) {
31
- case 0: return [4 /*yield*/, context.endpoint()];
31
+ case 0: return [4, context.endpoint()];
32
32
  case 1:
33
33
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
34
34
  headers = __assign({}, (isSerializableHeaderValue(input.accessToken) && { "x-amz-sso_bearer_token": input.accessToken }));
35
35
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assignment/roles";
36
36
  query = __assign(__assign(__assign({}, (input.nextToken !== undefined && { next_token: input.nextToken })), (input.maxResults !== undefined && { max_result: input.maxResults.toString() })), (input.accountId !== undefined && { account_id: input.accountId }));
37
- return [2 /*return*/, new __HttpRequest({
37
+ return [2, new __HttpRequest({
38
38
  protocol: protocol,
39
39
  hostname: hostname,
40
40
  port: port,
@@ -51,13 +51,13 @@ export var serializeAws_restJson1ListAccountsCommand = function (input, context)
51
51
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
52
52
  return __generator(this, function (_c) {
53
53
  switch (_c.label) {
54
- case 0: return [4 /*yield*/, context.endpoint()];
54
+ case 0: return [4, context.endpoint()];
55
55
  case 1:
56
56
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
57
57
  headers = __assign({}, (isSerializableHeaderValue(input.accessToken) && { "x-amz-sso_bearer_token": input.accessToken }));
58
58
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assignment/accounts";
59
59
  query = __assign(__assign({}, (input.nextToken !== undefined && { next_token: input.nextToken })), (input.maxResults !== undefined && { max_result: input.maxResults.toString() }));
60
- return [2 /*return*/, new __HttpRequest({
60
+ return [2, new __HttpRequest({
61
61
  protocol: protocol,
62
62
  hostname: hostname,
63
63
  port: port,
@@ -74,12 +74,12 @@ export var serializeAws_restJson1LogoutCommand = function (input, context) { ret
74
74
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
75
75
  return __generator(this, function (_c) {
76
76
  switch (_c.label) {
77
- case 0: return [4 /*yield*/, context.endpoint()];
77
+ case 0: return [4, context.endpoint()];
78
78
  case 1:
79
79
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
80
80
  headers = __assign({}, (isSerializableHeaderValue(input.accessToken) && { "x-amz-sso_bearer_token": input.accessToken }));
81
81
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/logout";
82
- return [2 /*return*/, new __HttpRequest({
82
+ return [2, new __HttpRequest({
83
83
  protocol: protocol,
84
84
  hostname: hostname,
85
85
  port: port,
@@ -97,7 +97,7 @@ export var deserializeAws_restJson1GetRoleCredentialsCommand = function (output,
97
97
  switch (_c.label) {
98
98
  case 0:
99
99
  if (output.statusCode !== 200 && output.statusCode >= 300) {
100
- return [2 /*return*/, deserializeAws_restJson1GetRoleCredentialsCommandError(output, context)];
100
+ return [2, deserializeAws_restJson1GetRoleCredentialsCommandError(output, context)];
101
101
  }
102
102
  contents = {
103
103
  $metadata: deserializeMetadata(output),
@@ -105,13 +105,13 @@ export var deserializeAws_restJson1GetRoleCredentialsCommand = function (output,
105
105
  };
106
106
  _a = __expectNonNull;
107
107
  _b = __expectObject;
108
- return [4 /*yield*/, parseBody(output.body, context)];
108
+ return [4, parseBody(output.body, context)];
109
109
  case 1:
110
110
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
111
111
  if (data.roleCredentials !== undefined && data.roleCredentials !== null) {
112
112
  contents.roleCredentials = deserializeAws_restJson1RoleCredentials(data.roleCredentials, context);
113
113
  }
114
- return [2 /*return*/, Promise.resolve(contents)];
114
+ return [2, Promise.resolve(contents)];
115
115
  }
116
116
  });
117
117
  }); };
@@ -123,47 +123,47 @@ var deserializeAws_restJson1GetRoleCredentialsCommandError = function (output, c
123
123
  case 0:
124
124
  _a = [__assign({}, output)];
125
125
  _g = {};
126
- return [4 /*yield*/, parseBody(output.body, context)];
126
+ return [4, parseBody(output.body, context)];
127
127
  case 1:
128
128
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
129
129
  errorCode = "UnknownError";
130
130
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
131
131
  _b = errorCode;
132
132
  switch (_b) {
133
- case "InvalidRequestException": return [3 /*break*/, 2];
134
- case "com.amazonaws.sso#InvalidRequestException": return [3 /*break*/, 2];
135
- case "ResourceNotFoundException": return [3 /*break*/, 4];
136
- case "com.amazonaws.sso#ResourceNotFoundException": return [3 /*break*/, 4];
137
- case "TooManyRequestsException": return [3 /*break*/, 6];
138
- case "com.amazonaws.sso#TooManyRequestsException": return [3 /*break*/, 6];
139
- case "UnauthorizedException": return [3 /*break*/, 8];
140
- case "com.amazonaws.sso#UnauthorizedException": return [3 /*break*/, 8];
133
+ case "InvalidRequestException": return [3, 2];
134
+ case "com.amazonaws.sso#InvalidRequestException": return [3, 2];
135
+ case "ResourceNotFoundException": return [3, 4];
136
+ case "com.amazonaws.sso#ResourceNotFoundException": return [3, 4];
137
+ case "TooManyRequestsException": return [3, 6];
138
+ case "com.amazonaws.sso#TooManyRequestsException": return [3, 6];
139
+ case "UnauthorizedException": return [3, 8];
140
+ case "com.amazonaws.sso#UnauthorizedException": return [3, 8];
141
141
  }
142
- return [3 /*break*/, 10];
142
+ return [3, 10];
143
143
  case 2:
144
144
  _c = [{}];
145
- return [4 /*yield*/, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
145
+ return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
146
146
  case 3:
147
147
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
148
- return [3 /*break*/, 11];
148
+ return [3, 11];
149
149
  case 4:
150
150
  _d = [{}];
151
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
151
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
152
152
  case 5:
153
153
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
154
- return [3 /*break*/, 11];
154
+ return [3, 11];
155
155
  case 6:
156
156
  _e = [{}];
157
- return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
157
+ return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
158
158
  case 7:
159
159
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
160
- return [3 /*break*/, 11];
160
+ return [3, 11];
161
161
  case 8:
162
162
  _f = [{}];
163
- return [4 /*yield*/, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
163
+ return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
164
164
  case 9:
165
165
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
166
- return [3 /*break*/, 11];
166
+ return [3, 11];
167
167
  case 10:
168
168
  parsedBody = parsedOutput.body;
169
169
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -173,7 +173,7 @@ var deserializeAws_restJson1GetRoleCredentialsCommandError = function (output, c
173
173
  message = response.message || response.Message || errorCode;
174
174
  response.message = message;
175
175
  delete response.Message;
176
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
176
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
177
177
  }
178
178
  });
179
179
  }); };
@@ -183,7 +183,7 @@ export var deserializeAws_restJson1ListAccountRolesCommand = function (output, c
183
183
  switch (_c.label) {
184
184
  case 0:
185
185
  if (output.statusCode !== 200 && output.statusCode >= 300) {
186
- return [2 /*return*/, deserializeAws_restJson1ListAccountRolesCommandError(output, context)];
186
+ return [2, deserializeAws_restJson1ListAccountRolesCommandError(output, context)];
187
187
  }
188
188
  contents = {
189
189
  $metadata: deserializeMetadata(output),
@@ -192,7 +192,7 @@ export var deserializeAws_restJson1ListAccountRolesCommand = function (output, c
192
192
  };
193
193
  _a = __expectNonNull;
194
194
  _b = __expectObject;
195
- return [4 /*yield*/, parseBody(output.body, context)];
195
+ return [4, parseBody(output.body, context)];
196
196
  case 1:
197
197
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
198
198
  if (data.nextToken !== undefined && data.nextToken !== null) {
@@ -201,7 +201,7 @@ export var deserializeAws_restJson1ListAccountRolesCommand = function (output, c
201
201
  if (data.roleList !== undefined && data.roleList !== null) {
202
202
  contents.roleList = deserializeAws_restJson1RoleListType(data.roleList, context);
203
203
  }
204
- return [2 /*return*/, Promise.resolve(contents)];
204
+ return [2, Promise.resolve(contents)];
205
205
  }
206
206
  });
207
207
  }); };
@@ -213,47 +213,47 @@ var deserializeAws_restJson1ListAccountRolesCommandError = function (output, con
213
213
  case 0:
214
214
  _a = [__assign({}, output)];
215
215
  _g = {};
216
- return [4 /*yield*/, parseBody(output.body, context)];
216
+ return [4, parseBody(output.body, context)];
217
217
  case 1:
218
218
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
219
219
  errorCode = "UnknownError";
220
220
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
221
221
  _b = errorCode;
222
222
  switch (_b) {
223
- case "InvalidRequestException": return [3 /*break*/, 2];
224
- case "com.amazonaws.sso#InvalidRequestException": return [3 /*break*/, 2];
225
- case "ResourceNotFoundException": return [3 /*break*/, 4];
226
- case "com.amazonaws.sso#ResourceNotFoundException": return [3 /*break*/, 4];
227
- case "TooManyRequestsException": return [3 /*break*/, 6];
228
- case "com.amazonaws.sso#TooManyRequestsException": return [3 /*break*/, 6];
229
- case "UnauthorizedException": return [3 /*break*/, 8];
230
- case "com.amazonaws.sso#UnauthorizedException": return [3 /*break*/, 8];
223
+ case "InvalidRequestException": return [3, 2];
224
+ case "com.amazonaws.sso#InvalidRequestException": return [3, 2];
225
+ case "ResourceNotFoundException": return [3, 4];
226
+ case "com.amazonaws.sso#ResourceNotFoundException": return [3, 4];
227
+ case "TooManyRequestsException": return [3, 6];
228
+ case "com.amazonaws.sso#TooManyRequestsException": return [3, 6];
229
+ case "UnauthorizedException": return [3, 8];
230
+ case "com.amazonaws.sso#UnauthorizedException": return [3, 8];
231
231
  }
232
- return [3 /*break*/, 10];
232
+ return [3, 10];
233
233
  case 2:
234
234
  _c = [{}];
235
- return [4 /*yield*/, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
235
+ return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
236
236
  case 3:
237
237
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
238
- return [3 /*break*/, 11];
238
+ return [3, 11];
239
239
  case 4:
240
240
  _d = [{}];
241
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
241
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
242
242
  case 5:
243
243
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
244
- return [3 /*break*/, 11];
244
+ return [3, 11];
245
245
  case 6:
246
246
  _e = [{}];
247
- return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
247
+ return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
248
248
  case 7:
249
249
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
250
- return [3 /*break*/, 11];
250
+ return [3, 11];
251
251
  case 8:
252
252
  _f = [{}];
253
- return [4 /*yield*/, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
253
+ return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
254
254
  case 9:
255
255
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
256
- return [3 /*break*/, 11];
256
+ return [3, 11];
257
257
  case 10:
258
258
  parsedBody = parsedOutput.body;
259
259
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -263,7 +263,7 @@ var deserializeAws_restJson1ListAccountRolesCommandError = function (output, con
263
263
  message = response.message || response.Message || errorCode;
264
264
  response.message = message;
265
265
  delete response.Message;
266
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
266
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
267
267
  }
268
268
  });
269
269
  }); };
@@ -273,7 +273,7 @@ export var deserializeAws_restJson1ListAccountsCommand = function (output, conte
273
273
  switch (_c.label) {
274
274
  case 0:
275
275
  if (output.statusCode !== 200 && output.statusCode >= 300) {
276
- return [2 /*return*/, deserializeAws_restJson1ListAccountsCommandError(output, context)];
276
+ return [2, deserializeAws_restJson1ListAccountsCommandError(output, context)];
277
277
  }
278
278
  contents = {
279
279
  $metadata: deserializeMetadata(output),
@@ -282,7 +282,7 @@ export var deserializeAws_restJson1ListAccountsCommand = function (output, conte
282
282
  };
283
283
  _a = __expectNonNull;
284
284
  _b = __expectObject;
285
- return [4 /*yield*/, parseBody(output.body, context)];
285
+ return [4, parseBody(output.body, context)];
286
286
  case 1:
287
287
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
288
288
  if (data.accountList !== undefined && data.accountList !== null) {
@@ -291,7 +291,7 @@ export var deserializeAws_restJson1ListAccountsCommand = function (output, conte
291
291
  if (data.nextToken !== undefined && data.nextToken !== null) {
292
292
  contents.nextToken = __expectString(data.nextToken);
293
293
  }
294
- return [2 /*return*/, Promise.resolve(contents)];
294
+ return [2, Promise.resolve(contents)];
295
295
  }
296
296
  });
297
297
  }); };
@@ -303,47 +303,47 @@ var deserializeAws_restJson1ListAccountsCommandError = function (output, context
303
303
  case 0:
304
304
  _a = [__assign({}, output)];
305
305
  _g = {};
306
- return [4 /*yield*/, parseBody(output.body, context)];
306
+ return [4, parseBody(output.body, context)];
307
307
  case 1:
308
308
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
309
309
  errorCode = "UnknownError";
310
310
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
311
311
  _b = errorCode;
312
312
  switch (_b) {
313
- case "InvalidRequestException": return [3 /*break*/, 2];
314
- case "com.amazonaws.sso#InvalidRequestException": return [3 /*break*/, 2];
315
- case "ResourceNotFoundException": return [3 /*break*/, 4];
316
- case "com.amazonaws.sso#ResourceNotFoundException": return [3 /*break*/, 4];
317
- case "TooManyRequestsException": return [3 /*break*/, 6];
318
- case "com.amazonaws.sso#TooManyRequestsException": return [3 /*break*/, 6];
319
- case "UnauthorizedException": return [3 /*break*/, 8];
320
- case "com.amazonaws.sso#UnauthorizedException": return [3 /*break*/, 8];
313
+ case "InvalidRequestException": return [3, 2];
314
+ case "com.amazonaws.sso#InvalidRequestException": return [3, 2];
315
+ case "ResourceNotFoundException": return [3, 4];
316
+ case "com.amazonaws.sso#ResourceNotFoundException": return [3, 4];
317
+ case "TooManyRequestsException": return [3, 6];
318
+ case "com.amazonaws.sso#TooManyRequestsException": return [3, 6];
319
+ case "UnauthorizedException": return [3, 8];
320
+ case "com.amazonaws.sso#UnauthorizedException": return [3, 8];
321
321
  }
322
- return [3 /*break*/, 10];
322
+ return [3, 10];
323
323
  case 2:
324
324
  _c = [{}];
325
- return [4 /*yield*/, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
325
+ return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
326
326
  case 3:
327
327
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
328
- return [3 /*break*/, 11];
328
+ return [3, 11];
329
329
  case 4:
330
330
  _d = [{}];
331
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
331
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
332
332
  case 5:
333
333
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
334
- return [3 /*break*/, 11];
334
+ return [3, 11];
335
335
  case 6:
336
336
  _e = [{}];
337
- return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
337
+ return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
338
338
  case 7:
339
339
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
340
- return [3 /*break*/, 11];
340
+ return [3, 11];
341
341
  case 8:
342
342
  _f = [{}];
343
- return [4 /*yield*/, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
343
+ return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
344
344
  case 9:
345
345
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
346
- return [3 /*break*/, 11];
346
+ return [3, 11];
347
347
  case 10:
348
348
  parsedBody = parsedOutput.body;
349
349
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -353,7 +353,7 @@ var deserializeAws_restJson1ListAccountsCommandError = function (output, context
353
353
  message = response.message || response.Message || errorCode;
354
354
  response.message = message;
355
355
  delete response.Message;
356
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
356
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
357
357
  }
358
358
  });
359
359
  }); };
@@ -363,15 +363,15 @@ export var deserializeAws_restJson1LogoutCommand = function (output, context) {
363
363
  switch (_a.label) {
364
364
  case 0:
365
365
  if (output.statusCode !== 200 && output.statusCode >= 300) {
366
- return [2 /*return*/, deserializeAws_restJson1LogoutCommandError(output, context)];
366
+ return [2, deserializeAws_restJson1LogoutCommandError(output, context)];
367
367
  }
368
368
  contents = {
369
369
  $metadata: deserializeMetadata(output),
370
370
  };
371
- return [4 /*yield*/, collectBody(output.body, context)];
371
+ return [4, collectBody(output.body, context)];
372
372
  case 1:
373
373
  _a.sent();
374
- return [2 /*return*/, Promise.resolve(contents)];
374
+ return [2, Promise.resolve(contents)];
375
375
  }
376
376
  });
377
377
  }); };
@@ -383,39 +383,39 @@ var deserializeAws_restJson1LogoutCommandError = function (output, context) { re
383
383
  case 0:
384
384
  _a = [__assign({}, output)];
385
385
  _f = {};
386
- return [4 /*yield*/, parseBody(output.body, context)];
386
+ return [4, parseBody(output.body, context)];
387
387
  case 1:
388
388
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
389
389
  errorCode = "UnknownError";
390
390
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
391
391
  _b = errorCode;
392
392
  switch (_b) {
393
- case "InvalidRequestException": return [3 /*break*/, 2];
394
- case "com.amazonaws.sso#InvalidRequestException": return [3 /*break*/, 2];
395
- case "TooManyRequestsException": return [3 /*break*/, 4];
396
- case "com.amazonaws.sso#TooManyRequestsException": return [3 /*break*/, 4];
397
- case "UnauthorizedException": return [3 /*break*/, 6];
398
- case "com.amazonaws.sso#UnauthorizedException": return [3 /*break*/, 6];
393
+ case "InvalidRequestException": return [3, 2];
394
+ case "com.amazonaws.sso#InvalidRequestException": return [3, 2];
395
+ case "TooManyRequestsException": return [3, 4];
396
+ case "com.amazonaws.sso#TooManyRequestsException": return [3, 4];
397
+ case "UnauthorizedException": return [3, 6];
398
+ case "com.amazonaws.sso#UnauthorizedException": return [3, 6];
399
399
  }
400
- return [3 /*break*/, 8];
400
+ return [3, 8];
401
401
  case 2:
402
402
  _c = [{}];
403
- return [4 /*yield*/, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
403
+ return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
404
404
  case 3:
405
405
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
406
- return [3 /*break*/, 9];
406
+ return [3, 9];
407
407
  case 4:
408
408
  _d = [{}];
409
- return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
409
+ return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
410
410
  case 5:
411
411
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
412
- return [3 /*break*/, 9];
412
+ return [3, 9];
413
413
  case 6:
414
414
  _e = [{}];
415
- return [4 /*yield*/, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
415
+ return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
416
416
  case 7:
417
417
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
418
- return [3 /*break*/, 9];
418
+ return [3, 9];
419
419
  case 8:
420
420
  parsedBody = parsedOutput.body;
421
421
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -425,7 +425,7 @@ var deserializeAws_restJson1LogoutCommandError = function (output, context) { re
425
425
  message = response.message || response.Message || errorCode;
426
426
  response.message = message;
427
427
  delete response.Message;
428
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
428
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
429
429
  }
430
430
  });
431
431
  }); };
@@ -442,7 +442,7 @@ var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOu
442
442
  if (data.message !== undefined && data.message !== null) {
443
443
  contents.message = __expectString(data.message);
444
444
  }
445
- return [2 /*return*/, contents];
445
+ return [2, contents];
446
446
  });
447
447
  }); };
448
448
  var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -458,7 +458,7 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
458
458
  if (data.message !== undefined && data.message !== null) {
459
459
  contents.message = __expectString(data.message);
460
460
  }
461
- return [2 /*return*/, contents];
461
+ return [2, contents];
462
462
  });
463
463
  }); };
464
464
  var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -474,7 +474,7 @@ var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedO
474
474
  if (data.message !== undefined && data.message !== null) {
475
475
  contents.message = __expectString(data.message);
476
476
  }
477
- return [2 /*return*/, contents];
477
+ return [2, contents];
478
478
  });
479
479
  }); };
480
480
  var deserializeAws_restJson1UnauthorizedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -490,7 +490,7 @@ var deserializeAws_restJson1UnauthorizedExceptionResponse = function (parsedOutp
490
490
  if (data.message !== undefined && data.message !== null) {
491
491
  contents.message = __expectString(data.message);
492
492
  }
493
- return [2 /*return*/, contents];
493
+ return [2, contents];
494
494
  });
495
495
  }); };
496
496
  var deserializeAws_restJson1AccountInfo = function (output, context) {
@@ -543,7 +543,6 @@ var deserializeMetadata = function (output) {
543
543
  cfId: output.headers["x-amz-cf-id"],
544
544
  });
545
545
  };
546
- // Collect low-level response body stream to Uint8Array.
547
546
  var collectBody = function (streamBody, context) {
548
547
  if (streamBody === void 0) { streamBody = new Uint8Array(); }
549
548
  if (streamBody instanceof Uint8Array) {
@@ -551,7 +550,6 @@ var collectBody = function (streamBody, context) {
551
550
  }
552
551
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
553
552
  };
554
- // Encode Uint8Array data into string with utf-8.
555
553
  var collectBodyString = function (streamBody, context) {
556
554
  return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
557
555
  };
@@ -570,9 +568,6 @@ var parseBody = function (streamBody, context) {
570
568
  return {};
571
569
  });
572
570
  };
573
- /**
574
- * Load an error code for the aws.rest-json-1.1 protocol.
575
- */
576
571
  var loadRestJsonErrorCode = function (output, data) {
577
572
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
578
573
  var sanitizeErrorCode = function (rawValue) {
@@ -597,4 +592,3 @@ var loadRestJsonErrorCode = function (output, data) {
597
592
  }
598
593
  return "";
599
594
  };
600
- //# sourceMappingURL=Aws_restJson1.js.map
@@ -1,5 +1,5 @@
1
1
  import { __assign } from "tslib";
2
- import packageInfo from "./package.json";
2
+ import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
4
  import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
5
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
@@ -9,12 +9,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
9
9
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
10
10
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
11
11
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
12
- /**
13
- * @internal
14
- */
15
12
  export var getRuntimeConfig = function (config) {
16
13
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
17
14
  var clientSharedValues = getSharedRuntimeConfig(config);
18
15
  return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, defaultUserAgentProvider: (_d = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _d !== void 0 ? _d : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_e = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _e !== void 0 ? _e : DEFAULT_MAX_ATTEMPTS, region: (_f = config === null || config === void 0 ? void 0 : config.region) !== null && _f !== void 0 ? _f : invalidProvider("Region is missing"), requestHandler: (_g = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _g !== void 0 ? _g : new FetchHttpHandler(), retryMode: (_h = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _h !== void 0 ? _h : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_j = config === null || config === void 0 ? void 0 : config.sha256) !== null && _j !== void 0 ? _j : Sha256, streamCollector: (_k = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _k !== void 0 ? _k : streamCollector, utf8Decoder: (_l = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _l !== void 0 ? _l : fromUtf8, utf8Encoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _m !== void 0 ? _m : toUtf8 });
19
16
  };
20
- //# sourceMappingURL=runtimeConfig.browser.js.map
@@ -1,5 +1,5 @@
1
1
  import { __assign } from "tslib";
2
- import packageInfo from "./package.json";
2
+ import packageInfo from "../package.json";
3
3
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
4
4
  import { Hash } from "@aws-sdk/hash-node";
5
5
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
@@ -11,13 +11,9 @@ import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
11
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
12
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
13
  import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
14
- /**
15
- * @internal
16
- */
17
14
  export var getRuntimeConfig = function (config) {
18
15
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
19
16
  emitWarningIfUnsupportedVersion(process.version);
20
17
  var clientSharedValues = getSharedRuntimeConfig(config);
21
18
  return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, defaultUserAgentProvider: (_d = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _d !== void 0 ? _d : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_e = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _e !== void 0 ? _e : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_f = config === null || config === void 0 ? void 0 : config.region) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_g = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _g !== void 0 ? _g : new NodeHttpHandler(), retryMode: (_h = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _h !== void 0 ? _h : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_j = config === null || config === void 0 ? void 0 : config.sha256) !== null && _j !== void 0 ? _j : Hash.bind(null, "sha256"), streamCollector: (_k = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _k !== void 0 ? _k : streamCollector, utf8Decoder: (_l = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _l !== void 0 ? _l : fromUtf8, utf8Encoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _m !== void 0 ? _m : toUtf8 });
22
19
  };
23
- //# sourceMappingURL=runtimeConfig.js.map
@@ -1,12 +1,8 @@
1
1
  import { __assign } from "tslib";
2
2
  import { Sha256 } from "@aws-crypto/sha256-js";
3
3
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
4
- /**
5
- * @internal
6
- */
7
4
  export var getRuntimeConfig = function (config) {
8
5
  var _a;
9
6
  var browserDefaults = getBrowserRuntimeConfig(config);
10
7
  return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : Sha256 });
11
8
  };
12
- //# sourceMappingURL=runtimeConfig.native.js.map
@@ -1,8 +1,5 @@
1
- import { defaultRegionInfoProvider } from "./endpoints";
2
1
  import { parseUrl } from "@aws-sdk/url-parser";
3
- /**
4
- * @internal
5
- */
2
+ import { defaultRegionInfoProvider } from "./endpoints";
6
3
  export var getRuntimeConfig = function (config) {
7
4
  var _a, _b, _c, _d, _e;
8
5
  return ({
@@ -14,4 +11,3 @@ export var getRuntimeConfig = function (config) {
14
11
  urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
15
12
  });
16
13
  };
17
- //# sourceMappingURL=runtimeConfig.shared.js.map
@@ -1,9 +1,9 @@
1
- import { SSOClient } from "./SSOClient";
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
2
  import { GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput } from "./commands/GetRoleCredentialsCommand";
3
3
  import { ListAccountRolesCommandInput, ListAccountRolesCommandOutput } from "./commands/ListAccountRolesCommand";
4
4
  import { ListAccountsCommandInput, ListAccountsCommandOutput } from "./commands/ListAccountsCommand";
5
5
  import { LogoutCommandInput, LogoutCommandOutput } from "./commands/LogoutCommand";
6
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
6
+ import { SSOClient } from "./SSOClient";
7
7
  /**
8
8
  * <p>AWS Single Sign-On Portal is a web service that makes it easy for you to assign user
9
9
  * access to AWS SSO resources such as the user portal. Users can get AWS account applications
@@ -1,14 +1,14 @@
1
- import { GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput } from "./commands/GetRoleCredentialsCommand";
2
- import { ListAccountRolesCommandInput, ListAccountRolesCommandOutput } from "./commands/ListAccountRolesCommand";
3
- import { ListAccountsCommandInput, ListAccountsCommandOutput } from "./commands/ListAccountsCommand";
4
- import { LogoutCommandInput, LogoutCommandOutput } from "./commands/LogoutCommand";
5
1
  import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
6
2
  import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
7
3
  import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
8
4
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
9
5
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
10
6
  import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
11
- import { Provider, RegionInfoProvider, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
7
+ import { Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput } from "./commands/GetRoleCredentialsCommand";
9
+ import { ListAccountRolesCommandInput, ListAccountRolesCommandOutput } from "./commands/ListAccountRolesCommand";
10
+ import { ListAccountsCommandInput, ListAccountsCommandOutput } from "./commands/ListAccountsCommand";
11
+ import { LogoutCommandInput, LogoutCommandOutput } from "./commands/LogoutCommand";
12
12
  export declare type ServiceInputTypes = GetRoleCredentialsCommandInput | ListAccountRolesCommandInput | ListAccountsCommandInput | LogoutCommandInput;
13
13
  export declare type ServiceOutputTypes = GetRoleCredentialsCommandOutput | ListAccountRolesCommandOutput | ListAccountsCommandOutput | LogoutCommandOutput;
14
14
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {