@nadohq/mobile-client 0.64.0 → 0.66.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/README.md +124 -7
- package/dist/MobileClient-M4oC4lrX.cjs +1101 -0
- package/dist/MobileClient-M4oC4lrX.cjs.map +1 -0
- package/dist/MobileClient.cjs +1 -1
- package/dist/MobileClient.d.cts +306 -10
- package/dist/MobileClient.d.cts.map +1 -1
- package/dist/MobileClient.d.ts +306 -10
- package/dist/MobileClient.d.ts.map +1 -1
- package/dist/MobileClient.js +544 -5
- package/dist/MobileClient.js.map +1 -1
- package/dist/{MobileServerFailureError-Dd3c6P_Z.d.ts → MobileServerFailureError-C9iqNsxI.d.ts} +2 -3
- package/dist/MobileServerFailureError-C9iqNsxI.d.ts.map +1 -0
- package/dist/{MobileServerFailureError-Bpa_WA9f.d.cts → MobileServerFailureError-MtS2reel.d.cts} +2 -3
- package/dist/MobileServerFailureError-MtS2reel.d.cts.map +1 -0
- package/dist/MobileUnsupportedFeedItemError-BsZvW8i2.d.cts +15 -0
- package/dist/MobileUnsupportedFeedItemError-BsZvW8i2.d.cts.map +1 -0
- package/dist/MobileUnsupportedFeedItemError-BsZvW8i2.d.ts +15 -0
- package/dist/MobileUnsupportedFeedItemError-BsZvW8i2.d.ts.map +1 -0
- package/dist/MobileUnsupportedNotificationRouteError-DpiNBvvY.d.cts +15 -0
- package/dist/MobileUnsupportedNotificationRouteError-DpiNBvvY.d.cts.map +1 -0
- package/dist/MobileUnsupportedNotificationRouteError-DpiNBvvY.d.ts +15 -0
- package/dist/MobileUnsupportedNotificationRouteError-DpiNBvvY.d.ts.map +1 -0
- package/dist/{buildSignedMobileRequest-Cb1T74xV.d.ts → buildSignedMobileRequest-BR-KJhIF.d.ts} +2 -2
- package/dist/{buildSignedMobileRequest-Cb1T74xV.d.ts.map → buildSignedMobileRequest-BR-KJhIF.d.ts.map} +1 -1
- package/dist/{buildSignedMobileRequest-NHbMAPzd.d.cts → buildSignedMobileRequest-DyKCK34Y.d.cts} +2 -2
- package/dist/{buildSignedMobileRequest-NHbMAPzd.d.cts.map → buildSignedMobileRequest-DyKCK34Y.d.cts.map} +1 -1
- package/dist/{canonicalize-BBYGh17w.d.ts → canonicalize-Bv6UIAbR.d.ts} +2 -2
- package/dist/canonicalize-Bv6UIAbR.d.ts.map +1 -0
- package/dist/{canonicalize-BF_SiNvO.d.cts → canonicalize-CWh3XZzj.d.cts} +2 -2
- package/dist/canonicalize-CWh3XZzj.d.cts.map +1 -0
- package/dist/clientTypes-BUn5_OzK.d.ts +1665 -0
- package/dist/clientTypes-BUn5_OzK.d.ts.map +1 -0
- package/dist/clientTypes-DOpUcu80.d.cts +1665 -0
- package/dist/clientTypes-DOpUcu80.d.cts.map +1 -0
- package/dist/dataMappers.cjs +691 -14
- package/dist/dataMappers.cjs.map +1 -1
- package/dist/dataMappers.d.cts +254 -8
- package/dist/dataMappers.d.cts.map +1 -1
- package/dist/dataMappers.d.ts +254 -8
- package/dist/dataMappers.d.ts.map +1 -1
- package/dist/dataMappers.js +651 -15
- package/dist/dataMappers.js.map +1 -1
- package/dist/{eip712MethodByType-BSx11xG-.d.cts → eip712MethodByType-CJ6BoayT.d.cts} +2 -2
- package/dist/eip712MethodByType-CJ6BoayT.d.cts.map +1 -0
- package/dist/{eip712MethodByType-DkiAjCLs.d.ts → eip712MethodByType-Dx4mvgni.d.ts} +2 -2
- package/dist/eip712MethodByType-Dx4mvgni.d.ts.map +1 -0
- package/dist/{feed-DTJlsg8W.d.ts → feed-DErOLaoY.d.cts} +4 -2
- package/dist/feed-DErOLaoY.d.cts.map +1 -0
- package/dist/{feed-DTJlsg8W.d.cts → feed-DErOLaoY.d.ts} +4 -2
- package/dist/feed-DErOLaoY.d.ts.map +1 -0
- package/dist/index.cjs +9 -2
- package/dist/index.d.cts +15 -16
- package/dist/index.d.ts +15 -16
- package/dist/index.js +5 -3
- package/dist/{mobileErrorCodes-3LtreeZM.d.ts → mobileErrorCodes-vD6rbFuF.d.cts} +25 -6
- package/dist/mobileErrorCodes-vD6rbFuF.d.cts.map +1 -0
- package/dist/{mobileErrorCodes-3LtreeZM.d.cts → mobileErrorCodes-vD6rbFuF.d.ts} +25 -6
- package/dist/mobileErrorCodes-vD6rbFuF.d.ts.map +1 -0
- package/dist/{payloadHash-BOWGjqdb.d.cts → payloadHash-CdkF2Ocr.d.cts} +2 -2
- package/dist/payloadHash-CdkF2Ocr.d.cts.map +1 -0
- package/dist/{payloadHash-Bzf4CtjV.d.ts → payloadHash-HD29K77M.d.ts} +2 -2
- package/dist/payloadHash-HD29K77M.d.ts.map +1 -0
- package/dist/serverExecuteTypes-5JyyIXRK.d.ts +178 -0
- package/dist/serverExecuteTypes-5JyyIXRK.d.ts.map +1 -0
- package/dist/serverExecuteTypes-CHrQ9Rtq.d.cts +178 -0
- package/dist/serverExecuteTypes-CHrQ9Rtq.d.cts.map +1 -0
- package/dist/serverModelTypes-CGUZCi0y.d.cts +938 -0
- package/dist/serverModelTypes-CGUZCi0y.d.cts.map +1 -0
- package/dist/serverModelTypes-CGUZCi0y.d.ts +938 -0
- package/dist/serverModelTypes-CGUZCi0y.d.ts.map +1 -0
- package/dist/{serverResponseGuards-BU1Xv_tG.d.ts → serverResponseGuards-Bvw8ltYJ.d.ts} +2 -2
- package/dist/{serverResponseGuards-BU1Xv_tG.d.ts.map → serverResponseGuards-Bvw8ltYJ.d.ts.map} +1 -1
- package/dist/{serverResponseGuards-Dkdok0Sm.d.cts → serverResponseGuards-i1njcYKN.d.cts} +2 -2
- package/dist/{serverResponseGuards-Dkdok0Sm.d.cts.map → serverResponseGuards-i1njcYKN.d.cts.map} +1 -1
- package/dist/signing/buildSignedMobileRequest.d.cts +1 -1
- package/dist/signing/buildSignedMobileRequest.d.ts +1 -1
- package/dist/signing/canonicalize.cjs +86 -0
- package/dist/signing/canonicalize.cjs.map +1 -1
- package/dist/signing/canonicalize.d.cts +1 -1
- package/dist/signing/canonicalize.d.ts +1 -1
- package/dist/signing/canonicalize.js +86 -0
- package/dist/signing/canonicalize.js.map +1 -1
- package/dist/signing/eip712MethodByType.cjs +12 -0
- package/dist/signing/eip712MethodByType.cjs.map +1 -1
- package/dist/signing/eip712MethodByType.d.cts +1 -1
- package/dist/signing/eip712MethodByType.d.ts +1 -1
- package/dist/signing/eip712MethodByType.js +12 -0
- package/dist/signing/eip712MethodByType.js.map +1 -1
- package/dist/signing/index.d.cts +5 -5
- package/dist/signing/index.d.ts +5 -5
- package/dist/signing/payloadHash.cjs +1 -1
- package/dist/signing/payloadHash.d.cts +1 -1
- package/dist/signing/payloadHash.d.ts +1 -1
- package/dist/signing/payloadHash.js +1 -1
- package/dist/signing/types.d.cts +1 -1
- package/dist/signing/types.d.ts +1 -1
- package/dist/types/MobileServerFailureError.d.cts +1 -1
- package/dist/types/MobileServerFailureError.d.ts +1 -1
- package/dist/types/MobileUnsupportedFeedItemError.cjs +19 -0
- package/dist/types/MobileUnsupportedFeedItemError.cjs.map +1 -0
- package/dist/types/MobileUnsupportedFeedItemError.d.cts +2 -0
- package/dist/types/MobileUnsupportedFeedItemError.d.ts +2 -0
- package/dist/types/MobileUnsupportedFeedItemError.js +18 -0
- package/dist/types/MobileUnsupportedFeedItemError.js.map +1 -0
- package/dist/types/MobileUnsupportedNotificationRouteError.cjs +19 -0
- package/dist/types/MobileUnsupportedNotificationRouteError.cjs.map +1 -0
- package/dist/types/MobileUnsupportedNotificationRouteError.d.cts +2 -0
- package/dist/types/MobileUnsupportedNotificationRouteError.d.ts +2 -0
- package/dist/types/MobileUnsupportedNotificationRouteError.js +18 -0
- package/dist/types/MobileUnsupportedNotificationRouteError.js.map +1 -0
- package/dist/types/clientTypes.d.cts +2 -2
- package/dist/types/clientTypes.d.ts +2 -2
- package/dist/types/index.cjs +6 -0
- package/dist/types/index.d.cts +9 -9
- package/dist/types/index.d.ts +9 -9
- package/dist/types/index.js +4 -2
- package/dist/types/mobileErrorCodes.cjs +39 -1
- package/dist/types/mobileErrorCodes.cjs.map +1 -1
- package/dist/types/mobileErrorCodes.d.cts +1 -1
- package/dist/types/mobileErrorCodes.d.ts +1 -1
- package/dist/types/mobileErrorCodes.js +39 -1
- package/dist/types/mobileErrorCodes.js.map +1 -1
- package/dist/types/serverBaseTypes.d.cts +1 -1
- package/dist/types/serverBaseTypes.d.ts +1 -1
- package/dist/types/serverExecuteTypes.d.cts +2 -2
- package/dist/types/serverExecuteTypes.d.ts +2 -2
- package/dist/types/serverModelTypes.cjs +15 -0
- package/dist/types/serverModelTypes.cjs.map +1 -1
- package/dist/types/serverModelTypes.d.cts +2 -2
- package/dist/types/serverModelTypes.d.ts +2 -2
- package/dist/types/serverModelTypes.js +14 -1
- package/dist/types/serverModelTypes.js.map +1 -1
- package/dist/types/serverQueryTypes.d.cts +2 -2
- package/dist/types/serverQueryTypes.d.ts +2 -2
- package/dist/types/serverRequestTypes.d.cts +2 -2
- package/dist/types/serverRequestTypes.d.ts +2 -2
- package/dist/types-C9YE4EIt.d.cts +794 -0
- package/dist/types-C9YE4EIt.d.cts.map +1 -0
- package/dist/types-Cwy1y_9x.d.ts +794 -0
- package/dist/types-Cwy1y_9x.d.ts.map +1 -0
- package/dist/utils/buildMobileFeedImageMultipart.cjs +31 -0
- package/dist/utils/buildMobileFeedImageMultipart.cjs.map +1 -0
- package/dist/utils/buildMobileFeedImageMultipart.d.cts +15 -0
- package/dist/utils/buildMobileFeedImageMultipart.d.cts.map +1 -0
- package/dist/utils/buildMobileFeedImageMultipart.d.ts +15 -0
- package/dist/utils/buildMobileFeedImageMultipart.d.ts.map +1 -0
- package/dist/utils/buildMobileFeedImageMultipart.js +30 -0
- package/dist/utils/buildMobileFeedImageMultipart.js.map +1 -0
- package/dist/utils/feed.cjs +3 -0
- package/dist/utils/feed.cjs.map +1 -1
- package/dist/utils/feed.d.cts +2 -2
- package/dist/utils/feed.d.ts +2 -2
- package/dist/utils/feed.js +3 -1
- package/dist/utils/feed.js.map +1 -1
- package/dist/utils/index.cjs +2 -1
- package/dist/utils/index.d.cts +3 -3
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js +2 -2
- package/dist/utils/serverResponseGuards.d.cts +1 -1
- package/dist/utils/serverResponseGuards.d.ts +1 -1
- package/package.json +3 -3
- package/src/MobileClient.ts +789 -7
- package/src/dataMappers.test.ts +848 -0
- package/src/dataMappers.ts +924 -17
- package/src/feedImages.test.ts +309 -0
- package/src/notifications.test.ts +950 -0
- package/src/signing/canonicalize.ts +119 -0
- package/src/signing/eip712MethodByType.ts +15 -0
- package/src/signing/signing.test.ts +362 -0
- package/src/signing/types.ts +108 -13
- package/src/socialFeed.test.ts +38 -2
- package/src/types/MobileUnsupportedFeedItemError.ts +18 -0
- package/src/types/MobileUnsupportedNotificationRouteError.ts +16 -0
- package/src/types/clientTypes.ts +1012 -34
- package/src/types/index.ts +2 -0
- package/src/types/mobileErrorCodes.ts +38 -0
- package/src/types/serverExecuteTypes.ts +112 -3
- package/src/types/serverModelTypes.ts +581 -28
- package/src/types/serverQueryTypes.ts +212 -5
- package/src/types/serverRequestTypes.ts +213 -13
- package/src/utils/buildMobileFeedImageMultipart.test.ts +45 -0
- package/src/utils/buildMobileFeedImageMultipart.ts +36 -0
- package/src/utils/feed.ts +3 -0
- package/dist/MobileClient-aDxiM_Kf.cjs +0 -562
- package/dist/MobileClient-aDxiM_Kf.cjs.map +0 -1
- package/dist/MobileServerFailureError-Bpa_WA9f.d.cts.map +0 -1
- package/dist/MobileServerFailureError-Dd3c6P_Z.d.ts.map +0 -1
- package/dist/canonicalize-BBYGh17w.d.ts.map +0 -1
- package/dist/canonicalize-BF_SiNvO.d.cts.map +0 -1
- package/dist/clientTypes-BWFKo9oE.d.cts +0 -844
- package/dist/clientTypes-BWFKo9oE.d.cts.map +0 -1
- package/dist/clientTypes-DCTiUV0H.d.ts +0 -844
- package/dist/clientTypes-DCTiUV0H.d.ts.map +0 -1
- package/dist/eip712MethodByType-BSx11xG-.d.cts.map +0 -1
- package/dist/eip712MethodByType-DkiAjCLs.d.ts.map +0 -1
- package/dist/feed-DTJlsg8W.d.cts.map +0 -1
- package/dist/feed-DTJlsg8W.d.ts.map +0 -1
- package/dist/mobileErrorCodes-3LtreeZM.d.cts.map +0 -1
- package/dist/mobileErrorCodes-3LtreeZM.d.ts.map +0 -1
- package/dist/payloadHash-BOWGjqdb.d.cts.map +0 -1
- package/dist/payloadHash-Bzf4CtjV.d.ts.map +0 -1
- package/dist/serverBaseTypes-DWf3iGWy.d.ts +0 -25
- package/dist/serverBaseTypes-DWf3iGWy.d.ts.map +0 -1
- package/dist/serverBaseTypes-KREDe2M9.d.cts +0 -25
- package/dist/serverBaseTypes-KREDe2M9.d.cts.map +0 -1
- package/dist/serverExecuteTypes-DVRa6ifu.d.cts +0 -89
- package/dist/serverExecuteTypes-DVRa6ifu.d.cts.map +0 -1
- package/dist/serverExecuteTypes-DlYZCp1f.d.ts +0 -89
- package/dist/serverExecuteTypes-DlYZCp1f.d.ts.map +0 -1
- package/dist/serverModelTypes-DAqEyYtB.d.cts +0 -508
- package/dist/serverModelTypes-DAqEyYtB.d.cts.map +0 -1
- package/dist/serverModelTypes-DAqEyYtB.d.ts +0 -508
- package/dist/serverModelTypes-DAqEyYtB.d.ts.map +0 -1
- package/dist/serverQueryTypes-BFdwq0Z2.d.ts +0 -171
- package/dist/serverQueryTypes-BFdwq0Z2.d.ts.map +0 -1
- package/dist/serverQueryTypes-DNdMpmDr.d.cts +0 -171
- package/dist/serverQueryTypes-DNdMpmDr.d.cts.map +0 -1
- package/dist/serverRequestTypes-BNA7FCY6.d.ts +0 -200
- package/dist/serverRequestTypes-BNA7FCY6.d.ts.map +0 -1
- package/dist/serverRequestTypes-CxDRFKfv.d.cts +0 -200
- package/dist/serverRequestTypes-CxDRFKfv.d.cts.map +0 -1
- package/dist/types-BCr2G5gS.d.cts +0 -84
- package/dist/types-BCr2G5gS.d.cts.map +0 -1
- package/dist/types-C18k-9Vy.d.ts +0 -84
- package/dist/types-C18k-9Vy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EAAqB,gCAAA;EA1IX;EA4IV,UAAA,EAAY,iCAAA;EAxIZ;EA0IA,UAAA,EAAY,mCAAA;EAtIZ;EAwIA,kBAAA;EAxIkB;EA0IlB,UAAA;AAAA;;UAIe,4BAAA;EAxIf;EA0IA,YAAA;EAtIA;EAwIA,QAAA;EAtIA;EAwIA,QAAA;EAtIoB;EAwIpB,OAAA;EAxI2D;EA0I3D,SAAA;EAtImD;EAwInD,UAAA;AAAA;;UAIe,kCAAA;EAxIY;EA0I3B,SAAA;EAtIA;EAwIA,YAAA;EAtIiB;EAwIjB,SAAA;EAtIgB;EAwIhB,MAAA,EAAQ,sBAAA;EApIO;EAsIf,SAAA,EAAW,gCAAA;;EAEX,WAAA,EAAa,gCAAA;AAAA;AAlIf;AAAA,UAsIiB,oCAAA;;EAEf,YAAA;EAhIW;EAkIX,UAAU;AAAA;;UAIK,8CAAA;EA5If;EA8IA,SAAA;EA1IA;EA4IA,QAAQ;AAAA;;UAIO,gCAAA;EA5IF;EA8Ib,OAAA;EA1IA;EA4IA,KAAK;AAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as MobileServerFailureResponse } from "./types-Cwy1y_9x.js";
|
|
2
2
|
|
|
3
3
|
//#region src/utils/serverResponseGuards.d.ts
|
|
4
4
|
/**
|
|
@@ -13,4 +13,4 @@ declare function isMobileServerSuccessResponse<T extends {
|
|
|
13
13
|
}>(data: unknown): data is T;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { isMobileServerSuccessResponse as n, isMobileServerFailureResponse as t };
|
|
16
|
-
//# sourceMappingURL=serverResponseGuards-
|
|
16
|
+
//# sourceMappingURL=serverResponseGuards-Bvw8ltYJ.d.ts.map
|
package/dist/{serverResponseGuards-BU1Xv_tG.d.ts.map → serverResponseGuards-Bvw8ltYJ.d.ts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverResponseGuards-
|
|
1
|
+
{"version":3,"file":"serverResponseGuards-Bvw8ltYJ.d.ts","names":[],"sources":["../src/utils/src/utils/serverResponseGuards.ts"],"mappings":";;;;;AAKA;iBAAgB,6BAAA,CACd,IAAA,YACC,IAAA,IAAQ,2BAA2B;;;;iBAWtB,6BAAA;EAA0C,MAAA;AAAA,EAAA,CACxD,IAAA,YACC,IAAA,IAAQ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as MobileServerFailureResponse } from "./types-C9YE4EIt.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/utils/serverResponseGuards.d.ts
|
|
4
4
|
/**
|
|
@@ -13,4 +13,4 @@ declare function isMobileServerSuccessResponse<T extends {
|
|
|
13
13
|
}>(data: unknown): data is T;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { isMobileServerSuccessResponse as n, isMobileServerFailureResponse as t };
|
|
16
|
-
//# sourceMappingURL=serverResponseGuards-
|
|
16
|
+
//# sourceMappingURL=serverResponseGuards-i1njcYKN.d.cts.map
|
package/dist/{serverResponseGuards-Dkdok0Sm.d.cts.map → serverResponseGuards-i1njcYKN.d.cts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverResponseGuards-
|
|
1
|
+
{"version":3,"file":"serverResponseGuards-i1njcYKN.d.cts","names":[],"sources":["../src/utils/src/utils/serverResponseGuards.ts"],"mappings":";;;;;AAKA;iBAAgB,6BAAA,CACd,IAAA,YACC,IAAA,IAAQ,2BAA2B;;;;iBAWtB,6BAAA;EAA0C,MAAA;AAAA,EAAA,CACxD,IAAA,YACC,IAAA,IAAQ,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-
|
|
1
|
+
import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-DyKCK34Y.cjs";
|
|
2
2
|
export { buildSignedMobileRequest };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-
|
|
1
|
+
import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-BR-KJhIF.js";
|
|
2
2
|
export { buildSignedMobileRequest };
|
|
@@ -9,6 +9,84 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
9
9
|
*/
|
|
10
10
|
function canonicalizeMobileInner(inner) {
|
|
11
11
|
switch (inner.type) {
|
|
12
|
+
case "register_expo_token_v2": return {
|
|
13
|
+
type: inner.type,
|
|
14
|
+
expo_token: inner.expo_token,
|
|
15
|
+
platform: inner.platform,
|
|
16
|
+
locale: inner.locale,
|
|
17
|
+
app_version: inner.app_version,
|
|
18
|
+
capabilities: {
|
|
19
|
+
payload_versions: [...inner.capabilities.payload_versions],
|
|
20
|
+
type_ids: [...inner.capabilities.type_ids],
|
|
21
|
+
routes: [...inner.capabilities.routes]
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
case "notification_subscriptions": return { type: inner.type };
|
|
25
|
+
case "update_notification_subscriptions": return {
|
|
26
|
+
type: inner.type,
|
|
27
|
+
expected_revision: inner.expected_revision,
|
|
28
|
+
trader_bell: inner.trader_bell == null ? null : {
|
|
29
|
+
subaccount: inner.trader_bell.subaccount,
|
|
30
|
+
enabled: inner.trader_bell.enabled
|
|
31
|
+
},
|
|
32
|
+
market: inner.market == null ? null : {
|
|
33
|
+
product_id: inner.market.product_id,
|
|
34
|
+
subscribed: inner.market.subscribed
|
|
35
|
+
},
|
|
36
|
+
import_markets: inner.import_markets == null ? null : [...inner.import_markets]
|
|
37
|
+
};
|
|
38
|
+
case "notification_inbox_v2": return {
|
|
39
|
+
type: inner.type,
|
|
40
|
+
cursor: inner.cursor,
|
|
41
|
+
limit: inner.limit
|
|
42
|
+
};
|
|
43
|
+
case "record_product_events": return {
|
|
44
|
+
type: inner.type,
|
|
45
|
+
events: inner.events.map((event) => ({
|
|
46
|
+
client_event_id: event.client_event_id,
|
|
47
|
+
event_name: event.event_name,
|
|
48
|
+
notification_id: event.notification_id,
|
|
49
|
+
occurred_at: event.occurred_at,
|
|
50
|
+
product_id: event.product_id,
|
|
51
|
+
query: event.query
|
|
52
|
+
}))
|
|
53
|
+
};
|
|
54
|
+
case "create_feed_post": return {
|
|
55
|
+
type: inner.type,
|
|
56
|
+
client_request_id: inner.client_request_id,
|
|
57
|
+
position_id: inner.position_id,
|
|
58
|
+
...inner.action_id === void 0 ? {} : { action_id: inner.action_id },
|
|
59
|
+
text: inner.text,
|
|
60
|
+
mentions: inner.mentions.map(canonicalizeMention),
|
|
61
|
+
...inner.drawing_data_json === void 0 ? {} : { drawing_data_json: inner.drawing_data_json },
|
|
62
|
+
...inner.image_ids === void 0 ? {} : { image_ids: [...inner.image_ids] }
|
|
63
|
+
};
|
|
64
|
+
case "create_feed_comment": return {
|
|
65
|
+
type: inner.type,
|
|
66
|
+
client_request_id: inner.client_request_id,
|
|
67
|
+
root_item_id: inner.root_item_id,
|
|
68
|
+
...inner.reply_to_item_id === void 0 ? {} : { reply_to_item_id: inner.reply_to_item_id },
|
|
69
|
+
text: inner.text,
|
|
70
|
+
mentions: inner.mentions.map(canonicalizeMention),
|
|
71
|
+
...inner.attached_position_id === void 0 ? {} : { attached_position_id: inner.attached_position_id },
|
|
72
|
+
...inner.image_ids === void 0 ? {} : { image_ids: [...inner.image_ids] }
|
|
73
|
+
};
|
|
74
|
+
case "create_feed_post_image_uploads":
|
|
75
|
+
case "create_feed_comment_image_uploads": return {
|
|
76
|
+
type: inner.type,
|
|
77
|
+
content_hash: inner.content_hash
|
|
78
|
+
};
|
|
79
|
+
case "create_feed_chart_drawing":
|
|
80
|
+
case "update_feed_chart_drawing": return {
|
|
81
|
+
type: inner.type,
|
|
82
|
+
item_id: inner.item_id,
|
|
83
|
+
data_json: inner.data_json
|
|
84
|
+
};
|
|
85
|
+
case "set_feed_like": return {
|
|
86
|
+
type: inner.type,
|
|
87
|
+
item_id: inner.item_id,
|
|
88
|
+
is_liked: inner.is_liked
|
|
89
|
+
};
|
|
12
90
|
case "set_bio": return {
|
|
13
91
|
type: "set_bio",
|
|
14
92
|
bio: inner.bio
|
|
@@ -62,6 +140,14 @@ function canonicalizeMobileInner(inner) {
|
|
|
62
140
|
default: throw new Error(`canonicalizeMobileInner: unhandled inner payload type: ${JSON.stringify(inner)}`);
|
|
63
141
|
}
|
|
64
142
|
}
|
|
143
|
+
function canonicalizeMention(mention) {
|
|
144
|
+
return {
|
|
145
|
+
subaccount: mention.subaccount,
|
|
146
|
+
start: mention.start,
|
|
147
|
+
end: mention.end,
|
|
148
|
+
label: mention.label
|
|
149
|
+
};
|
|
150
|
+
}
|
|
65
151
|
//#endregion
|
|
66
152
|
exports.canonicalizeMobileInner = canonicalizeMobileInner;
|
|
67
153
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"canonicalize.cjs","names":[],"sources":["../../src/signing/canonicalize.ts"],"sourcesContent":["import { MobileSignedInner } from './types';\n\n/**\n * Rebuilds an inner payload with its keys in the backend's struct declaration order (`type` first, then the\n * remaining fields in the exact order the backend serializes them). msgpack encodes object keys in insertion\n * order and the payload hash must be reproducible regardless of how the caller constructed the object, so\n * every inner payload — and each of its sub-types — is canonicalized here before hashing. This function is\n * the source of truth for that order.\n */\nexport function canonicalizeMobileInner(\n inner: MobileSignedInner,\n): MobileSignedInner {\n switch (inner.type) {\n case 'set_bio':\n return { type: 'set_bio', bio: inner.bio };\n case 'create_avatar_upload':\n return {\n type: 'create_avatar_upload',\n content_length: inner.content_length,\n };\n case 'set_avatar': {\n const avatar = inner.avatar;\n if (avatar === null) {\n return { type: 'set_avatar', avatar: null };\n }\n return {\n type: 'set_avatar',\n avatar:\n avatar.type === 'preset'\n ? { type: 'preset', id: avatar.id }\n : { type: 'upload', upload_key: avatar.upload_key },\n };\n }\n case 'set_username':\n return { type: 'set_username', display_name: inner.display_name };\n case 'set_private_mode':\n return { type: 'set_private_mode', private_mode: inner.private_mode };\n case 'register_expo_token':\n return {\n type: 'register_expo_token',\n expo_token: inner.expo_token,\n platform: inner.platform,\n locale: inner.locale,\n app_version: inner.app_version,\n };\n case 'set_follow':\n return {\n type: 'set_follow',\n subaccount: inner.subaccount,\n is_following: inner.is_following,\n };\n case 'set_follow_batch':\n return {\n type: 'set_follow_batch',\n subaccounts: [...inner.subaccounts],\n is_following: inner.is_following,\n };\n default: {\n throw new Error(\n `canonicalizeMobileInner: unhandled inner payload type: ${JSON.stringify(inner)}`,\n );\n }\n }\n}\n"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"canonicalize.cjs","names":[],"sources":["../../src/signing/canonicalize.ts"],"sourcesContent":["import { MobileSocialFeedMention } from '../types/serverModelTypes';\nimport { MobileSignedInner } from './types';\n\n/**\n * Rebuilds an inner payload with its keys in the backend's struct declaration order (`type` first, then the\n * remaining fields in the exact order the backend serializes them). msgpack encodes object keys in insertion\n * order and the payload hash must be reproducible regardless of how the caller constructed the object, so\n * every inner payload — and each of its sub-types — is canonicalized here before hashing. This function is\n * the source of truth for that order.\n */\nexport function canonicalizeMobileInner(\n inner: MobileSignedInner,\n): MobileSignedInner {\n switch (inner.type) {\n case 'register_expo_token_v2':\n return {\n type: inner.type,\n expo_token: inner.expo_token,\n platform: inner.platform,\n locale: inner.locale,\n app_version: inner.app_version,\n capabilities: {\n payload_versions: [...inner.capabilities.payload_versions],\n type_ids: [...inner.capabilities.type_ids],\n routes: [...inner.capabilities.routes],\n },\n };\n case 'notification_subscriptions':\n return { type: inner.type };\n case 'update_notification_subscriptions':\n return {\n type: inner.type,\n expected_revision: inner.expected_revision,\n trader_bell:\n inner.trader_bell == null\n ? null\n : {\n subaccount: inner.trader_bell.subaccount,\n enabled: inner.trader_bell.enabled,\n },\n market:\n inner.market == null\n ? null\n : {\n product_id: inner.market.product_id,\n subscribed: inner.market.subscribed,\n },\n import_markets:\n inner.import_markets == null ? null : [...inner.import_markets],\n };\n case 'notification_inbox_v2':\n return {\n type: inner.type,\n cursor: inner.cursor,\n limit: inner.limit,\n };\n case 'record_product_events':\n return {\n type: inner.type,\n events: inner.events.map((event) => ({\n client_event_id: event.client_event_id,\n event_name: event.event_name,\n notification_id: event.notification_id,\n occurred_at: event.occurred_at,\n product_id: event.product_id,\n query: event.query,\n })),\n };\n case 'create_feed_post':\n return {\n type: inner.type,\n client_request_id: inner.client_request_id,\n position_id: inner.position_id,\n ...(inner.action_id === undefined\n ? {}\n : { action_id: inner.action_id }),\n text: inner.text,\n mentions: inner.mentions.map(canonicalizeMention),\n ...(inner.drawing_data_json === undefined\n ? {}\n : { drawing_data_json: inner.drawing_data_json }),\n ...(inner.image_ids === undefined\n ? {}\n : { image_ids: [...inner.image_ids] }),\n };\n case 'create_feed_comment':\n return {\n type: inner.type,\n client_request_id: inner.client_request_id,\n root_item_id: inner.root_item_id,\n ...(inner.reply_to_item_id === undefined\n ? {}\n : { reply_to_item_id: inner.reply_to_item_id }),\n text: inner.text,\n mentions: inner.mentions.map(canonicalizeMention),\n ...(inner.attached_position_id === undefined\n ? {}\n : { attached_position_id: inner.attached_position_id }),\n ...(inner.image_ids === undefined\n ? {}\n : { image_ids: [...inner.image_ids] }),\n };\n case 'create_feed_post_image_uploads':\n case 'create_feed_comment_image_uploads':\n return {\n type: inner.type,\n content_hash: inner.content_hash,\n };\n case 'create_feed_chart_drawing':\n case 'update_feed_chart_drawing':\n return {\n type: inner.type,\n item_id: inner.item_id,\n data_json: inner.data_json,\n };\n case 'set_feed_like':\n return {\n type: inner.type,\n item_id: inner.item_id,\n is_liked: inner.is_liked,\n };\n case 'set_bio':\n return { type: 'set_bio', bio: inner.bio };\n case 'create_avatar_upload':\n return {\n type: 'create_avatar_upload',\n content_length: inner.content_length,\n };\n case 'set_avatar': {\n const avatar = inner.avatar;\n if (avatar === null) {\n return { type: 'set_avatar', avatar: null };\n }\n return {\n type: 'set_avatar',\n avatar:\n avatar.type === 'preset'\n ? { type: 'preset', id: avatar.id }\n : { type: 'upload', upload_key: avatar.upload_key },\n };\n }\n case 'set_username':\n return { type: 'set_username', display_name: inner.display_name };\n case 'set_private_mode':\n return { type: 'set_private_mode', private_mode: inner.private_mode };\n case 'register_expo_token':\n return {\n type: 'register_expo_token',\n expo_token: inner.expo_token,\n platform: inner.platform,\n locale: inner.locale,\n app_version: inner.app_version,\n };\n case 'set_follow':\n return {\n type: 'set_follow',\n subaccount: inner.subaccount,\n is_following: inner.is_following,\n };\n case 'set_follow_batch':\n return {\n type: 'set_follow_batch',\n subaccounts: [...inner.subaccounts],\n is_following: inner.is_following,\n };\n default: {\n throw new Error(\n `canonicalizeMobileInner: unhandled inner payload type: ${JSON.stringify(inner)}`,\n );\n }\n }\n}\n\nfunction canonicalizeMention(\n mention: MobileSocialFeedMention,\n): MobileSocialFeedMention {\n return {\n subaccount: mention.subaccount,\n start: mention.start,\n end: mention.end,\n label: mention.label,\n };\n}\n"],"mappings":";;;;;;;;;AAUA,SAAgB,wBACd,OACmB;CACnB,QAAQ,MAAM,MAAd;EACE,KAAK,0BACH,OAAO;GACL,MAAM,MAAM;GACZ,YAAY,MAAM;GAClB,UAAU,MAAM;GAChB,QAAQ,MAAM;GACd,aAAa,MAAM;GACnB,cAAc;IACZ,kBAAkB,CAAC,GAAG,MAAM,aAAa,gBAAgB;IACzD,UAAU,CAAC,GAAG,MAAM,aAAa,QAAQ;IACzC,QAAQ,CAAC,GAAG,MAAM,aAAa,MAAM;GACvC;EACF;EACF,KAAK,8BACH,OAAO,EAAE,MAAM,MAAM,KAAK;EAC5B,KAAK,qCACH,OAAO;GACL,MAAM,MAAM;GACZ,mBAAmB,MAAM;GACzB,aACE,MAAM,eAAe,OACjB,OACA;IACE,YAAY,MAAM,YAAY;IAC9B,SAAS,MAAM,YAAY;GAC7B;GACN,QACE,MAAM,UAAU,OACZ,OACA;IACE,YAAY,MAAM,OAAO;IACzB,YAAY,MAAM,OAAO;GAC3B;GACN,gBACE,MAAM,kBAAkB,OAAO,OAAO,CAAC,GAAG,MAAM,cAAc;EAClE;EACF,KAAK,yBACH,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L,MAAM,MAAM;GACZ,SAAS,MAAM;GACf,UAAU,MAAM;EAClB;EACF,KAAK,WACH,OAAO;GAAE,MAAM;GAAW,KAAK,MAAM;EAAI;EAC3C,KAAK,wBACH,OAAO;GACL,MAAM;GACN,gBAAgB,MAAM;EACxB;EACF,KAAK,cAAc;GACjB,MAAM,SAAS,MAAM;GACrB,IAAI,WAAW,MACb,OAAO;IAAE,MAAM;IAAc,QAAQ;GAAK;GAE5C,OAAO;IACL,MAAM;IACN,QACE,OAAO,SAAS,WACZ;KAAE,MAAM;KAAU,IAAI,OAAO;IAAG,IAChC;KAAE,MAAM;KAAU,YAAY,OAAO;IAAW;GACxD;EACF;EACA,KAAK,gBACH,OAAO;GAAE,MAAM;GAAgB,cAAc,MAAM;EAAa;EAClE,KAAK,oBACH,OAAO;GAAE,MAAM;GAAoB,cAAc,MAAM;EAAa;EACtE,KAAK,uBACH,OAAO;GACL,MAAM;GACN,YAAY,MAAM;GAClB,UAAU,MAAM;GAChB,QAAQ,MAAM;GACd,aAAa,MAAM;EACrB;EACF,KAAK,cACH,OAAO;GACL,MAAM;GACN,YAAY,MAAM;GAClB,cAAc,MAAM;EACtB;EACF,KAAK,oBACH,OAAO;GACL,MAAM;GACN,aAAa,CAAC,GAAG,MAAM,WAAW;GAClC,cAAc,MAAM;EACtB;EACF,SACE,MAAM,IAAI,MACR,0DAA0D,KAAK,UAAU,KAAK,GAChF;CAEJ;AACF;AAEA,SAAS,oBACP,SACyB;CACzB,OAAO;EACL,YAAY,QAAQ;EACpB,OAAO,QAAQ;EACf,KAAK,QAAQ;EACb,OAAO,QAAQ;CACjB;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as canonicalizeMobileInner } from "../canonicalize-
|
|
1
|
+
import { t as canonicalizeMobileInner } from "../canonicalize-CWh3XZzj.cjs";
|
|
2
2
|
export { canonicalizeMobileInner };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as canonicalizeMobileInner } from "../canonicalize-
|
|
1
|
+
import { t as canonicalizeMobileInner } from "../canonicalize-Bv6UIAbR.js";
|
|
2
2
|
export { canonicalizeMobileInner };
|
|
@@ -8,6 +8,84 @@
|
|
|
8
8
|
*/
|
|
9
9
|
function canonicalizeMobileInner(inner) {
|
|
10
10
|
switch (inner.type) {
|
|
11
|
+
case "register_expo_token_v2": return {
|
|
12
|
+
type: inner.type,
|
|
13
|
+
expo_token: inner.expo_token,
|
|
14
|
+
platform: inner.platform,
|
|
15
|
+
locale: inner.locale,
|
|
16
|
+
app_version: inner.app_version,
|
|
17
|
+
capabilities: {
|
|
18
|
+
payload_versions: [...inner.capabilities.payload_versions],
|
|
19
|
+
type_ids: [...inner.capabilities.type_ids],
|
|
20
|
+
routes: [...inner.capabilities.routes]
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
case "notification_subscriptions": return { type: inner.type };
|
|
24
|
+
case "update_notification_subscriptions": return {
|
|
25
|
+
type: inner.type,
|
|
26
|
+
expected_revision: inner.expected_revision,
|
|
27
|
+
trader_bell: inner.trader_bell == null ? null : {
|
|
28
|
+
subaccount: inner.trader_bell.subaccount,
|
|
29
|
+
enabled: inner.trader_bell.enabled
|
|
30
|
+
},
|
|
31
|
+
market: inner.market == null ? null : {
|
|
32
|
+
product_id: inner.market.product_id,
|
|
33
|
+
subscribed: inner.market.subscribed
|
|
34
|
+
},
|
|
35
|
+
import_markets: inner.import_markets == null ? null : [...inner.import_markets]
|
|
36
|
+
};
|
|
37
|
+
case "notification_inbox_v2": return {
|
|
38
|
+
type: inner.type,
|
|
39
|
+
cursor: inner.cursor,
|
|
40
|
+
limit: inner.limit
|
|
41
|
+
};
|
|
42
|
+
case "record_product_events": return {
|
|
43
|
+
type: inner.type,
|
|
44
|
+
events: inner.events.map((event) => ({
|
|
45
|
+
client_event_id: event.client_event_id,
|
|
46
|
+
event_name: event.event_name,
|
|
47
|
+
notification_id: event.notification_id,
|
|
48
|
+
occurred_at: event.occurred_at,
|
|
49
|
+
product_id: event.product_id,
|
|
50
|
+
query: event.query
|
|
51
|
+
}))
|
|
52
|
+
};
|
|
53
|
+
case "create_feed_post": return {
|
|
54
|
+
type: inner.type,
|
|
55
|
+
client_request_id: inner.client_request_id,
|
|
56
|
+
position_id: inner.position_id,
|
|
57
|
+
...inner.action_id === void 0 ? {} : { action_id: inner.action_id },
|
|
58
|
+
text: inner.text,
|
|
59
|
+
mentions: inner.mentions.map(canonicalizeMention),
|
|
60
|
+
...inner.drawing_data_json === void 0 ? {} : { drawing_data_json: inner.drawing_data_json },
|
|
61
|
+
...inner.image_ids === void 0 ? {} : { image_ids: [...inner.image_ids] }
|
|
62
|
+
};
|
|
63
|
+
case "create_feed_comment": return {
|
|
64
|
+
type: inner.type,
|
|
65
|
+
client_request_id: inner.client_request_id,
|
|
66
|
+
root_item_id: inner.root_item_id,
|
|
67
|
+
...inner.reply_to_item_id === void 0 ? {} : { reply_to_item_id: inner.reply_to_item_id },
|
|
68
|
+
text: inner.text,
|
|
69
|
+
mentions: inner.mentions.map(canonicalizeMention),
|
|
70
|
+
...inner.attached_position_id === void 0 ? {} : { attached_position_id: inner.attached_position_id },
|
|
71
|
+
...inner.image_ids === void 0 ? {} : { image_ids: [...inner.image_ids] }
|
|
72
|
+
};
|
|
73
|
+
case "create_feed_post_image_uploads":
|
|
74
|
+
case "create_feed_comment_image_uploads": return {
|
|
75
|
+
type: inner.type,
|
|
76
|
+
content_hash: inner.content_hash
|
|
77
|
+
};
|
|
78
|
+
case "create_feed_chart_drawing":
|
|
79
|
+
case "update_feed_chart_drawing": return {
|
|
80
|
+
type: inner.type,
|
|
81
|
+
item_id: inner.item_id,
|
|
82
|
+
data_json: inner.data_json
|
|
83
|
+
};
|
|
84
|
+
case "set_feed_like": return {
|
|
85
|
+
type: inner.type,
|
|
86
|
+
item_id: inner.item_id,
|
|
87
|
+
is_liked: inner.is_liked
|
|
88
|
+
};
|
|
11
89
|
case "set_bio": return {
|
|
12
90
|
type: "set_bio",
|
|
13
91
|
bio: inner.bio
|
|
@@ -61,6 +139,14 @@ function canonicalizeMobileInner(inner) {
|
|
|
61
139
|
default: throw new Error(`canonicalizeMobileInner: unhandled inner payload type: ${JSON.stringify(inner)}`);
|
|
62
140
|
}
|
|
63
141
|
}
|
|
142
|
+
function canonicalizeMention(mention) {
|
|
143
|
+
return {
|
|
144
|
+
subaccount: mention.subaccount,
|
|
145
|
+
start: mention.start,
|
|
146
|
+
end: mention.end,
|
|
147
|
+
label: mention.label
|
|
148
|
+
};
|
|
149
|
+
}
|
|
64
150
|
//#endregion
|
|
65
151
|
export { canonicalizeMobileInner };
|
|
66
152
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"canonicalize.js","names":[],"sources":["../../src/signing/canonicalize.ts"],"sourcesContent":["import { MobileSignedInner } from './types';\n\n/**\n * Rebuilds an inner payload with its keys in the backend's struct declaration order (`type` first, then the\n * remaining fields in the exact order the backend serializes them). msgpack encodes object keys in insertion\n * order and the payload hash must be reproducible regardless of how the caller constructed the object, so\n * every inner payload — and each of its sub-types — is canonicalized here before hashing. This function is\n * the source of truth for that order.\n */\nexport function canonicalizeMobileInner(\n inner: MobileSignedInner,\n): MobileSignedInner {\n switch (inner.type) {\n case 'set_bio':\n return { type: 'set_bio', bio: inner.bio };\n case 'create_avatar_upload':\n return {\n type: 'create_avatar_upload',\n content_length: inner.content_length,\n };\n case 'set_avatar': {\n const avatar = inner.avatar;\n if (avatar === null) {\n return { type: 'set_avatar', avatar: null };\n }\n return {\n type: 'set_avatar',\n avatar:\n avatar.type === 'preset'\n ? { type: 'preset', id: avatar.id }\n : { type: 'upload', upload_key: avatar.upload_key },\n };\n }\n case 'set_username':\n return { type: 'set_username', display_name: inner.display_name };\n case 'set_private_mode':\n return { type: 'set_private_mode', private_mode: inner.private_mode };\n case 'register_expo_token':\n return {\n type: 'register_expo_token',\n expo_token: inner.expo_token,\n platform: inner.platform,\n locale: inner.locale,\n app_version: inner.app_version,\n };\n case 'set_follow':\n return {\n type: 'set_follow',\n subaccount: inner.subaccount,\n is_following: inner.is_following,\n };\n case 'set_follow_batch':\n return {\n type: 'set_follow_batch',\n subaccounts: [...inner.subaccounts],\n is_following: inner.is_following,\n };\n default: {\n throw new Error(\n `canonicalizeMobileInner: unhandled inner payload type: ${JSON.stringify(inner)}`,\n );\n }\n }\n}\n"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"canonicalize.js","names":[],"sources":["../../src/signing/canonicalize.ts"],"sourcesContent":["import { MobileSocialFeedMention } from '../types/serverModelTypes';\nimport { MobileSignedInner } from './types';\n\n/**\n * Rebuilds an inner payload with its keys in the backend's struct declaration order (`type` first, then the\n * remaining fields in the exact order the backend serializes them). msgpack encodes object keys in insertion\n * order and the payload hash must be reproducible regardless of how the caller constructed the object, so\n * every inner payload — and each of its sub-types — is canonicalized here before hashing. This function is\n * the source of truth for that order.\n */\nexport function canonicalizeMobileInner(\n inner: MobileSignedInner,\n): MobileSignedInner {\n switch (inner.type) {\n case 'register_expo_token_v2':\n return {\n type: inner.type,\n expo_token: inner.expo_token,\n platform: inner.platform,\n locale: inner.locale,\n app_version: inner.app_version,\n capabilities: {\n payload_versions: [...inner.capabilities.payload_versions],\n type_ids: [...inner.capabilities.type_ids],\n routes: [...inner.capabilities.routes],\n },\n };\n case 'notification_subscriptions':\n return { type: inner.type };\n case 'update_notification_subscriptions':\n return {\n type: inner.type,\n expected_revision: inner.expected_revision,\n trader_bell:\n inner.trader_bell == null\n ? null\n : {\n subaccount: inner.trader_bell.subaccount,\n enabled: inner.trader_bell.enabled,\n },\n market:\n inner.market == null\n ? null\n : {\n product_id: inner.market.product_id,\n subscribed: inner.market.subscribed,\n },\n import_markets:\n inner.import_markets == null ? null : [...inner.import_markets],\n };\n case 'notification_inbox_v2':\n return {\n type: inner.type,\n cursor: inner.cursor,\n limit: inner.limit,\n };\n case 'record_product_events':\n return {\n type: inner.type,\n events: inner.events.map((event) => ({\n client_event_id: event.client_event_id,\n event_name: event.event_name,\n notification_id: event.notification_id,\n occurred_at: event.occurred_at,\n product_id: event.product_id,\n query: event.query,\n })),\n };\n case 'create_feed_post':\n return {\n type: inner.type,\n client_request_id: inner.client_request_id,\n position_id: inner.position_id,\n ...(inner.action_id === undefined\n ? {}\n : { action_id: inner.action_id }),\n text: inner.text,\n mentions: inner.mentions.map(canonicalizeMention),\n ...(inner.drawing_data_json === undefined\n ? {}\n : { drawing_data_json: inner.drawing_data_json }),\n ...(inner.image_ids === undefined\n ? {}\n : { image_ids: [...inner.image_ids] }),\n };\n case 'create_feed_comment':\n return {\n type: inner.type,\n client_request_id: inner.client_request_id,\n root_item_id: inner.root_item_id,\n ...(inner.reply_to_item_id === undefined\n ? {}\n : { reply_to_item_id: inner.reply_to_item_id }),\n text: inner.text,\n mentions: inner.mentions.map(canonicalizeMention),\n ...(inner.attached_position_id === undefined\n ? {}\n : { attached_position_id: inner.attached_position_id }),\n ...(inner.image_ids === undefined\n ? {}\n : { image_ids: [...inner.image_ids] }),\n };\n case 'create_feed_post_image_uploads':\n case 'create_feed_comment_image_uploads':\n return {\n type: inner.type,\n content_hash: inner.content_hash,\n };\n case 'create_feed_chart_drawing':\n case 'update_feed_chart_drawing':\n return {\n type: inner.type,\n item_id: inner.item_id,\n data_json: inner.data_json,\n };\n case 'set_feed_like':\n return {\n type: inner.type,\n item_id: inner.item_id,\n is_liked: inner.is_liked,\n };\n case 'set_bio':\n return { type: 'set_bio', bio: inner.bio };\n case 'create_avatar_upload':\n return {\n type: 'create_avatar_upload',\n content_length: inner.content_length,\n };\n case 'set_avatar': {\n const avatar = inner.avatar;\n if (avatar === null) {\n return { type: 'set_avatar', avatar: null };\n }\n return {\n type: 'set_avatar',\n avatar:\n avatar.type === 'preset'\n ? { type: 'preset', id: avatar.id }\n : { type: 'upload', upload_key: avatar.upload_key },\n };\n }\n case 'set_username':\n return { type: 'set_username', display_name: inner.display_name };\n case 'set_private_mode':\n return { type: 'set_private_mode', private_mode: inner.private_mode };\n case 'register_expo_token':\n return {\n type: 'register_expo_token',\n expo_token: inner.expo_token,\n platform: inner.platform,\n locale: inner.locale,\n app_version: inner.app_version,\n };\n case 'set_follow':\n return {\n type: 'set_follow',\n subaccount: inner.subaccount,\n is_following: inner.is_following,\n };\n case 'set_follow_batch':\n return {\n type: 'set_follow_batch',\n subaccounts: [...inner.subaccounts],\n is_following: inner.is_following,\n };\n default: {\n throw new Error(\n `canonicalizeMobileInner: unhandled inner payload type: ${JSON.stringify(inner)}`,\n );\n }\n }\n}\n\nfunction canonicalizeMention(\n mention: MobileSocialFeedMention,\n): MobileSocialFeedMention {\n return {\n subaccount: mention.subaccount,\n start: mention.start,\n end: mention.end,\n label: mention.label,\n };\n}\n"],"mappings":";;;;;;;;AAUA,SAAgB,wBACd,OACmB;CACnB,QAAQ,MAAM,MAAd;EACE,KAAK,0BACH,OAAO;GACL,MAAM,MAAM;GACZ,YAAY,MAAM;GAClB,UAAU,MAAM;GAChB,QAAQ,MAAM;GACd,aAAa,MAAM;GACnB,cAAc;IACZ,kBAAkB,CAAC,GAAG,MAAM,aAAa,gBAAgB;IACzD,UAAU,CAAC,GAAG,MAAM,aAAa,QAAQ;IACzC,QAAQ,CAAC,GAAG,MAAM,aAAa,MAAM;GACvC;EACF;EACF,KAAK,8BACH,OAAO,EAAE,MAAM,MAAM,KAAK;EAC5B,KAAK,qCACH,OAAO;GACL,MAAM,MAAM;GACZ,mBAAmB,MAAM;GACzB,aACE,MAAM,eAAe,OACjB,OACA;IACE,YAAY,MAAM,YAAY;IAC9B,SAAS,MAAM,YAAY;GAC7B;GACN,QACE,MAAM,UAAU,OACZ,OACA;IACE,YAAY,MAAM,OAAO;IACzB,YAAY,MAAM,OAAO;GAC3B;GACN,gBACE,MAAM,kBAAkB,OAAO,OAAO,CAAC,GAAG,MAAM,cAAc;EAClE;EACF,KAAK,yBACH,OAAO;GACL,MAAM,MAAM;GACZ,QAAQ,MAAM;GACd,OAAO,MAAM;EACf;EACF,KAAK,yBACH,OAAO;GACL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AAW,KAAK,MAAM;EAAI;EAC3C,KAAK,wBACH,OAAO;GACL,MAAM;GACN,gBAAgB,MAAM;EACxB;EACF,KAAK,cAAc;GACjB,MAAM,SAAS,MAAM;GACrB,IAAI,WAAW,MACb,OAAO;IAAE,MAAM;IAAc,QAAQ;GAAK;GAE5C,OAAO;IACL,MAAM;IACN,QACE,OAAO,SAAS,WACZ;KAAE,MAAM;KAAU,IAAI,OAAO;IAAG,IAChC;KAAE,MAAM;KAAU,YAAY,OAAO;IAAW;GACxD;EACF;EACA,KAAK,gBACH,OAAO;GAAE,MAAM;GAAgB,cAAc,MAAM;EAAa;EAClE,KAAK,oBACH,OAAO;GAAE,MAAM;GAAoB,cAAc,MAAM;EAAa;EACtE,KAAK,uBACH,OAAO;GACL,MAAM;GACN,YAAY,MAAM;GAClB,UAAU,MAAM;GAChB,QAAQ,MAAM;GACd,aAAa,MAAM;EACrB;EACF,KAAK,cACH,OAAO;GACL,MAAM;GACN,YAAY,MAAM;GAClB,cAAc,MAAM;EACtB;EACF,KAAK,oBACH,OAAO;GACL,MAAM;GACN,aAAa,CAAC,GAAG,MAAM,WAAW;GAClC,cAAc,MAAM;EACtB;EACF,SACE,MAAM,IAAI,MACR,0DAA0D,KAAK,UAAU,KAAK,GAChF;CAEJ;AACF;AAEA,SAAS,oBACP,SACyB;CACzB,OAAO;EACL,YAAY,QAAQ;EACpB,OAAO,QAAQ;EACf,KAAK,QAAQ;EACb,OAAO,QAAQ;CACjB;AACF"}
|
|
@@ -4,6 +4,18 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
4
4
|
* EIP-712 `method` string for each signed inner payload type.
|
|
5
5
|
*/
|
|
6
6
|
const MOBILE_EIP712_METHOD_BY_TYPE = {
|
|
7
|
+
register_expo_token_v2: "mobile:execute_register_expo_token_v2",
|
|
8
|
+
notification_subscriptions: "mobile:query_notification_subscriptions",
|
|
9
|
+
update_notification_subscriptions: "mobile:execute_update_notification_subscriptions",
|
|
10
|
+
notification_inbox_v2: "mobile:query_notification_inbox_v2",
|
|
11
|
+
record_product_events: "mobile:execute_record_product_events",
|
|
12
|
+
create_feed_post: "mobile:execute_create_feed_post",
|
|
13
|
+
create_feed_comment: "mobile:execute_create_feed_comment",
|
|
14
|
+
create_feed_post_image_uploads: "mobile:execute_create_feed_post_image_uploads",
|
|
15
|
+
create_feed_comment_image_uploads: "mobile:execute_create_feed_comment_image_uploads",
|
|
16
|
+
create_feed_chart_drawing: "mobile:execute_create_feed_chart_drawing",
|
|
17
|
+
update_feed_chart_drawing: "mobile:execute_update_feed_chart_drawing",
|
|
18
|
+
set_feed_like: "mobile:execute_set_feed_like",
|
|
7
19
|
set_bio: "mobile:execute_set_bio",
|
|
8
20
|
create_avatar_upload: "mobile:execute_create_avatar_upload",
|
|
9
21
|
set_avatar: "mobile:execute_set_avatar",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eip712MethodByType.cjs","names":[],"sources":["../../src/signing/eip712MethodByType.ts"],"sourcesContent":["import { MobileSignedInner } from './types';\n\n/**\n * EIP-712 `method` string for each signed inner payload type.\n */\nexport const MOBILE_EIP712_METHOD_BY_TYPE: Record<\n MobileSignedInner['type'],\n string\n> = {\n set_bio: 'mobile:execute_set_bio',\n create_avatar_upload: 'mobile:execute_create_avatar_upload',\n set_avatar: 'mobile:execute_set_avatar',\n set_username: 'mobile:execute_set_username',\n set_private_mode: 'mobile:execute_set_private_mode',\n register_expo_token: 'mobile:execute_register_expo_token',\n set_follow: 'mobile:execute_set_follow',\n set_follow_batch: 'mobile:execute_set_follow_batch',\n};\n"],"mappings":";;;;;AAKA,MAAa,+BAGT;CACF,SAAS;CACT,sBAAsB;CACtB,YAAY;CACZ,cAAc;CACd,kBAAkB;CAClB,qBAAqB;CACrB,YAAY;CACZ,kBAAkB;AACpB"}
|
|
1
|
+
{"version":3,"file":"eip712MethodByType.cjs","names":[],"sources":["../../src/signing/eip712MethodByType.ts"],"sourcesContent":["import { MobileSignedInner } from './types';\n\n/**\n * EIP-712 `method` string for each signed inner payload type.\n */\nexport const MOBILE_EIP712_METHOD_BY_TYPE: Record<\n MobileSignedInner['type'],\n string\n> = {\n register_expo_token_v2: 'mobile:execute_register_expo_token_v2',\n notification_subscriptions: 'mobile:query_notification_subscriptions',\n update_notification_subscriptions:\n 'mobile:execute_update_notification_subscriptions',\n notification_inbox_v2: 'mobile:query_notification_inbox_v2',\n record_product_events: 'mobile:execute_record_product_events',\n create_feed_post: 'mobile:execute_create_feed_post',\n create_feed_comment: 'mobile:execute_create_feed_comment',\n create_feed_post_image_uploads:\n 'mobile:execute_create_feed_post_image_uploads',\n create_feed_comment_image_uploads:\n 'mobile:execute_create_feed_comment_image_uploads',\n create_feed_chart_drawing: 'mobile:execute_create_feed_chart_drawing',\n update_feed_chart_drawing: 'mobile:execute_update_feed_chart_drawing',\n set_feed_like: 'mobile:execute_set_feed_like',\n set_bio: 'mobile:execute_set_bio',\n create_avatar_upload: 'mobile:execute_create_avatar_upload',\n set_avatar: 'mobile:execute_set_avatar',\n set_username: 'mobile:execute_set_username',\n set_private_mode: 'mobile:execute_set_private_mode',\n register_expo_token: 'mobile:execute_register_expo_token',\n set_follow: 'mobile:execute_set_follow',\n set_follow_batch: 'mobile:execute_set_follow_batch',\n};\n"],"mappings":";;;;;AAKA,MAAa,+BAGT;CACF,wBAAwB;CACxB,4BAA4B;CAC5B,mCACE;CACF,uBAAuB;CACvB,uBAAuB;CACvB,kBAAkB;CAClB,qBAAqB;CACrB,gCACE;CACF,mCACE;CACF,2BAA2B;CAC3B,2BAA2B;CAC3B,eAAe;CACf,SAAS;CACT,sBAAsB;CACtB,YAAY;CACZ,cAAc;CACd,kBAAkB;CAClB,qBAAqB;CACrB,YAAY;CACZ,kBAAkB;AACpB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-
|
|
1
|
+
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-CJ6BoayT.cjs";
|
|
2
2
|
export { MOBILE_EIP712_METHOD_BY_TYPE };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-
|
|
1
|
+
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-Dx4mvgni.js";
|
|
2
2
|
export { MOBILE_EIP712_METHOD_BY_TYPE };
|
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
* EIP-712 `method` string for each signed inner payload type.
|
|
4
4
|
*/
|
|
5
5
|
const MOBILE_EIP712_METHOD_BY_TYPE = {
|
|
6
|
+
register_expo_token_v2: "mobile:execute_register_expo_token_v2",
|
|
7
|
+
notification_subscriptions: "mobile:query_notification_subscriptions",
|
|
8
|
+
update_notification_subscriptions: "mobile:execute_update_notification_subscriptions",
|
|
9
|
+
notification_inbox_v2: "mobile:query_notification_inbox_v2",
|
|
10
|
+
record_product_events: "mobile:execute_record_product_events",
|
|
11
|
+
create_feed_post: "mobile:execute_create_feed_post",
|
|
12
|
+
create_feed_comment: "mobile:execute_create_feed_comment",
|
|
13
|
+
create_feed_post_image_uploads: "mobile:execute_create_feed_post_image_uploads",
|
|
14
|
+
create_feed_comment_image_uploads: "mobile:execute_create_feed_comment_image_uploads",
|
|
15
|
+
create_feed_chart_drawing: "mobile:execute_create_feed_chart_drawing",
|
|
16
|
+
update_feed_chart_drawing: "mobile:execute_update_feed_chart_drawing",
|
|
17
|
+
set_feed_like: "mobile:execute_set_feed_like",
|
|
6
18
|
set_bio: "mobile:execute_set_bio",
|
|
7
19
|
create_avatar_upload: "mobile:execute_create_avatar_upload",
|
|
8
20
|
set_avatar: "mobile:execute_set_avatar",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eip712MethodByType.js","names":[],"sources":["../../src/signing/eip712MethodByType.ts"],"sourcesContent":["import { MobileSignedInner } from './types';\n\n/**\n * EIP-712 `method` string for each signed inner payload type.\n */\nexport const MOBILE_EIP712_METHOD_BY_TYPE: Record<\n MobileSignedInner['type'],\n string\n> = {\n set_bio: 'mobile:execute_set_bio',\n create_avatar_upload: 'mobile:execute_create_avatar_upload',\n set_avatar: 'mobile:execute_set_avatar',\n set_username: 'mobile:execute_set_username',\n set_private_mode: 'mobile:execute_set_private_mode',\n register_expo_token: 'mobile:execute_register_expo_token',\n set_follow: 'mobile:execute_set_follow',\n set_follow_batch: 'mobile:execute_set_follow_batch',\n};\n"],"mappings":";;;;AAKA,MAAa,+BAGT;CACF,SAAS;CACT,sBAAsB;CACtB,YAAY;CACZ,cAAc;CACd,kBAAkB;CAClB,qBAAqB;CACrB,YAAY;CACZ,kBAAkB;AACpB"}
|
|
1
|
+
{"version":3,"file":"eip712MethodByType.js","names":[],"sources":["../../src/signing/eip712MethodByType.ts"],"sourcesContent":["import { MobileSignedInner } from './types';\n\n/**\n * EIP-712 `method` string for each signed inner payload type.\n */\nexport const MOBILE_EIP712_METHOD_BY_TYPE: Record<\n MobileSignedInner['type'],\n string\n> = {\n register_expo_token_v2: 'mobile:execute_register_expo_token_v2',\n notification_subscriptions: 'mobile:query_notification_subscriptions',\n update_notification_subscriptions:\n 'mobile:execute_update_notification_subscriptions',\n notification_inbox_v2: 'mobile:query_notification_inbox_v2',\n record_product_events: 'mobile:execute_record_product_events',\n create_feed_post: 'mobile:execute_create_feed_post',\n create_feed_comment: 'mobile:execute_create_feed_comment',\n create_feed_post_image_uploads:\n 'mobile:execute_create_feed_post_image_uploads',\n create_feed_comment_image_uploads:\n 'mobile:execute_create_feed_comment_image_uploads',\n create_feed_chart_drawing: 'mobile:execute_create_feed_chart_drawing',\n update_feed_chart_drawing: 'mobile:execute_update_feed_chart_drawing',\n set_feed_like: 'mobile:execute_set_feed_like',\n set_bio: 'mobile:execute_set_bio',\n create_avatar_upload: 'mobile:execute_create_avatar_upload',\n set_avatar: 'mobile:execute_set_avatar',\n set_username: 'mobile:execute_set_username',\n set_private_mode: 'mobile:execute_set_private_mode',\n register_expo_token: 'mobile:execute_register_expo_token',\n set_follow: 'mobile:execute_set_follow',\n set_follow_batch: 'mobile:execute_set_follow_batch',\n};\n"],"mappings":";;;;AAKA,MAAa,+BAGT;CACF,wBAAwB;CACxB,4BAA4B;CAC5B,mCACE;CACF,uBAAuB;CACvB,uBAAuB;CACvB,kBAAkB;CAClB,qBAAqB;CACrB,gCACE;CACF,mCACE;CACF,2BAA2B;CAC3B,2BAA2B;CAC3B,eAAe;CACf,SAAS;CACT,sBAAsB;CACtB,YAAY;CACZ,cAAc;CACd,kBAAkB;CAClB,qBAAqB;CACrB,YAAY;CACZ,kBAAkB;AACpB"}
|
package/dist/signing/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "../types-
|
|
2
|
-
import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-
|
|
3
|
-
import { t as canonicalizeMobileInner } from "../canonicalize-
|
|
4
|
-
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-
|
|
1
|
+
import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "../types-C9YE4EIt.cjs";
|
|
2
|
+
import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-DyKCK34Y.cjs";
|
|
3
|
+
import { t as canonicalizeMobileInner } from "../canonicalize-CWh3XZzj.cjs";
|
|
4
|
+
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-CJ6BoayT.cjs";
|
|
5
5
|
import { t as getMobileNonce } from "../nonce-7swNuPgu.cjs";
|
|
6
|
-
import { t as getMobilePayloadHash } from "../payloadHash-
|
|
6
|
+
import { t as getMobilePayloadHash } from "../payloadHash-CdkF2Ocr.cjs";
|
|
7
7
|
export { BuildSignedMobileRequestParams, MOBILE_EIP712_METHOD_BY_TYPE, MobileSignedInner, MobileSignedInnerByType, MobileSignedInnerParams, MobileSignedRequest, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash };
|
package/dist/signing/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "../types-
|
|
2
|
-
import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-
|
|
3
|
-
import { t as canonicalizeMobileInner } from "../canonicalize-
|
|
4
|
-
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-
|
|
1
|
+
import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "../types-Cwy1y_9x.js";
|
|
2
|
+
import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-BR-KJhIF.js";
|
|
3
|
+
import { t as canonicalizeMobileInner } from "../canonicalize-Bv6UIAbR.js";
|
|
4
|
+
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-Dx4mvgni.js";
|
|
5
5
|
import { t as getMobileNonce } from "../nonce-7swNuPgu.js";
|
|
6
|
-
import { t as getMobilePayloadHash } from "../payloadHash-
|
|
6
|
+
import { t as getMobilePayloadHash } from "../payloadHash-HD29K77M.js";
|
|
7
7
|
export { BuildSignedMobileRequestParams, MOBILE_EIP712_METHOD_BY_TYPE, MobileSignedInner, MobileSignedInnerByType, MobileSignedInnerParams, MobileSignedRequest, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
let _msgpack_msgpack = require("@msgpack/msgpack");
|
|
3
2
|
let viem = require("viem");
|
|
3
|
+
let _msgpack_msgpack = require("@msgpack/msgpack");
|
|
4
4
|
//#region src/signing/payloadHash.ts
|
|
5
5
|
/**
|
|
6
6
|
* Computes the EIP-712 `payloadHash` for a canonicalized inner payload: `keccak256(msgpack(inner))`.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as getMobilePayloadHash } from "../payloadHash-
|
|
1
|
+
import { t as getMobilePayloadHash } from "../payloadHash-CdkF2Ocr.cjs";
|
|
2
2
|
export { getMobilePayloadHash };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as getMobilePayloadHash } from "../payloadHash-
|
|
1
|
+
import { t as getMobilePayloadHash } from "../payloadHash-HD29K77M.js";
|
|
2
2
|
export { getMobilePayloadHash };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { encode } from "@msgpack/msgpack";
|
|
2
1
|
import { keccak256 } from "viem";
|
|
2
|
+
import { encode } from "@msgpack/msgpack";
|
|
3
3
|
//#region src/signing/payloadHash.ts
|
|
4
4
|
/**
|
|
5
5
|
* Computes the EIP-712 `payloadHash` for a canonicalized inner payload: `keccak256(msgpack(inner))`.
|
package/dist/signing/types.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "../types-
|
|
1
|
+
import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "../types-C9YE4EIt.cjs";
|
|
2
2
|
export { BuildSignedMobileRequestParams, MobileSignedInner, MobileSignedInnerByType, MobileSignedInnerParams, MobileSignedRequest };
|
package/dist/signing/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "../types-
|
|
1
|
+
import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "../types-Cwy1y_9x.js";
|
|
2
2
|
export { BuildSignedMobileRequestParams, MobileSignedInner, MobileSignedInnerByType, MobileSignedInnerParams, MobileSignedRequest };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as MobileServerFailureError } from "../MobileServerFailureError-
|
|
1
|
+
import { t as MobileServerFailureError } from "../MobileServerFailureError-MtS2reel.cjs";
|
|
2
2
|
export { MobileServerFailureError };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as MobileServerFailureError } from "../MobileServerFailureError-
|
|
1
|
+
import { t as MobileServerFailureError } from "../MobileServerFailureError-C9iqNsxI.js";
|
|
2
2
|
export { MobileServerFailureError };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region src/types/MobileUnsupportedFeedItemError.ts
|
|
3
|
+
/**
|
|
4
|
+
* Error thrown when the mobile service returns a social feed item kind this SDK does not support.
|
|
5
|
+
*/
|
|
6
|
+
var MobileUnsupportedFeedItemError = class extends Error {
|
|
7
|
+
/**
|
|
8
|
+
* @param kind - The unrecognized service item kind.
|
|
9
|
+
*/
|
|
10
|
+
constructor(kind) {
|
|
11
|
+
super(`Unsupported mobile social feed item kind "${kind}". Update the SDK to support this item type.`);
|
|
12
|
+
this.name = "MobileUnsupportedFeedItemError";
|
|
13
|
+
this.kind = kind;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.MobileUnsupportedFeedItemError = MobileUnsupportedFeedItemError;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=MobileUnsupportedFeedItemError.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MobileUnsupportedFeedItemError.cjs","names":[],"sources":["../../src/types/MobileUnsupportedFeedItemError.ts"],"sourcesContent":["/**\n * Error thrown when the mobile service returns a social feed item kind this SDK does not support.\n */\nexport class MobileUnsupportedFeedItemError extends Error {\n /** Unrecognized item kind returned by the service. */\n readonly kind: string;\n\n /**\n * @param kind - The unrecognized service item kind.\n */\n constructor(kind: string) {\n super(\n `Unsupported mobile social feed item kind \"${kind}\". Update the SDK to support this item type.`,\n );\n this.name = 'MobileUnsupportedFeedItemError';\n this.kind = kind;\n }\n}\n"],"mappings":";;;;;AAGA,IAAa,iCAAb,cAAoD,MAAM;;;;CAOxD,YAAY,MAAc;EACxB,MACE,6CAA6C,KAAK,6CACpD;EACA,KAAK,OAAO;EACZ,KAAK,OAAO;CACd;AACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region src/types/MobileUnsupportedFeedItemError.ts
|
|
2
|
+
/**
|
|
3
|
+
* Error thrown when the mobile service returns a social feed item kind this SDK does not support.
|
|
4
|
+
*/
|
|
5
|
+
var MobileUnsupportedFeedItemError = class extends Error {
|
|
6
|
+
/**
|
|
7
|
+
* @param kind - The unrecognized service item kind.
|
|
8
|
+
*/
|
|
9
|
+
constructor(kind) {
|
|
10
|
+
super(`Unsupported mobile social feed item kind "${kind}". Update the SDK to support this item type.`);
|
|
11
|
+
this.name = "MobileUnsupportedFeedItemError";
|
|
12
|
+
this.kind = kind;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { MobileUnsupportedFeedItemError };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=MobileUnsupportedFeedItemError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MobileUnsupportedFeedItemError.js","names":[],"sources":["../../src/types/MobileUnsupportedFeedItemError.ts"],"sourcesContent":["/**\n * Error thrown when the mobile service returns a social feed item kind this SDK does not support.\n */\nexport class MobileUnsupportedFeedItemError extends Error {\n /** Unrecognized item kind returned by the service. */\n readonly kind: string;\n\n /**\n * @param kind - The unrecognized service item kind.\n */\n constructor(kind: string) {\n super(\n `Unsupported mobile social feed item kind \"${kind}\". Update the SDK to support this item type.`,\n );\n this.name = 'MobileUnsupportedFeedItemError';\n this.kind = kind;\n }\n}\n"],"mappings":";;;;AAGA,IAAa,iCAAb,cAAoD,MAAM;;;;CAOxD,YAAY,MAAc;EACxB,MACE,6CAA6C,KAAK,6CACpD;EACA,KAAK,OAAO;EACZ,KAAK,OAAO;CACd;AACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region src/types/MobileUnsupportedNotificationRouteError.ts
|
|
3
|
+
/**
|
|
4
|
+
* Error thrown when the mobile service returns a notification route this SDK does not support.
|
|
5
|
+
*/
|
|
6
|
+
var MobileUnsupportedNotificationRouteError = class extends Error {
|
|
7
|
+
/**
|
|
8
|
+
* @param routeName - The unrecognized service route name.
|
|
9
|
+
*/
|
|
10
|
+
constructor(routeName) {
|
|
11
|
+
super(`Unsupported mobile notification route "${routeName}".`);
|
|
12
|
+
this.name = "MobileUnsupportedNotificationRouteError";
|
|
13
|
+
this.routeName = routeName;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.MobileUnsupportedNotificationRouteError = MobileUnsupportedNotificationRouteError;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=MobileUnsupportedNotificationRouteError.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MobileUnsupportedNotificationRouteError.cjs","names":[],"sources":["../../src/types/MobileUnsupportedNotificationRouteError.ts"],"sourcesContent":["/**\n * Error thrown when the mobile service returns a notification route this SDK does not support.\n */\nexport class MobileUnsupportedNotificationRouteError extends Error {\n /** Unrecognized route name returned by the service. */\n readonly routeName: string;\n\n /**\n * @param routeName - The unrecognized service route name.\n */\n constructor(routeName: string) {\n super(`Unsupported mobile notification route \"${routeName}\".`);\n this.name = 'MobileUnsupportedNotificationRouteError';\n this.routeName = routeName;\n }\n}\n"],"mappings":";;;;;AAGA,IAAa,0CAAb,cAA6D,MAAM;;;;CAOjE,YAAY,WAAmB;EAC7B,MAAM,0CAA0C,UAAU,GAAG;EAC7D,KAAK,OAAO;EACZ,KAAK,YAAY;CACnB;AACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region src/types/MobileUnsupportedNotificationRouteError.ts
|
|
2
|
+
/**
|
|
3
|
+
* Error thrown when the mobile service returns a notification route this SDK does not support.
|
|
4
|
+
*/
|
|
5
|
+
var MobileUnsupportedNotificationRouteError = class extends Error {
|
|
6
|
+
/**
|
|
7
|
+
* @param routeName - The unrecognized service route name.
|
|
8
|
+
*/
|
|
9
|
+
constructor(routeName) {
|
|
10
|
+
super(`Unsupported mobile notification route "${routeName}".`);
|
|
11
|
+
this.name = "MobileUnsupportedNotificationRouteError";
|
|
12
|
+
this.routeName = routeName;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { MobileUnsupportedNotificationRouteError };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=MobileUnsupportedNotificationRouteError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MobileUnsupportedNotificationRouteError.js","names":[],"sources":["../../src/types/MobileUnsupportedNotificationRouteError.ts"],"sourcesContent":["/**\n * Error thrown when the mobile service returns a notification route this SDK does not support.\n */\nexport class MobileUnsupportedNotificationRouteError extends Error {\n /** Unrecognized route name returned by the service. */\n readonly routeName: string;\n\n /**\n * @param routeName - The unrecognized service route name.\n */\n constructor(routeName: string) {\n super(`Unsupported mobile notification route \"${routeName}\".`);\n this.name = 'MobileUnsupportedNotificationRouteError';\n this.routeName = routeName;\n }\n}\n"],"mappings":";;;;AAGA,IAAa,0CAAb,cAA6D,MAAM;;;;CAOjE,YAAY,WAAmB;EAC7B,MAAM,0CAA0C,UAAU,GAAG;EAC7D,KAAK,OAAO;EACZ,KAAK,YAAY;CACnB;AACF"}
|