@aws-sdk/client-signin 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.defaultSigninHttpAuthSchemeProvider = exports.defaultSigninHttpAuthSchemeParametersProvider = void 0;
4
- const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
5
- const client_1 = require("@smithy/core/client");
6
- const defaultSigninHttpAuthSchemeParametersProvider = async (config, context, input) => {
1
+ const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
2
+ const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
3
+ exports.defaultSigninHttpAuthSchemeParametersProvider = 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.defaultSigninHttpAuthSchemeParametersProvider = defaultSigninHttpAuthSchemeParametersProvider;
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 defaultSigninHttpAuthSchemeProvider = (authParameters) => {
31
+ exports.defaultSigninHttpAuthSchemeProvider = (authParameters) => {
36
32
  const options = [];
37
33
  switch (authParameters.operation) {
38
34
  case "CreateOAuth2Token":
@@ -47,11 +43,9 @@ const defaultSigninHttpAuthSchemeProvider = (authParameters) => {
47
43
  }
48
44
  return options;
49
45
  };
50
- exports.defaultSigninHttpAuthSchemeProvider = defaultSigninHttpAuthSchemeProvider;
51
- const resolveHttpAuthSchemeConfig = (config) => {
52
- const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
46
+ exports.resolveHttpAuthSchemeConfig = (config) => {
47
+ const config_0 = resolveAwsSdkSigV4Config(config);
53
48
  return Object.assign(config_0, {
54
- authSchemePreference: (0, client_1.normalizeProvider)(config.authSchemePreference ?? []),
49
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
55
50
  });
56
51
  };
57
- 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 p = "ref";
6
3
  const a = -1, b = true, c = "isSet", d = "booleanEquals", e = "PartitionResult", f = "stringEquals", g = "getAttr", h = "https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", i = { [p]: "Endpoint" }, j = { "fn": g, "argv": [{ [p]: e }, "name"] }, k = { [p]: e }, l = { [p]: "Region" }, m = { "authSchemes": [{ "name": "sigv4", "signingName": "signin", "signingRegion": "{Region}" }] }, n = {}, o = [l];
7
4
  const _data = {
@@ -90,4 +87,4 @@ const nodes = new Int32Array([
90
87
  6, r + 1, 33,
91
88
  7, r + 2, r + 3,
92
89
  ]);
93
- exports.bdd = endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
90
+ 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", "IsControlPlane", "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 SigninServiceException = require('./models/SigninServiceException');
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, createPaginator } = 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, defaultSigninHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
+ const { getRuntimeConfig } = require("./runtimeConfig");
14
+ const { CreateOAuth2Token$, DeleteConsoleAuthorizationConfiguration$, DeleteResourcePermissionStatement$, GetConsoleAuthorizationConfiguration$, GetResourcePolicy$, ListResourcePermissionStatements$, PutConsoleAuthorizationConfiguration$, PutResourcePermissionStatement$ } = require("./schemas/schemas_0");
15
+ __exportStar(require("./schemas/schemas_0"), exports);
16
+ __exportStar(require("./models/errors"), exports);
17
+ const { SigninServiceException } = require("./models/SigninServiceException");
18
+ exports.SigninServiceException = SigninServiceException;
16
19
 
17
20
  const resolveClientEndpointParameters = (options) => {
18
21
  return Object.assign(options, {
@@ -68,167 +71,167 @@ 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 SigninClient extends client.Client {
79
+ class SigninClient 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.defaultSigninHttpAuthSchemeParametersProvider,
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: defaultSigninHttpAuthSchemeParametersProvider,
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 CreateOAuth2TokenCommand extends client.Command
114
+ class CreateOAuth2TokenCommand extends Command
112
115
  .classBuilder()
113
116
  .ep({
114
117
  ...commonParams,
115
118
  IsControlPlane: { type: "staticContextParams", value: false },
116
119
  })
117
120
  .m(function (Command, cs, config, o) {
118
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
121
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
119
122
  })
120
123
  .s("Signin", "CreateOAuth2Token", {})
121
124
  .n("SigninClient", "CreateOAuth2TokenCommand")
122
- .sc(schemas_0.CreateOAuth2Token$)
125
+ .sc(CreateOAuth2Token$)
123
126
  .build() {
124
127
  }
125
128
 
126
- class DeleteConsoleAuthorizationConfigurationCommand extends client.Command
129
+ class DeleteConsoleAuthorizationConfigurationCommand extends Command
127
130
  .classBuilder()
128
131
  .ep({
129
132
  ...commonParams,
130
133
  IsControlPlane: { type: "staticContextParams", value: true },
131
134
  })
132
135
  .m(function (Command, cs, config, o) {
133
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
136
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
134
137
  })
135
138
  .s("Signin", "DeleteConsoleAuthorizationConfiguration", {})
136
139
  .n("SigninClient", "DeleteConsoleAuthorizationConfigurationCommand")
137
- .sc(schemas_0.DeleteConsoleAuthorizationConfiguration$)
140
+ .sc(DeleteConsoleAuthorizationConfiguration$)
138
141
  .build() {
139
142
  }
140
143
 
141
- class DeleteResourcePermissionStatementCommand extends client.Command
144
+ class DeleteResourcePermissionStatementCommand extends Command
142
145
  .classBuilder()
143
146
  .ep({
144
147
  ...commonParams,
145
148
  IsControlPlane: { type: "staticContextParams", value: true },
146
149
  })
147
150
  .m(function (Command, cs, config, o) {
148
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
151
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
149
152
  })
150
153
  .s("Signin", "DeleteResourcePermissionStatement", {})
151
154
  .n("SigninClient", "DeleteResourcePermissionStatementCommand")
152
- .sc(schemas_0.DeleteResourcePermissionStatement$)
155
+ .sc(DeleteResourcePermissionStatement$)
153
156
  .build() {
154
157
  }
155
158
 
156
- class GetConsoleAuthorizationConfigurationCommand extends client.Command
159
+ class GetConsoleAuthorizationConfigurationCommand extends Command
157
160
  .classBuilder()
158
161
  .ep({
159
162
  ...commonParams,
160
163
  IsControlPlane: { type: "staticContextParams", value: true },
161
164
  })
162
165
  .m(function (Command, cs, config, o) {
163
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
166
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
164
167
  })
165
168
  .s("Signin", "GetConsoleAuthorizationConfiguration", {})
166
169
  .n("SigninClient", "GetConsoleAuthorizationConfigurationCommand")
167
- .sc(schemas_0.GetConsoleAuthorizationConfiguration$)
170
+ .sc(GetConsoleAuthorizationConfiguration$)
168
171
  .build() {
169
172
  }
170
173
 
171
- class GetResourcePolicyCommand extends client.Command
174
+ class GetResourcePolicyCommand extends Command
172
175
  .classBuilder()
173
176
  .ep({
174
177
  ...commonParams,
175
178
  IsControlPlane: { type: "staticContextParams", value: true },
176
179
  })
177
180
  .m(function (Command, cs, config, o) {
178
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
181
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
179
182
  })
180
183
  .s("Signin", "GetResourcePolicy", {})
181
184
  .n("SigninClient", "GetResourcePolicyCommand")
182
- .sc(schemas_0.GetResourcePolicy$)
185
+ .sc(GetResourcePolicy$)
183
186
  .build() {
184
187
  }
185
188
 
186
- class ListResourcePermissionStatementsCommand extends client.Command
189
+ class ListResourcePermissionStatementsCommand extends Command
187
190
  .classBuilder()
188
191
  .ep({
189
192
  ...commonParams,
190
193
  IsControlPlane: { type: "staticContextParams", value: true },
191
194
  })
192
195
  .m(function (Command, cs, config, o) {
193
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
196
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
194
197
  })
195
198
  .s("Signin", "ListResourcePermissionStatements", {})
196
199
  .n("SigninClient", "ListResourcePermissionStatementsCommand")
197
- .sc(schemas_0.ListResourcePermissionStatements$)
200
+ .sc(ListResourcePermissionStatements$)
198
201
  .build() {
199
202
  }
200
203
 
201
- class PutConsoleAuthorizationConfigurationCommand extends client.Command
204
+ class PutConsoleAuthorizationConfigurationCommand extends Command
202
205
  .classBuilder()
203
206
  .ep({
204
207
  ...commonParams,
205
208
  IsControlPlane: { type: "staticContextParams", value: true },
206
209
  })
207
210
  .m(function (Command, cs, config, o) {
208
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
211
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
209
212
  })
210
213
  .s("Signin", "PutConsoleAuthorizationConfiguration", {})
211
214
  .n("SigninClient", "PutConsoleAuthorizationConfigurationCommand")
212
- .sc(schemas_0.PutConsoleAuthorizationConfiguration$)
215
+ .sc(PutConsoleAuthorizationConfiguration$)
213
216
  .build() {
214
217
  }
215
218
 
216
- class PutResourcePermissionStatementCommand extends client.Command
219
+ class PutResourcePermissionStatementCommand extends Command
217
220
  .classBuilder()
218
221
  .ep({
219
222
  ...commonParams,
220
223
  IsControlPlane: { type: "staticContextParams", value: true },
221
224
  })
222
225
  .m(function (Command, cs, config, o) {
223
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
226
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
224
227
  })
225
228
  .s("Signin", "PutResourcePermissionStatement", {})
226
229
  .n("SigninClient", "PutResourcePermissionStatementCommand")
227
- .sc(schemas_0.PutResourcePermissionStatement$)
230
+ .sc(PutResourcePermissionStatement$)
228
231
  .build() {
229
232
  }
230
233
 
231
- const paginateListResourcePermissionStatements = core.createPaginator(SigninClient, ListResourcePermissionStatementsCommand, "nextToken", "nextToken", "maxResults");
234
+ const paginateListResourcePermissionStatements = createPaginator(SigninClient, ListResourcePermissionStatementsCommand, "nextToken", "nextToken", "maxResults");
232
235
 
233
236
  const commands = {
234
237
  CreateOAuth2TokenCommand,
@@ -245,7 +248,7 @@ const paginators = {
245
248
  };
246
249
  class Signin extends SigninClient {
247
250
  }
248
- client.createAggregatedClient(commands, Signin, { paginators });
251
+ createAggregatedClient(commands, Signin, { paginators });
249
252
 
250
253
  const OAuth2ErrorCode = {
251
254
  AUTHCODE_EXPIRED: "AUTHCODE_EXPIRED",
@@ -259,9 +262,6 @@ const OAuth2ErrorCode = {
259
262
  USER_CREDENTIALS_CHANGED: "USER_CREDENTIALS_CHANGED",
260
263
  };
261
264
 
262
- exports.$Command = client.Command;
263
- exports.__Client = client.Client;
264
- exports.SigninServiceException = SigninServiceException.SigninServiceException;
265
265
  exports.CreateOAuth2TokenCommand = CreateOAuth2TokenCommand;
266
266
  exports.DeleteConsoleAuthorizationConfigurationCommand = DeleteConsoleAuthorizationConfigurationCommand;
267
267
  exports.DeleteResourcePermissionStatementCommand = DeleteResourcePermissionStatementCommand;
@@ -274,23 +274,3 @@ exports.PutResourcePermissionStatementCommand = PutResourcePermissionStatementCo
274
274
  exports.Signin = Signin;
275
275
  exports.SigninClient = SigninClient;
276
276
  exports.paginateListResourcePermissionStatements = paginateListResourcePermissionStatements;
277
- Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
278
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
279
- Object.defineProperty(exports, '__proto__', {
280
- enumerable: true,
281
- value: schemas_0['__proto__']
282
- });
283
-
284
- Object.keys(schemas_0).forEach(function (k) {
285
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
286
- });
287
- Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
288
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
289
- Object.defineProperty(exports, '__proto__', {
290
- enumerable: true,
291
- value: errors['__proto__']
292
- });
293
-
294
- Object.keys(errors).forEach(function (k) {
295
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
296
- });
@@ -1,12 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SigninServiceException = 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 SigninServiceException extends client_1.ServiceException {
1
+ const { ServiceException: __ServiceException } = require("@smithy/core/client");
2
+ exports.__ServiceException = __ServiceException;
3
+ exports.SigninServiceException = class SigninServiceException extends __ServiceException {
7
4
  constructor(options) {
8
5
  super(options);
9
6
  Object.setPrototypeOf(this, SigninServiceException.prototype);
10
7
  }
11
- }
12
- exports.SigninServiceException = SigninServiceException;
8
+ };
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.ValidationException = exports.TooManyRequestsError = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
4
- const SigninServiceException_1 = require("./SigninServiceException");
5
- class AccessDeniedException extends SigninServiceException_1.SigninServiceException {
1
+ const { SigninServiceException: __BaseException } = require("./SigninServiceException");
2
+ exports.AccessDeniedException = class AccessDeniedException extends __BaseException {
6
3
  name = "AccessDeniedException";
7
4
  $fault = "client";
8
5
  error;
@@ -15,9 +12,8 @@ class AccessDeniedException extends SigninServiceException_1.SigninServiceExcept
15
12
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
16
13
  this.error = opts.error;
17
14
  }
18
- }
19
- exports.AccessDeniedException = AccessDeniedException;
20
- class ConflictException extends SigninServiceException_1.SigninServiceException {
15
+ };
16
+ exports.ConflictException = class ConflictException extends __BaseException {
21
17
  name = "ConflictException";
22
18
  $fault = "client";
23
19
  error;
@@ -30,9 +26,8 @@ class ConflictException extends SigninServiceException_1.SigninServiceException
30
26
  Object.setPrototypeOf(this, ConflictException.prototype);
31
27
  this.error = opts.error;
32
28
  }
33
- }
34
- exports.ConflictException = ConflictException;
35
- class InternalServerException extends SigninServiceException_1.SigninServiceException {
29
+ };
30
+ exports.InternalServerException = class InternalServerException extends __BaseException {
36
31
  name = "InternalServerException";
37
32
  $fault = "server";
38
33
  error;
@@ -45,9 +40,8 @@ class InternalServerException extends SigninServiceException_1.SigninServiceExce
45
40
  Object.setPrototypeOf(this, InternalServerException.prototype);
46
41
  this.error = opts.error;
47
42
  }
48
- }
49
- exports.InternalServerException = InternalServerException;
50
- class TooManyRequestsError extends SigninServiceException_1.SigninServiceException {
43
+ };
44
+ exports.TooManyRequestsError = class TooManyRequestsError extends __BaseException {
51
45
  name = "TooManyRequestsError";
52
46
  $fault = "client";
53
47
  error;
@@ -60,9 +54,8 @@ class TooManyRequestsError extends SigninServiceException_1.SigninServiceExcepti
60
54
  Object.setPrototypeOf(this, TooManyRequestsError.prototype);
61
55
  this.error = opts.error;
62
56
  }
63
- }
64
- exports.TooManyRequestsError = TooManyRequestsError;
65
- class ValidationException extends SigninServiceException_1.SigninServiceException {
57
+ };
58
+ exports.ValidationException = class ValidationException extends __BaseException {
66
59
  name = "ValidationException";
67
60
  $fault = "client";
68
61
  error;
@@ -75,9 +68,8 @@ class ValidationException extends SigninServiceException_1.SigninServiceExceptio
75
68
  Object.setPrototypeOf(this, ValidationException.prototype);
76
69
  this.error = opts.error;
77
70
  }
78
- }
79
- exports.ValidationException = ValidationException;
80
- class ResourceNotFoundException extends SigninServiceException_1.SigninServiceException {
71
+ };
72
+ exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
81
73
  name = "ResourceNotFoundException";
82
74
  $fault = "client";
83
75
  error;
@@ -90,9 +82,8 @@ class ResourceNotFoundException extends SigninServiceException_1.SigninServiceEx
90
82
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
91
83
  this.error = opts.error;
92
84
  }
93
- }
94
- exports.ResourceNotFoundException = ResourceNotFoundException;
95
- class ServiceQuotaExceededException extends SigninServiceException_1.SigninServiceException {
85
+ };
86
+ exports.ServiceQuotaExceededException = class ServiceQuotaExceededException extends __BaseException {
96
87
  name = "ServiceQuotaExceededException";
97
88
  $fault = "client";
98
89
  error;
@@ -105,5 +96,4 @@ class ServiceQuotaExceededException extends SigninServiceException_1.SigninServi
105
96
  Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
106
97
  this.error = opts.error;
107
98
  }
108
- }
109
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
99
+ };
@@ -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 { defaultSigninHttpAuthSchemeProvider } = 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: "2023-01-01",
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.defaultSigninHttpAuthSchemeProvider,
18
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSigninHttpAuthSchemeProvider,
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.signin",
38
- errorTypeRegistries: schemas_0_1.errorTypeRegistries,
35
+ errorTypeRegistries,
39
36
  version: "2023-01-01",
40
37
  serviceTarget: "Signin",
41
38
  },
42
39
  serviceId: config?.serviceId ?? "Signin",
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.PutResourcePermissionStatement$ = exports.PutConsoleAuthorizationConfiguration$ = exports.ListResourcePermissionStatements$ = exports.GetResourcePolicy$ = exports.GetConsoleAuthorizationConfiguration$ = exports.DeleteResourcePermissionStatement$ = exports.DeleteConsoleAuthorizationConfiguration$ = exports.CreateOAuth2Token$ = exports.SigninResourceBasedPolicy$ = exports.PutResourcePermissionStatementOutput$ = exports.PutResourcePermissionStatementInput$ = exports.PutConsoleAuthorizationConfigurationOutput$ = exports.PutConsoleAuthorizationConfigurationInput$ = exports.PolicyStatement$ = exports.PermissionStatementSummary$ = exports.ListResourcePermissionStatementsOutput$ = exports.ListResourcePermissionStatementsInput$ = exports.GetResourcePolicyOutput$ = exports.GetResourcePolicyInput$ = exports.GetConsoleAuthorizationConfigurationOutput$ = exports.GetConsoleAuthorizationConfigurationInput$ = exports.DeleteResourcePermissionStatementOutput$ = exports.DeleteResourcePermissionStatementInput$ = exports.DeleteConsoleAuthorizationConfigurationOutput$ = exports.DeleteConsoleAuthorizationConfigurationInput$ = exports.CreateOAuth2TokenResponseBody$ = exports.CreateOAuth2TokenResponse$ = exports.CreateOAuth2TokenRequestBody$ = exports.CreateOAuth2TokenRequest$ = exports.AccessToken$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.TooManyRequestsError$ = exports.ServiceQuotaExceededException$ = exports.ResourceNotFoundException$ = exports.InternalServerException$ = exports.ConflictException$ = exports.AccessDeniedException$ = exports.SigninServiceException$ = void 0;
4
1
  const _A = "Action";
5
2
  const _ADE = "AccessDeniedException";
6
3
  const _AT = "AccessToken";
@@ -97,177 +94,207 @@ const _tT = "tokenType";
97
94
  const _v = "version";
98
95
  const _vSI = "vpcSourceIp";
99
96
  const n0 = "com.amazonaws.signin";
100
- const schema_1 = require("@smithy/core/schema");
101
- const errors_1 = require("../models/errors");
102
- const SigninServiceException_1 = require("../models/SigninServiceException");
103
- const _s_registry = schema_1.TypeRegistry.for(_s);
104
- exports.SigninServiceException$ = [-3, _s, "SigninServiceException", 0, [], []];
105
- _s_registry.registerError(exports.SigninServiceException$, SigninServiceException_1.SigninServiceException);
106
- const n0_registry = schema_1.TypeRegistry.for(n0);
107
- exports.AccessDeniedException$ = [-3, n0, _ADE,
97
+ const { TypeRegistry } = require("@smithy/core/schema");
98
+ const { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, TooManyRequestsError, ValidationException } = require("../models/errors");
99
+ const { SigninServiceException } = require("../models/SigninServiceException");
100
+ const _s_registry = TypeRegistry.for(_s);
101
+ const SigninServiceException$ = [-3, _s, "SigninServiceException", 0, [], []];
102
+ exports.SigninServiceException$ = SigninServiceException$;
103
+ _s_registry.registerError(SigninServiceException$, SigninServiceException);
104
+ const n0_registry = TypeRegistry.for(n0);
105
+ const AccessDeniedException$ = [-3, n0, _ADE,
108
106
  { [_e]: _c },
109
107
  [_e, _m],
110
108
  [0, 0], 2
111
109
  ];
112
- n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
113
- exports.ConflictException$ = [-3, n0, _CE,
110
+ exports.AccessDeniedException$ = AccessDeniedException$;
111
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
112
+ const ConflictException$ = [-3, n0, _CE,
114
113
  { [_e]: _c, [_hE]: 409 },
115
114
  [_e, _m],
116
115
  [0, 0], 2
117
116
  ];
118
- n0_registry.registerError(exports.ConflictException$, errors_1.ConflictException);
119
- exports.InternalServerException$ = [-3, n0, _ISE,
117
+ exports.ConflictException$ = ConflictException$;
118
+ n0_registry.registerError(ConflictException$, ConflictException);
119
+ const InternalServerException$ = [-3, n0, _ISE,
120
120
  { [_e]: _se, [_hE]: 500 },
121
121
  [_e, _m],
122
122
  [0, 0], 2
123
123
  ];
124
- n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
125
- exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
124
+ exports.InternalServerException$ = InternalServerException$;
125
+ n0_registry.registerError(InternalServerException$, InternalServerException);
126
+ const ResourceNotFoundException$ = [-3, n0, _RNFE,
126
127
  { [_e]: _c, [_hE]: 404 },
127
128
  [_e, _m],
128
129
  [0, 0], 2
129
130
  ];
130
- n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
131
- exports.ServiceQuotaExceededException$ = [-3, n0, _SQEE,
131
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
132
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
133
+ const ServiceQuotaExceededException$ = [-3, n0, _SQEE,
132
134
  { [_e]: _c, [_hE]: 402 },
133
135
  [_e, _m],
134
136
  [0, 0], 2
135
137
  ];
136
- n0_registry.registerError(exports.ServiceQuotaExceededException$, errors_1.ServiceQuotaExceededException);
137
- exports.TooManyRequestsError$ = [-3, n0, _TMRE,
138
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
139
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
140
+ const TooManyRequestsError$ = [-3, n0, _TMRE,
138
141
  { [_e]: _c, [_hE]: 429 },
139
142
  [_e, _m],
140
143
  [0, 0], 2
141
144
  ];
142
- n0_registry.registerError(exports.TooManyRequestsError$, errors_1.TooManyRequestsError);
143
- exports.ValidationException$ = [-3, n0, _VE,
145
+ exports.TooManyRequestsError$ = TooManyRequestsError$;
146
+ n0_registry.registerError(TooManyRequestsError$, TooManyRequestsError);
147
+ const ValidationException$ = [-3, n0, _VE,
144
148
  { [_e]: _c, [_hE]: 400 },
145
149
  [_e, _m],
146
150
  [0, 0], 2
147
151
  ];
148
- n0_registry.registerError(exports.ValidationException$, errors_1.ValidationException);
152
+ exports.ValidationException$ = ValidationException$;
153
+ n0_registry.registerError(ValidationException$, ValidationException);
149
154
  exports.errorTypeRegistries = [
150
155
  _s_registry,
151
156
  n0_registry,
152
157
  ];
153
158
  var RefreshToken = [0, n0, _RT, 8, 0];
154
- exports.AccessToken$ = [3, n0, _AT,
159
+ const AccessToken$ = [3, n0, _AT,
155
160
  8,
156
161
  [_aKI, _sAK, _sT],
157
162
  [[0, { [_jN]: _aKI }], [0, { [_jN]: _sAK }], [0, { [_jN]: _sT }]], 3
158
163
  ];
159
- exports.CreateOAuth2TokenRequest$ = [3, n0, _COATR,
164
+ exports.AccessToken$ = AccessToken$;
165
+ const CreateOAuth2TokenRequest$ = [3, n0, _COATR,
160
166
  0,
161
167
  [_tI],
162
- [[() => exports.CreateOAuth2TokenRequestBody$, 16]], 1
168
+ [[() => CreateOAuth2TokenRequestBody$, 16]], 1
163
169
  ];
164
- exports.CreateOAuth2TokenRequestBody$ = [3, n0, _COATRB,
170
+ exports.CreateOAuth2TokenRequest$ = CreateOAuth2TokenRequest$;
171
+ const CreateOAuth2TokenRequestBody$ = [3, n0, _COATRB,
165
172
  0,
166
173
  [_cI, _gT, _co, _rU, _cV, _rT],
167
174
  [[0, { [_jN]: _cI }], [0, { [_jN]: _gT }], 0, [0, { [_jN]: _rU }], [0, { [_jN]: _cV }], [() => RefreshToken, { [_jN]: _rT }]], 2
168
175
  ];
169
- exports.CreateOAuth2TokenResponse$ = [3, n0, _COATRr,
176
+ exports.CreateOAuth2TokenRequestBody$ = CreateOAuth2TokenRequestBody$;
177
+ const CreateOAuth2TokenResponse$ = [3, n0, _COATRr,
170
178
  0,
171
179
  [_tO],
172
- [[() => exports.CreateOAuth2TokenResponseBody$, 16]], 1
180
+ [[() => CreateOAuth2TokenResponseBody$, 16]], 1
173
181
  ];
174
- exports.CreateOAuth2TokenResponseBody$ = [3, n0, _COATRBr,
182
+ exports.CreateOAuth2TokenResponse$ = CreateOAuth2TokenResponse$;
183
+ const CreateOAuth2TokenResponseBody$ = [3, n0, _COATRBr,
175
184
  0,
176
185
  [_aT, _tT, _eI, _rT, _iT],
177
- [[() => exports.AccessToken$, { [_jN]: _aT }], [0, { [_jN]: _tT }], [1, { [_jN]: _eI }], [() => RefreshToken, { [_jN]: _rT }], [0, { [_jN]: _iT }]], 4
186
+ [[() => AccessToken$, { [_jN]: _aT }], [0, { [_jN]: _tT }], [1, { [_jN]: _eI }], [() => RefreshToken, { [_jN]: _rT }], [0, { [_jN]: _iT }]], 4
178
187
  ];
179
- exports.DeleteConsoleAuthorizationConfigurationInput$ = [3, n0, _DCACI,
188
+ exports.CreateOAuth2TokenResponseBody$ = CreateOAuth2TokenResponseBody$;
189
+ const DeleteConsoleAuthorizationConfigurationInput$ = [3, n0, _DCACI,
180
190
  0,
181
191
  [_tIa],
182
192
  [0]
183
193
  ];
184
- exports.DeleteConsoleAuthorizationConfigurationOutput$ = [3, n0, _DCACO,
194
+ exports.DeleteConsoleAuthorizationConfigurationInput$ = DeleteConsoleAuthorizationConfigurationInput$;
195
+ const DeleteConsoleAuthorizationConfigurationOutput$ = [3, n0, _DCACO,
185
196
  0,
186
197
  [_tIa, _sc, _cAE],
187
198
  [0, 0, 2], 3
188
199
  ];
189
- exports.DeleteResourcePermissionStatementInput$ = [3, n0, _DRPSI,
200
+ exports.DeleteConsoleAuthorizationConfigurationOutput$ = DeleteConsoleAuthorizationConfigurationOutput$;
201
+ const DeleteResourcePermissionStatementInput$ = [3, n0, _DRPSI,
190
202
  0,
191
203
  [_sI, _cT],
192
204
  [0, [0, 4]], 1
193
205
  ];
194
- exports.DeleteResourcePermissionStatementOutput$ = [3, n0, _DRPSO,
206
+ exports.DeleteResourcePermissionStatementInput$ = DeleteResourcePermissionStatementInput$;
207
+ const DeleteResourcePermissionStatementOutput$ = [3, n0, _DRPSO,
195
208
  0,
196
209
  [],
197
210
  []
198
211
  ];
199
- exports.GetConsoleAuthorizationConfigurationInput$ = [3, n0, _GCACI,
212
+ exports.DeleteResourcePermissionStatementOutput$ = DeleteResourcePermissionStatementOutput$;
213
+ const GetConsoleAuthorizationConfigurationInput$ = [3, n0, _GCACI,
200
214
  0,
201
215
  [_tIa],
202
216
  [0]
203
217
  ];
204
- exports.GetConsoleAuthorizationConfigurationOutput$ = [3, n0, _GCACO,
218
+ exports.GetConsoleAuthorizationConfigurationInput$ = GetConsoleAuthorizationConfigurationInput$;
219
+ const GetConsoleAuthorizationConfigurationOutput$ = [3, n0, _GCACO,
205
220
  0,
206
221
  [_tIa, _sc, _cAE],
207
222
  [0, 0, 2], 3
208
223
  ];
209
- exports.GetResourcePolicyInput$ = [3, n0, _GRPI,
224
+ exports.GetConsoleAuthorizationConfigurationOutput$ = GetConsoleAuthorizationConfigurationOutput$;
225
+ const GetResourcePolicyInput$ = [3, n0, _GRPI,
210
226
  0,
211
227
  [],
212
228
  []
213
229
  ];
214
- exports.GetResourcePolicyOutput$ = [3, n0, _GRPO,
230
+ exports.GetResourcePolicyInput$ = GetResourcePolicyInput$;
231
+ const GetResourcePolicyOutput$ = [3, n0, _GRPO,
215
232
  0,
216
233
  [_sRBP],
217
- [[() => exports.SigninResourceBasedPolicy$, 0]], 1
234
+ [[() => SigninResourceBasedPolicy$, 0]], 1
218
235
  ];
219
- exports.ListResourcePermissionStatementsInput$ = [3, n0, _LRPSI,
236
+ exports.GetResourcePolicyOutput$ = GetResourcePolicyOutput$;
237
+ const ListResourcePermissionStatementsInput$ = [3, n0, _LRPSI,
220
238
  0,
221
239
  [_mR, _nT],
222
240
  [1, 0]
223
241
  ];
224
- exports.ListResourcePermissionStatementsOutput$ = [3, n0, _LRPSO,
242
+ exports.ListResourcePermissionStatementsInput$ = ListResourcePermissionStatementsInput$;
243
+ const ListResourcePermissionStatementsOutput$ = [3, n0, _LRPSO,
225
244
  0,
226
245
  [_pS, _nT],
227
246
  [() => PermissionStatementSummaries, 0], 1
228
247
  ];
229
- exports.PermissionStatementSummary$ = [3, n0, _PSS,
248
+ exports.ListResourcePermissionStatementsOutput$ = ListResourcePermissionStatementsOutput$;
249
+ const PermissionStatementSummary$ = [3, n0, _PSS,
230
250
  0,
231
251
  [_si, _con],
232
252
  [0, [2, n0, _CB, 0, 0, [2, n0, _C, 0, 0, 64 | 0]]], 1
233
253
  ];
234
- exports.PolicyStatement$ = [3, n0, _PS,
254
+ exports.PermissionStatementSummary$ = PermissionStatementSummary$;
255
+ const PolicyStatement$ = [3, n0, _PS,
235
256
  0,
236
257
  [_ef, _p, _a, _r, _con],
237
258
  [[0, { [_jN]: _E }], [128 | 0, { [_jN]: _P }], [64 | 0, { [_jN]: _A }], [0, { [_jN]: _R }], [[2, n0, _CB, 0, 0, [2, n0, _C, 0, 0, 64 | 0]], { [_jN]: _C }]]
238
259
  ];
239
- exports.PutConsoleAuthorizationConfigurationInput$ = [3, n0, _PCACI,
260
+ exports.PolicyStatement$ = PolicyStatement$;
261
+ const PutConsoleAuthorizationConfigurationInput$ = [3, n0, _PCACI,
240
262
  0,
241
263
  [_tIa],
242
264
  [0]
243
265
  ];
244
- exports.PutConsoleAuthorizationConfigurationOutput$ = [3, n0, _PCACO,
266
+ exports.PutConsoleAuthorizationConfigurationInput$ = PutConsoleAuthorizationConfigurationInput$;
267
+ const PutConsoleAuthorizationConfigurationOutput$ = [3, n0, _PCACO,
245
268
  0,
246
269
  [_tIa, _sc, _cAE],
247
270
  [0, 0, 2], 3
248
271
  ];
249
- exports.PutResourcePermissionStatementInput$ = [3, n0, _PRPSI,
272
+ exports.PutConsoleAuthorizationConfigurationOutput$ = PutConsoleAuthorizationConfigurationOutput$;
273
+ const PutResourcePermissionStatementInput$ = [3, n0, _PRPSI,
250
274
  0,
251
275
  [_sV, _sSV, _cSV, _vSI, _sIo, _rR, _eP, _cT],
252
276
  [0, 0, 0, 0, 0, 0, 0, [0, 4]]
253
277
  ];
254
- exports.PutResourcePermissionStatementOutput$ = [3, n0, _PRPSO,
278
+ exports.PutResourcePermissionStatementInput$ = PutResourcePermissionStatementInput$;
279
+ const PutResourcePermissionStatementOutput$ = [3, n0, _PRPSO,
255
280
  0,
256
281
  [_sI],
257
282
  [0], 1
258
283
  ];
259
- exports.SigninResourceBasedPolicy$ = [3, n0, _SRBP,
284
+ exports.PutResourcePermissionStatementOutput$ = PutResourcePermissionStatementOutput$;
285
+ const SigninResourceBasedPolicy$ = [3, n0, _SRBP,
260
286
  0,
261
287
  [_v, _st],
262
288
  [[0, { [_jN]: _V }], [() => PolicyStatements, { [_jN]: _S }]]
263
289
  ];
290
+ exports.SigninResourceBasedPolicy$ = SigninResourceBasedPolicy$;
264
291
  var ConditionValues = 64 | 0;
265
292
  var PermissionStatementSummaries = [1, n0, _PSSe,
266
- 0, () => exports.PermissionStatementSummary$
293
+ 0, () => PermissionStatementSummary$
267
294
  ];
268
295
  var PolicyActions = 64 | 0;
269
296
  var PolicyStatements = [1, n0, _PSo,
270
- 0, [() => exports.PolicyStatement$,
297
+ 0, [() => PolicyStatement$,
271
298
  0]
272
299
  ];
273
300
  var Condition = [2, n0, _C,
@@ -278,26 +305,26 @@ var ConditionBlock = [2, n0, _CB,
278
305
  ];
279
306
  var Principal = 128 | 0;
280
307
  exports.CreateOAuth2Token$ = [9, n0, _COAT,
281
- { [_h]: ["POST", "/v1/token", 200] }, () => exports.CreateOAuth2TokenRequest$, () => exports.CreateOAuth2TokenResponse$
308
+ { [_h]: ["POST", "/v1/token", 200] }, () => CreateOAuth2TokenRequest$, () => CreateOAuth2TokenResponse$
282
309
  ];
283
310
  exports.DeleteConsoleAuthorizationConfiguration$ = [9, n0, _DCAC,
284
- { [_h]: ["POST", "/delete-console-authorization-configuration", 200] }, () => exports.DeleteConsoleAuthorizationConfigurationInput$, () => exports.DeleteConsoleAuthorizationConfigurationOutput$
311
+ { [_h]: ["POST", "/delete-console-authorization-configuration", 200] }, () => DeleteConsoleAuthorizationConfigurationInput$, () => DeleteConsoleAuthorizationConfigurationOutput$
285
312
  ];
286
313
  exports.DeleteResourcePermissionStatement$ = [9, n0, _DRPS,
287
- { [_h]: ["POST", "/delete-resource-permission-statement", 200] }, () => exports.DeleteResourcePermissionStatementInput$, () => exports.DeleteResourcePermissionStatementOutput$
314
+ { [_h]: ["POST", "/delete-resource-permission-statement", 200] }, () => DeleteResourcePermissionStatementInput$, () => DeleteResourcePermissionStatementOutput$
288
315
  ];
289
316
  exports.GetConsoleAuthorizationConfiguration$ = [9, n0, _GCAC,
290
- { [_h]: ["POST", "/get-console-authorization-configuration", 200] }, () => exports.GetConsoleAuthorizationConfigurationInput$, () => exports.GetConsoleAuthorizationConfigurationOutput$
317
+ { [_h]: ["POST", "/get-console-authorization-configuration", 200] }, () => GetConsoleAuthorizationConfigurationInput$, () => GetConsoleAuthorizationConfigurationOutput$
291
318
  ];
292
319
  exports.GetResourcePolicy$ = [9, n0, _GRP,
293
- { [_h]: ["POST", "/get-resource-policy", 200] }, () => exports.GetResourcePolicyInput$, () => exports.GetResourcePolicyOutput$
320
+ { [_h]: ["POST", "/get-resource-policy", 200] }, () => GetResourcePolicyInput$, () => GetResourcePolicyOutput$
294
321
  ];
295
322
  exports.ListResourcePermissionStatements$ = [9, n0, _LRPS,
296
- { [_h]: ["POST", "/list-resource-permission-statements", 200] }, () => exports.ListResourcePermissionStatementsInput$, () => exports.ListResourcePermissionStatementsOutput$
323
+ { [_h]: ["POST", "/list-resource-permission-statements", 200] }, () => ListResourcePermissionStatementsInput$, () => ListResourcePermissionStatementsOutput$
297
324
  ];
298
325
  exports.PutConsoleAuthorizationConfiguration$ = [9, n0, _PCAC,
299
- { [_h]: ["POST", "/put-console-authorization-configuration", 200] }, () => exports.PutConsoleAuthorizationConfigurationInput$, () => exports.PutConsoleAuthorizationConfigurationOutput$
326
+ { [_h]: ["POST", "/put-console-authorization-configuration", 200] }, () => PutConsoleAuthorizationConfigurationInput$, () => PutConsoleAuthorizationConfigurationOutput$
300
327
  ];
301
328
  exports.PutResourcePermissionStatement$ = [9, n0, _PRPS,
302
- { [_h]: ["POST", "/put-resource-permission-statement", 200] }, () => exports.PutResourcePermissionStatementInput$, () => exports.PutResourcePermissionStatementOutput$
329
+ { [_h]: ["POST", "/put-resource-permission-statement", 200] }, () => PutResourcePermissionStatementInput$, () => PutResourcePermissionStatementOutput$
303
330
  ];
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-signin",
3
3
  "description": "AWS SDK for JavaScript Signin 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 signin",
14
+ "generate:client": "node ../../scripts/generate-clients/single-service",
15
15
  "test": "yarn g:vitest run --passWithNoTests",
16
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",
18
+ "test:integration:watch": "yarn g:vitest watch --passWithNoTests -c vitest.config.integ.mts",
19
19
  "test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
20
20
  },
21
21
  "main": "./dist-cjs/index.js",
@@ -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",