@aws-sdk/client-sso 3.934.0 → 3.936.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-es/index.js CHANGED
@@ -2,5 +2,5 @@ export * from "./SSOClient";
2
2
  export * from "./SSO";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
- export * from "./models";
5
+ export * from "./models/errors";
6
6
  export { SSOServiceException } from "./models/SSOServiceException";
@@ -0,0 +1,49 @@
1
+ import { SSOServiceException as __BaseException } from "./SSOServiceException";
2
+ export class InvalidRequestException extends __BaseException {
3
+ name = "InvalidRequestException";
4
+ $fault = "client";
5
+ constructor(opts) {
6
+ super({
7
+ name: "InvalidRequestException",
8
+ $fault: "client",
9
+ ...opts,
10
+ });
11
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
12
+ }
13
+ }
14
+ export class ResourceNotFoundException extends __BaseException {
15
+ name = "ResourceNotFoundException";
16
+ $fault = "client";
17
+ constructor(opts) {
18
+ super({
19
+ name: "ResourceNotFoundException",
20
+ $fault: "client",
21
+ ...opts,
22
+ });
23
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
24
+ }
25
+ }
26
+ export class TooManyRequestsException extends __BaseException {
27
+ name = "TooManyRequestsException";
28
+ $fault = "client";
29
+ constructor(opts) {
30
+ super({
31
+ name: "TooManyRequestsException",
32
+ $fault: "client",
33
+ ...opts,
34
+ });
35
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
36
+ }
37
+ }
38
+ export class UnauthorizedException extends __BaseException {
39
+ name = "UnauthorizedException";
40
+ $fault = "client";
41
+ constructor(opts) {
42
+ super({
43
+ name: "UnauthorizedException",
44
+ $fault: "client",
45
+ ...opts,
46
+ });
47
+ Object.setPrototypeOf(this, UnauthorizedException.prototype);
48
+ }
49
+ }
@@ -1,49 +1 @@
1
- import { SSOServiceException as __BaseException } from "./SSOServiceException";
2
- export class InvalidRequestException extends __BaseException {
3
- name = "InvalidRequestException";
4
- $fault = "client";
5
- constructor(opts) {
6
- super({
7
- name: "InvalidRequestException",
8
- $fault: "client",
9
- ...opts,
10
- });
11
- Object.setPrototypeOf(this, InvalidRequestException.prototype);
12
- }
13
- }
14
- export class ResourceNotFoundException extends __BaseException {
15
- name = "ResourceNotFoundException";
16
- $fault = "client";
17
- constructor(opts) {
18
- super({
19
- name: "ResourceNotFoundException",
20
- $fault: "client",
21
- ...opts,
22
- });
23
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
24
- }
25
- }
26
- export class TooManyRequestsException extends __BaseException {
27
- name = "TooManyRequestsException";
28
- $fault = "client";
29
- constructor(opts) {
30
- super({
31
- name: "TooManyRequestsException",
32
- $fault: "client",
33
- ...opts,
34
- });
35
- Object.setPrototypeOf(this, TooManyRequestsException.prototype);
36
- }
37
- }
38
- export class UnauthorizedException extends __BaseException {
39
- name = "UnauthorizedException";
40
- $fault = "client";
41
- constructor(opts) {
42
- super({
43
- name: "UnauthorizedException",
44
- $fault: "client",
45
- ...opts,
46
- });
47
- Object.setPrototypeOf(this, UnauthorizedException.prototype);
48
- }
49
- }
1
+ export {};
@@ -50,7 +50,7 @@ const _sT = "sessionToken";
50
50
  const _xasbt = "x-amz-sso_bearer_token";
51
51
  const n0 = "com.amazonaws.sso";
52
52
  import { TypeRegistry } from "@smithy/core/schema";
53
- import { InvalidRequestException as __InvalidRequestException, ResourceNotFoundException as __ResourceNotFoundException, TooManyRequestsException as __TooManyRequestsException, UnauthorizedException as __UnauthorizedException, } from "../models/index";
53
+ import { InvalidRequestException as __InvalidRequestException, ResourceNotFoundException as __ResourceNotFoundException, TooManyRequestsException as __TooManyRequestsException, UnauthorizedException as __UnauthorizedException, } from "../models/errors";
54
54
  import { SSOServiceException as __SSOServiceException } from "../models/SSOServiceException";
55
55
  export var AccessTokenType = [0, n0, _ATT, 8, 0];
56
56
  export var SecretAccessKeyType = [0, n0, _SAKT, 8, 0];
@@ -25,5 +25,6 @@ export type { RuntimeExtension } from "./runtimeExtensions";
25
25
  export type { SSOExtensionConfiguration } from "./extensionConfiguration";
26
26
  export * from "./commands";
27
27
  export * from "./pagination";
28
- export * from "./models";
28
+ export * from "./models/errors";
29
+ export type * from "./models/models_0";
29
30
  export { SSOServiceException } from "./models/SSOServiceException";
@@ -0,0 +1,53 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { SSOServiceException as __BaseException } from "./SSOServiceException";
3
+ /**
4
+ * <p>Indicates that a problem occurred with the input to the request. For example, a required
5
+ * parameter might be missing or out of range.</p>
6
+ * @public
7
+ */
8
+ export declare class InvalidRequestException extends __BaseException {
9
+ readonly name: "InvalidRequestException";
10
+ readonly $fault: "client";
11
+ /**
12
+ * @internal
13
+ */
14
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
15
+ }
16
+ /**
17
+ * <p>The specified resource doesn't exist.</p>
18
+ * @public
19
+ */
20
+ export declare class ResourceNotFoundException extends __BaseException {
21
+ readonly name: "ResourceNotFoundException";
22
+ readonly $fault: "client";
23
+ /**
24
+ * @internal
25
+ */
26
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
27
+ }
28
+ /**
29
+ * <p>Indicates that the request is being made too frequently and is more than what the server
30
+ * can handle.</p>
31
+ * @public
32
+ */
33
+ export declare class TooManyRequestsException extends __BaseException {
34
+ readonly name: "TooManyRequestsException";
35
+ readonly $fault: "client";
36
+ /**
37
+ * @internal
38
+ */
39
+ constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
40
+ }
41
+ /**
42
+ * <p>Indicates that the request is not authorized. This can happen due to an invalid access
43
+ * token in the request.</p>
44
+ * @public
45
+ */
46
+ export declare class UnauthorizedException extends __BaseException {
47
+ readonly name: "UnauthorizedException";
48
+ readonly $fault: "client";
49
+ /**
50
+ * @internal
51
+ */
52
+ constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
53
+ }
@@ -1,5 +1,3 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { SSOServiceException as __BaseException } from "./SSOServiceException";
3
1
  /**
4
2
  * <p>Provides information about your AWS account.</p>
5
3
  * @public
@@ -82,57 +80,6 @@ export interface GetRoleCredentialsResponse {
82
80
  */
83
81
  roleCredentials?: RoleCredentials | undefined;
84
82
  }
85
- /**
86
- * <p>Indicates that a problem occurred with the input to the request. For example, a required
87
- * parameter might be missing or out of range.</p>
88
- * @public
89
- */
90
- export declare class InvalidRequestException extends __BaseException {
91
- readonly name: "InvalidRequestException";
92
- readonly $fault: "client";
93
- /**
94
- * @internal
95
- */
96
- constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
97
- }
98
- /**
99
- * <p>The specified resource doesn't exist.</p>
100
- * @public
101
- */
102
- export declare class ResourceNotFoundException extends __BaseException {
103
- readonly name: "ResourceNotFoundException";
104
- readonly $fault: "client";
105
- /**
106
- * @internal
107
- */
108
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
109
- }
110
- /**
111
- * <p>Indicates that the request is being made too frequently and is more than what the server
112
- * can handle.</p>
113
- * @public
114
- */
115
- export declare class TooManyRequestsException extends __BaseException {
116
- readonly name: "TooManyRequestsException";
117
- readonly $fault: "client";
118
- /**
119
- * @internal
120
- */
121
- constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
122
- }
123
- /**
124
- * <p>Indicates that the request is not authorized. This can happen due to an invalid access
125
- * token in the request.</p>
126
- * @public
127
- */
128
- export declare class UnauthorizedException extends __BaseException {
129
- readonly name: "UnauthorizedException";
130
- readonly $fault: "client";
131
- /**
132
- * @internal
133
- */
134
- constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
135
- }
136
83
  /**
137
84
  * @public
138
85
  */
@@ -5,5 +5,6 @@ export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { SSOExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./pagination";
8
- export * from "./models";
8
+ export * from "./models/errors";
9
+ export * from "./models/models_0";
9
10
  export { SSOServiceException } from "./models/SSOServiceException";
@@ -0,0 +1,30 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { SSOServiceException as __BaseException } from "./SSOServiceException";
3
+ export declare class InvalidRequestException extends __BaseException {
4
+ readonly name: "InvalidRequestException";
5
+ readonly $fault: "client";
6
+ constructor(
7
+ opts: __ExceptionOptionType<InvalidRequestException, __BaseException>
8
+ );
9
+ }
10
+ export declare class ResourceNotFoundException extends __BaseException {
11
+ readonly name: "ResourceNotFoundException";
12
+ readonly $fault: "client";
13
+ constructor(
14
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
15
+ );
16
+ }
17
+ export declare class TooManyRequestsException extends __BaseException {
18
+ readonly name: "TooManyRequestsException";
19
+ readonly $fault: "client";
20
+ constructor(
21
+ opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>
22
+ );
23
+ }
24
+ export declare class UnauthorizedException extends __BaseException {
25
+ readonly name: "UnauthorizedException";
26
+ readonly $fault: "client";
27
+ constructor(
28
+ opts: __ExceptionOptionType<UnauthorizedException, __BaseException>
29
+ );
30
+ }
@@ -1,5 +1,3 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { SSOServiceException as __BaseException } from "./SSOServiceException";
3
1
  export interface AccountInfo {
4
2
  accountId?: string | undefined;
5
3
  accountName?: string | undefined;
@@ -19,34 +17,6 @@ export interface RoleCredentials {
19
17
  export interface GetRoleCredentialsResponse {
20
18
  roleCredentials?: RoleCredentials | undefined;
21
19
  }
22
- export declare class InvalidRequestException extends __BaseException {
23
- readonly name: "InvalidRequestException";
24
- readonly $fault: "client";
25
- constructor(
26
- opts: __ExceptionOptionType<InvalidRequestException, __BaseException>
27
- );
28
- }
29
- export declare class ResourceNotFoundException extends __BaseException {
30
- readonly name: "ResourceNotFoundException";
31
- readonly $fault: "client";
32
- constructor(
33
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
34
- );
35
- }
36
- export declare class TooManyRequestsException extends __BaseException {
37
- readonly name: "TooManyRequestsException";
38
- readonly $fault: "client";
39
- constructor(
40
- opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>
41
- );
42
- }
43
- export declare class UnauthorizedException extends __BaseException {
44
- readonly name: "UnauthorizedException";
45
- readonly $fault: "client";
46
- constructor(
47
- opts: __ExceptionOptionType<UnauthorizedException, __BaseException>
48
- );
49
- }
50
20
  export interface ListAccountRolesRequest {
51
21
  nextToken?: string | undefined;
52
22
  maxResults?: number | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sso",
3
3
  "description": "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
4
- "version": "3.934.0",
4
+ "version": "3.936.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-sso",
@@ -20,37 +20,37 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.934.0",
24
- "@aws-sdk/middleware-host-header": "3.930.0",
25
- "@aws-sdk/middleware-logger": "3.930.0",
26
- "@aws-sdk/middleware-recursion-detection": "3.933.0",
27
- "@aws-sdk/middleware-user-agent": "3.934.0",
28
- "@aws-sdk/region-config-resolver": "3.930.0",
29
- "@aws-sdk/types": "3.930.0",
30
- "@aws-sdk/util-endpoints": "3.930.0",
31
- "@aws-sdk/util-user-agent-browser": "3.930.0",
32
- "@aws-sdk/util-user-agent-node": "3.934.0",
23
+ "@aws-sdk/core": "3.936.0",
24
+ "@aws-sdk/middleware-host-header": "3.936.0",
25
+ "@aws-sdk/middleware-logger": "3.936.0",
26
+ "@aws-sdk/middleware-recursion-detection": "3.936.0",
27
+ "@aws-sdk/middleware-user-agent": "3.936.0",
28
+ "@aws-sdk/region-config-resolver": "3.936.0",
29
+ "@aws-sdk/types": "3.936.0",
30
+ "@aws-sdk/util-endpoints": "3.936.0",
31
+ "@aws-sdk/util-user-agent-browser": "3.936.0",
32
+ "@aws-sdk/util-user-agent-node": "3.936.0",
33
33
  "@smithy/config-resolver": "^4.4.3",
34
- "@smithy/core": "^3.18.2",
34
+ "@smithy/core": "^3.18.5",
35
35
  "@smithy/fetch-http-handler": "^5.3.6",
36
36
  "@smithy/hash-node": "^4.2.5",
37
37
  "@smithy/invalid-dependency": "^4.2.5",
38
38
  "@smithy/middleware-content-length": "^4.2.5",
39
- "@smithy/middleware-endpoint": "^4.3.9",
40
- "@smithy/middleware-retry": "^4.4.9",
41
- "@smithy/middleware-serde": "^4.2.5",
39
+ "@smithy/middleware-endpoint": "^4.3.12",
40
+ "@smithy/middleware-retry": "^4.4.12",
41
+ "@smithy/middleware-serde": "^4.2.6",
42
42
  "@smithy/middleware-stack": "^4.2.5",
43
43
  "@smithy/node-config-provider": "^4.3.5",
44
44
  "@smithy/node-http-handler": "^4.4.5",
45
45
  "@smithy/protocol-http": "^5.3.5",
46
- "@smithy/smithy-client": "^4.9.5",
46
+ "@smithy/smithy-client": "^4.9.8",
47
47
  "@smithy/types": "^4.9.0",
48
48
  "@smithy/url-parser": "^4.2.5",
49
49
  "@smithy/util-base64": "^4.3.0",
50
50
  "@smithy/util-body-length-browser": "^4.2.0",
51
51
  "@smithy/util-body-length-node": "^4.2.1",
52
- "@smithy/util-defaults-mode-browser": "^4.3.8",
53
- "@smithy/util-defaults-mode-node": "^4.2.11",
52
+ "@smithy/util-defaults-mode-browser": "^4.3.11",
53
+ "@smithy/util-defaults-mode-node": "^4.2.14",
54
54
  "@smithy/util-endpoints": "^3.2.5",
55
55
  "@smithy/util-middleware": "^4.2.5",
56
56
  "@smithy/util-retry": "^4.2.5",
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";