Skip to content

Commit 30fc751

Browse files
committed
chore: format protocol tests
1 parent 182326a commit 30fc751

File tree

14 files changed

+32
-42
lines changed

14 files changed

+32
-42
lines changed

private/my-local-model-schema/src/XYZServiceClient.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,7 @@ export class XYZServiceClient extends __Client<
262262
httpAuthSchemeParametersProvider: defaultXYZServiceHttpAuthSchemeParametersProvider,
263263
identityProviderConfigProvider: async (config: XYZServiceClientResolvedConfig) =>
264264
new DefaultIdentityProviderConfig({
265-
"smithy.api#httpApiKeyAuth": config.apiKey,
266-
}),
265+
"smithy.api#httpApiKeyAuth": config.apiKey,}),
267266
})
268267
);
269268
this.middlewareStack.use(getHttpSigningPlugin(this.config));

private/my-local-model-schema/src/auth/httpAuthSchemeProvider.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ export const defaultXYZServiceHttpAuthSchemeParametersProvider = async (
4545
};
4646
};
4747

48-
function createSmithyApiHttpApiKeyAuthHttpAuthOption(
49-
authParameters: XYZServiceHttpAuthSchemeParameters
50-
): HttpAuthOption {
48+
function createSmithyApiHttpApiKeyAuthHttpAuthOption(authParameters: XYZServiceHttpAuthSchemeParameters): HttpAuthOption {
5149
return {
5250
schemeId: "smithy.api#httpApiKeyAuth",
5351
signingProperties: {
@@ -99,7 +97,6 @@ export interface HttpAuthSchemeInputConfig {
9997
* @internal
10098
*/
10199
httpAuthSchemeProvider?: XYZServiceHttpAuthSchemeProvider;
102-
103100
/**
104101
* The API key to use when making requests.
105102
*/
@@ -129,7 +126,6 @@ export interface HttpAuthSchemeResolvedConfig {
129126
* @internal
130127
*/
131128
readonly httpAuthSchemeProvider: XYZServiceHttpAuthSchemeProvider;
132-
133129
/**
134130
* The API key to use when making requests.
135131
*/

private/my-local-model-schema/src/endpoint/EndpointParameters.ts

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,11 @@ export interface ClientInputEndpointParameters {
2020
nonConflictingParam?: string | undefined | Provider<string | undefined>;
2121
}
2222

23-
export type ClientResolvedEndpointParameters = Omit<
24-
ClientInputEndpointParameters,
25-
"endpoint" | "clientContextParams"
26-
> & {
23+
/**
24+
* @public
25+
*/
26+
export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
2727
defaultSigningName: string;
28-
clientContextParams: {
29-
apiKey?: string | undefined | Provider<string | undefined>;
30-
customParam?: string | undefined | Provider<string | undefined>;
31-
enableFeature?: boolean | undefined | Provider<boolean | undefined>;
32-
debugMode?: boolean | undefined | Provider<boolean | undefined>;
33-
nonConflictingParam?: string | undefined | Provider<string | undefined>;
34-
};
3528
};
3629

3730
/**

private/my-local-model-schema/src/endpoint/endpointResolver.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import { ruleSet } from "./ruleset";
77

88
const cache = new EndpointCache({
99
size: 50,
10-
params: ["ApiKey", "endpoint"],
10+
params: ["ApiKey",
11+
"endpoint"],
1112
});
1213

1314
/**

private/my-local-model-schema/src/endpoint/ruleset.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ export const ruleSet: RuleSetObject = {
6161
url: "{endpoint}",
6262
properties: {},
6363
headers: {
64-
"x-api-key": ["{ApiKey}"],
64+
"x-api-key": [
65+
"{ApiKey}",
66+
],
6567
},
6668
},
6769
type: "endpoint",

private/my-local-model-schema/src/runtimeConfig.shared.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ export const getRuntimeConfig = (config: XYZServiceClientConfig) => {
2626
httpAuthSchemes: config?.httpAuthSchemes ?? [
2727
{
2828
schemeId: "smithy.api#httpApiKeyAuth",
29-
identityProvider: (ipc: IdentityProviderConfig) => ipc.getIdentityProvider("smithy.api#httpApiKeyAuth"),
29+
identityProvider: (ipc: IdentityProviderConfig) =>
30+
ipc.getIdentityProvider("smithy.api#httpApiKeyAuth"),
3031
signer: new HttpApiKeyAuthSigner(),
3132
},
3233
],

private/my-local-model/src/XYZServiceClient.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,7 @@ export class XYZServiceClient extends __Client<
247247
httpAuthSchemeParametersProvider: defaultXYZServiceHttpAuthSchemeParametersProvider,
248248
identityProviderConfigProvider: async (config: XYZServiceClientResolvedConfig) =>
249249
new DefaultIdentityProviderConfig({
250-
"smithy.api#httpApiKeyAuth": config.apiKey,
251-
}),
250+
"smithy.api#httpApiKeyAuth": config.apiKey,}),
252251
})
253252
);
254253
this.middlewareStack.use(getHttpSigningPlugin(this.config));

private/my-local-model/src/auth/httpAuthSchemeProvider.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ export const defaultXYZServiceHttpAuthSchemeParametersProvider = async (
4545
};
4646
};
4747

48-
function createSmithyApiHttpApiKeyAuthHttpAuthOption(
49-
authParameters: XYZServiceHttpAuthSchemeParameters
50-
): HttpAuthOption {
48+
function createSmithyApiHttpApiKeyAuthHttpAuthOption(authParameters: XYZServiceHttpAuthSchemeParameters): HttpAuthOption {
5149
return {
5250
schemeId: "smithy.api#httpApiKeyAuth",
5351
signingProperties: {
@@ -99,7 +97,6 @@ export interface HttpAuthSchemeInputConfig {
9997
* @internal
10098
*/
10199
httpAuthSchemeProvider?: XYZServiceHttpAuthSchemeProvider;
102-
103100
/**
104101
* The API key to use when making requests.
105102
*/
@@ -129,7 +126,6 @@ export interface HttpAuthSchemeResolvedConfig {
129126
* @internal
130127
*/
131128
readonly httpAuthSchemeProvider: XYZServiceHttpAuthSchemeProvider;
132-
133129
/**
134130
* The API key to use when making requests.
135131
*/

private/my-local-model/src/endpoint/EndpointParameters.ts

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,11 @@ export interface ClientInputEndpointParameters {
2020
nonConflictingParam?: string | undefined | Provider<string | undefined>;
2121
}
2222

23-
export type ClientResolvedEndpointParameters = Omit<
24-
ClientInputEndpointParameters,
25-
"endpoint" | "clientContextParams"
26-
> & {
23+
/**
24+
* @public
25+
*/
26+
export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
2727
defaultSigningName: string;
28-
clientContextParams: {
29-
apiKey?: string | undefined | Provider<string | undefined>;
30-
customParam?: string | undefined | Provider<string | undefined>;
31-
enableFeature?: boolean | undefined | Provider<boolean | undefined>;
32-
debugMode?: boolean | undefined | Provider<boolean | undefined>;
33-
nonConflictingParam?: string | undefined | Provider<string | undefined>;
34-
};
3528
};
3629

3730
/**

private/my-local-model/src/endpoint/endpointResolver.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import { ruleSet } from "./ruleset";
77

88
const cache = new EndpointCache({
99
size: 50,
10-
params: ["ApiKey", "endpoint"],
10+
params: ["ApiKey",
11+
"endpoint"],
1112
});
1213

1314
/**

0 commit comments

Comments
 (0)