@jjrawlins/cdk-diff-pr-github-action 1.4.1 → 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 (123) hide show
  1. package/.jsii +4 -4
  2. package/README.md +140 -7
  3. package/lib/CdkDiffIamTemplate.js +2 -2
  4. package/lib/CdkDiffIamTemplateStackSet.js +2 -2
  5. package/lib/CdkDiffStackWorkflow.js +1 -1
  6. package/lib/CdkDriftDetectionWorkflow.js +1 -1
  7. package/lib/CdkDriftIamTemplate.js +2 -2
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +109 -3610
  9. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/models/CloudFormationServiceException.js +12 -0
  10. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/models/errors.js +439 -0
  11. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.shared.js +2 -0
  12. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/schemas/schemas_0.js +2741 -0
  13. package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.shared.js +2 -0
  14. package/node_modules/@aws-sdk/client-cloudformation/dist-es/schemas/schemas_0.js +182 -176
  15. package/node_modules/@aws-sdk/client-cloudformation/dist-types/schemas/schemas_0.d.ts +37 -30
  16. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/schemas/schemas_0.d.ts +32 -30
  17. package/node_modules/@aws-sdk/client-cloudformation/package.json +13 -13
  18. package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +23 -234
  19. package/node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js +12 -0
  20. package/node_modules/@aws-sdk/client-sso/dist-cjs/models/errors.js +56 -0
  21. package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js +2 -0
  22. package/node_modules/@aws-sdk/client-sso/dist-cjs/schemas/schemas_0.js +161 -0
  23. package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js +2 -0
  24. package/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +32 -26
  25. package/node_modules/@aws-sdk/client-sso/dist-types/schemas/schemas_0.d.ts +12 -5
  26. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/schemas/schemas_0.d.ts +7 -5
  27. package/node_modules/@aws-sdk/client-sso/package.json +12 -12
  28. package/node_modules/@aws-sdk/core/package.json +3 -3
  29. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  30. package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
  31. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  32. package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
  33. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  34. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  35. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  36. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  37. package/node_modules/@aws-sdk/middleware-user-agent/package.json +4 -4
  38. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +20 -198
  39. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/SigninServiceException.js +12 -0
  40. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/errors.js +64 -0
  41. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.shared.js +2 -0
  42. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/schemas/schemas_0.js +125 -0
  43. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +20 -347
  44. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/SSOOIDCServiceException.js +12 -0
  45. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/errors.js +195 -0
  46. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
  47. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/schemas/schemas_0.js +140 -0
  48. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +21 -308
  49. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/STSServiceException.js +12 -0
  50. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/errors.js +95 -0
  51. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js +2 -0
  52. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/schemas/schemas_0.js +195 -0
  53. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.shared.js +2 -0
  54. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +15 -12
  55. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
  56. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +40 -37
  57. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js +2 -0
  58. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +60 -57
  59. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/schemas/schemas_0.d.ts +11 -4
  60. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/schemas/schemas_0.d.ts +10 -3
  61. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/schemas/schemas_0.d.ts +15 -8
  62. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/schemas/schemas_0.d.ts +6 -4
  63. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/schemas/schemas_0.d.ts +5 -3
  64. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/schemas/schemas_0.d.ts +10 -8
  65. package/node_modules/@aws-sdk/nested-clients/package.json +12 -12
  66. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  67. package/node_modules/@aws-sdk/util-endpoints/package.json +1 -1
  68. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  69. package/package.json +2 -2
  70. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/LICENSE +0 -201
  71. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/README.md +0 -6
  72. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +0 -415
  73. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +0 -267
  74. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js +0 -10
  75. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/index.js +0 -6
  76. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/index.js +0 -3
  77. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js +0 -25
  78. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/parseArn.js +0 -18
  79. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partition.js +0 -41
  80. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +0 -267
  81. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/isIpAddress.js +0 -1
  82. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/resolveDefaultAwsRegionalEndpointsConfig.js +0 -21
  83. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/resolveEndpoint.js +0 -1
  84. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointError.js +0 -1
  85. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointRuleObject.js +0 -1
  86. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/ErrorRuleObject.js +0 -1
  87. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/RuleSetObject.js +0 -1
  88. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/TreeRuleObject.js +0 -1
  89. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/index.js +0 -6
  90. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/shared.js +0 -1
  91. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/aws.d.ts +0 -2
  92. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/index.d.ts +0 -6
  93. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/index.d.ts +0 -3
  94. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/isVirtualHostableS3Bucket.d.ts +0 -5
  95. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/parseArn.d.ts +0 -7
  96. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/partition.d.ts +0 -38
  97. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/lib/isIpAddress.d.ts +0 -1
  98. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/resolveDefaultAwsRegionalEndpointsConfig.d.ts +0 -56
  99. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/resolveEndpoint.d.ts +0 -1
  100. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/aws.d.ts +0 -2
  101. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/index.d.ts +0 -6
  102. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/index.d.ts +0 -3
  103. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/isVirtualHostableS3Bucket.d.ts +0 -4
  104. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/parseArn.d.ts +0 -2
  105. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/partition.d.ts +0 -28
  106. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/isIpAddress.d.ts +0 -1
  107. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveDefaultAwsRegionalEndpointsConfig.d.ts +0 -35
  108. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveEndpoint.d.ts +0 -1
  109. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointError.d.ts +0 -1
  110. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointRuleObject.d.ts +0 -6
  111. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/ErrorRuleObject.d.ts +0 -1
  112. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/RuleSetObject.d.ts +0 -5
  113. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/TreeRuleObject.d.ts +0 -1
  114. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/index.d.ts +0 -6
  115. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/shared.d.ts +0 -12
  116. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointError.d.ts +0 -1
  117. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointRuleObject.d.ts +0 -1
  118. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/ErrorRuleObject.d.ts +0 -1
  119. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/RuleSetObject.d.ts +0 -1
  120. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/TreeRuleObject.d.ts +0 -1
  121. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/index.d.ts +0 -6
  122. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/shared.d.ts +0 -1
  123. 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 SigninServiceException = require('./models/SigninServiceException');
18
21
 
19
22
  const resolveClientEndpointParameters = (options) => {
20
23
  return Object.assign(options, {
@@ -110,187 +113,6 @@ class SigninClient extends smithyClient.Client {
110
113
  }
111
114
  }
112
115
 
113
- class SigninServiceException extends smithyClient.ServiceException {
114
- constructor(options) {
115
- super(options);
116
- Object.setPrototypeOf(this, SigninServiceException.prototype);
117
- }
118
- }
119
-
120
- class AccessDeniedException extends SigninServiceException {
121
- name = "AccessDeniedException";
122
- $fault = "client";
123
- error;
124
- constructor(opts) {
125
- super({
126
- name: "AccessDeniedException",
127
- $fault: "client",
128
- ...opts,
129
- });
130
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
131
- this.error = opts.error;
132
- }
133
- }
134
- class InternalServerException extends SigninServiceException {
135
- name = "InternalServerException";
136
- $fault = "server";
137
- error;
138
- constructor(opts) {
139
- super({
140
- name: "InternalServerException",
141
- $fault: "server",
142
- ...opts,
143
- });
144
- Object.setPrototypeOf(this, InternalServerException.prototype);
145
- this.error = opts.error;
146
- }
147
- }
148
- class TooManyRequestsError extends SigninServiceException {
149
- name = "TooManyRequestsError";
150
- $fault = "client";
151
- error;
152
- constructor(opts) {
153
- super({
154
- name: "TooManyRequestsError",
155
- $fault: "client",
156
- ...opts,
157
- });
158
- Object.setPrototypeOf(this, TooManyRequestsError.prototype);
159
- this.error = opts.error;
160
- }
161
- }
162
- class ValidationException extends SigninServiceException {
163
- name = "ValidationException";
164
- $fault = "client";
165
- error;
166
- constructor(opts) {
167
- super({
168
- name: "ValidationException",
169
- $fault: "client",
170
- ...opts,
171
- });
172
- Object.setPrototypeOf(this, ValidationException.prototype);
173
- this.error = opts.error;
174
- }
175
- }
176
-
177
- const _ADE = "AccessDeniedException";
178
- const _AT = "AccessToken";
179
- const _COAT = "CreateOAuth2Token";
180
- const _COATR = "CreateOAuth2TokenRequest";
181
- const _COATRB = "CreateOAuth2TokenRequestBody";
182
- const _COATRBr = "CreateOAuth2TokenResponseBody";
183
- const _COATRr = "CreateOAuth2TokenResponse";
184
- const _ISE = "InternalServerException";
185
- const _RT = "RefreshToken";
186
- const _TMRE = "TooManyRequestsError";
187
- const _VE = "ValidationException";
188
- const _aKI = "accessKeyId";
189
- const _aT = "accessToken";
190
- const _c = "client";
191
- const _cI = "clientId";
192
- const _cV = "codeVerifier";
193
- const _co = "code";
194
- const _e = "error";
195
- const _eI = "expiresIn";
196
- const _gT = "grantType";
197
- const _h = "http";
198
- const _hE = "httpError";
199
- const _iT = "idToken";
200
- const _jN = "jsonName";
201
- const _m = "message";
202
- const _rT = "refreshToken";
203
- const _rU = "redirectUri";
204
- const _s = "server";
205
- const _sAK = "secretAccessKey";
206
- const _sT = "sessionToken";
207
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.signin";
208
- const _tI = "tokenInput";
209
- const _tO = "tokenOutput";
210
- const _tT = "tokenType";
211
- const n0 = "com.amazonaws.signin";
212
- var RefreshToken = [0, n0, _RT, 8, 0];
213
- var AccessDeniedException$ = [-3, n0, _ADE, { [_e]: _c }, [_e, _m], [0, 0], 2];
214
- schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
215
- var AccessToken$ = [
216
- 3,
217
- n0,
218
- _AT,
219
- 8,
220
- [_aKI, _sAK, _sT],
221
- [
222
- [0, { [_jN]: _aKI }],
223
- [0, { [_jN]: _sAK }],
224
- [0, { [_jN]: _sT }],
225
- ],
226
- 3,
227
- ];
228
- var CreateOAuth2TokenRequest$ = [
229
- 3,
230
- n0,
231
- _COATR,
232
- 0,
233
- [_tI],
234
- [[() => CreateOAuth2TokenRequestBody$, 16]],
235
- 1,
236
- ];
237
- var CreateOAuth2TokenRequestBody$ = [
238
- 3,
239
- n0,
240
- _COATRB,
241
- 0,
242
- [_cI, _gT, _co, _rU, _cV, _rT],
243
- [
244
- [0, { [_jN]: _cI }],
245
- [0, { [_jN]: _gT }],
246
- 0,
247
- [0, { [_jN]: _rU }],
248
- [0, { [_jN]: _cV }],
249
- [() => RefreshToken, { [_jN]: _rT }],
250
- ],
251
- 2,
252
- ];
253
- var CreateOAuth2TokenResponse$ = [
254
- 3,
255
- n0,
256
- _COATRr,
257
- 0,
258
- [_tO],
259
- [[() => CreateOAuth2TokenResponseBody$, 16]],
260
- 1,
261
- ];
262
- var CreateOAuth2TokenResponseBody$ = [
263
- 3,
264
- n0,
265
- _COATRBr,
266
- 0,
267
- [_aT, _tT, _eI, _rT, _iT],
268
- [
269
- [() => AccessToken$, { [_jN]: _aT }],
270
- [0, { [_jN]: _tT }],
271
- [1, { [_jN]: _eI }],
272
- [() => RefreshToken, { [_jN]: _rT }],
273
- [0, { [_jN]: _iT }],
274
- ],
275
- 4,
276
- ];
277
- var InternalServerException$ = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_e, _m], [0, 0], 2];
278
- schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
279
- var TooManyRequestsError$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_e, _m], [0, 0], 2];
280
- schema.TypeRegistry.for(n0).registerError(TooManyRequestsError$, TooManyRequestsError);
281
- var ValidationException$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_e, _m], [0, 0], 2];
282
- schema.TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
283
- var SigninServiceException$ = [-3, _sm, "SigninServiceException", 0, [], []];
284
- schema.TypeRegistry.for(_sm).registerError(SigninServiceException$, SigninServiceException);
285
- var CreateOAuth2Token$ = [
286
- 9,
287
- n0,
288
- _COAT,
289
- { [_h]: ["POST", "/v1/token", 200] },
290
- () => CreateOAuth2TokenRequest$,
291
- () => CreateOAuth2TokenResponse$,
292
- ];
293
-
294
116
  class CreateOAuth2TokenCommand extends smithyClient.Command
295
117
  .classBuilder()
296
118
  .ep(commonParams)
@@ -299,7 +121,7 @@ class CreateOAuth2TokenCommand extends smithyClient.Command
299
121
  })
300
122
  .s("Signin", "CreateOAuth2Token", {})
301
123
  .n("SigninClient", "CreateOAuth2TokenCommand")
302
- .sc(CreateOAuth2Token$)
124
+ .sc(schemas_0.CreateOAuth2Token$)
303
125
  .build() {
304
126
  }
305
127
 
@@ -327,23 +149,23 @@ Object.defineProperty(exports, "__Client", {
327
149
  enumerable: true,
328
150
  get: function () { return smithyClient.Client; }
329
151
  });
330
- exports.AccessDeniedException = AccessDeniedException;
331
- exports.AccessDeniedException$ = AccessDeniedException$;
332
- exports.AccessToken$ = AccessToken$;
333
- exports.CreateOAuth2Token$ = CreateOAuth2Token$;
152
+ Object.defineProperty(exports, "SigninServiceException", {
153
+ enumerable: true,
154
+ get: function () { return SigninServiceException.SigninServiceException; }
155
+ });
334
156
  exports.CreateOAuth2TokenCommand = CreateOAuth2TokenCommand;
335
- exports.CreateOAuth2TokenRequest$ = CreateOAuth2TokenRequest$;
336
- exports.CreateOAuth2TokenRequestBody$ = CreateOAuth2TokenRequestBody$;
337
- exports.CreateOAuth2TokenResponse$ = CreateOAuth2TokenResponse$;
338
- exports.CreateOAuth2TokenResponseBody$ = CreateOAuth2TokenResponseBody$;
339
- exports.InternalServerException = InternalServerException;
340
- exports.InternalServerException$ = InternalServerException$;
341
157
  exports.OAuth2ErrorCode = OAuth2ErrorCode;
342
158
  exports.Signin = Signin;
343
159
  exports.SigninClient = SigninClient;
344
- exports.SigninServiceException = SigninServiceException;
345
- exports.SigninServiceException$ = SigninServiceException$;
346
- exports.TooManyRequestsError = TooManyRequestsError;
347
- exports.TooManyRequestsError$ = TooManyRequestsError$;
348
- exports.ValidationException = ValidationException;
349
- exports.ValidationException$ = ValidationException$;
160
+ Object.keys(schemas_0).forEach(function (k) {
161
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
162
+ enumerable: true,
163
+ get: function () { return schemas_0[k]; }
164
+ });
165
+ });
166
+ Object.keys(errors).forEach(function (k) {
167
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
168
+ enumerable: true,
169
+ get: function () { return errors[k]; }
170
+ });
171
+ });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SigninServiceException = 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 SigninServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, SigninServiceException.prototype);
10
+ }
11
+ }
12
+ exports.SigninServiceException = SigninServiceException;
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ValidationException = exports.TooManyRequestsError = exports.InternalServerException = exports.AccessDeniedException = void 0;
4
+ const SigninServiceException_1 = require("./SigninServiceException");
5
+ class AccessDeniedException extends SigninServiceException_1.SigninServiceException {
6
+ name = "AccessDeniedException";
7
+ $fault = "client";
8
+ error;
9
+ constructor(opts) {
10
+ super({
11
+ name: "AccessDeniedException",
12
+ $fault: "client",
13
+ ...opts,
14
+ });
15
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
16
+ this.error = opts.error;
17
+ }
18
+ }
19
+ exports.AccessDeniedException = AccessDeniedException;
20
+ class InternalServerException extends SigninServiceException_1.SigninServiceException {
21
+ name = "InternalServerException";
22
+ $fault = "server";
23
+ error;
24
+ constructor(opts) {
25
+ super({
26
+ name: "InternalServerException",
27
+ $fault: "server",
28
+ ...opts,
29
+ });
30
+ Object.setPrototypeOf(this, InternalServerException.prototype);
31
+ this.error = opts.error;
32
+ }
33
+ }
34
+ exports.InternalServerException = InternalServerException;
35
+ class TooManyRequestsError extends SigninServiceException_1.SigninServiceException {
36
+ name = "TooManyRequestsError";
37
+ $fault = "client";
38
+ error;
39
+ constructor(opts) {
40
+ super({
41
+ name: "TooManyRequestsError",
42
+ $fault: "client",
43
+ ...opts,
44
+ });
45
+ Object.setPrototypeOf(this, TooManyRequestsError.prototype);
46
+ this.error = opts.error;
47
+ }
48
+ }
49
+ exports.TooManyRequestsError = TooManyRequestsError;
50
+ class ValidationException extends SigninServiceException_1.SigninServiceException {
51
+ name = "ValidationException";
52
+ $fault = "client";
53
+ error;
54
+ constructor(opts) {
55
+ super({
56
+ name: "ValidationException",
57
+ $fault: "client",
58
+ ...opts,
59
+ });
60
+ Object.setPrototypeOf(this, ValidationException.prototype);
61
+ this.error = opts.error;
62
+ }
63
+ }
64
+ exports.ValidationException = ValidationException;
@@ -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: "2023-01-01",
@@ -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.signin",
39
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
38
40
  version: "2023-01-01",
39
41
  serviceTarget: "Signin",
40
42
  },
@@ -0,0 +1,125 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateOAuth2Token$ = exports.CreateOAuth2TokenResponseBody$ = exports.CreateOAuth2TokenResponse$ = exports.CreateOAuth2TokenRequestBody$ = exports.CreateOAuth2TokenRequest$ = exports.AccessToken$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.TooManyRequestsError$ = exports.InternalServerException$ = exports.AccessDeniedException$ = exports.SigninServiceException$ = void 0;
4
+ const _ADE = "AccessDeniedException";
5
+ const _AT = "AccessToken";
6
+ const _COAT = "CreateOAuth2Token";
7
+ const _COATR = "CreateOAuth2TokenRequest";
8
+ const _COATRB = "CreateOAuth2TokenRequestBody";
9
+ const _COATRBr = "CreateOAuth2TokenResponseBody";
10
+ const _COATRr = "CreateOAuth2TokenResponse";
11
+ const _ISE = "InternalServerException";
12
+ const _RT = "RefreshToken";
13
+ const _TMRE = "TooManyRequestsError";
14
+ const _VE = "ValidationException";
15
+ const _aKI = "accessKeyId";
16
+ const _aT = "accessToken";
17
+ const _c = "client";
18
+ const _cI = "clientId";
19
+ const _cV = "codeVerifier";
20
+ const _co = "code";
21
+ const _e = "error";
22
+ const _eI = "expiresIn";
23
+ const _gT = "grantType";
24
+ const _h = "http";
25
+ const _hE = "httpError";
26
+ const _iT = "idToken";
27
+ const _jN = "jsonName";
28
+ const _m = "message";
29
+ const _rT = "refreshToken";
30
+ const _rU = "redirectUri";
31
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.signin";
32
+ const _sAK = "secretAccessKey";
33
+ const _sT = "sessionToken";
34
+ const _se = "server";
35
+ const _tI = "tokenInput";
36
+ const _tO = "tokenOutput";
37
+ const _tT = "tokenType";
38
+ const n0 = "com.amazonaws.signin";
39
+ const schema_1 = require("@smithy/core/schema");
40
+ const errors_1 = require("../models/errors");
41
+ const SigninServiceException_1 = require("../models/SigninServiceException");
42
+ const _s_registry = schema_1.TypeRegistry.for(_s);
43
+ exports.SigninServiceException$ = [-3, _s, "SigninServiceException", 0, [], []];
44
+ _s_registry.registerError(exports.SigninServiceException$, SigninServiceException_1.SigninServiceException);
45
+ const n0_registry = schema_1.TypeRegistry.for(n0);
46
+ exports.AccessDeniedException$ = [-3, n0, _ADE, { [_e]: _c }, [_e, _m], [0, 0], 2];
47
+ n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
48
+ exports.InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _m], [0, 0], 2];
49
+ n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
50
+ exports.TooManyRequestsError$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_e, _m], [0, 0], 2];
51
+ n0_registry.registerError(exports.TooManyRequestsError$, errors_1.TooManyRequestsError);
52
+ exports.ValidationException$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_e, _m], [0, 0], 2];
53
+ n0_registry.registerError(exports.ValidationException$, errors_1.ValidationException);
54
+ exports.errorTypeRegistries = [_s_registry, n0_registry];
55
+ var RefreshToken = [0, n0, _RT, 8, 0];
56
+ exports.AccessToken$ = [
57
+ 3,
58
+ n0,
59
+ _AT,
60
+ 8,
61
+ [_aKI, _sAK, _sT],
62
+ [
63
+ [0, { [_jN]: _aKI }],
64
+ [0, { [_jN]: _sAK }],
65
+ [0, { [_jN]: _sT }],
66
+ ],
67
+ 3,
68
+ ];
69
+ exports.CreateOAuth2TokenRequest$ = [
70
+ 3,
71
+ n0,
72
+ _COATR,
73
+ 0,
74
+ [_tI],
75
+ [[() => exports.CreateOAuth2TokenRequestBody$, 16]],
76
+ 1,
77
+ ];
78
+ exports.CreateOAuth2TokenRequestBody$ = [
79
+ 3,
80
+ n0,
81
+ _COATRB,
82
+ 0,
83
+ [_cI, _gT, _co, _rU, _cV, _rT],
84
+ [
85
+ [0, { [_jN]: _cI }],
86
+ [0, { [_jN]: _gT }],
87
+ 0,
88
+ [0, { [_jN]: _rU }],
89
+ [0, { [_jN]: _cV }],
90
+ [() => RefreshToken, { [_jN]: _rT }],
91
+ ],
92
+ 2,
93
+ ];
94
+ exports.CreateOAuth2TokenResponse$ = [
95
+ 3,
96
+ n0,
97
+ _COATRr,
98
+ 0,
99
+ [_tO],
100
+ [[() => exports.CreateOAuth2TokenResponseBody$, 16]],
101
+ 1,
102
+ ];
103
+ exports.CreateOAuth2TokenResponseBody$ = [
104
+ 3,
105
+ n0,
106
+ _COATRBr,
107
+ 0,
108
+ [_aT, _tT, _eI, _rT, _iT],
109
+ [
110
+ [() => exports.AccessToken$, { [_jN]: _aT }],
111
+ [0, { [_jN]: _tT }],
112
+ [1, { [_jN]: _eI }],
113
+ [() => RefreshToken, { [_jN]: _rT }],
114
+ [0, { [_jN]: _iT }],
115
+ ],
116
+ 4,
117
+ ];
118
+ exports.CreateOAuth2Token$ = [
119
+ 9,
120
+ n0,
121
+ _COAT,
122
+ { [_h]: ["POST", "/v1/token", 200] },
123
+ () => exports.CreateOAuth2TokenRequest$,
124
+ () => exports.CreateOAuth2TokenResponse$,
125
+ ];