@aws-sdk/client-sso-oidc 3.1068.0 → 3.1069.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.
@@ -1,17 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveHttpAuthSchemeConfig = exports.defaultSSOOIDCHttpAuthSchemeProvider = exports.defaultSSOOIDCHttpAuthSchemeParametersProvider = void 0;
4
- const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
5
- const client_1 = require("@smithy/core/client");
6
- const defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
1
+ const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
2
+ const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
3
+ exports.defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
7
4
  return {
8
- operation: (0, client_1.getSmithyContext)(context).operation,
9
- region: await (0, client_1.normalizeProvider)(config.region)() || (() => {
5
+ operation: getSmithyContext(context).operation,
6
+ region: await normalizeProvider(config.region)() || (() => {
10
7
  throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
11
8
  })(),
12
9
  };
13
10
  };
14
- exports.defaultSSOOIDCHttpAuthSchemeParametersProvider = defaultSSOOIDCHttpAuthSchemeParametersProvider;
15
11
  function createAwsAuthSigv4HttpAuthOption(authParameters) {
16
12
  return {
17
13
  schemeId: "aws.auth#sigv4",
@@ -32,7 +28,7 @@ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
32
28
  schemeId: "smithy.api#noAuth",
33
29
  };
34
30
  }
35
- const defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
31
+ exports.defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
36
32
  const options = [];
37
33
  switch (authParameters.operation) {
38
34
  case "CreateToken":
@@ -59,11 +55,9 @@ const defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
59
55
  }
60
56
  return options;
61
57
  };
62
- exports.defaultSSOOIDCHttpAuthSchemeProvider = defaultSSOOIDCHttpAuthSchemeProvider;
63
- const resolveHttpAuthSchemeConfig = (config) => {
64
- const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
58
+ exports.resolveHttpAuthSchemeConfig = (config) => {
59
+ const config_0 = resolveAwsSdkSigV4Config(config);
65
60
  return Object.assign(config_0, {
66
- authSchemePreference: (0, client_1.normalizeProvider)(config.authSchemePreference ?? []),
61
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
67
62
  });
68
63
  };
69
- exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.bdd = void 0;
4
- const endpoints_1 = require("@smithy/core/endpoints");
1
+ const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
5
2
  const k = "ref";
6
3
  const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
7
4
  const _data = {
@@ -49,4 +46,4 @@ const nodes = new Int32Array([
49
46
  3, r + 1, 14,
50
47
  4, r + 2, r + 3,
51
48
  ]);
52
- exports.bdd = endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
49
+ exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -1,18 +1,14 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultEndpointResolver = void 0;
4
- const client_1 = require("@aws-sdk/core/client");
5
- const endpoints_1 = require("@smithy/core/endpoints");
6
- const bdd_1 = require("./bdd");
7
- const cache = new endpoints_1.EndpointCache({
1
+ const { awsEndpointFunctions } = require("@aws-sdk/core/client");
2
+ const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
3
+ const { bdd } = require("./bdd");
4
+ const cache = new EndpointCache({
8
5
  size: 50,
9
6
  params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
10
7
  });
11
- const defaultEndpointResolver = (endpointParams, context = {}) => {
12
- return cache.get(endpointParams, () => (0, endpoints_1.decideEndpoint)(bdd_1.bdd, {
8
+ exports.defaultEndpointResolver = (endpointParams, context = {}) => {
9
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
13
10
  endpointParams: endpointParams,
14
11
  logger: context.logger,
15
12
  }));
16
13
  };
17
- exports.defaultEndpointResolver = defaultEndpointResolver;
18
- endpoints_1.customEndpointFunctions.aws = client_1.awsEndpointFunctions;
14
+ customEndpointFunctions.aws = awsEndpointFunctions;
package/dist-cjs/index.js CHANGED
@@ -1,18 +1,21 @@
1
- 'use strict';
2
-
3
- var client$1 = require('@aws-sdk/core/client');
4
- var core = require('@smithy/core');
5
- var client = require('@smithy/core/client');
6
- var config = require('@smithy/core/config');
7
- var endpoints = require('@smithy/core/endpoints');
8
- var protocols = require('@smithy/core/protocols');
9
- var retry = require('@smithy/core/retry');
10
- var schema = require('@smithy/core/schema');
11
- var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
12
- var runtimeConfig = require('./runtimeConfig');
13
- var schemas_0 = require('./schemas/schemas_0');
14
- var errors = require('./models/errors');
15
- var SSOOIDCServiceException = require('./models/SSOOIDCServiceException');
1
+ var __exportStar = (m, e) => { Object.assign(e, m); };
2
+ const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
+ const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
4
+ const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
+ exports.$Command = Command;
6
+ exports.__Client = Client;
7
+ const { resolveRegionConfig } = require("@smithy/core/config");
8
+ const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
+ const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
+ const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
+ const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
+ const { resolveHttpAuthSchemeConfig, defaultSSOOIDCHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
+ const { getRuntimeConfig } = require("./runtimeConfig");
14
+ const { CreateToken$, CreateTokenWithIAM$, RegisterClient$, StartDeviceAuthorization$ } = require("./schemas/schemas_0");
15
+ __exportStar(require("./schemas/schemas_0"), exports);
16
+ __exportStar(require("./models/errors"), exports);
17
+ const { SSOOIDCServiceException } = require("./models/SSOOIDCServiceException");
18
+ exports.SSOOIDCServiceException = SSOOIDCServiceException;
16
19
 
17
20
  const resolveClientEndpointParameters = (options) => {
18
21
  return Object.assign(options, {
@@ -68,91 +71,91 @@ const resolveHttpAuthRuntimeConfig = (config) => {
68
71
  };
69
72
 
70
73
  const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
71
- const extensionConfiguration = Object.assign(client$1.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
74
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
72
75
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
73
- return Object.assign(runtimeConfig, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
76
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
74
77
  };
75
78
 
76
- class SSOOIDCClient extends client.Client {
79
+ class SSOOIDCClient extends Client {
77
80
  config;
78
81
  constructor(...[configuration]) {
79
- const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
82
+ const _config_0 = getRuntimeConfig(configuration || {});
80
83
  super(_config_0);
81
84
  this.initConfig = _config_0;
82
85
  const _config_1 = resolveClientEndpointParameters(_config_0);
83
- const _config_2 = client$1.resolveUserAgentConfig(_config_1);
84
- const _config_3 = retry.resolveRetryConfig(_config_2);
85
- const _config_4 = config.resolveRegionConfig(_config_3);
86
- const _config_5 = client$1.resolveHostHeaderConfig(_config_4);
87
- const _config_6 = endpoints.resolveEndpointConfig(_config_5);
88
- const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
86
+ const _config_2 = resolveUserAgentConfig(_config_1);
87
+ const _config_3 = resolveRetryConfig(_config_2);
88
+ const _config_4 = resolveRegionConfig(_config_3);
89
+ const _config_5 = resolveHostHeaderConfig(_config_4);
90
+ const _config_6 = resolveEndpointConfig(_config_5);
91
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
89
92
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
90
93
  this.config = _config_8;
91
- this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
92
- this.middlewareStack.use(client$1.getUserAgentPlugin(this.config));
93
- this.middlewareStack.use(retry.getRetryPlugin(this.config));
94
- this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
95
- this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config));
96
- this.middlewareStack.use(client$1.getLoggerPlugin(this.config));
97
- this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config));
98
- this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
99
- httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSSOOIDCHttpAuthSchemeParametersProvider,
100
- identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
94
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
95
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
96
+ this.middlewareStack.use(getRetryPlugin(this.config));
97
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
98
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
99
+ this.middlewareStack.use(getLoggerPlugin(this.config));
100
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
101
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
102
+ httpAuthSchemeParametersProvider: defaultSSOOIDCHttpAuthSchemeParametersProvider,
103
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
101
104
  "aws.auth#sigv4": config.credentials,
102
105
  }),
103
106
  }));
104
- this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
107
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
105
108
  }
106
109
  destroy() {
107
110
  super.destroy();
108
111
  }
109
112
  }
110
113
 
111
- class CreateTokenCommand extends client.Command
114
+ class CreateTokenCommand extends Command
112
115
  .classBuilder()
113
116
  .ep(commonParams)
114
117
  .m(function (Command, cs, config, o) {
115
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
118
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
116
119
  })
117
120
  .s("AWSSSOOIDCService", "CreateToken", {})
118
121
  .n("SSOOIDCClient", "CreateTokenCommand")
119
- .sc(schemas_0.CreateToken$)
122
+ .sc(CreateToken$)
120
123
  .build() {
121
124
  }
122
125
 
123
- class CreateTokenWithIAMCommand extends client.Command
126
+ class CreateTokenWithIAMCommand extends Command
124
127
  .classBuilder()
125
128
  .ep(commonParams)
126
129
  .m(function (Command, cs, config, o) {
127
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
130
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
128
131
  })
129
132
  .s("AWSSSOOIDCService", "CreateTokenWithIAM", {})
130
133
  .n("SSOOIDCClient", "CreateTokenWithIAMCommand")
131
- .sc(schemas_0.CreateTokenWithIAM$)
134
+ .sc(CreateTokenWithIAM$)
132
135
  .build() {
133
136
  }
134
137
 
135
- class RegisterClientCommand extends client.Command
138
+ class RegisterClientCommand extends Command
136
139
  .classBuilder()
137
140
  .ep(commonParams)
138
141
  .m(function (Command, cs, config, o) {
139
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
142
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
140
143
  })
141
144
  .s("AWSSSOOIDCService", "RegisterClient", {})
142
145
  .n("SSOOIDCClient", "RegisterClientCommand")
143
- .sc(schemas_0.RegisterClient$)
146
+ .sc(RegisterClient$)
144
147
  .build() {
145
148
  }
146
149
 
147
- class StartDeviceAuthorizationCommand extends client.Command
150
+ class StartDeviceAuthorizationCommand extends Command
148
151
  .classBuilder()
149
152
  .ep(commonParams)
150
153
  .m(function (Command, cs, config, o) {
151
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
154
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
152
155
  })
153
156
  .s("AWSSSOOIDCService", "StartDeviceAuthorization", {})
154
157
  .n("SSOOIDCClient", "StartDeviceAuthorizationCommand")
155
- .sc(schemas_0.StartDeviceAuthorization$)
158
+ .sc(StartDeviceAuthorization$)
156
159
  .build() {
157
160
  }
158
161
 
@@ -164,7 +167,7 @@ const commands = {
164
167
  };
165
168
  class SSOOIDC extends SSOOIDCClient {
166
169
  }
167
- client.createAggregatedClient(commands, SSOOIDC);
170
+ createAggregatedClient(commands, SSOOIDC);
168
171
 
169
172
  const AccessDeniedExceptionReason = {
170
173
  KMS_ACCESS_DENIED: "KMS_AccessDeniedException",
@@ -176,9 +179,6 @@ const InvalidRequestExceptionReason = {
176
179
  KMS_KEY_NOT_FOUND: "KMS_NotFoundException",
177
180
  };
178
181
 
179
- exports.$Command = client.Command;
180
- exports.__Client = client.Client;
181
- exports.SSOOIDCServiceException = SSOOIDCServiceException.SSOOIDCServiceException;
182
182
  exports.AccessDeniedExceptionReason = AccessDeniedExceptionReason;
183
183
  exports.CreateTokenCommand = CreateTokenCommand;
184
184
  exports.CreateTokenWithIAMCommand = CreateTokenWithIAMCommand;
@@ -187,23 +187,3 @@ exports.RegisterClientCommand = RegisterClientCommand;
187
187
  exports.SSOOIDC = SSOOIDC;
188
188
  exports.SSOOIDCClient = SSOOIDCClient;
189
189
  exports.StartDeviceAuthorizationCommand = StartDeviceAuthorizationCommand;
190
- Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
191
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
192
- Object.defineProperty(exports, '__proto__', {
193
- enumerable: true,
194
- value: schemas_0['__proto__']
195
- });
196
-
197
- Object.keys(schemas_0).forEach(function (k) {
198
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
199
- });
200
- Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
201
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
202
- Object.defineProperty(exports, '__proto__', {
203
- enumerable: true,
204
- value: errors['__proto__']
205
- });
206
-
207
- Object.keys(errors).forEach(function (k) {
208
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
209
- });
@@ -1,12 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SSOOIDCServiceException = exports.__ServiceException = void 0;
4
- const client_1 = require("@smithy/core/client");
5
- Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
6
- class SSOOIDCServiceException extends client_1.ServiceException {
1
+ const { ServiceException: __ServiceException } = require("@smithy/core/client");
2
+ exports.__ServiceException = __ServiceException;
3
+ exports.SSOOIDCServiceException = class SSOOIDCServiceException extends __ServiceException {
7
4
  constructor(options) {
8
5
  super(options);
9
6
  Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);
10
7
  }
11
- }
12
- exports.SSOOIDCServiceException = SSOOIDCServiceException;
8
+ };
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InvalidRedirectUriException = exports.InvalidClientMetadataException = exports.InvalidRequestRegionException = 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 {
1
+ const { SSOOIDCServiceException: __BaseException } = require("./SSOOIDCServiceException");
2
+ exports.AccessDeniedException = class AccessDeniedException extends __BaseException {
6
3
  name = "AccessDeniedException";
7
4
  $fault = "client";
8
5
  error;
@@ -19,9 +16,8 @@ class AccessDeniedException extends SSOOIDCServiceException_1.SSOOIDCServiceExce
19
16
  this.reason = opts.reason;
20
17
  this.error_description = opts.error_description;
21
18
  }
22
- }
23
- exports.AccessDeniedException = AccessDeniedException;
24
- class AuthorizationPendingException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
19
+ };
20
+ exports.AuthorizationPendingException = class AuthorizationPendingException extends __BaseException {
25
21
  name = "AuthorizationPendingException";
26
22
  $fault = "client";
27
23
  error;
@@ -36,9 +32,8 @@ class AuthorizationPendingException extends SSOOIDCServiceException_1.SSOOIDCSer
36
32
  this.error = opts.error;
37
33
  this.error_description = opts.error_description;
38
34
  }
39
- }
40
- exports.AuthorizationPendingException = AuthorizationPendingException;
41
- class ExpiredTokenException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
35
+ };
36
+ exports.ExpiredTokenException = class ExpiredTokenException extends __BaseException {
42
37
  name = "ExpiredTokenException";
43
38
  $fault = "client";
44
39
  error;
@@ -53,9 +48,8 @@ class ExpiredTokenException extends SSOOIDCServiceException_1.SSOOIDCServiceExce
53
48
  this.error = opts.error;
54
49
  this.error_description = opts.error_description;
55
50
  }
56
- }
57
- exports.ExpiredTokenException = ExpiredTokenException;
58
- class InternalServerException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
51
+ };
52
+ exports.InternalServerException = class InternalServerException extends __BaseException {
59
53
  name = "InternalServerException";
60
54
  $fault = "server";
61
55
  error;
@@ -70,9 +64,8 @@ class InternalServerException extends SSOOIDCServiceException_1.SSOOIDCServiceEx
70
64
  this.error = opts.error;
71
65
  this.error_description = opts.error_description;
72
66
  }
73
- }
74
- exports.InternalServerException = InternalServerException;
75
- class InvalidClientException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
67
+ };
68
+ exports.InvalidClientException = class InvalidClientException extends __BaseException {
76
69
  name = "InvalidClientException";
77
70
  $fault = "client";
78
71
  error;
@@ -87,9 +80,8 @@ class InvalidClientException extends SSOOIDCServiceException_1.SSOOIDCServiceExc
87
80
  this.error = opts.error;
88
81
  this.error_description = opts.error_description;
89
82
  }
90
- }
91
- exports.InvalidClientException = InvalidClientException;
92
- class InvalidGrantException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
83
+ };
84
+ exports.InvalidGrantException = class InvalidGrantException extends __BaseException {
93
85
  name = "InvalidGrantException";
94
86
  $fault = "client";
95
87
  error;
@@ -104,9 +96,8 @@ class InvalidGrantException extends SSOOIDCServiceException_1.SSOOIDCServiceExce
104
96
  this.error = opts.error;
105
97
  this.error_description = opts.error_description;
106
98
  }
107
- }
108
- exports.InvalidGrantException = InvalidGrantException;
109
- class InvalidRequestException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
99
+ };
100
+ exports.InvalidRequestException = class InvalidRequestException extends __BaseException {
110
101
  name = "InvalidRequestException";
111
102
  $fault = "client";
112
103
  error;
@@ -123,9 +114,8 @@ class InvalidRequestException extends SSOOIDCServiceException_1.SSOOIDCServiceEx
123
114
  this.reason = opts.reason;
124
115
  this.error_description = opts.error_description;
125
116
  }
126
- }
127
- exports.InvalidRequestException = InvalidRequestException;
128
- class InvalidScopeException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
117
+ };
118
+ exports.InvalidScopeException = class InvalidScopeException extends __BaseException {
129
119
  name = "InvalidScopeException";
130
120
  $fault = "client";
131
121
  error;
@@ -140,9 +130,8 @@ class InvalidScopeException extends SSOOIDCServiceException_1.SSOOIDCServiceExce
140
130
  this.error = opts.error;
141
131
  this.error_description = opts.error_description;
142
132
  }
143
- }
144
- exports.InvalidScopeException = InvalidScopeException;
145
- class SlowDownException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
133
+ };
134
+ exports.SlowDownException = class SlowDownException extends __BaseException {
146
135
  name = "SlowDownException";
147
136
  $fault = "client";
148
137
  error;
@@ -157,9 +146,8 @@ class SlowDownException extends SSOOIDCServiceException_1.SSOOIDCServiceExceptio
157
146
  this.error = opts.error;
158
147
  this.error_description = opts.error_description;
159
148
  }
160
- }
161
- exports.SlowDownException = SlowDownException;
162
- class UnauthorizedClientException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
149
+ };
150
+ exports.UnauthorizedClientException = class UnauthorizedClientException extends __BaseException {
163
151
  name = "UnauthorizedClientException";
164
152
  $fault = "client";
165
153
  error;
@@ -174,9 +162,8 @@ class UnauthorizedClientException extends SSOOIDCServiceException_1.SSOOIDCServi
174
162
  this.error = opts.error;
175
163
  this.error_description = opts.error_description;
176
164
  }
177
- }
178
- exports.UnauthorizedClientException = UnauthorizedClientException;
179
- class UnsupportedGrantTypeException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
165
+ };
166
+ exports.UnsupportedGrantTypeException = class UnsupportedGrantTypeException extends __BaseException {
180
167
  name = "UnsupportedGrantTypeException";
181
168
  $fault = "client";
182
169
  error;
@@ -191,9 +178,8 @@ class UnsupportedGrantTypeException extends SSOOIDCServiceException_1.SSOOIDCSer
191
178
  this.error = opts.error;
192
179
  this.error_description = opts.error_description;
193
180
  }
194
- }
195
- exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException;
196
- class InvalidRequestRegionException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
181
+ };
182
+ exports.InvalidRequestRegionException = class InvalidRequestRegionException extends __BaseException {
197
183
  name = "InvalidRequestRegionException";
198
184
  $fault = "client";
199
185
  error;
@@ -212,9 +198,8 @@ class InvalidRequestRegionException extends SSOOIDCServiceException_1.SSOOIDCSer
212
198
  this.endpoint = opts.endpoint;
213
199
  this.region = opts.region;
214
200
  }
215
- }
216
- exports.InvalidRequestRegionException = InvalidRequestRegionException;
217
- class InvalidClientMetadataException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
201
+ };
202
+ exports.InvalidClientMetadataException = class InvalidClientMetadataException extends __BaseException {
218
203
  name = "InvalidClientMetadataException";
219
204
  $fault = "client";
220
205
  error;
@@ -229,9 +214,8 @@ class InvalidClientMetadataException extends SSOOIDCServiceException_1.SSOOIDCSe
229
214
  this.error = opts.error;
230
215
  this.error_description = opts.error_description;
231
216
  }
232
- }
233
- exports.InvalidClientMetadataException = InvalidClientMetadataException;
234
- class InvalidRedirectUriException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
217
+ };
218
+ exports.InvalidRedirectUriException = class InvalidRedirectUriException extends __BaseException {
235
219
  name = "InvalidRedirectUriException";
236
220
  $fault = "client";
237
221
  error;
@@ -246,5 +230,4 @@ class InvalidRedirectUriException extends SSOOIDCServiceException_1.SSOOIDCServi
246
230
  this.error = opts.error;
247
231
  this.error_description = opts.error_description;
248
232
  }
249
- }
250
- exports.InvalidRedirectUriException = InvalidRedirectUriException;
233
+ };
@@ -1,36 +1,32 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
4
- const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
- const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
- const client_1 = require("@aws-sdk/core/client");
8
- const client_2 = require("@smithy/core/client");
9
- const config_1 = require("@smithy/core/config");
10
- const retry_1 = require("@smithy/core/retry");
11
- const serde_1 = require("@smithy/core/serde");
12
- const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
13
- const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
1
+ const packageInfo = require("../package.json");
2
+ const { Sha256 } = require("@aws-crypto/sha256-browser");
3
+ const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
4
+ const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
5
+ const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
6
+ const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
7
+ const { calculateBodyLength } = require("@smithy/core/serde");
8
+ const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
9
+ const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
14
10
  const getRuntimeConfig = (config) => {
15
- const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
16
- const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
17
- const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
11
+ const defaultsMode = resolveDefaultsModeConfig(config);
12
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
13
+ const clientSharedValues = getSharedRuntimeConfig(config);
18
14
  return {
19
15
  ...clientSharedValues,
20
16
  ...config,
21
17
  runtime: "browser",
22
18
  defaultsMode,
23
- bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
19
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
24
20
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
25
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
26
- maxAttempts: config?.maxAttempts ?? retry_1.DEFAULT_MAX_ATTEMPTS,
27
- region: config?.region ?? (0, client_2.invalidProvider)("Region is missing"),
28
- requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
29
- retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE),
30
- sha256: config?.sha256 ?? sha256_browser_1.Sha256,
31
- streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
32
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
33
- useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_FIPS_ENDPOINT)),
21
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
22
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
23
+ region: config?.region ?? invalidProvider("Region is missing"),
24
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
+ sha256: config?.sha256 ?? Sha256,
27
+ streamCollector: config?.streamCollector ?? streamCollector,
28
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
34
30
  };
35
31
  };
36
32
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,23 +1,19 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
4
- const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
- const client_1 = require("@aws-sdk/core/client");
7
- const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
8
- const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
9
- const client_2 = require("@smithy/core/client");
10
- const config_1 = require("@smithy/core/config");
11
- const retry_1 = require("@smithy/core/retry");
12
- const serde_1 = require("@smithy/core/serde");
13
- const node_http_handler_1 = require("@smithy/node-http-handler");
14
- const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
1
+ const packageInfo = require("../package.json");
2
+ const { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS } = require("@aws-sdk/core/client");
3
+ const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
4
+ const { defaultProvider: credentialDefaultProvider } = require("@aws-sdk/credential-provider-node");
5
+ const { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } = require("@smithy/core/client");
6
+ const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig } = require("@smithy/core/config");
7
+ const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } = require("@smithy/core/retry");
8
+ const { calculateBodyLength, Hash } = require("@smithy/core/serde");
9
+ const { NodeHttpHandler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
10
+ const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
15
11
  const getRuntimeConfig = (config) => {
16
- (0, client_2.emitWarningIfUnsupportedVersion)(process.version);
17
- const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
18
- const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
19
- const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
20
- (0, client_1.emitWarningIfUnsupportedVersion)(process.version);
12
+ emitWarningIfUnsupportedVersion(process.version);
13
+ const defaultsMode = resolveDefaultsModeConfig(config);
14
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
15
+ const clientSharedValues = getSharedRuntimeConfig(config);
16
+ awsCheckVersion(process.version);
21
17
  const loaderConfig = {
22
18
  profile: config?.profile,
23
19
  logger: clientSharedValues.logger,
@@ -27,23 +23,23 @@ const getRuntimeConfig = (config) => {
27
23
  ...config,
28
24
  runtime: "node",
29
25
  defaultsMode,
30
- authSchemePreference: config?.authSchemePreference ?? (0, config_1.loadConfig)(httpAuthSchemes_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
31
- bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
32
- credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
33
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
34
- maxAttempts: config?.maxAttempts ?? (0, config_1.loadConfig)(retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
35
- region: config?.region ?? (0, config_1.loadConfig)(config_1.NODE_REGION_CONFIG_OPTIONS, { ...config_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
36
- requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
26
+ authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
27
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
28
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
29
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
30
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
31
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
32
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
37
33
  retryMode: config?.retryMode ??
38
- (0, config_1.loadConfig)({
39
- ...retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
- default: async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE,
34
+ loadNodeConfig({
35
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
41
37
  }, config),
42
- sha256: config?.sha256 ?? serde_1.Hash.bind(null, "sha256"),
43
- streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
44
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, config_1.loadConfig)(config_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
45
- useFipsEndpoint: config?.useFipsEndpoint ?? (0, config_1.loadConfig)(config_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
46
- userAgentAppId: config?.userAgentAppId ?? (0, config_1.loadConfig)(client_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
38
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
+ streamCollector: config?.streamCollector ?? streamCollector,
40
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
42
+ userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
47
43
  };
48
44
  };
49
45
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,15 +1,12 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
4
- const sha256_js_1 = require("@aws-crypto/sha256-js");
5
- const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
1
+ const { Sha256 } = require("@aws-crypto/sha256-js");
2
+ const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
6
3
  const getRuntimeConfig = (config) => {
7
- const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
4
+ const browserDefaults = getBrowserRuntimeConfig(config);
8
5
  return {
9
6
  ...browserDefaults,
10
7
  ...config,
11
8
  runtime: "react-native",
12
- sha256: config?.sha256 ?? sha256_js_1.Sha256,
9
+ sha256: config?.sha256 ?? Sha256,
13
10
  };
14
11
  };
15
12
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,48 +1,44 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
4
- const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
5
- const protocols_1 = require("@aws-sdk/core/protocols");
6
- const core_1 = require("@smithy/core");
7
- const client_1 = require("@smithy/core/client");
8
- const protocols_2 = require("@smithy/core/protocols");
9
- const serde_1 = require("@smithy/core/serde");
10
- const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
- const endpointResolver_1 = require("./endpoint/endpointResolver");
12
- const schemas_0_1 = require("./schemas/schemas_0");
13
- const getRuntimeConfig = (config) => {
1
+ const { AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
2
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
3
+ const { NoAuthSigner } = require("@smithy/core");
4
+ const { NoOpLogger } = require("@smithy/core/client");
5
+ const { parseUrl } = require("@smithy/core/protocols");
6
+ const { fromBase64, fromUtf8, toBase64, toUtf8 } = require("@smithy/core/serde");
7
+ const { defaultSSOOIDCHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
8
+ const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
9
+ const { errorTypeRegistries } = require("./schemas/schemas_0");
10
+ exports.getRuntimeConfig = (config) => {
14
11
  return {
15
12
  apiVersion: "2019-06-10",
16
- base64Decoder: config?.base64Decoder ?? serde_1.fromBase64,
17
- base64Encoder: config?.base64Encoder ?? serde_1.toBase64,
13
+ base64Decoder: config?.base64Decoder ?? fromBase64,
14
+ base64Encoder: config?.base64Encoder ?? toBase64,
18
15
  disableHostPrefix: config?.disableHostPrefix ?? false,
19
- endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
16
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
20
17
  extensions: config?.extensions ?? [],
21
- httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSSOOIDCHttpAuthSchemeProvider,
18
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOOIDCHttpAuthSchemeProvider,
22
19
  httpAuthSchemes: config?.httpAuthSchemes ?? [
23
20
  {
24
21
  schemeId: "aws.auth#sigv4",
25
22
  identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
26
- signer: new httpAuthSchemes_1.AwsSdkSigV4Signer(),
23
+ signer: new AwsSdkSigV4Signer(),
27
24
  },
28
25
  {
29
26
  schemeId: "smithy.api#noAuth",
30
27
  identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
31
- signer: new core_1.NoAuthSigner(),
28
+ signer: new NoAuthSigner(),
32
29
  },
33
30
  ],
34
- logger: config?.logger ?? new client_1.NoOpLogger(),
35
- protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
31
+ logger: config?.logger ?? new NoOpLogger(),
32
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
36
33
  protocolSettings: config?.protocolSettings ?? {
37
34
  defaultNamespace: "com.amazonaws.ssooidc",
38
- errorTypeRegistries: schemas_0_1.errorTypeRegistries,
35
+ errorTypeRegistries,
39
36
  version: "2019-06-10",
40
37
  serviceTarget: "AWSSSOOIDCService",
41
38
  },
42
39
  serviceId: config?.serviceId ?? "SSO OIDC",
43
- urlParser: config?.urlParser ?? protocols_2.parseUrl,
44
- utf8Decoder: config?.utf8Decoder ?? serde_1.fromUtf8,
45
- utf8Encoder: config?.utf8Encoder ?? serde_1.toUtf8,
40
+ urlParser: config?.urlParser ?? parseUrl,
41
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
42
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
46
43
  };
47
44
  };
48
- exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,6 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StartDeviceAuthorization$ = exports.RegisterClient$ = exports.CreateTokenWithIAM$ = exports.CreateToken$ = exports.StartDeviceAuthorizationResponse$ = exports.StartDeviceAuthorizationRequest$ = exports.RegisterClientResponse$ = exports.RegisterClientRequest$ = exports.CreateTokenWithIAMResponse$ = exports.CreateTokenWithIAMRequest$ = exports.CreateTokenResponse$ = exports.CreateTokenRequest$ = exports.AwsAdditionalDetails$ = exports.errorTypeRegistries = exports.UnsupportedGrantTypeException$ = exports.UnauthorizedClientException$ = exports.SlowDownException$ = exports.InvalidScopeException$ = exports.InvalidRequestRegionException$ = exports.InvalidRequestException$ = exports.InvalidRedirectUriException$ = exports.InvalidGrantException$ = exports.InvalidClientMetadataException$ = exports.InvalidClientException$ = exports.InternalServerException$ = exports.ExpiredTokenException$ = exports.AuthorizationPendingException$ = exports.AccessDeniedException$ = exports.SSOOIDCServiceException$ = void 0;
4
1
  const _A = "Assertion";
5
2
  const _AAD = "AwsAdditionalDetails";
6
3
  const _ADE = "AccessDeniedException";
@@ -82,97 +79,112 @@ const _uC = "userCode";
82
79
  const _vU = "verificationUri";
83
80
  const _vUC = "verificationUriComplete";
84
81
  const n0 = "com.amazonaws.ssooidc";
85
- const schema_1 = require("@smithy/core/schema");
86
- const errors_1 = require("../models/errors");
87
- const SSOOIDCServiceException_1 = require("../models/SSOOIDCServiceException");
88
- const _s_registry = schema_1.TypeRegistry.for(_s);
89
- exports.SSOOIDCServiceException$ = [-3, _s, "SSOOIDCServiceException", 0, [], []];
90
- _s_registry.registerError(exports.SSOOIDCServiceException$, SSOOIDCServiceException_1.SSOOIDCServiceException);
91
- const n0_registry = schema_1.TypeRegistry.for(n0);
92
- exports.AccessDeniedException$ = [-3, n0, _ADE,
82
+ const { TypeRegistry } = require("@smithy/core/schema");
83
+ const { AccessDeniedException, AuthorizationPendingException, ExpiredTokenException, InternalServerException, InvalidClientException, InvalidClientMetadataException, InvalidGrantException, InvalidRedirectUriException, InvalidRequestException, InvalidRequestRegionException, InvalidScopeException, SlowDownException, UnauthorizedClientException, UnsupportedGrantTypeException } = require("../models/errors");
84
+ const { SSOOIDCServiceException } = require("../models/SSOOIDCServiceException");
85
+ const _s_registry = TypeRegistry.for(_s);
86
+ const SSOOIDCServiceException$ = [-3, _s, "SSOOIDCServiceException", 0, [], []];
87
+ exports.SSOOIDCServiceException$ = SSOOIDCServiceException$;
88
+ _s_registry.registerError(SSOOIDCServiceException$, SSOOIDCServiceException);
89
+ const n0_registry = TypeRegistry.for(n0);
90
+ const AccessDeniedException$ = [-3, n0, _ADE,
93
91
  { [_e]: _c, [_hE]: 400 },
94
92
  [_e, _r, _ed],
95
93
  [0, 0, 0]
96
94
  ];
97
- n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
98
- exports.AuthorizationPendingException$ = [-3, n0, _APE,
95
+ exports.AccessDeniedException$ = AccessDeniedException$;
96
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
97
+ const AuthorizationPendingException$ = [-3, n0, _APE,
99
98
  { [_e]: _c, [_hE]: 400 },
100
99
  [_e, _ed],
101
100
  [0, 0]
102
101
  ];
103
- n0_registry.registerError(exports.AuthorizationPendingException$, errors_1.AuthorizationPendingException);
104
- exports.ExpiredTokenException$ = [-3, n0, _ETE,
102
+ exports.AuthorizationPendingException$ = AuthorizationPendingException$;
103
+ n0_registry.registerError(AuthorizationPendingException$, AuthorizationPendingException);
104
+ const ExpiredTokenException$ = [-3, n0, _ETE,
105
105
  { [_e]: _c, [_hE]: 400 },
106
106
  [_e, _ed],
107
107
  [0, 0]
108
108
  ];
109
- n0_registry.registerError(exports.ExpiredTokenException$, errors_1.ExpiredTokenException);
110
- exports.InternalServerException$ = [-3, n0, _ISE,
109
+ exports.ExpiredTokenException$ = ExpiredTokenException$;
110
+ n0_registry.registerError(ExpiredTokenException$, ExpiredTokenException);
111
+ const InternalServerException$ = [-3, n0, _ISE,
111
112
  { [_e]: _se, [_hE]: 500 },
112
113
  [_e, _ed],
113
114
  [0, 0]
114
115
  ];
115
- n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
116
- exports.InvalidClientException$ = [-3, n0, _ICE,
116
+ exports.InternalServerException$ = InternalServerException$;
117
+ n0_registry.registerError(InternalServerException$, InternalServerException);
118
+ const InvalidClientException$ = [-3, n0, _ICE,
117
119
  { [_e]: _c, [_hE]: 401 },
118
120
  [_e, _ed],
119
121
  [0, 0]
120
122
  ];
121
- n0_registry.registerError(exports.InvalidClientException$, errors_1.InvalidClientException);
122
- exports.InvalidClientMetadataException$ = [-3, n0, _ICME,
123
+ exports.InvalidClientException$ = InvalidClientException$;
124
+ n0_registry.registerError(InvalidClientException$, InvalidClientException);
125
+ const InvalidClientMetadataException$ = [-3, n0, _ICME,
123
126
  { [_e]: _c, [_hE]: 400 },
124
127
  [_e, _ed],
125
128
  [0, 0]
126
129
  ];
127
- n0_registry.registerError(exports.InvalidClientMetadataException$, errors_1.InvalidClientMetadataException);
128
- exports.InvalidGrantException$ = [-3, n0, _IGE,
130
+ exports.InvalidClientMetadataException$ = InvalidClientMetadataException$;
131
+ n0_registry.registerError(InvalidClientMetadataException$, InvalidClientMetadataException);
132
+ const InvalidGrantException$ = [-3, n0, _IGE,
129
133
  { [_e]: _c, [_hE]: 400 },
130
134
  [_e, _ed],
131
135
  [0, 0]
132
136
  ];
133
- n0_registry.registerError(exports.InvalidGrantException$, errors_1.InvalidGrantException);
134
- exports.InvalidRedirectUriException$ = [-3, n0, _IRUE,
137
+ exports.InvalidGrantException$ = InvalidGrantException$;
138
+ n0_registry.registerError(InvalidGrantException$, InvalidGrantException);
139
+ const InvalidRedirectUriException$ = [-3, n0, _IRUE,
135
140
  { [_e]: _c, [_hE]: 400 },
136
141
  [_e, _ed],
137
142
  [0, 0]
138
143
  ];
139
- n0_registry.registerError(exports.InvalidRedirectUriException$, errors_1.InvalidRedirectUriException);
140
- exports.InvalidRequestException$ = [-3, n0, _IRE,
144
+ exports.InvalidRedirectUriException$ = InvalidRedirectUriException$;
145
+ n0_registry.registerError(InvalidRedirectUriException$, InvalidRedirectUriException);
146
+ const InvalidRequestException$ = [-3, n0, _IRE,
141
147
  { [_e]: _c, [_hE]: 400 },
142
148
  [_e, _r, _ed],
143
149
  [0, 0, 0]
144
150
  ];
145
- n0_registry.registerError(exports.InvalidRequestException$, errors_1.InvalidRequestException);
146
- exports.InvalidRequestRegionException$ = [-3, n0, _IRRE,
151
+ exports.InvalidRequestException$ = InvalidRequestException$;
152
+ n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
153
+ const InvalidRequestRegionException$ = [-3, n0, _IRRE,
147
154
  { [_e]: _c, [_hE]: 400 },
148
155
  [_e, _ed, _en, _re],
149
156
  [0, 0, 0, 0]
150
157
  ];
151
- n0_registry.registerError(exports.InvalidRequestRegionException$, errors_1.InvalidRequestRegionException);
152
- exports.InvalidScopeException$ = [-3, n0, _ISEn,
158
+ exports.InvalidRequestRegionException$ = InvalidRequestRegionException$;
159
+ n0_registry.registerError(InvalidRequestRegionException$, InvalidRequestRegionException);
160
+ const InvalidScopeException$ = [-3, n0, _ISEn,
153
161
  { [_e]: _c, [_hE]: 400 },
154
162
  [_e, _ed],
155
163
  [0, 0]
156
164
  ];
157
- n0_registry.registerError(exports.InvalidScopeException$, errors_1.InvalidScopeException);
158
- exports.SlowDownException$ = [-3, n0, _SDE,
165
+ exports.InvalidScopeException$ = InvalidScopeException$;
166
+ n0_registry.registerError(InvalidScopeException$, InvalidScopeException);
167
+ const SlowDownException$ = [-3, n0, _SDE,
159
168
  { [_e]: _c, [_hE]: 400 },
160
169
  [_e, _ed],
161
170
  [0, 0]
162
171
  ];
163
- n0_registry.registerError(exports.SlowDownException$, errors_1.SlowDownException);
164
- exports.UnauthorizedClientException$ = [-3, n0, _UCE,
172
+ exports.SlowDownException$ = SlowDownException$;
173
+ n0_registry.registerError(SlowDownException$, SlowDownException);
174
+ const UnauthorizedClientException$ = [-3, n0, _UCE,
165
175
  { [_e]: _c, [_hE]: 400 },
166
176
  [_e, _ed],
167
177
  [0, 0]
168
178
  ];
169
- n0_registry.registerError(exports.UnauthorizedClientException$, errors_1.UnauthorizedClientException);
170
- exports.UnsupportedGrantTypeException$ = [-3, n0, _UGTE,
179
+ exports.UnauthorizedClientException$ = UnauthorizedClientException$;
180
+ n0_registry.registerError(UnauthorizedClientException$, UnauthorizedClientException);
181
+ const UnsupportedGrantTypeException$ = [-3, n0, _UGTE,
171
182
  { [_e]: _c, [_hE]: 400 },
172
183
  [_e, _ed],
173
184
  [0, 0]
174
185
  ];
175
- n0_registry.registerError(exports.UnsupportedGrantTypeException$, errors_1.UnsupportedGrantTypeException);
186
+ exports.UnsupportedGrantTypeException$ = UnsupportedGrantTypeException$;
187
+ n0_registry.registerError(UnsupportedGrantTypeException$, UnsupportedGrantTypeException);
176
188
  exports.errorTypeRegistries = [
177
189
  _s_registry,
178
190
  n0_registry,
@@ -184,63 +196,72 @@ var CodeVerifier = [0, n0, _CV, 8, 0];
184
196
  var IdToken = [0, n0, _IT, 8, 0];
185
197
  var RefreshToken = [0, n0, _RT, 8, 0];
186
198
  var SubjectToken = [0, n0, _ST, 8, 0];
187
- exports.AwsAdditionalDetails$ = [3, n0, _AAD,
199
+ const AwsAdditionalDetails$ = [3, n0, _AAD,
188
200
  0,
189
201
  [_iC],
190
202
  [0]
191
203
  ];
192
- exports.CreateTokenRequest$ = [3, n0, _CTR,
204
+ exports.AwsAdditionalDetails$ = AwsAdditionalDetails$;
205
+ const CreateTokenRequest$ = [3, n0, _CTR,
193
206
  0,
194
207
  [_cI, _cS, _gT, _dC, _co, _rT, _sc, _rU, _cV],
195
208
  [0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]], 3
196
209
  ];
197
- exports.CreateTokenResponse$ = [3, n0, _CTRr,
210
+ exports.CreateTokenRequest$ = CreateTokenRequest$;
211
+ const CreateTokenResponse$ = [3, n0, _CTRr,
198
212
  0,
199
213
  [_aT, _tT, _eI, _rT, _iT],
200
214
  [[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]]
201
215
  ];
202
- exports.CreateTokenWithIAMRequest$ = [3, n0, _CTWIAMR,
216
+ exports.CreateTokenResponse$ = CreateTokenResponse$;
217
+ const CreateTokenWithIAMRequest$ = [3, n0, _CTWIAMR,
203
218
  0,
204
219
  [_cI, _gT, _co, _rT, _a, _sc, _rU, _sT, _sTT, _rTT, _cV],
205
220
  [0, 0, 0, [() => RefreshToken, 0], [() => Assertion, 0], 64 | 0, 0, [() => SubjectToken, 0], 0, 0, [() => CodeVerifier, 0]], 2
206
221
  ];
207
- exports.CreateTokenWithIAMResponse$ = [3, n0, _CTWIAMRr,
222
+ exports.CreateTokenWithIAMRequest$ = CreateTokenWithIAMRequest$;
223
+ const CreateTokenWithIAMResponse$ = [3, n0, _CTWIAMRr,
208
224
  0,
209
225
  [_aT, _tT, _eI, _rT, _iT, _iTT, _sc, _aAD],
210
- [[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0], 0, 64 | 0, () => exports.AwsAdditionalDetails$]
226
+ [[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0], 0, 64 | 0, () => AwsAdditionalDetails$]
211
227
  ];
212
- exports.RegisterClientRequest$ = [3, n0, _RCR,
228
+ exports.CreateTokenWithIAMResponse$ = CreateTokenWithIAMResponse$;
229
+ const RegisterClientRequest$ = [3, n0, _RCR,
213
230
  0,
214
231
  [_cN, _cT, _sco, _rUe, _gTr, _iU, _eAA],
215
232
  [0, 0, 64 | 0, 64 | 0, 64 | 0, 0, 0], 2
216
233
  ];
217
- exports.RegisterClientResponse$ = [3, n0, _RCRe,
234
+ exports.RegisterClientRequest$ = RegisterClientRequest$;
235
+ const RegisterClientResponse$ = [3, n0, _RCRe,
218
236
  0,
219
237
  [_cI, _cS, _cIIA, _cSEA, _aE, _tE],
220
238
  [0, [() => ClientSecret, 0], 1, 1, 0, 0]
221
239
  ];
222
- exports.StartDeviceAuthorizationRequest$ = [3, n0, _SDAR,
240
+ exports.RegisterClientResponse$ = RegisterClientResponse$;
241
+ const StartDeviceAuthorizationRequest$ = [3, n0, _SDAR,
223
242
  0,
224
243
  [_cI, _cS, _sU],
225
244
  [0, [() => ClientSecret, 0], 0], 3
226
245
  ];
227
- exports.StartDeviceAuthorizationResponse$ = [3, n0, _SDARt,
246
+ exports.StartDeviceAuthorizationRequest$ = StartDeviceAuthorizationRequest$;
247
+ const StartDeviceAuthorizationResponse$ = [3, n0, _SDARt,
228
248
  0,
229
249
  [_dC, _uC, _vU, _vUC, _eI, _i],
230
250
  [0, 0, 0, 0, 1, 1]
231
251
  ];
252
+ exports.StartDeviceAuthorizationResponse$ = StartDeviceAuthorizationResponse$;
232
253
  var GrantTypes = 64 | 0;
233
254
  var RedirectUris = 64 | 0;
234
255
  var Scopes = 64 | 0;
235
256
  exports.CreateToken$ = [9, n0, _CT,
236
- { [_h]: ["POST", "/token", 200] }, () => exports.CreateTokenRequest$, () => exports.CreateTokenResponse$
257
+ { [_h]: ["POST", "/token", 200] }, () => CreateTokenRequest$, () => CreateTokenResponse$
237
258
  ];
238
259
  exports.CreateTokenWithIAM$ = [9, n0, _CTWIAM,
239
- { [_h]: ["POST", "/token?aws_iam=t", 200] }, () => exports.CreateTokenWithIAMRequest$, () => exports.CreateTokenWithIAMResponse$
260
+ { [_h]: ["POST", "/token?aws_iam=t", 200] }, () => CreateTokenWithIAMRequest$, () => CreateTokenWithIAMResponse$
240
261
  ];
241
262
  exports.RegisterClient$ = [9, n0, _RC,
242
- { [_h]: ["POST", "/client/register", 200] }, () => exports.RegisterClientRequest$, () => exports.RegisterClientResponse$
263
+ { [_h]: ["POST", "/client/register", 200] }, () => RegisterClientRequest$, () => RegisterClientResponse$
243
264
  ];
244
265
  exports.StartDeviceAuthorization$ = [9, n0, _SDA,
245
- { [_h]: ["POST", "/device_authorization", 200] }, () => exports.StartDeviceAuthorizationRequest$, () => exports.StartDeviceAuthorizationResponse$
266
+ { [_h]: ["POST", "/device_authorization", 200] }, () => StartDeviceAuthorizationRequest$, () => StartDeviceAuthorizationResponse$
246
267
  ];
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sso-oidc",
3
3
  "description": "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
4
- "version": "3.1068.0",
4
+ "version": "3.1069.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",
8
- "build:es": "tsc -p tsconfig.es.json",
8
+ "build:es": "premove dist-es && tsc -p tsconfig.es.json",
9
9
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
10
- "build:types": "tsc -p tsconfig.types.json",
10
+ "build:types": "premove dist-types && tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
- "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
12
+ "clean": "premove dist-cjs dist-es dist-types",
13
13
  "extract:docs": "api-extractor run --local",
14
- "generate:client": "node ../../scripts/generate-clients/single-service --solo sso-oidc",
14
+ "generate:client": "node ../../scripts/generate-clients/single-service",
15
15
  "test": "yarn g:vitest run --passWithNoTests",
16
- "test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs",
16
+ "test:watch": "yarn g:vitest watch --passWithNoTests",
17
17
  "test:integration": "yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts",
18
- "test:integration:watch": "yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts",
19
- "test:watch": "yarn g:vitest watch --passWithNoTests"
18
+ "test:integration:watch": "yarn g:vitest watch --passWithNoTests -c vitest.config.integ.mts",
19
+ "test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
20
20
  },
21
21
  "main": "./dist-cjs/index.js",
22
22
  "types": "./dist-types/index.d.ts",
@@ -25,9 +25,9 @@
25
25
  "dependencies": {
26
26
  "@aws-crypto/sha256-browser": "5.2.0",
27
27
  "@aws-crypto/sha256-js": "5.2.0",
28
- "@aws-sdk/core": "^3.974.20",
29
- "@aws-sdk/credential-provider-node": "^3.972.55",
30
- "@aws-sdk/types": "^3.973.12",
28
+ "@aws-sdk/core": "^3.974.21",
29
+ "@aws-sdk/credential-provider-node": "^3.972.56",
30
+ "@aws-sdk/types": "^3.973.13",
31
31
  "@smithy/core": "^3.24.6",
32
32
  "@smithy/fetch-http-handler": "^5.4.6",
33
33
  "@smithy/node-http-handler": "^4.7.6",