@aws-sdk/token-providers 3.382.0 → 3.386.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/README.md +3 -3
- package/dist-cjs/client-sso-oidc-bundle/dist-browser.js +732 -0
- package/dist-cjs/client-sso-oidc-bundle/dist-node.js +738 -0
- package/dist-cjs/getNewSsoOidcToken.js +2 -2
- package/dist-cjs/getSsoOidcClient.js +2 -2
- package/dist-cjs/index.js +1 -0
- package/dist-es/client-sso-oidc-bundle/dist-browser.js +709 -0
- package/dist-es/client-sso-oidc-bundle/dist-node.js +715 -0
- package/dist-es/getNewSsoOidcToken.js +1 -1
- package/dist-es/getSsoOidcClient.js +1 -1
- package/dist-es/index.js +1 -0
- package/dist-types/client-sso-oidc-bundle/dist-browser.d.ts +187 -0
- package/dist-types/client-sso-oidc-bundle/dist-node.d.ts +187 -0
- package/dist-types/getNewSsoOidcToken.d.ts +1 -1
- package/dist-types/getSsoOidcClient.d.ts +1 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/ts3.4/client-sso-oidc-bundle/dist-browser.d.ts +235 -0
- package/dist-types/ts3.4/client-sso-oidc-bundle/dist-node.d.ts +235 -0
- package/dist-types/ts3.4/getNewSsoOidcToken.d.ts +1 -1
- package/dist-types/ts3.4/getSsoOidcClient.d.ts +1 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/package.json +9 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateTokenCommand } from "
|
|
1
|
+
import { CreateTokenCommand } from "./client-sso-oidc-bundle/dist-node";
|
|
2
2
|
import { getSsoOidcClient } from "./getSsoOidcClient";
|
|
3
3
|
export const getNewSsoOidcToken = (ssoToken, ssoRegion) => {
|
|
4
4
|
const ssoOidcClient = getSsoOidcClient(ssoRegion);
|
package/dist-es/index.js
CHANGED
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
declare var SSOOIDCClient: {
|
|
3
|
+
new (configuration: any): {
|
|
4
|
+
/**
|
|
5
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
6
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
7
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
8
|
+
*/
|
|
9
|
+
destroy(): void;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
13
|
+
declare var AccessDeniedException: {
|
|
14
|
+
new (opts: any): {
|
|
15
|
+
readonly $fault: "server" | "client";
|
|
16
|
+
$response?: import("@smithy/types").HttpResponse | undefined;
|
|
17
|
+
$retryable?: import("@smithy/types").RetryableTrait | undefined;
|
|
18
|
+
$metadata: import("@smithy/types").ResponseMetadata;
|
|
19
|
+
name: string;
|
|
20
|
+
message: string;
|
|
21
|
+
stack?: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
24
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
25
|
+
stackTraceLimit: number;
|
|
26
|
+
};
|
|
27
|
+
declare var AuthorizationPendingException: {
|
|
28
|
+
new (opts: any): {
|
|
29
|
+
readonly $fault: "server" | "client";
|
|
30
|
+
$response?: import("@smithy/types").HttpResponse | undefined;
|
|
31
|
+
$retryable?: import("@smithy/types").RetryableTrait | undefined;
|
|
32
|
+
$metadata: import("@smithy/types").ResponseMetadata;
|
|
33
|
+
name: string;
|
|
34
|
+
message: string;
|
|
35
|
+
stack?: string | undefined;
|
|
36
|
+
};
|
|
37
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
38
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
39
|
+
stackTraceLimit: number;
|
|
40
|
+
};
|
|
41
|
+
declare var ExpiredTokenException: {
|
|
42
|
+
new (opts: any): {
|
|
43
|
+
readonly $fault: "server" | "client";
|
|
44
|
+
$response?: import("@smithy/types").HttpResponse | undefined;
|
|
45
|
+
$retryable?: import("@smithy/types").RetryableTrait | undefined;
|
|
46
|
+
$metadata: import("@smithy/types").ResponseMetadata;
|
|
47
|
+
name: string;
|
|
48
|
+
message: string;
|
|
49
|
+
stack?: string | undefined;
|
|
50
|
+
};
|
|
51
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
52
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
53
|
+
stackTraceLimit: number;
|
|
54
|
+
};
|
|
55
|
+
declare var InternalServerException: {
|
|
56
|
+
new (opts: any): {
|
|
57
|
+
readonly $fault: "server" | "client";
|
|
58
|
+
$response?: import("@smithy/types").HttpResponse | undefined;
|
|
59
|
+
$retryable?: import("@smithy/types").RetryableTrait | undefined;
|
|
60
|
+
$metadata: import("@smithy/types").ResponseMetadata;
|
|
61
|
+
name: string;
|
|
62
|
+
message: string;
|
|
63
|
+
stack?: string | undefined;
|
|
64
|
+
};
|
|
65
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
66
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
67
|
+
stackTraceLimit: number;
|
|
68
|
+
};
|
|
69
|
+
declare var InvalidClientException: {
|
|
70
|
+
new (opts: any): {
|
|
71
|
+
readonly $fault: "server" | "client";
|
|
72
|
+
$response?: import("@smithy/types").HttpResponse | undefined;
|
|
73
|
+
$retryable?: import("@smithy/types").RetryableTrait | undefined;
|
|
74
|
+
$metadata: import("@smithy/types").ResponseMetadata;
|
|
75
|
+
name: string;
|
|
76
|
+
message: string;
|
|
77
|
+
stack?: string | undefined;
|
|
78
|
+
};
|
|
79
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
80
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
81
|
+
stackTraceLimit: number;
|
|
82
|
+
};
|
|
83
|
+
declare var InvalidRequestException: {
|
|
84
|
+
new (opts: any): {
|
|
85
|
+
readonly $fault: "server" | "client";
|
|
86
|
+
$response?: import("@smithy/types").HttpResponse | undefined;
|
|
87
|
+
$retryable?: import("@smithy/types").RetryableTrait | undefined;
|
|
88
|
+
$metadata: import("@smithy/types").ResponseMetadata;
|
|
89
|
+
name: string;
|
|
90
|
+
message: string;
|
|
91
|
+
stack?: string | undefined;
|
|
92
|
+
};
|
|
93
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
94
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
95
|
+
stackTraceLimit: number;
|
|
96
|
+
};
|
|
97
|
+
declare var InvalidScopeException: {
|
|
98
|
+
new (opts: any): {
|
|
99
|
+
readonly $fault: "server" | "client";
|
|
100
|
+
$response?: import("@smithy/types").HttpResponse | undefined;
|
|
101
|
+
$retryable?: import("@smithy/types").RetryableTrait | undefined;
|
|
102
|
+
$metadata: import("@smithy/types").ResponseMetadata;
|
|
103
|
+
name: string;
|
|
104
|
+
message: string;
|
|
105
|
+
stack?: string | undefined;
|
|
106
|
+
};
|
|
107
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
108
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
109
|
+
stackTraceLimit: number;
|
|
110
|
+
};
|
|
111
|
+
declare var SlowDownException: {
|
|
112
|
+
new (opts: any): {
|
|
113
|
+
readonly $fault: "server" | "client";
|
|
114
|
+
$response?: import("@smithy/types").HttpResponse | undefined;
|
|
115
|
+
$retryable?: import("@smithy/types").RetryableTrait | undefined;
|
|
116
|
+
$metadata: import("@smithy/types").ResponseMetadata;
|
|
117
|
+
name: string;
|
|
118
|
+
message: string;
|
|
119
|
+
stack?: string | undefined;
|
|
120
|
+
};
|
|
121
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
122
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
123
|
+
stackTraceLimit: number;
|
|
124
|
+
};
|
|
125
|
+
declare var UnauthorizedClientException: {
|
|
126
|
+
new (opts: any): {
|
|
127
|
+
readonly $fault: "server" | "client";
|
|
128
|
+
$response?: import("@smithy/types").HttpResponse | undefined;
|
|
129
|
+
$retryable?: import("@smithy/types").RetryableTrait | undefined;
|
|
130
|
+
$metadata: import("@smithy/types").ResponseMetadata;
|
|
131
|
+
name: string;
|
|
132
|
+
message: string;
|
|
133
|
+
stack?: string | undefined;
|
|
134
|
+
};
|
|
135
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
136
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
137
|
+
stackTraceLimit: number;
|
|
138
|
+
};
|
|
139
|
+
declare var UnsupportedGrantTypeException: {
|
|
140
|
+
new (opts: any): {
|
|
141
|
+
readonly $fault: "server" | "client";
|
|
142
|
+
$response?: import("@smithy/types").HttpResponse | undefined;
|
|
143
|
+
$retryable?: import("@smithy/types").RetryableTrait | undefined;
|
|
144
|
+
$metadata: import("@smithy/types").ResponseMetadata;
|
|
145
|
+
name: string;
|
|
146
|
+
message: string;
|
|
147
|
+
stack?: string | undefined;
|
|
148
|
+
};
|
|
149
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
150
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
151
|
+
stackTraceLimit: number;
|
|
152
|
+
};
|
|
153
|
+
declare var CreateTokenCommand: {
|
|
154
|
+
new (input: any): {
|
|
155
|
+
/**
|
|
156
|
+
* @internal
|
|
157
|
+
*/
|
|
158
|
+
resolveMiddleware(clientStack: any, configuration: any, options: any): any;
|
|
159
|
+
/**
|
|
160
|
+
* @internal
|
|
161
|
+
*/
|
|
162
|
+
serialize(input: any, context: any): Promise<__HttpRequest>;
|
|
163
|
+
/**
|
|
164
|
+
* @internal
|
|
165
|
+
*/
|
|
166
|
+
deserialize(output: any, context: any): Promise<any>;
|
|
167
|
+
};
|
|
168
|
+
getEndpointParameterInstructions(): {
|
|
169
|
+
UseFIPS: {
|
|
170
|
+
type: string;
|
|
171
|
+
name: string;
|
|
172
|
+
};
|
|
173
|
+
Endpoint: {
|
|
174
|
+
type: string;
|
|
175
|
+
name: string;
|
|
176
|
+
};
|
|
177
|
+
Region: {
|
|
178
|
+
type: string;
|
|
179
|
+
name: string;
|
|
180
|
+
};
|
|
181
|
+
UseDualStack: {
|
|
182
|
+
type: string;
|
|
183
|
+
name: string;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
export { AccessDeniedException, AuthorizationPendingException, CreateTokenCommand, ExpiredTokenException, InternalServerException, InvalidClientException, InvalidRequestException, InvalidScopeException, SSOOIDCClient, SlowDownException, UnauthorizedClientException, UnsupportedGrantTypeException };
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
declare var SSOOIDCClient: {
|
|
3
|
+
new (configuration: any): {
|
|
4
|
+
/**
|
|
5
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
6
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
7
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
8
|
+
*/
|
|
9
|
+
destroy(): void;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
13
|
+
declare var AccessDeniedException: {
|
|
14
|
+
new (opts: any): {
|
|
15
|
+
readonly $fault: "server" | "client";
|
|
16
|
+
$response?: import("@smithy/types").HttpResponse | undefined;
|
|
17
|
+
$retryable?: import("@smithy/types").RetryableTrait | undefined;
|
|
18
|
+
$metadata: import("@smithy/types").ResponseMetadata;
|
|
19
|
+
name: string;
|
|
20
|
+
message: string;
|
|
21
|
+
stack?: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
24
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
25
|
+
stackTraceLimit: number;
|
|
26
|
+
};
|
|
27
|
+
declare var AuthorizationPendingException: {
|
|
28
|
+
new (opts: any): {
|
|
29
|
+
readonly $fault: "server" | "client";
|
|
30
|
+
$response?: import("@smithy/types").HttpResponse | undefined;
|
|
31
|
+
$retryable?: import("@smithy/types").RetryableTrait | undefined;
|
|
32
|
+
$metadata: import("@smithy/types").ResponseMetadata;
|
|
33
|
+
name: string;
|
|
34
|
+
message: string;
|
|
35
|
+
stack?: string | undefined;
|
|
36
|
+
};
|
|
37
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
38
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
39
|
+
stackTraceLimit: number;
|
|
40
|
+
};
|
|
41
|
+
declare var ExpiredTokenException: {
|
|
42
|
+
new (opts: any): {
|
|
43
|
+
readonly $fault: "server" | "client";
|
|
44
|
+
$response?: import("@smithy/types").HttpResponse | undefined;
|
|
45
|
+
$retryable?: import("@smithy/types").RetryableTrait | undefined;
|
|
46
|
+
$metadata: import("@smithy/types").ResponseMetadata;
|
|
47
|
+
name: string;
|
|
48
|
+
message: string;
|
|
49
|
+
stack?: string | undefined;
|
|
50
|
+
};
|
|
51
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
52
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
53
|
+
stackTraceLimit: number;
|
|
54
|
+
};
|
|
55
|
+
declare var InternalServerException: {
|
|
56
|
+
new (opts: any): {
|
|
57
|
+
readonly $fault: "server" | "client";
|
|
58
|
+
$response?: import("@smithy/types").HttpResponse | undefined;
|
|
59
|
+
$retryable?: import("@smithy/types").RetryableTrait | undefined;
|
|
60
|
+
$metadata: import("@smithy/types").ResponseMetadata;
|
|
61
|
+
name: string;
|
|
62
|
+
message: string;
|
|
63
|
+
stack?: string | undefined;
|
|
64
|
+
};
|
|
65
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
66
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
67
|
+
stackTraceLimit: number;
|
|
68
|
+
};
|
|
69
|
+
declare var InvalidClientException: {
|
|
70
|
+
new (opts: any): {
|
|
71
|
+
readonly $fault: "server" | "client";
|
|
72
|
+
$response?: import("@smithy/types").HttpResponse | undefined;
|
|
73
|
+
$retryable?: import("@smithy/types").RetryableTrait | undefined;
|
|
74
|
+
$metadata: import("@smithy/types").ResponseMetadata;
|
|
75
|
+
name: string;
|
|
76
|
+
message: string;
|
|
77
|
+
stack?: string | undefined;
|
|
78
|
+
};
|
|
79
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
80
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
81
|
+
stackTraceLimit: number;
|
|
82
|
+
};
|
|
83
|
+
declare var InvalidRequestException: {
|
|
84
|
+
new (opts: any): {
|
|
85
|
+
readonly $fault: "server" | "client";
|
|
86
|
+
$response?: import("@smithy/types").HttpResponse | undefined;
|
|
87
|
+
$retryable?: import("@smithy/types").RetryableTrait | undefined;
|
|
88
|
+
$metadata: import("@smithy/types").ResponseMetadata;
|
|
89
|
+
name: string;
|
|
90
|
+
message: string;
|
|
91
|
+
stack?: string | undefined;
|
|
92
|
+
};
|
|
93
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
94
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
95
|
+
stackTraceLimit: number;
|
|
96
|
+
};
|
|
97
|
+
declare var InvalidScopeException: {
|
|
98
|
+
new (opts: any): {
|
|
99
|
+
readonly $fault: "server" | "client";
|
|
100
|
+
$response?: import("@smithy/types").HttpResponse | undefined;
|
|
101
|
+
$retryable?: import("@smithy/types").RetryableTrait | undefined;
|
|
102
|
+
$metadata: import("@smithy/types").ResponseMetadata;
|
|
103
|
+
name: string;
|
|
104
|
+
message: string;
|
|
105
|
+
stack?: string | undefined;
|
|
106
|
+
};
|
|
107
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
108
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
109
|
+
stackTraceLimit: number;
|
|
110
|
+
};
|
|
111
|
+
declare var SlowDownException: {
|
|
112
|
+
new (opts: any): {
|
|
113
|
+
readonly $fault: "server" | "client";
|
|
114
|
+
$response?: import("@smithy/types").HttpResponse | undefined;
|
|
115
|
+
$retryable?: import("@smithy/types").RetryableTrait | undefined;
|
|
116
|
+
$metadata: import("@smithy/types").ResponseMetadata;
|
|
117
|
+
name: string;
|
|
118
|
+
message: string;
|
|
119
|
+
stack?: string | undefined;
|
|
120
|
+
};
|
|
121
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
122
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
123
|
+
stackTraceLimit: number;
|
|
124
|
+
};
|
|
125
|
+
declare var UnauthorizedClientException: {
|
|
126
|
+
new (opts: any): {
|
|
127
|
+
readonly $fault: "server" | "client";
|
|
128
|
+
$response?: import("@smithy/types").HttpResponse | undefined;
|
|
129
|
+
$retryable?: import("@smithy/types").RetryableTrait | undefined;
|
|
130
|
+
$metadata: import("@smithy/types").ResponseMetadata;
|
|
131
|
+
name: string;
|
|
132
|
+
message: string;
|
|
133
|
+
stack?: string | undefined;
|
|
134
|
+
};
|
|
135
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
136
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
137
|
+
stackTraceLimit: number;
|
|
138
|
+
};
|
|
139
|
+
declare var UnsupportedGrantTypeException: {
|
|
140
|
+
new (opts: any): {
|
|
141
|
+
readonly $fault: "server" | "client";
|
|
142
|
+
$response?: import("@smithy/types").HttpResponse | undefined;
|
|
143
|
+
$retryable?: import("@smithy/types").RetryableTrait | undefined;
|
|
144
|
+
$metadata: import("@smithy/types").ResponseMetadata;
|
|
145
|
+
name: string;
|
|
146
|
+
message: string;
|
|
147
|
+
stack?: string | undefined;
|
|
148
|
+
};
|
|
149
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
|
|
150
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
151
|
+
stackTraceLimit: number;
|
|
152
|
+
};
|
|
153
|
+
declare var CreateTokenCommand: {
|
|
154
|
+
new (input: any): {
|
|
155
|
+
/**
|
|
156
|
+
* @internal
|
|
157
|
+
*/
|
|
158
|
+
resolveMiddleware(clientStack: any, configuration: any, options: any): any;
|
|
159
|
+
/**
|
|
160
|
+
* @internal
|
|
161
|
+
*/
|
|
162
|
+
serialize(input: any, context: any): Promise<__HttpRequest>;
|
|
163
|
+
/**
|
|
164
|
+
* @internal
|
|
165
|
+
*/
|
|
166
|
+
deserialize(output: any, context: any): Promise<any>;
|
|
167
|
+
};
|
|
168
|
+
getEndpointParameterInstructions(): {
|
|
169
|
+
UseFIPS: {
|
|
170
|
+
type: string;
|
|
171
|
+
name: string;
|
|
172
|
+
};
|
|
173
|
+
Endpoint: {
|
|
174
|
+
type: string;
|
|
175
|
+
name: string;
|
|
176
|
+
};
|
|
177
|
+
Region: {
|
|
178
|
+
type: string;
|
|
179
|
+
name: string;
|
|
180
|
+
};
|
|
181
|
+
UseDualStack: {
|
|
182
|
+
type: string;
|
|
183
|
+
name: string;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
export { AccessDeniedException, AuthorizationPendingException, CreateTokenCommand, ExpiredTokenException, InternalServerException, InvalidClientException, InvalidRequestException, InvalidScopeException, SSOOIDCClient, SlowDownException, UnauthorizedClientException, UnsupportedGrantTypeException };
|
|
@@ -2,4 +2,4 @@ import { SSOToken } from "@smithy/shared-ini-file-loader";
|
|
|
2
2
|
/**
|
|
3
3
|
* Returns a new SSO OIDC token from ssoOids.createToken() API call.
|
|
4
4
|
*/
|
|
5
|
-
export declare const getNewSsoOidcToken: (ssoToken: SSOToken, ssoRegion: string) =>
|
|
5
|
+
export declare const getNewSsoOidcToken: (ssoToken: SSOToken, ssoRegion: string) => any;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { SSOOIDCClient } from "@aws-sdk/client-sso-oidc";
|
|
2
1
|
/**
|
|
3
2
|
* Returns a SSOOIDC client for the given region. If the client has already been created,
|
|
4
3
|
* it will be returned from the hash.
|
|
5
4
|
*/
|
|
6
|
-
export declare const getSsoOidcClient: (ssoRegion: string) =>
|
|
5
|
+
export declare const getSsoOidcClient: (ssoRegion: string) => any;
|
package/dist-types/index.d.ts
CHANGED
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
declare var SSOOIDCClient: {
|
|
2
|
+
new (configuration: any): {
|
|
3
|
+
destroy(): void;
|
|
4
|
+
};
|
|
5
|
+
};
|
|
6
|
+
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
7
|
+
declare var AccessDeniedException: {
|
|
8
|
+
new (opts: any): {
|
|
9
|
+
readonly $fault: "server" | "client";
|
|
10
|
+
$response?: import("@smithy/types").HttpResponse | undefined;
|
|
11
|
+
$retryable?: import("@smithy/types").RetryableTrait | undefined;
|
|
12
|
+
$metadata: import("@smithy/types").ResponseMetadata;
|
|
13
|
+
name: string;
|
|
14
|
+
message: string;
|
|
15
|
+
stack?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
captureStackTrace(
|
|
18
|
+
targetObject: object,
|
|
19
|
+
constructorOpt?: Function | undefined
|
|
20
|
+
): void;
|
|
21
|
+
prepareStackTrace?:
|
|
22
|
+
| ((err: Error, stackTraces: NodeJS.CallSite[]) => any)
|
|
23
|
+
| undefined;
|
|
24
|
+
stackTraceLimit: number;
|
|
25
|
+
};
|
|
26
|
+
declare var AuthorizationPendingException: {
|
|
27
|
+
new (opts: any): {
|
|
28
|
+
readonly $fault: "server" | "client";
|
|
29
|
+
$response?: import("@smithy/types").HttpResponse | undefined;
|
|
30
|
+
$retryable?: import("@smithy/types").RetryableTrait | undefined;
|
|
31
|
+
$metadata: import("@smithy/types").ResponseMetadata;
|
|
32
|
+
name: string;
|
|
33
|
+
message: string;
|
|
34
|
+
stack?: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
captureStackTrace(
|
|
37
|
+
targetObject: object,
|
|
38
|
+
constructorOpt?: Function | undefined
|
|
39
|
+
): void;
|
|
40
|
+
prepareStackTrace?:
|
|
41
|
+
| ((err: Error, stackTraces: NodeJS.CallSite[]) => any)
|
|
42
|
+
| undefined;
|
|
43
|
+
stackTraceLimit: number;
|
|
44
|
+
};
|
|
45
|
+
declare var ExpiredTokenException: {
|
|
46
|
+
new (opts: any): {
|
|
47
|
+
readonly $fault: "server" | "client";
|
|
48
|
+
$response?: import("@smithy/types").HttpResponse | undefined;
|
|
49
|
+
$retryable?: import("@smithy/types").RetryableTrait | undefined;
|
|
50
|
+
$metadata: import("@smithy/types").ResponseMetadata;
|
|
51
|
+
name: string;
|
|
52
|
+
message: string;
|
|
53
|
+
stack?: string | undefined;
|
|
54
|
+
};
|
|
55
|
+
captureStackTrace(
|
|
56
|
+
targetObject: object,
|
|
57
|
+
constructorOpt?: Function | undefined
|
|
58
|
+
): void;
|
|
59
|
+
prepareStackTrace?:
|
|
60
|
+
| ((err: Error, stackTraces: NodeJS.CallSite[]) => any)
|
|
61
|
+
| undefined;
|
|
62
|
+
stackTraceLimit: number;
|
|
63
|
+
};
|
|
64
|
+
declare var InternalServerException: {
|
|
65
|
+
new (opts: any): {
|
|
66
|
+
readonly $fault: "server" | "client";
|
|
67
|
+
$response?: import("@smithy/types").HttpResponse | undefined;
|
|
68
|
+
$retryable?: import("@smithy/types").RetryableTrait | undefined;
|
|
69
|
+
$metadata: import("@smithy/types").ResponseMetadata;
|
|
70
|
+
name: string;
|
|
71
|
+
message: string;
|
|
72
|
+
stack?: string | undefined;
|
|
73
|
+
};
|
|
74
|
+
captureStackTrace(
|
|
75
|
+
targetObject: object,
|
|
76
|
+
constructorOpt?: Function | undefined
|
|
77
|
+
): void;
|
|
78
|
+
prepareStackTrace?:
|
|
79
|
+
| ((err: Error, stackTraces: NodeJS.CallSite[]) => any)
|
|
80
|
+
| undefined;
|
|
81
|
+
stackTraceLimit: number;
|
|
82
|
+
};
|
|
83
|
+
declare var InvalidClientException: {
|
|
84
|
+
new (opts: any): {
|
|
85
|
+
readonly $fault: "server" | "client";
|
|
86
|
+
$response?: import("@smithy/types").HttpResponse | undefined;
|
|
87
|
+
$retryable?: import("@smithy/types").RetryableTrait | undefined;
|
|
88
|
+
$metadata: import("@smithy/types").ResponseMetadata;
|
|
89
|
+
name: string;
|
|
90
|
+
message: string;
|
|
91
|
+
stack?: string | undefined;
|
|
92
|
+
};
|
|
93
|
+
captureStackTrace(
|
|
94
|
+
targetObject: object,
|
|
95
|
+
constructorOpt?: Function | undefined
|
|
96
|
+
): void;
|
|
97
|
+
prepareStackTrace?:
|
|
98
|
+
| ((err: Error, stackTraces: NodeJS.CallSite[]) => any)
|
|
99
|
+
| undefined;
|
|
100
|
+
stackTraceLimit: number;
|
|
101
|
+
};
|
|
102
|
+
declare var InvalidRequestException: {
|
|
103
|
+
new (opts: any): {
|
|
104
|
+
readonly $fault: "server" | "client";
|
|
105
|
+
$response?: import("@smithy/types").HttpResponse | undefined;
|
|
106
|
+
$retryable?: import("@smithy/types").RetryableTrait | undefined;
|
|
107
|
+
$metadata: import("@smithy/types").ResponseMetadata;
|
|
108
|
+
name: string;
|
|
109
|
+
message: string;
|
|
110
|
+
stack?: string | undefined;
|
|
111
|
+
};
|
|
112
|
+
captureStackTrace(
|
|
113
|
+
targetObject: object,
|
|
114
|
+
constructorOpt?: Function | undefined
|
|
115
|
+
): void;
|
|
116
|
+
prepareStackTrace?:
|
|
117
|
+
| ((err: Error, stackTraces: NodeJS.CallSite[]) => any)
|
|
118
|
+
| undefined;
|
|
119
|
+
stackTraceLimit: number;
|
|
120
|
+
};
|
|
121
|
+
declare var InvalidScopeException: {
|
|
122
|
+
new (opts: any): {
|
|
123
|
+
readonly $fault: "server" | "client";
|
|
124
|
+
$response?: import("@smithy/types").HttpResponse | undefined;
|
|
125
|
+
$retryable?: import("@smithy/types").RetryableTrait | undefined;
|
|
126
|
+
$metadata: import("@smithy/types").ResponseMetadata;
|
|
127
|
+
name: string;
|
|
128
|
+
message: string;
|
|
129
|
+
stack?: string | undefined;
|
|
130
|
+
};
|
|
131
|
+
captureStackTrace(
|
|
132
|
+
targetObject: object,
|
|
133
|
+
constructorOpt?: Function | undefined
|
|
134
|
+
): void;
|
|
135
|
+
prepareStackTrace?:
|
|
136
|
+
| ((err: Error, stackTraces: NodeJS.CallSite[]) => any)
|
|
137
|
+
| undefined;
|
|
138
|
+
stackTraceLimit: number;
|
|
139
|
+
};
|
|
140
|
+
declare var SlowDownException: {
|
|
141
|
+
new (opts: any): {
|
|
142
|
+
readonly $fault: "server" | "client";
|
|
143
|
+
$response?: import("@smithy/types").HttpResponse | undefined;
|
|
144
|
+
$retryable?: import("@smithy/types").RetryableTrait | undefined;
|
|
145
|
+
$metadata: import("@smithy/types").ResponseMetadata;
|
|
146
|
+
name: string;
|
|
147
|
+
message: string;
|
|
148
|
+
stack?: string | undefined;
|
|
149
|
+
};
|
|
150
|
+
captureStackTrace(
|
|
151
|
+
targetObject: object,
|
|
152
|
+
constructorOpt?: Function | undefined
|
|
153
|
+
): void;
|
|
154
|
+
prepareStackTrace?:
|
|
155
|
+
| ((err: Error, stackTraces: NodeJS.CallSite[]) => any)
|
|
156
|
+
| undefined;
|
|
157
|
+
stackTraceLimit: number;
|
|
158
|
+
};
|
|
159
|
+
declare var UnauthorizedClientException: {
|
|
160
|
+
new (opts: any): {
|
|
161
|
+
readonly $fault: "server" | "client";
|
|
162
|
+
$response?: import("@smithy/types").HttpResponse | undefined;
|
|
163
|
+
$retryable?: import("@smithy/types").RetryableTrait | undefined;
|
|
164
|
+
$metadata: import("@smithy/types").ResponseMetadata;
|
|
165
|
+
name: string;
|
|
166
|
+
message: string;
|
|
167
|
+
stack?: string | undefined;
|
|
168
|
+
};
|
|
169
|
+
captureStackTrace(
|
|
170
|
+
targetObject: object,
|
|
171
|
+
constructorOpt?: Function | undefined
|
|
172
|
+
): void;
|
|
173
|
+
prepareStackTrace?:
|
|
174
|
+
| ((err: Error, stackTraces: NodeJS.CallSite[]) => any)
|
|
175
|
+
| undefined;
|
|
176
|
+
stackTraceLimit: number;
|
|
177
|
+
};
|
|
178
|
+
declare var UnsupportedGrantTypeException: {
|
|
179
|
+
new (opts: any): {
|
|
180
|
+
readonly $fault: "server" | "client";
|
|
181
|
+
$response?: import("@smithy/types").HttpResponse | undefined;
|
|
182
|
+
$retryable?: import("@smithy/types").RetryableTrait | undefined;
|
|
183
|
+
$metadata: import("@smithy/types").ResponseMetadata;
|
|
184
|
+
name: string;
|
|
185
|
+
message: string;
|
|
186
|
+
stack?: string | undefined;
|
|
187
|
+
};
|
|
188
|
+
captureStackTrace(
|
|
189
|
+
targetObject: object,
|
|
190
|
+
constructorOpt?: Function | undefined
|
|
191
|
+
): void;
|
|
192
|
+
prepareStackTrace?:
|
|
193
|
+
| ((err: Error, stackTraces: NodeJS.CallSite[]) => any)
|
|
194
|
+
| undefined;
|
|
195
|
+
stackTraceLimit: number;
|
|
196
|
+
};
|
|
197
|
+
declare var CreateTokenCommand: {
|
|
198
|
+
new (input: any): {
|
|
199
|
+
resolveMiddleware(clientStack: any, configuration: any, options: any): any;
|
|
200
|
+
serialize(input: any, context: any): Promise<__HttpRequest>;
|
|
201
|
+
deserialize(output: any, context: any): Promise<any>;
|
|
202
|
+
};
|
|
203
|
+
getEndpointParameterInstructions(): {
|
|
204
|
+
UseFIPS: {
|
|
205
|
+
type: string;
|
|
206
|
+
name: string;
|
|
207
|
+
};
|
|
208
|
+
Endpoint: {
|
|
209
|
+
type: string;
|
|
210
|
+
name: string;
|
|
211
|
+
};
|
|
212
|
+
Region: {
|
|
213
|
+
type: string;
|
|
214
|
+
name: string;
|
|
215
|
+
};
|
|
216
|
+
UseDualStack: {
|
|
217
|
+
type: string;
|
|
218
|
+
name: string;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
export {
|
|
223
|
+
AccessDeniedException,
|
|
224
|
+
AuthorizationPendingException,
|
|
225
|
+
CreateTokenCommand,
|
|
226
|
+
ExpiredTokenException,
|
|
227
|
+
InternalServerException,
|
|
228
|
+
InvalidClientException,
|
|
229
|
+
InvalidRequestException,
|
|
230
|
+
InvalidScopeException,
|
|
231
|
+
SSOOIDCClient,
|
|
232
|
+
SlowDownException,
|
|
233
|
+
UnauthorizedClientException,
|
|
234
|
+
UnsupportedGrantTypeException,
|
|
235
|
+
};
|