@aws-sdk/types 3.29.0 → 3.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist-cjs/abort.js +2 -0
  3. package/dist-cjs/client.js +2 -0
  4. package/dist-cjs/command.js +2 -0
  5. package/dist-cjs/credentials.js +2 -0
  6. package/dist-cjs/crypto.js +2 -0
  7. package/dist-cjs/eventStream.js +2 -0
  8. package/dist-cjs/http.js +2 -0
  9. package/dist-cjs/index.js +20 -0
  10. package/dist-cjs/logger.js +2 -0
  11. package/dist-cjs/middleware.js +2 -0
  12. package/dist-cjs/pagination.js +2 -0
  13. package/dist-cjs/response.js +2 -0
  14. package/dist-cjs/serde.js +2 -0
  15. package/dist-cjs/shapes.js +2 -0
  16. package/dist-cjs/signature.js +2 -0
  17. package/dist-cjs/transfer.js +2 -0
  18. package/dist-cjs/util.js +2 -0
  19. package/dist-cjs/waiter.js +2 -0
  20. package/dist-es/abort.js +1 -0
  21. package/dist-es/client.js +1 -0
  22. package/dist-es/command.js +1 -0
  23. package/dist-es/credentials.js +1 -0
  24. package/dist-es/crypto.js +1 -0
  25. package/dist-es/eventStream.js +1 -0
  26. package/dist-es/http.js +1 -0
  27. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  28. package/dist-es/logger.js +1 -0
  29. package/dist-es/middleware.js +1 -0
  30. package/dist-es/pagination.js +1 -0
  31. package/dist-es/response.js +1 -0
  32. package/dist-es/serde.js +1 -0
  33. package/dist-es/shapes.js +1 -0
  34. package/dist-es/signature.js +1 -0
  35. package/dist-es/transfer.js +1 -0
  36. package/dist-es/util.js +1 -0
  37. package/dist-es/waiter.js +1 -0
  38. package/{dist/types → dist-types}/abort.d.ts +0 -0
  39. package/{dist/types → dist-types}/client.d.ts +0 -0
  40. package/{dist/types → dist-types}/command.d.ts +0 -0
  41. package/{dist/types → dist-types}/credentials.d.ts +0 -0
  42. package/{dist/types → dist-types}/crypto.d.ts +0 -0
  43. package/{dist/types → dist-types}/eventStream.d.ts +0 -0
  44. package/{dist/types → dist-types}/http.d.ts +0 -0
  45. package/{src/index.ts → dist-types/index.d.ts} +0 -0
  46. package/{dist/types → dist-types}/logger.d.ts +0 -0
  47. package/{dist/types → dist-types}/middleware.d.ts +0 -0
  48. package/{dist/types → dist-types}/pagination.d.ts +0 -0
  49. package/{dist/types → dist-types}/response.d.ts +0 -0
  50. package/{dist/types → dist-types}/serde.d.ts +0 -0
  51. package/{dist/types → dist-types}/shapes.d.ts +0 -0
  52. package/{dist/types → dist-types}/signature.d.ts +0 -0
  53. package/{dist/types → dist-types}/transfer.d.ts +0 -0
  54. package/{dist/types → dist-types}/ts3.4/abort.d.ts +0 -0
  55. package/{dist/types → dist-types}/ts3.4/client.d.ts +0 -0
  56. package/{dist/types → dist-types}/ts3.4/command.d.ts +0 -0
  57. package/{dist/types → dist-types}/ts3.4/credentials.d.ts +0 -0
  58. package/{dist/types → dist-types}/ts3.4/crypto.d.ts +0 -0
  59. package/{dist/types → dist-types}/ts3.4/eventStream.d.ts +0 -0
  60. package/{dist/types → dist-types}/ts3.4/http.d.ts +0 -0
  61. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  62. package/{dist/types → dist-types}/ts3.4/logger.d.ts +0 -0
  63. package/{dist/types → dist-types}/ts3.4/middleware.d.ts +0 -0
  64. package/{dist/types → dist-types}/ts3.4/pagination.d.ts +0 -0
  65. package/{dist/types → dist-types}/ts3.4/response.d.ts +0 -0
  66. package/{dist/types → dist-types}/ts3.4/serde.d.ts +0 -0
  67. package/{dist/types → dist-types}/ts3.4/shapes.d.ts +0 -0
  68. package/{dist/types → dist-types}/ts3.4/signature.d.ts +0 -0
  69. package/{dist/types → dist-types}/ts3.4/transfer.d.ts +0 -0
  70. package/{dist/types → dist-types}/ts3.4/util.d.ts +0 -0
  71. package/{dist/types → dist-types}/ts3.4/waiter.d.ts +0 -0
  72. package/{dist/types → dist-types}/util.d.ts +0 -0
  73. package/{dist/types → dist-types}/waiter.d.ts +0 -0
  74. package/package.json +13 -9
  75. package/dist/cjs/abort.js +0 -3
  76. package/dist/cjs/client.js +0 -3
  77. package/dist/cjs/command.js +0 -3
  78. package/dist/cjs/credentials.js +0 -3
  79. package/dist/cjs/crypto.js +0 -3
  80. package/dist/cjs/eventStream.js +0 -3
  81. package/dist/cjs/http.js +0 -3
  82. package/dist/cjs/index.js +0 -21
  83. package/dist/cjs/logger.js +0 -3
  84. package/dist/cjs/middleware.js +0 -3
  85. package/dist/cjs/pagination.js +0 -3
  86. package/dist/cjs/response.js +0 -3
  87. package/dist/cjs/serde.js +0 -3
  88. package/dist/cjs/shapes.js +0 -3
  89. package/dist/cjs/signature.js +0 -3
  90. package/dist/cjs/transfer.js +0 -3
  91. package/dist/cjs/util.js +0 -3
  92. package/dist/cjs/waiter.js +0 -3
  93. package/dist/es/abort.js +0 -2
  94. package/dist/es/client.js +0 -2
  95. package/dist/es/command.js +0 -2
  96. package/dist/es/credentials.js +0 -2
  97. package/dist/es/crypto.js +0 -2
  98. package/dist/es/eventStream.js +0 -2
  99. package/dist/es/http.js +0 -2
  100. package/dist/es/index.js +0 -18
  101. package/dist/es/logger.js +0 -2
  102. package/dist/es/middleware.js +0 -2
  103. package/dist/es/pagination.js +0 -2
  104. package/dist/es/response.js +0 -2
  105. package/dist/es/serde.js +0 -2
  106. package/dist/es/shapes.js +0 -2
  107. package/dist/es/signature.js +0 -2
  108. package/dist/es/transfer.js +0 -2
  109. package/dist/es/util.js +0 -2
  110. package/dist/es/waiter.js +0 -2
  111. package/src/abort.ts +0 -46
  112. package/src/client.ts +0 -35
  113. package/src/command.ts +0 -18
  114. package/src/credentials.ts +0 -29
  115. package/src/crypto.ts +0 -50
  116. package/src/eventStream.ts +0 -119
  117. package/src/http.ts +0 -101
  118. package/src/logger.ts +0 -28
  119. package/src/middleware.ts +0 -400
  120. package/src/pagination.ts +0 -16
  121. package/src/response.ts +0 -40
  122. package/src/serde.ts +0 -54
  123. package/src/shapes.ts +0 -50
  124. package/src/signature.ts +0 -113
  125. package/src/transfer.ts +0 -18
  126. package/src/util.ts +0 -115
  127. package/src/waiter.ts +0 -38
  128. package/tsconfig.cjs.json +0 -10
  129. package/tsconfig.es.json +0 -11
package/src/util.ts DELETED
@@ -1,115 +0,0 @@
1
- import { Endpoint } from "./http";
2
- import {
3
- FinalizeHandler,
4
- FinalizeHandlerArguments,
5
- FinalizeHandlerOutput,
6
- HandlerExecutionContext,
7
- } from "./middleware";
8
- import { MetadataBearer } from "./response";
9
-
10
- /**
11
- * A function that, given a TypedArray of bytes, can produce a string
12
- * representation thereof.
13
- *
14
- * @example An encoder function that converts bytes to hexadecimal
15
- * representation would return `'deadbeef'` when given `new
16
- * Uint8Array([0xde, 0xad, 0xbe, 0xef])`.
17
- */
18
- export interface Encoder {
19
- (input: Uint8Array): string;
20
- }
21
-
22
- /**
23
- * A function that, given a string, can derive the bytes represented by that
24
- * string.
25
- *
26
- * @example A decoder function that converts bytes to hexadecimal
27
- * representation would return `new Uint8Array([0xde, 0xad, 0xbe, 0xef])` when
28
- * given the string `'deadbeef'`.
29
- */
30
- export interface Decoder {
31
- (input: string): Uint8Array;
32
- }
33
-
34
- /**
35
- * A function that, when invoked, returns a promise that will be fulfilled with
36
- * a value of type T.
37
- *
38
- * @example A function that reads credentials from shared SDK configuration
39
- * files, assuming roles and collecting MFA tokens as necessary.
40
- */
41
- export interface Provider<T> {
42
- (): Promise<T>;
43
- }
44
-
45
- /**
46
- * A function that, given a request body, determines the
47
- * length of the body. This is used to determine the Content-Length
48
- * that should be sent with a request.
49
- *
50
- * @example A function that reads a file stream and calculates
51
- * the size of the file.
52
- */
53
- export interface BodyLengthCalculator {
54
- (body: any): number | undefined;
55
- }
56
-
57
- /**
58
- * Interface that specifies the retry behavior
59
- */
60
- export interface RetryStrategy {
61
- /**
62
- * The retry mode describing how the retry strategy control the traffic flow.
63
- */
64
- mode?: string;
65
- /**
66
- * the retry behavior the will invoke the next handler and handle the retry accordingly.
67
- * This function should also update the $metadata from the response accordingly.
68
- * @see {@link ResponseMetadata}
69
- */
70
- retry: <Input extends object, Output extends MetadataBearer>(
71
- next: FinalizeHandler<Input, Output>,
72
- args: FinalizeHandlerArguments<Input>
73
- ) => Promise<FinalizeHandlerOutput<Output>>;
74
- }
75
-
76
- /**
77
- * Parses a URL in string form into an Endpoint object.
78
- */
79
- export interface UrlParser {
80
- (url: string): Endpoint;
81
- }
82
-
83
- /**
84
- * Object containing regionalization information of
85
- * AWS services.
86
- */
87
- export interface RegionInfo {
88
- hostname: string;
89
- partition: string;
90
- path?: string;
91
- signingService?: string;
92
- signingRegion?: string;
93
- }
94
-
95
- /**
96
- * Function returns designated service's regionalization
97
- * information from given region. Each service client
98
- * comes with its regionalization provider. it serves
99
- * to provide the default values of related configurations
100
- */
101
- export interface RegionInfoProvider {
102
- (region: string, options?: any): Promise<RegionInfo | undefined>;
103
- }
104
-
105
- /**
106
- * A tuple that represents an API name and optional version
107
- * of a library built using the AWS SDK.
108
- */
109
- export type UserAgentPair = [name: string, version?: string];
110
-
111
- /**
112
- * User agent data that to be put into the request's user
113
- * agent.
114
- */
115
- export type UserAgent = UserAgentPair[];
package/src/waiter.ts DELETED
@@ -1,38 +0,0 @@
1
- import { AbortController } from "./abort";
2
-
3
- export interface WaiterConfiguration<Client> {
4
- /**
5
- * Required service client
6
- */
7
- client: Client;
8
-
9
- /**
10
- * The amount of time in seconds a user is willing to wait for a waiter to complete.
11
- */
12
- maxWaitTime: number;
13
-
14
- /**
15
- * @deprecated Use abortSignal
16
- * Abort controller. Used for ending the waiter early.
17
- */
18
- abortController?: AbortController;
19
-
20
- /**
21
- * Abort Signal. Used for ending the waiter early.
22
- */
23
- abortSignal?: AbortController["signal"];
24
-
25
- /**
26
- * The minimum amount of time to delay between retries in seconds. This is the
27
- * floor of the exponential backoff. This value defaults to service default
28
- * if not specified. This value MUST be less than or equal to maxDelay and greater than 0.
29
- */
30
- minDelay?: number;
31
-
32
- /**
33
- * The maximum amount of time to delay between retries in seconds. This is the
34
- * ceiling of the exponential backoff. This value defaults to service default
35
- * if not specified. If specified, this value MUST be greater than or equal to 1.
36
- */
37
- maxDelay?: number;
38
- }
package/tsconfig.cjs.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "declarationDir": "./dist/types",
4
- "rootDir": "./src",
5
- "outDir": "./dist/cjs",
6
- "baseUrl": "."
7
- },
8
- "extends": "../../tsconfig.cjs.json",
9
- "include": ["src/"]
10
- }
package/tsconfig.es.json DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
4
- "declarationDir": "./dist/types",
5
- "rootDir": "./src",
6
- "outDir": "./dist/es",
7
- "baseUrl": "."
8
- },
9
- "extends": "../../tsconfig.es.json",
10
- "include": ["src/"]
11
- }