@aws-sdk/client-sso-oidc 3.52.0 → 3.53.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,21 +1,30 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { SSOOIDCServiceException as __BaseException } from "./SSOOIDCServiceException";
2
3
  /**
3
4
  * <p>You do not have sufficient access to perform this action.</p>
4
5
  */
5
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
6
- name: "AccessDeniedException";
7
- $fault: "client";
6
+ export declare class AccessDeniedException extends __BaseException {
7
+ readonly name: "AccessDeniedException";
8
+ readonly $fault: "client";
8
9
  error?: string;
9
10
  error_description?: string;
11
+ /**
12
+ * @internal
13
+ */
14
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
10
15
  }
11
16
  /**
12
17
  * <p>Indicates that a request to authorize a client with an access user session token is pending.</p>
13
18
  */
14
- export interface AuthorizationPendingException extends __SmithyException, $MetadataBearer {
15
- name: "AuthorizationPendingException";
16
- $fault: "client";
19
+ export declare class AuthorizationPendingException extends __BaseException {
20
+ readonly name: "AuthorizationPendingException";
21
+ readonly $fault: "client";
17
22
  error?: string;
18
23
  error_description?: string;
24
+ /**
25
+ * @internal
26
+ */
27
+ constructor(opts: __ExceptionOptionType<AuthorizationPendingException, __BaseException>);
19
28
  }
20
29
  export interface CreateTokenRequest {
21
30
  /**
@@ -94,96 +103,136 @@ export declare namespace CreateTokenResponse {
94
103
  /**
95
104
  * <p>Indicates that the token issued by the service is expired and is no longer valid.</p>
96
105
  */
97
- export interface ExpiredTokenException extends __SmithyException, $MetadataBearer {
98
- name: "ExpiredTokenException";
99
- $fault: "client";
106
+ export declare class ExpiredTokenException extends __BaseException {
107
+ readonly name: "ExpiredTokenException";
108
+ readonly $fault: "client";
100
109
  error?: string;
101
110
  error_description?: string;
111
+ /**
112
+ * @internal
113
+ */
114
+ constructor(opts: __ExceptionOptionType<ExpiredTokenException, __BaseException>);
102
115
  }
103
116
  /**
104
117
  * <p>Indicates that an error from the service occurred while trying to process a request.</p>
105
118
  */
106
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
107
- name: "InternalServerException";
108
- $fault: "server";
119
+ export declare class InternalServerException extends __BaseException {
120
+ readonly name: "InternalServerException";
121
+ readonly $fault: "server";
109
122
  error?: string;
110
123
  error_description?: string;
124
+ /**
125
+ * @internal
126
+ */
127
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
111
128
  }
112
129
  /**
113
130
  * <p>Indicates that the <code>clientId</code> or <code>clientSecret</code> in the request is
114
131
  * invalid. For example, this can occur when a client sends an incorrect <code>clientId</code> or
115
132
  * an expired <code>clientSecret</code>.</p>
116
133
  */
117
- export interface InvalidClientException extends __SmithyException, $MetadataBearer {
118
- name: "InvalidClientException";
119
- $fault: "client";
134
+ export declare class InvalidClientException extends __BaseException {
135
+ readonly name: "InvalidClientException";
136
+ readonly $fault: "client";
120
137
  error?: string;
121
138
  error_description?: string;
139
+ /**
140
+ * @internal
141
+ */
142
+ constructor(opts: __ExceptionOptionType<InvalidClientException, __BaseException>);
122
143
  }
123
144
  /**
124
145
  * <p>Indicates that a request contains an invalid grant. This can occur if a client makes a <a>CreateToken</a> request with an invalid grant type.</p>
125
146
  */
126
- export interface InvalidGrantException extends __SmithyException, $MetadataBearer {
127
- name: "InvalidGrantException";
128
- $fault: "client";
147
+ export declare class InvalidGrantException extends __BaseException {
148
+ readonly name: "InvalidGrantException";
149
+ readonly $fault: "client";
129
150
  error?: string;
130
151
  error_description?: string;
152
+ /**
153
+ * @internal
154
+ */
155
+ constructor(opts: __ExceptionOptionType<InvalidGrantException, __BaseException>);
131
156
  }
132
157
  /**
133
158
  * <p>Indicates that something is wrong with the input to the request. For example, a required
134
159
  * parameter might be missing or out of range.</p>
135
160
  */
136
- export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
137
- name: "InvalidRequestException";
138
- $fault: "client";
161
+ export declare class InvalidRequestException extends __BaseException {
162
+ readonly name: "InvalidRequestException";
163
+ readonly $fault: "client";
139
164
  error?: string;
140
165
  error_description?: string;
166
+ /**
167
+ * @internal
168
+ */
169
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
141
170
  }
142
171
  /**
143
172
  * <p>Indicates that the scope provided in the request is invalid.</p>
144
173
  */
145
- export interface InvalidScopeException extends __SmithyException, $MetadataBearer {
146
- name: "InvalidScopeException";
147
- $fault: "client";
174
+ export declare class InvalidScopeException extends __BaseException {
175
+ readonly name: "InvalidScopeException";
176
+ readonly $fault: "client";
148
177
  error?: string;
149
178
  error_description?: string;
179
+ /**
180
+ * @internal
181
+ */
182
+ constructor(opts: __ExceptionOptionType<InvalidScopeException, __BaseException>);
150
183
  }
151
184
  /**
152
185
  * <p>Indicates that the client is making the request too frequently and is more than the service can handle. </p>
153
186
  */
154
- export interface SlowDownException extends __SmithyException, $MetadataBearer {
155
- name: "SlowDownException";
156
- $fault: "client";
187
+ export declare class SlowDownException extends __BaseException {
188
+ readonly name: "SlowDownException";
189
+ readonly $fault: "client";
157
190
  error?: string;
158
191
  error_description?: string;
192
+ /**
193
+ * @internal
194
+ */
195
+ constructor(opts: __ExceptionOptionType<SlowDownException, __BaseException>);
159
196
  }
160
197
  /**
161
198
  * <p>Indicates that the client is not currently authorized to make the request. This can happen
162
199
  * when a <code>clientId</code> is not issued for a public client.</p>
163
200
  */
164
- export interface UnauthorizedClientException extends __SmithyException, $MetadataBearer {
165
- name: "UnauthorizedClientException";
166
- $fault: "client";
201
+ export declare class UnauthorizedClientException extends __BaseException {
202
+ readonly name: "UnauthorizedClientException";
203
+ readonly $fault: "client";
167
204
  error?: string;
168
205
  error_description?: string;
206
+ /**
207
+ * @internal
208
+ */
209
+ constructor(opts: __ExceptionOptionType<UnauthorizedClientException, __BaseException>);
169
210
  }
170
211
  /**
171
212
  * <p>Indicates that the grant type in the request is not supported by the service.</p>
172
213
  */
173
- export interface UnsupportedGrantTypeException extends __SmithyException, $MetadataBearer {
174
- name: "UnsupportedGrantTypeException";
175
- $fault: "client";
214
+ export declare class UnsupportedGrantTypeException extends __BaseException {
215
+ readonly name: "UnsupportedGrantTypeException";
216
+ readonly $fault: "client";
176
217
  error?: string;
177
218
  error_description?: string;
219
+ /**
220
+ * @internal
221
+ */
222
+ constructor(opts: __ExceptionOptionType<UnsupportedGrantTypeException, __BaseException>);
178
223
  }
179
224
  /**
180
225
  * <p>Indicates that the client information sent in the request during registration is invalid.</p>
181
226
  */
182
- export interface InvalidClientMetadataException extends __SmithyException, $MetadataBearer {
183
- name: "InvalidClientMetadataException";
184
- $fault: "client";
227
+ export declare class InvalidClientMetadataException extends __BaseException {
228
+ readonly name: "InvalidClientMetadataException";
229
+ readonly $fault: "client";
185
230
  error?: string;
186
231
  error_description?: string;
232
+ /**
233
+ * @internal
234
+ */
235
+ constructor(opts: __ExceptionOptionType<InvalidClientMetadataException, __BaseException>);
187
236
  }
188
237
  export interface RegisterClientRequest {
189
238
  /**
@@ -2,3 +2,4 @@ export * from "./SSOOIDC";
2
2
  export * from "./SSOOIDCClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { SSOOIDCServiceException } from "./models/SSOOIDCServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class SSOOIDCServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,17 +1,22 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { SSOOIDCServiceException as __BaseException } from "./SSOOIDCServiceException";
2
3
 
3
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
4
- name: "AccessDeniedException";
5
- $fault: "client";
4
+ export declare class AccessDeniedException extends __BaseException {
5
+ readonly name: "AccessDeniedException";
6
+ readonly $fault: "client";
6
7
  error?: string;
7
8
  error_description?: string;
9
+
10
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
8
11
  }
9
12
 
10
- export interface AuthorizationPendingException extends __SmithyException, $MetadataBearer {
11
- name: "AuthorizationPendingException";
12
- $fault: "client";
13
+ export declare class AuthorizationPendingException extends __BaseException {
14
+ readonly name: "AuthorizationPendingException";
15
+ readonly $fault: "client";
13
16
  error?: string;
14
17
  error_description?: string;
18
+
19
+ constructor(opts: __ExceptionOptionType<AuthorizationPendingException, __BaseException>);
15
20
  }
16
21
  export interface CreateTokenRequest {
17
22
 
@@ -52,74 +57,94 @@ export declare namespace CreateTokenResponse {
52
57
  const filterSensitiveLog: (obj: CreateTokenResponse) => any;
53
58
  }
54
59
 
55
- export interface ExpiredTokenException extends __SmithyException, $MetadataBearer {
56
- name: "ExpiredTokenException";
57
- $fault: "client";
60
+ export declare class ExpiredTokenException extends __BaseException {
61
+ readonly name: "ExpiredTokenException";
62
+ readonly $fault: "client";
58
63
  error?: string;
59
64
  error_description?: string;
65
+
66
+ constructor(opts: __ExceptionOptionType<ExpiredTokenException, __BaseException>);
60
67
  }
61
68
 
62
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
63
- name: "InternalServerException";
64
- $fault: "server";
69
+ export declare class InternalServerException extends __BaseException {
70
+ readonly name: "InternalServerException";
71
+ readonly $fault: "server";
65
72
  error?: string;
66
73
  error_description?: string;
74
+
75
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
67
76
  }
68
77
 
69
- export interface InvalidClientException extends __SmithyException, $MetadataBearer {
70
- name: "InvalidClientException";
71
- $fault: "client";
78
+ export declare class InvalidClientException extends __BaseException {
79
+ readonly name: "InvalidClientException";
80
+ readonly $fault: "client";
72
81
  error?: string;
73
82
  error_description?: string;
83
+
84
+ constructor(opts: __ExceptionOptionType<InvalidClientException, __BaseException>);
74
85
  }
75
86
 
76
- export interface InvalidGrantException extends __SmithyException, $MetadataBearer {
77
- name: "InvalidGrantException";
78
- $fault: "client";
87
+ export declare class InvalidGrantException extends __BaseException {
88
+ readonly name: "InvalidGrantException";
89
+ readonly $fault: "client";
79
90
  error?: string;
80
91
  error_description?: string;
92
+
93
+ constructor(opts: __ExceptionOptionType<InvalidGrantException, __BaseException>);
81
94
  }
82
95
 
83
- export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
84
- name: "InvalidRequestException";
85
- $fault: "client";
96
+ export declare class InvalidRequestException extends __BaseException {
97
+ readonly name: "InvalidRequestException";
98
+ readonly $fault: "client";
86
99
  error?: string;
87
100
  error_description?: string;
101
+
102
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
88
103
  }
89
104
 
90
- export interface InvalidScopeException extends __SmithyException, $MetadataBearer {
91
- name: "InvalidScopeException";
92
- $fault: "client";
105
+ export declare class InvalidScopeException extends __BaseException {
106
+ readonly name: "InvalidScopeException";
107
+ readonly $fault: "client";
93
108
  error?: string;
94
109
  error_description?: string;
110
+
111
+ constructor(opts: __ExceptionOptionType<InvalidScopeException, __BaseException>);
95
112
  }
96
113
 
97
- export interface SlowDownException extends __SmithyException, $MetadataBearer {
98
- name: "SlowDownException";
99
- $fault: "client";
114
+ export declare class SlowDownException extends __BaseException {
115
+ readonly name: "SlowDownException";
116
+ readonly $fault: "client";
100
117
  error?: string;
101
118
  error_description?: string;
119
+
120
+ constructor(opts: __ExceptionOptionType<SlowDownException, __BaseException>);
102
121
  }
103
122
 
104
- export interface UnauthorizedClientException extends __SmithyException, $MetadataBearer {
105
- name: "UnauthorizedClientException";
106
- $fault: "client";
123
+ export declare class UnauthorizedClientException extends __BaseException {
124
+ readonly name: "UnauthorizedClientException";
125
+ readonly $fault: "client";
107
126
  error?: string;
108
127
  error_description?: string;
128
+
129
+ constructor(opts: __ExceptionOptionType<UnauthorizedClientException, __BaseException>);
109
130
  }
110
131
 
111
- export interface UnsupportedGrantTypeException extends __SmithyException, $MetadataBearer {
112
- name: "UnsupportedGrantTypeException";
113
- $fault: "client";
132
+ export declare class UnsupportedGrantTypeException extends __BaseException {
133
+ readonly name: "UnsupportedGrantTypeException";
134
+ readonly $fault: "client";
114
135
  error?: string;
115
136
  error_description?: string;
137
+
138
+ constructor(opts: __ExceptionOptionType<UnsupportedGrantTypeException, __BaseException>);
116
139
  }
117
140
 
118
- export interface InvalidClientMetadataException extends __SmithyException, $MetadataBearer {
119
- name: "InvalidClientMetadataException";
120
- $fault: "client";
141
+ export declare class InvalidClientMetadataException extends __BaseException {
142
+ readonly name: "InvalidClientMetadataException";
143
+ readonly $fault: "client";
121
144
  error?: string;
122
145
  error_description?: string;
146
+
147
+ constructor(opts: __ExceptionOptionType<InvalidClientMetadataException, __BaseException>);
123
148
  }
124
149
  export interface RegisterClientRequest {
125
150
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sso-oidc",
3
3
  "description": "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
4
- "version": "3.52.0",
4
+ "version": "3.53.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,31 +18,31 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/config-resolver": "3.52.0",
22
- "@aws-sdk/fetch-http-handler": "3.52.0",
23
- "@aws-sdk/hash-node": "3.52.0",
24
- "@aws-sdk/invalid-dependency": "3.52.0",
25
- "@aws-sdk/middleware-content-length": "3.52.0",
26
- "@aws-sdk/middleware-host-header": "3.52.0",
27
- "@aws-sdk/middleware-logger": "3.52.0",
28
- "@aws-sdk/middleware-retry": "3.52.0",
29
- "@aws-sdk/middleware-serde": "3.52.0",
30
- "@aws-sdk/middleware-stack": "3.52.0",
31
- "@aws-sdk/middleware-user-agent": "3.52.0",
32
- "@aws-sdk/node-config-provider": "3.52.0",
33
- "@aws-sdk/node-http-handler": "3.52.0",
34
- "@aws-sdk/protocol-http": "3.52.0",
35
- "@aws-sdk/smithy-client": "3.52.0",
36
- "@aws-sdk/types": "3.52.0",
37
- "@aws-sdk/url-parser": "3.52.0",
21
+ "@aws-sdk/config-resolver": "3.53.0",
22
+ "@aws-sdk/fetch-http-handler": "3.53.0",
23
+ "@aws-sdk/hash-node": "3.53.0",
24
+ "@aws-sdk/invalid-dependency": "3.53.0",
25
+ "@aws-sdk/middleware-content-length": "3.53.0",
26
+ "@aws-sdk/middleware-host-header": "3.53.0",
27
+ "@aws-sdk/middleware-logger": "3.53.0",
28
+ "@aws-sdk/middleware-retry": "3.53.0",
29
+ "@aws-sdk/middleware-serde": "3.53.0",
30
+ "@aws-sdk/middleware-stack": "3.53.0",
31
+ "@aws-sdk/middleware-user-agent": "3.53.0",
32
+ "@aws-sdk/node-config-provider": "3.53.0",
33
+ "@aws-sdk/node-http-handler": "3.53.0",
34
+ "@aws-sdk/protocol-http": "3.53.0",
35
+ "@aws-sdk/smithy-client": "3.53.0",
36
+ "@aws-sdk/types": "3.53.0",
37
+ "@aws-sdk/url-parser": "3.53.0",
38
38
  "@aws-sdk/util-base64-browser": "3.52.0",
39
39
  "@aws-sdk/util-base64-node": "3.52.0",
40
40
  "@aws-sdk/util-body-length-browser": "3.52.0",
41
41
  "@aws-sdk/util-body-length-node": "3.52.0",
42
- "@aws-sdk/util-defaults-mode-browser": "3.52.0",
43
- "@aws-sdk/util-defaults-mode-node": "3.52.0",
44
- "@aws-sdk/util-user-agent-browser": "3.52.0",
45
- "@aws-sdk/util-user-agent-node": "3.52.0",
42
+ "@aws-sdk/util-defaults-mode-browser": "3.53.0",
43
+ "@aws-sdk/util-defaults-mode-node": "3.53.0",
44
+ "@aws-sdk/util-user-agent-browser": "3.53.0",
45
+ "@aws-sdk/util-user-agent-node": "3.53.0",
46
46
  "@aws-sdk/util-utf8-browser": "3.52.0",
47
47
  "@aws-sdk/util-utf8-node": "3.52.0",
48
48
  "tslib": "^2.3.0"