@aws-sdk/token-providers 3.382.0 → 3.385.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.
@@ -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
+ };
@@ -2,4 +2,4 @@ import { SSOToken } from "@smithy/shared-ini-file-loader";
2
2
  export declare const getNewSsoOidcToken: (
3
3
  ssoToken: SSOToken,
4
4
  ssoRegion: string
5
- ) => Promise<import("@aws-sdk/client-sso-oidc").CreateTokenCommandOutput>;
5
+ ) => any;
@@ -1,2 +1 @@
1
- import { SSOOIDCClient } from "@aws-sdk/client-sso-oidc";
2
- export declare const getSsoOidcClient: (ssoRegion: string) => SSOOIDCClient;
1
+ export declare const getSsoOidcClient: (ssoRegion: string) => any;
@@ -1,3 +1,4 @@
1
+ export * from "./client-sso-oidc-bundle/dist-node";
1
2
  export * from "./fromSso";
2
3
  export * from "./fromStatic";
3
4
  export * from "./nodeProvider";
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.382.0",
3
+ "version": "3.385.0",
4
4
  "description": "A collection of token providers",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
7
7
  "sideEffects": false,
8
8
  "scripts": {
9
- "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
9
+ "build:client-dist": "node ./scripts/esbuild",
10
+ "build": "yarn build:client-dist && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
10
11
  "build:cjs": "tsc -p tsconfig.cjs.json",
11
12
  "build:es": "tsc -p tsconfig.es.json",
12
13
  "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
@@ -26,7 +27,6 @@
26
27
  },
27
28
  "license": "Apache-2.0",
28
29
  "dependencies": {
29
- "@aws-sdk/client-sso-oidc": "3.382.0",
30
30
  "@aws-sdk/types": "3.378.0",
31
31
  "@smithy/property-provider": "^2.0.0",
32
32
  "@smithy/shared-ini-file-loader": "^2.0.0",
@@ -56,6 +56,12 @@
56
56
  "files": [
57
57
  "dist-*/**"
58
58
  ],
59
+ "browser": {
60
+ "./dist-es/client-sso-oidc-bundle/dist-node": "./dist-es/client-sso-oidc-bundle/dist-browser"
61
+ },
62
+ "react-native": {
63
+ "./dist-es/client-sso-oidc-bundle/dist-node": "./dist-es/client-sso-oidc-bundle/dist-browser"
64
+ },
59
65
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/token-providers",
60
66
  "repository": {
61
67
  "type": "git",