@aws-sdk/client-sso-oidc 3.934.0 → 3.935.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/dist-cjs/index.js CHANGED
@@ -117,9 +117,6 @@ let SSOOIDCServiceException$1 = class SSOOIDCServiceException extends smithyClie
117
117
  }
118
118
  };
119
119
 
120
- const AccessDeniedExceptionReason = {
121
- KMS_ACCESS_DENIED: "KMS_AccessDeniedException",
122
- };
123
120
  let AccessDeniedException$1 = class AccessDeniedException extends SSOOIDCServiceException$1 {
124
121
  name = "AccessDeniedException";
125
122
  $fault = "client";
@@ -218,12 +215,6 @@ let InvalidGrantException$1 = class InvalidGrantException extends SSOOIDCService
218
215
  this.error_description = opts.error_description;
219
216
  }
220
217
  };
221
- const InvalidRequestExceptionReason = {
222
- KMS_DISABLED_KEY: "KMS_DisabledException",
223
- KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
224
- KMS_INVALID_STATE: "KMS_InvalidStateException",
225
- KMS_KEY_NOT_FOUND: "KMS_NotFoundException",
226
- };
227
218
  let InvalidRequestException$1 = class InvalidRequestException extends SSOOIDCServiceException$1 {
228
219
  name = "InvalidRequestException";
229
220
  $fault = "client";
@@ -793,6 +784,16 @@ class SSOOIDC extends SSOOIDCClient {
793
784
  }
794
785
  smithyClient.createAggregatedClient(commands, SSOOIDC);
795
786
 
787
+ const AccessDeniedExceptionReason = {
788
+ KMS_ACCESS_DENIED: "KMS_AccessDeniedException",
789
+ };
790
+ const InvalidRequestExceptionReason = {
791
+ KMS_DISABLED_KEY: "KMS_DisabledException",
792
+ KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
793
+ KMS_INVALID_STATE: "KMS_InvalidStateException",
794
+ KMS_KEY_NOT_FOUND: "KMS_NotFoundException",
795
+ };
796
+
796
797
  Object.defineProperty(exports, "$Command", {
797
798
  enumerable: true,
798
799
  get: function () { return smithyClient.Command; }
package/dist-es/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from "./SSOOIDCClient";
2
2
  export * from "./SSOOIDC";
3
3
  export * from "./commands";
4
- export * from "./models";
4
+ export * from "./models/enums";
5
+ export * from "./models/errors";
5
6
  export { SSOOIDCServiceException } from "./models/SSOOIDCServiceException";
@@ -0,0 +1,9 @@
1
+ export const AccessDeniedExceptionReason = {
2
+ KMS_ACCESS_DENIED: "KMS_AccessDeniedException",
3
+ };
4
+ export const InvalidRequestExceptionReason = {
5
+ KMS_DISABLED_KEY: "KMS_DisabledException",
6
+ KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
7
+ KMS_INVALID_STATE: "KMS_InvalidStateException",
8
+ KMS_KEY_NOT_FOUND: "KMS_NotFoundException",
9
+ };
@@ -0,0 +1,233 @@
1
+ import { SSOOIDCServiceException as __BaseException } from "./SSOOIDCServiceException";
2
+ export class AccessDeniedException extends __BaseException {
3
+ name = "AccessDeniedException";
4
+ $fault = "client";
5
+ error;
6
+ reason;
7
+ error_description;
8
+ constructor(opts) {
9
+ super({
10
+ name: "AccessDeniedException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
+ this.error = opts.error;
16
+ this.reason = opts.reason;
17
+ this.error_description = opts.error_description;
18
+ }
19
+ }
20
+ export class AuthorizationPendingException extends __BaseException {
21
+ name = "AuthorizationPendingException";
22
+ $fault = "client";
23
+ error;
24
+ error_description;
25
+ constructor(opts) {
26
+ super({
27
+ name: "AuthorizationPendingException",
28
+ $fault: "client",
29
+ ...opts,
30
+ });
31
+ Object.setPrototypeOf(this, AuthorizationPendingException.prototype);
32
+ this.error = opts.error;
33
+ this.error_description = opts.error_description;
34
+ }
35
+ }
36
+ export class ExpiredTokenException extends __BaseException {
37
+ name = "ExpiredTokenException";
38
+ $fault = "client";
39
+ error;
40
+ error_description;
41
+ constructor(opts) {
42
+ super({
43
+ name: "ExpiredTokenException",
44
+ $fault: "client",
45
+ ...opts,
46
+ });
47
+ Object.setPrototypeOf(this, ExpiredTokenException.prototype);
48
+ this.error = opts.error;
49
+ this.error_description = opts.error_description;
50
+ }
51
+ }
52
+ export class InternalServerException extends __BaseException {
53
+ name = "InternalServerException";
54
+ $fault = "server";
55
+ error;
56
+ error_description;
57
+ constructor(opts) {
58
+ super({
59
+ name: "InternalServerException",
60
+ $fault: "server",
61
+ ...opts,
62
+ });
63
+ Object.setPrototypeOf(this, InternalServerException.prototype);
64
+ this.error = opts.error;
65
+ this.error_description = opts.error_description;
66
+ }
67
+ }
68
+ export class InvalidClientException extends __BaseException {
69
+ name = "InvalidClientException";
70
+ $fault = "client";
71
+ error;
72
+ error_description;
73
+ constructor(opts) {
74
+ super({
75
+ name: "InvalidClientException",
76
+ $fault: "client",
77
+ ...opts,
78
+ });
79
+ Object.setPrototypeOf(this, InvalidClientException.prototype);
80
+ this.error = opts.error;
81
+ this.error_description = opts.error_description;
82
+ }
83
+ }
84
+ export class InvalidGrantException extends __BaseException {
85
+ name = "InvalidGrantException";
86
+ $fault = "client";
87
+ error;
88
+ error_description;
89
+ constructor(opts) {
90
+ super({
91
+ name: "InvalidGrantException",
92
+ $fault: "client",
93
+ ...opts,
94
+ });
95
+ Object.setPrototypeOf(this, InvalidGrantException.prototype);
96
+ this.error = opts.error;
97
+ this.error_description = opts.error_description;
98
+ }
99
+ }
100
+ export class InvalidRequestException extends __BaseException {
101
+ name = "InvalidRequestException";
102
+ $fault = "client";
103
+ error;
104
+ reason;
105
+ error_description;
106
+ constructor(opts) {
107
+ super({
108
+ name: "InvalidRequestException",
109
+ $fault: "client",
110
+ ...opts,
111
+ });
112
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
113
+ this.error = opts.error;
114
+ this.reason = opts.reason;
115
+ this.error_description = opts.error_description;
116
+ }
117
+ }
118
+ export class InvalidScopeException extends __BaseException {
119
+ name = "InvalidScopeException";
120
+ $fault = "client";
121
+ error;
122
+ error_description;
123
+ constructor(opts) {
124
+ super({
125
+ name: "InvalidScopeException",
126
+ $fault: "client",
127
+ ...opts,
128
+ });
129
+ Object.setPrototypeOf(this, InvalidScopeException.prototype);
130
+ this.error = opts.error;
131
+ this.error_description = opts.error_description;
132
+ }
133
+ }
134
+ export class SlowDownException extends __BaseException {
135
+ name = "SlowDownException";
136
+ $fault = "client";
137
+ error;
138
+ error_description;
139
+ constructor(opts) {
140
+ super({
141
+ name: "SlowDownException",
142
+ $fault: "client",
143
+ ...opts,
144
+ });
145
+ Object.setPrototypeOf(this, SlowDownException.prototype);
146
+ this.error = opts.error;
147
+ this.error_description = opts.error_description;
148
+ }
149
+ }
150
+ export class UnauthorizedClientException extends __BaseException {
151
+ name = "UnauthorizedClientException";
152
+ $fault = "client";
153
+ error;
154
+ error_description;
155
+ constructor(opts) {
156
+ super({
157
+ name: "UnauthorizedClientException",
158
+ $fault: "client",
159
+ ...opts,
160
+ });
161
+ Object.setPrototypeOf(this, UnauthorizedClientException.prototype);
162
+ this.error = opts.error;
163
+ this.error_description = opts.error_description;
164
+ }
165
+ }
166
+ export class UnsupportedGrantTypeException extends __BaseException {
167
+ name = "UnsupportedGrantTypeException";
168
+ $fault = "client";
169
+ error;
170
+ error_description;
171
+ constructor(opts) {
172
+ super({
173
+ name: "UnsupportedGrantTypeException",
174
+ $fault: "client",
175
+ ...opts,
176
+ });
177
+ Object.setPrototypeOf(this, UnsupportedGrantTypeException.prototype);
178
+ this.error = opts.error;
179
+ this.error_description = opts.error_description;
180
+ }
181
+ }
182
+ export class InvalidRequestRegionException extends __BaseException {
183
+ name = "InvalidRequestRegionException";
184
+ $fault = "client";
185
+ error;
186
+ error_description;
187
+ endpoint;
188
+ region;
189
+ constructor(opts) {
190
+ super({
191
+ name: "InvalidRequestRegionException",
192
+ $fault: "client",
193
+ ...opts,
194
+ });
195
+ Object.setPrototypeOf(this, InvalidRequestRegionException.prototype);
196
+ this.error = opts.error;
197
+ this.error_description = opts.error_description;
198
+ this.endpoint = opts.endpoint;
199
+ this.region = opts.region;
200
+ }
201
+ }
202
+ export class InvalidClientMetadataException extends __BaseException {
203
+ name = "InvalidClientMetadataException";
204
+ $fault = "client";
205
+ error;
206
+ error_description;
207
+ constructor(opts) {
208
+ super({
209
+ name: "InvalidClientMetadataException",
210
+ $fault: "client",
211
+ ...opts,
212
+ });
213
+ Object.setPrototypeOf(this, InvalidClientMetadataException.prototype);
214
+ this.error = opts.error;
215
+ this.error_description = opts.error_description;
216
+ }
217
+ }
218
+ export class InvalidRedirectUriException extends __BaseException {
219
+ name = "InvalidRedirectUriException";
220
+ $fault = "client";
221
+ error;
222
+ error_description;
223
+ constructor(opts) {
224
+ super({
225
+ name: "InvalidRedirectUriException",
226
+ $fault: "client",
227
+ ...opts,
228
+ });
229
+ Object.setPrototypeOf(this, InvalidRedirectUriException.prototype);
230
+ this.error = opts.error;
231
+ this.error_description = opts.error_description;
232
+ }
233
+ }
@@ -1,242 +1 @@
1
- import { SSOOIDCServiceException as __BaseException } from "./SSOOIDCServiceException";
2
- export const AccessDeniedExceptionReason = {
3
- KMS_ACCESS_DENIED: "KMS_AccessDeniedException",
4
- };
5
- export class AccessDeniedException extends __BaseException {
6
- name = "AccessDeniedException";
7
- $fault = "client";
8
- error;
9
- reason;
10
- error_description;
11
- constructor(opts) {
12
- super({
13
- name: "AccessDeniedException",
14
- $fault: "client",
15
- ...opts,
16
- });
17
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
18
- this.error = opts.error;
19
- this.reason = opts.reason;
20
- this.error_description = opts.error_description;
21
- }
22
- }
23
- export class AuthorizationPendingException extends __BaseException {
24
- name = "AuthorizationPendingException";
25
- $fault = "client";
26
- error;
27
- error_description;
28
- constructor(opts) {
29
- super({
30
- name: "AuthorizationPendingException",
31
- $fault: "client",
32
- ...opts,
33
- });
34
- Object.setPrototypeOf(this, AuthorizationPendingException.prototype);
35
- this.error = opts.error;
36
- this.error_description = opts.error_description;
37
- }
38
- }
39
- export class ExpiredTokenException extends __BaseException {
40
- name = "ExpiredTokenException";
41
- $fault = "client";
42
- error;
43
- error_description;
44
- constructor(opts) {
45
- super({
46
- name: "ExpiredTokenException",
47
- $fault: "client",
48
- ...opts,
49
- });
50
- Object.setPrototypeOf(this, ExpiredTokenException.prototype);
51
- this.error = opts.error;
52
- this.error_description = opts.error_description;
53
- }
54
- }
55
- export class InternalServerException extends __BaseException {
56
- name = "InternalServerException";
57
- $fault = "server";
58
- error;
59
- error_description;
60
- constructor(opts) {
61
- super({
62
- name: "InternalServerException",
63
- $fault: "server",
64
- ...opts,
65
- });
66
- Object.setPrototypeOf(this, InternalServerException.prototype);
67
- this.error = opts.error;
68
- this.error_description = opts.error_description;
69
- }
70
- }
71
- export class InvalidClientException extends __BaseException {
72
- name = "InvalidClientException";
73
- $fault = "client";
74
- error;
75
- error_description;
76
- constructor(opts) {
77
- super({
78
- name: "InvalidClientException",
79
- $fault: "client",
80
- ...opts,
81
- });
82
- Object.setPrototypeOf(this, InvalidClientException.prototype);
83
- this.error = opts.error;
84
- this.error_description = opts.error_description;
85
- }
86
- }
87
- export class InvalidGrantException extends __BaseException {
88
- name = "InvalidGrantException";
89
- $fault = "client";
90
- error;
91
- error_description;
92
- constructor(opts) {
93
- super({
94
- name: "InvalidGrantException",
95
- $fault: "client",
96
- ...opts,
97
- });
98
- Object.setPrototypeOf(this, InvalidGrantException.prototype);
99
- this.error = opts.error;
100
- this.error_description = opts.error_description;
101
- }
102
- }
103
- export const InvalidRequestExceptionReason = {
104
- KMS_DISABLED_KEY: "KMS_DisabledException",
105
- KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
106
- KMS_INVALID_STATE: "KMS_InvalidStateException",
107
- KMS_KEY_NOT_FOUND: "KMS_NotFoundException",
108
- };
109
- export class InvalidRequestException extends __BaseException {
110
- name = "InvalidRequestException";
111
- $fault = "client";
112
- error;
113
- reason;
114
- error_description;
115
- constructor(opts) {
116
- super({
117
- name: "InvalidRequestException",
118
- $fault: "client",
119
- ...opts,
120
- });
121
- Object.setPrototypeOf(this, InvalidRequestException.prototype);
122
- this.error = opts.error;
123
- this.reason = opts.reason;
124
- this.error_description = opts.error_description;
125
- }
126
- }
127
- export class InvalidScopeException extends __BaseException {
128
- name = "InvalidScopeException";
129
- $fault = "client";
130
- error;
131
- error_description;
132
- constructor(opts) {
133
- super({
134
- name: "InvalidScopeException",
135
- $fault: "client",
136
- ...opts,
137
- });
138
- Object.setPrototypeOf(this, InvalidScopeException.prototype);
139
- this.error = opts.error;
140
- this.error_description = opts.error_description;
141
- }
142
- }
143
- export class SlowDownException extends __BaseException {
144
- name = "SlowDownException";
145
- $fault = "client";
146
- error;
147
- error_description;
148
- constructor(opts) {
149
- super({
150
- name: "SlowDownException",
151
- $fault: "client",
152
- ...opts,
153
- });
154
- Object.setPrototypeOf(this, SlowDownException.prototype);
155
- this.error = opts.error;
156
- this.error_description = opts.error_description;
157
- }
158
- }
159
- export class UnauthorizedClientException extends __BaseException {
160
- name = "UnauthorizedClientException";
161
- $fault = "client";
162
- error;
163
- error_description;
164
- constructor(opts) {
165
- super({
166
- name: "UnauthorizedClientException",
167
- $fault: "client",
168
- ...opts,
169
- });
170
- Object.setPrototypeOf(this, UnauthorizedClientException.prototype);
171
- this.error = opts.error;
172
- this.error_description = opts.error_description;
173
- }
174
- }
175
- export class UnsupportedGrantTypeException extends __BaseException {
176
- name = "UnsupportedGrantTypeException";
177
- $fault = "client";
178
- error;
179
- error_description;
180
- constructor(opts) {
181
- super({
182
- name: "UnsupportedGrantTypeException",
183
- $fault: "client",
184
- ...opts,
185
- });
186
- Object.setPrototypeOf(this, UnsupportedGrantTypeException.prototype);
187
- this.error = opts.error;
188
- this.error_description = opts.error_description;
189
- }
190
- }
191
- export class InvalidRequestRegionException extends __BaseException {
192
- name = "InvalidRequestRegionException";
193
- $fault = "client";
194
- error;
195
- error_description;
196
- endpoint;
197
- region;
198
- constructor(opts) {
199
- super({
200
- name: "InvalidRequestRegionException",
201
- $fault: "client",
202
- ...opts,
203
- });
204
- Object.setPrototypeOf(this, InvalidRequestRegionException.prototype);
205
- this.error = opts.error;
206
- this.error_description = opts.error_description;
207
- this.endpoint = opts.endpoint;
208
- this.region = opts.region;
209
- }
210
- }
211
- export class InvalidClientMetadataException extends __BaseException {
212
- name = "InvalidClientMetadataException";
213
- $fault = "client";
214
- error;
215
- error_description;
216
- constructor(opts) {
217
- super({
218
- name: "InvalidClientMetadataException",
219
- $fault: "client",
220
- ...opts,
221
- });
222
- Object.setPrototypeOf(this, InvalidClientMetadataException.prototype);
223
- this.error = opts.error;
224
- this.error_description = opts.error_description;
225
- }
226
- }
227
- export class InvalidRedirectUriException extends __BaseException {
228
- name = "InvalidRedirectUriException";
229
- $fault = "client";
230
- error;
231
- error_description;
232
- constructor(opts) {
233
- super({
234
- name: "InvalidRedirectUriException",
235
- $fault: "client",
236
- ...opts,
237
- });
238
- Object.setPrototypeOf(this, InvalidRedirectUriException.prototype);
239
- this.error = opts.error;
240
- this.error_description = opts.error_description;
241
- }
242
- }
1
+ export {};
@@ -80,7 +80,7 @@ const _vU = "verificationUri";
80
80
  const _vUC = "verificationUriComplete";
81
81
  const n0 = "com.amazonaws.ssooidc";
82
82
  import { TypeRegistry } from "@smithy/core/schema";
83
- import { AccessDeniedException as __AccessDeniedException, AuthorizationPendingException as __AuthorizationPendingException, ExpiredTokenException as __ExpiredTokenException, InternalServerException as __InternalServerException, InvalidClientException as __InvalidClientException, InvalidClientMetadataException as __InvalidClientMetadataException, InvalidGrantException as __InvalidGrantException, InvalidRedirectUriException as __InvalidRedirectUriException, InvalidRequestException as __InvalidRequestException, InvalidRequestRegionException as __InvalidRequestRegionException, InvalidScopeException as __InvalidScopeException, SlowDownException as __SlowDownException, UnauthorizedClientException as __UnauthorizedClientException, UnsupportedGrantTypeException as __UnsupportedGrantTypeException, } from "../models/index";
83
+ import { AccessDeniedException as __AccessDeniedException, AuthorizationPendingException as __AuthorizationPendingException, ExpiredTokenException as __ExpiredTokenException, InternalServerException as __InternalServerException, InvalidClientException as __InvalidClientException, InvalidClientMetadataException as __InvalidClientMetadataException, InvalidGrantException as __InvalidGrantException, InvalidRedirectUriException as __InvalidRedirectUriException, InvalidRequestException as __InvalidRequestException, InvalidRequestRegionException as __InvalidRequestRegionException, InvalidScopeException as __InvalidScopeException, SlowDownException as __SlowDownException, UnauthorizedClientException as __UnauthorizedClientException, UnsupportedGrantTypeException as __UnsupportedGrantTypeException, } from "../models/errors";
84
84
  import { SSOOIDCServiceException as __SSOOIDCServiceException } from "../models/SSOOIDCServiceException";
85
85
  export var AccessToken = [0, n0, _AT, 8, 0];
86
86
  export var Assertion = [0, n0, _A, 8, 0];
@@ -47,5 +47,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
47
47
  export type { RuntimeExtension } from "./runtimeExtensions";
48
48
  export type { SSOOIDCExtensionConfiguration } from "./extensionConfiguration";
49
49
  export * from "./commands";
50
- export * from "./models";
50
+ export * from "./models/enums";
51
+ export * from "./models/errors";
52
+ export type * from "./models/models_0";
51
53
  export { SSOOIDCServiceException } from "./models/SSOOIDCServiceException";
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const AccessDeniedExceptionReason: {
6
+ readonly KMS_ACCESS_DENIED: "KMS_AccessDeniedException";
7
+ };
8
+ /**
9
+ * @public
10
+ */
11
+ export type AccessDeniedExceptionReason = (typeof AccessDeniedExceptionReason)[keyof typeof AccessDeniedExceptionReason];
12
+ /**
13
+ * @public
14
+ * @enum
15
+ */
16
+ export declare const InvalidRequestExceptionReason: {
17
+ readonly KMS_DISABLED_KEY: "KMS_DisabledException";
18
+ readonly KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException";
19
+ readonly KMS_INVALID_STATE: "KMS_InvalidStateException";
20
+ readonly KMS_KEY_NOT_FOUND: "KMS_NotFoundException";
21
+ };
22
+ /**
23
+ * @public
24
+ */
25
+ export type InvalidRequestExceptionReason = (typeof InvalidRequestExceptionReason)[keyof typeof InvalidRequestExceptionReason];