@aws-amplify/core 6.11.4 → 6.11.5-local-stack.00864ae.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 (215) hide show
  1. package/dist/cjs/BackgroundProcessManager/types.js +5 -1
  2. package/dist/cjs/BackgroundProcessManager/types.js.map +1 -1
  3. package/dist/cjs/Cache/constants.js +3 -3
  4. package/dist/cjs/Cache/constants.js.map +1 -1
  5. package/dist/cjs/Cache/utils/cacheHelpers.js +4 -4
  6. package/dist/cjs/Cache/utils/cacheHelpers.js.map +1 -1
  7. package/dist/cjs/Cache/utils/errorHelpers.js +1 -1
  8. package/dist/cjs/Cache/utils/errorHelpers.js.map +1 -1
  9. package/dist/cjs/I18n/errorHelpers.js +1 -1
  10. package/dist/cjs/I18n/errorHelpers.js.map +1 -1
  11. package/dist/cjs/Logger/types.js +2 -1
  12. package/dist/cjs/Logger/types.js.map +1 -1
  13. package/dist/cjs/Platform/detectFramework.js +2 -2
  14. package/dist/cjs/Platform/detectFramework.js.map +1 -1
  15. package/dist/cjs/Platform/detection/Angular.js +2 -3
  16. package/dist/cjs/Platform/detection/Angular.js.map +1 -1
  17. package/dist/cjs/Platform/detection/Expo.js +1 -2
  18. package/dist/cjs/Platform/detection/Expo.js.map +1 -1
  19. package/dist/cjs/Platform/detection/Next.js +2 -3
  20. package/dist/cjs/Platform/detection/Next.js.map +1 -1
  21. package/dist/cjs/Platform/detection/Nuxt.js +2 -3
  22. package/dist/cjs/Platform/detection/Nuxt.js.map +1 -1
  23. package/dist/cjs/Platform/detection/React.js +2 -3
  24. package/dist/cjs/Platform/detection/React.js.map +1 -1
  25. package/dist/cjs/Platform/detection/ReactNative.js +1 -2
  26. package/dist/cjs/Platform/detection/ReactNative.js.map +1 -1
  27. package/dist/cjs/Platform/detection/Svelte.js +2 -3
  28. package/dist/cjs/Platform/detection/Svelte.js.map +1 -1
  29. package/dist/cjs/Platform/detection/Vue.js +2 -3
  30. package/dist/cjs/Platform/detection/Vue.js.map +1 -1
  31. package/dist/cjs/Platform/detection/Web.js +1 -2
  32. package/dist/cjs/Platform/detection/Web.js.map +1 -1
  33. package/dist/cjs/Platform/detection/index.js +1 -2
  34. package/dist/cjs/Platform/detection/index.js.map +1 -1
  35. package/dist/cjs/Platform/types.js +28 -14
  36. package/dist/cjs/Platform/types.js.map +1 -1
  37. package/dist/cjs/Platform/version.js +1 -1
  38. package/dist/cjs/Platform/version.js.map +1 -1
  39. package/dist/cjs/ServiceWorker/errorHelpers.js +1 -1
  40. package/dist/cjs/ServiceWorker/errorHelpers.js.map +1 -1
  41. package/dist/cjs/awsClients/pinpoint/errorHelpers.js +1 -1
  42. package/dist/cjs/awsClients/pinpoint/errorHelpers.js.map +1 -1
  43. package/dist/cjs/foundation/factories/middleware/createDisableCacheMiddleware.js +15 -0
  44. package/dist/cjs/foundation/factories/middleware/createDisableCacheMiddleware.js.map +1 -0
  45. package/dist/cjs/foundation/factories/middleware/index.js +9 -0
  46. package/dist/cjs/foundation/factories/middleware/index.js.map +1 -0
  47. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.js +14 -0
  48. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.js.map +1 -0
  49. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/constants.js +18 -0
  50. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/constants.js.map +1 -0
  51. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.js +37 -0
  52. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.js.map +1 -0
  53. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.js +32 -0
  54. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.js.map +1 -0
  55. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.js +17 -0
  56. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.js.map +1 -0
  57. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/handler/index.js +9 -0
  58. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/handler/index.js.map +1 -0
  59. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/index.js +13 -0
  60. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/index.js.map +1 -0
  61. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.js +24 -0
  62. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.js.map +1 -0
  63. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/serde/index.js +9 -0
  64. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/serde/index.js.map +1 -0
  65. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/types/index.js +9 -0
  66. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/types/index.js.map +1 -0
  67. package/dist/cjs/{awsClients/cognitoIdentity/types.js → foundation/factories/serviceClients/cognitoIdentity/types/sdk.js} +1 -1
  68. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/types/sdk.js.map +1 -0
  69. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.js +6 -0
  70. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.js.map +1 -0
  71. package/dist/cjs/index.js +6 -5
  72. package/dist/cjs/index.js.map +1 -1
  73. package/dist/cjs/parseAmplifyOutputs.js +3 -4
  74. package/dist/cjs/parseAmplifyOutputs.js.map +1 -1
  75. package/dist/cjs/providers/pinpoint/types/errors.js +2 -1
  76. package/dist/cjs/providers/pinpoint/types/errors.js.map +1 -1
  77. package/dist/cjs/singleton/API/types.js +5 -1
  78. package/dist/cjs/singleton/API/types.js.map +1 -1
  79. package/dist/cjs/singleton/Auth/index.js +12 -0
  80. package/dist/cjs/singleton/Auth/index.js.map +1 -1
  81. package/dist/cjs/singleton/Auth/utils/errorHelpers.js +1 -1
  82. package/dist/cjs/singleton/Auth/utils/errorHelpers.js.map +1 -1
  83. package/dist/cjs/singleton/Auth/utils/index.js +4 -5
  84. package/dist/cjs/singleton/Auth/utils/index.js.map +1 -1
  85. package/dist/cjs/singleton/apis/clearCredentials.js +1 -2
  86. package/dist/cjs/singleton/apis/clearCredentials.js.map +1 -1
  87. package/dist/cjs/types/errors.js +2 -1
  88. package/dist/cjs/types/errors.js.map +1 -1
  89. package/dist/cjs/utils/convert/base64/bytesToString.js +1 -2
  90. package/dist/cjs/utils/convert/base64/bytesToString.js.map +1 -1
  91. package/dist/cjs/utils/cryptoSecureRandomInt.js +1 -2
  92. package/dist/cjs/utils/cryptoSecureRandomInt.js.map +1 -1
  93. package/dist/cjs/utils/getClientInfo/getClientInfo.js +1 -2
  94. package/dist/cjs/utils/getClientInfo/getClientInfo.js.map +1 -1
  95. package/dist/cjs/utils/isTokenExpired.js +1 -2
  96. package/dist/cjs/utils/isTokenExpired.js.map +1 -1
  97. package/dist/cjs/utils/retry/jitteredBackoff.js +1 -2
  98. package/dist/cjs/utils/retry/jitteredBackoff.js.map +1 -1
  99. package/dist/cjs/utils/retry/retry.js +1 -2
  100. package/dist/cjs/utils/retry/retry.js.map +1 -1
  101. package/dist/cjs/utils/urlSafeDecode.js +1 -2
  102. package/dist/cjs/utils/urlSafeDecode.js.map +1 -1
  103. package/dist/cjs/utils/urlSafeEncode.js +1 -2
  104. package/dist/cjs/utils/urlSafeEncode.js.map +1 -1
  105. package/dist/esm/Cache/constants.mjs +3 -3
  106. package/dist/esm/Cache/constants.mjs.map +1 -1
  107. package/dist/esm/Platform/version.d.ts +1 -1
  108. package/dist/esm/Platform/version.mjs +1 -1
  109. package/dist/esm/Platform/version.mjs.map +1 -1
  110. package/dist/esm/awsClients/pinpoint/base.d.ts +1 -1
  111. package/dist/esm/awsClients/pinpoint/getInAppMessages.d.ts +2 -2
  112. package/dist/esm/awsClients/pinpoint/putEvents.d.ts +2 -2
  113. package/dist/esm/awsClients/pinpoint/updateEndpoint.d.ts +2 -2
  114. package/dist/esm/clients/internal/composeServiceApi.d.ts +4 -1
  115. package/dist/esm/clients/internal/composeTransferHandler.d.ts +1 -1
  116. package/dist/esm/clients/middleware/signing/signer/signatureV4/utils/getCanonicalHeaders.d.ts +1 -1
  117. package/dist/esm/clients/middleware/signing/signer/signatureV4/utils/getHashedPayload.d.ts +1 -1
  118. package/dist/esm/clients/middleware/signing/signer/signatureV4/utils/getSignedHeaders.d.ts +1 -1
  119. package/dist/esm/foundation/factories/middleware/createDisableCacheMiddleware.d.ts +5 -0
  120. package/dist/esm/foundation/factories/middleware/createDisableCacheMiddleware.mjs +12 -0
  121. package/dist/esm/foundation/factories/middleware/createDisableCacheMiddleware.mjs.map +1 -0
  122. package/dist/esm/foundation/factories/middleware/index.d.ts +1 -0
  123. package/dist/esm/foundation/factories/middleware/index.mjs +2 -0
  124. package/dist/esm/{awsClients/cognitoIdentity → foundation/factories/middleware}/index.mjs.map +1 -1
  125. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.d.ts +4 -0
  126. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.mjs +27 -0
  127. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.mjs.map +1 -0
  128. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/constants.d.ts +10 -0
  129. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/constants.mjs +34 -0
  130. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/constants.mjs.map +1 -0
  131. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.d.ts +14 -0
  132. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.mjs +50 -0
  133. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.mjs.map +1 -0
  134. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.d.ts +14 -0
  135. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.mjs +45 -0
  136. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.mjs.map +1 -0
  137. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.d.ts +8 -0
  138. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.mjs +31 -0
  139. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.mjs.map +1 -0
  140. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/handler/index.d.ts +1 -0
  141. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/handler/index.mjs +2 -0
  142. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/handler/index.mjs.map +1 -0
  143. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/index.d.ts +4 -0
  144. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/index.mjs +4 -0
  145. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/index.mjs.map +1 -0
  146. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.d.ts +3 -0
  147. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.mjs +20 -0
  148. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.mjs.map +1 -0
  149. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/serde/index.d.ts +1 -0
  150. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/serde/index.mjs +2 -0
  151. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/serde/index.mjs.map +1 -0
  152. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/index.d.ts +3 -0
  153. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/index.mjs +2 -0
  154. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/index.mjs.map +1 -0
  155. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/sdk.mjs +2 -0
  156. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/sdk.mjs.map +1 -0
  157. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.d.ts +6 -0
  158. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.mjs +2 -0
  159. package/dist/esm/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.mjs.map +1 -0
  160. package/dist/esm/index.d.ts +1 -1
  161. package/dist/esm/index.mjs +3 -2
  162. package/dist/esm/index.mjs.map +1 -1
  163. package/dist/esm/singleton/Auth/index.mjs +13 -0
  164. package/dist/esm/singleton/Auth/index.mjs.map +1 -1
  165. package/dist/esm/singleton/Auth/types.d.ts +8 -0
  166. package/dist/esm/utils/amplifyUrl/index.d.ts +4 -3
  167. package/dist/esm/utils/amplifyUrl/index.native.d.ts +4 -3
  168. package/dist/esm/utils/queuedStorage/createQueuedStorage.native.d.ts +1 -1
  169. package/internals/aws-clients/cognitoIdentity/package.json +4 -4
  170. package/package.json +9 -10
  171. package/src/Platform/version.ts +1 -1
  172. package/src/foundation/factories/middleware/createDisableCacheMiddleware.ts +18 -0
  173. package/src/foundation/factories/middleware/index.ts +4 -0
  174. package/src/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.ts +15 -0
  175. package/src/foundation/factories/serviceClients/cognitoIdentity/constants.ts +20 -0
  176. package/src/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.ts +62 -0
  177. package/src/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.ts +48 -0
  178. package/src/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.ts +23 -0
  179. package/src/foundation/factories/serviceClients/cognitoIdentity/handler/index.ts +4 -0
  180. package/src/foundation/factories/serviceClients/cognitoIdentity/index.ts +12 -0
  181. package/src/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.ts +29 -0
  182. package/src/foundation/factories/serviceClients/cognitoIdentity/serde/index.ts +4 -0
  183. package/src/foundation/factories/serviceClients/cognitoIdentity/types/index.ts +9 -0
  184. package/src/{awsClients/cognitoIdentity/types.ts → foundation/factories/serviceClients/cognitoIdentity/types/sdk.ts} +0 -2
  185. package/src/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.ts +8 -0
  186. package/src/index.ts +5 -4
  187. package/src/singleton/Auth/index.ts +19 -0
  188. package/src/singleton/Auth/types.ts +8 -0
  189. package/dist/cjs/awsClients/cognitoIdentity/base.js +0 -69
  190. package/dist/cjs/awsClients/cognitoIdentity/base.js.map +0 -1
  191. package/dist/cjs/awsClients/cognitoIdentity/getCredentialsForIdentity.js +0 -41
  192. package/dist/cjs/awsClients/cognitoIdentity/getCredentialsForIdentity.js.map +0 -1
  193. package/dist/cjs/awsClients/cognitoIdentity/getId.js +0 -32
  194. package/dist/cjs/awsClients/cognitoIdentity/getId.js.map +0 -1
  195. package/dist/cjs/awsClients/cognitoIdentity/index.js +0 -11
  196. package/dist/cjs/awsClients/cognitoIdentity/index.js.map +0 -1
  197. package/dist/cjs/awsClients/cognitoIdentity/types.js.map +0 -1
  198. package/dist/esm/awsClients/cognitoIdentity/base.d.ts +0 -29
  199. package/dist/esm/awsClients/cognitoIdentity/base.mjs +0 -83
  200. package/dist/esm/awsClients/cognitoIdentity/base.mjs.map +0 -1
  201. package/dist/esm/awsClients/cognitoIdentity/getCredentialsForIdentity.d.ts +0 -18
  202. package/dist/esm/awsClients/cognitoIdentity/getCredentialsForIdentity.mjs +0 -56
  203. package/dist/esm/awsClients/cognitoIdentity/getCredentialsForIdentity.mjs.map +0 -1
  204. package/dist/esm/awsClients/cognitoIdentity/getId.d.ts +0 -18
  205. package/dist/esm/awsClients/cognitoIdentity/getId.mjs +0 -47
  206. package/dist/esm/awsClients/cognitoIdentity/getId.mjs.map +0 -1
  207. package/dist/esm/awsClients/cognitoIdentity/index.d.ts +0 -2
  208. package/dist/esm/awsClients/cognitoIdentity/index.mjs +0 -3
  209. package/dist/esm/awsClients/cognitoIdentity/types.mjs +0 -2
  210. package/dist/esm/awsClients/cognitoIdentity/types.mjs.map +0 -1
  211. package/src/awsClients/cognitoIdentity/base.ts +0 -101
  212. package/src/awsClients/cognitoIdentity/getCredentialsForIdentity.ts +0 -77
  213. package/src/awsClients/cognitoIdentity/getId.ts +0 -61
  214. package/src/awsClients/cognitoIdentity/index.ts +0 -9
  215. /package/dist/esm/{awsClients/cognitoIdentity/types.d.ts → foundation/factories/serviceClients/cognitoIdentity/types/sdk.d.ts} +0 -0
@@ -4,6 +4,7 @@
4
4
  // SPDX-License-Identifier: Apache-2.0
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.StorageAction = exports.PushNotificationAction = exports.PubSubAction = exports.PredictionsAction = exports.InteractionsAction = exports.InAppMessagingAction = exports.GeoAction = exports.DataStoreAction = exports.AuthAction = exports.ApiAction = exports.AnalyticsAction = exports.AiAction = exports.Category = exports.Framework = void 0;
7
+ var Framework;
7
8
  (function (Framework) {
8
9
  // < 100 - Web frameworks
9
10
  Framework["WebUnknown"] = "0";
@@ -24,7 +25,8 @@ exports.StorageAction = exports.PushNotificationAction = exports.PubSubAction =
24
25
  // 200s - Mobile framework
25
26
  Framework["ReactNative"] = "201";
26
27
  Framework["Expo"] = "202";
27
- })(exports.Framework || (exports.Framework = {}));
28
+ })(Framework || (exports.Framework = Framework = {}));
29
+ var Category;
28
30
  (function (Category) {
29
31
  Category["AI"] = "ai";
30
32
  Category["API"] = "api";
@@ -38,7 +40,8 @@ exports.StorageAction = exports.PushNotificationAction = exports.PubSubAction =
38
40
  Category["PubSub"] = "pubsub";
39
41
  Category["PushNotification"] = "pushnotification";
40
42
  Category["Storage"] = "storage";
41
- })(exports.Category || (exports.Category = {}));
43
+ })(Category || (exports.Category = Category = {}));
44
+ var AiAction;
42
45
  (function (AiAction) {
43
46
  AiAction["CreateConversation"] = "1";
44
47
  AiAction["GetConversation"] = "2";
@@ -49,11 +52,13 @@ exports.StorageAction = exports.PushNotificationAction = exports.PubSubAction =
49
52
  AiAction["OnMessage"] = "7";
50
53
  AiAction["Generation"] = "8";
51
54
  AiAction["UpdateConversation"] = "9";
52
- })(exports.AiAction || (exports.AiAction = {}));
55
+ })(AiAction || (exports.AiAction = AiAction = {}));
56
+ var AnalyticsAction;
53
57
  (function (AnalyticsAction) {
54
58
  AnalyticsAction["Record"] = "1";
55
59
  AnalyticsAction["IdentifyUser"] = "2";
56
- })(exports.AnalyticsAction || (exports.AnalyticsAction = {}));
60
+ })(AnalyticsAction || (exports.AnalyticsAction = AnalyticsAction = {}));
61
+ var ApiAction;
57
62
  (function (ApiAction) {
58
63
  ApiAction["GraphQl"] = "1";
59
64
  ApiAction["Get"] = "2";
@@ -62,7 +67,8 @@ exports.StorageAction = exports.PushNotificationAction = exports.PubSubAction =
62
67
  ApiAction["Patch"] = "5";
63
68
  ApiAction["Del"] = "6";
64
69
  ApiAction["Head"] = "7";
65
- })(exports.ApiAction || (exports.ApiAction = {}));
70
+ })(ApiAction || (exports.ApiAction = ApiAction = {}));
71
+ var AuthAction;
66
72
  (function (AuthAction) {
67
73
  AuthAction["SignUp"] = "1";
68
74
  AuthAction["ConfirmSignUp"] = "2";
@@ -92,11 +98,13 @@ exports.StorageAction = exports.PushNotificationAction = exports.PubSubAction =
92
98
  AuthAction["CompleteWebAuthnRegistration"] = "38";
93
99
  AuthAction["ListWebAuthnCredentials"] = "39";
94
100
  AuthAction["DeleteWebAuthnCredential"] = "40";
95
- })(exports.AuthAction || (exports.AuthAction = {}));
101
+ })(AuthAction || (exports.AuthAction = AuthAction = {}));
102
+ var DataStoreAction;
96
103
  (function (DataStoreAction) {
97
104
  DataStoreAction["Subscribe"] = "1";
98
105
  DataStoreAction["GraphQl"] = "2";
99
- })(exports.DataStoreAction || (exports.DataStoreAction = {}));
106
+ })(DataStoreAction || (exports.DataStoreAction = DataStoreAction = {}));
107
+ var GeoAction;
100
108
  (function (GeoAction) {
101
109
  GeoAction["SearchByText"] = "0";
102
110
  GeoAction["SearchByCoordinates"] = "1";
@@ -106,27 +114,33 @@ exports.StorageAction = exports.PushNotificationAction = exports.PubSubAction =
106
114
  GeoAction["GetGeofence"] = "5";
107
115
  GeoAction["ListGeofences"] = "6";
108
116
  GeoAction["DeleteGeofences"] = "7";
109
- })(exports.GeoAction || (exports.GeoAction = {}));
117
+ })(GeoAction || (exports.GeoAction = GeoAction = {}));
118
+ var InAppMessagingAction;
110
119
  (function (InAppMessagingAction) {
111
120
  InAppMessagingAction["SyncMessages"] = "1";
112
121
  InAppMessagingAction["IdentifyUser"] = "2";
113
122
  InAppMessagingAction["NotifyMessageInteraction"] = "3";
114
- })(exports.InAppMessagingAction || (exports.InAppMessagingAction = {}));
123
+ })(InAppMessagingAction || (exports.InAppMessagingAction = InAppMessagingAction = {}));
124
+ var InteractionsAction;
115
125
  (function (InteractionsAction) {
116
126
  InteractionsAction["None"] = "0";
117
- })(exports.InteractionsAction || (exports.InteractionsAction = {}));
127
+ })(InteractionsAction || (exports.InteractionsAction = InteractionsAction = {}));
128
+ var PredictionsAction;
118
129
  (function (PredictionsAction) {
119
130
  PredictionsAction["Convert"] = "1";
120
131
  PredictionsAction["Identify"] = "2";
121
132
  PredictionsAction["Interpret"] = "3";
122
- })(exports.PredictionsAction || (exports.PredictionsAction = {}));
133
+ })(PredictionsAction || (exports.PredictionsAction = PredictionsAction = {}));
134
+ var PubSubAction;
123
135
  (function (PubSubAction) {
124
136
  PubSubAction["Subscribe"] = "1";
125
- })(exports.PubSubAction || (exports.PubSubAction = {}));
137
+ })(PubSubAction || (exports.PubSubAction = PubSubAction = {}));
138
+ var PushNotificationAction;
126
139
  (function (PushNotificationAction) {
127
140
  PushNotificationAction["InitializePushNotifications"] = "1";
128
141
  PushNotificationAction["IdentifyUser"] = "2";
129
- })(exports.PushNotificationAction || (exports.PushNotificationAction = {}));
142
+ })(PushNotificationAction || (exports.PushNotificationAction = PushNotificationAction = {}));
143
+ var StorageAction;
130
144
  (function (StorageAction) {
131
145
  StorageAction["UploadData"] = "1";
132
146
  StorageAction["DownloadData"] = "2";
@@ -137,5 +151,5 @@ exports.StorageAction = exports.PushNotificationAction = exports.PubSubAction =
137
151
  StorageAction["GetUrl"] = "7";
138
152
  StorageAction["GetDataAccess"] = "8";
139
153
  StorageAction["ListCallerAccessGrants"] = "9";
140
- })(exports.StorageAction || (exports.StorageAction = {}));
154
+ })(StorageAction || (exports.StorageAction = StorageAction = {}));
141
155
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sources":["../../../src/Platform/types.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.StorageAction = exports.PushNotificationAction = exports.PubSubAction = exports.PredictionsAction = exports.InteractionsAction = exports.InAppMessagingAction = exports.GeoAction = exports.DataStoreAction = exports.AuthAction = exports.ApiAction = exports.AnalyticsAction = exports.AiAction = exports.Category = exports.Framework = void 0;\nvar Framework;\n(function (Framework) {\n // < 100 - Web frameworks\n Framework[\"WebUnknown\"] = \"0\";\n Framework[\"React\"] = \"1\";\n Framework[\"NextJs\"] = \"2\";\n Framework[\"Angular\"] = \"3\";\n Framework[\"VueJs\"] = \"4\";\n Framework[\"Nuxt\"] = \"5\";\n Framework[\"Svelte\"] = \"6\";\n // 100s - Server side frameworks\n Framework[\"ServerSideUnknown\"] = \"100\";\n Framework[\"ReactSSR\"] = \"101\";\n Framework[\"NextJsSSR\"] = \"102\";\n Framework[\"AngularSSR\"] = \"103\";\n Framework[\"VueJsSSR\"] = \"104\";\n Framework[\"NuxtSSR\"] = \"105\";\n Framework[\"SvelteSSR\"] = \"106\";\n // 200s - Mobile framework\n Framework[\"ReactNative\"] = \"201\";\n Framework[\"Expo\"] = \"202\";\n})(Framework = exports.Framework || (exports.Framework = {}));\nvar Category;\n(function (Category) {\n Category[\"AI\"] = \"ai\";\n Category[\"API\"] = \"api\";\n Category[\"Auth\"] = \"auth\";\n Category[\"Analytics\"] = \"analytics\";\n Category[\"DataStore\"] = \"datastore\";\n Category[\"Geo\"] = \"geo\";\n Category[\"InAppMessaging\"] = \"inappmessaging\";\n Category[\"Interactions\"] = \"interactions\";\n Category[\"Predictions\"] = \"predictions\";\n Category[\"PubSub\"] = \"pubsub\";\n Category[\"PushNotification\"] = \"pushnotification\";\n Category[\"Storage\"] = \"storage\";\n})(Category = exports.Category || (exports.Category = {}));\nvar AiAction;\n(function (AiAction) {\n AiAction[\"CreateConversation\"] = \"1\";\n AiAction[\"GetConversation\"] = \"2\";\n AiAction[\"ListConversations\"] = \"3\";\n AiAction[\"DeleteConversation\"] = \"4\";\n AiAction[\"SendMessage\"] = \"5\";\n AiAction[\"ListMessages\"] = \"6\";\n AiAction[\"OnMessage\"] = \"7\";\n AiAction[\"Generation\"] = \"8\";\n AiAction[\"UpdateConversation\"] = \"9\";\n})(AiAction = exports.AiAction || (exports.AiAction = {}));\nvar AnalyticsAction;\n(function (AnalyticsAction) {\n AnalyticsAction[\"Record\"] = \"1\";\n AnalyticsAction[\"IdentifyUser\"] = \"2\";\n})(AnalyticsAction = exports.AnalyticsAction || (exports.AnalyticsAction = {}));\nvar ApiAction;\n(function (ApiAction) {\n ApiAction[\"GraphQl\"] = \"1\";\n ApiAction[\"Get\"] = \"2\";\n ApiAction[\"Post\"] = \"3\";\n ApiAction[\"Put\"] = \"4\";\n ApiAction[\"Patch\"] = \"5\";\n ApiAction[\"Del\"] = \"6\";\n ApiAction[\"Head\"] = \"7\";\n})(ApiAction = exports.ApiAction || (exports.ApiAction = {}));\nvar AuthAction;\n(function (AuthAction) {\n AuthAction[\"SignUp\"] = \"1\";\n AuthAction[\"ConfirmSignUp\"] = \"2\";\n AuthAction[\"ResendSignUpCode\"] = \"3\";\n AuthAction[\"SignIn\"] = \"4\";\n AuthAction[\"FetchMFAPreference\"] = \"6\";\n AuthAction[\"UpdateMFAPreference\"] = \"7\";\n AuthAction[\"SetUpTOTP\"] = \"10\";\n AuthAction[\"VerifyTOTPSetup\"] = \"11\";\n AuthAction[\"ConfirmSignIn\"] = \"12\";\n AuthAction[\"DeleteUserAttributes\"] = \"15\";\n AuthAction[\"DeleteUser\"] = \"16\";\n AuthAction[\"UpdateUserAttributes\"] = \"17\";\n AuthAction[\"FetchUserAttributes\"] = \"18\";\n AuthAction[\"ConfirmUserAttribute\"] = \"22\";\n AuthAction[\"SignOut\"] = \"26\";\n AuthAction[\"UpdatePassword\"] = \"27\";\n AuthAction[\"ResetPassword\"] = \"28\";\n AuthAction[\"ConfirmResetPassword\"] = \"29\";\n AuthAction[\"FederatedSignIn\"] = \"30\";\n AuthAction[\"RememberDevice\"] = \"32\";\n AuthAction[\"ForgetDevice\"] = \"33\";\n AuthAction[\"FetchDevices\"] = \"34\";\n AuthAction[\"SendUserAttributeVerificationCode\"] = \"35\";\n AuthAction[\"SignInWithRedirect\"] = \"36\";\n AuthAction[\"StartWebAuthnRegistration\"] = \"37\";\n AuthAction[\"CompleteWebAuthnRegistration\"] = \"38\";\n AuthAction[\"ListWebAuthnCredentials\"] = \"39\";\n AuthAction[\"DeleteWebAuthnCredential\"] = \"40\";\n})(AuthAction = exports.AuthAction || (exports.AuthAction = {}));\nvar DataStoreAction;\n(function (DataStoreAction) {\n DataStoreAction[\"Subscribe\"] = \"1\";\n DataStoreAction[\"GraphQl\"] = \"2\";\n})(DataStoreAction = exports.DataStoreAction || (exports.DataStoreAction = {}));\nvar GeoAction;\n(function (GeoAction) {\n GeoAction[\"SearchByText\"] = \"0\";\n GeoAction[\"SearchByCoordinates\"] = \"1\";\n GeoAction[\"SearchForSuggestions\"] = \"2\";\n GeoAction[\"SearchByPlaceId\"] = \"3\";\n GeoAction[\"SaveGeofences\"] = \"4\";\n GeoAction[\"GetGeofence\"] = \"5\";\n GeoAction[\"ListGeofences\"] = \"6\";\n GeoAction[\"DeleteGeofences\"] = \"7\";\n})(GeoAction = exports.GeoAction || (exports.GeoAction = {}));\nvar InAppMessagingAction;\n(function (InAppMessagingAction) {\n InAppMessagingAction[\"SyncMessages\"] = \"1\";\n InAppMessagingAction[\"IdentifyUser\"] = \"2\";\n InAppMessagingAction[\"NotifyMessageInteraction\"] = \"3\";\n})(InAppMessagingAction = exports.InAppMessagingAction || (exports.InAppMessagingAction = {}));\nvar InteractionsAction;\n(function (InteractionsAction) {\n InteractionsAction[\"None\"] = \"0\";\n})(InteractionsAction = exports.InteractionsAction || (exports.InteractionsAction = {}));\nvar PredictionsAction;\n(function (PredictionsAction) {\n PredictionsAction[\"Convert\"] = \"1\";\n PredictionsAction[\"Identify\"] = \"2\";\n PredictionsAction[\"Interpret\"] = \"3\";\n})(PredictionsAction = exports.PredictionsAction || (exports.PredictionsAction = {}));\nvar PubSubAction;\n(function (PubSubAction) {\n PubSubAction[\"Subscribe\"] = \"1\";\n})(PubSubAction = exports.PubSubAction || (exports.PubSubAction = {}));\nvar PushNotificationAction;\n(function (PushNotificationAction) {\n PushNotificationAction[\"InitializePushNotifications\"] = \"1\";\n PushNotificationAction[\"IdentifyUser\"] = \"2\";\n})(PushNotificationAction = exports.PushNotificationAction || (exports.PushNotificationAction = {}));\nvar StorageAction;\n(function (StorageAction) {\n StorageAction[\"UploadData\"] = \"1\";\n StorageAction[\"DownloadData\"] = \"2\";\n StorageAction[\"List\"] = \"3\";\n StorageAction[\"Copy\"] = \"4\";\n StorageAction[\"Remove\"] = \"5\";\n StorageAction[\"GetProperties\"] = \"6\";\n StorageAction[\"GetUrl\"] = \"7\";\n StorageAction[\"GetDataAccess\"] = \"8\";\n StorageAction[\"ListCallerAccessGrants\"] = \"9\";\n})(StorageAction = exports.StorageAction || (exports.StorageAction = {}));\n"],"names":[],"mappings":";;AACA;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B,CAAC,UAAU,CAAC,GAAG,GAAG;AACvC,IAAI,iBAAiB,CAAC,WAAW,CAAC,GAAG,GAAG;AACxC,CAAC,EAAsB,OAAO,CAAC,iBAAiB,KAAK,OAAO,CAAC,iBAAiB,GAAG,EAAE,CAAC,CAAC;AAErF,CAAC,UAAU,YAAY,EAAE;AACzB,IAAI,YAAY,CAAC,WAAW,CAAC,GAAG,GAAG;AACnC,CAAC,EAAiB,OAAO,CAAC,YAAY,KAAK,OAAO,CAAC,YAAY,GAAG,EAAE,CAAC,CAAC;AAEtE,CAAC,UAAU,sBAAsB,EAAE;AACnC,IAAI,sBAAsB,CAAC,6BAA6B,CAAC,GAAG,GAAG;AAC/D,IAAI,sBAAsB,CAAC,cAAc,CAAC,GAAG,GAAG;AAChD,CAAC,EAA2B,OAAO,CAAC,sBAAsB,KAAK,OAAO,CAAC,sBAAsB,GAAG,EAAE,CAAC,CAAC;AAEpG,CAAC,UAAU,aAAa,EAAE;AAC1B,IAAI,aAAa,CAAC,YAAY,CAAC,GAAG,GAAG;AACrC,IAAI,aAAa,CAAC,cAAc,CAAC,GAAG,GAAG;AACvC,IAAI,aAAa,CAAC,MAAM,CAAC,GAAG,GAAG;AAC/B,IAAI,aAAa,CAAC,MAAM,CAAC,GAAG,GAAG;AAC/B,IAAI,aAAa,CAAC,QAAQ,CAAC,GAAG,GAAG;AACjC,IAAI,aAAa,CAAC,eAAe,CAAC,GAAG,GAAG;AACxC,IAAI,aAAa,CAAC,QAAQ,CAAC,GAAG,GAAG;AACjC,IAAI,aAAa,CAAC,eAAe,CAAC,GAAG,GAAG;AACxC,IAAI,aAAa,CAAC,wBAAwB,CAAC,GAAG,GAAG;AACjD,CAAC,EAAkB,OAAO,CAAC,aAAa,KAAK,OAAO,CAAC,aAAa,GAAG,EAAE,CAAC,CAAC;;"}
1
+ {"version":3,"file":"types.js","sources":["../../../src/Platform/types.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.StorageAction = exports.PushNotificationAction = exports.PubSubAction = exports.PredictionsAction = exports.InteractionsAction = exports.InAppMessagingAction = exports.GeoAction = exports.DataStoreAction = exports.AuthAction = exports.ApiAction = exports.AnalyticsAction = exports.AiAction = exports.Category = exports.Framework = void 0;\nvar Framework;\n(function (Framework) {\n // < 100 - Web frameworks\n Framework[\"WebUnknown\"] = \"0\";\n Framework[\"React\"] = \"1\";\n Framework[\"NextJs\"] = \"2\";\n Framework[\"Angular\"] = \"3\";\n Framework[\"VueJs\"] = \"4\";\n Framework[\"Nuxt\"] = \"5\";\n Framework[\"Svelte\"] = \"6\";\n // 100s - Server side frameworks\n Framework[\"ServerSideUnknown\"] = \"100\";\n Framework[\"ReactSSR\"] = \"101\";\n Framework[\"NextJsSSR\"] = \"102\";\n Framework[\"AngularSSR\"] = \"103\";\n Framework[\"VueJsSSR\"] = \"104\";\n Framework[\"NuxtSSR\"] = \"105\";\n Framework[\"SvelteSSR\"] = \"106\";\n // 200s - Mobile framework\n Framework[\"ReactNative\"] = \"201\";\n Framework[\"Expo\"] = \"202\";\n})(Framework || (exports.Framework = Framework = {}));\nvar Category;\n(function (Category) {\n Category[\"AI\"] = \"ai\";\n Category[\"API\"] = \"api\";\n Category[\"Auth\"] = \"auth\";\n Category[\"Analytics\"] = \"analytics\";\n Category[\"DataStore\"] = \"datastore\";\n Category[\"Geo\"] = \"geo\";\n Category[\"InAppMessaging\"] = \"inappmessaging\";\n Category[\"Interactions\"] = \"interactions\";\n Category[\"Predictions\"] = \"predictions\";\n Category[\"PubSub\"] = \"pubsub\";\n Category[\"PushNotification\"] = \"pushnotification\";\n Category[\"Storage\"] = \"storage\";\n})(Category || (exports.Category = Category = {}));\nvar AiAction;\n(function (AiAction) {\n AiAction[\"CreateConversation\"] = \"1\";\n AiAction[\"GetConversation\"] = \"2\";\n AiAction[\"ListConversations\"] = \"3\";\n AiAction[\"DeleteConversation\"] = \"4\";\n AiAction[\"SendMessage\"] = \"5\";\n AiAction[\"ListMessages\"] = \"6\";\n AiAction[\"OnMessage\"] = \"7\";\n AiAction[\"Generation\"] = \"8\";\n AiAction[\"UpdateConversation\"] = \"9\";\n})(AiAction || (exports.AiAction = AiAction = {}));\nvar AnalyticsAction;\n(function (AnalyticsAction) {\n AnalyticsAction[\"Record\"] = \"1\";\n AnalyticsAction[\"IdentifyUser\"] = \"2\";\n})(AnalyticsAction || (exports.AnalyticsAction = AnalyticsAction = {}));\nvar ApiAction;\n(function (ApiAction) {\n ApiAction[\"GraphQl\"] = \"1\";\n ApiAction[\"Get\"] = \"2\";\n ApiAction[\"Post\"] = \"3\";\n ApiAction[\"Put\"] = \"4\";\n ApiAction[\"Patch\"] = \"5\";\n ApiAction[\"Del\"] = \"6\";\n ApiAction[\"Head\"] = \"7\";\n})(ApiAction || (exports.ApiAction = ApiAction = {}));\nvar AuthAction;\n(function (AuthAction) {\n AuthAction[\"SignUp\"] = \"1\";\n AuthAction[\"ConfirmSignUp\"] = \"2\";\n AuthAction[\"ResendSignUpCode\"] = \"3\";\n AuthAction[\"SignIn\"] = \"4\";\n AuthAction[\"FetchMFAPreference\"] = \"6\";\n AuthAction[\"UpdateMFAPreference\"] = \"7\";\n AuthAction[\"SetUpTOTP\"] = \"10\";\n AuthAction[\"VerifyTOTPSetup\"] = \"11\";\n AuthAction[\"ConfirmSignIn\"] = \"12\";\n AuthAction[\"DeleteUserAttributes\"] = \"15\";\n AuthAction[\"DeleteUser\"] = \"16\";\n AuthAction[\"UpdateUserAttributes\"] = \"17\";\n AuthAction[\"FetchUserAttributes\"] = \"18\";\n AuthAction[\"ConfirmUserAttribute\"] = \"22\";\n AuthAction[\"SignOut\"] = \"26\";\n AuthAction[\"UpdatePassword\"] = \"27\";\n AuthAction[\"ResetPassword\"] = \"28\";\n AuthAction[\"ConfirmResetPassword\"] = \"29\";\n AuthAction[\"FederatedSignIn\"] = \"30\";\n AuthAction[\"RememberDevice\"] = \"32\";\n AuthAction[\"ForgetDevice\"] = \"33\";\n AuthAction[\"FetchDevices\"] = \"34\";\n AuthAction[\"SendUserAttributeVerificationCode\"] = \"35\";\n AuthAction[\"SignInWithRedirect\"] = \"36\";\n AuthAction[\"StartWebAuthnRegistration\"] = \"37\";\n AuthAction[\"CompleteWebAuthnRegistration\"] = \"38\";\n AuthAction[\"ListWebAuthnCredentials\"] = \"39\";\n AuthAction[\"DeleteWebAuthnCredential\"] = \"40\";\n})(AuthAction || (exports.AuthAction = AuthAction = {}));\nvar DataStoreAction;\n(function (DataStoreAction) {\n DataStoreAction[\"Subscribe\"] = \"1\";\n DataStoreAction[\"GraphQl\"] = \"2\";\n})(DataStoreAction || (exports.DataStoreAction = DataStoreAction = {}));\nvar GeoAction;\n(function (GeoAction) {\n GeoAction[\"SearchByText\"] = \"0\";\n GeoAction[\"SearchByCoordinates\"] = \"1\";\n GeoAction[\"SearchForSuggestions\"] = \"2\";\n GeoAction[\"SearchByPlaceId\"] = \"3\";\n GeoAction[\"SaveGeofences\"] = \"4\";\n GeoAction[\"GetGeofence\"] = \"5\";\n GeoAction[\"ListGeofences\"] = \"6\";\n GeoAction[\"DeleteGeofences\"] = \"7\";\n})(GeoAction || (exports.GeoAction = GeoAction = {}));\nvar InAppMessagingAction;\n(function (InAppMessagingAction) {\n InAppMessagingAction[\"SyncMessages\"] = \"1\";\n InAppMessagingAction[\"IdentifyUser\"] = \"2\";\n InAppMessagingAction[\"NotifyMessageInteraction\"] = \"3\";\n})(InAppMessagingAction || (exports.InAppMessagingAction = InAppMessagingAction = {}));\nvar InteractionsAction;\n(function (InteractionsAction) {\n InteractionsAction[\"None\"] = \"0\";\n})(InteractionsAction || (exports.InteractionsAction = InteractionsAction = {}));\nvar PredictionsAction;\n(function (PredictionsAction) {\n PredictionsAction[\"Convert\"] = \"1\";\n PredictionsAction[\"Identify\"] = \"2\";\n PredictionsAction[\"Interpret\"] = \"3\";\n})(PredictionsAction || (exports.PredictionsAction = PredictionsAction = {}));\nvar PubSubAction;\n(function (PubSubAction) {\n PubSubAction[\"Subscribe\"] = \"1\";\n})(PubSubAction || (exports.PubSubAction = PubSubAction = {}));\nvar PushNotificationAction;\n(function (PushNotificationAction) {\n PushNotificationAction[\"InitializePushNotifications\"] = \"1\";\n PushNotificationAction[\"IdentifyUser\"] = \"2\";\n})(PushNotificationAction || (exports.PushNotificationAction = PushNotificationAction = {}));\nvar StorageAction;\n(function (StorageAction) {\n StorageAction[\"UploadData\"] = \"1\";\n StorageAction[\"DownloadData\"] = \"2\";\n StorageAction[\"List\"] = \"3\";\n StorageAction[\"Copy\"] = \"4\";\n StorageAction[\"Remove\"] = \"5\";\n StorageAction[\"GetProperties\"] = \"6\";\n StorageAction[\"GetUrl\"] = \"7\";\n StorageAction[\"GetDataAccess\"] = \"8\";\n StorageAction[\"ListCallerAccessGrants\"] = \"9\";\n})(StorageAction || (exports.StorageAction = StorageAction = {}));\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,sBAAsB,GAAG,OAAO,CAAC,YAAY,GAAG,OAAO,CAAC,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,eAAe,GAAG,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,eAAe,GAAG,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC,SAAS,GAAG,MAAM;AACzV,IAAI,SAAS;AACb,CAAC,UAAU,SAAS,EAAE;AACtB;AACA,IAAI,SAAS,CAAC,YAAY,CAAC,GAAG,GAAG;AACjC,IAAI,SAAS,CAAC,OAAO,CAAC,GAAG,GAAG;AAC5B,IAAI,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sBAAsB,CAAC,6BAA6B,CAAC,GAAG,GAAG;AAC/D,IAAI,sBAAsB,CAAC,cAAc,CAAC,GAAG,GAAG;AAChD,CAAC,EAAE,sBAAsB,KAAK,OAAO,CAAC,sBAAsB,GAAG,sBAAsB,GAAG,EAAE,CAAC,CAAC;AAC5F,IAAI,aAAa;AACjB,CAAC,UAAU,aAAa,EAAE;AAC1B,IAAI,aAAa,CAAC,YAAY,CAAC,GAAG,GAAG;AACrC,IAAI,aAAa,CAAC,cAAc,CAAC,GAAG,GAAG;AACvC,IAAI,aAAa,CAAC,MAAM,CAAC,GAAG,GAAG;AAC/B,IAAI,aAAa,CAAC,MAAM,CAAC,GAAG,GAAG;AAC/B,IAAI,aAAa,CAAC,QAAQ,CAAC,GAAG,GAAG;AACjC,IAAI,aAAa,CAAC,eAAe,CAAC,GAAG,GAAG;AACxC,IAAI,aAAa,CAAC,QAAQ,CAAC,GAAG,GAAG;AACjC,IAAI,aAAa,CAAC,eAAe,CAAC,GAAG,GAAG;AACxC,IAAI,aAAa,CAAC,wBAAwB,CAAC,GAAG,GAAG;AACjD,CAAC,EAAE,aAAa,KAAK,OAAO,CAAC,aAAa,GAAG,aAAa,GAAG,EAAE,CAAC,CAAC;;"}
@@ -3,5 +3,5 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.version = void 0;
5
5
  // generated by genversion
6
- exports.version = '6.14.4';
6
+ exports.version = '6.14.5-local-stack.00864ae.0+00864ae';
7
7
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sources":["../../../src/Platform/version.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.version = void 0;\n// generated by genversion\nexports.version = '6.14.4';\n"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,OAAO,GAAG,MAAM;AACxB;AACA,OAAO,CAAC,OAAO,GAAG,QAAQ;;"}
1
+ {"version":3,"file":"version.js","sources":["../../../src/Platform/version.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.version = void 0;\n// generated by genversion\nexports.version = '6.14.5-local-stack.00864ae.0+00864ae';\n"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,OAAO,GAAG,MAAM;AACxB;AACA,OAAO,CAAC,OAAO,GAAG,sCAAsC;;"}
@@ -10,7 +10,7 @@ var ServiceWorkerErrorCode;
10
10
  ServiceWorkerErrorCode["UndefinedInstance"] = "UndefinedInstance";
11
11
  ServiceWorkerErrorCode["UndefinedRegistration"] = "UndefinedRegistration";
12
12
  ServiceWorkerErrorCode["Unavailable"] = "Unavailable";
13
- })(ServiceWorkerErrorCode = exports.ServiceWorkerErrorCode || (exports.ServiceWorkerErrorCode = {}));
13
+ })(ServiceWorkerErrorCode || (exports.ServiceWorkerErrorCode = ServiceWorkerErrorCode = {}));
14
14
  const serviceWorkerErrorMap = {
15
15
  [ServiceWorkerErrorCode.UndefinedInstance]: {
16
16
  message: 'Service Worker instance is undefined.',
@@ -1 +1 @@
1
- {"version":3,"file":"errorHelpers.js","sources":["../../../src/ServiceWorker/errorHelpers.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.assert = exports.ServiceWorkerErrorCode = void 0;\nconst errors_1 = require(\"../errors\");\nvar ServiceWorkerErrorCode;\n(function (ServiceWorkerErrorCode) {\n ServiceWorkerErrorCode[\"UndefinedInstance\"] = \"UndefinedInstance\";\n ServiceWorkerErrorCode[\"UndefinedRegistration\"] = \"UndefinedRegistration\";\n ServiceWorkerErrorCode[\"Unavailable\"] = \"Unavailable\";\n})(ServiceWorkerErrorCode = exports.ServiceWorkerErrorCode || (exports.ServiceWorkerErrorCode = {}));\nconst serviceWorkerErrorMap = {\n [ServiceWorkerErrorCode.UndefinedInstance]: {\n message: 'Service Worker instance is undefined.',\n },\n [ServiceWorkerErrorCode.UndefinedRegistration]: {\n message: 'Service Worker registration is undefined.',\n },\n [ServiceWorkerErrorCode.Unavailable]: {\n message: 'Service Worker not available.',\n },\n};\nexports.assert = (0, errors_1.createAssertionFunction)(serviceWorkerErrorMap);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,sBAAsB,GAAG,MAAM;AACxD,MAAM,QAAQ,GAAG,OAAO,CAAC,WAAW,CAAC;AACrC,IAAI,sBAAsB;AAC1B,CAAC,UAAU,sBAAsB,EAAE;AACnC,IAAI,sBAAsB,CAAC,mBAAmB,CAAC,GAAG,mBAAmB;AACrE,IAAI,sBAAsB,CAAC,uBAAuB,CAAC,GAAG,uBAAuB;AAC7E,IAAI,sBAAsB,CAAC,aAAa,CAAC,GAAG,aAAa;AACzD,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC,sBAAsB,KAAK,OAAO,CAAC,sBAAsB,GAAG,EAAE,CAAC,CAAC;AACpG,MAAM,qBAAqB,GAAG;AAC9B,IAAI,CAAC,sBAAsB,CAAC,iBAAiB,GAAG;AAChD,QAAQ,OAAO,EAAE,uCAAuC;AACxD,KAAK;AACL,IAAI,CAAC,sBAAsB,CAAC,qBAAqB,GAAG;AACpD,QAAQ,OAAO,EAAE,2CAA2C;AAC5D,KAAK;AACL,IAAI,CAAC,sBAAsB,CAAC,WAAW,GAAG;AAC1C,QAAQ,OAAO,EAAE,+BAA+B;AAChD,KAAK;AACL,CAAC;AACD,OAAO,CAAC,MAAM,GAAG,IAAI,QAAQ,CAAC,uBAAuB,EAAE,qBAAqB,CAAC;;"}
1
+ {"version":3,"file":"errorHelpers.js","sources":["../../../src/ServiceWorker/errorHelpers.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.assert = exports.ServiceWorkerErrorCode = void 0;\nconst errors_1 = require(\"../errors\");\nvar ServiceWorkerErrorCode;\n(function (ServiceWorkerErrorCode) {\n ServiceWorkerErrorCode[\"UndefinedInstance\"] = \"UndefinedInstance\";\n ServiceWorkerErrorCode[\"UndefinedRegistration\"] = \"UndefinedRegistration\";\n ServiceWorkerErrorCode[\"Unavailable\"] = \"Unavailable\";\n})(ServiceWorkerErrorCode || (exports.ServiceWorkerErrorCode = ServiceWorkerErrorCode = {}));\nconst serviceWorkerErrorMap = {\n [ServiceWorkerErrorCode.UndefinedInstance]: {\n message: 'Service Worker instance is undefined.',\n },\n [ServiceWorkerErrorCode.UndefinedRegistration]: {\n message: 'Service Worker registration is undefined.',\n },\n [ServiceWorkerErrorCode.Unavailable]: {\n message: 'Service Worker not available.',\n },\n};\nexports.assert = (0, errors_1.createAssertionFunction)(serviceWorkerErrorMap);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,sBAAsB,GAAG,MAAM;AACxD,MAAM,QAAQ,GAAG,OAAO,CAAC,WAAW,CAAC;AACrC,IAAI,sBAAsB;AAC1B,CAAC,UAAU,sBAAsB,EAAE;AACnC,IAAI,sBAAsB,CAAC,mBAAmB,CAAC,GAAG,mBAAmB;AACrE,IAAI,sBAAsB,CAAC,uBAAuB,CAAC,GAAG,uBAAuB;AAC7E,IAAI,sBAAsB,CAAC,aAAa,CAAC,GAAG,aAAa;AACzD,CAAC,EAAE,sBAAsB,KAAK,OAAO,CAAC,sBAAsB,GAAG,sBAAsB,GAAG,EAAE,CAAC,CAAC;AAC5F,MAAM,qBAAqB,GAAG;AAC9B,IAAI,CAAC,sBAAsB,CAAC,iBAAiB,GAAG;AAChD,QAAQ,OAAO,EAAE,uCAAuC;AACxD,KAAK;AACL,IAAI,CAAC,sBAAsB,CAAC,qBAAqB,GAAG;AACpD,QAAQ,OAAO,EAAE,2CAA2C;AAC5D,KAAK;AACL,IAAI,CAAC,sBAAsB,CAAC,WAAW,GAAG;AAC1C,QAAQ,OAAO,EAAE,+BAA+B;AAChD,KAAK;AACL,CAAC;AACD,OAAO,CAAC,MAAM,GAAG,IAAI,QAAQ,CAAC,uBAAuB,EAAE,qBAAqB,CAAC;;"}
@@ -8,7 +8,7 @@ const errors_1 = require("../../errors");
8
8
  var PinpointValidationErrorCode;
9
9
  (function (PinpointValidationErrorCode) {
10
10
  PinpointValidationErrorCode["NoAppId"] = "NoAppId";
11
- })(PinpointValidationErrorCode = exports.PinpointValidationErrorCode || (exports.PinpointValidationErrorCode = {}));
11
+ })(PinpointValidationErrorCode || (exports.PinpointValidationErrorCode = PinpointValidationErrorCode = {}));
12
12
  const pinpointValidationErrorMap = {
13
13
  [PinpointValidationErrorCode.NoAppId]: {
14
14
  message: 'Missing application id.',
@@ -1 +1 @@
1
- {"version":3,"file":"errorHelpers.js","sources":["../../../../src/awsClients/pinpoint/errorHelpers.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.assert = exports.PinpointValidationErrorCode = void 0;\nconst errors_1 = require(\"../../errors\");\nvar PinpointValidationErrorCode;\n(function (PinpointValidationErrorCode) {\n PinpointValidationErrorCode[\"NoAppId\"] = \"NoAppId\";\n})(PinpointValidationErrorCode = exports.PinpointValidationErrorCode || (exports.PinpointValidationErrorCode = {}));\nconst pinpointValidationErrorMap = {\n [PinpointValidationErrorCode.NoAppId]: {\n message: 'Missing application id.',\n },\n};\nexports.assert = (0, errors_1.createAssertionFunction)(pinpointValidationErrorMap);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,2BAA2B,GAAG,MAAM;AAC7D,MAAM,QAAQ,GAAG,OAAO,CAAC,cAAc,CAAC;AACxC,IAAI,2BAA2B;AAC/B,CAAC,UAAU,2BAA2B,EAAE;AACxC,IAAI,2BAA2B,CAAC,SAAS,CAAC,GAAG,SAAS;AACtD,CAAC,EAAE,2BAA2B,GAAG,OAAO,CAAC,2BAA2B,KAAK,OAAO,CAAC,2BAA2B,GAAG,EAAE,CAAC,CAAC;AACnH,MAAM,0BAA0B,GAAG;AACnC,IAAI,CAAC,2BAA2B,CAAC,OAAO,GAAG;AAC3C,QAAQ,OAAO,EAAE,yBAAyB;AAC1C,KAAK;AACL,CAAC;AACD,OAAO,CAAC,MAAM,GAAG,IAAI,QAAQ,CAAC,uBAAuB,EAAE,0BAA0B,CAAC;;"}
1
+ {"version":3,"file":"errorHelpers.js","sources":["../../../../src/awsClients/pinpoint/errorHelpers.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.assert = exports.PinpointValidationErrorCode = void 0;\nconst errors_1 = require(\"../../errors\");\nvar PinpointValidationErrorCode;\n(function (PinpointValidationErrorCode) {\n PinpointValidationErrorCode[\"NoAppId\"] = \"NoAppId\";\n})(PinpointValidationErrorCode || (exports.PinpointValidationErrorCode = PinpointValidationErrorCode = {}));\nconst pinpointValidationErrorMap = {\n [PinpointValidationErrorCode.NoAppId]: {\n message: 'Missing application id.',\n },\n};\nexports.assert = (0, errors_1.createAssertionFunction)(pinpointValidationErrorMap);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,2BAA2B,GAAG,MAAM;AAC7D,MAAM,QAAQ,GAAG,OAAO,CAAC,cAAc,CAAC;AACxC,IAAI,2BAA2B;AAC/B,CAAC,UAAU,2BAA2B,EAAE;AACxC,IAAI,2BAA2B,CAAC,SAAS,CAAC,GAAG,SAAS;AACtD,CAAC,EAAE,2BAA2B,KAAK,OAAO,CAAC,2BAA2B,GAAG,2BAA2B,GAAG,EAAE,CAAC,CAAC;AAC3G,MAAM,0BAA0B,GAAG;AACnC,IAAI,CAAC,2BAA2B,CAAC,OAAO,GAAG;AAC3C,QAAQ,OAAO,EAAE,yBAAyB;AAC1C,KAAK;AACL,CAAC;AACD,OAAO,CAAC,MAAM,GAAG,IAAI,QAAQ,CAAC,uBAAuB,EAAE,0BAA0B,CAAC;;"}
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.createDisableCacheMiddleware = void 0;
7
+ /**
8
+ * A Cognito Identity-specific middleware that disables caching for all requests.
9
+ */
10
+ const createDisableCacheMiddleware = () => next => async function disableCacheMiddleware(request) {
11
+ request.headers['cache-control'] = 'no-store';
12
+ return next(request);
13
+ };
14
+ exports.createDisableCacheMiddleware = createDisableCacheMiddleware;
15
+ //# sourceMappingURL=createDisableCacheMiddleware.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createDisableCacheMiddleware.js","sources":["../../../../../src/foundation/factories/middleware/createDisableCacheMiddleware.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createDisableCacheMiddleware = void 0;\n/**\n * A Cognito Identity-specific middleware that disables caching for all requests.\n */\nconst createDisableCacheMiddleware = () => next => async function disableCacheMiddleware(request) {\n request.headers['cache-control'] = 'no-store';\n return next(request);\n};\nexports.createDisableCacheMiddleware = createDisableCacheMiddleware;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,4BAA4B,GAAG,MAAM;AAC7C;AACA;AACA;AACA,MAAM,4BAA4B,GAAG,MAAM,IAAI,IAAI,eAAe,sBAAsB,CAAC,OAAO,EAAE;AAClG,IAAI,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU;AACjD,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC;AACxB,CAAC;AACD,OAAO,CAAC,4BAA4B,GAAG,4BAA4B;;"}
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.createDisableCacheMiddleware = void 0;
7
+ var createDisableCacheMiddleware_1 = require("./createDisableCacheMiddleware");
8
+ Object.defineProperty(exports, "createDisableCacheMiddleware", { enumerable: true, get: function () { return createDisableCacheMiddleware_1.createDisableCacheMiddleware; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/foundation/factories/middleware/index.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createDisableCacheMiddleware = void 0;\nvar createDisableCacheMiddleware_1 = require(\"./createDisableCacheMiddleware\");\nObject.defineProperty(exports, \"createDisableCacheMiddleware\", { enumerable: true, get: function () { return createDisableCacheMiddleware_1.createDisableCacheMiddleware; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,4BAA4B,GAAG,MAAM;AAC7C,IAAI,8BAA8B,GAAG,OAAO,CAAC,gCAAgC,CAAC;AAC9E,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,8BAA8B,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,8BAA8B,CAAC,4BAA4B,CAAC,EAAE,EAAE,CAAC;;"}
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.cognitoIdentityPoolEndpointResolver = void 0;
7
+ const clients_1 = require("../../../../clients");
8
+ const libraryUtils_1 = require("../../../../libraryUtils");
9
+ const constants_1 = require("./constants");
10
+ const cognitoIdentityPoolEndpointResolver = ({ region, }) => ({
11
+ url: new libraryUtils_1.AmplifyUrl(`https://${constants_1.COGNITO_IDENTITY_SERVICE_NAME}.${region}.${(0, clients_1.getDnsSuffix)(region)}`),
12
+ });
13
+ exports.cognitoIdentityPoolEndpointResolver = cognitoIdentityPoolEndpointResolver;
14
+ //# sourceMappingURL=cognitoIdentityPoolEndpointResolver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cognitoIdentityPoolEndpointResolver.js","sources":["../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/cognitoIdentityPoolEndpointResolver.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.cognitoIdentityPoolEndpointResolver = void 0;\nconst clients_1 = require(\"../../../../clients\");\nconst libraryUtils_1 = require(\"../../../../libraryUtils\");\nconst constants_1 = require(\"./constants\");\nconst cognitoIdentityPoolEndpointResolver = ({ region, }) => ({\n url: new libraryUtils_1.AmplifyUrl(`https://${constants_1.COGNITO_IDENTITY_SERVICE_NAME}.${region}.${(0, clients_1.getDnsSuffix)(region)}`),\n});\nexports.cognitoIdentityPoolEndpointResolver = cognitoIdentityPoolEndpointResolver;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,mCAAmC,GAAG,MAAM;AACpD,MAAM,SAAS,GAAG,OAAO,CAAC,qBAAqB,CAAC;AAChD,MAAM,cAAc,GAAG,OAAO,CAAC,0BAA0B,CAAC;AAC1D,MAAM,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC;AAC1C,MAAM,mCAAmC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM;AAC9D,IAAI,GAAG,EAAE,IAAI,cAAc,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE,WAAW,CAAC,6BAA6B,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,EAAE,IAAI,SAAS,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;AAC/I,CAAC,CAAC;AACF,OAAO,CAAC,mCAAmC,GAAG,mCAAmC;;"}
@@ -0,0 +1,18 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.DEFAULT_SERVICE_CLIENT_API_CONFIG = exports.COGNITO_IDENTITY_SERVICE_NAME = void 0;
7
+ const clients_1 = require("../../../../clients");
8
+ /**
9
+ * The service name used to sign requests if the API requires authentication.
10
+ */
11
+ exports.COGNITO_IDENTITY_SERVICE_NAME = 'cognito-identity';
12
+ exports.DEFAULT_SERVICE_CLIENT_API_CONFIG = {
13
+ service: exports.COGNITO_IDENTITY_SERVICE_NAME,
14
+ retryDecider: (0, clients_1.getRetryDecider)(clients_1.parseJsonError),
15
+ computeDelay: clients_1.jitteredBackoff,
16
+ cache: 'no-store',
17
+ };
18
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sources":["../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/constants.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DEFAULT_SERVICE_CLIENT_API_CONFIG = exports.COGNITO_IDENTITY_SERVICE_NAME = void 0;\nconst clients_1 = require(\"../../../../clients\");\n/**\n * The service name used to sign requests if the API requires authentication.\n */\nexports.COGNITO_IDENTITY_SERVICE_NAME = 'cognito-identity';\nexports.DEFAULT_SERVICE_CLIENT_API_CONFIG = {\n service: exports.COGNITO_IDENTITY_SERVICE_NAME,\n retryDecider: (0, clients_1.getRetryDecider)(clients_1.parseJsonError),\n computeDelay: clients_1.jitteredBackoff,\n cache: 'no-store',\n};\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,iCAAiC,GAAG,OAAO,CAAC,6BAA6B,GAAG,MAAM;AAC1F,MAAM,SAAS,GAAG,OAAO,CAAC,qBAAqB,CAAC;AAChD;AACA;AACA;AACA,OAAO,CAAC,6BAA6B,GAAG,kBAAkB;AAC1D,OAAO,CAAC,iCAAiC,GAAG;AAC5C,IAAI,OAAO,EAAE,OAAO,CAAC,6BAA6B;AAClD,IAAI,YAAY,EAAE,IAAI,SAAS,CAAC,eAAe,EAAE,SAAS,CAAC,cAAc,CAAC;AAC1E,IAAI,YAAY,EAAE,SAAS,CAAC,eAAe;AAC3C,IAAI,KAAK,EAAE,UAAU;AACrB,CAAC;;"}
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.createGetCredentialsForIdentityClient = void 0;
7
+ const clients_1 = require("../../../../clients");
8
+ const internal_1 = require("../../../../clients/internal");
9
+ const Platform_1 = require("../../../../Platform");
10
+ const constants_1 = require("./constants");
11
+ const handler_1 = require("./handler");
12
+ const serde_1 = require("./serde");
13
+ const createGetCredentialsForIdentityClient = (config) => (0, internal_1.composeServiceApi)(handler_1.cognitoIdentityTransferHandler, (0, serde_1.createClientSerializer)('GetCredentialsForIdentity'), getCredentialsForIdentityDeserializer, {
14
+ ...constants_1.DEFAULT_SERVICE_CLIENT_API_CONFIG,
15
+ ...config,
16
+ userAgentValue: (0, Platform_1.getAmplifyUserAgent)(),
17
+ });
18
+ exports.createGetCredentialsForIdentityClient = createGetCredentialsForIdentityClient;
19
+ const getCredentialsForIdentityDeserializer = async (response) => {
20
+ if (response.statusCode >= 300) {
21
+ const error = await (0, clients_1.parseJsonError)(response);
22
+ throw error;
23
+ }
24
+ else {
25
+ const body = await (0, clients_1.parseJsonBody)(response);
26
+ return {
27
+ IdentityId: body.IdentityId,
28
+ Credentials: deserializeCredentials(body.Credentials),
29
+ $metadata: (0, clients_1.parseMetadata)(response),
30
+ };
31
+ }
32
+ };
33
+ const deserializeCredentials = ({ Expiration, ...rest } = {}) => ({
34
+ ...rest,
35
+ Expiration: Expiration && new Date(Expiration * 1000),
36
+ });
37
+ //# sourceMappingURL=createGetCredentialsForIdentityClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createGetCredentialsForIdentityClient.js","sources":["../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/createGetCredentialsForIdentityClient.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createGetCredentialsForIdentityClient = void 0;\nconst clients_1 = require(\"../../../../clients\");\nconst internal_1 = require(\"../../../../clients/internal\");\nconst Platform_1 = require(\"../../../../Platform\");\nconst constants_1 = require(\"./constants\");\nconst handler_1 = require(\"./handler\");\nconst serde_1 = require(\"./serde\");\nconst createGetCredentialsForIdentityClient = (config) => (0, internal_1.composeServiceApi)(handler_1.cognitoIdentityTransferHandler, (0, serde_1.createClientSerializer)('GetCredentialsForIdentity'), getCredentialsForIdentityDeserializer, {\n ...constants_1.DEFAULT_SERVICE_CLIENT_API_CONFIG,\n ...config,\n userAgentValue: (0, Platform_1.getAmplifyUserAgent)(),\n});\nexports.createGetCredentialsForIdentityClient = createGetCredentialsForIdentityClient;\nconst getCredentialsForIdentityDeserializer = async (response) => {\n if (response.statusCode >= 300) {\n const error = await (0, clients_1.parseJsonError)(response);\n throw error;\n }\n else {\n const body = await (0, clients_1.parseJsonBody)(response);\n return {\n IdentityId: body.IdentityId,\n Credentials: deserializeCredentials(body.Credentials),\n $metadata: (0, clients_1.parseMetadata)(response),\n };\n }\n};\nconst deserializeCredentials = ({ Expiration, ...rest } = {}) => ({\n ...rest,\n Expiration: Expiration && new Date(Expiration * 1000),\n});\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,qCAAqC,GAAG,MAAM;AACtD,MAAM,SAAS,GAAG,OAAO,CAAC,qBAAqB,CAAC;AAChD,MAAM,UAAU,GAAG,OAAO,CAAC,8BAA8B,CAAC;AAC1D,MAAM,U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,CAAC;AACzD,CAAC,CAAC;;"}
@@ -0,0 +1,32 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.createGetIdClient = void 0;
7
+ const clients_1 = require("../../../../clients");
8
+ const internal_1 = require("../../../../clients/internal");
9
+ const Platform_1 = require("../../../../Platform");
10
+ const constants_1 = require("./constants");
11
+ const handler_1 = require("./handler");
12
+ const serde_1 = require("./serde");
13
+ const createGetIdClient = (config) => (0, internal_1.composeServiceApi)(handler_1.cognitoIdentityTransferHandler, (0, serde_1.createClientSerializer)('GetId'), getIdDeserializer, {
14
+ ...constants_1.DEFAULT_SERVICE_CLIENT_API_CONFIG,
15
+ ...config,
16
+ userAgentValue: (0, Platform_1.getAmplifyUserAgent)(),
17
+ });
18
+ exports.createGetIdClient = createGetIdClient;
19
+ const getIdDeserializer = async (response) => {
20
+ if (response.statusCode >= 300) {
21
+ const error = await (0, clients_1.parseJsonError)(response);
22
+ throw error;
23
+ }
24
+ else {
25
+ const body = await (0, clients_1.parseJsonBody)(response);
26
+ return {
27
+ IdentityId: body.IdentityId,
28
+ $metadata: (0, clients_1.parseMetadata)(response),
29
+ };
30
+ }
31
+ };
32
+ //# sourceMappingURL=createGetIdClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createGetIdClient.js","sources":["../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/createGetIdClient.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createGetIdClient = void 0;\nconst clients_1 = require(\"../../../../clients\");\nconst internal_1 = require(\"../../../../clients/internal\");\nconst Platform_1 = require(\"../../../../Platform\");\nconst constants_1 = require(\"./constants\");\nconst handler_1 = require(\"./handler\");\nconst serde_1 = require(\"./serde\");\nconst createGetIdClient = (config) => (0, internal_1.composeServiceApi)(handler_1.cognitoIdentityTransferHandler, (0, serde_1.createClientSerializer)('GetId'), getIdDeserializer, {\n ...constants_1.DEFAULT_SERVICE_CLIENT_API_CONFIG,\n ...config,\n userAgentValue: (0, Platform_1.getAmplifyUserAgent)(),\n});\nexports.createGetIdClient = createGetIdClient;\nconst getIdDeserializer = async (response) => {\n if (response.statusCode >= 300) {\n const error = await (0, clients_1.parseJsonError)(response);\n throw error;\n }\n else {\n const body = await (0, clients_1.parseJsonBody)(response);\n return {\n IdentityId: body.IdentityId,\n $metadata: (0, clients_1.parseMetadata)(response),\n };\n }\n};\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,iBAAiB,GAAG,MAAM;AAClC,MAAM,SAAS,GAAG,OAAO,CAAC,qBAAqB,CAAC;AAChD,MAAM,UAAU,GAAG,OAAO,CAAC,8BAA8B,CAAC;AAC1D,MAAM,UAAU,GAAG,OAAO,CAAC,sBAAsB,CAAC;AAClD,MAAM,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC;AAC1C,MAAM,SAAS,GAAG,OAAO,CAAC,WAAW,CAAC;AACtC,MAAM,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC;AAClC,MAAM,iBAAiB,GAAG,CAAC,MAAM,KAAK,IAAI,UAAU,CAAC,iBAAiB,EAAE,SAAS,CAAC,8BAA8B,EAAE,IAAI,OAAO,CAAC,sBAAsB,EAAE,OAAO,CAAC,EAAE,iBAAiB,EAAE;AACnL,IAAI,GAAG,WAAW,CAAC,iCAAiC;AACpD,IAAI,GAAG,MAAM;AACb,IAAI,cAAc,EAAE,IAAI,UAAU,CAAC,mBAAmB,GAAG;AACzD,CAAC,CAAC;AACF,OAAO,CAAC,iBAAiB,GAAG,iBAAiB;AAC7C,MAAM,iBAAiB,GAAG,OAAO,QAAQ,KAAK;AAC9C,IAAI,IAAI,QAAQ,CAAC,UAAU,IAAI,GAAG,EAAE;AACpC,QAAQ,MAAM,KAAK,GAAG,MAAM,IAAI,SAAS,CAAC,cAAc,EAAE,QAAQ,CAAC;AACnE,QAAQ,MAAM,KAAK;AACnB;AACA,SAAS;AACT,QAAQ,MAAM,IAAI,GAAG,MAAM,IAAI,SAAS,CAAC,aAAa,EAAE,QAAQ,CAAC;AACjE,QAAQ,OAAO;AACf,YAAY,UAAU,EAAE,IAAI,CAAC,UAAU;AACvC,YAAY,SAAS,EAAE,IAAI,SAAS,CAAC,aAAa,EAAE,QAAQ,CAAC;AAC7D,SAAS;AACT;AACA,CAAC;;"}
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.cognitoIdentityTransferHandler = void 0;
7
+ const clients_1 = require("../../../../../clients");
8
+ const internal_1 = require("../../../../../clients/internal");
9
+ const middleware_1 = require("../../../middleware");
10
+ /**
11
+ * A Cognito Identity-specific transfer handler that does NOT sign requests, and
12
+ * disables caching.
13
+ *
14
+ * @internal
15
+ */
16
+ exports.cognitoIdentityTransferHandler = (0, internal_1.composeTransferHandler)(clients_1.unauthenticatedHandler, [middleware_1.createDisableCacheMiddleware]);
17
+ //# sourceMappingURL=cognitoIdentityTransferHandler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cognitoIdentityTransferHandler.js","sources":["../../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/handler/cognitoIdentityTransferHandler.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.cognitoIdentityTransferHandler = void 0;\nconst clients_1 = require(\"../../../../../clients\");\nconst internal_1 = require(\"../../../../../clients/internal\");\nconst middleware_1 = require(\"../../../middleware\");\n/**\n * A Cognito Identity-specific transfer handler that does NOT sign requests, and\n * disables caching.\n *\n * @internal\n */\nexports.cognitoIdentityTransferHandler = (0, internal_1.composeTransferHandler)(clients_1.unauthenticatedHandler, [middleware_1.createDisableCacheMiddleware]);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,8BAA8B,GAAG,MAAM;AAC/C,MAAM,SAAS,GAAG,OAAO,CAAC,wBAAwB,CAAC;AACnD,MAAM,UAAU,GAAG,OAAO,CAAC,iCAAiC,CAAC;AAC7D,MAAM,YAAY,GAAG,OAAO,CAAC,qBAAqB,CAAC;AACnD;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,CAAC,8BAA8B,GAAG,IAAI,UAAU,CAAC,sBAAsB,EAAE,SAAS,CAAC,sBAAsB,EAAE,CAAC,YAAY,CAAC,4BAA4B,CAAC,CAAC;;"}
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.cognitoIdentityTransferHandler = void 0;
7
+ var cognitoIdentityTransferHandler_1 = require("./cognitoIdentityTransferHandler");
8
+ Object.defineProperty(exports, "cognitoIdentityTransferHandler", { enumerable: true, get: function () { return cognitoIdentityTransferHandler_1.cognitoIdentityTransferHandler; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/handler/index.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.cognitoIdentityTransferHandler = void 0;\nvar cognitoIdentityTransferHandler_1 = require(\"./cognitoIdentityTransferHandler\");\nObject.defineProperty(exports, \"cognitoIdentityTransferHandler\", { enumerable: true, get: function () { return cognitoIdentityTransferHandler_1.cognitoIdentityTransferHandler; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,8BAA8B,GAAG,MAAM;AAC/C,IAAI,gCAAgC,GAAG,OAAO,CAAC,kCAAkC,CAAC;AAClF,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,gCAAgC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,gCAAgC,CAAC,8BAA8B,CAAC,EAAE,EAAE,CAAC;;"}
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.cognitoIdentityPoolEndpointResolver = exports.createGetIdClient = exports.createGetCredentialsForIdentityClient = void 0;
7
+ var createGetCredentialsForIdentityClient_1 = require("./createGetCredentialsForIdentityClient");
8
+ Object.defineProperty(exports, "createGetCredentialsForIdentityClient", { enumerable: true, get: function () { return createGetCredentialsForIdentityClient_1.createGetCredentialsForIdentityClient; } });
9
+ var createGetIdClient_1 = require("./createGetIdClient");
10
+ Object.defineProperty(exports, "createGetIdClient", { enumerable: true, get: function () { return createGetIdClient_1.createGetIdClient; } });
11
+ var cognitoIdentityPoolEndpointResolver_1 = require("./cognitoIdentityPoolEndpointResolver");
12
+ Object.defineProperty(exports, "cognitoIdentityPoolEndpointResolver", { enumerable: true, get: function () { return cognitoIdentityPoolEndpointResolver_1.cognitoIdentityPoolEndpointResolver; } });
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/index.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.cognitoIdentityPoolEndpointResolver = exports.createGetIdClient = exports.createGetCredentialsForIdentityClient = void 0;\nvar createGetCredentialsForIdentityClient_1 = require(\"./createGetCredentialsForIdentityClient\");\nObject.defineProperty(exports, \"createGetCredentialsForIdentityClient\", { enumerable: true, get: function () { return createGetCredentialsForIdentityClient_1.createGetCredentialsForIdentityClient; } });\nvar createGetIdClient_1 = require(\"./createGetIdClient\");\nObject.defineProperty(exports, \"createGetIdClient\", { enumerable: true, get: function () { return createGetIdClient_1.createGetIdClient; } });\nvar cognitoIdentityPoolEndpointResolver_1 = require(\"./cognitoIdentityPoolEndpointResolver\");\nObject.defineProperty(exports, \"cognitoIdentityPoolEndpointResolver\", { enumerable: true, get: function () { return cognitoIdentityPoolEndpointResolver_1.cognitoIdentityPoolEndpointResolver; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,mCAAmC,GAAG,OAAO,CAAC,iBAAiB,GAAG,OAAO,CAAC,qCAAqC,GAAG,MAAM;AAChI,IAAI,uCAAuC,GAAG,OAAO,CAAC,yCAAyC,CAAC;AAChG,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,uCAAuC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,uCAAuC,CAAC,qCAAqC,CAAC,EAAE,EAAE,CAAC;AACzM,IAAI,mBAAmB,GAAG,OAAO,CAAC,qBAAqB,CAAC;AACxD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,mBAAmB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,mBAAmB,CAAC,iBAAiB,CAAC,EAAE,EAAE,CAAC;AAC7I,IAAI,qCAAqC,GAAG,OAAO,CAAC,uCAAuC,CAAC;AAC5F,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,qCAAqC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,qCAAqC,CAAC,mCAAmC,CAAC,EAAE,EAAE,CAAC;;"}
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.buildHttpRpcRequest = exports.createClientSerializer = void 0;
7
+ const createClientSerializer = (operation) => (input, endpoint) => {
8
+ const headers = getSharedHeaders(operation);
9
+ const body = JSON.stringify(input);
10
+ return (0, exports.buildHttpRpcRequest)(endpoint, headers, body);
11
+ };
12
+ exports.createClientSerializer = createClientSerializer;
13
+ const getSharedHeaders = (operation) => ({
14
+ 'content-type': 'application/x-amz-json-1.1',
15
+ 'x-amz-target': `AWSCognitoIdentityService.${operation}`,
16
+ });
17
+ const buildHttpRpcRequest = ({ url }, headers, body) => ({
18
+ headers,
19
+ url,
20
+ body,
21
+ method: 'POST',
22
+ });
23
+ exports.buildHttpRpcRequest = buildHttpRpcRequest;
24
+ //# sourceMappingURL=createClientSerializer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createClientSerializer.js","sources":["../../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/serde/createClientSerializer.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.buildHttpRpcRequest = exports.createClientSerializer = void 0;\nconst createClientSerializer = (operation) => (input, endpoint) => {\n const headers = getSharedHeaders(operation);\n const body = JSON.stringify(input);\n return (0, exports.buildHttpRpcRequest)(endpoint, headers, body);\n};\nexports.createClientSerializer = createClientSerializer;\nconst getSharedHeaders = (operation) => ({\n 'content-type': 'application/x-amz-json-1.1',\n 'x-amz-target': `AWSCognitoIdentityService.${operation}`,\n});\nconst buildHttpRpcRequest = ({ url }, headers, body) => ({\n headers,\n url,\n body,\n method: 'POST',\n});\nexports.buildHttpRpcRequest = buildHttpRpcRequest;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,mBAAmB,GAAG,OAAO,CAAC,sBAAsB,GAAG,MAAM;AACrE,MAAM,sBAAsB,GAAG,CAAC,SAAS,KAAK,CAAC,KAAK,EAAE,QAAQ,KAAK;AACnE,IAAI,MAAM,OAAO,GAAG,gBAAgB,CAAC,SAAS,CAAC;AAC/C,IAAI,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;AACtC,IAAI,OAAO,IAAI,OAAO,CAAC,mBAAmB,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,CAAC;AACpE,CAAC;AACD,OAAO,CAAC,sBAAsB,GAAG,sBAAsB;AACvD,MAAM,gBAAgB,GAAG,CAAC,SAAS,MAAM;AACzC,IAAI,cAAc,EAAE,4BAA4B;AAChD,IAAI,cAAc,EAAE,CAAC,0BAA0B,EAAE,SAAS,CAAC,CAAC;AAC5D,CAAC,CAAC;AACF,MAAM,mBAAmB,GAAG,CAAC,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,IAAI,MAAM;AACzD,IAAI,OAAO;AACX,IAAI,GAAG;AACP,IAAI,IAAI;AACR,IAAI,MAAM,EAAE,MAAM;AAClB,CAAC,CAAC;AACF,OAAO,CAAC,mBAAmB,GAAG,mBAAmB;;"}
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.createClientSerializer = void 0;
7
+ var createClientSerializer_1 = require("./createClientSerializer");
8
+ Object.defineProperty(exports, "createClientSerializer", { enumerable: true, get: function () { return createClientSerializer_1.createClientSerializer; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/serde/index.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createClientSerializer = void 0;\nvar createClientSerializer_1 = require(\"./createClientSerializer\");\nObject.defineProperty(exports, \"createClientSerializer\", { enumerable: true, get: function () { return createClientSerializer_1.createClientSerializer; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,sBAAsB,GAAG,MAAM;AACvC,IAAI,wBAAwB,GAAG,OAAO,CAAC,0BAA0B,CAAC;AAClE,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,wBAAwB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,wBAAwB,CAAC,sBAAsB,CAAC,EAAE,EAAE,CAAC;;"}
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const tslib_1 = require("tslib");
7
+ tslib_1.__exportStar(require("./sdk"), exports);
8
+ tslib_1.__exportStar(require("./serviceClient"), exports);
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/types/index.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst tslib_1 = require(\"tslib\");\ntslib_1.__exportStar(require(\"./sdk\"), exports);\ntslib_1.__exportStar(require(\"./serviceClient\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;AAChC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;AAC/C,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;;"}
@@ -3,4 +3,4 @@
3
3
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
4
  // SPDX-License-Identifier: Apache-2.0
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- //# sourceMappingURL=types.js.map
6
+ //# sourceMappingURL=sdk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdk.js","sources":["../../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/types/sdk.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;"}
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=serviceClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serviceClient.js","sources":["../../../../../../../src/foundation/factories/serviceClients/cognitoIdentity/types/serviceClient.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;"}