@aws-sdk/client-sso-oidc 3.183.0 → 3.186.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-sso-oidc
9
+
10
+
11
+
12
+
13
+
14
+ # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
20
+
21
+
22
+
23
+
24
+
6
25
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
26
 
8
27
  **Note:** Version bump only for package @aws-sdk/client-sso-oidc
@@ -463,10 +463,10 @@ const serializeAws_restJson1Scopes = (input, context) => {
463
463
  });
464
464
  };
465
465
  const deserializeMetadata = (output) => {
466
- var _a;
466
+ var _a, _b;
467
467
  return ({
468
468
  httpStatusCode: output.statusCode,
469
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
469
+ requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
470
470
  extendedRequestId: output.headers["x-amz-id-2"],
471
471
  cfId: output.headers["x-amz-cf-id"],
472
472
  });
@@ -1,48 +1,55 @@
1
+ import { __extends } from "tslib";
1
2
  import { CreateTokenCommand } from "./commands/CreateTokenCommand";
2
3
  import { RegisterClientCommand, } from "./commands/RegisterClientCommand";
3
4
  import { StartDeviceAuthorizationCommand, } from "./commands/StartDeviceAuthorizationCommand";
4
5
  import { SSOOIDCClient } from "./SSOOIDCClient";
5
- export class SSOOIDC extends SSOOIDCClient {
6
- createToken(args, optionsOrCb, cb) {
7
- const command = new CreateTokenCommand(args);
6
+ var SSOOIDC = (function (_super) {
7
+ __extends(SSOOIDC, _super);
8
+ function SSOOIDC() {
9
+ return _super !== null && _super.apply(this, arguments) || this;
10
+ }
11
+ SSOOIDC.prototype.createToken = function (args, optionsOrCb, cb) {
12
+ var command = new CreateTokenCommand(args);
8
13
  if (typeof optionsOrCb === "function") {
9
14
  this.send(command, optionsOrCb);
10
15
  }
11
16
  else if (typeof cb === "function") {
12
17
  if (typeof optionsOrCb !== "object")
13
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
18
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
14
19
  this.send(command, optionsOrCb || {}, cb);
15
20
  }
16
21
  else {
17
22
  return this.send(command, optionsOrCb);
18
23
  }
19
- }
20
- registerClient(args, optionsOrCb, cb) {
21
- const command = new RegisterClientCommand(args);
24
+ };
25
+ SSOOIDC.prototype.registerClient = function (args, optionsOrCb, cb) {
26
+ var command = new RegisterClientCommand(args);
22
27
  if (typeof optionsOrCb === "function") {
23
28
  this.send(command, optionsOrCb);
24
29
  }
25
30
  else if (typeof cb === "function") {
26
31
  if (typeof optionsOrCb !== "object")
27
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
32
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
28
33
  this.send(command, optionsOrCb || {}, cb);
29
34
  }
30
35
  else {
31
36
  return this.send(command, optionsOrCb);
32
37
  }
33
- }
34
- startDeviceAuthorization(args, optionsOrCb, cb) {
35
- const command = new StartDeviceAuthorizationCommand(args);
38
+ };
39
+ SSOOIDC.prototype.startDeviceAuthorization = function (args, optionsOrCb, cb) {
40
+ var command = new StartDeviceAuthorizationCommand(args);
36
41
  if (typeof optionsOrCb === "function") {
37
42
  this.send(command, optionsOrCb);
38
43
  }
39
44
  else if (typeof cb === "function") {
40
45
  if (typeof optionsOrCb !== "object")
41
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
46
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
42
47
  this.send(command, optionsOrCb || {}, cb);
43
48
  }
44
49
  else {
45
50
  return this.send(command, optionsOrCb);
46
51
  }
47
- }
48
- }
52
+ };
53
+ return SSOOIDC;
54
+ }(SSOOIDCClient));
55
+ export { SSOOIDC };
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -7,24 +8,29 @@ import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
7
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
8
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
9
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
10
- export class SSOOIDCClient extends __Client {
11
- constructor(configuration) {
12
- const _config_0 = __getRuntimeConfig(configuration);
13
- const _config_1 = resolveRegionConfig(_config_0);
14
- const _config_2 = resolveEndpointsConfig(_config_1);
15
- const _config_3 = resolveRetryConfig(_config_2);
16
- const _config_4 = resolveHostHeaderConfig(_config_3);
17
- const _config_5 = resolveUserAgentConfig(_config_4);
18
- super(_config_5);
19
- this.config = _config_5;
20
- this.middlewareStack.use(getRetryPlugin(this.config));
21
- this.middlewareStack.use(getContentLengthPlugin(this.config));
22
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
23
- this.middlewareStack.use(getLoggerPlugin(this.config));
24
- this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
25
- this.middlewareStack.use(getUserAgentPlugin(this.config));
11
+ var SSOOIDCClient = (function (_super) {
12
+ __extends(SSOOIDCClient, _super);
13
+ function SSOOIDCClient(configuration) {
14
+ var _this = this;
15
+ var _config_0 = __getRuntimeConfig(configuration);
16
+ var _config_1 = resolveRegionConfig(_config_0);
17
+ var _config_2 = resolveEndpointsConfig(_config_1);
18
+ var _config_3 = resolveRetryConfig(_config_2);
19
+ var _config_4 = resolveHostHeaderConfig(_config_3);
20
+ var _config_5 = resolveUserAgentConfig(_config_4);
21
+ _this = _super.call(this, _config_5) || this;
22
+ _this.config = _config_5;
23
+ _this.middlewareStack.use(getRetryPlugin(_this.config));
24
+ _this.middlewareStack.use(getContentLengthPlugin(_this.config));
25
+ _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
26
+ _this.middlewareStack.use(getLoggerPlugin(_this.config));
27
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
28
+ _this.middlewareStack.use(getUserAgentPlugin(_this.config));
29
+ return _this;
26
30
  }
27
- destroy() {
28
- super.destroy();
29
- }
30
- }
31
+ SSOOIDCClient.prototype.destroy = function () {
32
+ _super.prototype.destroy.call(this);
33
+ };
34
+ return SSOOIDCClient;
35
+ }(__Client));
36
+ export { SSOOIDCClient };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateTokenRequestFilterSensitiveLog, CreateTokenResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateTokenCommand, serializeAws_restJson1CreateTokenCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateTokenCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateTokenCommand = (function (_super) {
7
+ __extends(CreateTokenCommand, _super);
8
+ function CreateTokenCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateTokenCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "SSOOIDCClient";
15
- const commandName = "CreateTokenCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "SSOOIDCClient";
18
+ var commandName = "CreateTokenCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateTokenRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateTokenResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateTokenCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateTokenCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateTokenCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateTokenCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateTokenCommand;
38
+ }($Command));
39
+ export { CreateTokenCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { RegisterClientRequestFilterSensitiveLog, RegisterClientResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1RegisterClientCommand, serializeAws_restJson1RegisterClientCommand, } from "../protocols/Aws_restJson1";
5
- export class RegisterClientCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var RegisterClientCommand = (function (_super) {
7
+ __extends(RegisterClientCommand, _super);
8
+ function RegisterClientCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ RegisterClientCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "SSOOIDCClient";
15
- const commandName = "RegisterClientCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "SSOOIDCClient";
18
+ var commandName = "RegisterClientCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: RegisterClientRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: RegisterClientResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ RegisterClientCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1RegisterClientCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ RegisterClientCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1RegisterClientCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return RegisterClientCommand;
38
+ }($Command));
39
+ export { RegisterClientCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { StartDeviceAuthorizationRequestFilterSensitiveLog, StartDeviceAuthorizationResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1StartDeviceAuthorizationCommand, serializeAws_restJson1StartDeviceAuthorizationCommand, } from "../protocols/Aws_restJson1";
5
- export class StartDeviceAuthorizationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StartDeviceAuthorizationCommand = (function (_super) {
7
+ __extends(StartDeviceAuthorizationCommand, _super);
8
+ function StartDeviceAuthorizationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StartDeviceAuthorizationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "SSOOIDCClient";
15
- const commandName = "StartDeviceAuthorizationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "SSOOIDCClient";
18
+ var commandName = "StartDeviceAuthorizationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StartDeviceAuthorizationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StartDeviceAuthorizationResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ StartDeviceAuthorizationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1StartDeviceAuthorizationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StartDeviceAuthorizationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1StartDeviceAuthorizationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StartDeviceAuthorizationCommand;
38
+ }($Command));
39
+ export { StartDeviceAuthorizationCommand };
@@ -1,5 +1,6 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
1
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
2
- const regionHash = {
3
+ var regionHash = {
3
4
  "ap-east-1": {
4
5
  variants: [
5
6
  {
@@ -190,7 +191,7 @@ const regionHash = {
190
191
  signingRegion: "us-west-2",
191
192
  },
192
193
  };
193
- const partitionHash = {
194
+ var partitionHash = {
194
195
  aws: {
195
196
  regions: [
196
197
  "af-south-1",
@@ -310,9 +311,8 @@ const partitionHash = {
310
311
  ],
311
312
  },
312
313
  };
313
- export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
314
- ...options,
315
- signingService: "awsssooidc",
316
- regionHash,
317
- partitionHash,
318
- });
314
+ export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
315
+ return __generator(this, function (_a) {
316
+ return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "awsssooidc", regionHash: regionHash, partitionHash: partitionHash }))];
317
+ });
318
+ }); };
@@ -1,7 +1,12 @@
1
+ import { __extends } from "tslib";
1
2
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
2
- export class SSOOIDCServiceException extends __ServiceException {
3
- constructor(options) {
4
- super(options);
5
- Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);
3
+ var SSOOIDCServiceException = (function (_super) {
4
+ __extends(SSOOIDCServiceException, _super);
5
+ function SSOOIDCServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, SSOOIDCServiceException.prototype);
8
+ return _this;
6
9
  }
7
- }
10
+ return SSOOIDCServiceException;
11
+ }(__ServiceException));
12
+ export { SSOOIDCServiceException };