Skip to content

Commit 9c37630

Browse files
committed
docs: fix api-extractor configuration and add missing annotations
1 parent 5f755a3 commit 9c37630

File tree

15 files changed

+98
-7
lines changed

15 files changed

+98
-7
lines changed

packages/core/api-extractor.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"extends": "../../api-extractor.packages.json",
3-
"mainEntryPointFilePath": "./dist-types/index.d.ts"
3+
"mainEntryPointFilePath": "./src/api-extractor-type-index.d.ts"
44
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export * from "../dist-types";
2+
export * from "../dist-types/submodules/account-id-endpoint";
3+
export * from "../dist-types/submodules/client";
4+
export * from "../dist-types/submodules/httpAuthSchemes";
5+
export * from "../dist-types/submodules/protocols";

packages/core/src/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ interface PreviouslyResolved {}
2626
* @internal
2727
*/
2828
export interface AccountIdEndpointModeResolvedConfig {
29-
/**
30-
* Resolved value for input config {config.accountIdEndpointMode}
31-
*/
3229
accountIdEndpointMode: Provider<AccountIdEndpointMode>;
3330
}
3431

packages/core/src/submodules/account-id-endpoint/AccountIdEndpointModeConstants.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1+
/**
2+
* @public
3+
*/
14
export type AccountIdEndpointMode = "disabled" | "preferred" | "required";
25

6+
/**
7+
* @internal
8+
*/
39
export const DEFAULT_ACCOUNT_ID_ENDPOINT_MODE = "preferred";
410

11+
/**
12+
* @internal
13+
*/
514
export const ACCOUNT_ID_ENDPOINT_MODE_VALUES: AccountIdEndpointMode[] = ["disabled", "preferred", "required"];
615

716
/**

packages/core/src/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ export const validateSigningProperties = async (
8282
};
8383

8484
/**
85-
* @internal
8685
* Note: this is not a signing algorithm implementation. The sign method
8786
* accepts the real signer as an input parameter.
87+
* @internal
8888
*/
8989
export class AwsSdkSigV4Signer implements HttpSigner {
9090
async sign(
@@ -151,6 +151,7 @@ export class AwsSdkSigV4Signer implements HttpSigner {
151151
}
152152

153153
/**
154+
* @internal
154155
* @deprecated renamed to {@link AwsSdkSigV4Signer}
155156
*/
156157
export const AWSSDKSigV4Signer = AwsSdkSigV4Signer;

packages/core/src/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
} from "@smithy/types";
2222

2323
/**
24-
* @internal
24+
* @public
2525
*/
2626
export interface AwsSdkSigV4AuthInputConfig {
2727
/**
@@ -129,7 +129,8 @@ export const resolveAwsSdkSigV4Config = <T>(
129129
}
130130
}
131131

132-
const boundCredentialsProvider = async (options: Record<string, any> | undefined) => credentialsProvider!({ ...options, callerClientConfig: config });
132+
const boundCredentialsProvider = async (options: Record<string, any> | undefined) =>
133+
credentialsProvider!({ ...options, callerClientConfig: config });
133134

134135
// Populate sigv4 arguments
135136
const {
@@ -235,21 +236,25 @@ export const resolveAwsSdkSigV4Config = <T>(
235236
};
236237

237238
/**
239+
* @internal
238240
* @deprecated renamed to {@link AwsSdkSigV4AuthInputConfig}
239241
*/
240242
export interface AWSSDKSigV4AuthInputConfig extends AwsSdkSigV4AuthInputConfig {}
241243

242244
/**
245+
* @internal
243246
* @deprecated renamed to {@link AwsSdkSigV4PreviouslyResolved}
244247
*/
245248
export interface AWSSDKSigV4PreviouslyResolved extends AwsSdkSigV4PreviouslyResolved {}
246249

247250
/**
251+
* @internal
248252
* @deprecated renamed to {@link AwsSdkSigV4AuthResolvedConfig}
249253
*/
250254
export interface AWSSDKSigV4AuthResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {}
251255

252256
/**
257+
* @internal
253258
* @deprecated renamed to {@link resolveAwsSdkSigV4Config}
254259
*/
255260
export const resolveAWSSDKSigV4Config = resolveAwsSdkSigV4Config;

packages/core/src/submodules/protocols/json/parseJsonBody.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import type { HttpResponse, SerdeContext } from "@smithy/types";
22

33
import { collectBodyString } from "../common";
44

5+
/**
6+
* @internal
7+
*/
58
export const parseJsonBody = (streamBody: any, context: SerdeContext): any =>
69
collectBodyString(streamBody, context).then((encoded) => {
710
if (encoded.length) {
@@ -19,12 +22,18 @@ export const parseJsonBody = (streamBody: any, context: SerdeContext): any =>
1922
return {};
2023
});
2124

25+
/**
26+
* @internal
27+
*/
2228
export const parseJsonErrorBody = async (errorBody: any, context: SerdeContext) => {
2329
const value = await parseJsonBody(errorBody, context);
2430
value.message = value.message ?? value.Message;
2531
return value;
2632
};
2733

34+
/**
35+
* @internal
36+
*/
2837
export const loadRestJsonErrorCode = (output: HttpResponse, data: any): string | undefined => {
2938
const findKey = (object: any, key: string) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
3039

packages/core/src/submodules/protocols/xml/parseXmlBody.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import { XMLParser } from "fast-xml-parser";
44

55
import { collectBodyString } from "../common";
66

7+
/**
8+
* @internal
9+
*/
710
export const parseXmlBody = (streamBody: any, context: SerdeContext): any =>
811
collectBodyString(streamBody, context).then((encoded) => {
912
if (encoded.length) {
@@ -43,6 +46,9 @@ export const parseXmlBody = (streamBody: any, context: SerdeContext): any =>
4346
return {};
4447
});
4548

49+
/**
50+
* @internal
51+
*/
4652
export const parseXmlErrorBody = async (errorBody: any, context: SerdeContext) => {
4753
const value = await parseXmlBody(errorBody, context);
4854
if (value.Error) {
@@ -51,6 +57,9 @@ export const parseXmlErrorBody = async (errorBody: any, context: SerdeContext) =
5157
return value;
5258
};
5359

60+
/**
61+
* @internal
62+
*/
5463
export const loadRestXmlErrorCode = (output: HttpResponse, data: any): string | undefined => {
5564
if (data?.Error?.Code !== undefined) {
5665
return data.Error.Code;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../../api-extractor.packages.json",
3+
"mainEntryPointFilePath": "./dist-types/index.d.ts"
4+
}

packages/middleware-endpoint-discovery/src/configurations.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ const CONFIG_ENDPOINT_DISCOVERY = "endpoint_discovery_enabled";
55

66
const isFalsy = (value: string) => ["false", "0"].indexOf(value) >= 0;
77

8+
/**
9+
* @internal
10+
*/
811
export const NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS: LoadedConfigSelectors<boolean | undefined> = {
912
environmentVariableSelector: (env) => {
1013
for (let i = 0; i < ENV_ENDPOINT_DISCOVERY.length; i++) {

0 commit comments

Comments
 (0)