@jjrawlins/cdk-diff-pr-github-action 1.4.2 → 1.4.3

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 (122) hide show
  1. package/.jsii +3 -3
  2. package/lib/CdkDiffIamTemplate.js +2 -2
  3. package/lib/CdkDiffIamTemplateStackSet.js +2 -2
  4. package/lib/CdkDiffStackWorkflow.js +1 -1
  5. package/lib/CdkDriftDetectionWorkflow.js +1 -1
  6. package/lib/CdkDriftIamTemplate.js +2 -2
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +109 -3610
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/models/CloudFormationServiceException.js +12 -0
  9. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/models/errors.js +439 -0
  10. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.shared.js +2 -0
  11. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/schemas/schemas_0.js +2741 -0
  12. package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.shared.js +2 -0
  13. package/node_modules/@aws-sdk/client-cloudformation/dist-es/schemas/schemas_0.js +182 -176
  14. package/node_modules/@aws-sdk/client-cloudformation/dist-types/schemas/schemas_0.d.ts +37 -30
  15. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/schemas/schemas_0.d.ts +32 -30
  16. package/node_modules/@aws-sdk/client-cloudformation/package.json +13 -13
  17. package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +23 -234
  18. package/node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js +12 -0
  19. package/node_modules/@aws-sdk/client-sso/dist-cjs/models/errors.js +56 -0
  20. package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js +2 -0
  21. package/node_modules/@aws-sdk/client-sso/dist-cjs/schemas/schemas_0.js +161 -0
  22. package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js +2 -0
  23. package/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +32 -26
  24. package/node_modules/@aws-sdk/client-sso/dist-types/schemas/schemas_0.d.ts +12 -5
  25. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/schemas/schemas_0.d.ts +7 -5
  26. package/node_modules/@aws-sdk/client-sso/package.json +12 -12
  27. package/node_modules/@aws-sdk/core/package.json +3 -3
  28. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  29. package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
  30. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  31. package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
  32. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  33. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  34. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  35. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  36. package/node_modules/@aws-sdk/middleware-user-agent/package.json +4 -4
  37. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +20 -198
  38. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/SigninServiceException.js +12 -0
  39. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/errors.js +64 -0
  40. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.shared.js +2 -0
  41. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/schemas/schemas_0.js +125 -0
  42. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +20 -347
  43. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/SSOOIDCServiceException.js +12 -0
  44. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/errors.js +195 -0
  45. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
  46. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/schemas/schemas_0.js +140 -0
  47. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +21 -308
  48. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/STSServiceException.js +12 -0
  49. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/errors.js +95 -0
  50. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js +2 -0
  51. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/schemas/schemas_0.js +195 -0
  52. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.shared.js +2 -0
  53. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +15 -12
  54. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
  55. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +40 -37
  56. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js +2 -0
  57. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +60 -57
  58. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/schemas/schemas_0.d.ts +11 -4
  59. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/schemas/schemas_0.d.ts +10 -3
  60. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/schemas/schemas_0.d.ts +15 -8
  61. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/schemas/schemas_0.d.ts +6 -4
  62. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/schemas/schemas_0.d.ts +5 -3
  63. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/schemas/schemas_0.d.ts +10 -8
  64. package/node_modules/@aws-sdk/nested-clients/package.json +12 -12
  65. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  66. package/node_modules/@aws-sdk/util-endpoints/package.json +1 -1
  67. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  68. package/package.json +2 -2
  69. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/LICENSE +0 -201
  70. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/README.md +0 -6
  71. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +0 -415
  72. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +0 -267
  73. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js +0 -10
  74. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/index.js +0 -6
  75. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/index.js +0 -3
  76. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js +0 -25
  77. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/parseArn.js +0 -18
  78. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partition.js +0 -41
  79. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +0 -267
  80. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/isIpAddress.js +0 -1
  81. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/resolveDefaultAwsRegionalEndpointsConfig.js +0 -21
  82. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/resolveEndpoint.js +0 -1
  83. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointError.js +0 -1
  84. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointRuleObject.js +0 -1
  85. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/ErrorRuleObject.js +0 -1
  86. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/RuleSetObject.js +0 -1
  87. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/TreeRuleObject.js +0 -1
  88. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/index.js +0 -6
  89. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/shared.js +0 -1
  90. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/aws.d.ts +0 -2
  91. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/index.d.ts +0 -6
  92. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/index.d.ts +0 -3
  93. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/isVirtualHostableS3Bucket.d.ts +0 -5
  94. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/parseArn.d.ts +0 -7
  95. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/partition.d.ts +0 -38
  96. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/lib/isIpAddress.d.ts +0 -1
  97. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/resolveDefaultAwsRegionalEndpointsConfig.d.ts +0 -56
  98. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/resolveEndpoint.d.ts +0 -1
  99. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/aws.d.ts +0 -2
  100. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/index.d.ts +0 -6
  101. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/index.d.ts +0 -3
  102. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/isVirtualHostableS3Bucket.d.ts +0 -4
  103. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/parseArn.d.ts +0 -2
  104. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/partition.d.ts +0 -28
  105. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/isIpAddress.d.ts +0 -1
  106. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveDefaultAwsRegionalEndpointsConfig.d.ts +0 -35
  107. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveEndpoint.d.ts +0 -1
  108. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointError.d.ts +0 -1
  109. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointRuleObject.d.ts +0 -6
  110. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/ErrorRuleObject.d.ts +0 -1
  111. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/RuleSetObject.d.ts +0 -5
  112. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/TreeRuleObject.d.ts +0 -1
  113. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/index.d.ts +0 -6
  114. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/shared.d.ts +0 -12
  115. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointError.d.ts +0 -1
  116. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointRuleObject.d.ts +0 -1
  117. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/ErrorRuleObject.d.ts +0 -1
  118. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/RuleSetObject.d.ts +0 -1
  119. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/TreeRuleObject.d.ts +0 -1
  120. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/index.d.ts +0 -6
  121. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/shared.d.ts +0 -1
  122. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/package.json +0 -60
@@ -15,6 +15,9 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
15
15
  var runtimeConfig = require('./runtimeConfig');
16
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
17
17
  var protocolHttp = require('@smithy/protocol-http');
18
+ var schemas_0 = require('./schemas/schemas_0');
19
+ var errors = require('./models/errors');
20
+ var SSOOIDCServiceException = require('./models/SSOOIDCServiceException');
18
21
 
19
22
  const resolveClientEndpointParameters = (options) => {
20
23
  return Object.assign(options, {
@@ -110,325 +113,6 @@ class SSOOIDCClient extends smithyClient.Client {
110
113
  }
111
114
  }
112
115
 
113
- class SSOOIDCServiceException extends smithyClient.ServiceException {
114
- constructor(options) {
115
- super(options);
116
- Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);
117
- }
118
- }
119
-
120
- class AccessDeniedException extends SSOOIDCServiceException {
121
- name = "AccessDeniedException";
122
- $fault = "client";
123
- error;
124
- reason;
125
- error_description;
126
- constructor(opts) {
127
- super({
128
- name: "AccessDeniedException",
129
- $fault: "client",
130
- ...opts,
131
- });
132
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
133
- this.error = opts.error;
134
- this.reason = opts.reason;
135
- this.error_description = opts.error_description;
136
- }
137
- }
138
- class AuthorizationPendingException extends SSOOIDCServiceException {
139
- name = "AuthorizationPendingException";
140
- $fault = "client";
141
- error;
142
- error_description;
143
- constructor(opts) {
144
- super({
145
- name: "AuthorizationPendingException",
146
- $fault: "client",
147
- ...opts,
148
- });
149
- Object.setPrototypeOf(this, AuthorizationPendingException.prototype);
150
- this.error = opts.error;
151
- this.error_description = opts.error_description;
152
- }
153
- }
154
- class ExpiredTokenException extends SSOOIDCServiceException {
155
- name = "ExpiredTokenException";
156
- $fault = "client";
157
- error;
158
- error_description;
159
- constructor(opts) {
160
- super({
161
- name: "ExpiredTokenException",
162
- $fault: "client",
163
- ...opts,
164
- });
165
- Object.setPrototypeOf(this, ExpiredTokenException.prototype);
166
- this.error = opts.error;
167
- this.error_description = opts.error_description;
168
- }
169
- }
170
- class InternalServerException extends SSOOIDCServiceException {
171
- name = "InternalServerException";
172
- $fault = "server";
173
- error;
174
- error_description;
175
- constructor(opts) {
176
- super({
177
- name: "InternalServerException",
178
- $fault: "server",
179
- ...opts,
180
- });
181
- Object.setPrototypeOf(this, InternalServerException.prototype);
182
- this.error = opts.error;
183
- this.error_description = opts.error_description;
184
- }
185
- }
186
- class InvalidClientException extends SSOOIDCServiceException {
187
- name = "InvalidClientException";
188
- $fault = "client";
189
- error;
190
- error_description;
191
- constructor(opts) {
192
- super({
193
- name: "InvalidClientException",
194
- $fault: "client",
195
- ...opts,
196
- });
197
- Object.setPrototypeOf(this, InvalidClientException.prototype);
198
- this.error = opts.error;
199
- this.error_description = opts.error_description;
200
- }
201
- }
202
- class InvalidGrantException extends SSOOIDCServiceException {
203
- name = "InvalidGrantException";
204
- $fault = "client";
205
- error;
206
- error_description;
207
- constructor(opts) {
208
- super({
209
- name: "InvalidGrantException",
210
- $fault: "client",
211
- ...opts,
212
- });
213
- Object.setPrototypeOf(this, InvalidGrantException.prototype);
214
- this.error = opts.error;
215
- this.error_description = opts.error_description;
216
- }
217
- }
218
- class InvalidRequestException extends SSOOIDCServiceException {
219
- name = "InvalidRequestException";
220
- $fault = "client";
221
- error;
222
- reason;
223
- error_description;
224
- constructor(opts) {
225
- super({
226
- name: "InvalidRequestException",
227
- $fault: "client",
228
- ...opts,
229
- });
230
- Object.setPrototypeOf(this, InvalidRequestException.prototype);
231
- this.error = opts.error;
232
- this.reason = opts.reason;
233
- this.error_description = opts.error_description;
234
- }
235
- }
236
- class InvalidScopeException extends SSOOIDCServiceException {
237
- name = "InvalidScopeException";
238
- $fault = "client";
239
- error;
240
- error_description;
241
- constructor(opts) {
242
- super({
243
- name: "InvalidScopeException",
244
- $fault: "client",
245
- ...opts,
246
- });
247
- Object.setPrototypeOf(this, InvalidScopeException.prototype);
248
- this.error = opts.error;
249
- this.error_description = opts.error_description;
250
- }
251
- }
252
- class SlowDownException extends SSOOIDCServiceException {
253
- name = "SlowDownException";
254
- $fault = "client";
255
- error;
256
- error_description;
257
- constructor(opts) {
258
- super({
259
- name: "SlowDownException",
260
- $fault: "client",
261
- ...opts,
262
- });
263
- Object.setPrototypeOf(this, SlowDownException.prototype);
264
- this.error = opts.error;
265
- this.error_description = opts.error_description;
266
- }
267
- }
268
- class UnauthorizedClientException extends SSOOIDCServiceException {
269
- name = "UnauthorizedClientException";
270
- $fault = "client";
271
- error;
272
- error_description;
273
- constructor(opts) {
274
- super({
275
- name: "UnauthorizedClientException",
276
- $fault: "client",
277
- ...opts,
278
- });
279
- Object.setPrototypeOf(this, UnauthorizedClientException.prototype);
280
- this.error = opts.error;
281
- this.error_description = opts.error_description;
282
- }
283
- }
284
- class UnsupportedGrantTypeException extends SSOOIDCServiceException {
285
- name = "UnsupportedGrantTypeException";
286
- $fault = "client";
287
- error;
288
- error_description;
289
- constructor(opts) {
290
- super({
291
- name: "UnsupportedGrantTypeException",
292
- $fault: "client",
293
- ...opts,
294
- });
295
- Object.setPrototypeOf(this, UnsupportedGrantTypeException.prototype);
296
- this.error = opts.error;
297
- this.error_description = opts.error_description;
298
- }
299
- }
300
-
301
- const _ADE = "AccessDeniedException";
302
- const _APE = "AuthorizationPendingException";
303
- const _AT = "AccessToken";
304
- const _CS = "ClientSecret";
305
- const _CT = "CreateToken";
306
- const _CTR = "CreateTokenRequest";
307
- const _CTRr = "CreateTokenResponse";
308
- const _CV = "CodeVerifier";
309
- const _ETE = "ExpiredTokenException";
310
- const _ICE = "InvalidClientException";
311
- const _IGE = "InvalidGrantException";
312
- const _IRE = "InvalidRequestException";
313
- const _ISE = "InternalServerException";
314
- const _ISEn = "InvalidScopeException";
315
- const _IT = "IdToken";
316
- const _RT = "RefreshToken";
317
- const _SDE = "SlowDownException";
318
- const _UCE = "UnauthorizedClientException";
319
- const _UGTE = "UnsupportedGrantTypeException";
320
- const _aT = "accessToken";
321
- const _c = "client";
322
- const _cI = "clientId";
323
- const _cS = "clientSecret";
324
- const _cV = "codeVerifier";
325
- const _co = "code";
326
- const _dC = "deviceCode";
327
- const _e = "error";
328
- const _eI = "expiresIn";
329
- const _ed = "error_description";
330
- const _gT = "grantType";
331
- const _h = "http";
332
- const _hE = "httpError";
333
- const _iT = "idToken";
334
- const _r = "reason";
335
- const _rT = "refreshToken";
336
- const _rU = "redirectUri";
337
- const _s = "scope";
338
- const _se = "server";
339
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc";
340
- const _tT = "tokenType";
341
- const n0 = "com.amazonaws.ssooidc";
342
- var AccessToken = [0, n0, _AT, 8, 0];
343
- var ClientSecret = [0, n0, _CS, 8, 0];
344
- var CodeVerifier = [0, n0, _CV, 8, 0];
345
- var IdToken = [0, n0, _IT, 8, 0];
346
- var RefreshToken = [0, n0, _RT, 8, 0];
347
- var AccessDeniedException$ = [
348
- -3,
349
- n0,
350
- _ADE,
351
- { [_e]: _c, [_hE]: 400 },
352
- [_e, _r, _ed],
353
- [0, 0, 0],
354
- ];
355
- schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
356
- var AuthorizationPendingException$ = [
357
- -3,
358
- n0,
359
- _APE,
360
- { [_e]: _c, [_hE]: 400 },
361
- [_e, _ed],
362
- [0, 0],
363
- ];
364
- schema.TypeRegistry.for(n0).registerError(AuthorizationPendingException$, AuthorizationPendingException);
365
- var CreateTokenRequest$ = [
366
- 3,
367
- n0,
368
- _CTR,
369
- 0,
370
- [_cI, _cS, _gT, _dC, _co, _rT, _s, _rU, _cV],
371
- [0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]],
372
- 3,
373
- ];
374
- var CreateTokenResponse$ = [
375
- 3,
376
- n0,
377
- _CTRr,
378
- 0,
379
- [_aT, _tT, _eI, _rT, _iT],
380
- [[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]],
381
- ];
382
- var ExpiredTokenException$ = [-3, n0, _ETE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
383
- schema.TypeRegistry.for(n0).registerError(ExpiredTokenException$, ExpiredTokenException);
384
- var InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _ed], [0, 0]];
385
- schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
386
- var InvalidClientException$ = [-3, n0, _ICE, { [_e]: _c, [_hE]: 401 }, [_e, _ed], [0, 0]];
387
- schema.TypeRegistry.for(n0).registerError(InvalidClientException$, InvalidClientException);
388
- var InvalidGrantException$ = [-3, n0, _IGE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
389
- schema.TypeRegistry.for(n0).registerError(InvalidGrantException$, InvalidGrantException);
390
- var InvalidRequestException$ = [
391
- -3,
392
- n0,
393
- _IRE,
394
- { [_e]: _c, [_hE]: 400 },
395
- [_e, _r, _ed],
396
- [0, 0, 0],
397
- ];
398
- schema.TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);
399
- var InvalidScopeException$ = [-3, n0, _ISEn, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
400
- schema.TypeRegistry.for(n0).registerError(InvalidScopeException$, InvalidScopeException);
401
- var SlowDownException$ = [-3, n0, _SDE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
402
- schema.TypeRegistry.for(n0).registerError(SlowDownException$, SlowDownException);
403
- var UnauthorizedClientException$ = [
404
- -3,
405
- n0,
406
- _UCE,
407
- { [_e]: _c, [_hE]: 400 },
408
- [_e, _ed],
409
- [0, 0],
410
- ];
411
- schema.TypeRegistry.for(n0).registerError(UnauthorizedClientException$, UnauthorizedClientException);
412
- var UnsupportedGrantTypeException$ = [
413
- -3,
414
- n0,
415
- _UGTE,
416
- { [_e]: _c, [_hE]: 400 },
417
- [_e, _ed],
418
- [0, 0],
419
- ];
420
- schema.TypeRegistry.for(n0).registerError(UnsupportedGrantTypeException$, UnsupportedGrantTypeException);
421
- var SSOOIDCServiceException$ = [-3, _sm, "SSOOIDCServiceException", 0, [], []];
422
- schema.TypeRegistry.for(_sm).registerError(SSOOIDCServiceException$, SSOOIDCServiceException);
423
- var CreateToken$ = [
424
- 9,
425
- n0,
426
- _CT,
427
- { [_h]: ["POST", "/token", 200] },
428
- () => CreateTokenRequest$,
429
- () => CreateTokenResponse$,
430
- ];
431
-
432
116
  class CreateTokenCommand extends smithyClient.Command
433
117
  .classBuilder()
434
118
  .ep(commonParams)
@@ -437,7 +121,7 @@ class CreateTokenCommand extends smithyClient.Command
437
121
  })
438
122
  .s("AWSSSOOIDCService", "CreateToken", {})
439
123
  .n("SSOOIDCClient", "CreateTokenCommand")
440
- .sc(CreateToken$)
124
+ .sc(schemas_0.CreateToken$)
441
125
  .build() {
442
126
  }
443
127
 
@@ -466,35 +150,24 @@ Object.defineProperty(exports, "__Client", {
466
150
  enumerable: true,
467
151
  get: function () { return smithyClient.Client; }
468
152
  });
469
- exports.AccessDeniedException = AccessDeniedException;
470
- exports.AccessDeniedException$ = AccessDeniedException$;
153
+ Object.defineProperty(exports, "SSOOIDCServiceException", {
154
+ enumerable: true,
155
+ get: function () { return SSOOIDCServiceException.SSOOIDCServiceException; }
156
+ });
471
157
  exports.AccessDeniedExceptionReason = AccessDeniedExceptionReason;
472
- exports.AuthorizationPendingException = AuthorizationPendingException;
473
- exports.AuthorizationPendingException$ = AuthorizationPendingException$;
474
- exports.CreateToken$ = CreateToken$;
475
158
  exports.CreateTokenCommand = CreateTokenCommand;
476
- exports.CreateTokenRequest$ = CreateTokenRequest$;
477
- exports.CreateTokenResponse$ = CreateTokenResponse$;
478
- exports.ExpiredTokenException = ExpiredTokenException;
479
- exports.ExpiredTokenException$ = ExpiredTokenException$;
480
- exports.InternalServerException = InternalServerException;
481
- exports.InternalServerException$ = InternalServerException$;
482
- exports.InvalidClientException = InvalidClientException;
483
- exports.InvalidClientException$ = InvalidClientException$;
484
- exports.InvalidGrantException = InvalidGrantException;
485
- exports.InvalidGrantException$ = InvalidGrantException$;
486
- exports.InvalidRequestException = InvalidRequestException;
487
- exports.InvalidRequestException$ = InvalidRequestException$;
488
159
  exports.InvalidRequestExceptionReason = InvalidRequestExceptionReason;
489
- exports.InvalidScopeException = InvalidScopeException;
490
- exports.InvalidScopeException$ = InvalidScopeException$;
491
160
  exports.SSOOIDC = SSOOIDC;
492
161
  exports.SSOOIDCClient = SSOOIDCClient;
493
- exports.SSOOIDCServiceException = SSOOIDCServiceException;
494
- exports.SSOOIDCServiceException$ = SSOOIDCServiceException$;
495
- exports.SlowDownException = SlowDownException;
496
- exports.SlowDownException$ = SlowDownException$;
497
- exports.UnauthorizedClientException = UnauthorizedClientException;
498
- exports.UnauthorizedClientException$ = UnauthorizedClientException$;
499
- exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException;
500
- exports.UnsupportedGrantTypeException$ = UnsupportedGrantTypeException$;
162
+ Object.keys(schemas_0).forEach(function (k) {
163
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
164
+ enumerable: true,
165
+ get: function () { return schemas_0[k]; }
166
+ });
167
+ });
168
+ Object.keys(errors).forEach(function (k) {
169
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
170
+ enumerable: true,
171
+ get: function () { return errors[k]; }
172
+ });
173
+ });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SSOOIDCServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class SSOOIDCServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);
10
+ }
11
+ }
12
+ exports.SSOOIDCServiceException = SSOOIDCServiceException;
@@ -0,0 +1,195 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UnsupportedGrantTypeException = exports.UnauthorizedClientException = exports.SlowDownException = exports.InvalidScopeException = exports.InvalidRequestException = exports.InvalidGrantException = exports.InvalidClientException = exports.InternalServerException = exports.ExpiredTokenException = exports.AuthorizationPendingException = exports.AccessDeniedException = void 0;
4
+ const SSOOIDCServiceException_1 = require("./SSOOIDCServiceException");
5
+ class AccessDeniedException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
6
+ name = "AccessDeniedException";
7
+ $fault = "client";
8
+ error;
9
+ reason;
10
+ error_description;
11
+ constructor(opts) {
12
+ super({
13
+ name: "AccessDeniedException",
14
+ $fault: "client",
15
+ ...opts,
16
+ });
17
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
18
+ this.error = opts.error;
19
+ this.reason = opts.reason;
20
+ this.error_description = opts.error_description;
21
+ }
22
+ }
23
+ exports.AccessDeniedException = AccessDeniedException;
24
+ class AuthorizationPendingException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
25
+ name = "AuthorizationPendingException";
26
+ $fault = "client";
27
+ error;
28
+ error_description;
29
+ constructor(opts) {
30
+ super({
31
+ name: "AuthorizationPendingException",
32
+ $fault: "client",
33
+ ...opts,
34
+ });
35
+ Object.setPrototypeOf(this, AuthorizationPendingException.prototype);
36
+ this.error = opts.error;
37
+ this.error_description = opts.error_description;
38
+ }
39
+ }
40
+ exports.AuthorizationPendingException = AuthorizationPendingException;
41
+ class ExpiredTokenException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
42
+ name = "ExpiredTokenException";
43
+ $fault = "client";
44
+ error;
45
+ error_description;
46
+ constructor(opts) {
47
+ super({
48
+ name: "ExpiredTokenException",
49
+ $fault: "client",
50
+ ...opts,
51
+ });
52
+ Object.setPrototypeOf(this, ExpiredTokenException.prototype);
53
+ this.error = opts.error;
54
+ this.error_description = opts.error_description;
55
+ }
56
+ }
57
+ exports.ExpiredTokenException = ExpiredTokenException;
58
+ class InternalServerException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
59
+ name = "InternalServerException";
60
+ $fault = "server";
61
+ error;
62
+ error_description;
63
+ constructor(opts) {
64
+ super({
65
+ name: "InternalServerException",
66
+ $fault: "server",
67
+ ...opts,
68
+ });
69
+ Object.setPrototypeOf(this, InternalServerException.prototype);
70
+ this.error = opts.error;
71
+ this.error_description = opts.error_description;
72
+ }
73
+ }
74
+ exports.InternalServerException = InternalServerException;
75
+ class InvalidClientException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
76
+ name = "InvalidClientException";
77
+ $fault = "client";
78
+ error;
79
+ error_description;
80
+ constructor(opts) {
81
+ super({
82
+ name: "InvalidClientException",
83
+ $fault: "client",
84
+ ...opts,
85
+ });
86
+ Object.setPrototypeOf(this, InvalidClientException.prototype);
87
+ this.error = opts.error;
88
+ this.error_description = opts.error_description;
89
+ }
90
+ }
91
+ exports.InvalidClientException = InvalidClientException;
92
+ class InvalidGrantException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
93
+ name = "InvalidGrantException";
94
+ $fault = "client";
95
+ error;
96
+ error_description;
97
+ constructor(opts) {
98
+ super({
99
+ name: "InvalidGrantException",
100
+ $fault: "client",
101
+ ...opts,
102
+ });
103
+ Object.setPrototypeOf(this, InvalidGrantException.prototype);
104
+ this.error = opts.error;
105
+ this.error_description = opts.error_description;
106
+ }
107
+ }
108
+ exports.InvalidGrantException = InvalidGrantException;
109
+ class InvalidRequestException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
110
+ name = "InvalidRequestException";
111
+ $fault = "client";
112
+ error;
113
+ reason;
114
+ error_description;
115
+ constructor(opts) {
116
+ super({
117
+ name: "InvalidRequestException",
118
+ $fault: "client",
119
+ ...opts,
120
+ });
121
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
122
+ this.error = opts.error;
123
+ this.reason = opts.reason;
124
+ this.error_description = opts.error_description;
125
+ }
126
+ }
127
+ exports.InvalidRequestException = InvalidRequestException;
128
+ class InvalidScopeException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
129
+ name = "InvalidScopeException";
130
+ $fault = "client";
131
+ error;
132
+ error_description;
133
+ constructor(opts) {
134
+ super({
135
+ name: "InvalidScopeException",
136
+ $fault: "client",
137
+ ...opts,
138
+ });
139
+ Object.setPrototypeOf(this, InvalidScopeException.prototype);
140
+ this.error = opts.error;
141
+ this.error_description = opts.error_description;
142
+ }
143
+ }
144
+ exports.InvalidScopeException = InvalidScopeException;
145
+ class SlowDownException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
146
+ name = "SlowDownException";
147
+ $fault = "client";
148
+ error;
149
+ error_description;
150
+ constructor(opts) {
151
+ super({
152
+ name: "SlowDownException",
153
+ $fault: "client",
154
+ ...opts,
155
+ });
156
+ Object.setPrototypeOf(this, SlowDownException.prototype);
157
+ this.error = opts.error;
158
+ this.error_description = opts.error_description;
159
+ }
160
+ }
161
+ exports.SlowDownException = SlowDownException;
162
+ class UnauthorizedClientException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
163
+ name = "UnauthorizedClientException";
164
+ $fault = "client";
165
+ error;
166
+ error_description;
167
+ constructor(opts) {
168
+ super({
169
+ name: "UnauthorizedClientException",
170
+ $fault: "client",
171
+ ...opts,
172
+ });
173
+ Object.setPrototypeOf(this, UnauthorizedClientException.prototype);
174
+ this.error = opts.error;
175
+ this.error_description = opts.error_description;
176
+ }
177
+ }
178
+ exports.UnauthorizedClientException = UnauthorizedClientException;
179
+ class UnsupportedGrantTypeException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
180
+ name = "UnsupportedGrantTypeException";
181
+ $fault = "client";
182
+ error;
183
+ error_description;
184
+ constructor(opts) {
185
+ super({
186
+ name: "UnsupportedGrantTypeException",
187
+ $fault: "client",
188
+ ...opts,
189
+ });
190
+ Object.setPrototypeOf(this, UnsupportedGrantTypeException.prototype);
191
+ this.error = opts.error;
192
+ this.error_description = opts.error_description;
193
+ }
194
+ }
195
+ exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException;
@@ -10,6 +10,7 @@ const util_base64_1 = require("@smithy/util-base64");
10
10
  const util_utf8_1 = require("@smithy/util-utf8");
11
11
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
12
12
  const endpointResolver_1 = require("./endpoint/endpointResolver");
13
+ const schemas_0_1 = require("./schemas/schemas_0");
13
14
  const getRuntimeConfig = (config) => {
14
15
  return {
15
16
  apiVersion: "2019-06-10",
@@ -35,6 +36,7 @@ const getRuntimeConfig = (config) => {
35
36
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
36
37
  protocolSettings: config?.protocolSettings ?? {
37
38
  defaultNamespace: "com.amazonaws.ssooidc",
39
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
38
40
  version: "2019-06-10",
39
41
  serviceTarget: "AWSSSOOIDCService",
40
42
  },