@aws-amplify/core 6.0.1-console-preview.67f944e.0 → 6.0.1-console-preview.0bbe168.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 (239) hide show
  1. package/lib/AwsClients/Pinpoint/getInAppMessages.d.ts +1 -1
  2. package/lib/AwsClients/Pinpoint/putEvents.d.ts +1 -1
  3. package/lib/AwsClients/Pinpoint/updateEndpoint.d.ts +1 -1
  4. package/lib/BackgroundProcessManager/BackgroundManagerNotOpenError.d.ts +3 -0
  5. package/lib/BackgroundProcessManager/BackgroundManagerNotOpenError.js +28 -0
  6. package/{lib-esm/Util → lib/BackgroundProcessManager}/BackgroundProcessManager.d.ts +1 -23
  7. package/lib/{Util → BackgroundProcessManager}/BackgroundProcessManager.js +13 -56
  8. package/lib/BackgroundProcessManager/index.d.ts +1 -0
  9. package/lib/BackgroundProcessManager/index.js +7 -0
  10. package/lib/BackgroundProcessManager/types.d.ts +41 -0
  11. package/lib/BackgroundProcessManager/types.js +23 -0
  12. package/lib/Hub/index.js +2 -2
  13. package/lib/Logger/ConsoleLogger.js +2 -2
  14. package/lib/{Util → Mutex}/Mutex.d.ts +2 -15
  15. package/lib/{Util → Mutex}/Mutex.js +2 -1
  16. package/lib/Mutex/index.d.ts +1 -0
  17. package/lib/Mutex/index.js +7 -0
  18. package/lib/Mutex/types.d.ts +13 -0
  19. package/lib/Mutex/types.js +4 -0
  20. package/lib/Platform/version.d.ts +1 -1
  21. package/lib/Platform/version.js +1 -1
  22. package/lib/Reachability/Reachability.d.ts +6 -0
  23. package/lib/Reachability/Reachability.js +29 -0
  24. package/lib/Reachability/Reachability.native.d.ts +6 -0
  25. package/lib/{Util → Reachability}/Reachability.native.js +8 -10
  26. package/lib/Reachability/index.d.ts +1 -0
  27. package/lib/Reachability/index.js +7 -0
  28. package/lib/Reachability/types.d.ts +3 -0
  29. package/lib/Reachability/types.js +4 -0
  30. package/lib/ServiceWorker/ServiceWorker.js +2 -2
  31. package/lib/{Signer.js → Signer/Signer.js} +3 -3
  32. package/lib/Signer/index.d.ts +1 -0
  33. package/lib/Signer/index.js +7 -0
  34. package/lib/clients/middleware/retry/jitteredBackoff.js +2 -2
  35. package/lib/{Util/Constants.d.ts → constants.d.ts} +0 -2
  36. package/lib/{Util/Constants.js → constants.js} +1 -6
  37. package/lib/libraryUtils.d.ts +7 -6
  38. package/lib/libraryUtils.js +37 -49
  39. package/lib/providers/pinpoint/apis/updateEndpoint.d.ts +1 -1
  40. package/lib/providers/pinpoint/apis/updateEndpoint.js +7 -5
  41. package/lib/providers/pinpoint/types/pinpoint.d.ts +1 -0
  42. package/lib/singleton/Auth/utils/index.js +2 -1
  43. package/lib/tsconfig.tsbuildinfo +1 -1
  44. package/lib/types/core.d.ts +4 -1
  45. package/lib/utils/convert/base64/base64Decoder.d.ts +2 -0
  46. package/lib/utils/convert/base64/base64Decoder.js +11 -0
  47. package/lib/utils/convert/base64/base64Encoder.d.ts +2 -0
  48. package/lib/utils/convert/base64/base64Encoder.js +18 -0
  49. package/lib/utils/convert/base64/bytesToString.d.ts +1 -0
  50. package/lib/utils/convert/base64/bytesToString.js +9 -0
  51. package/lib/utils/convert/index.d.ts +2 -0
  52. package/lib/utils/convert/index.js +9 -0
  53. package/lib/utils/convert/types.d.ts +9 -0
  54. package/lib/utils/convert/types.js +4 -0
  55. package/lib/utils/generateRandomString.d.ts +1 -0
  56. package/lib/utils/generateRandomString.js +14 -0
  57. package/lib/utils/globalHelpers/index.d.ts +3 -0
  58. package/lib/utils/globalHelpers/index.js +50 -0
  59. package/lib/utils/globalHelpers/index.native.d.ts +5 -0
  60. package/lib/utils/globalHelpers/index.native.js +27 -0
  61. package/lib/utils/index.d.ts +6 -0
  62. package/lib/utils/index.js +21 -0
  63. package/lib/utils/isBrowser.d.ts +1 -0
  64. package/lib/utils/isBrowser.js +9 -0
  65. package/lib/utils/isWebWorker.d.ts +1 -0
  66. package/lib/utils/isWebWorker.js +14 -0
  67. package/lib/utils/retry/NonRetryableError.d.ts +4 -0
  68. package/lib/utils/retry/NonRetryableError.js +30 -0
  69. package/lib/utils/retry/constants.d.ts +1 -0
  70. package/lib/utils/retry/constants.js +6 -0
  71. package/lib/utils/retry/index.d.ts +5 -0
  72. package/lib/utils/retry/index.js +15 -0
  73. package/lib/utils/retry/isNonRetryableError.d.ts +2 -0
  74. package/lib/utils/retry/isNonRetryableError.js +10 -0
  75. package/lib/utils/retry/jitteredBackoff.d.ts +6 -0
  76. package/lib/utils/retry/jitteredBackoff.js +20 -0
  77. package/lib/utils/retry/jitteredExponentialRetry.d.ts +5 -0
  78. package/lib/utils/retry/jitteredExponentialRetry.js +17 -0
  79. package/lib/utils/retry/retry.d.ts +6 -0
  80. package/lib/{Util/Retry.js → utils/retry/retry.js} +6 -57
  81. package/lib/utils/urlSafeDecode.d.ts +1 -0
  82. package/lib/{Util/StringUtils.js → utils/urlSafeDecode.js} +2 -9
  83. package/lib/utils/urlSafeEncode.d.ts +1 -0
  84. package/lib/utils/urlSafeEncode.js +12 -0
  85. package/lib-esm/AwsClients/Pinpoint/getInAppMessages.d.ts +1 -1
  86. package/lib-esm/AwsClients/Pinpoint/putEvents.d.ts +1 -1
  87. package/lib-esm/AwsClients/Pinpoint/updateEndpoint.d.ts +1 -1
  88. package/lib-esm/BackgroundProcessManager/BackgroundManagerNotOpenError.d.ts +3 -0
  89. package/lib-esm/BackgroundProcessManager/BackgroundManagerNotOpenError.js +25 -0
  90. package/{lib/Util → lib-esm/BackgroundProcessManager}/BackgroundProcessManager.d.ts +1 -23
  91. package/lib-esm/{Util → BackgroundProcessManager}/BackgroundProcessManager.js +4 -47
  92. package/lib-esm/BackgroundProcessManager/index.d.ts +1 -0
  93. package/lib-esm/BackgroundProcessManager/index.js +3 -0
  94. package/lib-esm/BackgroundProcessManager/types.d.ts +41 -0
  95. package/lib-esm/BackgroundProcessManager/types.js +20 -0
  96. package/lib-esm/Hub/index.js +1 -1
  97. package/lib-esm/Logger/ConsoleLogger.js +1 -1
  98. package/lib-esm/{Util → Mutex}/Mutex.d.ts +2 -15
  99. package/lib-esm/{Util → Mutex}/Mutex.js +1 -1
  100. package/lib-esm/Mutex/index.d.ts +1 -0
  101. package/lib-esm/Mutex/index.js +3 -0
  102. package/lib-esm/Mutex/types.d.ts +13 -0
  103. package/lib-esm/Mutex/types.js +3 -0
  104. package/lib-esm/Platform/version.d.ts +1 -1
  105. package/lib-esm/Platform/version.js +1 -1
  106. package/lib-esm/Reachability/Reachability.d.ts +6 -0
  107. package/lib-esm/Reachability/Reachability.js +26 -0
  108. package/lib-esm/Reachability/Reachability.native.d.ts +6 -0
  109. package/lib-esm/{Util → Reachability}/Reachability.native.js +6 -6
  110. package/lib-esm/Reachability/index.d.ts +1 -0
  111. package/lib-esm/Reachability/index.js +3 -0
  112. package/lib-esm/Reachability/types.d.ts +3 -0
  113. package/lib-esm/Reachability/types.js +3 -0
  114. package/lib-esm/ServiceWorker/ServiceWorker.js +1 -1
  115. package/lib-esm/{Signer.js → Signer/Signer.js} +2 -2
  116. package/lib-esm/Signer/index.d.ts +1 -0
  117. package/lib-esm/Signer/index.js +3 -0
  118. package/lib-esm/clients/middleware/retry/jitteredBackoff.js +1 -1
  119. package/lib-esm/{Util/Constants.d.ts → constants.d.ts} +0 -2
  120. package/lib-esm/{Util/Constants.js → constants.js} +0 -5
  121. package/lib-esm/libraryUtils.d.ts +7 -6
  122. package/lib-esm/libraryUtils.js +8 -8
  123. package/lib-esm/providers/pinpoint/apis/updateEndpoint.d.ts +1 -1
  124. package/lib-esm/providers/pinpoint/apis/updateEndpoint.js +7 -5
  125. package/lib-esm/providers/pinpoint/types/pinpoint.d.ts +1 -0
  126. package/lib-esm/singleton/Auth/utils/index.js +2 -1
  127. package/lib-esm/tsconfig.tsbuildinfo +1 -1
  128. package/lib-esm/types/core.d.ts +4 -1
  129. package/lib-esm/utils/convert/base64/base64Decoder.d.ts +2 -0
  130. package/lib-esm/utils/convert/base64/base64Decoder.js +8 -0
  131. package/lib-esm/utils/convert/base64/base64Encoder.d.ts +2 -0
  132. package/lib-esm/utils/convert/base64/base64Encoder.js +15 -0
  133. package/lib-esm/utils/convert/base64/bytesToString.d.ts +1 -0
  134. package/lib-esm/utils/convert/base64/bytesToString.js +5 -0
  135. package/lib-esm/utils/convert/index.d.ts +2 -0
  136. package/lib-esm/utils/convert/index.js +4 -0
  137. package/lib-esm/utils/convert/types.d.ts +9 -0
  138. package/lib-esm/utils/convert/types.js +3 -0
  139. package/lib-esm/utils/generateRandomString.d.ts +1 -0
  140. package/lib-esm/utils/generateRandomString.js +10 -0
  141. package/lib-esm/utils/globalHelpers/index.d.ts +3 -0
  142. package/lib-esm/utils/globalHelpers/index.js +44 -0
  143. package/lib-esm/utils/globalHelpers/index.native.d.ts +5 -0
  144. package/lib-esm/utils/globalHelpers/index.native.js +21 -0
  145. package/lib-esm/utils/index.d.ts +6 -0
  146. package/lib-esm/utils/index.js +8 -0
  147. package/lib-esm/utils/isBrowser.d.ts +1 -0
  148. package/lib-esm/utils/isBrowser.js +5 -0
  149. package/lib-esm/utils/isWebWorker.d.ts +1 -0
  150. package/lib-esm/utils/isWebWorker.js +10 -0
  151. package/lib-esm/utils/retry/NonRetryableError.d.ts +4 -0
  152. package/lib-esm/utils/retry/NonRetryableError.js +27 -0
  153. package/lib-esm/utils/retry/constants.d.ts +1 -0
  154. package/lib-esm/utils/retry/constants.js +3 -0
  155. package/lib-esm/utils/retry/index.d.ts +5 -0
  156. package/lib-esm/utils/retry/index.js +7 -0
  157. package/lib-esm/utils/retry/isNonRetryableError.d.ts +2 -0
  158. package/lib-esm/utils/retry/isNonRetryableError.js +6 -0
  159. package/lib-esm/utils/retry/jitteredBackoff.d.ts +6 -0
  160. package/lib-esm/utils/retry/jitteredBackoff.js +16 -0
  161. package/lib-esm/utils/retry/jitteredExponentialRetry.d.ts +5 -0
  162. package/lib-esm/utils/retry/jitteredExponentialRetry.js +13 -0
  163. package/lib-esm/utils/retry/retry.d.ts +6 -0
  164. package/lib-esm/{Util/Retry.js → utils/retry/retry.js} +4 -52
  165. package/lib-esm/{Util/StringUtils.d.ts → utils/urlSafeDecode.d.ts} +0 -1
  166. package/lib-esm/{Util/StringUtils.js → utils/urlSafeDecode.js} +0 -6
  167. package/{lib/Util/StringUtils.d.ts → lib-esm/utils/urlSafeEncode.d.ts} +0 -1
  168. package/lib-esm/utils/urlSafeEncode.js +8 -0
  169. package/package.json +7 -4
  170. package/src/BackgroundProcessManager/BackgroundManagerNotOpenError.ts +8 -0
  171. package/src/{Util → BackgroundProcessManager}/BackgroundProcessManager.ts +4 -58
  172. package/src/BackgroundProcessManager/index.ts +4 -0
  173. package/src/BackgroundProcessManager/types.ts +49 -0
  174. package/src/Hub/index.ts +1 -1
  175. package/src/Logger/ConsoleLogger.ts +1 -1
  176. package/src/{Util → Mutex}/Mutex.ts +2 -20
  177. package/src/Mutex/index.ts +4 -0
  178. package/src/Mutex/types.ts +20 -0
  179. package/src/Platform/version.ts +1 -1
  180. package/src/{Util → Reachability}/Reachability.native.ts +4 -11
  181. package/src/Reachability/Reachability.ts +35 -0
  182. package/src/Reachability/index.ts +4 -0
  183. package/src/Reachability/types.ts +6 -0
  184. package/src/ServiceWorker/ServiceWorker.ts +1 -1
  185. package/src/{Signer.ts → Signer/Signer.ts} +2 -2
  186. package/src/Signer/index.ts +4 -0
  187. package/src/clients/middleware/retry/jitteredBackoff.ts +1 -1
  188. package/src/{Util/Constants.ts → constants.ts} +0 -5
  189. package/src/libraryUtils.ts +16 -35
  190. package/src/providers/pinpoint/apis/updateEndpoint.ts +19 -3
  191. package/src/providers/pinpoint/types/pinpoint.ts +1 -0
  192. package/src/singleton/Auth/utils/index.ts +2 -1
  193. package/src/types/core.ts +4 -1
  194. package/src/utils/convert/base64/base64Decoder.ts +11 -0
  195. package/src/utils/convert/base64/base64Encoder.ts +18 -0
  196. package/src/utils/convert/base64/bytesToString.ts +6 -0
  197. package/src/utils/convert/index.ts +5 -0
  198. package/src/utils/convert/types.ts +17 -0
  199. package/src/utils/generateRandomString.ts +16 -0
  200. package/src/utils/globalHelpers/index.native.ts +28 -0
  201. package/src/utils/globalHelpers/index.ts +54 -0
  202. package/src/utils/index.ts +15 -0
  203. package/src/utils/isBrowser.ts +5 -0
  204. package/src/utils/isWebWorker.ts +13 -0
  205. package/src/utils/retry/NonRetryableError.ts +9 -0
  206. package/src/utils/retry/constants.ts +4 -0
  207. package/src/utils/retry/index.ts +8 -0
  208. package/src/utils/retry/isNonRetryableError.ts +9 -0
  209. package/src/utils/retry/jitteredBackoff.ts +21 -0
  210. package/src/utils/retry/jitteredExponentialRetry.ts +18 -0
  211. package/src/{Util/Retry.ts → utils/retry/retry.ts} +4 -44
  212. package/src/{Util/StringUtils.ts → utils/urlSafeDecode.ts} +0 -6
  213. package/src/utils/urlSafeEncode.ts +9 -0
  214. package/lib/Util/JS.d.ts +0 -29
  215. package/lib/Util/JS.js +0 -214
  216. package/lib/Util/Reachability.d.ts +0 -13
  217. package/lib/Util/Reachability.js +0 -69
  218. package/lib/Util/Reachability.native.d.ts +0 -12
  219. package/lib/Util/Retry.d.ts +0 -21
  220. package/lib/Util/index.d.ts +0 -7
  221. package/lib/Util/index.js +0 -31
  222. package/lib-esm/Util/JS.d.ts +0 -29
  223. package/lib-esm/Util/JS.js +0 -199
  224. package/lib-esm/Util/Reachability.d.ts +0 -13
  225. package/lib-esm/Util/Reachability.js +0 -64
  226. package/lib-esm/Util/Reachability.native.d.ts +0 -12
  227. package/lib-esm/Util/Retry.d.ts +0 -21
  228. package/lib-esm/Util/index.d.ts +0 -7
  229. package/lib-esm/Util/index.js +0 -9
  230. package/src/Util/JS.ts +0 -255
  231. package/src/Util/Reachability.ts +0 -58
  232. package/src/Util/index.ts +0 -23
  233. /package/lib/{Util → Signer}/DateUtils.d.ts +0 -0
  234. /package/lib/{Util → Signer}/DateUtils.js +0 -0
  235. /package/lib/{Signer.d.ts → Signer/Signer.d.ts} +0 -0
  236. /package/lib-esm/{Util → Signer}/DateUtils.d.ts +0 -0
  237. /package/lib-esm/{Util → Signer}/DateUtils.js +0 -0
  238. /package/lib-esm/{Signer.d.ts → Signer/Signer.d.ts} +0 -0
  239. /package/src/{Util → Signer}/DateUtils.ts +0 -0
@@ -13,11 +13,11 @@ export declare const getInAppMessages: (config: {
13
13
  computeDelay?: ((attempt: number) => number) | undefined;
14
14
  userAgentValue?: string | undefined;
15
15
  } & {
16
- uriEscapePath?: boolean | undefined;
17
16
  credentials: import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity | (() => Promise<import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity>);
18
17
  region: string;
19
18
  abortSignal?: AbortSignal | undefined;
20
19
  cache?: RequestCache | undefined;
21
20
  maxAttempts?: number | undefined;
22
21
  userAgentHeader?: string | undefined;
22
+ uriEscapePath?: boolean | undefined;
23
23
  }, input: GetInAppMessagesInput) => Promise<GetInAppMessagesOutput>;
@@ -13,11 +13,11 @@ export declare const putEvents: (config: {
13
13
  computeDelay?: ((attempt: number) => number) | undefined;
14
14
  userAgentValue?: string | undefined;
15
15
  } & {
16
- uriEscapePath?: boolean | undefined;
17
16
  credentials: import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity | (() => Promise<import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity>);
18
17
  region: string;
19
18
  abortSignal?: AbortSignal | undefined;
20
19
  cache?: RequestCache | undefined;
21
20
  maxAttempts?: number | undefined;
22
21
  userAgentHeader?: string | undefined;
22
+ uriEscapePath?: boolean | undefined;
23
23
  }, input: PutEventsInput) => Promise<PutEventsOutput>;
@@ -13,11 +13,11 @@ export declare const updateEndpoint: (config: {
13
13
  computeDelay?: ((attempt: number) => number) | undefined;
14
14
  userAgentValue?: string | undefined;
15
15
  } & {
16
- uriEscapePath?: boolean | undefined;
17
16
  credentials: import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity | (() => Promise<import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity>);
18
17
  region: string;
19
18
  abortSignal?: AbortSignal | undefined;
20
19
  cache?: RequestCache | undefined;
21
20
  maxAttempts?: number | undefined;
22
21
  userAgentHeader?: string | undefined;
22
+ uriEscapePath?: boolean | undefined;
23
23
  }, input: UpdateEndpointInput) => Promise<UpdateEndpointOutput>;
@@ -0,0 +1,3 @@
1
+ export declare class BackgroundManagerNotOpenError extends Error {
2
+ constructor(message: string);
3
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ var __extends = (this && this.__extends) || (function () {
5
+ var extendStatics = function (d, b) {
6
+ extendStatics = Object.setPrototypeOf ||
7
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
8
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
9
+ return extendStatics(d, b);
10
+ };
11
+ return function (d, b) {
12
+ if (typeof b !== "function" && b !== null)
13
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
14
+ extendStatics(d, b);
15
+ function __() { this.constructor = d; }
16
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
17
+ };
18
+ })();
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.BackgroundManagerNotOpenError = void 0;
21
+ var BackgroundManagerNotOpenError = /** @class */ (function (_super) {
22
+ __extends(BackgroundManagerNotOpenError, _super);
23
+ function BackgroundManagerNotOpenError(message) {
24
+ return _super.call(this, "BackgroundManagerNotOpenError: ".concat(message)) || this;
25
+ }
26
+ return BackgroundManagerNotOpenError;
27
+ }(Error));
28
+ exports.BackgroundManagerNotOpenError = BackgroundManagerNotOpenError;
@@ -1,3 +1,4 @@
1
+ import { BackgroundProcessManagerState } from './types';
1
2
  /**
2
3
  * @private For internal Amplify use.
3
4
  *
@@ -179,26 +180,3 @@ export declare class BackgroundProcessManager {
179
180
  */
180
181
  open(): Promise<void>;
181
182
  }
182
- /**
183
- *
184
- */
185
- export declare class BackgroundManagerNotOpenError extends Error {
186
- constructor(message: string);
187
- }
188
- /**
189
- * All possible states a `BackgroundProcessManager` instance can be in.
190
- */
191
- export declare enum BackgroundProcessManagerState {
192
- /**
193
- * Accepting new jobs.
194
- */
195
- Open = "Open",
196
- /**
197
- * Not accepting new jobs. Waiting for submitted jobs to complete.
198
- */
199
- Closing = "Closing",
200
- /**
201
- * Not accepting new jobs. All submitted jobs are complete.
202
- */
203
- Closed = "Closed"
204
- }
@@ -1,19 +1,6 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
17
4
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
5
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
6
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -62,9 +49,9 @@ var __values = (this && this.__values) || function(o) {
62
49
  throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
63
50
  };
64
51
  Object.defineProperty(exports, "__esModule", { value: true });
65
- exports.BackgroundProcessManagerState = exports.BackgroundManagerNotOpenError = exports.BackgroundProcessManager = void 0;
66
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
67
- // SPDX-License-Identifier: Apache-2.0
52
+ exports.BackgroundProcessManager = void 0;
53
+ var BackgroundManagerNotOpenError_1 = require("./BackgroundManagerNotOpenError");
54
+ var types_1 = require("./types");
68
55
  /**
69
56
  * @private For internal Amplify use.
70
57
  *
@@ -87,7 +74,7 @@ var BackgroundProcessManager = /** @class */ (function () {
87
74
  * waiting for work to complete ("Closing"), or fully done with all
88
75
  * submitted work and *not* accepting new jobs ("Closed").
89
76
  */
90
- this._state = BackgroundProcessManagerState.Open;
77
+ this._state = types_1.BackgroundProcessManagerState.Open;
91
78
  /**
92
79
  * The list of outstanding jobs we'll need to wait for upon `close()`
93
80
  */
@@ -288,7 +275,7 @@ var BackgroundProcessManager = /** @class */ (function () {
288
275
  * Whether the manager is accepting new jobs.
289
276
  */
290
277
  get: function () {
291
- return this._state === BackgroundProcessManagerState.Open;
278
+ return this._state === types_1.BackgroundProcessManagerState.Open;
292
279
  },
293
280
  enumerable: false,
294
281
  configurable: true
@@ -299,7 +286,7 @@ var BackgroundProcessManager = /** @class */ (function () {
299
286
  * submitted work to complete.
300
287
  */
301
288
  get: function () {
302
- return this._state === BackgroundProcessManagerState.Closing;
289
+ return this._state === types_1.BackgroundProcessManagerState.Closing;
303
290
  },
304
291
  enumerable: false,
305
292
  configurable: true
@@ -310,14 +297,14 @@ var BackgroundProcessManager = /** @class */ (function () {
310
297
  * work to complete.
311
298
  */
312
299
  get: function () {
313
- return this._state === BackgroundProcessManagerState.Closed;
300
+ return this._state === types_1.BackgroundProcessManagerState.Closed;
314
301
  },
315
302
  enumerable: false,
316
303
  configurable: true
317
304
  });
318
305
  BackgroundProcessManager.prototype.closedFailure = function (description) {
319
306
  if (!this.isOpen) {
320
- return Promise.reject(new BackgroundManagerNotOpenError([
307
+ return Promise.reject(new BackgroundManagerNotOpenError_1.BackgroundManagerNotOpenError([
321
308
  "The manager is ".concat(this.state, "."),
322
309
  "You tried to add \"".concat(description, "\"."),
323
310
  "Pending jobs: [\n".concat(this.pending
@@ -351,7 +338,7 @@ var BackgroundProcessManager = /** @class */ (function () {
351
338
  switch (_d.label) {
352
339
  case 0:
353
340
  if (!this.isOpen) return [3 /*break*/, 2];
354
- this._state = BackgroundProcessManagerState.Closing;
341
+ this._state = types_1.BackgroundProcessManagerState.Closing;
355
342
  try {
356
343
  for (_a = __values(Array.from(this.jobs)), _b = _a.next(); !_b.done; _b = _a.next()) {
357
344
  job = _b.value;
@@ -379,7 +366,7 @@ var BackgroundProcessManager = /** @class */ (function () {
379
366
  return [4 /*yield*/, this._closingPromise];
380
367
  case 1:
381
368
  _d.sent();
382
- this._state = BackgroundProcessManagerState.Closed;
369
+ this._state = types_1.BackgroundProcessManagerState.Closed;
383
370
  _d.label = 2;
384
371
  case 2: return [2 /*return*/, this._closingPromise];
385
372
  }
@@ -408,7 +395,7 @@ var BackgroundProcessManager = /** @class */ (function () {
408
395
  _a.sent();
409
396
  _a.label = 2;
410
397
  case 2:
411
- this._state = BackgroundProcessManagerState.Open;
398
+ this._state = types_1.BackgroundProcessManagerState.Open;
412
399
  return [2 /*return*/];
413
400
  }
414
401
  });
@@ -417,33 +404,3 @@ var BackgroundProcessManager = /** @class */ (function () {
417
404
  return BackgroundProcessManager;
418
405
  }());
419
406
  exports.BackgroundProcessManager = BackgroundProcessManager;
420
- /**
421
- *
422
- */
423
- var BackgroundManagerNotOpenError = /** @class */ (function (_super) {
424
- __extends(BackgroundManagerNotOpenError, _super);
425
- function BackgroundManagerNotOpenError(message) {
426
- return _super.call(this, "BackgroundManagerNotOpenError: ".concat(message)) || this;
427
- }
428
- return BackgroundManagerNotOpenError;
429
- }(Error));
430
- exports.BackgroundManagerNotOpenError = BackgroundManagerNotOpenError;
431
- /**
432
- * All possible states a `BackgroundProcessManager` instance can be in.
433
- */
434
- var BackgroundProcessManagerState;
435
- (function (BackgroundProcessManagerState) {
436
- /**
437
- * Accepting new jobs.
438
- */
439
- BackgroundProcessManagerState["Open"] = "Open";
440
- /**
441
- * Not accepting new jobs. Waiting for submitted jobs to complete.
442
- */
443
- BackgroundProcessManagerState["Closing"] = "Closing";
444
- /**
445
- * Not accepting new jobs. All submitted jobs are complete.
446
- */
447
- BackgroundProcessManagerState["Closed"] = "Closed";
448
- })(BackgroundProcessManagerState = exports.BackgroundProcessManagerState || (exports.BackgroundProcessManagerState = {}));
449
- var process = new BackgroundProcessManager();
@@ -0,0 +1 @@
1
+ export { BackgroundProcessManager } from './BackgroundProcessManager';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.BackgroundProcessManager = void 0;
6
+ var BackgroundProcessManager_1 = require("./BackgroundProcessManager");
7
+ Object.defineProperty(exports, "BackgroundProcessManager", { enumerable: true, get: function () { return BackgroundProcessManager_1.BackgroundProcessManager; } });
@@ -0,0 +1,41 @@
1
+ /**
2
+ * All possible states a `BackgroundProcessManager` instance can be in.
3
+ */
4
+ export declare enum BackgroundProcessManagerState {
5
+ /**
6
+ * Accepting new jobs.
7
+ */
8
+ Open = "Open",
9
+ /**
10
+ * Not accepting new jobs. Waiting for submitted jobs to complete.
11
+ */
12
+ Closing = "Closing",
13
+ /**
14
+ * Not accepting new jobs. All submitted jobs are complete.
15
+ */
16
+ Closed = "Closed"
17
+ }
18
+ /**
19
+ * Completely internal to `BackgroundProcessManager`, and describes the structure of
20
+ * an entry in the jobs registry.
21
+ */
22
+ export type JobEntry = {
23
+ /**
24
+ * The underlying promise provided by the job function to wait for.
25
+ */
26
+ promise: Promise<any>;
27
+ /**
28
+ * Request the termination of the job.
29
+ */
30
+ terminate: () => void;
31
+ /**
32
+ * An object provided by the caller that can be used to identify the description
33
+ * of the job, which can otherwise be unclear from the `promise` and
34
+ * `terminate` function. The `description` can be a string. (May be extended
35
+ * later to also support object refs.)
36
+ *
37
+ * Useful for troubleshooting why a manager is waiting for long periods of time
38
+ * on `close()`.
39
+ */
40
+ description?: string;
41
+ };
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.BackgroundProcessManagerState = void 0;
6
+ /**
7
+ * All possible states a `BackgroundProcessManager` instance can be in.
8
+ */
9
+ var BackgroundProcessManagerState;
10
+ (function (BackgroundProcessManagerState) {
11
+ /**
12
+ * Accepting new jobs.
13
+ */
14
+ BackgroundProcessManagerState["Open"] = "Open";
15
+ /**
16
+ * Not accepting new jobs. Waiting for submitted jobs to complete.
17
+ */
18
+ BackgroundProcessManagerState["Closing"] = "Closing";
19
+ /**
20
+ * Not accepting new jobs. All submitted jobs are complete.
21
+ */
22
+ BackgroundProcessManagerState["Closed"] = "Closed";
23
+ })(BackgroundProcessManagerState = exports.BackgroundProcessManagerState || (exports.BackgroundProcessManagerState = {}));
package/lib/Hub/index.js CHANGED
@@ -40,7 +40,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
40
40
  Object.defineProperty(exports, "__esModule", { value: true });
41
41
  exports.Hub = exports.HubClass = exports.AMPLIFY_SYMBOL = void 0;
42
42
  var Logger_1 = require("../Logger");
43
- var Constants_1 = require("../Util/Constants");
43
+ var constants_1 = require("../constants");
44
44
  var errors_1 = require("../errors");
45
45
  exports.AMPLIFY_SYMBOL = (typeof Symbol !== 'undefined' && typeof Symbol.for === 'function'
46
46
  ? Symbol.for('amplify_default')
@@ -106,7 +106,7 @@ var HubClass = /** @class */ (function () {
106
106
  var cb;
107
107
  if (typeof callback !== 'function') {
108
108
  throw new errors_1.AmplifyError({
109
- name: Constants_1.NO_HUBCALLBACK_PROVIDED_EXCEPTION,
109
+ name: constants_1.NO_HUBCALLBACK_PROVIDED_EXCEPTION,
110
110
  message: 'No callback supplied to Hub',
111
111
  });
112
112
  }
@@ -39,7 +39,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
39
39
  };
40
40
  Object.defineProperty(exports, "__esModule", { value: true });
41
41
  exports.ConsoleLogger = exports.LOG_TYPE = void 0;
42
- var Constants_1 = require("../Util/Constants");
42
+ var constants_1 = require("../constants");
43
43
  var LOG_LEVELS = {
44
44
  VERBOSE: 1,
45
45
  DEBUG: 2,
@@ -234,7 +234,7 @@ var ConsoleLogger = exports.ConsoleLogger = /** @class */ (function () {
234
234
  this._log.apply(this, __spreadArray([LOG_TYPE.VERBOSE], __read(msg), false));
235
235
  };
236
236
  ConsoleLogger.prototype.addPluggable = function (pluggable) {
237
- if (pluggable && pluggable.getCategoryName() === Constants_1.AWS_CLOUDWATCH_CATEGORY) {
237
+ if (pluggable && pluggable.getCategoryName() === constants_1.AWS_CLOUDWATCH_CATEGORY) {
238
238
  this._pluggables.push(pluggable);
239
239
  pluggable.configure(this._config);
240
240
  }
@@ -21,20 +21,8 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
22
  * THE SOFTWARE.
23
23
  */
24
- interface MutexInterface {
25
- acquire(): Promise<MutexInterface.Releaser>;
26
- runExclusive<T>(callback: MutexInterface.Worker<T>): Promise<T>;
27
- isLocked(): boolean;
28
- }
29
- declare namespace MutexInterface {
30
- interface Releaser {
31
- (): void;
32
- }
33
- interface Worker<T> {
34
- (): Promise<T> | T;
35
- }
36
- }
37
- declare class Mutex implements MutexInterface {
24
+ import { MutexInterface } from './types';
25
+ export declare class Mutex implements MutexInterface {
38
26
  isLocked(): boolean;
39
27
  acquire(): Promise<MutexInterface.Releaser>;
40
28
  runExclusive<T>(callback: MutexInterface.Worker<T>): Promise<T>;
@@ -42,4 +30,3 @@ declare class Mutex implements MutexInterface {
42
30
  private _queue;
43
31
  private _pending;
44
32
  }
45
- export default Mutex;
@@ -25,6 +25,7 @@
25
25
  * THE SOFTWARE.
26
26
  */
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.Mutex = void 0;
28
29
  var Mutex = /** @class */ (function () {
29
30
  function Mutex() {
30
31
  this._queue = [];
@@ -70,4 +71,4 @@ var Mutex = /** @class */ (function () {
70
71
  };
71
72
  return Mutex;
72
73
  }());
73
- exports.default = Mutex;
74
+ exports.Mutex = Mutex;
@@ -0,0 +1 @@
1
+ export { Mutex } from './Mutex';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Mutex = void 0;
6
+ var Mutex_1 = require("./Mutex");
7
+ Object.defineProperty(exports, "Mutex", { enumerable: true, get: function () { return Mutex_1.Mutex; } });
@@ -0,0 +1,13 @@
1
+ export interface MutexInterface {
2
+ acquire(): Promise<MutexInterface.Releaser>;
3
+ runExclusive<T>(callback: MutexInterface.Worker<T>): Promise<T>;
4
+ isLocked(): boolean;
5
+ }
6
+ export declare namespace MutexInterface {
7
+ interface Releaser {
8
+ (): void;
9
+ }
10
+ interface Worker<T> {
11
+ (): Promise<T> | T;
12
+ }
13
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1 @@
1
- export declare const version = "6.0.1-console-preview.67f944e.0+67f944e";
1
+ export declare const version = "6.0.1-console-preview.0bbe168.0+0bbe168";
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
4
  // generated by genversion
5
- exports.version = '6.0.1-console-preview.67f944e.0+67f944e';
5
+ exports.version = '6.0.1-console-preview.0bbe168.0+0bbe168';
@@ -0,0 +1,6 @@
1
+ import { Observable } from 'rxjs';
2
+ import { NetworkStatus } from './types';
3
+ export declare class Reachability {
4
+ private static _observers;
5
+ networkMonitor(_?: unknown): Observable<NetworkStatus>;
6
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Reachability = void 0;
6
+ var rxjs_1 = require("rxjs");
7
+ var libraryUtils_1 = require("../libraryUtils");
8
+ var Reachability = exports.Reachability = /** @class */ (function () {
9
+ function Reachability() {
10
+ }
11
+ Reachability.prototype.networkMonitor = function (_) {
12
+ var globalObj = (0, libraryUtils_1.isWebWorker)() ? self : window;
13
+ return new rxjs_1.Observable(function (observer) {
14
+ observer.next({ online: globalObj.navigator.onLine });
15
+ var notifyOnline = function () { return observer.next({ online: true }); };
16
+ var notifyOffline = function () { return observer.next({ online: false }); };
17
+ globalObj.addEventListener('online', notifyOnline);
18
+ globalObj.addEventListener('offline', notifyOffline);
19
+ Reachability._observers.push(observer);
20
+ return function () {
21
+ globalObj.removeEventListener('online', notifyOnline);
22
+ globalObj.removeEventListener('offline', notifyOffline);
23
+ Reachability._observers = Reachability._observers.filter(function (_observer) { return _observer !== observer; });
24
+ };
25
+ });
26
+ };
27
+ Reachability._observers = [];
28
+ return Reachability;
29
+ }());
@@ -0,0 +1,6 @@
1
+ import { Observable } from 'rxjs';
2
+ import type NetInfo from '@react-native-community/netinfo';
3
+ import { NetworkStatus } from './types';
4
+ export declare class Reachability {
5
+ networkMonitor(netInfo?: typeof NetInfo): Observable<NetworkStatus>;
6
+ }
@@ -1,17 +1,15 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Reachability = void 0;
6
4
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
7
5
  // SPDX-License-Identifier: Apache-2.0
8
- var zen_observable_ts_1 = __importDefault(require("zen-observable-ts"));
6
+ var rxjs_1 = require("rxjs");
9
7
  var Logger_1 = require("../Logger");
10
8
  var logger = new Logger_1.ConsoleLogger('Reachability', 'DEBUG');
11
- var ReachabilityNavigator = /** @class */ (function () {
12
- function ReachabilityNavigator() {
9
+ var Reachability = /** @class */ (function () {
10
+ function Reachability() {
13
11
  }
14
- ReachabilityNavigator.prototype.networkMonitor = function (netInfo) {
12
+ Reachability.prototype.networkMonitor = function (netInfo) {
15
13
  /**
16
14
  * Here netinfo refers to @react-native-community/netinfo
17
15
  * This is needed in React Native to enable network detection
@@ -22,7 +20,7 @@ var ReachabilityNavigator = /** @class */ (function () {
22
20
  if (!(netInfo && netInfo.addEventListener)) {
23
21
  throw new Error('NetInfo must be passed to networkMonitor to enable reachability in React Native');
24
22
  }
25
- return new zen_observable_ts_1.default(function (observer) {
23
+ return new rxjs_1.Observable(function (observer) {
26
24
  logger.log('subscribing to reachability in React Native');
27
25
  var unsubscribe = netInfo.addEventListener(function (_a) {
28
26
  var isInternetReachable = _a.isInternetReachable;
@@ -39,6 +37,6 @@ var ReachabilityNavigator = /** @class */ (function () {
39
37
  };
40
38
  });
41
39
  };
42
- return ReachabilityNavigator;
40
+ return Reachability;
43
41
  }());
44
- exports.default = ReachabilityNavigator;
42
+ exports.Reachability = Reachability;
@@ -0,0 +1 @@
1
+ export { Reachability } from './Reachability';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Reachability = void 0;
6
+ var Reachability_1 = require("./Reachability");
7
+ Object.defineProperty(exports, "Reachability", { enumerable: true, get: function () { return Reachability_1.Reachability; } });
@@ -0,0 +1,3 @@
1
+ export type NetworkStatus = {
2
+ online: boolean;
3
+ };
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,7 +4,7 @@
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.ServiceWorkerClass = void 0;
6
6
  var Logger_1 = require("../Logger");
7
- var JS_1 = require("../Util/JS");
7
+ var utils_1 = require("../utils");
8
8
  var Amplify_1 = require("../Amplify");
9
9
  var errors_1 = require("../errors");
10
10
  var errorHelpers_1 = require("./errorHelpers");
@@ -108,7 +108,7 @@ var ServiceWorkerClass = /** @class */ (function () {
108
108
  (0, errorHelpers_1.assert)(this._registration !== undefined, errorHelpers_1.ServiceWorkerErrorCode.UndefinedRegistration);
109
109
  this._publicKey = publicKey;
110
110
  return new Promise(function (resolve, reject) {
111
- if ((0, JS_1.isBrowser)()) {
111
+ if ((0, utils_1.isBrowser)()) {
112
112
  (0, errorHelpers_1.assert)(_this._registration !== undefined, errorHelpers_1.ServiceWorkerErrorCode.UndefinedRegistration);
113
113
  _this._registration.pushManager.getSubscription().then(function (subscription) {
114
114
  if (subscription) {
@@ -14,8 +14,8 @@ var __assign = (this && this.__assign) || function () {
14
14
  };
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.Signer = void 0;
17
- var Util_1 = require("./Util");
18
- var signatureV4_1 = require("./clients/middleware/signing/signer/signatureV4");
17
+ var DateUtils_1 = require("./DateUtils");
18
+ var signatureV4_1 = require("../clients/middleware/signing/signer/signatureV4");
19
19
  var IOT_SERVICE_NAME = 'iotdevicegateway';
20
20
  // Best practice regex to parse the service and region from an AWS endpoint
21
21
  var AWS_ENDPOINT_REGEX = /([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com(.cn)?$/;
@@ -105,7 +105,7 @@ var getOptions = function (request, accessInfo, serviceInfo, expiration) {
105
105
  var credentials = __assign({ accessKeyId: access_key, secretAccessKey: secret_key }, (sessionTokenRequiredInSigning(service)
106
106
  ? { sessionToken: session_token }
107
107
  : {}));
108
- return __assign({ credentials: credentials, signingDate: Util_1.DateUtils.getDateWithClockOffset(), signingRegion: region, signingService: service }, (expiration && { expiration: expiration }));
108
+ return __assign({ credentials: credentials, signingDate: DateUtils_1.DateUtils.getDateWithClockOffset(), signingRegion: region, signingService: service }, (expiration && { expiration: expiration }));
109
109
  };
110
110
  // TODO: V6 investigate whether add to custom clients' general signer implementation.
111
111
  var parseServiceInfo = function (url) {
@@ -0,0 +1 @@
1
+ export { Signer } from './Signer';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Signer = void 0;
6
+ var Signer_1 = require("./Signer");
7
+ Object.defineProperty(exports, "Signer", { enumerable: true, get: function () { return Signer_1.Signer; } });
@@ -4,10 +4,10 @@
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.jitteredBackoff = void 0;
6
6
  // TODO: [v6] The separate retry utility is used by Data packages now and will replaced by retry middleware.
7
- var Retry_1 = require("../../../Util/Retry");
7
+ var utils_1 = require("../../../utils");
8
8
  var DEFAULT_MAX_DELAY_MS = 5 * 60 * 1000;
9
9
  var jitteredBackoff = function (attempt) {
10
- var delayFunction = (0, Retry_1.jitteredBackoff)(DEFAULT_MAX_DELAY_MS);
10
+ var delayFunction = (0, utils_1.jitteredBackoff)(DEFAULT_MAX_DELAY_MS);
11
11
  var delay = delayFunction(attempt);
12
12
  // The delayFunction returns false when the delay is greater than the max delay(5 mins).
13
13
  // In this case, the retry middleware will delay 5 mins instead, as a ceiling of the delay.
@@ -1,6 +1,4 @@
1
1
  export declare const AWS_CLOUDWATCH_CATEGORY = "Logging";
2
- export declare const NO_CREDS_ERROR_STRING = "No credentials";
3
- export declare const RETRY_ERROR_CODES: string[];
4
2
  export declare const INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER: string | symbol;
5
3
  export declare const USER_AGENT_HEADER = "x-amz-user-agent";
6
4
  export declare const NO_HUBCALLBACK_PROVIDED_EXCEPTION = "NoHubcallbackProvidedException";