Skip to content

Commit

Permalink
chore(nested-clients): pare unused commands, compress rulesets
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhe committed Jan 10, 2025
1 parent b323c3c commit e04f91b
Show file tree
Hide file tree
Showing 28 changed files with 110 additions and 5,167 deletions.
66 changes: 0 additions & 66 deletions packages/nested-clients/src/nested-sso-oidc/SSOOIDC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,10 @@ import { createAggregatedClient } from "@smithy/smithy-client";
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";

import { CreateTokenCommand, CreateTokenCommandInput, CreateTokenCommandOutput } from "./commands/CreateTokenCommand";
import {
CreateTokenWithIAMCommand,
CreateTokenWithIAMCommandInput,
CreateTokenWithIAMCommandOutput,
} from "./commands/CreateTokenWithIAMCommand";
import {
RegisterClientCommand,
RegisterClientCommandInput,
RegisterClientCommandOutput,
} from "./commands/RegisterClientCommand";
import {
StartDeviceAuthorizationCommand,
StartDeviceAuthorizationCommandInput,
StartDeviceAuthorizationCommandOutput,
} from "./commands/StartDeviceAuthorizationCommand";
import { SSOOIDCClient, SSOOIDCClientConfig } from "./SSOOIDCClient";

const commands = {
CreateTokenCommand,
CreateTokenWithIAMCommand,
RegisterClientCommand,
StartDeviceAuthorizationCommand,
};

export interface SSOOIDC {
Expand All @@ -38,54 +20,6 @@ export interface SSOOIDC {
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateTokenCommandOutput) => void
): void;

/**
* @see {@link CreateTokenWithIAMCommand}
*/
createTokenWithIAM(
args: CreateTokenWithIAMCommandInput,
options?: __HttpHandlerOptions
): Promise<CreateTokenWithIAMCommandOutput>;
createTokenWithIAM(
args: CreateTokenWithIAMCommandInput,
cb: (err: any, data?: CreateTokenWithIAMCommandOutput) => void
): void;
createTokenWithIAM(
args: CreateTokenWithIAMCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateTokenWithIAMCommandOutput) => void
): void;

/**
* @see {@link RegisterClientCommand}
*/
registerClient(
args: RegisterClientCommandInput,
options?: __HttpHandlerOptions
): Promise<RegisterClientCommandOutput>;
registerClient(args: RegisterClientCommandInput, cb: (err: any, data?: RegisterClientCommandOutput) => void): void;
registerClient(
args: RegisterClientCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: RegisterClientCommandOutput) => void
): void;

/**
* @see {@link StartDeviceAuthorizationCommand}
*/
startDeviceAuthorization(
args: StartDeviceAuthorizationCommandInput,
options?: __HttpHandlerOptions
): Promise<StartDeviceAuthorizationCommandOutput>;
startDeviceAuthorization(
args: StartDeviceAuthorizationCommandInput,
cb: (err: any, data?: StartDeviceAuthorizationCommandOutput) => void
): void;
startDeviceAuthorization(
args: StartDeviceAuthorizationCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: StartDeviceAuthorizationCommandOutput) => void
): void;
}

/**
Expand Down
26 changes: 2 additions & 24 deletions packages/nested-clients/src/nested-sso-oidc/SSOOIDCClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import {
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
} from "@smithy/smithy-client";
import {
AwsCredentialIdentityProvider,
BodyLengthCalculator as __BodyLengthCalculator,
CheckOptionalClientConfig as __CheckOptionalClientConfig,
ChecksumConstructor as __ChecksumConstructor,
Expand All @@ -54,12 +53,6 @@ import {
resolveHttpAuthSchemeConfig,
} from "./auth/httpAuthSchemeProvider";
import { CreateTokenCommandInput, CreateTokenCommandOutput } from "./commands/CreateTokenCommand";
import { CreateTokenWithIAMCommandInput, CreateTokenWithIAMCommandOutput } from "./commands/CreateTokenWithIAMCommand";
import { RegisterClientCommandInput, RegisterClientCommandOutput } from "./commands/RegisterClientCommand";
import {
StartDeviceAuthorizationCommandInput,
StartDeviceAuthorizationCommandOutput,
} from "./commands/StartDeviceAuthorizationCommand";
import {
ClientInputEndpointParameters,
ClientResolvedEndpointParameters,
Expand All @@ -74,20 +67,12 @@ export { __Client };
/**
* @public
*/
export type ServiceInputTypes =
| CreateTokenCommandInput
| CreateTokenWithIAMCommandInput
| RegisterClientCommandInput
| StartDeviceAuthorizationCommandInput;
export type ServiceInputTypes = CreateTokenCommandInput;

/**
* @public
*/
export type ServiceOutputTypes =
| CreateTokenCommandOutput
| CreateTokenWithIAMCommandOutput
| RegisterClientCommandOutput
| StartDeviceAuthorizationCommandOutput;
export type ServiceOutputTypes = CreateTokenCommandOutput;

/**
* @public
Expand Down Expand Up @@ -205,13 +190,6 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
*/
defaultUserAgentProvider?: Provider<__UserAgent>;

/**
* Default credentials provider; Not available in browser runtime.
* @deprecated
* @internal
*/
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;

/**
* Value for how many times a request will be made at most in case of retry.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,6 @@ export const defaultSSOOIDCHttpAuthSchemeProvider: SSOOIDCHttpAuthSchemeProvider
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
break;
}
case "RegisterClient": {
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
break;
}
case "StartDeviceAuthorization": {
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
break;
}
default: {
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
}
Expand Down

This file was deleted.

Loading

0 comments on commit e04f91b

Please sign in to comment.