Skip to content

Commit 60c0e7d

Browse files
authored
docs(tsdoc): release tags to types package (#4506)
* docs(add-tsdoc): release tags to types package * docs(rm-reexport-tags): remove unnecessary release tags from index files * fix(tsdoc): update release tags
1 parent 4493d74 commit 60c0e7d

31 files changed

+454
-1
lines changed

packages/types/src/abort.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
/**
2+
* @public
3+
*/
14
export interface AbortHandler {
25
(this: AbortSignal, ev: any): any;
36
}
47

58
/**
9+
* @public
10+
*
611
* Holders of an AbortSignal object may query if the associated operation has
712
* been aborted and register an onabort handler.
813
*
@@ -22,6 +27,8 @@ export interface AbortSignal {
2227
}
2328

2429
/**
30+
* @public
31+
*
2532
* The AWS SDK uses a Controller/Signal model to allow for cooperative
2633
* cancellation of asynchronous operations. When initiating such an operation,
2734
* the caller can create an AbortController and then provide linked signal to

packages/types/src/auth.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/**
2+
* @internal
3+
*
24
* Authentication schemes represent a way that the service will authenticate the customer’s identity.
35
*/
46
export interface AuthScheme {
@@ -28,6 +30,9 @@ export interface AuthScheme {
2830

2931
// As described in the Smithy documentation:
3032
// https://github.com/awslabs/smithy/blob/main/smithy-model/src/main/resources/software/amazon/smithy/model/loader/prelude.smithy
33+
/**
34+
* @internal
35+
*/
3136
export interface HttpAuthDefinition {
3237
/**
3338
* Defines the location of where the Auth is serialized.
@@ -47,6 +52,9 @@ export interface HttpAuthDefinition {
4752
scheme?: string;
4853
}
4954

55+
/**
56+
* @internal
57+
*/
5058
export enum HttpAuthLocation {
5159
HEADER = "header",
5260
QUERY = "query",

packages/types/src/checksum.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { SourceData } from "./crypto";
22

33
/**
4+
* @public
5+
*
46
* An object that provides a checksum of data provided in chunks to `update`.
57
* The checksum may be performed incrementally as chunks are received or all
68
* at once when the checksum is finalized, depending on the underlying
@@ -57,6 +59,8 @@ export interface Checksum {
5759
}
5860

5961
/**
62+
* @public
63+
*
6064
* A constructor for a Checksum that may be used to calculate an HMAC. Implementing
6165
* classes should not directly hold the provided key in memory beyond the
6266
* lexical scope of the constructor.

packages/types/src/client.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { MiddlewareStack } from "./middleware";
33
import { MetadataBearer } from "./response";
44

55
/**
6+
* @public
7+
*
68
* function definition for different overrides of client's 'send' function.
79
*/
810
interface InvokeFunction<InputTypes extends object, OutputTypes extends MetadataBearer, ResolvedClientConfiguration> {

packages/types/src/command.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { Handler, MiddlewareStack } from "./middleware";
22
import { MetadataBearer } from "./response";
33

4+
/**
5+
* @public
6+
*/
47
export interface Command<
58
ClientInput extends object,
69
InputType extends ClientInput,

packages/types/src/credentials.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@ import { AwsCredentialIdentity } from "./identity";
22
import { Provider } from "./util";
33

44
/**
5+
* @public
6+
*
57
* An object representing temporary or permanent AWS credentials.
68
*
79
* @deprecated Use {@AwsCredentialIdentity}
810
*/
911
export interface Credentials extends AwsCredentialIdentity {}
1012

1113
/**
14+
* @public
15+
*
1216
* @deprecated Use {@AwsCredentialIdentityProvider}
1317
*/
1418
export type CredentialProvider = Provider<Credentials>;

packages/types/src/crypto.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
/**
2+
* @public
3+
*/
14
export type SourceData = string | ArrayBuffer | ArrayBufferView;
25

36
/**
7+
* @public
8+
*
49
* An object that provides a hash of data provided in chunks to `update`. The
510
* hash may be performed incrementally as chunks are received or all at once
611
* when the hash is finalized, depending on the underlying implementation.
@@ -26,6 +31,8 @@ export interface Hash {
2631
}
2732

2833
/**
34+
* @public
35+
*
2936
* A constructor for a hash that may be used to calculate an HMAC. Implementing
3037
* classes should not directly hold the provided key in memory beyond the
3138
* lexical scope of the constructor.
@@ -37,6 +44,8 @@ export interface HashConstructor {
3744
}
3845

3946
/**
47+
* @public
48+
*
4049
* A function that calculates the hash of a data stream. Determining the hash
4150
* will consume the stream, so only replayable streams should be provided to an
4251
* implementation of this interface.
@@ -46,6 +55,8 @@ export interface StreamHasher<StreamType = any> {
4655
}
4756

4857
/**
58+
* @public
59+
*
4960
* A function that returns a promise fulfilled with bytes from a
5061
* cryptographically secure pseudorandom number generator.
5162
*/

packages/types/src/dns.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/**
2+
* @public
3+
*
24
* DNS record types
35
*/
46
export enum HostAddressType {
@@ -12,6 +14,9 @@ export enum HostAddressType {
1214
A = "A",
1315
}
1416

17+
/**
18+
* @public
19+
*/
1520
export interface HostAddress {
1621
/**
1722
* The {@link HostAddressType} of the host address.
@@ -32,6 +37,9 @@ export interface HostAddress {
3237
service?: string;
3338
}
3439

40+
/**
41+
* @public
42+
*/
3543
export interface HostResolverArguments {
3644
/**
3745
* The host name to resolve.
@@ -44,6 +52,8 @@ export interface HostResolverArguments {
4452
}
4553

4654
/**
55+
* @public
56+
*
4757
* Host Resolver interface for DNS queries
4858
*/
4959
export interface HostResolver {

packages/types/src/endpoint.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import { AuthScheme } from "./auth";
22

3+
/**
4+
* @public
5+
*/
36
export interface EndpointPartition {
47
name: string;
58
dnsSuffix: string;
@@ -8,6 +11,9 @@ export interface EndpointPartition {
811
supportsDualStack: boolean;
912
}
1013

14+
/**
15+
* @public
16+
*/
1117
export interface EndpointARN {
1218
partition: string;
1319
service: string;
@@ -16,11 +22,17 @@ export interface EndpointARN {
1622
resourceId: Array<string>;
1723
}
1824

25+
/**
26+
* @public
27+
*/
1928
export enum EndpointURLScheme {
2029
HTTP = "http",
2130
HTTPS = "https",
2231
}
2332

33+
/**
34+
* @public
35+
*/
2436
export interface EndpointURL {
2537
/**
2638
* The URL scheme such as http or https.
@@ -50,12 +62,18 @@ export interface EndpointURL {
5062
isIp: boolean;
5163
}
5264

65+
/**
66+
* @public
67+
*/
5368
export type EndpointObjectProperty =
5469
| string
5570
| boolean
5671
| { [key: string]: EndpointObjectProperty }
5772
| EndpointObjectProperty[];
5873

74+
/**
75+
* @public
76+
*/
5977
export interface EndpointV2 {
6078
url: URL;
6179
properties?: {
@@ -64,4 +82,7 @@ export interface EndpointV2 {
6482
headers?: Record<string, string[]>;
6583
}
6684

85+
/**
86+
* @public
87+
*/
6788
export type EndpointParameters = { [name: string]: undefined | string | boolean };

0 commit comments

Comments
 (0)