Skip to content

Commit 596d071

Browse files
committed
chore(nested-clients): pare unused commands, compress rulesets
1 parent a440c98 commit 596d071

29 files changed

+149
-5167
lines changed

packages/nested-clients/package.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,45 @@
2626
},
2727
"license": "Apache-2.0",
2828
"dependencies": {
29+
"@aws-crypto/sha256-browser": "5.2.0",
30+
"@aws-crypto/sha256-js": "5.2.0",
31+
"@aws-sdk/client-sso-oidc": "*",
32+
"@aws-sdk/core": "*",
33+
"@aws-sdk/credential-provider-node": "*",
34+
"@aws-sdk/middleware-host-header": "*",
35+
"@aws-sdk/middleware-logger": "*",
36+
"@aws-sdk/middleware-recursion-detection": "*",
37+
"@aws-sdk/middleware-user-agent": "*",
38+
"@aws-sdk/region-config-resolver": "*",
39+
"@aws-sdk/types": "*",
40+
"@aws-sdk/util-endpoints": "*",
41+
"@aws-sdk/util-user-agent-browser": "*",
42+
"@aws-sdk/util-user-agent-node": "*",
43+
"@smithy/config-resolver": "^4.0.0",
44+
"@smithy/core": "^3.0.0",
45+
"@smithy/fetch-http-handler": "^5.0.0",
46+
"@smithy/hash-node": "^4.0.0",
47+
"@smithy/invalid-dependency": "^4.0.0",
48+
"@smithy/middleware-content-length": "^4.0.0",
49+
"@smithy/middleware-endpoint": "^4.0.0",
50+
"@smithy/middleware-retry": "^4.0.0",
51+
"@smithy/middleware-serde": "^4.0.0",
52+
"@smithy/middleware-stack": "^4.0.0",
53+
"@smithy/node-config-provider": "^4.0.0",
54+
"@smithy/node-http-handler": "^4.0.0",
55+
"@smithy/protocol-http": "^5.0.0",
56+
"@smithy/smithy-client": "^4.0.0",
57+
"@smithy/types": "^4.0.0",
58+
"@smithy/url-parser": "^4.0.0",
59+
"@smithy/util-base64": "^4.0.0",
60+
"@smithy/util-body-length-browser": "^4.0.0",
61+
"@smithy/util-body-length-node": "^4.0.0",
62+
"@smithy/util-defaults-mode-browser": "^4.0.0",
63+
"@smithy/util-defaults-mode-node": "^4.0.0",
64+
"@smithy/util-endpoints": "^3.0.0",
65+
"@smithy/util-middleware": "^4.0.0",
66+
"@smithy/util-retry": "^4.0.0",
67+
"@smithy/util-utf8": "^4.0.0",
2968
"tslib": "^2.6.2"
3069
},
3170
"devDependencies": {

packages/nested-clients/src/nested-sso-oidc/SSOOIDC.ts

Lines changed: 0 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,10 @@ import { createAggregatedClient } from "@smithy/smithy-client";
33
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
44

55
import { CreateTokenCommand, CreateTokenCommandInput, CreateTokenCommandOutput } from "./commands/CreateTokenCommand";
6-
import {
7-
CreateTokenWithIAMCommand,
8-
CreateTokenWithIAMCommandInput,
9-
CreateTokenWithIAMCommandOutput,
10-
} from "./commands/CreateTokenWithIAMCommand";
11-
import {
12-
RegisterClientCommand,
13-
RegisterClientCommandInput,
14-
RegisterClientCommandOutput,
15-
} from "./commands/RegisterClientCommand";
16-
import {
17-
StartDeviceAuthorizationCommand,
18-
StartDeviceAuthorizationCommandInput,
19-
StartDeviceAuthorizationCommandOutput,
20-
} from "./commands/StartDeviceAuthorizationCommand";
216
import { SSOOIDCClient, SSOOIDCClientConfig } from "./SSOOIDCClient";
227

238
const commands = {
249
CreateTokenCommand,
25-
CreateTokenWithIAMCommand,
26-
RegisterClientCommand,
27-
StartDeviceAuthorizationCommand,
2810
};
2911

3012
export interface SSOOIDC {
@@ -38,54 +20,6 @@ export interface SSOOIDC {
3820
options: __HttpHandlerOptions,
3921
cb: (err: any, data?: CreateTokenCommandOutput) => void
4022
): void;
41-
42-
/**
43-
* @see {@link CreateTokenWithIAMCommand}
44-
*/
45-
createTokenWithIAM(
46-
args: CreateTokenWithIAMCommandInput,
47-
options?: __HttpHandlerOptions
48-
): Promise<CreateTokenWithIAMCommandOutput>;
49-
createTokenWithIAM(
50-
args: CreateTokenWithIAMCommandInput,
51-
cb: (err: any, data?: CreateTokenWithIAMCommandOutput) => void
52-
): void;
53-
createTokenWithIAM(
54-
args: CreateTokenWithIAMCommandInput,
55-
options: __HttpHandlerOptions,
56-
cb: (err: any, data?: CreateTokenWithIAMCommandOutput) => void
57-
): void;
58-
59-
/**
60-
* @see {@link RegisterClientCommand}
61-
*/
62-
registerClient(
63-
args: RegisterClientCommandInput,
64-
options?: __HttpHandlerOptions
65-
): Promise<RegisterClientCommandOutput>;
66-
registerClient(args: RegisterClientCommandInput, cb: (err: any, data?: RegisterClientCommandOutput) => void): void;
67-
registerClient(
68-
args: RegisterClientCommandInput,
69-
options: __HttpHandlerOptions,
70-
cb: (err: any, data?: RegisterClientCommandOutput) => void
71-
): void;
72-
73-
/**
74-
* @see {@link StartDeviceAuthorizationCommand}
75-
*/
76-
startDeviceAuthorization(
77-
args: StartDeviceAuthorizationCommandInput,
78-
options?: __HttpHandlerOptions
79-
): Promise<StartDeviceAuthorizationCommandOutput>;
80-
startDeviceAuthorization(
81-
args: StartDeviceAuthorizationCommandInput,
82-
cb: (err: any, data?: StartDeviceAuthorizationCommandOutput) => void
83-
): void;
84-
startDeviceAuthorization(
85-
args: StartDeviceAuthorizationCommandInput,
86-
options: __HttpHandlerOptions,
87-
cb: (err: any, data?: StartDeviceAuthorizationCommandOutput) => void
88-
): void;
8923
}
9024

9125
/**

packages/nested-clients/src/nested-sso-oidc/SSOOIDCClient.ts

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import {
3030
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3131
} from "@smithy/smithy-client";
3232
import {
33-
AwsCredentialIdentityProvider,
3433
BodyLengthCalculator as __BodyLengthCalculator,
3534
CheckOptionalClientConfig as __CheckOptionalClientConfig,
3635
ChecksumConstructor as __ChecksumConstructor,
@@ -54,12 +53,6 @@ import {
5453
resolveHttpAuthSchemeConfig,
5554
} from "./auth/httpAuthSchemeProvider";
5655
import { CreateTokenCommandInput, CreateTokenCommandOutput } from "./commands/CreateTokenCommand";
57-
import { CreateTokenWithIAMCommandInput, CreateTokenWithIAMCommandOutput } from "./commands/CreateTokenWithIAMCommand";
58-
import { RegisterClientCommandInput, RegisterClientCommandOutput } from "./commands/RegisterClientCommand";
59-
import {
60-
StartDeviceAuthorizationCommandInput,
61-
StartDeviceAuthorizationCommandOutput,
62-
} from "./commands/StartDeviceAuthorizationCommand";
6356
import {
6457
ClientInputEndpointParameters,
6558
ClientResolvedEndpointParameters,
@@ -74,20 +67,12 @@ export { __Client };
7467
/**
7568
* @public
7669
*/
77-
export type ServiceInputTypes =
78-
| CreateTokenCommandInput
79-
| CreateTokenWithIAMCommandInput
80-
| RegisterClientCommandInput
81-
| StartDeviceAuthorizationCommandInput;
70+
export type ServiceInputTypes = CreateTokenCommandInput;
8271

8372
/**
8473
* @public
8574
*/
86-
export type ServiceOutputTypes =
87-
| CreateTokenCommandOutput
88-
| CreateTokenWithIAMCommandOutput
89-
| RegisterClientCommandOutput
90-
| StartDeviceAuthorizationCommandOutput;
75+
export type ServiceOutputTypes = CreateTokenCommandOutput;
9176

9277
/**
9378
* @public
@@ -205,13 +190,6 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
205190
*/
206191
defaultUserAgentProvider?: Provider<__UserAgent>;
207192

208-
/**
209-
* Default credentials provider; Not available in browser runtime.
210-
* @deprecated
211-
* @internal
212-
*/
213-
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
214-
215193
/**
216194
* Value for how many times a request will be made at most in case of retry.
217195
*/

packages/nested-clients/src/nested-sso-oidc/auth/httpAuthSchemeProvider.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,6 @@ export const defaultSSOOIDCHttpAuthSchemeProvider: SSOOIDCHttpAuthSchemeProvider
9393
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
9494
break;
9595
}
96-
case "RegisterClient": {
97-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
98-
break;
99-
}
100-
case "StartDeviceAuthorization": {
101-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
102-
break;
103-
}
10496
default: {
10597
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
10698
}

packages/nested-clients/src/nested-sso-oidc/commands/CreateTokenWithIAMCommand.ts

Lines changed: 0 additions & 165 deletions
This file was deleted.

0 commit comments

Comments
 (0)