@aws-amplify/core 6.4.3 → 6.4.4-unstable.541e463.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.
- package/dist/cjs/Platform/index.js +8 -3
- package/dist/cjs/Platform/index.js.map +1 -1
- package/dist/cjs/Platform/types.js +12 -1
- package/dist/cjs/Platform/types.js.map +1 -1
- package/dist/cjs/Platform/version.js +1 -1
- package/dist/cjs/Platform/version.js.map +1 -1
- package/dist/cjs/libraryUtils.js +3 -2
- package/dist/cjs/libraryUtils.js.map +1 -1
- package/dist/esm/Platform/index.d.ts +2 -0
- package/dist/esm/Platform/index.mjs +7 -3
- package/dist/esm/Platform/index.mjs.map +1 -1
- package/dist/esm/Platform/types.d.ts +19 -2
- package/dist/esm/Platform/types.mjs +13 -1
- package/dist/esm/Platform/types.mjs.map +1 -1
- package/dist/esm/Platform/version.d.ts +1 -1
- package/dist/esm/Platform/version.mjs +1 -1
- package/dist/esm/Platform/version.mjs.map +1 -1
- package/dist/esm/libraryUtils.d.ts +1 -1
- package/dist/esm/libraryUtils.mjs +1 -1
- package/dist/esm/singleton/Amplify.mjs +1 -1
- package/package.json +3 -3
- package/src/Platform/index.ts +9 -2
- package/src/Platform/types.ts +22 -1
- package/src/Platform/version.ts +1 -1
- package/src/libraryUtils.ts +2 -0
|
@@ -3,15 +3,18 @@
|
|
|
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
|
-
exports.getAmplifyUserAgent = exports.getAmplifyUserAgentObject = exports.Platform = void 0;
|
|
6
|
+
exports.getAmplifyUserAgent = exports.getAmplifyUserAgentObject = exports.Platform = exports.sanitizeAmplifyVersion = void 0;
|
|
7
7
|
const types_1 = require("./types");
|
|
8
8
|
const version_1 = require("./version");
|
|
9
9
|
const detectFramework_1 = require("./detectFramework");
|
|
10
10
|
const customUserAgent_1 = require("./customUserAgent");
|
|
11
11
|
const BASE_USER_AGENT = `aws-amplify`;
|
|
12
|
+
/** Sanitize Amplify version string be removing special character + and character post the special character */
|
|
13
|
+
const sanitizeAmplifyVersion = (amplifyVersion) => amplifyVersion.replace(/\+.*/, '');
|
|
14
|
+
exports.sanitizeAmplifyVersion = sanitizeAmplifyVersion;
|
|
12
15
|
class PlatformBuilder {
|
|
13
16
|
constructor() {
|
|
14
|
-
this.userAgent = `${BASE_USER_AGENT}/${version_1.version}`;
|
|
17
|
+
this.userAgent = `${BASE_USER_AGENT}/${(0, exports.sanitizeAmplifyVersion)(version_1.version)}`;
|
|
15
18
|
}
|
|
16
19
|
get framework() {
|
|
17
20
|
return (0, detectFramework_1.detectFramework)();
|
|
@@ -26,7 +29,9 @@ class PlatformBuilder {
|
|
|
26
29
|
}
|
|
27
30
|
exports.Platform = new PlatformBuilder();
|
|
28
31
|
const getAmplifyUserAgentObject = ({ category, action, } = {}) => {
|
|
29
|
-
const userAgent = [
|
|
32
|
+
const userAgent = [
|
|
33
|
+
[BASE_USER_AGENT, (0, exports.sanitizeAmplifyVersion)(version_1.version)],
|
|
34
|
+
];
|
|
30
35
|
if (category) {
|
|
31
36
|
userAgent.push([category, action]);
|
|
32
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/Platform/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.getAmplifyUserAgent = exports.getAmplifyUserAgentObject = exports.Platform = void 0;\nconst types_1 = require(\"./types\");\nconst version_1 = require(\"./version\");\nconst detectFramework_1 = require(\"./detectFramework\");\nconst customUserAgent_1 = require(\"./customUserAgent\");\nconst BASE_USER_AGENT = `aws-amplify`;\nclass PlatformBuilder {\n constructor() {\n this.userAgent = `${BASE_USER_AGENT}/${version_1.version}`;\n }\n get framework() {\n return (0, detectFramework_1.detectFramework)();\n }\n get isReactNative() {\n return (this.framework === types_1.Framework.ReactNative ||\n this.framework === types_1.Framework.Expo);\n }\n observeFrameworkChanges(fcn) {\n (0, detectFramework_1.observeFrameworkChanges)(fcn);\n }\n}\nexports.Platform = new PlatformBuilder();\nconst getAmplifyUserAgentObject = ({ category, action, } = {}) => {\n const userAgent = [[BASE_USER_AGENT, version_1.version]];\n if (category) {\n userAgent.push([category, action]);\n }\n userAgent.push(['framework', (0, detectFramework_1.detectFramework)()]);\n if (category && action) {\n const customState = (0, customUserAgent_1.getCustomUserAgent)(category, action);\n if (customState) {\n customState.forEach(state => {\n userAgent.push(state);\n });\n }\n }\n return userAgent;\n};\nexports.getAmplifyUserAgentObject = getAmplifyUserAgentObject;\nconst getAmplifyUserAgent = (customUserAgentDetails) => {\n const userAgent = (0, exports.getAmplifyUserAgentObject)(customUserAgentDetails);\n const userAgentString = userAgent\n .map(([agentKey, agentValue]) => agentKey && agentValue ? `${agentKey}/${agentValue}` : agentKey)\n .join(' ');\n return userAgentString;\n};\nexports.getAmplifyUserAgent = getAmplifyUserAgent;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,mBAAmB,GAAG,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,QAAQ,GAAG,KAAK,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/Platform/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.getAmplifyUserAgent = exports.getAmplifyUserAgentObject = exports.Platform = exports.sanitizeAmplifyVersion = void 0;\nconst types_1 = require(\"./types\");\nconst version_1 = require(\"./version\");\nconst detectFramework_1 = require(\"./detectFramework\");\nconst customUserAgent_1 = require(\"./customUserAgent\");\nconst BASE_USER_AGENT = `aws-amplify`;\n/** Sanitize Amplify version string be removing special character + and character post the special character */\nconst sanitizeAmplifyVersion = (amplifyVersion) => amplifyVersion.replace(/\\+.*/, '');\nexports.sanitizeAmplifyVersion = sanitizeAmplifyVersion;\nclass PlatformBuilder {\n constructor() {\n this.userAgent = `${BASE_USER_AGENT}/${(0, exports.sanitizeAmplifyVersion)(version_1.version)}`;\n }\n get framework() {\n return (0, detectFramework_1.detectFramework)();\n }\n get isReactNative() {\n return (this.framework === types_1.Framework.ReactNative ||\n this.framework === types_1.Framework.Expo);\n }\n observeFrameworkChanges(fcn) {\n (0, detectFramework_1.observeFrameworkChanges)(fcn);\n }\n}\nexports.Platform = new PlatformBuilder();\nconst getAmplifyUserAgentObject = ({ category, action, } = {}) => {\n const userAgent = [\n [BASE_USER_AGENT, (0, exports.sanitizeAmplifyVersion)(version_1.version)],\n ];\n if (category) {\n userAgent.push([category, action]);\n }\n userAgent.push(['framework', (0, detectFramework_1.detectFramework)()]);\n if (category && action) {\n const customState = (0, customUserAgent_1.getCustomUserAgent)(category, action);\n if (customState) {\n customState.forEach(state => {\n userAgent.push(state);\n });\n }\n }\n return userAgent;\n};\nexports.getAmplifyUserAgentObject = getAmplifyUserAgentObject;\nconst getAmplifyUserAgent = (customUserAgentDetails) => {\n const userAgent = (0, exports.getAmplifyUserAgentObject)(customUserAgentDetails);\n const userAgentString = userAgent\n .map(([agentKey, agentValue]) => agentKey && agentValue ? `${agentKey}/${agentValue}` : agentKey)\n .join(' ');\n return userAgentString;\n};\nexports.getAmplifyUserAgent = getAmplifyUserAgent;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,mBAAmB,GAAG,OAAO,CAAC,yBAAyB,GAAG,OAAO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F,OAAO,CAAC,mBAAmB,GAAG,mBAAmB;;"}
|
|
@@ -3,7 +3,7 @@
|
|
|
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
|
-
exports.StorageAction = exports.PushNotificationAction = exports.PubSubAction = exports.PredictionsAction = exports.InteractionsAction = exports.InAppMessagingAction = exports.GeoAction = exports.DataStoreAction = exports.AuthAction = exports.ApiAction = exports.AnalyticsAction = exports.Category = exports.Framework = void 0;
|
|
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
7
|
(function (Framework) {
|
|
8
8
|
// < 100 - Web frameworks
|
|
9
9
|
Framework["WebUnknown"] = "0";
|
|
@@ -26,6 +26,7 @@ exports.StorageAction = exports.PushNotificationAction = exports.PubSubAction =
|
|
|
26
26
|
Framework["Expo"] = "202";
|
|
27
27
|
})(exports.Framework || (exports.Framework = {}));
|
|
28
28
|
(function (Category) {
|
|
29
|
+
Category["AI"] = "ai";
|
|
29
30
|
Category["API"] = "api";
|
|
30
31
|
Category["Auth"] = "auth";
|
|
31
32
|
Category["Analytics"] = "analytics";
|
|
@@ -38,6 +39,16 @@ exports.StorageAction = exports.PushNotificationAction = exports.PubSubAction =
|
|
|
38
39
|
Category["PushNotification"] = "pushnotification";
|
|
39
40
|
Category["Storage"] = "storage";
|
|
40
41
|
})(exports.Category || (exports.Category = {}));
|
|
42
|
+
(function (AiAction) {
|
|
43
|
+
AiAction["CreateConversation"] = "1";
|
|
44
|
+
AiAction["GetConversation"] = "2";
|
|
45
|
+
AiAction["ListConversations"] = "3";
|
|
46
|
+
AiAction["DeleteConversation"] = "4";
|
|
47
|
+
AiAction["SendMessage"] = "5";
|
|
48
|
+
AiAction["ListMessages"] = "6";
|
|
49
|
+
AiAction["OnMessage"] = "7";
|
|
50
|
+
AiAction["Generation"] = "8";
|
|
51
|
+
})(exports.AiAction || (exports.AiAction = {}));
|
|
41
52
|
(function (AnalyticsAction) {
|
|
42
53
|
AnalyticsAction["Record"] = "1";
|
|
43
54
|
AnalyticsAction["IdentifyUser"] = "2";
|
|
@@ -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.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[\"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 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 = 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 = exports.StorageAction || (exports.StorageAction = {}));\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,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,SAAS,GAAG,KAAK,CAAC,CAAC;AAEvU,CAAC,UAAU,SAAS,EAAE;AACtB;AACA,IAAI,SAAS,CAAC,YAAY,CAAC,GAAG,GAAG,CAAC;AAClC,IAAI,SAAS,CAAC,OAAO,CAAC,GAAG,GAAG,CAAC;AAC7B,IAAI,SAAS,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC;AAC9B,IAAI,SAAS,CAAC,SAAS,CAAC,GAAG,GAAG,CAAC;AAC/B,IAAI,SAAS,CAAC,OAAO,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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 || (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 = 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 = 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 = exports.StorageAction || (exports.StorageAction = {}));\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,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,KAAK,CAAC,CAAC;AAE1V,CAAC,UAAU,SAAS,EAAE;AACtB;AACA,IAAI,SAAS,CAAC,YAAY,CAAC,GAAG,GAAG,CAAC;AAClC,IAAI,SAAS,CAAC,OAAO,CAAC,GAAG,GAAG,CAAC;AAC7B,IAAI,SAAS,CAAC,QAAQ,CA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AAO,CAAC,YAAY,GAAG,EAAE,CAAC,CAAC,CAAC;AAEvE,CAAC,UAAU,sBAAsB,EAAE;AACnC,IAAI,sBAAsB,CAAC,6BAA6B,CAAC,GAAG,GAAG,CAAC;AAChE,IAAI,sBAAsB,CAAC,cAAc,CAAC,GAAG,GAAG,CAAC;AACjD,CAAC,EAA2B,OAAO,CAAC,sBAAsB,KAAK,OAAO,CAAC,sBAAsB,GAAG,EAAE,CAAC,CAAC,CAAC;AAErG,CAAC,UAAU,aAAa,EAAE;AAC1B,IAAI,aAAa,CAAC,YAAY,CAAC,GAAG,GAAG,CAAC;AACtC,IAAI,aAAa,CAAC,cAAc,CAAC,GAAG,GAAG,CAAC;AACxC,IAAI,aAAa,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC;AAChC,IAAI,aAAa,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC;AAChC,IAAI,aAAa,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC;AAClC,IAAI,aAAa,CAAC,eAAe,CAAC,GAAG,GAAG,CAAC;AACzC,IAAI,aAAa,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC;AAClC,CAAC,EAAkB,OAAO,CAAC,aAAa,KAAK,OAAO,CAAC,aAAa,GAAG,EAAE,CAAC,CAAC;;"}
|
|
@@ -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.6.
|
|
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.6.4-unstable.541e463.0+541e463';\n"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC;AACzB;AACA,OAAO,CAAC,OAAO,GAAG,kCAAkC;;"}
|
package/dist/cjs/libraryUtils.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
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
|
-
exports.
|
|
7
|
-
exports.SESSION_STOP_EVENT = exports.SESSION_START_EVENT = exports.sessionListener = exports.HubInternal = exports.WordArray = exports.cryptoSecureRandomInt = exports.getCrypto = exports.base64Encoder = exports.base64Decoder = exports.AMPLIFY_SYMBOL = exports.fetchAuthSession = exports.USER_AGENT_HEADER = exports.Reachability = exports.Mutex = exports.BackgroundProcessManager = void 0;
|
|
6
|
+
exports.ApiError = exports.createAssertionFunction = exports.PlatformNotSupportedError = exports.AmplifyError = exports.setCustomUserAgent = exports.StorageAction = exports.PushNotificationAction = exports.PubSubAction = exports.PredictionsAction = exports.InAppMessagingAction = exports.InteractionsAction = exports.GeoAction = exports.Framework = exports.DataStoreAction = exports.Category = exports.AnalyticsAction = exports.AuthAction = exports.ApiAction = exports.AiAction = exports.getAmplifyUserAgent = exports.getAmplifyUserAgentObject = exports.Platform = exports.haveCredentialsChanged = exports.Signer = exports.isTokenExpired = exports.assertOAuthConfig = exports.assertIdentityPoolIdConfig = exports.assertTokenProviderConfig = exports.decodeJWT = exports.getDeviceName = exports.getClientInfo = exports.parseAmplifyConfig = exports.AmplifyUrlSearchParams = exports.AmplifyUrl = exports.amplifyUuid = exports.ADD_OAUTH_LISTENER = exports.parseAmplifyOutputs = exports.isAmplifyOutputs = exports.parseAWSExports = exports.deDupeAsyncFunction = exports.urlSafeEncode = exports.urlSafeDecode = exports.retry = exports.NonRetryableError = exports.jitteredExponentialRetry = exports.jitteredBackoff = exports.isWebWorker = exports.isNonRetryableError = exports.isBrowser = exports.generateRandomString = void 0;
|
|
7
|
+
exports.SESSION_STOP_EVENT = exports.SESSION_START_EVENT = exports.sessionListener = exports.HubInternal = exports.WordArray = exports.cryptoSecureRandomInt = exports.getCrypto = exports.base64Encoder = exports.base64Decoder = exports.AMPLIFY_SYMBOL = exports.fetchAuthSession = exports.USER_AGENT_HEADER = exports.Reachability = exports.Mutex = exports.BackgroundProcessManager = exports.AmplifyErrorCode = void 0;
|
|
8
8
|
/*
|
|
9
9
|
This file maps top-level exports from `@aws-amplify/core/internals/utils`. These are intended to be internal
|
|
10
10
|
utils for use throughout the library.
|
|
@@ -58,6 +58,7 @@ Object.defineProperty(exports, "Platform", { enumerable: true, get: function ()
|
|
|
58
58
|
Object.defineProperty(exports, "getAmplifyUserAgentObject", { enumerable: true, get: function () { return Platform_1.getAmplifyUserAgentObject; } });
|
|
59
59
|
Object.defineProperty(exports, "getAmplifyUserAgent", { enumerable: true, get: function () { return Platform_1.getAmplifyUserAgent; } });
|
|
60
60
|
var types_1 = require("./Platform/types");
|
|
61
|
+
Object.defineProperty(exports, "AiAction", { enumerable: true, get: function () { return types_1.AiAction; } });
|
|
61
62
|
Object.defineProperty(exports, "ApiAction", { enumerable: true, get: function () { return types_1.ApiAction; } });
|
|
62
63
|
Object.defineProperty(exports, "AuthAction", { enumerable: true, get: function () { return types_1.AuthAction; } });
|
|
63
64
|
Object.defineProperty(exports, "AnalyticsAction", { enumerable: true, get: function () { return types_1.AnalyticsAction; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libraryUtils.js","sources":["../../src/libraryUtils.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.AmplifyErrorCode = exports.ApiError = exports.createAssertionFunction = exports.PlatformNotSupportedError = exports.AmplifyError = exports.setCustomUserAgent = exports.StorageAction = exports.PushNotificationAction = exports.PubSubAction = exports.PredictionsAction = exports.InAppMessagingAction = exports.InteractionsAction = exports.GeoAction = exports.Framework = exports.DataStoreAction = exports.Category = exports.AnalyticsAction = exports.AuthAction = exports.ApiAction = exports.getAmplifyUserAgent = exports.getAmplifyUserAgentObject = exports.Platform = exports.haveCredentialsChanged = exports.Signer = exports.isTokenExpired = exports.assertOAuthConfig = exports.assertIdentityPoolIdConfig = exports.assertTokenProviderConfig = exports.decodeJWT = exports.getDeviceName = exports.getClientInfo = exports.parseAmplifyConfig = exports.AmplifyUrlSearchParams = exports.AmplifyUrl = exports.amplifyUuid = exports.ADD_OAUTH_LISTENER = exports.parseAmplifyOutputs = exports.isAmplifyOutputs = exports.parseAWSExports = exports.deDupeAsyncFunction = exports.urlSafeEncode = exports.urlSafeDecode = exports.retry = exports.NonRetryableError = exports.jitteredExponentialRetry = exports.jitteredBackoff = exports.isWebWorker = exports.isNonRetryableError = exports.isBrowser = exports.generateRandomString = void 0;\nexports.SESSION_STOP_EVENT = exports.SESSION_START_EVENT = exports.sessionListener = exports.HubInternal = exports.WordArray = exports.cryptoSecureRandomInt = exports.getCrypto = exports.base64Encoder = exports.base64Decoder = exports.AMPLIFY_SYMBOL = exports.fetchAuthSession = exports.USER_AGENT_HEADER = exports.Reachability = exports.Mutex = exports.BackgroundProcessManager = void 0;\n/*\nThis file maps top-level exports from `@aws-amplify/core/internals/utils`. These are intended to be internal\nutils for use throughout the library.\n*/\n// Core utilities\nvar utils_1 = require(\"./utils\");\nObject.defineProperty(exports, \"generateRandomString\", { enumerable: true, get: function () { return utils_1.generateRandomString; } });\nObject.defineProperty(exports, \"isBrowser\", { enumerable: true, get: function () { return utils_1.isBrowser; } });\nObject.defineProperty(exports, \"isNonRetryableError\", { enumerable: true, get: function () { return utils_1.isNonRetryableError; } });\nObject.defineProperty(exports, \"isWebWorker\", { enumerable: true, get: function () { return utils_1.isWebWorker; } });\nObject.defineProperty(exports, \"jitteredBackoff\", { enumerable: true, get: function () { return utils_1.jitteredBackoff; } });\nObject.defineProperty(exports, \"jitteredExponentialRetry\", { enumerable: true, get: function () { return utils_1.jitteredExponentialRetry; } });\nObject.defineProperty(exports, \"NonRetryableError\", { enumerable: true, get: function () { return utils_1.NonRetryableError; } });\nObject.defineProperty(exports, \"retry\", { enumerable: true, get: function () { return utils_1.retry; } });\nObject.defineProperty(exports, \"urlSafeDecode\", { enumerable: true, get: function () { return utils_1.urlSafeDecode; } });\nObject.defineProperty(exports, \"urlSafeEncode\", { enumerable: true, get: function () { return utils_1.urlSafeEncode; } });\nObject.defineProperty(exports, \"deDupeAsyncFunction\", { enumerable: true, get: function () { return utils_1.deDupeAsyncFunction; } });\nvar parseAWSExports_1 = require(\"./parseAWSExports\");\nObject.defineProperty(exports, \"parseAWSExports\", { enumerable: true, get: function () { return parseAWSExports_1.parseAWSExports; } });\nvar parseAmplifyOutputs_1 = require(\"./parseAmplifyOutputs\");\nObject.defineProperty(exports, \"isAmplifyOutputs\", { enumerable: true, get: function () { return parseAmplifyOutputs_1.isAmplifyOutputs; } });\nObject.defineProperty(exports, \"parseAmplifyOutputs\", { enumerable: true, get: function () { return parseAmplifyOutputs_1.parseAmplifyOutputs; } });\nvar constants_1 = require(\"./singleton/constants\");\nObject.defineProperty(exports, \"ADD_OAUTH_LISTENER\", { enumerable: true, get: function () { return constants_1.ADD_OAUTH_LISTENER; } });\nvar amplifyUuid_1 = require(\"./utils/amplifyUuid\");\nObject.defineProperty(exports, \"amplifyUuid\", { enumerable: true, get: function () { return amplifyUuid_1.amplifyUuid; } });\nvar amplifyUrl_1 = require(\"./utils/amplifyUrl\");\nObject.defineProperty(exports, \"AmplifyUrl\", { enumerable: true, get: function () { return amplifyUrl_1.AmplifyUrl; } });\nObject.defineProperty(exports, \"AmplifyUrlSearchParams\", { enumerable: true, get: function () { return amplifyUrl_1.AmplifyUrlSearchParams; } });\nvar parseAmplifyConfig_1 = require(\"./utils/parseAmplifyConfig\");\nObject.defineProperty(exports, \"parseAmplifyConfig\", { enumerable: true, get: function () { return parseAmplifyConfig_1.parseAmplifyConfig; } });\nvar utils_2 = require(\"./utils\");\nObject.defineProperty(exports, \"getClientInfo\", { enumerable: true, get: function () { return utils_2.getClientInfo; } });\nvar deviceName_1 = require(\"./utils/deviceName\");\nObject.defineProperty(exports, \"getDeviceName\", { enumerable: true, get: function () { return deviceName_1.getDeviceName; } });\n// Auth utilities\nvar utils_3 = require(\"./singleton/Auth/utils\");\nObject.defineProperty(exports, \"decodeJWT\", { enumerable: true, get: function () { return utils_3.decodeJWT; } });\nObject.defineProperty(exports, \"assertTokenProviderConfig\", { enumerable: true, get: function () { return utils_3.assertTokenProviderConfig; } });\nObject.defineProperty(exports, \"assertIdentityPoolIdConfig\", { enumerable: true, get: function () { return utils_3.assertIdentityPoolIdConfig; } });\nObject.defineProperty(exports, \"assertOAuthConfig\", { enumerable: true, get: function () { return utils_3.assertOAuthConfig; } });\nvar Auth_1 = require(\"./singleton/Auth\");\nObject.defineProperty(exports, \"isTokenExpired\", { enumerable: true, get: function () { return Auth_1.isTokenExpired; } });\nvar Signer_1 = require(\"./Signer\");\nObject.defineProperty(exports, \"Signer\", { enumerable: true, get: function () { return Signer_1.Signer; } });\nvar haveCredentialsChanged_1 = require(\"./utils/haveCredentialsChanged\");\nObject.defineProperty(exports, \"haveCredentialsChanged\", { enumerable: true, get: function () { return haveCredentialsChanged_1.haveCredentialsChanged; } });\n// Platform & user-agent utilities\nvar Platform_1 = require(\"./Platform\");\nObject.defineProperty(exports, \"Platform\", { enumerable: true, get: function () { return Platform_1.Platform; } });\nObject.defineProperty(exports, \"getAmplifyUserAgentObject\", { enumerable: true, get: function () { return Platform_1.getAmplifyUserAgentObject; } });\nObject.defineProperty(exports, \"getAmplifyUserAgent\", { enumerable: true, get: function () { return Platform_1.getAmplifyUserAgent; } });\nvar types_1 = require(\"./Platform/types\");\nObject.defineProperty(exports, \"ApiAction\", { enumerable: true, get: function () { return types_1.ApiAction; } });\nObject.defineProperty(exports, \"AuthAction\", { enumerable: true, get: function () { return types_1.AuthAction; } });\nObject.defineProperty(exports, \"AnalyticsAction\", { enumerable: true, get: function () { return types_1.AnalyticsAction; } });\nObject.defineProperty(exports, \"Category\", { enumerable: true, get: function () { return types_1.Category; } });\nObject.defineProperty(exports, \"DataStoreAction\", { enumerable: true, get: function () { return types_1.DataStoreAction; } });\nObject.defineProperty(exports, \"Framework\", { enumerable: true, get: function () { return types_1.Framework; } });\nObject.defineProperty(exports, \"GeoAction\", { enumerable: true, get: function () { return types_1.GeoAction; } });\nObject.defineProperty(exports, \"InteractionsAction\", { enumerable: true, get: function () { return types_1.InteractionsAction; } });\nObject.defineProperty(exports, \"InAppMessagingAction\", { enumerable: true, get: function () { return types_1.InAppMessagingAction; } });\nObject.defineProperty(exports, \"PredictionsAction\", { enumerable: true, get: function () { return types_1.PredictionsAction; } });\nObject.defineProperty(exports, \"PubSubAction\", { enumerable: true, get: function () { return types_1.PubSubAction; } });\nObject.defineProperty(exports, \"PushNotificationAction\", { enumerable: true, get: function () { return types_1.PushNotificationAction; } });\nObject.defineProperty(exports, \"StorageAction\", { enumerable: true, get: function () { return types_1.StorageAction; } });\nvar customUserAgent_1 = require(\"./Platform/customUserAgent\");\nObject.defineProperty(exports, \"setCustomUserAgent\", { enumerable: true, get: function () { return customUserAgent_1.setCustomUserAgent; } });\n// Error handling\nvar errors_1 = require(\"./errors\");\nObject.defineProperty(exports, \"AmplifyError\", { enumerable: true, get: function () { return errors_1.AmplifyError; } });\nObject.defineProperty(exports, \"PlatformNotSupportedError\", { enumerable: true, get: function () { return errors_1.PlatformNotSupportedError; } });\nObject.defineProperty(exports, \"createAssertionFunction\", { enumerable: true, get: function () { return errors_1.createAssertionFunction; } });\nObject.defineProperty(exports, \"ApiError\", { enumerable: true, get: function () { return errors_1.ApiError; } });\nvar types_2 = require(\"./types\");\nObject.defineProperty(exports, \"AmplifyErrorCode\", { enumerable: true, get: function () { return types_2.AmplifyErrorCode; } });\n// Other utilities & constants\nvar BackgroundProcessManager_1 = require(\"./BackgroundProcessManager\");\nObject.defineProperty(exports, \"BackgroundProcessManager\", { enumerable: true, get: function () { return BackgroundProcessManager_1.BackgroundProcessManager; } });\nvar Mutex_1 = require(\"./Mutex\");\nObject.defineProperty(exports, \"Mutex\", { enumerable: true, get: function () { return Mutex_1.Mutex; } });\nvar Reachability_1 = require(\"./Reachability\");\nObject.defineProperty(exports, \"Reachability\", { enumerable: true, get: function () { return Reachability_1.Reachability; } });\nvar constants_2 = require(\"./constants\");\nObject.defineProperty(exports, \"USER_AGENT_HEADER\", { enumerable: true, get: function () { return constants_2.USER_AGENT_HEADER; } });\nvar fetchAuthSession_1 = require(\"./singleton/apis/internal/fetchAuthSession\");\nObject.defineProperty(exports, \"fetchAuthSession\", { enumerable: true, get: function () { return fetchAuthSession_1.fetchAuthSession; } });\nvar Hub_1 = require(\"./Hub\");\nObject.defineProperty(exports, \"AMPLIFY_SYMBOL\", { enumerable: true, get: function () { return Hub_1.AMPLIFY_SYMBOL; } });\nvar convert_1 = require(\"./utils/convert\");\nObject.defineProperty(exports, \"base64Decoder\", { enumerable: true, get: function () { return convert_1.base64Decoder; } });\nObject.defineProperty(exports, \"base64Encoder\", { enumerable: true, get: function () { return convert_1.base64Encoder; } });\nvar globalHelpers_1 = require(\"./utils/globalHelpers\");\nObject.defineProperty(exports, \"getCrypto\", { enumerable: true, get: function () { return globalHelpers_1.getCrypto; } });\nvar cryptoSecureRandomInt_1 = require(\"./utils/cryptoSecureRandomInt\");\nObject.defineProperty(exports, \"cryptoSecureRandomInt\", { enumerable: true, get: function () { return cryptoSecureRandomInt_1.cryptoSecureRandomInt; } });\nvar WordArray_1 = require(\"./utils/WordArray\");\nObject.defineProperty(exports, \"WordArray\", { enumerable: true, get: function () { return WordArray_1.WordArray; } });\n// Hub\nvar Hub_2 = require(\"./Hub\");\nObject.defineProperty(exports, \"HubInternal\", { enumerable: true, get: function () { return Hub_2.HubInternal; } });\n// Session listener\nvar sessionListener_1 = require(\"./utils/sessionListener\");\nObject.defineProperty(exports, \"sessionListener\", { enumerable: true, get: function () { return sessionListener_1.sessionListener; } });\nvar sessionListener_2 = require(\"./utils/sessionListener\");\nObject.defineProperty(exports, \"SESSION_START_EVENT\", { enumerable: true, get: function () { return sessionListener_2.SESSION_START_EVENT; } });\nObject.defineProperty(exports, \"SESSION_STOP_EVENT\", { enumerable: true, get: function () { return sessionListener_2.SESSION_STOP_EVENT; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,gBAAgB,GAAG,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,YAAY,GAAG,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,sBAAsB,GAAG,OAAO,CAAC,YAAY,GAAG,OAAO,CAAC,iBAAiB,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,eAAe,GAAG,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC,eAAe,GAAG,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,mBAAmB,GAAG,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC,sBAAsB,GAAG,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,OAAO,CAAC,iBAAiB,GAAG,OAAO,CAAC,0BAA0B,GAAG,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,sBAAsB,GAAG,OAAO,CAA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Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ApiError = exports.createAssertionFunction = exports.PlatformNotSupportedError = exports.AmplifyError = exports.setCustomUserAgent = exports.StorageAction = exports.PushNotificationAction = exports.PubSubAction = exports.PredictionsAction = exports.InAppMessagingAction = exports.InteractionsAction = exports.GeoAction = exports.Framework = exports.DataStoreAction = exports.Category = exports.AnalyticsAction = exports.AuthAction = exports.ApiAction = exports.AiAction = exports.getAmplifyUserAgent = exports.getAmplifyUserAgentObject = exports.Platform = exports.haveCredentialsChanged = exports.Signer = exports.isTokenExpired = exports.assertOAuthConfig = exports.assertIdentityPoolIdConfig = exports.assertTokenProviderConfig = exports.decodeJWT = exports.getDeviceName = exports.getClientInfo = exports.parseAmplifyConfig = exports.AmplifyUrlSearchParams = exports.AmplifyUrl = exports.amplifyUuid = exports.ADD_OAUTH_LISTENER = exports.parseAmplifyOutputs = exports.isAmplifyOutputs = exports.parseAWSExports = exports.deDupeAsyncFunction = exports.urlSafeEncode = exports.urlSafeDecode = exports.retry = exports.NonRetryableError = exports.jitteredExponentialRetry = exports.jitteredBackoff = exports.isWebWorker = exports.isNonRetryableError = exports.isBrowser = exports.generateRandomString = void 0;\nexports.SESSION_STOP_EVENT = exports.SESSION_START_EVENT = exports.sessionListener = exports.HubInternal = exports.WordArray = exports.cryptoSecureRandomInt = exports.getCrypto = exports.base64Encoder = exports.base64Decoder = exports.AMPLIFY_SYMBOL = exports.fetchAuthSession = exports.USER_AGENT_HEADER = exports.Reachability = exports.Mutex = exports.BackgroundProcessManager = exports.AmplifyErrorCode = void 0;\n/*\nThis file maps top-level exports from `@aws-amplify/core/internals/utils`. These are intended to be internal\nutils for use throughout the library.\n*/\n// Core utilities\nvar utils_1 = require(\"./utils\");\nObject.defineProperty(exports, \"generateRandomString\", { enumerable: true, get: function () { return utils_1.generateRandomString; } });\nObject.defineProperty(exports, \"isBrowser\", { enumerable: true, get: function () { return utils_1.isBrowser; } });\nObject.defineProperty(exports, \"isNonRetryableError\", { enumerable: true, get: function () { return utils_1.isNonRetryableError; } });\nObject.defineProperty(exports, \"isWebWorker\", { enumerable: true, get: function () { return utils_1.isWebWorker; } });\nObject.defineProperty(exports, \"jitteredBackoff\", { enumerable: true, get: function () { return utils_1.jitteredBackoff; } });\nObject.defineProperty(exports, \"jitteredExponentialRetry\", { enumerable: true, get: function () { return utils_1.jitteredExponentialRetry; } });\nObject.defineProperty(exports, \"NonRetryableError\", { enumerable: true, get: function () { return utils_1.NonRetryableError; } });\nObject.defineProperty(exports, \"retry\", { enumerable: true, get: function () { return utils_1.retry; } });\nObject.defineProperty(exports, \"urlSafeDecode\", { enumerable: true, get: function () { return utils_1.urlSafeDecode; } });\nObject.defineProperty(exports, \"urlSafeEncode\", { enumerable: true, get: function () { return utils_1.urlSafeEncode; } });\nObject.defineProperty(exports, \"deDupeAsyncFunction\", { enumerable: true, get: function () { return utils_1.deDupeAsyncFunction; } });\nvar parseAWSExports_1 = require(\"./parseAWSExports\");\nObject.defineProperty(exports, \"parseAWSExports\", { enumerable: true, get: function () { return parseAWSExports_1.parseAWSExports; } });\nvar parseAmplifyOutputs_1 = require(\"./parseAmplifyOutputs\");\nObject.defineProperty(exports, \"isAmplifyOutputs\", { enumerable: true, get: function () { return parseAmplifyOutputs_1.isAmplifyOutputs; } });\nObject.defineProperty(exports, \"parseAmplifyOutputs\", { enumerable: true, get: function () { return parseAmplifyOutputs_1.parseAmplifyOutputs; } });\nvar constants_1 = require(\"./singleton/constants\");\nObject.defineProperty(exports, \"ADD_OAUTH_LISTENER\", { enumerable: true, get: function () { return constants_1.ADD_OAUTH_LISTENER; } });\nvar amplifyUuid_1 = require(\"./utils/amplifyUuid\");\nObject.defineProperty(exports, \"amplifyUuid\", { enumerable: true, get: function () { return amplifyUuid_1.amplifyUuid; } });\nvar amplifyUrl_1 = require(\"./utils/amplifyUrl\");\nObject.defineProperty(exports, \"AmplifyUrl\", { enumerable: true, get: function () { return amplifyUrl_1.AmplifyUrl; } });\nObject.defineProperty(exports, \"AmplifyUrlSearchParams\", { enumerable: true, get: function () { return amplifyUrl_1.AmplifyUrlSearchParams; } });\nvar parseAmplifyConfig_1 = require(\"./utils/parseAmplifyConfig\");\nObject.defineProperty(exports, \"parseAmplifyConfig\", { enumerable: true, get: function () { return parseAmplifyConfig_1.parseAmplifyConfig; } });\nvar utils_2 = require(\"./utils\");\nObject.defineProperty(exports, \"getClientInfo\", { enumerable: true, get: function () { return utils_2.getClientInfo; } });\nvar deviceName_1 = require(\"./utils/deviceName\");\nObject.defineProperty(exports, \"getDeviceName\", { enumerable: true, get: function () { return deviceName_1.getDeviceName; } });\n// Auth utilities\nvar utils_3 = require(\"./singleton/Auth/utils\");\nObject.defineProperty(exports, \"decodeJWT\", { enumerable: true, get: function () { return utils_3.decodeJWT; } });\nObject.defineProperty(exports, \"assertTokenProviderConfig\", { enumerable: true, get: function () { return utils_3.assertTokenProviderConfig; } });\nObject.defineProperty(exports, \"assertIdentityPoolIdConfig\", { enumerable: true, get: function () { return utils_3.assertIdentityPoolIdConfig; } });\nObject.defineProperty(exports, \"assertOAuthConfig\", { enumerable: true, get: function () { return utils_3.assertOAuthConfig; } });\nvar Auth_1 = require(\"./singleton/Auth\");\nObject.defineProperty(exports, \"isTokenExpired\", { enumerable: true, get: function () { return Auth_1.isTokenExpired; } });\nvar Signer_1 = require(\"./Signer\");\nObject.defineProperty(exports, \"Signer\", { enumerable: true, get: function () { return Signer_1.Signer; } });\nvar haveCredentialsChanged_1 = require(\"./utils/haveCredentialsChanged\");\nObject.defineProperty(exports, \"haveCredentialsChanged\", { enumerable: true, get: function () { return haveCredentialsChanged_1.haveCredentialsChanged; } });\n// Platform & user-agent utilities\nvar Platform_1 = require(\"./Platform\");\nObject.defineProperty(exports, \"Platform\", { enumerable: true, get: function () { return Platform_1.Platform; } });\nObject.defineProperty(exports, \"getAmplifyUserAgentObject\", { enumerable: true, get: function () { return Platform_1.getAmplifyUserAgentObject; } });\nObject.defineProperty(exports, \"getAmplifyUserAgent\", { enumerable: true, get: function () { return Platform_1.getAmplifyUserAgent; } });\nvar types_1 = require(\"./Platform/types\");\nObject.defineProperty(exports, \"AiAction\", { enumerable: true, get: function () { return types_1.AiAction; } });\nObject.defineProperty(exports, \"ApiAction\", { enumerable: true, get: function () { return types_1.ApiAction; } });\nObject.defineProperty(exports, \"AuthAction\", { enumerable: true, get: function () { return types_1.AuthAction; } });\nObject.defineProperty(exports, \"AnalyticsAction\", { enumerable: true, get: function () { return types_1.AnalyticsAction; } });\nObject.defineProperty(exports, \"Category\", { enumerable: true, get: function () { return types_1.Category; } });\nObject.defineProperty(exports, \"DataStoreAction\", { enumerable: true, get: function () { return types_1.DataStoreAction; } });\nObject.defineProperty(exports, \"Framework\", { enumerable: true, get: function () { return types_1.Framework; } });\nObject.defineProperty(exports, \"GeoAction\", { enumerable: true, get: function () { return types_1.GeoAction; } });\nObject.defineProperty(exports, \"InteractionsAction\", { enumerable: true, get: function () { return types_1.InteractionsAction; } });\nObject.defineProperty(exports, \"InAppMessagingAction\", { enumerable: true, get: function () { return types_1.InAppMessagingAction; } });\nObject.defineProperty(exports, \"PredictionsAction\", { enumerable: true, get: function () { return types_1.PredictionsAction; } });\nObject.defineProperty(exports, \"PubSubAction\", { enumerable: true, get: function () { return types_1.PubSubAction; } });\nObject.defineProperty(exports, \"PushNotificationAction\", { enumerable: true, get: function () { return types_1.PushNotificationAction; } });\nObject.defineProperty(exports, \"StorageAction\", { enumerable: true, get: function () { return types_1.StorageAction; } });\nvar customUserAgent_1 = require(\"./Platform/customUserAgent\");\nObject.defineProperty(exports, \"setCustomUserAgent\", { enumerable: true, get: function () { return customUserAgent_1.setCustomUserAgent; } });\n// Error handling\nvar errors_1 = require(\"./errors\");\nObject.defineProperty(exports, \"AmplifyError\", { enumerable: true, get: function () { return errors_1.AmplifyError; } });\nObject.defineProperty(exports, \"PlatformNotSupportedError\", { enumerable: true, get: function () { return errors_1.PlatformNotSupportedError; } });\nObject.defineProperty(exports, \"createAssertionFunction\", { enumerable: true, get: function () { return errors_1.createAssertionFunction; } });\nObject.defineProperty(exports, \"ApiError\", { enumerable: true, get: function () { return errors_1.ApiError; } });\nvar types_2 = require(\"./types\");\nObject.defineProperty(exports, \"AmplifyErrorCode\", { enumerable: true, get: function () { return types_2.AmplifyErrorCode; } });\n// Other utilities & constants\nvar BackgroundProcessManager_1 = require(\"./BackgroundProcessManager\");\nObject.defineProperty(exports, \"BackgroundProcessManager\", { enumerable: true, get: function () { return BackgroundProcessManager_1.BackgroundProcessManager; } });\nvar Mutex_1 = require(\"./Mutex\");\nObject.defineProperty(exports, \"Mutex\", { enumerable: true, get: function () { return Mutex_1.Mutex; } });\nvar Reachability_1 = require(\"./Reachability\");\nObject.defineProperty(exports, \"Reachability\", { enumerable: true, get: function () { return Reachability_1.Reachability; } });\nvar constants_2 = require(\"./constants\");\nObject.defineProperty(exports, \"USER_AGENT_HEADER\", { enumerable: true, get: function () { return constants_2.USER_AGENT_HEADER; } });\nvar fetchAuthSession_1 = require(\"./singleton/apis/internal/fetchAuthSession\");\nObject.defineProperty(exports, \"fetchAuthSession\", { enumerable: true, get: function () { return fetchAuthSession_1.fetchAuthSession; } });\nvar Hub_1 = require(\"./Hub\");\nObject.defineProperty(exports, \"AMPLIFY_SYMBOL\", { enumerable: true, get: function () { return Hub_1.AMPLIFY_SYMBOL; } });\nvar convert_1 = require(\"./utils/convert\");\nObject.defineProperty(exports, \"base64Decoder\", { enumerable: true, get: function () { return convert_1.base64Decoder; } });\nObject.defineProperty(exports, \"base64Encoder\", { enumerable: true, get: function () { return convert_1.base64Encoder; } });\nvar globalHelpers_1 = require(\"./utils/globalHelpers\");\nObject.defineProperty(exports, \"getCrypto\", { enumerable: true, get: function () { return globalHelpers_1.getCrypto; } });\nvar cryptoSecureRandomInt_1 = require(\"./utils/cryptoSecureRandomInt\");\nObject.defineProperty(exports, \"cryptoSecureRandomInt\", { enumerable: true, get: function () { return cryptoSecureRandomInt_1.cryptoSecureRandomInt; } });\nvar WordArray_1 = require(\"./utils/WordArray\");\nObject.defineProperty(exports, \"WordArray\", { enumerable: true, get: function () { return WordArray_1.WordArray; } });\n// Hub\nvar Hub_2 = require(\"./Hub\");\nObject.defineProperty(exports, \"HubInternal\", { enumerable: true, get: function () { return Hub_2.HubInternal; } });\n// Session listener\nvar sessionListener_1 = require(\"./utils/sessionListener\");\nObject.defineProperty(exports, \"sessionListener\", { enumerable: true, get: function () { return sessionListener_1.sessionListener; } });\nvar sessionListener_2 = require(\"./utils/sessionListener\");\nObject.defineProperty(exports, \"SESSION_START_EVENT\", { enumerable: true, get: function () { return sessionListener_2.SESSION_START_EVENT; } });\nObject.defineProperty(exports, \"SESSION_STOP_EVENT\", { enumerable: true, get: function () { return sessionListener_2.SESSION_STOP_EVENT; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,YAAY,GAAG,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,sBAAsB,GAAG,OAAO,CAAC,YAAY,GAAG,OAAO,CAAC,iBAAiB,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,eAAe,GAAG,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC,eAAe,GAAG,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC,mBAAmB,GAAG,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC,sBAA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O,CAAC,yBAAyB,CAAC,CAAC;AAC3D,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,qBAAqB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,iBAAiB,CAAC,mBAAmB,CAAC,EAAE,EAAE,CAAC,CAAC;AAChJ,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,oBAAoB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,iBAAiB,CAAC,kBAAkB,CAAC,EAAE,EAAE,CAAC;;"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { UserAgent as AWSUserAgent } from '@aws-sdk/types';
|
|
2
2
|
import { CustomUserAgentDetails, Framework } from './types';
|
|
3
|
+
/** Sanitize Amplify version string be removing special character + and character post the special character */
|
|
4
|
+
export declare const sanitizeAmplifyVersion: (amplifyVersion: string) => string;
|
|
3
5
|
declare class PlatformBuilder {
|
|
4
6
|
userAgent: string;
|
|
5
7
|
get framework(): Framework;
|
|
@@ -6,9 +6,11 @@ import { getCustomUserAgent } from './customUserAgent.mjs';
|
|
|
6
6
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
7
7
|
// SPDX-License-Identifier: Apache-2.0
|
|
8
8
|
const BASE_USER_AGENT = `aws-amplify`;
|
|
9
|
+
/** Sanitize Amplify version string be removing special character + and character post the special character */
|
|
10
|
+
const sanitizeAmplifyVersion = (amplifyVersion) => amplifyVersion.replace(/\+.*/, '');
|
|
9
11
|
class PlatformBuilder {
|
|
10
12
|
constructor() {
|
|
11
|
-
this.userAgent = `${BASE_USER_AGENT}/${version}`;
|
|
13
|
+
this.userAgent = `${BASE_USER_AGENT}/${sanitizeAmplifyVersion(version)}`;
|
|
12
14
|
}
|
|
13
15
|
get framework() {
|
|
14
16
|
return detectFramework();
|
|
@@ -23,7 +25,9 @@ class PlatformBuilder {
|
|
|
23
25
|
}
|
|
24
26
|
const Platform = new PlatformBuilder();
|
|
25
27
|
const getAmplifyUserAgentObject = ({ category, action, } = {}) => {
|
|
26
|
-
const userAgent = [
|
|
28
|
+
const userAgent = [
|
|
29
|
+
[BASE_USER_AGENT, sanitizeAmplifyVersion(version)],
|
|
30
|
+
];
|
|
27
31
|
if (category) {
|
|
28
32
|
userAgent.push([category, action]);
|
|
29
33
|
}
|
|
@@ -46,5 +50,5 @@ const getAmplifyUserAgent = (customUserAgentDetails) => {
|
|
|
46
50
|
return userAgentString;
|
|
47
51
|
};
|
|
48
52
|
|
|
49
|
-
export { Platform, getAmplifyUserAgent, getAmplifyUserAgentObject };
|
|
53
|
+
export { Platform, getAmplifyUserAgent, getAmplifyUserAgentObject, sanitizeAmplifyVersion };
|
|
50
54
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../src/Platform/index.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { Framework } from './types';\nimport { version } from './version';\nimport { detectFramework, observeFrameworkChanges } from './detectFramework';\nimport { getCustomUserAgent } from './customUserAgent';\nconst BASE_USER_AGENT = `aws-amplify`;\nclass PlatformBuilder {\n constructor() {\n this.userAgent = `${BASE_USER_AGENT}/${version}`;\n }\n get framework() {\n return detectFramework();\n }\n get isReactNative() {\n return (this.framework === Framework.ReactNative ||\n this.framework === Framework.Expo);\n }\n observeFrameworkChanges(fcn) {\n observeFrameworkChanges(fcn);\n }\n}\nexport const Platform = new PlatformBuilder();\nexport const getAmplifyUserAgentObject = ({ category, action, } = {}) => {\n const userAgent = [[BASE_USER_AGENT, version]];\n if (category) {\n userAgent.push([category, action]);\n }\n userAgent.push(['framework', detectFramework()]);\n if (category && action) {\n const customState = getCustomUserAgent(category, action);\n if (customState) {\n customState.forEach(state => {\n userAgent.push(state);\n });\n }\n }\n return userAgent;\n};\nexport const getAmplifyUserAgent = (customUserAgentDetails) => {\n const userAgent = getAmplifyUserAgentObject(customUserAgentDetails);\n const userAgentString = userAgent\n .map(([agentKey, agentValue]) => agentKey && agentValue ? `${agentKey}/${agentValue}` : agentKey)\n .join(' ');\n return userAgentString;\n};\n"],"names":[],"mappings":";;;;;AAAA;AACA;AAKA,MAAM,eAAe,GAAG,CAAC,WAAW,CAAC,CAAC;AACtC,MAAM,eAAe,CAAC;AACtB,IAAI,WAAW,GAAG;AAClB,QAAQ,IAAI,CAAC,SAAS,GAAG,CAAC,EAAE,eAAe,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../src/Platform/index.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { Framework } from './types';\nimport { version } from './version';\nimport { detectFramework, observeFrameworkChanges } from './detectFramework';\nimport { getCustomUserAgent } from './customUserAgent';\nconst BASE_USER_AGENT = `aws-amplify`;\n/** Sanitize Amplify version string be removing special character + and character post the special character */\nexport const sanitizeAmplifyVersion = (amplifyVersion) => amplifyVersion.replace(/\\+.*/, '');\nclass PlatformBuilder {\n constructor() {\n this.userAgent = `${BASE_USER_AGENT}/${sanitizeAmplifyVersion(version)}`;\n }\n get framework() {\n return detectFramework();\n }\n get isReactNative() {\n return (this.framework === Framework.ReactNative ||\n this.framework === Framework.Expo);\n }\n observeFrameworkChanges(fcn) {\n observeFrameworkChanges(fcn);\n }\n}\nexport const Platform = new PlatformBuilder();\nexport const getAmplifyUserAgentObject = ({ category, action, } = {}) => {\n const userAgent = [\n [BASE_USER_AGENT, sanitizeAmplifyVersion(version)],\n ];\n if (category) {\n userAgent.push([category, action]);\n }\n userAgent.push(['framework', detectFramework()]);\n if (category && action) {\n const customState = getCustomUserAgent(category, action);\n if (customState) {\n customState.forEach(state => {\n userAgent.push(state);\n });\n }\n }\n return userAgent;\n};\nexport const getAmplifyUserAgent = (customUserAgentDetails) => {\n const userAgent = getAmplifyUserAgentObject(customUserAgentDetails);\n const userAgentString = userAgent\n .map(([agentKey, agentValue]) => agentKey && agentValue ? `${agentKey}/${agentValue}` : agentKey)\n .join(' ');\n return userAgentString;\n};\n"],"names":[],"mappings":";;;;;AAAA;AACA;AAKA,MAAM,eAAe,GAAG,CAAC,WAAW,CAAC,CAAC;AACtC;AACY,MAAC,sBAAsB,GAAG,CAAC,cAAc,KAAK,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,EAAE;AAC7F,MAAM,eAAe,CAAC;AACtB,IAAI,WAAW,GAAG;AAClB,QAAQ,IAAI,CAAC,SAAS,GAAG,CAAC,EAAE,eAAe,CAAC,CAAC,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACjF,KAAK;AACL,IAAI,IAAI,SAAS,GAAG;AACpB,QAAQ,OAAO,eAAe,EAAE,CAAC;AACjC,KAAK;AACL,IAAI,IAAI,aAAa,GAAG;AACxB,QAAQ,QAAQ,IAAI,CAAC,SAAS,KAAK,SAAS,CAAC,WAAW;AACxD,YAAY,IAAI,CAAC,SAAS,KAAK,SAAS,CAAC,IAAI,EAAE;AAC/C,KAAK;AACL,IAAI,uBAAuB,CAAC,GAAG,EAAE;AACjC,QAAQ,uBAAuB,CAAC,GAAG,CAAC,CAAC;AACrC,KAAK;AACL,CAAC;AACW,MAAC,QAAQ,GAAG,IAAI,eAAe,GAAG;AAClC,MAAC,yBAAyB,GAAG,CAAC,EAAE,QAAQ,EAAE,MAAM,GAAG,GAAG,EAAE,KAAK;AACzE,IAAI,MAAM,SAAS,GAAG;AACtB,QAAQ,CAAC,eAAe,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC;AAC1D,KAAK,CAAC;AACN,IAAI,IAAI,QAAQ,EAAE;AAClB,QAAQ,SAAS,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;AAC3C,KAAK;AACL,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,eAAe,EAAE,CAAC,CAAC,CAAC;AACrD,IAAI,IAAI,QAAQ,IAAI,MAAM,EAAE;AAC5B,QAAQ,MAAM,WAAW,GAAG,kBAAkB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AACjE,QAAQ,IAAI,WAAW,EAAE;AACzB,YAAY,WAAW,CAAC,OAAO,CAAC,KAAK,IAAI;AACzC,gBAAgB,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACtC,aAAa,CAAC,CAAC;AACf,SAAS;AACT,KAAK;AACL,IAAI,OAAO,SAAS,CAAC;AACrB,EAAE;AACU,MAAC,mBAAmB,GAAG,CAAC,sBAAsB,KAAK;AAC/D,IAAI,MAAM,SAAS,GAAG,yBAAyB,CAAC,sBAAsB,CAAC,CAAC;AACxE,IAAI,MAAM,eAAe,GAAG,SAAS;AACrC,SAAS,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,UAAU,CAAC,KAAK,QAAQ,IAAI,UAAU,GAAG,CAAC,EAAE,QAAQ,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,GAAG,QAAQ,CAAC;AACzG,SAAS,IAAI,CAAC,GAAG,CAAC,CAAC;AACnB,IAAI,OAAO,eAAe,CAAC;AAC3B;;;;"}
|
|
@@ -17,6 +17,7 @@ export declare enum Framework {
|
|
|
17
17
|
Expo = "202"
|
|
18
18
|
}
|
|
19
19
|
export declare enum Category {
|
|
20
|
+
AI = "ai",
|
|
20
21
|
API = "api",
|
|
21
22
|
Auth = "auth",
|
|
22
23
|
Analytics = "analytics",
|
|
@@ -29,6 +30,16 @@ export declare enum Category {
|
|
|
29
30
|
PushNotification = "pushnotification",
|
|
30
31
|
Storage = "storage"
|
|
31
32
|
}
|
|
33
|
+
export declare enum AiAction {
|
|
34
|
+
CreateConversation = "1",
|
|
35
|
+
GetConversation = "2",
|
|
36
|
+
ListConversations = "3",
|
|
37
|
+
DeleteConversation = "4",
|
|
38
|
+
SendMessage = "5",
|
|
39
|
+
ListMessages = "6",
|
|
40
|
+
OnMessage = "7",
|
|
41
|
+
Generation = "8"
|
|
42
|
+
}
|
|
32
43
|
export declare enum AnalyticsAction {
|
|
33
44
|
Record = "1",
|
|
34
45
|
IdentifyUser = "2"
|
|
@@ -112,6 +123,7 @@ export declare enum StorageAction {
|
|
|
112
123
|
GetUrl = "7"
|
|
113
124
|
}
|
|
114
125
|
interface ActionMap {
|
|
126
|
+
[Category.AI]: AiAction;
|
|
115
127
|
[Category.Auth]: AuthAction;
|
|
116
128
|
[Category.API]: ApiAction;
|
|
117
129
|
[Category.Analytics]: AnalyticsAction;
|
|
@@ -134,7 +146,7 @@ interface CustomUserAgentDetailsBase {
|
|
|
134
146
|
export type CustomUserAgentDetails = (CustomUserAgentDetailsBase & {
|
|
135
147
|
category?: never;
|
|
136
148
|
action?: never;
|
|
137
|
-
}) | UserAgentDetailsWithCategory<Category.API> | UserAgentDetailsWithCategory<Category.Auth> | UserAgentDetailsWithCategory<Category.Analytics> | UserAgentDetailsWithCategory<Category.DataStore> | UserAgentDetailsWithCategory<Category.Geo> | UserAgentDetailsWithCategory<Category.Interactions> | UserAgentDetailsWithCategory<Category.InAppMessaging> | UserAgentDetailsWithCategory<Category.Predictions> | UserAgentDetailsWithCategory<Category.PubSub> | UserAgentDetailsWithCategory<Category.PushNotification> | UserAgentDetailsWithCategory<Category.Storage>;
|
|
149
|
+
}) | UserAgentDetailsWithCategory<Category.AI> | UserAgentDetailsWithCategory<Category.API> | UserAgentDetailsWithCategory<Category.Auth> | UserAgentDetailsWithCategory<Category.Analytics> | UserAgentDetailsWithCategory<Category.DataStore> | UserAgentDetailsWithCategory<Category.Geo> | UserAgentDetailsWithCategory<Category.Interactions> | UserAgentDetailsWithCategory<Category.InAppMessaging> | UserAgentDetailsWithCategory<Category.Predictions> | UserAgentDetailsWithCategory<Category.PubSub> | UserAgentDetailsWithCategory<Category.PushNotification> | UserAgentDetailsWithCategory<Category.Storage>;
|
|
138
150
|
/**
|
|
139
151
|
* `refCount` tracks how many consumers have set state for a particular API to avoid it being cleared before all
|
|
140
152
|
* consumers are done using it.
|
|
@@ -152,6 +164,11 @@ export interface StorageUserAgentInput {
|
|
|
152
164
|
apis: StorageAction[];
|
|
153
165
|
additionalDetails: AdditionalDetails;
|
|
154
166
|
}
|
|
167
|
+
export interface AiUserAgentInput {
|
|
168
|
+
category: Category.AI;
|
|
169
|
+
apis: AiAction[];
|
|
170
|
+
additionalDetails: AdditionalDetails;
|
|
171
|
+
}
|
|
155
172
|
export interface AuthUserAgentInput {
|
|
156
173
|
category: Category.Auth;
|
|
157
174
|
apis: AuthAction[];
|
|
@@ -167,5 +184,5 @@ export interface GeoUserAgentInput {
|
|
|
167
184
|
apis: GeoAction[];
|
|
168
185
|
additionalDetails: AdditionalDetails;
|
|
169
186
|
}
|
|
170
|
-
export type SetCustomUserAgentInput = StorageUserAgentInput | AuthUserAgentInput | InAppMessagingUserAgentInput | GeoUserAgentInput;
|
|
187
|
+
export type SetCustomUserAgentInput = StorageUserAgentInput | AuthUserAgentInput | InAppMessagingUserAgentInput | GeoUserAgentInput | AiUserAgentInput;
|
|
171
188
|
export {};
|
|
@@ -24,6 +24,7 @@ var Framework;
|
|
|
24
24
|
})(Framework || (Framework = {}));
|
|
25
25
|
var Category;
|
|
26
26
|
(function (Category) {
|
|
27
|
+
Category["AI"] = "ai";
|
|
27
28
|
Category["API"] = "api";
|
|
28
29
|
Category["Auth"] = "auth";
|
|
29
30
|
Category["Analytics"] = "analytics";
|
|
@@ -36,6 +37,17 @@ var Category;
|
|
|
36
37
|
Category["PushNotification"] = "pushnotification";
|
|
37
38
|
Category["Storage"] = "storage";
|
|
38
39
|
})(Category || (Category = {}));
|
|
40
|
+
var AiAction;
|
|
41
|
+
(function (AiAction) {
|
|
42
|
+
AiAction["CreateConversation"] = "1";
|
|
43
|
+
AiAction["GetConversation"] = "2";
|
|
44
|
+
AiAction["ListConversations"] = "3";
|
|
45
|
+
AiAction["DeleteConversation"] = "4";
|
|
46
|
+
AiAction["SendMessage"] = "5";
|
|
47
|
+
AiAction["ListMessages"] = "6";
|
|
48
|
+
AiAction["OnMessage"] = "7";
|
|
49
|
+
AiAction["Generation"] = "8";
|
|
50
|
+
})(AiAction || (AiAction = {}));
|
|
39
51
|
var AnalyticsAction;
|
|
40
52
|
(function (AnalyticsAction) {
|
|
41
53
|
AnalyticsAction["Record"] = "1";
|
|
@@ -130,5 +142,5 @@ var StorageAction;
|
|
|
130
142
|
StorageAction["GetUrl"] = "7";
|
|
131
143
|
})(StorageAction || (StorageAction = {}));
|
|
132
144
|
|
|
133
|
-
export { AnalyticsAction, ApiAction, AuthAction, Category, DataStoreAction, Framework, GeoAction, InAppMessagingAction, InteractionsAction, PredictionsAction, PubSubAction, PushNotificationAction, StorageAction };
|
|
145
|
+
export { AiAction, AnalyticsAction, ApiAction, AuthAction, Category, DataStoreAction, Framework, GeoAction, InAppMessagingAction, InteractionsAction, PredictionsAction, PubSubAction, PushNotificationAction, StorageAction };
|
|
134
146
|
//# sourceMappingURL=types.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.mjs","sources":["../../../src/Platform/types.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport var 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 || (Framework = {}));\nexport var Category;\n(function (Category) {\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 || (Category = {}));\nexport var AnalyticsAction;\n(function (AnalyticsAction) {\n AnalyticsAction[\"Record\"] = \"1\";\n AnalyticsAction[\"IdentifyUser\"] = \"2\";\n})(AnalyticsAction || (AnalyticsAction = {}));\nexport var 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 || (ApiAction = {}));\nexport var 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 || (AuthAction = {}));\nexport var DataStoreAction;\n(function (DataStoreAction) {\n DataStoreAction[\"Subscribe\"] = \"1\";\n DataStoreAction[\"GraphQl\"] = \"2\";\n})(DataStoreAction || (DataStoreAction = {}));\nexport var 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 || (GeoAction = {}));\nexport var InAppMessagingAction;\n(function (InAppMessagingAction) {\n InAppMessagingAction[\"SyncMessages\"] = \"1\";\n InAppMessagingAction[\"IdentifyUser\"] = \"2\";\n InAppMessagingAction[\"NotifyMessageInteraction\"] = \"3\";\n})(InAppMessagingAction || (InAppMessagingAction = {}));\nexport var InteractionsAction;\n(function (InteractionsAction) {\n InteractionsAction[\"None\"] = \"0\";\n})(InteractionsAction || (InteractionsAction = {}));\nexport var PredictionsAction;\n(function (PredictionsAction) {\n PredictionsAction[\"Convert\"] = \"1\";\n PredictionsAction[\"Identify\"] = \"2\";\n PredictionsAction[\"Interpret\"] = \"3\";\n})(PredictionsAction || (PredictionsAction = {}));\nexport var PubSubAction;\n(function (PubSubAction) {\n PubSubAction[\"Subscribe\"] = \"1\";\n})(PubSubAction || (PubSubAction = {}));\nexport var PushNotificationAction;\n(function (PushNotificationAction) {\n PushNotificationAction[\"InitializePushNotifications\"] = \"1\";\n PushNotificationAction[\"IdentifyUser\"] = \"2\";\n})(PushNotificationAction || (PushNotificationAction = {}));\nexport var 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 || (StorageAction = {}));\n"],"names":[],"mappings":"AAAA;AACA;AACU,IAAC,UAAU;AACrB,CAAC,UAAU,SAAS,EAAE;AACtB;AACA,IAAI,SAAS,CAAC,YAAY,CAAC,GAAG,GAAG,CAAC;AAClC,IAAI,SAAS,CAAC,OAAO,CAAC,GAAG,GAAG,CAAC;AAC7B,IAAI,SAAS,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC;AAC9B,IAAI,SAAS,CAAC,SAAS,CAAC,GAAG,GAAG,CAAC;AAC/B,IAAI,SAAS,CAAC,OAAO,CAAC,GAAG,GAAG,CAAC;AAC7B,IAAI,SAAS,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC;AAC5B,IAAI,SAAS,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC;AAC9B;AACA,IAAI,SAAS,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC;AAC3C,IAAI,SAAS,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC;AAClC,IAAI,SAAS,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC;AACnC,IAAI,SAAS,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC;AACpC,IAAI,SAAS,CAAC,UAAU,CAAC,GAAG,K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YAAY,KAAK,YAAY,GAAG,EAAE,CAAC,CAAC,CAAC;AAC9B,IAAC,uBAAuB;AAClC,CAAC,UAAU,sBAAsB,EAAE;AACnC,IAAI,sBAAsB,CAAC,6BAA6B,CAAC,GAAG,GAAG,CAAC;AAChE,IAAI,sBAAsB,CAAC,cAAc,CAAC,GAAG,GAAG,CAAC;AACjD,CAAC,EAAE,sBAAsB,KAAK,sBAAsB,GAAG,EAAE,CAAC,CAAC,CAAC;AAClD,IAAC,cAAc;AACzB,CAAC,UAAU,aAAa,EAAE;AAC1B,IAAI,aAAa,CAAC,YAAY,CAAC,GAAG,GAAG,CAAC;AACtC,IAAI,aAAa,CAAC,cAAc,CAAC,GAAG,GAAG,CAAC;AACxC,IAAI,aAAa,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC;AAChC,IAAI,aAAa,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC;AAChC,IAAI,aAAa,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC;AAClC,IAAI,aAAa,CAAC,eAAe,CAAC,GAAG,GAAG,CAAC;AACzC,IAAI,aAAa,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC;AAClC,CAAC,EAAE,aAAa,KAAK,aAAa,GAAG,EAAE,CAAC,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"types.mjs","sources":["../../../src/Platform/types.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport var 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 || (Framework = {}));\nexport var 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 || (Category = {}));\nexport var 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 || (AiAction = {}));\nexport var AnalyticsAction;\n(function (AnalyticsAction) {\n AnalyticsAction[\"Record\"] = \"1\";\n AnalyticsAction[\"IdentifyUser\"] = \"2\";\n})(AnalyticsAction || (AnalyticsAction = {}));\nexport var 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 || (ApiAction = {}));\nexport var 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 || (AuthAction = {}));\nexport var DataStoreAction;\n(function (DataStoreAction) {\n DataStoreAction[\"Subscribe\"] = \"1\";\n DataStoreAction[\"GraphQl\"] = \"2\";\n})(DataStoreAction || (DataStoreAction = {}));\nexport var 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 || (GeoAction = {}));\nexport var InAppMessagingAction;\n(function (InAppMessagingAction) {\n InAppMessagingAction[\"SyncMessages\"] = \"1\";\n InAppMessagingAction[\"IdentifyUser\"] = \"2\";\n InAppMessagingAction[\"NotifyMessageInteraction\"] = \"3\";\n})(InAppMessagingAction || (InAppMessagingAction = {}));\nexport var InteractionsAction;\n(function (InteractionsAction) {\n InteractionsAction[\"None\"] = \"0\";\n})(InteractionsAction || (InteractionsAction = {}));\nexport var PredictionsAction;\n(function (PredictionsAction) {\n PredictionsAction[\"Convert\"] = \"1\";\n PredictionsAction[\"Identify\"] = \"2\";\n PredictionsAction[\"Interpret\"] = \"3\";\n})(PredictionsAction || (PredictionsAction = {}));\nexport var PubSubAction;\n(function (PubSubAction) {\n PubSubAction[\"Subscribe\"] = \"1\";\n})(PubSubAction || (PubSubAction = {}));\nexport var PushNotificationAction;\n(function (PushNotificationAction) {\n PushNotificationAction[\"InitializePushNotifications\"] = \"1\";\n PushNotificationAction[\"IdentifyUser\"] = \"2\";\n})(PushNotificationAction || (PushNotificationAction = {}));\nexport var 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 || (StorageAction = {}));\n"],"names":[],"mappings":"AAAA;AACA;AACU,IAAC,UAAU;AACrB,CAAC,UAAU,SAAS,EAAE;AACtB;AACA,IAAI,SAAS,CAAC,YAAY,CAAC,GAAG,GAAG,CAAC;AAClC,IAAI,SAAS,CAAC,OAAO,CAAC,GAAG,GAAG,CAAC;AAC7B,IAAI,SAAS,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC;AAC9B,IAAI,SAAS,CAAC,SAAS,CAAC,GAAG,GAAG,CAAC;AAC/B,IAAI,SAAS,CAAC,OAAO,CAAC,GAAG,GAAG,CAAC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,CAAC,EAAE,sBAAsB,KAAK,sBAAsB,GAAG,EAAE,CAAC,CAAC,CAAC;AAClD,IAAC,cAAc;AACzB,CAAC,UAAU,aAAa,EAAE;AAC1B,IAAI,aAAa,CAAC,YAAY,CAAC,GAAG,GAAG,CAAC;AACtC,IAAI,aAAa,CAAC,cAAc,CAAC,GAAG,GAAG,CAAC;AACxC,IAAI,aAAa,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC;AAChC,IAAI,aAAa,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC;AAChC,IAAI,aAAa,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC;AAClC,IAAI,aAAa,CAAC,eAAe,CAAC,GAAG,GAAG,CAAC;AACzC,IAAI,aAAa,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC;AAClC,CAAC,EAAE,aAAa,KAAK,aAAa,GAAG,EAAE,CAAC,CAAC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "6.6.
|
|
1
|
+
export declare const version = "6.6.4-unstable.541e463.0+541e463";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sources":["../../../src/Platform/version.ts"],"sourcesContent":["// generated by genversion\nexport const version = '6.6.
|
|
1
|
+
{"version":3,"file":"version.mjs","sources":["../../../src/Platform/version.ts"],"sourcesContent":["// generated by genversion\nexport const version = '6.6.4-unstable.541e463.0+541e463';\n"],"names":[],"mappings":"AAAA;AACY,MAAC,OAAO,GAAG;;;;"}
|
|
@@ -16,7 +16,7 @@ export { Signer } from './Signer';
|
|
|
16
16
|
export { JWT, CognitoIdentityPoolConfig, JwtPayload, AuthStandardAttributeKey, AuthVerifiableAttributeKey, AWSCredentials, } from './singleton/Auth/types';
|
|
17
17
|
export { haveCredentialsChanged } from './utils/haveCredentialsChanged';
|
|
18
18
|
export { Platform, getAmplifyUserAgentObject, getAmplifyUserAgent, } from './Platform';
|
|
19
|
-
export { ApiAction, AuthAction, AnalyticsAction, Category, CustomUserAgentDetails, DataStoreAction, Framework, GeoAction, InteractionsAction, InAppMessagingAction, PredictionsAction, PubSubAction, PushNotificationAction, StorageAction, SetCustomUserAgentInput, StorageUserAgentInput, AuthUserAgentInput, InAppMessagingUserAgentInput, GeoUserAgentInput, } from './Platform/types';
|
|
19
|
+
export { AiAction, ApiAction, AuthAction, AnalyticsAction, Category, CustomUserAgentDetails, DataStoreAction, Framework, GeoAction, InteractionsAction, InAppMessagingAction, PredictionsAction, PubSubAction, PushNotificationAction, StorageAction, SetCustomUserAgentInput, StorageUserAgentInput, AuthUserAgentInput, InAppMessagingUserAgentInput, GeoUserAgentInput, AiUserAgentInput, } from './Platform/types';
|
|
20
20
|
export { setCustomUserAgent } from './Platform/customUserAgent';
|
|
21
21
|
export { AmplifyError, PlatformNotSupportedError, createAssertionFunction, ApiError, ApiErrorParams, ApiErrorResponse, } from './errors';
|
|
22
22
|
export { AmplifyErrorCode, AmplifyErrorMap, AmplifyErrorParams, AssertionFunction, ServiceError, } from './types';
|
|
@@ -22,7 +22,7 @@ export { isTokenExpired } from './singleton/Auth/index.mjs';
|
|
|
22
22
|
export { Signer } from './Signer/Signer.mjs';
|
|
23
23
|
export { haveCredentialsChanged } from './utils/haveCredentialsChanged.mjs';
|
|
24
24
|
export { Platform, getAmplifyUserAgent, getAmplifyUserAgentObject } from './Platform/index.mjs';
|
|
25
|
-
export { AnalyticsAction, ApiAction, AuthAction, Category, DataStoreAction, Framework, GeoAction, InAppMessagingAction, InteractionsAction, PredictionsAction, PubSubAction, PushNotificationAction, StorageAction } from './Platform/types.mjs';
|
|
25
|
+
export { AiAction, AnalyticsAction, ApiAction, AuthAction, Category, DataStoreAction, Framework, GeoAction, InAppMessagingAction, InteractionsAction, PredictionsAction, PubSubAction, PushNotificationAction, StorageAction } from './Platform/types.mjs';
|
|
26
26
|
export { setCustomUserAgent } from './Platform/customUserAgent.mjs';
|
|
27
27
|
export { AmplifyError } from './errors/AmplifyError.mjs';
|
|
28
28
|
export { ApiError } from './errors/APIError.mjs';
|
|
@@ -12,8 +12,8 @@ import './Auth/utils/errorHelpers.mjs';
|
|
|
12
12
|
import { AuthClass } from './Auth/index.mjs';
|
|
13
13
|
import '@aws-crypto/sha256-js';
|
|
14
14
|
import '@smithy/util-hex-encoding';
|
|
15
|
+
import '../Platform/index.mjs';
|
|
15
16
|
import '../Platform/types.mjs';
|
|
16
|
-
import '../Platform/detection/index.mjs';
|
|
17
17
|
import '../BackgroundProcessManager/types.mjs';
|
|
18
18
|
import '../Reachability/Reachability.mjs';
|
|
19
19
|
import '../utils/sessionListener/index.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/core",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.4-unstable.541e463.0+541e463",
|
|
4
4
|
"description": "Core category of aws-amplify",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.mjs",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"uuid": "^9.0.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@aws-amplify/react-native": "1.1.
|
|
63
|
+
"@aws-amplify/react-native": "1.1.7-unstable.541e463.0+541e463",
|
|
64
64
|
"@types/js-cookie": "3.0.2",
|
|
65
65
|
"genversion": "^2.2.0",
|
|
66
66
|
"typescript": "5.0.2"
|
|
@@ -192,5 +192,5 @@
|
|
|
192
192
|
]
|
|
193
193
|
}
|
|
194
194
|
},
|
|
195
|
-
"gitHead": "
|
|
195
|
+
"gitHead": "541e46347ba10cd1cfc0bf080c9a45281cf0be4e"
|
|
196
196
|
}
|
package/src/Platform/index.ts
CHANGED
|
@@ -10,8 +10,12 @@ import { getCustomUserAgent } from './customUserAgent';
|
|
|
10
10
|
|
|
11
11
|
const BASE_USER_AGENT = `aws-amplify`;
|
|
12
12
|
|
|
13
|
+
/** Sanitize Amplify version string be removing special character + and character post the special character */
|
|
14
|
+
export const sanitizeAmplifyVersion = (amplifyVersion: string) =>
|
|
15
|
+
amplifyVersion.replace(/\+.*/, '');
|
|
16
|
+
|
|
13
17
|
class PlatformBuilder {
|
|
14
|
-
userAgent = `${BASE_USER_AGENT}/${version}`;
|
|
18
|
+
userAgent = `${BASE_USER_AGENT}/${sanitizeAmplifyVersion(version)}`;
|
|
15
19
|
get framework() {
|
|
16
20
|
return detectFramework();
|
|
17
21
|
}
|
|
@@ -34,7 +38,10 @@ export const getAmplifyUserAgentObject = ({
|
|
|
34
38
|
category,
|
|
35
39
|
action,
|
|
36
40
|
}: CustomUserAgentDetails = {}): AWSUserAgent => {
|
|
37
|
-
const userAgent: AWSUserAgent = [
|
|
41
|
+
const userAgent: AWSUserAgent = [
|
|
42
|
+
[BASE_USER_AGENT, sanitizeAmplifyVersion(version)],
|
|
43
|
+
];
|
|
44
|
+
|
|
38
45
|
if (category) {
|
|
39
46
|
userAgent.push([category, action]);
|
|
40
47
|
}
|
package/src/Platform/types.ts
CHANGED
|
@@ -26,6 +26,7 @@ export enum Framework {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export enum Category {
|
|
29
|
+
AI = 'ai',
|
|
29
30
|
API = 'api',
|
|
30
31
|
Auth = 'auth',
|
|
31
32
|
Analytics = 'analytics',
|
|
@@ -39,6 +40,17 @@ export enum Category {
|
|
|
39
40
|
Storage = 'storage',
|
|
40
41
|
}
|
|
41
42
|
|
|
43
|
+
export enum AiAction {
|
|
44
|
+
CreateConversation = '1',
|
|
45
|
+
GetConversation = '2',
|
|
46
|
+
ListConversations = '3',
|
|
47
|
+
DeleteConversation = '4',
|
|
48
|
+
SendMessage = '5',
|
|
49
|
+
ListMessages = '6',
|
|
50
|
+
OnMessage = '7',
|
|
51
|
+
Generation = '8',
|
|
52
|
+
}
|
|
53
|
+
|
|
42
54
|
export enum AnalyticsAction {
|
|
43
55
|
Record = '1',
|
|
44
56
|
IdentifyUser = '2',
|
|
@@ -123,6 +135,7 @@ export enum StorageAction {
|
|
|
123
135
|
}
|
|
124
136
|
|
|
125
137
|
interface ActionMap {
|
|
138
|
+
[Category.AI]: AiAction;
|
|
126
139
|
[Category.Auth]: AuthAction;
|
|
127
140
|
[Category.API]: ApiAction;
|
|
128
141
|
[Category.Analytics]: AnalyticsAction;
|
|
@@ -148,6 +161,7 @@ interface CustomUserAgentDetailsBase {
|
|
|
148
161
|
|
|
149
162
|
export type CustomUserAgentDetails =
|
|
150
163
|
| (CustomUserAgentDetailsBase & { category?: never; action?: never })
|
|
164
|
+
| UserAgentDetailsWithCategory<Category.AI>
|
|
151
165
|
| UserAgentDetailsWithCategory<Category.API>
|
|
152
166
|
| UserAgentDetailsWithCategory<Category.Auth>
|
|
153
167
|
| UserAgentDetailsWithCategory<Category.Analytics>
|
|
@@ -180,6 +194,12 @@ export interface StorageUserAgentInput {
|
|
|
180
194
|
additionalDetails: AdditionalDetails;
|
|
181
195
|
}
|
|
182
196
|
|
|
197
|
+
export interface AiUserAgentInput {
|
|
198
|
+
category: Category.AI;
|
|
199
|
+
apis: AiAction[];
|
|
200
|
+
additionalDetails: AdditionalDetails;
|
|
201
|
+
}
|
|
202
|
+
|
|
183
203
|
export interface AuthUserAgentInput {
|
|
184
204
|
category: Category.Auth;
|
|
185
205
|
apis: AuthAction[];
|
|
@@ -202,4 +222,5 @@ export type SetCustomUserAgentInput =
|
|
|
202
222
|
| StorageUserAgentInput
|
|
203
223
|
| AuthUserAgentInput
|
|
204
224
|
| InAppMessagingUserAgentInput
|
|
205
|
-
| GeoUserAgentInput
|
|
225
|
+
| GeoUserAgentInput
|
|
226
|
+
| AiUserAgentInput;
|
package/src/Platform/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// generated by genversion
|
|
2
|
-
export const version = '6.6.
|
|
2
|
+
export const version = '6.6.4-unstable.541e463.0+541e463';
|
package/src/libraryUtils.ts
CHANGED
|
@@ -78,6 +78,7 @@ export {
|
|
|
78
78
|
getAmplifyUserAgent,
|
|
79
79
|
} from './Platform';
|
|
80
80
|
export {
|
|
81
|
+
AiAction,
|
|
81
82
|
ApiAction,
|
|
82
83
|
AuthAction,
|
|
83
84
|
AnalyticsAction,
|
|
@@ -97,6 +98,7 @@ export {
|
|
|
97
98
|
AuthUserAgentInput,
|
|
98
99
|
InAppMessagingUserAgentInput,
|
|
99
100
|
GeoUserAgentInput,
|
|
101
|
+
AiUserAgentInput,
|
|
100
102
|
} from './Platform/types';
|
|
101
103
|
export { setCustomUserAgent } from './Platform/customUserAgent';
|
|
102
104
|
|