@aws-sdk/client-cognito-identity 3.716.0 → 3.723.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.
package/dist-cjs/index.js CHANGED
@@ -172,7 +172,14 @@ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions
172
172
  }, "resolveRuntimeExtensions");
173
173
 
174
174
  // src/CognitoIdentityClient.ts
175
- var _CognitoIdentityClient = class _CognitoIdentityClient extends import_smithy_client.Client {
175
+ var CognitoIdentityClient = class extends import_smithy_client.Client {
176
+ static {
177
+ __name(this, "CognitoIdentityClient");
178
+ }
179
+ /**
180
+ * The resolved configuration of CognitoIdentityClient class. This is resolved and normalized from the {@link CognitoIdentityClientConfig | constructor configuration interface}.
181
+ */
182
+ config;
176
183
  constructor(...[configuration]) {
177
184
  const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
178
185
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -182,7 +189,7 @@ var _CognitoIdentityClient = class _CognitoIdentityClient extends import_smithy_
182
189
  const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
183
190
  const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
184
191
  const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
185
- const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
192
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
186
193
  super(_config_8);
187
194
  this.config = _config_8;
188
195
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
@@ -210,8 +217,6 @@ var _CognitoIdentityClient = class _CognitoIdentityClient extends import_smithy_
210
217
  super.destroy();
211
218
  }
212
219
  };
213
- __name(_CognitoIdentityClient, "CognitoIdentityClient");
214
- var CognitoIdentityClient = _CognitoIdentityClient;
215
220
 
216
221
  // src/CognitoIdentity.ts
217
222
 
@@ -228,7 +233,10 @@ var import_core2 = require("@aws-sdk/core");
228
233
 
229
234
  // src/models/CognitoIdentityServiceException.ts
230
235
 
231
- var _CognitoIdentityServiceException = class _CognitoIdentityServiceException extends import_smithy_client.ServiceException {
236
+ var CognitoIdentityServiceException = class _CognitoIdentityServiceException extends import_smithy_client.ServiceException {
237
+ static {
238
+ __name(this, "CognitoIdentityServiceException");
239
+ }
232
240
  /**
233
241
  * @internal
234
242
  */
@@ -237,8 +245,6 @@ var _CognitoIdentityServiceException = class _CognitoIdentityServiceException ex
237
245
  Object.setPrototypeOf(this, _CognitoIdentityServiceException.prototype);
238
246
  }
239
247
  };
240
- __name(_CognitoIdentityServiceException, "CognitoIdentityServiceException");
241
- var CognitoIdentityServiceException = _CognitoIdentityServiceException;
242
248
 
243
249
  // src/models/models_0.ts
244
250
 
@@ -246,7 +252,12 @@ var AmbiguousRoleResolutionType = {
246
252
  AUTHENTICATED_ROLE: "AuthenticatedRole",
247
253
  DENY: "Deny"
248
254
  };
249
- var _InternalErrorException = class _InternalErrorException extends CognitoIdentityServiceException {
255
+ var InternalErrorException = class _InternalErrorException extends CognitoIdentityServiceException {
256
+ static {
257
+ __name(this, "InternalErrorException");
258
+ }
259
+ name = "InternalErrorException";
260
+ $fault = "server";
250
261
  /**
251
262
  * @internal
252
263
  */
@@ -256,14 +267,15 @@ var _InternalErrorException = class _InternalErrorException extends CognitoIdent
256
267
  $fault: "server",
257
268
  ...opts
258
269
  });
259
- this.name = "InternalErrorException";
260
- this.$fault = "server";
261
270
  Object.setPrototypeOf(this, _InternalErrorException.prototype);
262
271
  }
263
272
  };
264
- __name(_InternalErrorException, "InternalErrorException");
265
- var InternalErrorException = _InternalErrorException;
266
- var _InvalidParameterException = class _InvalidParameterException extends CognitoIdentityServiceException {
273
+ var InvalidParameterException = class _InvalidParameterException extends CognitoIdentityServiceException {
274
+ static {
275
+ __name(this, "InvalidParameterException");
276
+ }
277
+ name = "InvalidParameterException";
278
+ $fault = "client";
267
279
  /**
268
280
  * @internal
269
281
  */
@@ -273,14 +285,15 @@ var _InvalidParameterException = class _InvalidParameterException extends Cognit
273
285
  $fault: "client",
274
286
  ...opts
275
287
  });
276
- this.name = "InvalidParameterException";
277
- this.$fault = "client";
278
288
  Object.setPrototypeOf(this, _InvalidParameterException.prototype);
279
289
  }
280
290
  };
281
- __name(_InvalidParameterException, "InvalidParameterException");
282
- var InvalidParameterException = _InvalidParameterException;
283
- var _LimitExceededException = class _LimitExceededException extends CognitoIdentityServiceException {
291
+ var LimitExceededException = class _LimitExceededException extends CognitoIdentityServiceException {
292
+ static {
293
+ __name(this, "LimitExceededException");
294
+ }
295
+ name = "LimitExceededException";
296
+ $fault = "client";
284
297
  /**
285
298
  * @internal
286
299
  */
@@ -290,14 +303,15 @@ var _LimitExceededException = class _LimitExceededException extends CognitoIdent
290
303
  $fault: "client",
291
304
  ...opts
292
305
  });
293
- this.name = "LimitExceededException";
294
- this.$fault = "client";
295
306
  Object.setPrototypeOf(this, _LimitExceededException.prototype);
296
307
  }
297
308
  };
298
- __name(_LimitExceededException, "LimitExceededException");
299
- var LimitExceededException = _LimitExceededException;
300
- var _NotAuthorizedException = class _NotAuthorizedException extends CognitoIdentityServiceException {
309
+ var NotAuthorizedException = class _NotAuthorizedException extends CognitoIdentityServiceException {
310
+ static {
311
+ __name(this, "NotAuthorizedException");
312
+ }
313
+ name = "NotAuthorizedException";
314
+ $fault = "client";
301
315
  /**
302
316
  * @internal
303
317
  */
@@ -307,14 +321,15 @@ var _NotAuthorizedException = class _NotAuthorizedException extends CognitoIdent
307
321
  $fault: "client",
308
322
  ...opts
309
323
  });
310
- this.name = "NotAuthorizedException";
311
- this.$fault = "client";
312
324
  Object.setPrototypeOf(this, _NotAuthorizedException.prototype);
313
325
  }
314
326
  };
315
- __name(_NotAuthorizedException, "NotAuthorizedException");
316
- var NotAuthorizedException = _NotAuthorizedException;
317
- var _ResourceConflictException = class _ResourceConflictException extends CognitoIdentityServiceException {
327
+ var ResourceConflictException = class _ResourceConflictException extends CognitoIdentityServiceException {
328
+ static {
329
+ __name(this, "ResourceConflictException");
330
+ }
331
+ name = "ResourceConflictException";
332
+ $fault = "client";
318
333
  /**
319
334
  * @internal
320
335
  */
@@ -324,14 +339,15 @@ var _ResourceConflictException = class _ResourceConflictException extends Cognit
324
339
  $fault: "client",
325
340
  ...opts
326
341
  });
327
- this.name = "ResourceConflictException";
328
- this.$fault = "client";
329
342
  Object.setPrototypeOf(this, _ResourceConflictException.prototype);
330
343
  }
331
344
  };
332
- __name(_ResourceConflictException, "ResourceConflictException");
333
- var ResourceConflictException = _ResourceConflictException;
334
- var _TooManyRequestsException = class _TooManyRequestsException extends CognitoIdentityServiceException {
345
+ var TooManyRequestsException = class _TooManyRequestsException extends CognitoIdentityServiceException {
346
+ static {
347
+ __name(this, "TooManyRequestsException");
348
+ }
349
+ name = "TooManyRequestsException";
350
+ $fault = "client";
335
351
  /**
336
352
  * @internal
337
353
  */
@@ -341,18 +357,19 @@ var _TooManyRequestsException = class _TooManyRequestsException extends CognitoI
341
357
  $fault: "client",
342
358
  ...opts
343
359
  });
344
- this.name = "TooManyRequestsException";
345
- this.$fault = "client";
346
360
  Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
347
361
  }
348
362
  };
349
- __name(_TooManyRequestsException, "TooManyRequestsException");
350
- var TooManyRequestsException = _TooManyRequestsException;
351
363
  var ErrorCode = {
352
364
  ACCESS_DENIED: "AccessDenied",
353
365
  INTERNAL_SERVER_ERROR: "InternalServerError"
354
366
  };
355
- var _ResourceNotFoundException = class _ResourceNotFoundException extends CognitoIdentityServiceException {
367
+ var ResourceNotFoundException = class _ResourceNotFoundException extends CognitoIdentityServiceException {
368
+ static {
369
+ __name(this, "ResourceNotFoundException");
370
+ }
371
+ name = "ResourceNotFoundException";
372
+ $fault = "client";
356
373
  /**
357
374
  * @internal
358
375
  */
@@ -362,14 +379,15 @@ var _ResourceNotFoundException = class _ResourceNotFoundException extends Cognit
362
379
  $fault: "client",
363
380
  ...opts
364
381
  });
365
- this.name = "ResourceNotFoundException";
366
- this.$fault = "client";
367
382
  Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
368
383
  }
369
384
  };
370
- __name(_ResourceNotFoundException, "ResourceNotFoundException");
371
- var ResourceNotFoundException = _ResourceNotFoundException;
372
- var _ExternalServiceException = class _ExternalServiceException extends CognitoIdentityServiceException {
385
+ var ExternalServiceException = class _ExternalServiceException extends CognitoIdentityServiceException {
386
+ static {
387
+ __name(this, "ExternalServiceException");
388
+ }
389
+ name = "ExternalServiceException";
390
+ $fault = "client";
373
391
  /**
374
392
  * @internal
375
393
  */
@@ -379,14 +397,15 @@ var _ExternalServiceException = class _ExternalServiceException extends CognitoI
379
397
  $fault: "client",
380
398
  ...opts
381
399
  });
382
- this.name = "ExternalServiceException";
383
- this.$fault = "client";
384
400
  Object.setPrototypeOf(this, _ExternalServiceException.prototype);
385
401
  }
386
402
  };
387
- __name(_ExternalServiceException, "ExternalServiceException");
388
- var ExternalServiceException = _ExternalServiceException;
389
- var _InvalidIdentityPoolConfigurationException = class _InvalidIdentityPoolConfigurationException extends CognitoIdentityServiceException {
403
+ var InvalidIdentityPoolConfigurationException = class _InvalidIdentityPoolConfigurationException extends CognitoIdentityServiceException {
404
+ static {
405
+ __name(this, "InvalidIdentityPoolConfigurationException");
406
+ }
407
+ name = "InvalidIdentityPoolConfigurationException";
408
+ $fault = "client";
390
409
  /**
391
410
  * @internal
392
411
  */
@@ -396,13 +415,9 @@ var _InvalidIdentityPoolConfigurationException = class _InvalidIdentityPoolConfi
396
415
  $fault: "client",
397
416
  ...opts
398
417
  });
399
- this.name = "InvalidIdentityPoolConfigurationException";
400
- this.$fault = "client";
401
418
  Object.setPrototypeOf(this, _InvalidIdentityPoolConfigurationException.prototype);
402
419
  }
403
420
  };
404
- __name(_InvalidIdentityPoolConfigurationException, "InvalidIdentityPoolConfigurationException");
405
- var InvalidIdentityPoolConfigurationException = _InvalidIdentityPoolConfigurationException;
406
421
  var MappingRuleMatchType = {
407
422
  CONTAINS: "Contains",
408
423
  EQUALS: "Equals",
@@ -413,7 +428,12 @@ var RoleMappingType = {
413
428
  RULES: "Rules",
414
429
  TOKEN: "Token"
415
430
  };
416
- var _DeveloperUserAlreadyRegisteredException = class _DeveloperUserAlreadyRegisteredException extends CognitoIdentityServiceException {
431
+ var DeveloperUserAlreadyRegisteredException = class _DeveloperUserAlreadyRegisteredException extends CognitoIdentityServiceException {
432
+ static {
433
+ __name(this, "DeveloperUserAlreadyRegisteredException");
434
+ }
435
+ name = "DeveloperUserAlreadyRegisteredException";
436
+ $fault = "client";
417
437
  /**
418
438
  * @internal
419
439
  */
@@ -423,14 +443,15 @@ var _DeveloperUserAlreadyRegisteredException = class _DeveloperUserAlreadyRegist
423
443
  $fault: "client",
424
444
  ...opts
425
445
  });
426
- this.name = "DeveloperUserAlreadyRegisteredException";
427
- this.$fault = "client";
428
446
  Object.setPrototypeOf(this, _DeveloperUserAlreadyRegisteredException.prototype);
429
447
  }
430
448
  };
431
- __name(_DeveloperUserAlreadyRegisteredException, "DeveloperUserAlreadyRegisteredException");
432
- var DeveloperUserAlreadyRegisteredException = _DeveloperUserAlreadyRegisteredException;
433
- var _ConcurrentModificationException = class _ConcurrentModificationException extends CognitoIdentityServiceException {
449
+ var ConcurrentModificationException = class _ConcurrentModificationException extends CognitoIdentityServiceException {
450
+ static {
451
+ __name(this, "ConcurrentModificationException");
452
+ }
453
+ name = "ConcurrentModificationException";
454
+ $fault = "client";
434
455
  /**
435
456
  * @internal
436
457
  */
@@ -440,13 +461,9 @@ var _ConcurrentModificationException = class _ConcurrentModificationException ex
440
461
  $fault: "client",
441
462
  ...opts
442
463
  });
443
- this.name = "ConcurrentModificationException";
444
- this.$fault = "client";
445
464
  Object.setPrototypeOf(this, _ConcurrentModificationException.prototype);
446
465
  }
447
466
  };
448
- __name(_ConcurrentModificationException, "ConcurrentModificationException");
449
- var ConcurrentModificationException = _ConcurrentModificationException;
450
467
  var GetCredentialsForIdentityInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
451
468
  ...obj,
452
469
  ...obj.Logins && { Logins: import_smithy_client.SENSITIVE_STRING }
@@ -1127,133 +1144,142 @@ function sharedHeaders(operation) {
1127
1144
  __name(sharedHeaders, "sharedHeaders");
1128
1145
 
1129
1146
  // src/commands/CreateIdentityPoolCommand.ts
1130
- var _CreateIdentityPoolCommand = class _CreateIdentityPoolCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1147
+ var CreateIdentityPoolCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1131
1148
  return [
1132
1149
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1133
1150
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1134
1151
  ];
1135
1152
  }).s("AWSCognitoIdentityService", "CreateIdentityPool", {}).n("CognitoIdentityClient", "CreateIdentityPoolCommand").f(void 0, void 0).ser(se_CreateIdentityPoolCommand).de(de_CreateIdentityPoolCommand).build() {
1153
+ static {
1154
+ __name(this, "CreateIdentityPoolCommand");
1155
+ }
1136
1156
  };
1137
- __name(_CreateIdentityPoolCommand, "CreateIdentityPoolCommand");
1138
- var CreateIdentityPoolCommand = _CreateIdentityPoolCommand;
1139
1157
 
1140
1158
  // src/commands/DeleteIdentitiesCommand.ts
1141
1159
 
1142
1160
 
1143
1161
 
1144
- var _DeleteIdentitiesCommand = class _DeleteIdentitiesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1162
+ var DeleteIdentitiesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1145
1163
  return [
1146
1164
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1147
1165
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1148
1166
  ];
1149
1167
  }).s("AWSCognitoIdentityService", "DeleteIdentities", {}).n("CognitoIdentityClient", "DeleteIdentitiesCommand").f(void 0, void 0).ser(se_DeleteIdentitiesCommand).de(de_DeleteIdentitiesCommand).build() {
1168
+ static {
1169
+ __name(this, "DeleteIdentitiesCommand");
1170
+ }
1150
1171
  };
1151
- __name(_DeleteIdentitiesCommand, "DeleteIdentitiesCommand");
1152
- var DeleteIdentitiesCommand = _DeleteIdentitiesCommand;
1153
1172
 
1154
1173
  // src/commands/DeleteIdentityPoolCommand.ts
1155
1174
 
1156
1175
 
1157
1176
 
1158
- var _DeleteIdentityPoolCommand = class _DeleteIdentityPoolCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1177
+ var DeleteIdentityPoolCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1159
1178
  return [
1160
1179
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1161
1180
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1162
1181
  ];
1163
1182
  }).s("AWSCognitoIdentityService", "DeleteIdentityPool", {}).n("CognitoIdentityClient", "DeleteIdentityPoolCommand").f(void 0, void 0).ser(se_DeleteIdentityPoolCommand).de(de_DeleteIdentityPoolCommand).build() {
1183
+ static {
1184
+ __name(this, "DeleteIdentityPoolCommand");
1185
+ }
1164
1186
  };
1165
- __name(_DeleteIdentityPoolCommand, "DeleteIdentityPoolCommand");
1166
- var DeleteIdentityPoolCommand = _DeleteIdentityPoolCommand;
1167
1187
 
1168
1188
  // src/commands/DescribeIdentityCommand.ts
1169
1189
 
1170
1190
 
1171
1191
 
1172
- var _DescribeIdentityCommand = class _DescribeIdentityCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1192
+ var DescribeIdentityCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1173
1193
  return [
1174
1194
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1175
1195
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1176
1196
  ];
1177
1197
  }).s("AWSCognitoIdentityService", "DescribeIdentity", {}).n("CognitoIdentityClient", "DescribeIdentityCommand").f(void 0, void 0).ser(se_DescribeIdentityCommand).de(de_DescribeIdentityCommand).build() {
1198
+ static {
1199
+ __name(this, "DescribeIdentityCommand");
1200
+ }
1178
1201
  };
1179
- __name(_DescribeIdentityCommand, "DescribeIdentityCommand");
1180
- var DescribeIdentityCommand = _DescribeIdentityCommand;
1181
1202
 
1182
1203
  // src/commands/DescribeIdentityPoolCommand.ts
1183
1204
 
1184
1205
 
1185
1206
 
1186
- var _DescribeIdentityPoolCommand = class _DescribeIdentityPoolCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1207
+ var DescribeIdentityPoolCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1187
1208
  return [
1188
1209
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1189
1210
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1190
1211
  ];
1191
1212
  }).s("AWSCognitoIdentityService", "DescribeIdentityPool", {}).n("CognitoIdentityClient", "DescribeIdentityPoolCommand").f(void 0, void 0).ser(se_DescribeIdentityPoolCommand).de(de_DescribeIdentityPoolCommand).build() {
1213
+ static {
1214
+ __name(this, "DescribeIdentityPoolCommand");
1215
+ }
1192
1216
  };
1193
- __name(_DescribeIdentityPoolCommand, "DescribeIdentityPoolCommand");
1194
- var DescribeIdentityPoolCommand = _DescribeIdentityPoolCommand;
1195
1217
 
1196
1218
  // src/commands/GetCredentialsForIdentityCommand.ts
1197
1219
 
1198
1220
 
1199
1221
 
1200
- var _GetCredentialsForIdentityCommand = class _GetCredentialsForIdentityCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1222
+ var GetCredentialsForIdentityCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1201
1223
  return [
1202
1224
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1203
1225
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1204
1226
  ];
1205
1227
  }).s("AWSCognitoIdentityService", "GetCredentialsForIdentity", {}).n("CognitoIdentityClient", "GetCredentialsForIdentityCommand").f(GetCredentialsForIdentityInputFilterSensitiveLog, GetCredentialsForIdentityResponseFilterSensitiveLog).ser(se_GetCredentialsForIdentityCommand).de(de_GetCredentialsForIdentityCommand).build() {
1228
+ static {
1229
+ __name(this, "GetCredentialsForIdentityCommand");
1230
+ }
1206
1231
  };
1207
- __name(_GetCredentialsForIdentityCommand, "GetCredentialsForIdentityCommand");
1208
- var GetCredentialsForIdentityCommand = _GetCredentialsForIdentityCommand;
1209
1232
 
1210
1233
  // src/commands/GetIdCommand.ts
1211
1234
 
1212
1235
 
1213
1236
 
1214
- var _GetIdCommand = class _GetIdCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1237
+ var GetIdCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1215
1238
  return [
1216
1239
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1217
1240
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1218
1241
  ];
1219
1242
  }).s("AWSCognitoIdentityService", "GetId", {}).n("CognitoIdentityClient", "GetIdCommand").f(GetIdInputFilterSensitiveLog, void 0).ser(se_GetIdCommand).de(de_GetIdCommand).build() {
1243
+ static {
1244
+ __name(this, "GetIdCommand");
1245
+ }
1220
1246
  };
1221
- __name(_GetIdCommand, "GetIdCommand");
1222
- var GetIdCommand = _GetIdCommand;
1223
1247
 
1224
1248
  // src/commands/GetIdentityPoolRolesCommand.ts
1225
1249
 
1226
1250
 
1227
1251
 
1228
- var _GetIdentityPoolRolesCommand = class _GetIdentityPoolRolesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1252
+ var GetIdentityPoolRolesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1229
1253
  return [
1230
1254
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1231
1255
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1232
1256
  ];
1233
1257
  }).s("AWSCognitoIdentityService", "GetIdentityPoolRoles", {}).n("CognitoIdentityClient", "GetIdentityPoolRolesCommand").f(void 0, void 0).ser(se_GetIdentityPoolRolesCommand).de(de_GetIdentityPoolRolesCommand).build() {
1258
+ static {
1259
+ __name(this, "GetIdentityPoolRolesCommand");
1260
+ }
1234
1261
  };
1235
- __name(_GetIdentityPoolRolesCommand, "GetIdentityPoolRolesCommand");
1236
- var GetIdentityPoolRolesCommand = _GetIdentityPoolRolesCommand;
1237
1262
 
1238
1263
  // src/commands/GetOpenIdTokenCommand.ts
1239
1264
 
1240
1265
 
1241
1266
 
1242
- var _GetOpenIdTokenCommand = class _GetOpenIdTokenCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1267
+ var GetOpenIdTokenCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1243
1268
  return [
1244
1269
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1245
1270
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1246
1271
  ];
1247
1272
  }).s("AWSCognitoIdentityService", "GetOpenIdToken", {}).n("CognitoIdentityClient", "GetOpenIdTokenCommand").f(GetOpenIdTokenInputFilterSensitiveLog, GetOpenIdTokenResponseFilterSensitiveLog).ser(se_GetOpenIdTokenCommand).de(de_GetOpenIdTokenCommand).build() {
1273
+ static {
1274
+ __name(this, "GetOpenIdTokenCommand");
1275
+ }
1248
1276
  };
1249
- __name(_GetOpenIdTokenCommand, "GetOpenIdTokenCommand");
1250
- var GetOpenIdTokenCommand = _GetOpenIdTokenCommand;
1251
1277
 
1252
1278
  // src/commands/GetOpenIdTokenForDeveloperIdentityCommand.ts
1253
1279
 
1254
1280
 
1255
1281
 
1256
- var _GetOpenIdTokenForDeveloperIdentityCommand = class _GetOpenIdTokenForDeveloperIdentityCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1282
+ var GetOpenIdTokenForDeveloperIdentityCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1257
1283
  return [
1258
1284
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1259
1285
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1262,191 +1288,205 @@ var _GetOpenIdTokenForDeveloperIdentityCommand = class _GetOpenIdTokenForDevelop
1262
1288
  GetOpenIdTokenForDeveloperIdentityInputFilterSensitiveLog,
1263
1289
  GetOpenIdTokenForDeveloperIdentityResponseFilterSensitiveLog
1264
1290
  ).ser(se_GetOpenIdTokenForDeveloperIdentityCommand).de(de_GetOpenIdTokenForDeveloperIdentityCommand).build() {
1291
+ static {
1292
+ __name(this, "GetOpenIdTokenForDeveloperIdentityCommand");
1293
+ }
1265
1294
  };
1266
- __name(_GetOpenIdTokenForDeveloperIdentityCommand, "GetOpenIdTokenForDeveloperIdentityCommand");
1267
- var GetOpenIdTokenForDeveloperIdentityCommand = _GetOpenIdTokenForDeveloperIdentityCommand;
1268
1295
 
1269
1296
  // src/commands/GetPrincipalTagAttributeMapCommand.ts
1270
1297
 
1271
1298
 
1272
1299
 
1273
- var _GetPrincipalTagAttributeMapCommand = class _GetPrincipalTagAttributeMapCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1300
+ var GetPrincipalTagAttributeMapCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1274
1301
  return [
1275
1302
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1276
1303
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1277
1304
  ];
1278
1305
  }).s("AWSCognitoIdentityService", "GetPrincipalTagAttributeMap", {}).n("CognitoIdentityClient", "GetPrincipalTagAttributeMapCommand").f(void 0, void 0).ser(se_GetPrincipalTagAttributeMapCommand).de(de_GetPrincipalTagAttributeMapCommand).build() {
1306
+ static {
1307
+ __name(this, "GetPrincipalTagAttributeMapCommand");
1308
+ }
1279
1309
  };
1280
- __name(_GetPrincipalTagAttributeMapCommand, "GetPrincipalTagAttributeMapCommand");
1281
- var GetPrincipalTagAttributeMapCommand = _GetPrincipalTagAttributeMapCommand;
1282
1310
 
1283
1311
  // src/commands/ListIdentitiesCommand.ts
1284
1312
 
1285
1313
 
1286
1314
 
1287
- var _ListIdentitiesCommand = class _ListIdentitiesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1315
+ var ListIdentitiesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1288
1316
  return [
1289
1317
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1290
1318
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1291
1319
  ];
1292
1320
  }).s("AWSCognitoIdentityService", "ListIdentities", {}).n("CognitoIdentityClient", "ListIdentitiesCommand").f(void 0, void 0).ser(se_ListIdentitiesCommand).de(de_ListIdentitiesCommand).build() {
1321
+ static {
1322
+ __name(this, "ListIdentitiesCommand");
1323
+ }
1293
1324
  };
1294
- __name(_ListIdentitiesCommand, "ListIdentitiesCommand");
1295
- var ListIdentitiesCommand = _ListIdentitiesCommand;
1296
1325
 
1297
1326
  // src/commands/ListIdentityPoolsCommand.ts
1298
1327
 
1299
1328
 
1300
1329
 
1301
- var _ListIdentityPoolsCommand = class _ListIdentityPoolsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1330
+ var ListIdentityPoolsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1302
1331
  return [
1303
1332
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1304
1333
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1305
1334
  ];
1306
1335
  }).s("AWSCognitoIdentityService", "ListIdentityPools", {}).n("CognitoIdentityClient", "ListIdentityPoolsCommand").f(void 0, void 0).ser(se_ListIdentityPoolsCommand).de(de_ListIdentityPoolsCommand).build() {
1336
+ static {
1337
+ __name(this, "ListIdentityPoolsCommand");
1338
+ }
1307
1339
  };
1308
- __name(_ListIdentityPoolsCommand, "ListIdentityPoolsCommand");
1309
- var ListIdentityPoolsCommand = _ListIdentityPoolsCommand;
1310
1340
 
1311
1341
  // src/commands/ListTagsForResourceCommand.ts
1312
1342
 
1313
1343
 
1314
1344
 
1315
- var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1345
+ var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1316
1346
  return [
1317
1347
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1318
1348
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1319
1349
  ];
1320
1350
  }).s("AWSCognitoIdentityService", "ListTagsForResource", {}).n("CognitoIdentityClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1351
+ static {
1352
+ __name(this, "ListTagsForResourceCommand");
1353
+ }
1321
1354
  };
1322
- __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
1323
- var ListTagsForResourceCommand = _ListTagsForResourceCommand;
1324
1355
 
1325
1356
  // src/commands/LookupDeveloperIdentityCommand.ts
1326
1357
 
1327
1358
 
1328
1359
 
1329
- var _LookupDeveloperIdentityCommand = class _LookupDeveloperIdentityCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1360
+ var LookupDeveloperIdentityCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1330
1361
  return [
1331
1362
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1332
1363
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1333
1364
  ];
1334
1365
  }).s("AWSCognitoIdentityService", "LookupDeveloperIdentity", {}).n("CognitoIdentityClient", "LookupDeveloperIdentityCommand").f(void 0, void 0).ser(se_LookupDeveloperIdentityCommand).de(de_LookupDeveloperIdentityCommand).build() {
1366
+ static {
1367
+ __name(this, "LookupDeveloperIdentityCommand");
1368
+ }
1335
1369
  };
1336
- __name(_LookupDeveloperIdentityCommand, "LookupDeveloperIdentityCommand");
1337
- var LookupDeveloperIdentityCommand = _LookupDeveloperIdentityCommand;
1338
1370
 
1339
1371
  // src/commands/MergeDeveloperIdentitiesCommand.ts
1340
1372
 
1341
1373
 
1342
1374
 
1343
- var _MergeDeveloperIdentitiesCommand = class _MergeDeveloperIdentitiesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1375
+ var MergeDeveloperIdentitiesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1344
1376
  return [
1345
1377
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1346
1378
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1347
1379
  ];
1348
1380
  }).s("AWSCognitoIdentityService", "MergeDeveloperIdentities", {}).n("CognitoIdentityClient", "MergeDeveloperIdentitiesCommand").f(void 0, void 0).ser(se_MergeDeveloperIdentitiesCommand).de(de_MergeDeveloperIdentitiesCommand).build() {
1381
+ static {
1382
+ __name(this, "MergeDeveloperIdentitiesCommand");
1383
+ }
1349
1384
  };
1350
- __name(_MergeDeveloperIdentitiesCommand, "MergeDeveloperIdentitiesCommand");
1351
- var MergeDeveloperIdentitiesCommand = _MergeDeveloperIdentitiesCommand;
1352
1385
 
1353
1386
  // src/commands/SetIdentityPoolRolesCommand.ts
1354
1387
 
1355
1388
 
1356
1389
 
1357
- var _SetIdentityPoolRolesCommand = class _SetIdentityPoolRolesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1390
+ var SetIdentityPoolRolesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1358
1391
  return [
1359
1392
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1360
1393
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1361
1394
  ];
1362
1395
  }).s("AWSCognitoIdentityService", "SetIdentityPoolRoles", {}).n("CognitoIdentityClient", "SetIdentityPoolRolesCommand").f(void 0, void 0).ser(se_SetIdentityPoolRolesCommand).de(de_SetIdentityPoolRolesCommand).build() {
1396
+ static {
1397
+ __name(this, "SetIdentityPoolRolesCommand");
1398
+ }
1363
1399
  };
1364
- __name(_SetIdentityPoolRolesCommand, "SetIdentityPoolRolesCommand");
1365
- var SetIdentityPoolRolesCommand = _SetIdentityPoolRolesCommand;
1366
1400
 
1367
1401
  // src/commands/SetPrincipalTagAttributeMapCommand.ts
1368
1402
 
1369
1403
 
1370
1404
 
1371
- var _SetPrincipalTagAttributeMapCommand = class _SetPrincipalTagAttributeMapCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1405
+ var SetPrincipalTagAttributeMapCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1372
1406
  return [
1373
1407
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1374
1408
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1375
1409
  ];
1376
1410
  }).s("AWSCognitoIdentityService", "SetPrincipalTagAttributeMap", {}).n("CognitoIdentityClient", "SetPrincipalTagAttributeMapCommand").f(void 0, void 0).ser(se_SetPrincipalTagAttributeMapCommand).de(de_SetPrincipalTagAttributeMapCommand).build() {
1411
+ static {
1412
+ __name(this, "SetPrincipalTagAttributeMapCommand");
1413
+ }
1377
1414
  };
1378
- __name(_SetPrincipalTagAttributeMapCommand, "SetPrincipalTagAttributeMapCommand");
1379
- var SetPrincipalTagAttributeMapCommand = _SetPrincipalTagAttributeMapCommand;
1380
1415
 
1381
1416
  // src/commands/TagResourceCommand.ts
1382
1417
 
1383
1418
 
1384
1419
 
1385
- var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1420
+ var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1386
1421
  return [
1387
1422
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1388
1423
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1389
1424
  ];
1390
1425
  }).s("AWSCognitoIdentityService", "TagResource", {}).n("CognitoIdentityClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1426
+ static {
1427
+ __name(this, "TagResourceCommand");
1428
+ }
1391
1429
  };
1392
- __name(_TagResourceCommand, "TagResourceCommand");
1393
- var TagResourceCommand = _TagResourceCommand;
1394
1430
 
1395
1431
  // src/commands/UnlinkDeveloperIdentityCommand.ts
1396
1432
 
1397
1433
 
1398
1434
 
1399
- var _UnlinkDeveloperIdentityCommand = class _UnlinkDeveloperIdentityCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1435
+ var UnlinkDeveloperIdentityCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1400
1436
  return [
1401
1437
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1402
1438
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1403
1439
  ];
1404
1440
  }).s("AWSCognitoIdentityService", "UnlinkDeveloperIdentity", {}).n("CognitoIdentityClient", "UnlinkDeveloperIdentityCommand").f(void 0, void 0).ser(se_UnlinkDeveloperIdentityCommand).de(de_UnlinkDeveloperIdentityCommand).build() {
1441
+ static {
1442
+ __name(this, "UnlinkDeveloperIdentityCommand");
1443
+ }
1405
1444
  };
1406
- __name(_UnlinkDeveloperIdentityCommand, "UnlinkDeveloperIdentityCommand");
1407
- var UnlinkDeveloperIdentityCommand = _UnlinkDeveloperIdentityCommand;
1408
1445
 
1409
1446
  // src/commands/UnlinkIdentityCommand.ts
1410
1447
 
1411
1448
 
1412
1449
 
1413
- var _UnlinkIdentityCommand = class _UnlinkIdentityCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1450
+ var UnlinkIdentityCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1414
1451
  return [
1415
1452
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1416
1453
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1417
1454
  ];
1418
1455
  }).s("AWSCognitoIdentityService", "UnlinkIdentity", {}).n("CognitoIdentityClient", "UnlinkIdentityCommand").f(UnlinkIdentityInputFilterSensitiveLog, void 0).ser(se_UnlinkIdentityCommand).de(de_UnlinkIdentityCommand).build() {
1456
+ static {
1457
+ __name(this, "UnlinkIdentityCommand");
1458
+ }
1419
1459
  };
1420
- __name(_UnlinkIdentityCommand, "UnlinkIdentityCommand");
1421
- var UnlinkIdentityCommand = _UnlinkIdentityCommand;
1422
1460
 
1423
1461
  // src/commands/UntagResourceCommand.ts
1424
1462
 
1425
1463
 
1426
1464
 
1427
- var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1465
+ var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1428
1466
  return [
1429
1467
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1430
1468
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1431
1469
  ];
1432
1470
  }).s("AWSCognitoIdentityService", "UntagResource", {}).n("CognitoIdentityClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1471
+ static {
1472
+ __name(this, "UntagResourceCommand");
1473
+ }
1433
1474
  };
1434
- __name(_UntagResourceCommand, "UntagResourceCommand");
1435
- var UntagResourceCommand = _UntagResourceCommand;
1436
1475
 
1437
1476
  // src/commands/UpdateIdentityPoolCommand.ts
1438
1477
 
1439
1478
 
1440
1479
 
1441
- var _UpdateIdentityPoolCommand = class _UpdateIdentityPoolCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1480
+ var UpdateIdentityPoolCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1442
1481
  return [
1443
1482
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1444
1483
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1445
1484
  ];
1446
1485
  }).s("AWSCognitoIdentityService", "UpdateIdentityPool", {}).n("CognitoIdentityClient", "UpdateIdentityPoolCommand").f(void 0, void 0).ser(se_UpdateIdentityPoolCommand).de(de_UpdateIdentityPoolCommand).build() {
1486
+ static {
1487
+ __name(this, "UpdateIdentityPoolCommand");
1488
+ }
1447
1489
  };
1448
- __name(_UpdateIdentityPoolCommand, "UpdateIdentityPoolCommand");
1449
- var UpdateIdentityPoolCommand = _UpdateIdentityPoolCommand;
1450
1490
 
1451
1491
  // src/CognitoIdentity.ts
1452
1492
  var commands = {
@@ -1474,10 +1514,11 @@ var commands = {
1474
1514
  UntagResourceCommand,
1475
1515
  UpdateIdentityPoolCommand
1476
1516
  };
1477
- var _CognitoIdentity = class _CognitoIdentity extends CognitoIdentityClient {
1517
+ var CognitoIdentity = class extends CognitoIdentityClient {
1518
+ static {
1519
+ __name(this, "CognitoIdentity");
1520
+ }
1478
1521
  };
1479
- __name(_CognitoIdentity, "CognitoIdentity");
1480
- var CognitoIdentity = _CognitoIdentity;
1481
1522
  (0, import_smithy_client.createAggregatedClient)(commands, CognitoIdentity);
1482
1523
 
1483
1524
  // src/pagination/ListIdentityPoolsPaginator.ts
@@ -14,6 +14,7 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
14
14
  import { resolveRuntimeExtensions } from "./runtimeExtensions";
15
15
  export { __Client };
16
16
  export class CognitoIdentityClient extends __Client {
17
+ config;
17
18
  constructor(...[configuration]) {
18
19
  const _config_0 = __getRuntimeConfig(configuration || {});
19
20
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -5,74 +5,74 @@ export const AmbiguousRoleResolutionType = {
5
5
  DENY: "Deny",
6
6
  };
7
7
  export class InternalErrorException extends __BaseException {
8
+ name = "InternalErrorException";
9
+ $fault = "server";
8
10
  constructor(opts) {
9
11
  super({
10
12
  name: "InternalErrorException",
11
13
  $fault: "server",
12
14
  ...opts,
13
15
  });
14
- this.name = "InternalErrorException";
15
- this.$fault = "server";
16
16
  Object.setPrototypeOf(this, InternalErrorException.prototype);
17
17
  }
18
18
  }
19
19
  export class InvalidParameterException extends __BaseException {
20
+ name = "InvalidParameterException";
21
+ $fault = "client";
20
22
  constructor(opts) {
21
23
  super({
22
24
  name: "InvalidParameterException",
23
25
  $fault: "client",
24
26
  ...opts,
25
27
  });
26
- this.name = "InvalidParameterException";
27
- this.$fault = "client";
28
28
  Object.setPrototypeOf(this, InvalidParameterException.prototype);
29
29
  }
30
30
  }
31
31
  export class LimitExceededException extends __BaseException {
32
+ name = "LimitExceededException";
33
+ $fault = "client";
32
34
  constructor(opts) {
33
35
  super({
34
36
  name: "LimitExceededException",
35
37
  $fault: "client",
36
38
  ...opts,
37
39
  });
38
- this.name = "LimitExceededException";
39
- this.$fault = "client";
40
40
  Object.setPrototypeOf(this, LimitExceededException.prototype);
41
41
  }
42
42
  }
43
43
  export class NotAuthorizedException extends __BaseException {
44
+ name = "NotAuthorizedException";
45
+ $fault = "client";
44
46
  constructor(opts) {
45
47
  super({
46
48
  name: "NotAuthorizedException",
47
49
  $fault: "client",
48
50
  ...opts,
49
51
  });
50
- this.name = "NotAuthorizedException";
51
- this.$fault = "client";
52
52
  Object.setPrototypeOf(this, NotAuthorizedException.prototype);
53
53
  }
54
54
  }
55
55
  export class ResourceConflictException extends __BaseException {
56
+ name = "ResourceConflictException";
57
+ $fault = "client";
56
58
  constructor(opts) {
57
59
  super({
58
60
  name: "ResourceConflictException",
59
61
  $fault: "client",
60
62
  ...opts,
61
63
  });
62
- this.name = "ResourceConflictException";
63
- this.$fault = "client";
64
64
  Object.setPrototypeOf(this, ResourceConflictException.prototype);
65
65
  }
66
66
  }
67
67
  export class TooManyRequestsException extends __BaseException {
68
+ name = "TooManyRequestsException";
69
+ $fault = "client";
68
70
  constructor(opts) {
69
71
  super({
70
72
  name: "TooManyRequestsException",
71
73
  $fault: "client",
72
74
  ...opts,
73
75
  });
74
- this.name = "TooManyRequestsException";
75
- this.$fault = "client";
76
76
  Object.setPrototypeOf(this, TooManyRequestsException.prototype);
77
77
  }
78
78
  }
@@ -81,38 +81,38 @@ export const ErrorCode = {
81
81
  INTERNAL_SERVER_ERROR: "InternalServerError",
82
82
  };
83
83
  export class ResourceNotFoundException extends __BaseException {
84
+ name = "ResourceNotFoundException";
85
+ $fault = "client";
84
86
  constructor(opts) {
85
87
  super({
86
88
  name: "ResourceNotFoundException",
87
89
  $fault: "client",
88
90
  ...opts,
89
91
  });
90
- this.name = "ResourceNotFoundException";
91
- this.$fault = "client";
92
92
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
93
93
  }
94
94
  }
95
95
  export class ExternalServiceException extends __BaseException {
96
+ name = "ExternalServiceException";
97
+ $fault = "client";
96
98
  constructor(opts) {
97
99
  super({
98
100
  name: "ExternalServiceException",
99
101
  $fault: "client",
100
102
  ...opts,
101
103
  });
102
- this.name = "ExternalServiceException";
103
- this.$fault = "client";
104
104
  Object.setPrototypeOf(this, ExternalServiceException.prototype);
105
105
  }
106
106
  }
107
107
  export class InvalidIdentityPoolConfigurationException extends __BaseException {
108
+ name = "InvalidIdentityPoolConfigurationException";
109
+ $fault = "client";
108
110
  constructor(opts) {
109
111
  super({
110
112
  name: "InvalidIdentityPoolConfigurationException",
111
113
  $fault: "client",
112
114
  ...opts,
113
115
  });
114
- this.name = "InvalidIdentityPoolConfigurationException";
115
- this.$fault = "client";
116
116
  Object.setPrototypeOf(this, InvalidIdentityPoolConfigurationException.prototype);
117
117
  }
118
118
  }
@@ -127,26 +127,26 @@ export const RoleMappingType = {
127
127
  TOKEN: "Token",
128
128
  };
129
129
  export class DeveloperUserAlreadyRegisteredException extends __BaseException {
130
+ name = "DeveloperUserAlreadyRegisteredException";
131
+ $fault = "client";
130
132
  constructor(opts) {
131
133
  super({
132
134
  name: "DeveloperUserAlreadyRegisteredException",
133
135
  $fault: "client",
134
136
  ...opts,
135
137
  });
136
- this.name = "DeveloperUserAlreadyRegisteredException";
137
- this.$fault = "client";
138
138
  Object.setPrototypeOf(this, DeveloperUserAlreadyRegisteredException.prototype);
139
139
  }
140
140
  }
141
141
  export class ConcurrentModificationException extends __BaseException {
142
+ name = "ConcurrentModificationException";
143
+ $fault = "client";
142
144
  constructor(opts) {
143
145
  super({
144
146
  name: "ConcurrentModificationException",
145
147
  $fault: "client",
146
148
  ...opts,
147
149
  });
148
- this.name = "ConcurrentModificationException";
149
- this.$fault = "client";
150
150
  Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
151
151
  }
152
152
  }
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: CognitoIdentityClientConfig) =>
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: CognitoIdentityClientConfig) =>
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<string>;
@@ -22,7 +22,7 @@ export declare const getRuntimeConfig: (config: CognitoIdentityClientConfig) =>
22
22
  region: string | import("@smithy/types").Provider<any>;
23
23
  profile?: string | undefined;
24
24
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
25
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
26
26
  maxAttempts: number | import("@smithy/types").Provider<number>;
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
@@ -31,7 +31,7 @@ export declare const getRuntimeConfig: (config: CognitoIdentityClientConfig) =>
31
31
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
32
32
  userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
33
33
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
34
- endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
34
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
35
35
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
36
36
  logger?: import("@smithy/types").Logger | undefined;
37
37
  }) => import("@smithy/types").EndpointV2;
@@ -8,9 +8,11 @@ export declare const getRuntimeConfig: (
8
8
  import("@smithy/smithy-client").ResolvedDefaultsMode
9
9
  >;
10
10
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
11
- credentialDefaultProvider: (
12
- input: any
13
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
11
+ credentialDefaultProvider:
12
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
13
+ | ((
14
+ _: unknown
15
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
14
16
  defaultUserAgentProvider: (
15
17
  config?:
16
18
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
@@ -8,13 +8,15 @@ export declare const getRuntimeConfig: (
8
8
  import("@smithy/smithy-client").ResolvedDefaultsMode
9
9
  >;
10
10
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
11
- credentialDefaultProvider: (
12
- init?:
13
- | import("@aws-sdk/credential-provider-node").DefaultProviderInit
14
- | undefined
15
- ) => import("@smithy/types").MemoizedProvider<
16
- import("@smithy/types").AwsCredentialIdentity
17
- >;
11
+ credentialDefaultProvider:
12
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
13
+ | ((
14
+ init?:
15
+ | import("@aws-sdk/credential-provider-node").DefaultProviderInit
16
+ | undefined
17
+ ) => import("@smithy/types").MemoizedProvider<
18
+ import("@smithy/types").AwsCredentialIdentity
19
+ >);
18
20
  defaultUserAgentProvider: (
19
21
  config?:
20
22
  | import("@aws-sdk/util-user-agent-node").PreviouslyResolved
@@ -30,9 +30,11 @@ export declare const getRuntimeConfig: (
30
30
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
31
31
  | undefined
32
32
  ) => Promise<import("@smithy/types").UserAgent>;
33
- credentialDefaultProvider: (
34
- input: any
35
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
33
+ credentialDefaultProvider:
34
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
35
+ | ((
36
+ _: unknown
37
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
36
38
  maxAttempts: number | import("@smithy/types").Provider<number>;
37
39
  retryMode: string | import("@smithy/types").Provider<string>;
38
40
  logger: import("@smithy/types").Logger;
@@ -52,11 +54,21 @@ export declare const getRuntimeConfig: (
52
54
  | import("@smithy/types").RetryStrategyV2
53
55
  | undefined;
54
56
  endpoint?:
55
- | string
56
- | import("@smithy/types").Endpoint
57
- | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
58
- | import("@smithy/types").EndpointV2
59
- | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
57
+ | ((
58
+ | string
59
+ | import("@smithy/types").Endpoint
60
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
61
+ | import("@smithy/types").EndpointV2
62
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
63
+ ) &
64
+ (
65
+ | string
66
+ | import("@smithy/types").Provider<string>
67
+ | import("@smithy/types").Endpoint
68
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
69
+ | import("@smithy/types").EndpointV2
70
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
71
+ ))
60
72
  | undefined;
61
73
  endpointProvider: (
62
74
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cognito-identity",
3
3
  "description": "AWS SDK for JavaScript Cognito Identity Client for Node.js, Browser and React Native",
4
- "version": "3.716.0",
4
+ "version": "3.723.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-cognito-identity",
@@ -22,58 +22,58 @@
22
22
  "dependencies": {
23
23
  "@aws-crypto/sha256-browser": "5.2.0",
24
24
  "@aws-crypto/sha256-js": "5.2.0",
25
- "@aws-sdk/client-sso-oidc": "3.716.0",
26
- "@aws-sdk/client-sts": "3.716.0",
27
- "@aws-sdk/core": "3.716.0",
28
- "@aws-sdk/credential-provider-node": "3.716.0",
29
- "@aws-sdk/middleware-host-header": "3.714.0",
30
- "@aws-sdk/middleware-logger": "3.714.0",
31
- "@aws-sdk/middleware-recursion-detection": "3.714.0",
32
- "@aws-sdk/middleware-user-agent": "3.716.0",
33
- "@aws-sdk/region-config-resolver": "3.714.0",
34
- "@aws-sdk/types": "3.714.0",
35
- "@aws-sdk/util-endpoints": "3.714.0",
36
- "@aws-sdk/util-user-agent-browser": "3.714.0",
37
- "@aws-sdk/util-user-agent-node": "3.716.0",
38
- "@smithy/config-resolver": "^3.0.13",
39
- "@smithy/core": "^2.5.5",
40
- "@smithy/fetch-http-handler": "^4.1.2",
41
- "@smithy/hash-node": "^3.0.11",
42
- "@smithy/invalid-dependency": "^3.0.11",
43
- "@smithy/middleware-content-length": "^3.0.13",
44
- "@smithy/middleware-endpoint": "^3.2.6",
45
- "@smithy/middleware-retry": "^3.0.31",
46
- "@smithy/middleware-serde": "^3.0.11",
47
- "@smithy/middleware-stack": "^3.0.11",
48
- "@smithy/node-config-provider": "^3.1.12",
49
- "@smithy/node-http-handler": "^3.3.2",
50
- "@smithy/protocol-http": "^4.1.8",
51
- "@smithy/smithy-client": "^3.5.1",
52
- "@smithy/types": "^3.7.2",
53
- "@smithy/url-parser": "^3.0.11",
54
- "@smithy/util-base64": "^3.0.0",
55
- "@smithy/util-body-length-browser": "^3.0.0",
56
- "@smithy/util-body-length-node": "^3.0.0",
57
- "@smithy/util-defaults-mode-browser": "^3.0.31",
58
- "@smithy/util-defaults-mode-node": "^3.0.31",
59
- "@smithy/util-endpoints": "^2.1.7",
60
- "@smithy/util-middleware": "^3.0.11",
61
- "@smithy/util-retry": "^3.0.11",
62
- "@smithy/util-utf8": "^3.0.0",
25
+ "@aws-sdk/client-sso-oidc": "3.723.0",
26
+ "@aws-sdk/client-sts": "3.723.0",
27
+ "@aws-sdk/core": "3.723.0",
28
+ "@aws-sdk/credential-provider-node": "3.723.0",
29
+ "@aws-sdk/middleware-host-header": "3.723.0",
30
+ "@aws-sdk/middleware-logger": "3.723.0",
31
+ "@aws-sdk/middleware-recursion-detection": "3.723.0",
32
+ "@aws-sdk/middleware-user-agent": "3.723.0",
33
+ "@aws-sdk/region-config-resolver": "3.723.0",
34
+ "@aws-sdk/types": "3.723.0",
35
+ "@aws-sdk/util-endpoints": "3.723.0",
36
+ "@aws-sdk/util-user-agent-browser": "3.723.0",
37
+ "@aws-sdk/util-user-agent-node": "3.723.0",
38
+ "@smithy/config-resolver": "^4.0.0",
39
+ "@smithy/core": "^3.0.0",
40
+ "@smithy/fetch-http-handler": "^5.0.0",
41
+ "@smithy/hash-node": "^4.0.0",
42
+ "@smithy/invalid-dependency": "^4.0.0",
43
+ "@smithy/middleware-content-length": "^4.0.0",
44
+ "@smithy/middleware-endpoint": "^4.0.0",
45
+ "@smithy/middleware-retry": "^4.0.0",
46
+ "@smithy/middleware-serde": "^4.0.0",
47
+ "@smithy/middleware-stack": "^4.0.0",
48
+ "@smithy/node-config-provider": "^4.0.0",
49
+ "@smithy/node-http-handler": "^4.0.0",
50
+ "@smithy/protocol-http": "^5.0.0",
51
+ "@smithy/smithy-client": "^4.0.0",
52
+ "@smithy/types": "^4.0.0",
53
+ "@smithy/url-parser": "^4.0.0",
54
+ "@smithy/util-base64": "^4.0.0",
55
+ "@smithy/util-body-length-browser": "^4.0.0",
56
+ "@smithy/util-body-length-node": "^4.0.0",
57
+ "@smithy/util-defaults-mode-browser": "^4.0.0",
58
+ "@smithy/util-defaults-mode-node": "^4.0.0",
59
+ "@smithy/util-endpoints": "^3.0.0",
60
+ "@smithy/util-middleware": "^4.0.0",
61
+ "@smithy/util-retry": "^4.0.0",
62
+ "@smithy/util-utf8": "^4.0.0",
63
63
  "tslib": "^2.6.2"
64
64
  },
65
65
  "devDependencies": {
66
- "@aws-sdk/client-iam": "3.716.0",
67
- "@tsconfig/node16": "16.1.3",
66
+ "@aws-sdk/client-iam": "3.723.0",
67
+ "@tsconfig/node18": "18.2.4",
68
68
  "@types/chai": "^4.2.11",
69
- "@types/node": "^16.18.96",
69
+ "@types/node": "^18.19.69",
70
70
  "concurrently": "7.0.0",
71
71
  "downlevel-dts": "0.10.1",
72
72
  "rimraf": "3.0.2",
73
- "typescript": "~4.9.5"
73
+ "typescript": "~5.2.2"
74
74
  },
75
75
  "engines": {
76
- "node": ">=16.0.0"
76
+ "node": ">=18.0.0"
77
77
  },
78
78
  "typesVersions": {
79
79
  "<4.0": {