@aws-sdk/client-sso-oidc 3.51.0 → 3.54.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,33 @@
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.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-sso-oidc
9
+
10
+
11
+
12
+
13
+
14
+ # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
15
+
16
+
17
+ ### Features
18
+
19
+ * **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-sso-oidc
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-sso-oidc
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SSOOIDCServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./SSOOIDC"), exports);
5
6
  tslib_1.__exportStar(require("./SSOOIDCClient"), exports);
6
7
  tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./models"), exports);
9
+ var SSOOIDCServiceException_1 = require("./models/SSOOIDCServiceException");
10
+ Object.defineProperty(exports, "SSOOIDCServiceException", { enumerable: true, get: function () { return SSOOIDCServiceException_1.SSOOIDCServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SSOOIDCServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class SSOOIDCServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);
9
+ }
10
+ }
11
+ exports.SSOOIDCServiceException = SSOOIDCServiceException;
@@ -1,6 +1,37 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StartDeviceAuthorizationResponse = exports.StartDeviceAuthorizationRequest = exports.RegisterClientResponse = exports.RegisterClientRequest = exports.CreateTokenResponse = exports.CreateTokenRequest = void 0;
3
+ exports.StartDeviceAuthorizationResponse = exports.StartDeviceAuthorizationRequest = exports.RegisterClientResponse = exports.RegisterClientRequest = exports.InvalidClientMetadataException = exports.UnsupportedGrantTypeException = exports.UnauthorizedClientException = exports.SlowDownException = exports.InvalidScopeException = exports.InvalidRequestException = exports.InvalidGrantException = exports.InvalidClientException = exports.InternalServerException = exports.ExpiredTokenException = exports.CreateTokenResponse = exports.CreateTokenRequest = exports.AuthorizationPendingException = exports.AccessDeniedException = void 0;
4
+ const SSOOIDCServiceException_1 = require("./SSOOIDCServiceException");
5
+ class AccessDeniedException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
6
+ constructor(opts) {
7
+ super({
8
+ name: "AccessDeniedException",
9
+ $fault: "client",
10
+ ...opts,
11
+ });
12
+ this.name = "AccessDeniedException";
13
+ this.$fault = "client";
14
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
+ this.error = opts.error;
16
+ this.error_description = opts.error_description;
17
+ }
18
+ }
19
+ exports.AccessDeniedException = AccessDeniedException;
20
+ class AuthorizationPendingException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
21
+ constructor(opts) {
22
+ super({
23
+ name: "AuthorizationPendingException",
24
+ $fault: "client",
25
+ ...opts,
26
+ });
27
+ this.name = "AuthorizationPendingException";
28
+ this.$fault = "client";
29
+ Object.setPrototypeOf(this, AuthorizationPendingException.prototype);
30
+ this.error = opts.error;
31
+ this.error_description = opts.error_description;
32
+ }
33
+ }
34
+ exports.AuthorizationPendingException = AuthorizationPendingException;
4
35
  var CreateTokenRequest;
5
36
  (function (CreateTokenRequest) {
6
37
  CreateTokenRequest.filterSensitiveLog = (obj) => ({
@@ -13,6 +44,156 @@ var CreateTokenResponse;
13
44
  ...obj,
14
45
  });
15
46
  })(CreateTokenResponse = exports.CreateTokenResponse || (exports.CreateTokenResponse = {}));
47
+ class ExpiredTokenException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
48
+ constructor(opts) {
49
+ super({
50
+ name: "ExpiredTokenException",
51
+ $fault: "client",
52
+ ...opts,
53
+ });
54
+ this.name = "ExpiredTokenException";
55
+ this.$fault = "client";
56
+ Object.setPrototypeOf(this, ExpiredTokenException.prototype);
57
+ this.error = opts.error;
58
+ this.error_description = opts.error_description;
59
+ }
60
+ }
61
+ exports.ExpiredTokenException = ExpiredTokenException;
62
+ class InternalServerException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
63
+ constructor(opts) {
64
+ super({
65
+ name: "InternalServerException",
66
+ $fault: "server",
67
+ ...opts,
68
+ });
69
+ this.name = "InternalServerException";
70
+ this.$fault = "server";
71
+ Object.setPrototypeOf(this, InternalServerException.prototype);
72
+ this.error = opts.error;
73
+ this.error_description = opts.error_description;
74
+ }
75
+ }
76
+ exports.InternalServerException = InternalServerException;
77
+ class InvalidClientException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
78
+ constructor(opts) {
79
+ super({
80
+ name: "InvalidClientException",
81
+ $fault: "client",
82
+ ...opts,
83
+ });
84
+ this.name = "InvalidClientException";
85
+ this.$fault = "client";
86
+ Object.setPrototypeOf(this, InvalidClientException.prototype);
87
+ this.error = opts.error;
88
+ this.error_description = opts.error_description;
89
+ }
90
+ }
91
+ exports.InvalidClientException = InvalidClientException;
92
+ class InvalidGrantException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
93
+ constructor(opts) {
94
+ super({
95
+ name: "InvalidGrantException",
96
+ $fault: "client",
97
+ ...opts,
98
+ });
99
+ this.name = "InvalidGrantException";
100
+ this.$fault = "client";
101
+ Object.setPrototypeOf(this, InvalidGrantException.prototype);
102
+ this.error = opts.error;
103
+ this.error_description = opts.error_description;
104
+ }
105
+ }
106
+ exports.InvalidGrantException = InvalidGrantException;
107
+ class InvalidRequestException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
108
+ constructor(opts) {
109
+ super({
110
+ name: "InvalidRequestException",
111
+ $fault: "client",
112
+ ...opts,
113
+ });
114
+ this.name = "InvalidRequestException";
115
+ this.$fault = "client";
116
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
117
+ this.error = opts.error;
118
+ this.error_description = opts.error_description;
119
+ }
120
+ }
121
+ exports.InvalidRequestException = InvalidRequestException;
122
+ class InvalidScopeException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
123
+ constructor(opts) {
124
+ super({
125
+ name: "InvalidScopeException",
126
+ $fault: "client",
127
+ ...opts,
128
+ });
129
+ this.name = "InvalidScopeException";
130
+ this.$fault = "client";
131
+ Object.setPrototypeOf(this, InvalidScopeException.prototype);
132
+ this.error = opts.error;
133
+ this.error_description = opts.error_description;
134
+ }
135
+ }
136
+ exports.InvalidScopeException = InvalidScopeException;
137
+ class SlowDownException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
138
+ constructor(opts) {
139
+ super({
140
+ name: "SlowDownException",
141
+ $fault: "client",
142
+ ...opts,
143
+ });
144
+ this.name = "SlowDownException";
145
+ this.$fault = "client";
146
+ Object.setPrototypeOf(this, SlowDownException.prototype);
147
+ this.error = opts.error;
148
+ this.error_description = opts.error_description;
149
+ }
150
+ }
151
+ exports.SlowDownException = SlowDownException;
152
+ class UnauthorizedClientException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
153
+ constructor(opts) {
154
+ super({
155
+ name: "UnauthorizedClientException",
156
+ $fault: "client",
157
+ ...opts,
158
+ });
159
+ this.name = "UnauthorizedClientException";
160
+ this.$fault = "client";
161
+ Object.setPrototypeOf(this, UnauthorizedClientException.prototype);
162
+ this.error = opts.error;
163
+ this.error_description = opts.error_description;
164
+ }
165
+ }
166
+ exports.UnauthorizedClientException = UnauthorizedClientException;
167
+ class UnsupportedGrantTypeException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
168
+ constructor(opts) {
169
+ super({
170
+ name: "UnsupportedGrantTypeException",
171
+ $fault: "client",
172
+ ...opts,
173
+ });
174
+ this.name = "UnsupportedGrantTypeException";
175
+ this.$fault = "client";
176
+ Object.setPrototypeOf(this, UnsupportedGrantTypeException.prototype);
177
+ this.error = opts.error;
178
+ this.error_description = opts.error_description;
179
+ }
180
+ }
181
+ exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException;
182
+ class InvalidClientMetadataException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
183
+ constructor(opts) {
184
+ super({
185
+ name: "InvalidClientMetadataException",
186
+ $fault: "client",
187
+ ...opts,
188
+ });
189
+ this.name = "InvalidClientMetadataException";
190
+ this.$fault = "client";
191
+ Object.setPrototypeOf(this, InvalidClientMetadataException.prototype);
192
+ this.error = opts.error;
193
+ this.error_description = opts.error_description;
194
+ }
195
+ }
196
+ exports.InvalidClientMetadataException = InvalidClientMetadataException;
16
197
  var RegisterClientRequest;
17
198
  (function (RegisterClientRequest) {
18
199
  RegisterClientRequest.filterSensitiveLog = (obj) => ({