@aws-sdk/client-sso-admin 3.987.0 → 3.989.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultSSOAdminHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
9
10
  export const getRuntimeConfig = (config) => {
10
11
  return {
11
12
  apiVersion: "2020-07-20",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsJson1_1Protocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.ssoadmin",
30
+ errorTypeRegistries,
29
31
  version: "2020-07-20",
30
32
  serviceTarget: "SWBExternalService",
31
33
  },
@@ -401,12 +401,62 @@ const _Vi = "Visibility";
401
401
  const _c = "client";
402
402
  const _e = "error";
403
403
  const _hE = "httpError";
404
- const _s = "server";
405
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.ssoadmin";
404
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.ssoadmin";
405
+ const _se = "server";
406
406
  const n0 = "com.amazonaws.ssoadmin";
407
407
  import { TypeRegistry } from "@smithy/core/schema";
408
408
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/errors";
409
409
  import { SSOAdminServiceException } from "../models/SSOAdminServiceException";
410
+ const _s_registry = TypeRegistry.for(_s);
411
+ export var SSOAdminServiceException$ = [-3, _s, "SSOAdminServiceException", 0, [], []];
412
+ _s_registry.registerError(SSOAdminServiceException$, SSOAdminServiceException);
413
+ const n0_registry = TypeRegistry.for(n0);
414
+ export var AccessDeniedException$ = [-3, n0, _ADE,
415
+ { [_e]: _c, [_hE]: 403 },
416
+ [_M, _R],
417
+ [0, 0]
418
+ ];
419
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
420
+ export var ConflictException$ = [-3, n0, _CE,
421
+ { [_e]: _c, [_hE]: 409 },
422
+ [_M],
423
+ [0]
424
+ ];
425
+ n0_registry.registerError(ConflictException$, ConflictException);
426
+ export var InternalServerException$ = [-3, n0, _ISE,
427
+ { [_e]: _se, [_hE]: 500 },
428
+ [_M],
429
+ [0]
430
+ ];
431
+ n0_registry.registerError(InternalServerException$, InternalServerException);
432
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
433
+ { [_e]: _c, [_hE]: 404 },
434
+ [_M, _R],
435
+ [0, 0]
436
+ ];
437
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
438
+ export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
439
+ { [_e]: _c, [_hE]: 402 },
440
+ [_M],
441
+ [0]
442
+ ];
443
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
444
+ export var ThrottlingException$ = [-3, n0, _TE,
445
+ { [_e]: _c, [_hE]: 429 },
446
+ [_M, _R],
447
+ [0, 0]
448
+ ];
449
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
450
+ export var ValidationException$ = [-3, n0, _VE,
451
+ { [_e]: _c, [_hE]: 400 },
452
+ [_M, _R],
453
+ [0, 0]
454
+ ];
455
+ n0_registry.registerError(ValidationException$, ValidationException);
456
+ export const errorTypeRegistries = [
457
+ _s_registry,
458
+ n0_registry,
459
+ ];
410
460
  export var AccessControlAttribute$ = [3, n0, _ACA,
411
461
  0,
412
462
  [_K, _V],
@@ -417,12 +467,6 @@ export var AccessControlAttributeValue$ = [3, n0, _ACAV,
417
467
  [_S],
418
468
  [64 | 0], 1
419
469
  ];
420
- export var AccessDeniedException$ = [-3, n0, _ADE,
421
- { [_e]: _c, [_hE]: 403 },
422
- [_M, _R],
423
- [0, 0]
424
- ];
425
- TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
426
470
  export var AccountAssignment$ = [3, n0, _AA,
427
471
  0,
428
472
  [_AI, _PSA, _PT, _PI],
@@ -513,12 +557,6 @@ export var AuthorizedTokenIssuer$ = [3, n0, _ATI,
513
557
  [_TTIA, _AAu],
514
558
  [0, 64 | 0]
515
559
  ];
516
- export var ConflictException$ = [-3, n0, _CE,
517
- { [_e]: _c, [_hE]: 409 },
518
- [_M],
519
- [0]
520
- ];
521
- TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
522
560
  export var CreateAccountAssignmentRequest$ = [3, n0, _CAAR,
523
561
  0,
524
562
  [_IA, _TI, _TT, _PSA, _PT, _PI],
@@ -934,12 +972,6 @@ export var InstanceMetadata$ = [3, n0, _IM,
934
972
  [_IA, _ISI, _OAI, _N, _CD, _St, _SR],
935
973
  [0, 0, 0, 0, 4, 0, 0]
936
974
  ];
937
- export var InternalServerException$ = [-3, n0, _ISE,
938
- { [_e]: _s, [_hE]: 500 },
939
- [_M],
940
- [0]
941
- ];
942
- TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
943
975
  export var JwtBearerGrant$ = [3, n0, _JBG,
944
976
  0,
945
977
  [_ATIu],
@@ -1295,12 +1327,6 @@ export var RemoveRegionResponse$ = [3, n0, _RRRe,
1295
1327
  [_St],
1296
1328
  [0]
1297
1329
  ];
1298
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
1299
- { [_e]: _c, [_hE]: 404 },
1300
- [_M, _R],
1301
- [0, 0]
1302
- ];
1303
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
1304
1330
  export var ResourceServerConfig$ = [3, n0, _RSC,
1305
1331
  0,
1306
1332
  [_Sco],
@@ -1316,12 +1342,6 @@ export var ScopeDetails$ = [3, n0, _SDc,
1316
1342
  [_Sc, _AT],
1317
1343
  [0, 64 | 0], 1
1318
1344
  ];
1319
- export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
1320
- { [_e]: _c, [_hE]: 402 },
1321
- [_M],
1322
- [0]
1323
- ];
1324
- TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
1325
1345
  export var SignInOptions$ = [3, n0, _SIO,
1326
1346
  0,
1327
1347
  [_O, _AU],
@@ -1342,12 +1362,6 @@ export var TagResourceResponse$ = [3, n0, _TRRa,
1342
1362
  [],
1343
1363
  []
1344
1364
  ];
1345
- export var ThrottlingException$ = [-3, n0, _TE,
1346
- { [_e]: _c, [_hE]: 429 },
1347
- [_M, _R],
1348
- [0, 0]
1349
- ];
1350
- TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
1351
1365
  export var TokenExchangeGrant$ = [3, n0, _TEG,
1352
1366
  0,
1353
1367
  [],
@@ -1423,15 +1437,7 @@ export var UpdateTrustedTokenIssuerResponse$ = [3, n0, _UTTIRp,
1423
1437
  [],
1424
1438
  []
1425
1439
  ];
1426
- export var ValidationException$ = [-3, n0, _VE,
1427
- { [_e]: _c, [_hE]: 400 },
1428
- [_M, _R],
1429
- [0, 0]
1430
- ];
1431
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
1432
1440
  var __Unit = "unit";
1433
- export var SSOAdminServiceException$ = [-3, _sm, "SSOAdminServiceException", 0, [], []];
1434
- TypeRegistry.for(_sm).registerError(SSOAdminServiceException$, SSOAdminServiceException);
1435
1441
  var AccessControlAttributeList = [1, n0, _ACAL,
1436
1442
  0, () => AccessControlAttribute$
1437
1443
  ];
@@ -1,7 +1,21 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema, StaticUnionSchema } from "@smithy/types";
3
+ export declare var SSOAdminServiceException$: StaticErrorSchema;
4
+ export declare var AccessDeniedException$: StaticErrorSchema;
5
+ export declare var ConflictException$: StaticErrorSchema;
6
+ export declare var InternalServerException$: StaticErrorSchema;
7
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
8
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
9
+ export declare var ThrottlingException$: StaticErrorSchema;
10
+ export declare var ValidationException$: StaticErrorSchema;
11
+ /**
12
+ * TypeRegistry instances containing modeled errors.
13
+ * @internal
14
+ *
15
+ */
16
+ export declare const errorTypeRegistries: TypeRegistry[];
2
17
  export declare var AccessControlAttribute$: StaticStructureSchema;
3
18
  export declare var AccessControlAttributeValue$: StaticStructureSchema;
4
- export declare var AccessDeniedException$: StaticErrorSchema;
5
19
  export declare var AccountAssignment$: StaticStructureSchema;
6
20
  export declare var AccountAssignmentForPrincipal$: StaticStructureSchema;
7
21
  export declare var AccountAssignmentOperationStatus$: StaticStructureSchema;
@@ -20,7 +34,6 @@ export declare var AttachManagedPolicyToPermissionSetResponse$: StaticStructureS
20
34
  export declare var AuthenticationMethodItem$: StaticStructureSchema;
21
35
  export declare var AuthorizationCodeGrant$: StaticStructureSchema;
22
36
  export declare var AuthorizedTokenIssuer$: StaticStructureSchema;
23
- export declare var ConflictException$: StaticErrorSchema;
24
37
  export declare var CreateAccountAssignmentRequest$: StaticStructureSchema;
25
38
  export declare var CreateAccountAssignmentResponse$: StaticStructureSchema;
26
39
  export declare var CreateApplicationAssignmentRequest$: StaticStructureSchema;
@@ -104,7 +117,6 @@ export declare var GrantItem$: StaticStructureSchema;
104
117
  export declare var IamAuthenticationMethod$: StaticStructureSchema;
105
118
  export declare var InstanceAccessControlAttributeConfiguration$: StaticStructureSchema;
106
119
  export declare var InstanceMetadata$: StaticStructureSchema;
107
- export declare var InternalServerException$: StaticErrorSchema;
108
120
  export declare var JwtBearerGrant$: StaticStructureSchema;
109
121
  export declare var ListAccountAssignmentCreationStatusRequest$: StaticStructureSchema;
110
122
  export declare var ListAccountAssignmentCreationStatusResponse$: StaticStructureSchema;
@@ -176,16 +188,13 @@ export declare var RefreshTokenGrant$: StaticStructureSchema;
176
188
  export declare var RegionMetadata$: StaticStructureSchema;
177
189
  export declare var RemoveRegionRequest$: StaticStructureSchema;
178
190
  export declare var RemoveRegionResponse$: StaticStructureSchema;
179
- export declare var ResourceNotFoundException$: StaticErrorSchema;
180
191
  export declare var ResourceServerConfig$: StaticStructureSchema;
181
192
  export declare var ResourceServerScopeDetails$: StaticStructureSchema;
182
193
  export declare var ScopeDetails$: StaticStructureSchema;
183
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
184
194
  export declare var SignInOptions$: StaticStructureSchema;
185
195
  export declare var Tag$: StaticStructureSchema;
186
196
  export declare var TagResourceRequest$: StaticStructureSchema;
187
197
  export declare var TagResourceResponse$: StaticStructureSchema;
188
- export declare var ThrottlingException$: StaticErrorSchema;
189
198
  export declare var TokenExchangeGrant$: StaticStructureSchema;
190
199
  export declare var TrustedTokenIssuerMetadata$: StaticStructureSchema;
191
200
  export declare var UntagResourceRequest$: StaticStructureSchema;
@@ -201,8 +210,6 @@ export declare var UpdatePermissionSetRequest$: StaticStructureSchema;
201
210
  export declare var UpdatePermissionSetResponse$: StaticStructureSchema;
202
211
  export declare var UpdateTrustedTokenIssuerRequest$: StaticStructureSchema;
203
212
  export declare var UpdateTrustedTokenIssuerResponse$: StaticStructureSchema;
204
- export declare var ValidationException$: StaticErrorSchema;
205
- export declare var SSOAdminServiceException$: StaticErrorSchema;
206
213
  export declare var AuthenticationMethod$: StaticUnionSchema;
207
214
  export declare var Grant$: StaticUnionSchema;
208
215
  export declare var TrustedTokenIssuerConfiguration$: StaticUnionSchema;
@@ -1,12 +1,21 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  StaticUnionSchema,
6
7
  } from "@smithy/types";
8
+ export declare var SSOAdminServiceException$: StaticErrorSchema;
9
+ export declare var AccessDeniedException$: StaticErrorSchema;
10
+ export declare var ConflictException$: StaticErrorSchema;
11
+ export declare var InternalServerException$: StaticErrorSchema;
12
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
13
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
14
+ export declare var ThrottlingException$: StaticErrorSchema;
15
+ export declare var ValidationException$: StaticErrorSchema;
16
+ export declare const errorTypeRegistries: TypeRegistry[];
7
17
  export declare var AccessControlAttribute$: StaticStructureSchema;
8
18
  export declare var AccessControlAttributeValue$: StaticStructureSchema;
9
- export declare var AccessDeniedException$: StaticErrorSchema;
10
19
  export declare var AccountAssignment$: StaticStructureSchema;
11
20
  export declare var AccountAssignmentForPrincipal$: StaticStructureSchema;
12
21
  export declare var AccountAssignmentOperationStatus$: StaticStructureSchema;
@@ -25,7 +34,6 @@ export declare var AttachManagedPolicyToPermissionSetResponse$: StaticStructureS
25
34
  export declare var AuthenticationMethodItem$: StaticStructureSchema;
26
35
  export declare var AuthorizationCodeGrant$: StaticStructureSchema;
27
36
  export declare var AuthorizedTokenIssuer$: StaticStructureSchema;
28
- export declare var ConflictException$: StaticErrorSchema;
29
37
  export declare var CreateAccountAssignmentRequest$: StaticStructureSchema;
30
38
  export declare var CreateAccountAssignmentResponse$: StaticStructureSchema;
31
39
  export declare var CreateApplicationAssignmentRequest$: StaticStructureSchema;
@@ -109,7 +117,6 @@ export declare var GrantItem$: StaticStructureSchema;
109
117
  export declare var IamAuthenticationMethod$: StaticStructureSchema;
110
118
  export declare var InstanceAccessControlAttributeConfiguration$: StaticStructureSchema;
111
119
  export declare var InstanceMetadata$: StaticStructureSchema;
112
- export declare var InternalServerException$: StaticErrorSchema;
113
120
  export declare var JwtBearerGrant$: StaticStructureSchema;
114
121
  export declare var ListAccountAssignmentCreationStatusRequest$: StaticStructureSchema;
115
122
  export declare var ListAccountAssignmentCreationStatusResponse$: StaticStructureSchema;
@@ -181,16 +188,13 @@ export declare var RefreshTokenGrant$: StaticStructureSchema;
181
188
  export declare var RegionMetadata$: StaticStructureSchema;
182
189
  export declare var RemoveRegionRequest$: StaticStructureSchema;
183
190
  export declare var RemoveRegionResponse$: StaticStructureSchema;
184
- export declare var ResourceNotFoundException$: StaticErrorSchema;
185
191
  export declare var ResourceServerConfig$: StaticStructureSchema;
186
192
  export declare var ResourceServerScopeDetails$: StaticStructureSchema;
187
193
  export declare var ScopeDetails$: StaticStructureSchema;
188
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
189
194
  export declare var SignInOptions$: StaticStructureSchema;
190
195
  export declare var Tag$: StaticStructureSchema;
191
196
  export declare var TagResourceRequest$: StaticStructureSchema;
192
197
  export declare var TagResourceResponse$: StaticStructureSchema;
193
- export declare var ThrottlingException$: StaticErrorSchema;
194
198
  export declare var TokenExchangeGrant$: StaticStructureSchema;
195
199
  export declare var TrustedTokenIssuerMetadata$: StaticStructureSchema;
196
200
  export declare var UntagResourceRequest$: StaticStructureSchema;
@@ -206,8 +210,6 @@ export declare var UpdatePermissionSetRequest$: StaticStructureSchema;
206
210
  export declare var UpdatePermissionSetResponse$: StaticStructureSchema;
207
211
  export declare var UpdateTrustedTokenIssuerRequest$: StaticStructureSchema;
208
212
  export declare var UpdateTrustedTokenIssuerResponse$: StaticStructureSchema;
209
- export declare var ValidationException$: StaticErrorSchema;
210
- export declare var SSOAdminServiceException$: StaticErrorSchema;
211
213
  export declare var AuthenticationMethod$: StaticUnionSchema;
212
214
  export declare var Grant$: StaticUnionSchema;
213
215
  export declare var TrustedTokenIssuerConfiguration$: StaticUnionSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sso-admin",
3
3
  "description": "AWS SDK for JavaScript Sso Admin Client for Node.js, Browser and React Native",
4
- "version": "3.987.0",
4
+ "version": "3.989.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-sso-admin",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.7",
25
- "@aws-sdk/credential-provider-node": "^3.972.6",
24
+ "@aws-sdk/core": "^3.973.9",
25
+ "@aws-sdk/credential-provider-node": "^3.972.8",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.3",
27
27
  "@aws-sdk/middleware-logger": "^3.972.3",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
- "@aws-sdk/middleware-user-agent": "^3.972.7",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.9",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.3",
31
31
  "@aws-sdk/types": "^3.973.1",
32
- "@aws-sdk/util-endpoints": "3.987.0",
32
+ "@aws-sdk/util-endpoints": "3.989.0",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
- "@aws-sdk/util-user-agent-node": "^3.972.5",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.7",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.22.1",
36
+ "@smithy/core": "^3.23.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.13",
42
- "@smithy/middleware-retry": "^4.4.30",
41
+ "@smithy/middleware-endpoint": "^4.4.14",
42
+ "@smithy/middleware-retry": "^4.4.31",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
- "@smithy/node-http-handler": "^4.4.9",
46
+ "@smithy/node-http-handler": "^4.4.10",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.11.2",
48
+ "@smithy/smithy-client": "^4.11.3",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.29",
55
- "@smithy/util-defaults-mode-node": "^4.2.32",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
55
+ "@smithy/util-defaults-mode-node": "^4.2.33",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",